Joined: 09 Aug 2004 Posts: 768 Location: Silicon Valley
RC5 is high on power-up
Posted: Thu Dec 15, 2011 5:58 pm
Folks,
When I was setting up the internal OpAmp in PIC16HV785, I’ve noticed that RC6 was high on power-up. There was no additional initialization to the simple project wizard generated initialization (I can post my code).
I found a workaround. input(PIN_C6) removes the logic high output and the OpAmp1 works as expected.
Code:
input(PIN_C6);
setup_opamp1(TRUE);
I wonder why RC6 was high in the first place?
- Nick
16HV785
PCWH 4.081 _________________ Read the label, before opening a can of worms.
Ttelmah
Joined: 11 Mar 2010 Posts: 19540
Posted: Fri Dec 16, 2011 3:49 am
You need to show us what else you are configuring before this point. For some reason the output driver is being switched on (output_float(PIN_C6) would also solve the problem).
What compiler version?.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum