For the 16F628A you're setting the RX input (RB1) to output mode.Code:TRISB=%00000001 'Make RB0 input
The datasheet says to set both bits TRISB.2 (RB2/TX) and TRISB.1 (RB1/RX).
For the 16F628A you're setting the RX input (RB1) to output mode.Code:TRISB=%00000001 'Make RB0 input
The datasheet says to set both bits TRISB.2 (RB2/TX) and TRISB.1 (RB1/RX).
Bookmarks