Noise at PWM

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Noise at PWM

2,875件の閲覧回数
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

ラベル(1)
0 件の賞賛
返信
4 返答(返信)

1,860件の閲覧回数
Florijan
Contributor III

Hi,

 

can you tell us which mcu are you using?

 

regards, Florijan

0 件の賞賛
返信

1,860件の閲覧回数
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 件の賞賛
返信

1,860件の閲覧回数
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 件の賞賛
返信

1,860件の閲覧回数
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 件の賞賛
返信