Example S32K358 PWM ADC_HWtrig BCTU_TriggerMode RTD600 EBTresos29

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

Example S32K358 PWM ADC_HWtrig BCTU_TriggerMode RTD600 EBTresos29

Example S32K358 PWM ADC_HWtrig BCTU_TriggerMode RTD600 EBTresos29

*********************************************************************************
* Detailed Description:
*
* ADC hardware trigger demonstration using BCTU Trigger Mode on S32K358.
*
* An eMIOS1 Channel 23 reload event is used as a trigger source for the BCTU).
* The BCTU initiates a hardware-triggered conversion of an ADC1 group containing
* three channels.
*
* The result of the third ADC channel, connected to the on-board potentiometer
* (ADCPOT0), is used to dynamically update the duty cycle of an
* eMIOS Channel 5 PWM output.
*
* The PWM output drives the on-board LED, allowing the potentiometer position
* to control LED brightness.
*
* Key Functionality:
* - eMIOS-triggered BCTU operation.
* - BCTU Trigger Mode configuration.
* - ADC1 hardware-triggered group conversion.
* - ADC notification callback processing.
* - PWM duty-cycle update based on ADC result.
* - LED brightness control using the potentiometer.
*
* ------------------------------------------------------------------------------
* Test HW: S32K3x8EVB-Q289
* MCU: S32K358
* IDE: EB Tresos 29.0.0
* RTD Release: S32K3_RTD_6_0_0_D2506_ASR_REL_4_7_REV_0000_20250610
* Debugger: Lauterbach
* Target: Internal_FLASH
********************************************************************************
* Revision History:
* Ver Date Author Description of Changes
* 1.0 02-10-2026 Petr Stancik Initial version
********************************************************************************
Attachments
%3CLINGO-SUB%20id%3D%22lingo-sub-2418113%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EExample%20S32K358%20PWM%20ADC_HWtrig%20BCTU_TriggerMode%20RTD600%20EBTresos29%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2418113%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%0A%3CPRE%3E*********************************************************************************%3CBR%20%2F%3E*%20Detailed%20Description%3A%3CBR%20%2F%3E*%3CBR%20%2F%3E*%20ADC%20hardware%20trigger%20demonstration%20using%20BCTU%20Trigger%20Mode%20on%20S32K358.%3CBR%20%2F%3E*%3CBR%20%2F%3E*%20An%20eMIOS1%20Channel%2023%20reload%20event%20is%20used%20as%20a%20trigger%20source%20for%20the%20BCTU).%3CBR%20%2F%3E*%20The%20BCTU%20initiates%20a%20hardware-triggered%20conversion%20of%20an%20ADC1%20group%20containing%20%3CBR%20%2F%3E*%20three%20channels.%3CBR%20%2F%3E*%3CBR%20%2F%3E*%20The%20result%20of%20the%20third%20ADC%20channel%2C%20connected%20to%20the%20on-board%20potentiometer%3CBR%20%2F%3E*%20(ADCPOT0)%2C%20is%20used%20to%20dynamically%20update%20the%20duty%20cycle%20of%20an%3CBR%20%2F%3E*%20eMIOS%20Channel%205%20PWM%20output.%3CBR%20%2F%3E*%3CBR%20%2F%3E*%20The%20PWM%20output%20drives%20the%20on-board%20LED%2C%20allowing%20the%20potentiometer%20position%3CBR%20%2F%3E*%20to%20control%20LED%20brightness.%3CBR%20%2F%3E*%3CBR%20%2F%3E*%20Key%20Functionality%3A%3CBR%20%2F%3E*%20-%20eMIOS-triggered%20BCTU%20operation.%3CBR%20%2F%3E*%20-%20BCTU%20Trigger%20Mode%20configuration.%3CBR%20%2F%3E*%20-%20ADC1%20hardware-triggered%20group%20conversion.%3CBR%20%2F%3E*%20-%20ADC%20notification%20callback%20processing.%3CBR%20%2F%3E*%20-%20PWM%20duty-cycle%20update%20based%20on%20ADC%20result.%3CBR%20%2F%3E*%20-%20LED%20brightness%20control%20using%20the%20potentiometer.%3CBR%20%2F%3E*%3CBR%20%2F%3E*%20------------------------------------------------------------------------------%3CBR%20%2F%3E*%20Test%20HW%3A%20S32K3x8EVB-Q289%3CBR%20%2F%3E*%20MCU%3A%20S32K358%3CBR%20%2F%3E*%20IDE%3A%20EB%20Tresos%2029.0.0%3CBR%20%2F%3E*%20RTD%20Release%3A%20S32K3_RTD_6_0_0_D2506_ASR_REL_4_7_REV_0000_20250610%3CBR%20%2F%3E*%20Debugger%3A%20Lauterbach%3CBR%20%2F%3E*%20Target%3A%20Internal_FLASH%3CBR%20%2F%3E********************************************************************************%3CBR%20%2F%3E*%20Revision%20History%3A%3CBR%20%2F%3E*%20Ver%20Date%20Author%20Description%20of%20Changes%3CBR%20%2F%3E*%201.0%2002-10-2026%20Petr%20Stancik%20Initial%20version%3CBR%20%2F%3E********************************************************************************%3C%2FPRE%3E%0A%3C%2FLINGO-BODY%3E
No ratings
Version history
Last update:
12 hours ago
Updated by: