Storic
Joined: 03 Dec 2005 Posts: 182 Location: Australia SA
|
Soft RS232 |
Posted: Sat Apr 01, 2006 6:42 am |
|
|
Hi,
Just a note on how I resolved Software RS232, Sending Garbage Characters. I could get the RS232 to work on the built in UART, however when program for software UART, I was receiving Garbage Characters.
Code: | #use rs232(Stream=Wview,baud=9600,xmit=PIN_B7,rcv=PIN_B6,bits=8) |
After reprogramming my code under RTOS, I found the RS232 working as expected. I the reprogram back and found that the interrupt had cause this problem. After disabling the interrupt All works Well
Code: | #use rs232(Stream=Wview,baud=9600,xmit=PIN_B7,rcv=PIN_B6,bits=8,DISABLE_INTS) |
You probly need to add E: in your RS232 The PICŪ is Sending Garbage Characters. (To add DISABLE_INTS in your #use rs232 if you are using interrupts)
Andrew _________________ What has been learnt if you make the same mistake? |
|