TPS92661 PWM功能软件上如何实现

我要实现LED矩阵控制器TPS92661的pwm功能,请教一下在软件上该怎么设置。
在初始化阶段应该设置那些寄存器(相关的有ENON,ENOFF,LEDON,LEDOFF寄存器)?
在需要实现pwm功能的地方,应该设置那些寄存器以及怎么设置?

1 个回复

  • Hi

          见datasheet 第十一页描述: http://www.ti.com.cn/cn/lit/ds/symlink/tps92661-q1.pdf

          The TPS92661 device provides 10-bit PWM dimming of each individual LED. The LED turn-on and turn-off times are separately programmed for each LED. The LEDxON registers and LEDxOFF registers (where x = 1 to 12) determine the LED turn-on and turn-off times, respectively, within the PWM dimming period. Phase shifting can be accomplished by staggering the LEDxON times or LEDxOFF times. The 10-bit internal PWM Period Counter (TCNT) is compared against the LEDxON and LEDxOFF values.