Hello Dave
Baud rate from PC: 19200bps, No Parity, 8 bits, and 1 stop bit.
The fastest i can transfer data at is 9600bps, so i need to fool the PIC to send data faster.
I do this by saying that I have a 10MHz oscillator, but in fact i am using a 20MHz oscillator. By doing this, everything will run twice as fast, therefore, 9600*2=19200.
Program:
' C O M M U N I C A T I N G W I T H T H E C O M P U T E R '
PCtalk:
i = 0 : pause 100
CTS = 1
SERIN PORTA.4,N9600,["@"],char
getserial:
Serin PORTA.4,N9600,char
write i, char
if char = EOM then
CTS = 0
Goto start
endif
i = i + 1
goto getserial
I hope to have given more information and that you can help me.
Excuse me for my English (I am French).
Knsteam
Bookmarks