camerart
Well-Known Member
Hi,
I have asked similar questions about 'AND' and 'OR' etc before, but I would like to clear up an 'OR' question this time.
Does the OR here do what I hope, and check either RCSTA.OERR = 1 Or RCSTA.FERR = 1 then do till the ENDIF?
Camerart
-----------------------------------------------------------------------------------
If RCSTA.OERR = 1 Or RCSTA.FERR = 1 Then
RCSTA.CREN = 0
RCSTA.CREN = 1 'BIT4 ENABLES RECEIVER
char = RCREG '1
char = RCREG '2
err = 1 'ERROR
Endif
------------------------------------------------------------------------
I have asked similar questions about 'AND' and 'OR' etc before, but I would like to clear up an 'OR' question this time.
Does the OR here do what I hope, and check either RCSTA.OERR = 1 Or RCSTA.FERR = 1 then do till the ENDIF?
Camerart
-----------------------------------------------------------------------------------
If RCSTA.OERR = 1 Or RCSTA.FERR = 1 Then
RCSTA.CREN = 0
RCSTA.CREN = 1 'BIT4 ENABLES RECEIVER
char = RCREG '1
char = RCREG '2
err = 1 'ERROR
Endif
------------------------------------------------------------------------