Discussion Forum

memory mapped i/o beyond ram area

Next Thread | Thread List | Previous Thread Start a Thread | Settings

DetailsMessage
Read-Only
Author
Erwin Pantuca
Posted
30-Jul-2002 11:26 GMT
Toolset
C51
New! memory mapped i/o beyond ram area
I have an application using 32K RAM (external), with memory mapped I/O beyond this area (from 8000). I have not tried it yet, but is it correct to set the ram size to 32K? Would the linker complain that the variable used for memmap i/o is beyond the preset ram size?
Read-Only
Author
Gary Partis
Posted
30-Jul-2002 13:18 GMT
Toolset
C51
New! RE: memory mapped i/o beyond ram area
I simply say that I have 64KBytes of memory and have a large 32KByte byte array from 0x8000 to 0xffff and use the _at_ statement to fix it to that location.

Then use something like :

io[IO_RTC]=0x55;

where io is the array, and IO_RTC is a memory mapped location offset within that array.

Hope that helps,

Gary Partis
Read-Only
Author
Alan Chen
Posted
30-Jul-2002 14:36 GMT
Toolset
C51
New! RE: memory mapped i/o beyond ram area
Hope this may help you a bit.


http://www.keil.com/support/docs/2107.htm

Next Thread | Thread List | Previous Thread Start a Thread | Settings