configure GPT for PWM

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

configure GPT for PWM

957件の閲覧回数
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

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

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