according to datasheet page 62 note 4:
4: When the device frequency is greater than 1 MHz, the FRC clock source is only recommended if the
conversion will be performed during Sleep.
them yo have two choice not use the internal FRC :
Code:
setup_adc(ADC_CLOCK_DIV_8);
//this case adc will need 2us to make convesion
or
setup_adc(ADC_CLOCK_DIV_16);
//this case adc will need 4us to make convesion
arachid
Joined: 15 Oct 2016 Posts: 11
Posted: Tue Feb 19, 2019 6:55 pm
according to datasheet page 62 note 4:
4: When the device frequency is greater than 1 MHz, the FRC clock source is only recommended if the
conversion will be performed during Sleep.
them yo have two choice not use the internal FRC :
Code:
setup_adc(ADC_CLOCK_DIV_8);
//this case adc will need 2us to make convesion
or
setup_adc(ADC_CLOCK_DIV_16);
//this case adc will need 4us to make convesion
Rez
Joined: 10 Feb 2019 Posts: 26
Posted: Tue Feb 19, 2019 7:02 pm
Everything is working now and I changed the ADC clock as well, Thanks everyone.
All times are GMT - 6 Hours Goto page Previous1, 2
Page 2 of 2
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