??? 04/18/06 20:37 Read: times |
#114478 - P89LPC922 UART |
Hello,
I'm working on a project that uses the P89LPC922 as the uC. One of the things that I'm having difficulty with is getting the UART to properly receive data. What I'm using: P89LPC922 MAX232 cct. RS232 cable PC (Hyperterminal) LCD screen I have tested all of my hardware and it works fine. I am using the Keil uVision3 IDE and it's great so far. My end goal is to have my 922 communicating (thru UART) with a nice little chip called the USBwiz (www.ghielectronics.com) Right now though I am just trying to get characters typed on a KB connected to the PC to show up on my LCD. My problem is that RI never seems to get set high when I type on the KB. I have TI working fine; I send data to the PC and it is displayed on my PC. I can also force UART reception to work by continually pulling data out from SBUF, but what I want is to only copy from SBUF when a key is pressed. I believe I have the UART, interrupts and I/O ports configured correctly. I can post my code if needed. I guess my question is: If I am sitting in an idle loop and the UART receives a chracter, an interrupt is generated and it should jump to my ISR right? Thanks for reading this far. |
Topic | Author | Date |
P89LPC922 UART | 01/01/70 00:00 | |
correct if | 01/01/70 00:00 | |
I have accounted for this | 01/01/70 00:00 | |
this may be the culprit | 01/01/70 00:00 | |
Yes!!! | 01/01/70 00:00 | |
P89LPC922 UART Solution | 01/01/70 00:00 | |
Isolation - Not generally necessary | 01/01/70 00:00 | |
what things | 01/01/70 00:00 | |
Opto-Isolators | 01/01/70 00:00 | |
These things?![]() | 01/01/70 00:00 | |
Polling UART | 01/01/70 00:00 | |
fine, but that is NOT the question | 01/01/70 00:00 | |
What about interrupts? | 01/01/70 00:00 | |
About interupts | 01/01/70 00:00 | |
I'd say THE plan | 01/01/70 00:00 |