Communication between PC and PIC16f876
Hello
My project and to make a billposter unwinding, who shows what I send it of the PC.
Here is my problem I have to pass on a message (thus characters) of the PC towards a PIC16F876 via the connection RS232.
To send characters I use an interface Visual Basic and as composing of change of signals (+10 /-10V - > +5 / 0V) I use a SP233ACP.
When that I look at the signals of the component there is indeed communication between both but the PIC receive that zeros or then it does not understand what I send it.
I would like to know how to connect the PIC with the PC and if you have an interface to send a mesage I am a buyer.
Thank you
KNSTEAM
Communication between PC and PIC16f876
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