Example S32K344 PIT BTCU parallel ADC FIFO DMA DS3.5 RTD300

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

Example S32K344 PIT BTCU parallel ADC FIFO DMA DS3.5 RTD300

Example S32K344 PIT BTCU parallel ADC FIFO DMA DS3.5 RTD300

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

 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 PIT0 trigger to trigger BCTU conversion list to
 perform parallel conversions on ADC0/ADC1. Three ADC channels
 are selected to be converted on each ADC:
 ADC0: S8 , P0, S8
 ADC1: S10, S13, S17
 Converted results from BCTU FIFO are moved by DMA into result array.

 ADC channel S10 is connected to board's potentiometer, and converted value is
 used to dim board's LED.


 ------------------------------------------------------------------------------
* Test HW: S32K3X4EVB-Q172
* MCU: S32K344
* Compiler: S32DS3.5
* SDK release: RTD 3.0.0
* Debugger: Lauterbach
* Target: internal_FLASH
********************************************************************************

Attachments
Comments

Thank you for this example. But how do you decide what should be the watermark value?


Hi @PetrS ,

 

Is there a way to use DMA without Autosar (without enabling RM CDD)?

%3CLINGO-SUB%20id%3D%22lingo-sub-1732444%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EExample%20S32K344%20PIT%20BTCU%20parallel%20ADC%20FIFO%20DMA%20DS3.5%20RTD300%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1732444%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%0A%3CP%3E*******************************************************************************%3CBR%20%2F%3E%3CBR%20%2F%3E%26nbsp%3BThe%20purpose%20of%20this%20demo%20application%20is%20to%20present%20a%20usage%20of%20the%20%3CBR%20%2F%3E%26nbsp%3BADC_SAR%20and%26nbsp%3BBCTU%20IP%20Driver%20for%20the%20S32K3xx%20MCU.%3CBR%20%2F%3E%3CBR%20%2F%3E%26nbsp%3BThe%20example%20uses%20the%20PIT0%20trigger%20to%20trigger%20BCTU%20conversion%20list%20to%20%3CBR%20%2F%3E%26nbsp%3Bperform%26nbsp%3Bparallel%20conversions%20on%20ADC0%2FADC1.%20Three%20ADC%20channels%20%3CBR%20%2F%3E%26nbsp%3Bare%20selected%20to%20be%20converted%26nbsp%3Bon%20each%20ADC%3A%3CBR%20%2F%3E%26nbsp%3BADC0%3A%20S8%20%2C%20P0%2C%20S8%3CBR%20%2F%3E%26nbsp%3BADC1%3A%20S10%2C%20S13%2C%20S17%3CBR%20%2F%3E%26nbsp%3BConverted%20results%20from%20BCTU%20FIFO%20are%20moved%20by%20DMA%20into%20result%20array.%3CBR%20%2F%3E%3CBR%20%2F%3E%26nbsp%3BADC%20channel%20S10%20is%20connected%20to%20board's%20potentiometer%2C%20and%20converted%20value%20is%20%3CBR%20%2F%3E%26nbsp%3Bused%20to%20dim%20board's%20LED.%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%26nbsp%3B------------------------------------------------------------------------------%3CBR%20%2F%3E*%20Test%20HW%3A%20S32K3X4EVB-Q172%3CBR%20%2F%3E*%20MCU%3A%20S32K344%3CBR%20%2F%3E*%20Compiler%3A%20S32DS3.5%3CBR%20%2F%3E*%20SDK%20release%3A%20RTD%203.0.0%3CBR%20%2F%3E*%20Debugger%3A%20Lauterbach%3CBR%20%2F%3E*%20Target%3A%20internal_FLASH%3CBR%20%2F%3E********************************************************************************%3C%2FP%3E%0A%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1941261%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20Example%20S32K344%20PIT%20BTCU%20parallel%20ADC%20FIFO%20DMA%20DS3.5%20RTD300%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1941261%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F52961%22%20target%3D%22_blank%22%3E%40PetrS%3C%2FA%3E%26nbsp%3B%2C%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EIs%20there%20a%20way%20to%20use%20DMA%20without%20Autosar%20(without%20enabling%20RM%20CDD)%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1831954%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20Example%20S32K344%20PIT%20BTCU%20parallel%20ADC%20FIFO%20DMA%20DS3.5%20RTD300%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1831954%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EThank%20you%20for%20this%20example.%20But%20how%20do%20you%20decide%20what%20should%20be%20the%20watermark%20value%3F%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E
No ratings
Version history
Last update:
‎10-02-2023 12:11 AM
Updated by: