ΣSigmaStudio Ask AI Русский Log in

21489 DPI PWM doesn't work?

Processors & DSP wjlcde Aug 12, 2016 00:00 2 replies Original on forum ↗
Subscribe
wjlcde Question
Aug 12, 2016 00:00

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

d7857df4b5544b1055be2e1c05081543.png
d7857df4b5544b1055be2e1c05081543.png
d7857df4b5544b1055be2e1c05081543.png-313x181.png
d7857df4b5544b1055be2e1c05081543.png-313x181.png
b674752c4cc6994efa99c9738d930bca.png
b674752c4cc6994efa99c9738d930bca.png
b674752c4cc6994efa99c9738d930bca.png-640x393.png
b674752c4cc6994efa99c9738d930bca.png-640x393.png
7404555507efa18e74c402a2a0a7f133.png
7404555507efa18e74c402a2a0a7f133.png
7404555507efa18e74c402a2a0a7f133.png-220x127.png
7404555507efa18e74c402a2a0a7f133.png-220x127.png
wjlcde Reply
Aug 15, 2016 00:00

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 */

2ec111fe77f3c359dcca8f4115929a06.png
2ec111fe77f3c359dcca8f4115929a06.png
2ec111fe77f3c359dcca8f4115929a06.png-315x211.png
2ec111fe77f3c359dcca8f4115929a06.png-315x211.png
EZAdministrator Reply
Aug 2, 2018 00:00

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