ADCON1 = 15
CMCON = 7
??
<br>
Problem solved!
In our lab, we had an old version of MPLAB (7.20) that apparently didn't support the 18F67J60 properly. I upgraded to MPLAB version 8.0 - VOILA! The LED is flashing now.
Charles Linquist
I should also mention that I use an ICD2 to load code. MPLAB version 7.2 was setting the configuration registers incorrectly.
Charles Linquist
first post it was a 66J60, and now 67J60
it still work even with CMCON=0 ? but yeah.. maybe as long as there's nothing attach to the comparator input... it shouldn't caused any grief.. i'm just a little bit surprised
EDIT: thanks for the update about ICD2
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Can't imagine Charles using less than 128K.
So I believe it was a 67J60 all along.
<br>
DT
A typo. I'm using an 18F67J60
And Darrel, you are correct. I'm constantly hammering on Microchip to build a bigger 18F part.
It seems that I might be getting their attention. Stay tuned!
Charles Linquist
Bookmarks