[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[avr-gcc-list] How to access external SRAM

From: Andreas Djojorahardjo
Subject: [avr-gcc-list] How to access external SRAM
Date: Tue, 18 Mar 2003 21:42:40 +0700

Hi All,
I want to ask how to access external SRAM ?
I placed my LCD at adddress 0xC000-Control and 0xC001-Data.
#define LCD_CTRL 0xC000
void lcdControlWrite(U8 data)
 sbi(MCUCR, SRW);   // enable RAM waitstate
 lcdBusyWait();    // wait until LCD not busy
 *(volatile unsigned char *) (LCD_CTRL) = data;
 cbi(MCUCR, SRW);   // disable RAM waitstate
void main()
Could you help me to solve my problem ?
Would you give me the instruction for access the external memory ?

reply via email to

[Prev in Thread] Current Thread [Next in Thread]