Blink led on S12G128

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

Blink led on S12G128

679 Views
huuhuynhchi
Contributor III

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.

Labels (1)
Tags (1)
3 Replies

454 Views
RadekS
NXP Employee
NXP Employee

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!
-----------------------------------------------------------------------------------------------------------------------

454 Views
huuhuynhchi
Contributor III

Thank you :smileyhappy: :smileyhappy:

0 Kudos

454 Views
rayhall
Contributor V

This will toggle a LED on Port PT5

DDRT = 0x20;  // Set pin 5 as output

PTT_PTT5 = ~PTT_PTT5;  //toggle LED on PT5

Ray.