![]() |
Delay is generated using "for" loop only which is not the recommended way. (Delay in this program is not accurate delay.)
Problem Statement:To Toggle the LED1 from TRK-MPC5606B board.
Connections:
(144-pin LQFP package) LED No. => Port No. => Pad No. => Pin No. LED1 => PE[4] => PCR[68] => PIN 132 LED2 => PE[5] => PCR[69] => PIN 133 LED3 => PE[6] => PCR[70] => PIN 139 LED4 => PE[7] => PCR[71] => PIN 140
To change the time for which LED1 should be ON and OFF, Change the constant value from if condition
/***************************************/ if(i>1000000) /***************************************/
Downloads:
LED1_Toggle_TRK-MPC5606B_APDaga
Click here to see more codes for Freescale/NXP MPC56xx Family.
Feel free to ask doubts in the comment section. I will try my best to solve it.
If you find this helpful by any mean like, comment and share the post.
This is the simplest way to encourage me to keep doing such work.
Feel free to ask doubts in the comment section. I will try my best to solve it.
If you find this helpful by any mean like, comment and share the post.
This is the simplest way to encourage me to keep doing such work.
Thanks and Regards,
-Akshay P. Daga
-Akshay P. Daga
nice blog
ردحذف