I think most of us would prefer helping you getting started, instead
of providing finished code.
As a community we don't want you to just copy&paste our code, we want
to help you learning to understand microcontrollers.
Some tutorials, you might have a look at:
- Using buttons to let LEDs blink:
--> basic: http://mspsci.blogspot.com/2010/07/tutorial-07-pushing-buttons.html
--> using interrupts:
http://www.msp430launchpad.com/search?updated-max=2010-07-30T04:22:00-04:00&max-results=7
- Setting up peripherals:
--> http://mspsci.blogspot.com/2010/07/tutorial-02-msp430-township-and.html
If you wan't to reuse the Reset-Pin, you should have a look at the
PxSEL register in the user manual for a general explanation:
--> http://focus.ti.com/lit/ug/slau144e/slau144e.pdf
And then at the datasheet of you specific chip, if you wan't to know
what the different PxSEL flags mean for the different inputs.
--> http://focus.ti.com/lit/ds/symlink/msp430g2231.pdf
Yeah you have to learn a lot at the beginning, but on the other hand,
what is it worth to rely on other's people code, you can copy&paste?
Christian
Thanks for attempting this challange! I will go over it and see what I can understand.
--
| .''`. == Debian GNU/Linux ==.| http://kevix.myopenid.com......|
| : :' : The Universal OS....| mysite.verizon.net/kevin.mark/.|
| `. `' http://www.debian.org/.| http://counter.li.org [#238656]|