CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

RC5 is high on power-up

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
kender



Joined: 09 Aug 2004
Posts: 768
Location: Silicon Valley

View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger

RC5 is high on power-up
PostPosted: Thu Dec 15, 2011 5:58 pm     Reply with quote

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

View user's profile Send private message

PostPosted: Fri Dec 16, 2011 3:49 am     Reply with quote

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?.

Best Wishes
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2005 phpBB Group