- Tue Jan 07, 2020 8:31 pm
#211000
I was trying to do some simple ADC's using the Redboard Artermis and I can't get my results to match my meter. I took into account the 2.0VDC reference and the 10 bit ADC. The Meter reads 1.4V and the redboard is giving me 1.3V. I am trying to read an NTC style thermocouple with a 100K in series resistor so I know that I have a high impedance load.
I found an app note in their documentation for the Apollo2 ( a little outdated) about setting up the ADC settling time. The problem is that I can't figure out what register or HAL command is used to control the settling time.
https://www.ambiqmicro.com/static/mcu/f ... rev1_1.pdf
Here is my read:
I looked through the
am_hal_adc.c file
and could not find what I was looking for.
Thanks,
Tom
I found an app note in their documentation for the Apollo2 ( a little outdated) about setting up the ADC settling time. The problem is that I can't figure out what register or HAL command is used to control the settling time.
https://www.ambiqmicro.com/static/mcu/f ... rev1_1.pdf
Here is my read:
Code: Select all
Just wondering if anyone else has run into this issue. If I plug a traditional atmel style redboard in, and change the reference to 5.0, all works well and the voltages match. double voltage = analogRead(A0)*2.0/1024;
I looked through the
am_hal_adc.c file
and could not find what I was looking for.
Thanks,
Tom