Dec 18, 2004 #1 S sacrpio Member level 3 Joined May 24, 2004 Messages 56 Helped 1 Reputation 2 Reaction score 1 Trophy points 1,288 Activity points 500 External Memory Access.. We acces external memory using XDATA in Keil C. Is there any other method to acess the external memory. thanks
External Memory Access.. We acces external memory using XDATA in Keil C. Is there any other method to acess the external memory. thanks
Dec 29, 2004 #2 A aamiralikhoja Member level 5 Joined Aug 11, 2004 Messages 90 Helped 1 Reputation 2 Reaction score 1 Trophy points 1,288 Activity points 708 Re: External Memory Access.. u can use inline assembly put address in DPTR and access the byte or use xbyte[address] = value value = xbyte[address] learn more the final word on 8051 microcontroller
Re: External Memory Access.. u can use inline assembly put address in DPTR and access the byte or use xbyte[address] = value value = xbyte[address] learn more the final word on 8051 microcontroller
Apr 6, 2005 #3 B bsiswoyo Member level 5 Joined Jul 27, 2001 Messages 86 Helped 5 Reputation 10 Reaction score 5 Trophy points 1,288 Location INDONESIA Activity points 1,123 Re: External Memory Access.. sacrpio said: We acces external memory using XDATA in ke*il C. Is there any other method to acess the external memory. thanks Click to expand... for example define memory at xram as: var_int as integer var_char as char var_long as long address begin 8000H: 8255_PortA as char 8255_PortB as char 8255_PortC as char 8255_PortCR as char you must declare as: int xdata var_int; char xdata var_char; long xdata var_long; char xdata 8255_PortA _at_ 0x8000; char xdata 8255_PortB _at_ 0x8001; char xdata 8255_PortC _at_ 0x8002; char xdata 8255_PortCR _at_ 0x8003; To assign and read data to/from variable like you write in C programming. Added after 30 minutes: Read this link:
Re: External Memory Access.. sacrpio said: We acces external memory using XDATA in ke*il C. Is there any other method to acess the external memory. thanks Click to expand... for example define memory at xram as: var_int as integer var_char as char var_long as long address begin 8000H: 8255_PortA as char 8255_PortB as char 8255_PortC as char 8255_PortCR as char you must declare as: int xdata var_int; char xdata var_char; long xdata var_long; char xdata 8255_PortA _at_ 0x8000; char xdata 8255_PortB _at_ 0x8001; char xdata 8255_PortC _at_ 0x8002; char xdata 8255_PortCR _at_ 0x8003; To assign and read data to/from variable like you write in C programming. Added after 30 minutes: Read this link: