MS9S12DT256 - Beginner question

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

MS9S12DT256 - Beginner question

844 次查看
tidusyuna88
Contributor I

I am the first time use freescale controller. I have a lot of question in my mind...

 

I want to use the switches integrated in the micro-controller module, SW1 and SW2 in my project... but I have absolutely no ideal how to use it. Do I have to use codewarrior to write code to activate it? How can I use it?

 

Thanks

标签 (1)
0 项奖励
回复
1 回复

568 次查看
J2MEJediMaster
Specialist I

There should be some sample code that accompanied your specific board. Usually this code flashes some LEDs on the board, but some might read switches. The board's documentation should explain what registers read the switch state, and what bits are involved in the register. Worst case, you might have to study the board's schematic to see what peripheral pins the switches are tied to.

 

---Tom

0 项奖励
回复