??? 04/27/09 15:37 Read: times |
#164866 - Using XRAM in C |
I'm using an Analog Devices ADUC847 chip which has 2kb of on-chip XRAM and the keil compiler. I'm trying to write to and read from this memory. I've written this, for example
unsigned char xdata array[size]; array[0] = 'A'; I send this to a UART_Transmit function which attempts to write the contents to SBUF = array[0] //A UART transmit buffer and the contents come out on hyperterminal as extended ascii characters that make no sense. Any thoughts or input on what might be happening would be greeatly appreciated. P.S. I looked at the underlying assembly and there are equivalent MOVX, @DPTR, A instructions appearing, however, there doesn't seem to be any associated memory addresses. |
Topic | Author | Date |
Using XRAM in C | 01/01/70 00:00 | |
You generally have to set a sfr bit | 01/01/70 00:00 | |
That Worked | 01/01/70 00:00 | |
Cross-posted | 01/01/70 00:00 | |
so we at least know, that it's Keil... | 01/01/70 00:00 | |
thanks | 01/01/70 00:00 | |
Cross-posting | 01/01/70 00:00 | |
Cross Posting, Whats Wrong? | 01/01/70 00:00 | |
Unfortunately, many people forget that. | 01/01/70 00:00 | |
New posters can't know | 01/01/70 00:00 | |
how to behave | 01/01/70 00:00 | |
Multi-tier set of conventions![]() | 01/01/70 00:00 |