I’m working with an MSP430 2013IN, I’m confused with the pins. Are the only pins where I can send and receive a signal XIN/P2.6 and XOUT 2.7 or can I use more pins for this role like blinking an LED. Thanks
I’ve only been playing with mine for about a week, but as best I can tell you can use any of the pins for digital I/O it is just a matter of setting them up.
What is your target application?
Chris
All the I/O pins (there are 10 of them) of F20xx have multiple functions. By default, they are 8 digital input pins (P1.0 to P1.7), XIN, and XOUT. You may set up control registers to change the function of each pin. For example, if you clear bit-6 and bit-7 of P2SEL register, XIN and XOUT become digital input pins P2.6 and P2.7 respectively. If you set any bit of the SD16AE register, the corresponding digital pin becomes analog input pin. Other control registers include P1SEL, P1DIR, P1REN (with P1OUT), P2DIR, and P2REN (with P2OUT). All these are specified in the DataSheet.
withthe 2013 IN which is pin 1
If you are reading the TI logo, date code, and device name right side up, you will notice that there is an indented notch at the left edge of the plastic package. Pin 1 is at the bottom left. Pin 7 at the bottom right. Pin 8 at the top right, and pin 14 at top left.
By the way, the “X” in XIN and XOUT stands for “Crystal”. You can use a 32768Hz watch crystal across XIN and XOUT to control the frequency of an on-chip oscillator.