Noise at PWM

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

Noise at PWM

1,427 Views
eddv
Contributor I

Hi guys,

I´m doing a PWM to DC level converter, and I make the  RC filter, and it is good. BUT, the problem is that the edges of the PWM wave generate in others pins of output, a relative high noise (400mV pp). Its continue to occur after I configure the Port P Reduced Drive Register.Before this configuration, the noisewas 850mV pp!!! It´s normal?How can I cancel this noise?  Just for info: my PWM output is connectet to base of NPN transistor, by 2K2 resistor. The frequence of PWM is 100KHz, but the noise, is not associated at the frequency, is vary with the rise and fall times of the PWM signal. 

The intention is to generate a DC lever to use in a external comparator.  ...

If somebody can help me, please... give me a ligth!

Thanks!!!

Eduardo Vilela

Labels (1)
0 Kudos
4 Replies

412 Views
Florijan
Contributor III

Hi,

 

can you tell us which mcu are you using?

 

regards, Florijan

0 Kudos

412 Views
eddv
Contributor I

HI, its a HCs12XEQ512. When the PWM line goes ON OFF, they generate noise including in Vcc line! 

I already have capacitos for decoupling, how suggest for datasheet.

0 Kudos

412 Views
Florijan
Contributor III

Hi,

 

I am using s12xs128 mcu and I found out that if External Clock on ECLK pin is disabled the mcu makes much less noise then if output clock in this pin is enabled. I wonder who needs output clock enabled at all. You can simply disable output clock using Device initialization interface where you click on CPU->Output clock->Disabled    or make shure that register ECLKCTL bit NECLK = 1.

 

I hope this will help you.

 

 

Best regards,

Florijan

 

0 Kudos

412 Views
Lundin
Senior Contributor IV
At least on the S12 without X, the ECLK is disabled automatically when running in normal single chip mode, that is: when you have no BDM attached.

You can disable it explicitly by writing to the register, or simply remove the BDM when doing your noise measurements.
0 Kudos