martarse
- 3rd August 2004, 12:48
Hello,
There is the code that I used for testing communication between PIC16F84A and RS232 computer port :
---------------
include "modedefs.bas"
define CHAR_PACING 1000
define OSC 8
here: serout porta.1,T9600,["Hello"]
serout porta.1,T9600,[" MartiN "]
goto here
---------------
For the moment I just want to send information to the serial port. When I used this code I'm not able to see the message "Hello Martin " on the computer port.
I've try with and without CHAR_PACING and I've try many other mode like T1200, T2400 and does not seems to work. I see only garbadge on the port.
My oscillator (HS mode) is a 8MHz xtal with 22uF Cap.
The connection between DB9 port and Pic is a 1K resistor as described in the PBP documentation for SEROUT command.
someone can help me to read the good character on the serial port???
thanks!!
There is the code that I used for testing communication between PIC16F84A and RS232 computer port :
---------------
include "modedefs.bas"
define CHAR_PACING 1000
define OSC 8
here: serout porta.1,T9600,["Hello"]
serout porta.1,T9600,[" MartiN "]
goto here
---------------
For the moment I just want to send information to the serial port. When I used this code I'm not able to see the message "Hello Martin " on the computer port.
I've try with and without CHAR_PACING and I've try many other mode like T1200, T2400 and does not seems to work. I see only garbadge on the port.
My oscillator (HS mode) is a 8MHz xtal with 22uF Cap.
The connection between DB9 port and Pic is a 1K resistor as described in the PBP documentation for SEROUT command.
someone can help me to read the good character on the serial port???
thanks!!