Hi Michael, The sequence and register settings seems correct at first glance. I have done something similar in the past so I would expect it to work. How long are you waiting between reads? I suppose the first things to check are pin configuration and clocking. How have you configured your ADC input pin? You have selected the dedicated ADC12OSC internal ADC clock as your reference clock which should be running around 5MHz I believe - so that seems ok. If I understand correctly, the ADC value is always reading high? What is the actual value read by the ADC? Could you double check that you are setting the reference selection correctly. It looks like you are using the external negative reference voltage. Is that correct?
↧