??? 11/25/04 19:03 Read: times |
#81955 - MSV1211 memory(XRAM?) & Serial port |
Hi,
I'm writing a test program using SDCC for MSC1211Y5, and trying to allocate a buffer(at least 1k size). Wheneever I use an example from SDCC distributives: --- unsigned char xdata dynamic_memory_pool[0x800]; unsigned char xdata * current_buffer; --- the serial port communication disappears - printf() and getchar() wouldn't work. What I could find from documentation, sounds like I cannot have the simultaneous access to external data memory and serial port communication: If external memory is used, P0 and P2 can be configured as address and data lines. If external memory is not used, P0 and P2 can be configured as general-purpose I/O lines through the Hardware Configuration Register. To enable access to external memory bits 0 and 1 of the HCR1 register must be set to 0. When these bits are enabled all memory accesses for both internal and external memory will appear on ports 0 and 2. Moreover, I couldn't find the documentation on how to switch from accessing external memory/to communicating with serial port in the programm running mode. Can anybody give an idea how to do so, or what i'm doing wrong. Thanks in advance, and sorry if it is a dumb question. |
Topic | Author | Date |
MSV1211 memory(XRAM?) & Serial port | 01/01/70 00:00 | |
MSC1211 | 01/01/70 00:00 | |
Second serial port | 01/01/70 00:00 | |
Initialise serial port | 01/01/70 00:00 | |
serial setup | 01/01/70 00:00 | |
Re: Initialise serial port | 01/01/70 00:00 | |
libraries | 01/01/70 00:00 | |
Not any Good | 01/01/70 00:00 | |
correct bits to enable internal![]() | 01/01/70 00:00 |