我前面没有这个芯片的数据表,但是我已经设置了几种不同配置的PWM输出。需要查找的是:提供时基的是什么(有时是定时器,并且定时器需要运行)。pwm时基定时器是否实际运行(启用定时器中断并在其中粘贴断点)pwm模块是否实际运行(启用pwm中断并在其中粘贴断点)最后,如果所有这些工作正常,检查IOCONx寄存器(如果您的芯片上有这些寄存器),以确保pwm输出与引脚绑定。
以上来自于百度翻译
以下为原文
I don't have a datasheet for that chip in front of me, but I've set a few PWM outputs up in various configurations. Some things to look for:
- What is providing the time base (sometimes it's a timer and that timer needs to run).
- Is the pwm timebase timer actually running (enable the timer interrupt and stick a breakpoint in there)
- Is the pwm module actually running (enable the pwm interrupt and stick a breakpoint in there).
- Finally, if all of those are working, check the IOCONx registers (if you have them on your chip) to make sure the pwm output is being tied to the pins.
我前面没有这个芯片的数据表,但是我已经设置了几种不同配置的PWM输出。需要查找的是:提供时基的是什么(有时是定时器,并且定时器需要运行)。pwm时基定时器是否实际运行(启用定时器中断并在其中粘贴断点)pwm模块是否实际运行(启用pwm中断并在其中粘贴断点)最后,如果所有这些工作正常,检查IOCONx寄存器(如果您的芯片上有这些寄存器),以确保pwm输出与引脚绑定。
以上来自于百度翻译
以下为原文
I don't have a datasheet for that chip in front of me, but I've set a few PWM outputs up in various configurations. Some things to look for:
- What is providing the time base (sometimes it's a timer and that timer needs to run).
- Is the pwm timebase timer actually running (enable the timer interrupt and stick a breakpoint in there)
- Is the pwm module actually running (enable the pwm interrupt and stick a breakpoint in there).
- Finally, if all of those are working, check the IOCONx registers (if you have them on your chip) to make sure the pwm output is being tied to the pins.
举报