View previous topic :: View next topic |
Author |
Message |
Bomba
Joined: 09 Dec 2003 Posts: 13
|
AD On Off |
Posted: Thu May 06, 2004 7:10 pm |
|
|
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 |
|
![](templates/subSilver/images/spacer.gif) |
Haplo
Joined: 06 Sep 2003 Posts: 659 Location: Sydney, Australia
|
|
Posted: Thu May 06, 2004 7:28 pm |
|
|
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. |
|
![](templates/subSilver/images/spacer.gif) |
Bomba
Joined: 09 Dec 2003 Posts: 13
|
|
Posted: Thu May 06, 2004 7:36 pm |
|
|
Thanks you ali.
I found an error in my code, (stupid error). |
|
![](templates/subSilver/images/spacer.gif) |
|