HI All
I have look on the website (swordfish) where it use PICKIT 2 to Tx/Rx from PC directly using UART Tool.
http://www.digital-diy.net/18F%20Exa...CKit2UART.aspx
I had tried to do it as the website above with the following code. But FAILED!!
On the UART Tool:-
Echo is ON. When I type Hello, the screen only shown Hello Once and does not shown Hello Twice (send and echo). WHY??
Code:
DEFINE OSC 4
' Set baud rate
DEFINE HSER_BAUD 9600
DEFINE HSER_CLROERR 1
datain VAR BYTE
main:
HSerin [datain]
HSerout [datain]
GoTo main
Thanks
Peter
Bookmarks