how to set the adc prescale factor.

tjwpfr
Posts: 1
Joined: Tue Apr 11, 2017 4:20 am

how to set the adc prescale factor.

Postby tjwpfr » Tue Apr 11, 2017 4:53 am

I'm new to working outside of the standard arduino environment but I need to be able sample at a consistent known rate that is slower than the esp32's default rate (i think i clocked it in at 100,000 hz or so). rather than messing around with

Code: Select all

if (currentMillis - previousMillis >= interval)
statements i was hoping i could do this by just changing the prescaler factor, there is heaps of information on how to do this on avr micro controllers (eg. http://maxembedded.com/2011/06/the-adc-of-the-avr/) but I can't find any information on how to do this on the esp32.

Who is online

Users browsing this forum: No registered users and 16 guests