i'm just affraid about your baudrate definition here
Code:
Serin PORTC.1, 9600, temp1 'Rx port 8
9600??? This value is wrong, the calculation is explain in your manual. @9600 bauds, 4MHZ crystal may work or not. Another thing, we don't know your PIC model, it may exist some analog stuff on PORTC... refer to your datasheet for that.
also by seeing.. those lines...
Code:
Dim a1 As Byte
.
.
.
WaitMs 50
it sounds to me that you use PROTON instead of Melabs PICBASIC. Sorry dude, you're on the wrong forum. www.picbasic.org/forum
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Bookmarks