Example S32K148 PDB0-PDB1 ring S32DS3.4 RTM4.0.3

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

Example S32K148 PDB0-PDB1 ring S32DS3.4 RTM4.0.3

Example S32K148 PDB0-PDB1 ring S32DS3.4 RTM4.0.3

/********************************************************************************
Detailed Description:

Example shows possible implementation of multiple ADC conversions using SDK.
Here 7 channels are sampled periodically. 2 ADC modules and 2 PDBs are used.
ADC0 is configured to sample 3 channels, ADC1 4 channels.
PDBs are set to back-to-back mode to perform chain conversion as shown in
RM's Figure 46-3. PDB back-to-back chain forming PDB0-PDB1 ring.
Within ADC component you need to select ADC input to be measured for each item
in configuration list. For ADC0 ch5 External input channel 28 is selected,
as it is connected to potentiometer on the EVB.
PDB0 is triggered by LPIT ch0 at 500ms rate.

* ------------------------------------------------------------------------------
* Test HW: S32K148EVB-Q144
* MCU: FS32K144UAVLQ 0N20V
* Target: Debug_FLASH
* EVB connection: UART terminal 115200, 8N1
* Compiler: S32DS.ARM.3.4
* SDK release: S32SDK_S32K1XX_RTM_4.0.3
* Debugger: S32DS
********************************************************************************
Revision History:
Ver Date Author Description of Changes
1.0 Jan-26-2023 Petr Stancik Initial version, based on adc_hwtrigger_s32k148
*******************************************************************************/
Attachments
No ratings
Version history
Last update:
‎01-26-2023 07:20 AM
Updated by: