Blink led on S12G128

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

Blink led on S12G128

1,295 次查看
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.

标签 (1)
标记 (1)
3 回复数

1,070 次查看
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!
-----------------------------------------------------------------------------------------------------------------------

1,070 次查看
huuhuynhchi
Contributor III

Thank you :smileyhappy: :smileyhappy:

0 项奖励
回复

1,070 次查看
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.