Blink led on S12G128

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Blink led on S12G128

1,266件の閲覧回数
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,041件の閲覧回数
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,041件の閲覧回数
huuhuynhchi
Contributor III

Thank you :smileyhappy: :smileyhappy:

0 件の賞賛
返信

1,041件の閲覧回数
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.