| ??? 11/01/07 09:29 Read: times |
#146441 - Whose header? Responding to: ???'s previous message |
Jay Dave said:
When i checked dis assemble code, some how it was sending data to 0xFFB1 in stead of 0xFFB0 (S1BUF address), i checked with my micrcontroller header file it was define at 0xFFB0. Where did you get that header? The Keil recommended header is here: http://www.keil.com/dd/chip/3936.htm http://www.keil.com/dd/docs/c51/philips/reg952.h Keil's reg952.h said:
/* Serial 1 Configuration */ #define S1ADDR (*((unsigned char volatile xdata*)0xFFB2)) #define S1ADEN (*((unsigned char volatile xdata*)0xFFB1)) #define S1BUF (*((unsigned char volatile xdata*)0xFFB0)) That seems to be the correct address. As this is all done with #defines, did you look at the pre-processor output to check that it's being expanded correctly? |
| Topic | Author | Date |
| UART1 problem in P89LPC952 | 01/01/70 00:00 | |
| What ? | 01/01/70 00:00 | |
| Compare with other examples | 01/01/70 00:00 | |
| Compare with other examples ... and | 01/01/70 00:00 | |
| Re: Compare with other examples | 01/01/70 00:00 | |
| now you have two | 01/01/70 00:00 | |
| Don't trust anything | 01/01/70 00:00 | |
| Re:Don't trust anything | 01/01/70 00:00 | |
| its working | 01/01/70 00:00 | |
| how? | 01/01/70 00:00 | |
| Re:how? | 01/01/70 00:00 | |
| Yep : Don\'t trust anything! | 01/01/70 00:00 | |
| Whose header? | 01/01/70 00:00 | |
Re:Whose header? | 01/01/70 00:00 | |
| MCB950 board is working | 01/01/70 00:00 | |
| UART1 S1BUF doesn't use std SFR | 01/01/70 00:00 | |
| Check the header file | 01/01/70 00:00 | |
| Re:Check the header file | 01/01/70 00:00 | |
| Overcomplicated? | 01/01/70 00:00 |



