M52235EVB GPT and PWM usage, header missing

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

M52235EVB GPT and PWM usage, header missing

1,893件の閲覧回数
paynete
Contributor I
Is there a reason mcf5223_gpt.h is not included in mcf5223.h?  I assumed it should be there, added it, and proceeded to use MCF_GPT_  assignments to gain access to GPT0.  No Joy.
 
Maybe related, I am configuring PMW1 and PMW3 to generate signals.  I am getting these signals using MCF_GPIO_ assignmets.  A specific concern is the use of PWM (pin 99 PWM1,pin 100 PWM3) and Timers (pin 107, GPT0) at the same time.  I used the primary function setting for pin assignment.
 MCF_GPIO_PTDPAR = 0
 | MCF_GPIO_PTDPAR_PTDPAR0
 | MCF_GPIO_PTDPAR_PTDPAR1
 | MCF_GPIO_PTDPAR_PTDPAR2
 | MCF_GPIO_PTDPAR_PTDPAR3; //set for primary function
 
Is this proper to use both PWM1, PWM3, and GPT0 ?
 
 
I appologize in advance since I am totally new to embedded programming.
ラベル(1)
0 件の賞賛
返信
1 返信

660件の閲覧回数
DrSeuss
Contributor I

We will correct the missing header.

As long as the port assignment register selects the correct source to drive the pin, using the timers for software TIC counts, etc is fine. The PWM can do this as well but without a pin to control, I see no point.

 

0 件の賞賛
返信