I have trouble using the timeout option of the SERIN2 command. Hope that anyone familar with this command can help me.
I have written a sample program below to tryout the command. If the command is correct, the LEDs should blink.
The LED is connected to PortA.0, Serial in pin is PortC.4
START: SERIN2 PORTC.4,188,50,LIGHT,[WAIT("TUV"),REC]
LIGHT: TOGGLE PORTA.0
GOTO START
I have tried it out on my chip but the LED doesn't blink. Have I used it the wrong way? The data sheets has an example of how to use the SERIN2 command and I followed it closely, my hardware works fine but it just doesn't work. Anyone can help?
Bookmarks