Hello,
I use the BASIC-STAMP prof dev board equipped with a RS232DCE chip and have my PIC connected with 2 wires (GND and RA1 with RS232's "TX" pin).
Then I send some text data by pressing a button (I use the INT on RB0). The Led lets me know when the transmission starts and stops so I can double-check on the terminal's screen.
The terminal is set to 9600 Bauds, no parity, 8 bits and 1 stop bit.
I can see bytes received (the counter increments) in the terminal screen but I cannot see any caracter apearing on the screen.
Since I'm new to PICs, I don't use the USART features of the 16F88 at that time.
What am I doing wrong?
This is the code.
MAIN:
IF INTCON.1 = 1 then 'If INT happens, then...
INTCON.1 = 0 'Clear INTERRUPT
HIGH Portb.4 'Switch on Led - start transmission
SEROUT2 Porta.1, 84, ["TEST", 10, 13] 'Print this text in the terminal screen
LOW Portb.4 'Switch off Led - stop transmission
ENDIF
GOTO MAIN
END
Bookmarks