Programming the MPC5604B using CodeWarrior

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

Programming the MPC5604B using CodeWarrior

跳至解决方案
3,070 次查看
cedricdestin
Contributor II

Hey,

I am having trouble understanding the samples program designed for the tutorials, like, what port is being addressed, and how the PWM timing is created, is there anywhere i could find such description? Also, It would be awesome to have know the port addresses...

Thank you

0 项奖励
回复
1 解答
1,728 次查看
StevenMcLaughli
NXP Employee
NXP Employee

Hi,

PWM is controlled via the eMIOS module within the device. Please look at this section within the reference manual (chapter 24 Timers 24.4. The eMIOS channels will have to be enabled within OPWM (output PWM ) mode. The respective timing etc, will be programmed between this module and the clock module.

Please refer to Application Note 2865: MPC5500 and MPC5600 Simple Cookbook (go to www.freescale.com and search with AN2865) Section 19 eMIOS OPWM function. There is a code snippet which will help you understand the port directions too. (The port configuration is handled by the SIU module. The port direction and alternative functions (because the port can be used for a few different modules - table 4-3 Pg 45 in Reference manual) are shown within this example.

Regards,

Steven.

在原帖中查看解决方案

0 项奖励
回复
4 回复数
1,729 次查看
StevenMcLaughli
NXP Employee
NXP Employee

Hi,

PWM is controlled via the eMIOS module within the device. Please look at this section within the reference manual (chapter 24 Timers 24.4. The eMIOS channels will have to be enabled within OPWM (output PWM ) mode. The respective timing etc, will be programmed between this module and the clock module.

Please refer to Application Note 2865: MPC5500 and MPC5600 Simple Cookbook (go to www.freescale.com and search with AN2865) Section 19 eMIOS OPWM function. There is a code snippet which will help you understand the port directions too. (The port configuration is handled by the SIU module. The port direction and alternative functions (because the port can be used for a few different modules - table 4-3 Pg 45 in Reference manual) are shown within this example.

Regards,

Steven.

0 项奖励
回复
1,728 次查看
cedricdestin
Contributor II

Yes, I followed that and they do help.

0 项奖励
回复
1,728 次查看
DiegoHaro
NXP Employee
NXP Employee

Hi Cedric,

Can you share with me the sample program that you are talking about? (Or share the link where I can download it)

There are a lot of sample programs for MPC5604B, and I want to understand exactly what you are referring to, and explain it to you.

Regards,

Diego.

0 项奖励
回复
1,728 次查看
cedricdestin
Contributor II

Hey,

I was just talking about the Sample program given on the tutorials on "how to blink a LED" but I got to learn the architecture and most of it makes sense. The reference manual helped me.

Thanks though. I'll keep you in touch if I do need help.