LM3478输出占空比错误
电路图如上,当电容C41为100nf时,3478DR引脚占空比为1,MOS管持续导通发热严重,换为10uf就会正常工作,求大神帮忙分析一下到底是为什么,不胜感激。另外3478的技术文档上FA/SD PIN 不是直接接地的么?
电容布在PCB的啥位置?
图中的C41就是,U5是3478,现在换成10UF好使了,但是我还想弄明白原因,谢谢你
这个我以前遇到过,我用的是占空比,0和 24000都输出高电平,你要设置的值要小点,我设置的占空比的0.1%和99.9%,我记得当我设置到99.99%就不行,我按键的时候就出现跳变,但为99.99%时有1变为0。
根据你的提示,我看了一下资料, 你的那种方式应该不是来改变电平互换.
请看以下函数的解释,我想这个函数应该才是你想要的结果.你可以进行测试.
16.2.2.28 PWMOutputInvert
Selects the inversion mode for PWM outputs.
Prototype:
void
PWMOutputInvert(unsigned long ulBase,
unsigned long ulPWMOutBits,
tBoolean bInvert)
Parameters:
ulBase is the base address of the PWM module.
ulPWMOutBits are the PWM outputs to be modified. Must be the logical OR of
any of PWM_OUT_0_BIT, PWM_OUT_1_BIT, PWM_OUT_2_BIT, PWM_OUT_3_BIT,
PWM_OUT_4_BIT, PWM_OUT_5_BIT, PWM_OUT_6_BIT, or PWM_OUT_7_BIT.
bInvert determines if the signal is inverted or passed through.
Description:
This function is used to select the inversion mode for the selected PWM outputs. The outputs
are selected using the parameter ulPWMOutBits. The parameter bInvert determines the inversion
mode for the selected outputs. If bInvert is true, this function will cause the specified
PWM output signals to be inverted, or made active low. If bInvert is false, the specified output
will be passed through as is, or be made active high.
Returns:
None.
请讲你的测试结果告之,谢谢!
FA/SD 可以通过一个电阻接到GND。
这是官方的说明:
Frequency adjust and Shutdown pin. A resistor connected to this pin sets the oscillator frequency. A high level on this pin for ≥ 30µs will turn the device off. The device will then draw less than 10µA from the supply
翻译:频率调节和关机管脚。通过此管脚加入一个电阻可以调节震荡频率,设备关机需要一个持续>=30us的高电平,从电源中获取小于10uA的电流。