Center-Aligned PWN with S08TPMv3

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

Center-Aligned PWN with S08TPMv3

414 Views
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!!

Labels (1)
0 Kudos
1 Reply

297 Views
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 Kudos