| ??? 02/08/02 01:10 Read: times |
#19515 - RE: HELP ME........ |
Line 9 appears to be your problem. I ran your code through Pinnacle simulator and as soon as Interrupt Enable instruction executed it began looping in a permanent interrupt cycle. In line 9 you set SCON to 42h which sets the Ri bit instead of clearing it. Per my 8052 programming guide this bit is set by hardware and cleared by software.
Good luck, Hal |



