MS9S12DT256 - Beginner question

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

MS9S12DT256 - Beginner question

529 Views
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

Labels (1)
0 Kudos
1 Reply

253 Views
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 Kudos