21489 DPI PWM doesn't work?
I need to use 21489's pwm via DPI.
From the datasheet ,PWMONDPIEN bit (bit30 of SYSCTL) should be set to 1.So ,
*pSYSCTL |= (PWMONDPIEN);
But,this didn't work.The reg SYSCTL didn't has this bit,and the bit30 still is 0;
My project options as:
and the include files:
Need help
Problem solved! Also need to set PWMxEN such as:
*pSYSCTL |= (PWMONDPIEN|PWM1EN|PWM2EN);
But something is wrong in the header file "def21489.h",not only for Data pin but also DPI pin.
#define PWM0EN (BIT_24) /* Enables Data[19:16] as PWM3-0 */
#define PWM1EN (BIT_25) /* Enables Data[23:20] as PWM7-4 */
#define PWM2EN (BIT_26) /* Enables Data[27:24] as PWM11-8 */
#define PWM3EN (BIT_27) /* Enables Data[31:28] as PWM15-12 */
This question has been assumed as answered either offline via email or with a multi-part answer. This question has now been closed out. If you have an inquiry related to this topic please post a new question in the applicable product forum.
Thank you,
EZ Admin
Please log in to reply.







