[Help]Why my PWM output is AC (sine wave) not DC??

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

[Help]Why my PWM output is AC (sine wave) not DC??

1,215 次查看
jaky0
Contributor I

Hi,

 

I v use S12xe, the board is i made myself, now I want to use PWM to output 2.5V DC (50% Duty), I v not use filter circuit, just direct connect with the PWM output pin, but the funny thing is the output is 2.5 v AC   (from the oscillograph, i v got a sine wave), the frequence i set to 1MHz, i v use both hardware PWM and software PWM, the situation is the same. Is some one can help me to give some advise, that maybe  where is the problem, thanks  a lo.

标签 (1)
0 项奖励
回复
1 回复

613 次查看
Xbot
Contributor II
make sure the oscilloscope ground connects to ground of your system in test.
0 项奖励
回复