Hello everyone,
today i've started to play with msp430 launch pad, my very first experience with microprocessors ever :). I got a bit confused though, because the of the pin numbering. The led blinking example says:
// Since we want to blink the on-board red LED, we want to set the direction of Port 1, Pin 0 (P1.0) as an output
// We do that by writing a 1 on the PIN0 bit of the P1DIR register
// P1DIR = <PIN7><PIN6><PIN5><PIN4><PIN3><PIN2><PIN1><PIN0>
// P1DIR = 0000 0001
but when load up the tutorial code into the device, with a slight changes, say i alter the code
// P1DIR = 0000 0010
it shlould make the PIN2 blink, so on he board it is the P1.1 pin where i shlould connect the external led to blink. But it actually makes P1.3 to blink.
I did not figure out, what am i getting wrong. I have M430g2553 device plugged there (20pins).
Thanks for the answers.
Jan