Need to toggle the value on GPDO[4] and GPDO[10] pin of the MCP5748G Devkit

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

Need to toggle the value on GPDO[4] and GPDO[10] pin of the MCP5748G Devkit

791 次查看
priya_p
Contributor IV
I am using MPC5748G DEV kit. I have configured GPDO[4] and GPD0[10] pins as output pin but now I need to toggle the values on GPDO[4] and GPDO[10] pins. Please help me.
0 项奖励
回复
2 回复数

782 次查看
petervlna
NXP TechSupport
NXP TechSupport

Hello,

Simply configure pins as below example:

SIUL2.MSCR[x].R = 0x32000000;

And toggle it as below:

SIUL2.GPDO[x].R = ~SIUL2.GPDO[x].R;

x - is your desired pin MCSR on micro (not necessary it is connected to same pin on the board - check schematics)

Have a look at example SW:

https://community.nxp.com/docs/DOC-330940

Best regards,

Peter

0 项奖励
回复

764 次查看
priya_p
Contributor IV

Thank you for the reply. It worked.

0 项奖励
回复