??? 11/14/06 21:27 Modified: 11/14/06 21:29 Read: times |
#127994 - OK Responding to: ???'s previous message |
I got it wrong, it is standard, I have been working in other areas. anyhow, the one thing I would do to your code, as the very first, would be to get the display outside the UART ISR. do that whatever else you do. If in the display routines you use, use any interrupt driven things you WILL hang calling it from another ISR. Even if you do not have such in thye display stuff get the display call out of the ISR.
as a first attempt try something like this pseudocode a data variiable named char in the UART isr mov a,char jnz getout mov char,SBUF getout: clr RI reti in the loop loop: jz char,loop display 'char' mov char,#0 jmp loop Erik |
Topic | Author | Date |
Serial interface- Displaying SBUF data on LCD. | 01/01/70 00:00 | |
what device? | 01/01/70 00:00 | |
Just the 'integral part' Part of code | 01/01/70 00:00 | |
you still did not tell the derivative | 01/01/70 00:00 | |
Formatted Code | 01/01/70 00:00 | |
Missing code | 01/01/70 00:00 | |
Delay | 01/01/70 00:00 | |
Delay, Baudrate, Freq, etc. | 01/01/70 00:00 | |
Missing Code | 01/01/70 00:00 | |
Here's the wrLCDcom SR | 01/01/70 00:00 | |
is DELAY_5_1MS timer based? | 01/01/70 00:00 | |
Yes DELAY_5_1MS is timer based | 01/01/70 00:00 | |
so, you call one device generating an interrupt fr | 01/01/70 00:00 | |
Already tried that | 01/01/70 00:00 | |
then keep it that way | 01/01/70 00:00 | |
Here's the entire code.... | 01/01/70 00:00 | |
I quick look, not an analysis![]() | 01/01/70 00:00 | |
Have a look at this | 01/01/70 00:00 | |
Deriviative??? | 01/01/70 00:00 | |
Derivative | 01/01/70 00:00 | |
Oops... Derivative..gotcha | 01/01/70 00:00 | |
OK | 01/01/70 00:00 | |
TI & RI | 01/01/70 00:00 |