First, Make sure u have a small Cap on the power supply! (.1uF) . If that dose not fix it then ,
Add this after your "fuses"
DEFINE OSCCAL_1K 1
Change this:
SEROUT2 SER, 16780,["TEST" , 10] '2400 BAUD RATE
To
SerOut GPIO.4,N2400,["Test" ,10]
First, Make sure u have a small Cap on the power supply! (.1uF) . If that dose not fix it then ,
Add this after your "fuses"
DEFINE OSCCAL_1K 1
Change this:
SEROUT2 SER, 16780,["TEST" , 10] '2400 BAUD RATE
To
SerOut GPIO.4,N2400,["Test" ,10]
Kattronics:
I already tried what you said, with the DEFINE OSCCAL_1K 1 the PIC goes bonkers. Not sure what is wrong with it.
I also tried the SerOut GPIO.4,N2400,["Test" ,10] but no luck,
I think I would go with Ron's suggestion and try it out.
Nevertheless I succeeded in decoding Sony IR codes using the PIC ,which was my end intentions anyway, but just for the sake of testing out serial communication , I would compelete this experiment and post my results.
Thank you all.
Bookmarks