Hello friends,
Need help with the below code.
The timeout occurs very soon, is there a way to slow it ?
Cheers
Mastero
Need help with the below code.
Code:
Define SERIN_TIMEOUT_REG = INTCON
Define SERIN_TIMEOUT_BIT = TMR0IF
slave:
i = 0
slaveready = False
Serout PORTB.0, 9600, "A", CrLf
loop:
Serin PORTB.1, 9600, serdata 'GETS STUCK HERE WHEN NOTHING RECEIVED
If serdata > 0 Then
If serdata = "K" Then
slaveready = True
Return
Endif
Endif
i = i + 1
If i = 1000 Then Return
Goto loop
Return
The timeout occurs very soon, is there a way to slow it ?
Cheers
Mastero
Last edited by a moderator: