why do we need to select the both clock bits from ADCON0 & ADCON1 in pic16?
What will happen when we select either?
Ttelmah
Joined: 11 Mar 2010 Posts: 19499
Posted: Mon Jun 08, 2015 4:13 am
1) What chip.
2) Don't. Let CCS handle the selections for you. For 99.9% of things you never need to touch a register in CCS.
3) Normally on the PIC16, the clock selection is entirely done using ADCON1. Loop back to 1.....
Normally ADCON0 controls which channel is selected from the multiplexer, and triggers the actual conversion. ADCON1 sets the clock, voltage reference, and data format. ADCON2 allows the ADC to be started by a 'trigger'.
A few old chips like the 87xA, have the clock selection bits split into 1 in ADCON1 and 2 in ADCON0. The bit in ADCON1 in these actually does nothing. So back to '1'....
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