That looks a lot like the manual.
There are a couple of things to keep in mind:
The internal oscillator if your chip has one will not be good enough.
Baud and parity has to be the same on both ends.
include "modedefs.bas" needs to be at the beginning of the program.
The manual has enough examples to get started. If you run into a particular problem let us know.
The code will look some thing like this.
Code:
SEROUT PORTC.4,T2400,[9,DEC 10] ' Sends at 2400 baud TRUE,the character 9and the decimal 10
SERIN PORTC.4,T2400,[9],net 'Waits for the character 9 and writes the next value to the variable net.
Bookmarks