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

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

978 Views
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.

Labels (1)
0 Kudos
Reply
1 Reply

376 Views
Xbot
Contributor II
make sure the oscilloscope ground connects to ground of your system in test.
0 Kudos
Reply