configure GPT for PWM

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

configure GPT for PWM

517 Views
GPTimerColdfire
Contributor I

hi I'm a new  User of Coldfire Microprocessors
I'm trying to generate a PWM with the GPT and I had issues, I configured all registers as it's told in the datasheet (it's not very clear) but I couudn't any signal
I read in previews dicussions that it's better to use the DMA timer but the pins are inaccessible in the board I'm using

I just want you to tell me which are the registers I have to configure
please help
 thanks in advance

Labels (1)
0 Kudos
1 Reply

310 Views
TomE
Specialist II

You don't mention in your post which Freescale chip you're using.

 

I guess from your "user name" that you're working with an MCF5282.

 

Get the "Coldfire Init" program from here, it supports the MCF5282:

 

http://www.microapl.co.uk/Porting/freetools.html

 

You've probably forgotten to configure the output pins from their default of being GPIO to being dedicated timer pins. Look in the GPIO chapter. The Coldfire Init program should help you with this.

 

Tom

 

0 Kudos