Example IP S32K312 EMIO PWM Generation & Duty capture using Interrupt DS3.5 RTD300

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Example IP S32K312 EMIO PWM Generation & Duty capture using Interrupt DS3.5 RTD300

Example IP S32K312 EMIO PWM Generation & Duty capture using Interrupt DS3.5 RTD300

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

The purpose of this demo application is to present a usage of the
EMIOS IP Driver in Interrupt mode for the S32K3xx MCU.

The example use to :--
EMIOS-1 - ch-0  --> PTC24 --> Generate the PWM
EMIOS-1 - ch-1  --> PTC25 --> is the ICU channel to measure the duty


Pins used :--

Dinesh_Guleria_0-1733896956186.png

Dinesh_Guleria_4-1733897197653.png

 

Dinesh_Guleria_5-1733897299281.jpeg

 


This example is tested for SAIC & IPWM mode both. You can change the mode by this setting in MEX file :--

Dinesh_Guleria_6-1733897383718.png

 
 
Difference between SAIC & IPWM,  ICU Driver User Manual :--

Dinesh_Guleria_2-1733897086528.png

 

These Two Macro :--
SAIC_MODE  --> this maco will enable variables to store for SAIC mode
CUSTOM_IRQ  --> this MACRO will enable customized IRQ or RTD available IRQ

Dinesh_Guleria_8-1733897822913.png

 



Result :--

Dinesh_Guleria_7-1733897734611.png

 


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

附件
无评分
版本历史
最后更新:
‎12-10-2024 11:33 PM
更新人: