芯片T153,PWM占空比设置为0出现的问题
-
全志芯片T153, 如果在PWM通道使能的情况下,比如把占空比从50%调到30%,10%都可以。
但是如果把占空比修改到0%,在这之后不管怎么调都无效,必须先失能PWM,把占空比调节到非0的有效值,再使能PWM才会正常 -
我在另外一个平台上 遇到 开关 LVDS 背光使能控制
关闭背光使能 disp驱动会调用PWM失能;
再次开启背光 虽然软件调用 PWM 使能; 但是 实际 PWM 无功能。drivers/video/sunxi/disp2/disp/dev_disp.c case DISP_LCD_BACKLIGHT_ENABLE: { if (mgr && mgr->device) { - if (mgr->device->pwm_enable) - mgr->device->pwm_enable(mgr->device); + // if (mgr->device->pwm_enable) 不重复控制PWM开关 + // mgr->device->pwm_enable(mgr->device); if (mgr->device->backlight_enable) mgr->device->backlight_enable(mgr->device); case DISP_LCD_BACKLIGHT_DISABLE: { if (mgr && mgr->device) { - if (mgr->device->pwm_disable) - mgr->device->pwm_disable(mgr->device); + // if (mgr->device->pwm_disable) 不重复控制PWM开关 + // mgr->device->pwm_disable(mgr->device); if (mgr->device->backlight_disable) mgr->device->backlight_disable(mgr->device); return 0;
Copyright © 2024 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号