K66 Teensy 3.6 ADC Simultaneous Data Read Process

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

K66 Teensy 3.6 ADC Simultaneous Data Read Process

1,220 Views
foody
Contributor I

I am currently using a Teensy 3.6 with a K66 processor to use the two ADC's. 

Is there a way to configure ADC0 and ADC1 to record data simultaneously via some library or by writing directly to the K66's registers (ADCx_CFG1 , ADCx_SC2)? I am new to the K66 processor, so forgive me for my naivete. Thanks.

0 Kudos
Reply
1 Reply

1,053 Views
miduo
NXP Employee
NXP Employee

Hello,

Yes, the K66 has two ADC modules:ADC0 and ADC1, each ADC supports ping-pong mode, so two ADC modules can sample 4 channels. You can set the ADC in hardware triggering mode, you can use PDB to generate triggering signal to trigger ADC, the PDB CH0 is used to trigger ADC0, PDB CH1 is used to trigger ADC1. For more detail, you may take a look at the K66 reference manual.

https://www.nxp.com/docs/en/reference-manual/K66P144M180SF5RMV2.pdf 

Also we had a useful application note "Using DMA to Emulate ADC Flexible Scan Mode on Kinetis K Series" which is more helpful for your issue:

https://www.nxp.com/docs/en/application-note/AN4590.pdf 

0 Kudos
Reply