 | Discussion Forum |  |
|
|
a strange problem when using UARTNext Thread | Thread List | Previous Thread Start a Thread | Settings | Details | Message |
|---|
Read-Only Author Vuong Toan Dung Posted 28-Jun-2005 05:14 GMT Toolset C51 |  a strange problem when using UART Vuong Toan Dung I don't know why timer 0 is not running when PS flag of serial port is set | | Read-Only Author A.W. Neil Posted 28-Jun-2005 19:41 GMT Toolset C51 |  RE: a strange problem when using UART A.W. Neil Post the smallest complete piece of code that illustrates your problem.
Remember: use cut-and-paste; do not manually re-type.
Also remember to use the 'pre' and '/pre' tags, as explained in the Notes immediately above the Message box when you make your post. http://www.keil.com/forum/tips.asp | | Read-Only Author Oleg Sergeev Posted 29-Jun-2005 06:57 GMT Toolset C51 |  RE: a strange problem when using UART Oleg Sergeev hi,
I don't know why timer 0 is not running when PS flag of serial port is set
A reason may be that you forget to clear either TI or RI bit at the end of the serial interrupt. As result, your program comes back to the serial ISR after each command of main() and never goes to timer ISR because serial ISR has higher priority (PS=1) than timer one.
Regards, Oleg | |
Next Thread | Thread List | Previous Thread Start a Thread | Settings |
|