调试目的:
学习和体会EPWM-TZ模块的错误联防功能
例程功能:
简述:GPIO12[TZ1]->INPUT X-BAR->EPWM TZ->EPWM xA
通过外部GPIO引脚触发TZ1事件,从而控制EPWM对应管脚强制
拉高或拉低。
//! \b External \b Connections \n
//! - EPWM1A is on GPIO0
//! - EPWM2A is on GPIO2
//! - TZ1 is on GPIO12
//!
//! This example also makes use of the Input X-BAR. GPIO12 (the external
//! trigger) is routed to the input X_BAR, from which it is routed to TZ1.
//!
//! The TZ-Event is defined such that EPWM1A will undergo a One-Shot Trip
//! and EPWM2A will undergo a Cycle-By-Cycle Trip.
//!
_____________ __________________
| | | |
GPIO12 -----| I/P X-BAR |-----TZ1-----| ePWM TZ Module |-----TZ-Event
|___________| |________________|
这里以EPWM2为例:
void

本文深入探讨了EPWM-TZ模块的错误联防功能,通过实例讲解了如何利用GPIO触发TZ事件来控制EPWM管脚的状态变化。详细介绍了触发源配置、触发动作设置及触发方式选择,并分享了调试过程中的常见问题及解决方案。
最低0.47元/天 解锁文章
1434

被折叠的 条评论
为什么被折叠?



