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

AD On Off

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



Joined: 09 Dec 2003
Posts: 13

View user's profile Send private message

AD On Off
PostPosted: Thu May 06, 2004 7:10 pm     Reply with quote

Well I need to shutdown the AD, and later power on. I wrote adcon_bit=0 to shutdown, but when i wrote adcon_bit=1 the devices don`t work again.
What I must to write, I need to initialize the interrupts?. If any body has an example code, is welcome?

Thanks in advance
Haplo



Joined: 06 Sep 2003
Posts: 659
Location: Sydney, Australia

View user's profile Send private message

PostPosted: Thu May 06, 2004 7:28 pm     Reply with quote

You can use setup_adc(ADC_OFF) to turn the ADC module off, and use the setup_adc() function with proper clock settings again to trun it back on.
Bomba



Joined: 09 Dec 2003
Posts: 13

View user's profile Send private message

PostPosted: Thu May 06, 2004 7:36 pm     Reply with quote

Thanks you ali.
I found an error in my code, (stupid error).
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