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

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

790 Views
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 Kudos
Reply
2 Replies

781 Views
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 Kudos
Reply

763 Views
priya_p
Contributor IV

Thank you for the reply. It worked.

0 Kudos
Reply