Navigation

    全志在线开发者论坛

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • 在线文档
    • 社区主页

    芯片T153,PWM占空比设置为0出现的问题

    T Series
    2
    2
    323
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H
      howellWong LV 2 last edited by

      全志芯片T153, 如果在PWM通道使能的情况下,比如把占空比从50%调到30%,10%都可以。
      但是如果把占空比修改到0%,在这之后不管怎么调都无效,必须先失能PWM,把占空比调节到非0的有效值,再使能PWM才会正常

      1 Reply Last reply Reply Quote Share 0
      • F
        fuzi2006 LV 4 last edited by

        我在另外一个平台上 遇到 开关 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;
        
        1 Reply Last reply Reply Quote Share 0
        • 1 / 1
        • First post
          Last post

        Copyright © 2024 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号

        行为准则 | 用户协议 | 隐私权政策