SparkFun Forums 

Where electronics enthusiasts find answers.

Everything with the AmbiqSuite SDK tools and software are welcome here.
User avatar
By pcbGuru
#232172
Hello,
I am making a peak detector, and want to feed its signal into the Appolo 3 MCU ADC. It would be great if I could sync the peak detector reset pin with the ADC, so that whenever the ADC takes a sample it reads the latest peak.

Question is, can I somehow bring the ADC clock out to a GPIO pin? I.e, if the clock signal is high, the GPIO pin is high and when the clock is low, the GPIO pin is low.

Thanks.
By paulvha
#232176
1. When performing an analogRead() it is a ONE-shot occurrence to read the ADC. Not sure how precise you want to get it/ need it, but the set a GPIO output HIGH, JUST before the analogRead(), might be enough.

2. if you need to get it 100% aligned, the ADC clock in the Sparkfun Library is the HRFC (so 48Mhz). According to the datasheet, this signal is not available on a GPIO. There are different clock sources that can be made available with CLKOUT, HFRC is not part of that.
 Topic permissions

You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

long long title how many chars? lets see 123 ok more? yes 60

We have created lots of YouTube videos just so you can achieve [...]

Another post test yes yes yes or no, maybe ni? :-/

The best flat phpBB theme around. Period. Fine craftmanship and [...]

Do you need a super MOD? Well here it is. chew on this

All you need is right here. Content tag, SEO, listing, Pizza and spaghetti [...]

Lasagna on me this time ok? I got plenty of cash

this should be fantastic. but what about links,images, bbcodes etc etc? [...]