| ??? 10/25/07 12:39 Read: times |
#146182 - UART1 S1BUF doesn't use std SFR Responding to: ???'s previous message |
OK..... The LPC952 has extended SFR's (Special Function Registers) for UART1 and other functions. See Page 18 of the P89PC952 USER MANUAL (not data sheet) Quoted here - [1] Extended SFRs are physically located on-chip but logically located in external data memory address space (XDATA). The MOVX A,@DPTR and MOVX @DPTR,A instructions are used to access these extended SFRs. [2] BRGR1_1 and BRGR0_1 must only be written if BRGEN_1 in BRGCON_1 SFR is logic 0. If any are written while BRGEN_1 = 1, the result is unpredictable. Which compiler are you using... Assembly code for UART0 writes/reads to/from SBUF Assembly code for UART1 uses the MOVX in the external memory. So get your complier to disassemble the S0BUF and S1BUF operations. Joe. |
| 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 |



