??? 04/15/09 23:26 Modified: 04/15/09 23:29 Read: times |
#164641 - I would... Responding to: ???'s previous message |
...omit these lines
//clear any Flags that may have been set during init. RI = 0; TI = 0; because this is already accomplished in the line SCON = 0x50; Also, make this line BRGCON = 0x03 be the last instruction of your UART routine. This means, remove it from the place where it residues up to now and move it to the end of your code snippet. The idea of this is to start the baud rate generator only after all the configuring, including the interrupt settings, is done. Maybe this helps. Kai |
Topic | Author | Date |
RI always set after EA Set | 01/01/70 00:00 | |
I don't know, but... | 01/01/70 00:00 | |
your application should be designed so as to be tolerant | 01/01/70 00:00 | |
Check if the Rx pin is pulled low? | 01/01/70 00:00 | |
Ports are set as: | 01/01/70 00:00 | |
without looking at the datasheet, I can say it is wrong | 01/01/70 00:00 | |
Why? | 01/01/70 00:00 | |
I did not clean my glasses | 01/01/70 00:00 | |
Config Registers | 01/01/70 00:00 | |
Check the BR and FE bits in SSTAT. | 01/01/70 00:00 | |
Yes they are set - Why? | 01/01/70 00:00 | |
When do you start the BRG? | 01/01/70 00:00 | |
BRG set as part of UART Init (before EA) | 01/01/70 00:00 | |
I would... | 01/01/70 00:00 | |
Thanks - Done![]() | 01/01/70 00:00 | |
aren't the LPC9xx's pins... | 01/01/70 00:00 | |
Yes but - it also happens in the real hardware | 01/01/70 00:00 | |
the point of asking nonsense questions... | 01/01/70 00:00 | |
Understood, appreciate being 2nd guessed | 01/01/70 00:00 | |
The Teddy Bear Effect | 01/01/70 00:00 |