<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[芯片T153，PWM占空比设置为0出现的问题]]></title><description><![CDATA[<p dir="auto">全志芯片T153， 如果在PWM通道使能的情况下，比如把占空比从50%调到30%，10%都可以。<br />
但是如果把占空比修改到0%，在这之后不管怎么调都无效，必须先失能PWM，把占空比调节到非0的有效值，再使能PWM才会正常</p>
]]></description><link>https://bbs.aw-ol.com/topic/6924/芯片t153-pwm占空比设置为0出现的问题</link><generator>RSS for Node</generator><lastBuildDate>Tue, 19 May 2026 09:56:00 GMT</lastBuildDate><atom:link href="https://bbs.aw-ol.com/topic/6924.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 18 Mar 2026 06:17:04 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to 芯片T153，PWM占空比设置为0出现的问题 on Thu, 19 Mar 2026 03:20:53 GMT]]></title><description><![CDATA[<p dir="auto">我在另外一个平台上 遇到 开关 LVDS 背光使能控制<br />
关闭背光使能 disp驱动会调用PWM失能；<br />
再次开启背光 虽然软件调用 PWM 使能； 但是 实际 PWM 无功能。</p>
<pre><code>drivers/video/sunxi/disp2/disp/dev_disp.c
        case DISP_LCD_BACKLIGHT_ENABLE:
                {
                        if (mgr &amp;&amp; mgr-&gt;device) {
-                               if (mgr-&gt;device-&gt;pwm_enable)
-                                       mgr-&gt;device-&gt;pwm_enable(mgr-&gt;device);
+                               // if (mgr-&gt;device-&gt;pwm_enable) 不重复控制PWM开关
+                               //      mgr-&gt;device-&gt;pwm_enable(mgr-&gt;device);
                                if (mgr-&gt;device-&gt;backlight_enable)
                                        mgr-&gt;device-&gt;backlight_enable(mgr-&gt;device);


        case DISP_LCD_BACKLIGHT_DISABLE:
                {
                        if (mgr &amp;&amp; mgr-&gt;device) {
-                               if (mgr-&gt;device-&gt;pwm_disable)
-                                       mgr-&gt;device-&gt;pwm_disable(mgr-&gt;device);
+                               // if (mgr-&gt;device-&gt;pwm_disable) 不重复控制PWM开关
+                               //      mgr-&gt;device-&gt;pwm_disable(mgr-&gt;device);
                                if (mgr-&gt;device-&gt;backlight_disable)
                                        mgr-&gt;device-&gt;backlight_disable(mgr-&gt;device);
                                return 0;
</code></pre>
]]></description><link>https://bbs.aw-ol.com/post/28316</link><guid isPermaLink="true">https://bbs.aw-ol.com/post/28316</guid><dc:creator><![CDATA[fuzi2006]]></dc:creator><pubDate>Thu, 19 Mar 2026 03:20:53 GMT</pubDate></item></channel></rss>