UART Troubleshooting / Help - PIC16F689 + CP2102 fix

Thread Starter

finevlad

Joined Feb 5, 2014
1
Bosnia, Banja Luka :D

I bought PIC 16F628, and UART WORKS !!!!!!!!!!!!!!!
I can explain why the code was not working on PIC16F689 and is now working on 628 - it is due to the fact that analog inputs are enabled by default and if you look at the diagram in the datasheet they force output 0 of the RX pin - so your uart was constantly starting receiption and getting frame error- stopping it. so simple to fix your original code was to add ANSELH = 0;
I know the original thread was closed but there was not solution there and think it is very important to have it for those who decide to use it in the future..
 

tshuck

Joined Oct 18, 2012
3,534
The thread isn't closed. There is a checkbox that you must check to acknowledge the age of the thread.

I'm trying to figure out how this would help someone looking at that thread? How would they even find this one?
 
Top