Nice Al. I missed that!
Ioannis
I will try this tonight when I get home from work.
I had commented the ADCON out when I switch from a 16F819 to a 16F84A. The 84A does not have a A/D conveter.
Having the TRIS commented or uncommented did not make a difference.
If I cant get this to work I will switch to a SX28 processor. I have the code working on my DEV board with LED's with SX/B.
Jason
It is absolutely necessary to define the state of the Inputs and Outputs. On Reset the controller set all pins as inputs.
Give special attention as to which pins you define inputs and outputs. There are cases that pins are not only inputs but set as analog input too!
So,
1. Read with extreme attention to the details the datasheet for the MCU you use.
2. Set if any analog/comparator inputs accordingly
3. Set the pins as inputs and outputs (unused as outputs and unconnected)
Ioannis
Got it working. Thank's Ioannis and every one else. It must have been stack overflow. I'm getting rusty. Used to do 5 or 6 PIC projects a year but haven't done one in 2 years.
Jason
Bookmarks