MPC5604E - cannot set GPIOs

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

MPC5604E - cannot set GPIOs

跳至解决方案
1,929 次查看
janberan
Contributor I

Hi all,

 

I have been working with MPC5604E in our company project and I have the following problem: I need to set a few pins as output GPIOs so I write 0x0200 to appropriate PCR registers. However, for certain pins this write is ignored and the PCR value remains unchanged.

 

My further experiments discovered that this happens if and only if the pin has defined no output alternate function besides GPIO. Moreover, I am able to set all the PCR register bits except OBE. Just to make it clear, I can successfully set OBE bit for all other pins.

 

I am confused since the MPC5604E reference manual marks all the pins to be configurable as GPIO I/O. Am I missing something?

 

Best Regards,

Jan Beran

标签 (1)
标记 (2)
0 项奖励
回复
1 解答
1,819 次查看
martin_kovar
NXP Employee
NXP Employee

Hi Jan,

Look to the reference manual chapter 3.2 Signal Properties Summary, Table 4 pin muxing. If the pin has input direction only (PCR20 for example), then it is not possible to set OBE.

Regards,

Martin

在原帖中查看解决方案

0 项奖励
回复
2 回复数
1,819 次查看
janberan
Contributor I

Hi Martin,

Thanks for your answer! I see the problem now - I have been using an old version of the reference manual (rev. 3, 21/06/12) and in that document even PCR[20] is marked as GPIO I/O. So I downloaded the revision 5 of the manual (07/2015 hopefully the latest) and everything makes sense now.

Best Regards,

Jan Beran

0 项奖励
回复
1,820 次查看
martin_kovar
NXP Employee
NXP Employee

Hi Jan,

Look to the reference manual chapter 3.2 Signal Properties Summary, Table 4 pin muxing. If the pin has input direction only (PCR20 for example), then it is not possible to set OBE.

Regards,

Martin

0 项奖励
回复