Center-Aligned PWN with S08TPMv3

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

Center-Aligned PWN with S08TPMv3

897 次查看
sebasira
Senior Contributor I

Hi!

 

I'm working with MCF51QE, and I'd like to generate some tones using PWM, more over, center-alinged PWM.

 

The problem is that I could only generate 1 periodo (only one transition), and I want it to be continuous.

 

What I do is:

 

TPM0SC = 0x68;

TPM0C2SC = 0x00;

 

TPM0MOD = MOD_val;

TPM0C2V = MOD_val;

 

What should I do for the PWM to be continuous? I guess it could be related to the  TOF IRQ.. I try setting MOD value again, setting V value again, and setting both value and nothing happens

 

Thanks in advance!!

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

780 次查看
TomE
Specialist II

Have you downloaded the QE128QUG and the accompanying QE128QUG software from theMCF51QE page?

 

https://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=MCF51QE&fpsp=1&tab=Documentation_Tab

 

I haven't looked inside this, but it looks like a start.

 

0 项奖励
回复