Generating sinusoidal waves with MPC5554EVB

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

Generating sinusoidal waves with MPC5554EVB

1,729 次查看
ricardofranca
Contributor III

Hello,

 

I have just started using a MPC5554EVB (with CodeWarrior) and I am running small programs to understand a bit about its features.

 

I would like to know if I can generate sinusoidal, analog waves in the processor outputs - I think I could understand the examples provided in AN2865 that make use of OPWM and OPWFM eMIOS functions to generate square waves with variable pulse width and frequency, and I would like to know if there is any similar mechanism that may generate something like a sine wave.

 

Do not hesitate to correct my terminology if it is not adequate!

 

Thanks in advance,

 

Ricardo

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

1,579 次查看
PetrS
NXP TechSupport
NXP TechSupport

Hi,

The MPC5554 cannot generate analog signal directly on the output pin. You will need some external circuitry.

The theory is quite simple. With the help of eMIOS you will generate PWM signal with certain period, that’s duty cycle will be modulated by desired sine frequency, i.e. changed duty cycle fast enough from sine lookup table for example.

This will generate sine modulated PWM signal on digital output. With the help of analog low pass filter you can get analog sine wave signal.

You can find a lot of guides/solutions on the web, just search for “PWM sine generator” etc. 

BTW; the MPC5643L, MPC5744P contain a SWG (Sine Wave Generator) module, which generates the sine output directly.

BR, Petr

1,579 次查看
ricardofranca
Contributor III

Hi Petr,

Thanks for your answer!

Best regards,

Ricardo

0 项奖励
回复