I got the same problem of Erdy (using TX/RX from software serial) after many test I made the modification on RS232.H suggested from Erdy/Anobium in this thread and now it work properly.
I should made another modification on RS232.H because the first char received was always corrupped.
this is the other fix on the RS232.H (by Anobyum) that i made for eliminate first corrupped received char
This is the test code (it does't work with the original RS232.H ... please you test also)
#chip 16F876A,20
#config OSC=HS
#define RS232ForPC <------------
#define SerInPort PORTC.4
#define SerOutPort PORTC.5
#define SendAHigh Set SerOutPort On
#define SendALow Set SerOutPort off
#define RecAHigh SerInPort on
#define RecALow SerInPort off
Dir SerOutPort Out
Dir SerInPort In
'doesn't work more than baud 9600
InitSer 1, r9600, 1+WaitForStart, 8, 1, None, normal
inizio:
SerReceive (1, Temp)
sersend (1, Temp)
goto inizio
I am compiling with synwrite 6.1.140 & Great Cow BASIC (0.9 22/9/2013)
the USB serial cable is Prolific
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I got the same problem of Erdy (using TX/RX from software serial) after many test I made the modification on RS232.H suggested from Erdy/Anobium in this thread and now it work properly.
I should made another modification on RS232.H because the first char received was always corrupped.
this is the other fix on the RS232.H (by Anobyum) that i made for eliminate first corrupped received char
This is the test code (it does't work with the original RS232.H ... please you test also)
I am compiling with synwrite 6.1.140 & Great Cow BASIC (0.9 22/9/2013)
the USB serial cable is Prolific