I'm working on an active project using the PIC16F1779 MCU, and I have a question regarding the ADC peripheral.
I need to monitor the voltage levels on multiple analog inputs sequentially. From what I’ve seen, this task could be handled quite easily using the ADC (CAL) Macro.
However, I’m a bit confused about how to properly configure it. Specifically:
- In the ENABLE command, what value should I assign to the Conv_Speed parameter if I want the conversion clock to be, for example, Fosc/32?
- The value of the "T_Charge" parameter must be given in microseconds, while in the Component Properties window this parameter is indicated as "Acq Time" and it seems to share the same list of selectable values as Conv_Speed. What value should I enter here?
Would anyone be able to share a simple example program or point me in the right direction?
Thanks in advance for your help!
Regards,
Sasi