Hi Ralph,
I've tested this routine on 3 controllers, and SERIN2 works equally well on 16F or 18F parts.
PBP v2.45a
20MHz
PIC16F876A
PIC18F252
PIC18F452
X VAR BYTE
MAIN: ' 9600 bps INVERTED
SERIN2 PORTB.2,16468,1000,Loop,[WAIT("A"),X]
GOTO Main
Loop:
HIGH PORTB.0
PAUSE 250
LOW PORTB.0
GOTO MAIN
No serial input on RB2. Pull RB2 LOW -- the LED on RB0 blinks. Pull it HIGH -- the LED never blinks.
I get the same results with any timeout value.
Bookmarks