Hi all,
I have a problem with MCU S12G128. I wanna write a function to blink Led on S12G128 but I don't know how to do this because I've just approached with this MCU. If any one have idea about this problem, please give me a method to resolve this problem. Thank you very much.
Hi Huu,
Additionally to Ray's answer, I would like to recommend small collection of our example codes for S12G:
https://community.freescale.com/docs/DOC-93792
I hope it helps you.
Have a great day,
RadekS
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Thank you :smileyhappy: :smileyhappy:
This will toggle a LED on Port PT5
DDRT = 0x20; // Set pin 5 as output
PTT_PTT5 = ~PTT_PTT5; //toggle LED on PT5
Ray.