Hi, guys,
ADC of Maple is powerful. I am wondering if ADC can be configured to trig automatically and periodically to get sample data of sounds.
Could anyone kindly give me some hints?
Regards and Thanks!
Hi, guys,
ADC of Maple is powerful. I am wondering if ADC can be configured to trig automatically and periodically to get sample data of sounds.
Could anyone kindly give me some hints?
Regards and Thanks!
Yes you can trigger the ADC by a timer or external event, although you have to use the low-level ADC interface in limaple
http://leaflabs.com/docs/libmaple/api/adc.html#libmaple-adc
and most probably also DMA
http://leaflabs.com/docs/libmaple/api/dma.html
This would be my inital approach:
1. set-up a timer
2. define the ADC channels to be sampled (adc_set_reg_seq_len, ADC_SQR1-3)
3. define the trigger mode of the ADC (adc_set_extsel)
4. set-up DMA to transfer a given number of ADC samples to RAM and notify you by an interrupt.
ventosus:
Thank you very much!
I am new to maple, so there is a long way.
You must log in to post.