S32K312 Using TWO PIT Trigger and using TWO BTCU list & FIFO for parallel ADC conversion & DMA

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

S32K312 Using TWO PIT Trigger and using TWO BTCU list & FIFO for parallel ADC conversion & DMA

S32K312 Using TWO PIT Trigger and using TWO BTCU list & FIFO for parallel ADC conversion & DMA

*******************************************************************************

 The purpose of this demo application is to present a usage of the
 ADC_SAR and BCTU IP Driver for the S32K3xx MCU.

The example uses the TWO PIT0 trigger to trigger BCTU conversion list to perform parallel conversions on ADC0/ADC1.
Each Trigger has one LIST associated with it in the BCTU.
Conversion result for EACH list is stored in individual FIFO of the BCTU.
DMA will transfer the ADC conversion result.

LIST-1 ADC channels 
are selected to be converted on each ADC:

Dinesh_Guleria_0-1732515140621.png

 

Dinesh_Guleria_3-1732515310216.png

 

LIST-2 ADC channels are selected to be converted on each ADC:--

Dinesh_Guleria_1-1732515218056.png

 

Dinesh_Guleria_2-1732515238497.png

 


 Converted results from BCTU FIFO are moved by DMA into result array.

 ADC channel S10 is connected to board's potentiometer.

Result :--

Dinesh_Guleria_4-1732515381279.png

 



 ------------------------------------------------------------------------------
* Test HW: S32K3X4EVB-Q172
* MCU: S32K312
* Compiler: S32DS3.5
* SDK release: RTD 3.0.0
* Debugger: PE Micro
* Target: internal_FLASH
********************************************************************************

Attachments
No ratings
Version history
Last update:
‎11-24-2024 11:23 PM
Updated by: