SparkFun Forums 

Where electronics enthusiasts find answers.

Discussions on how to get your MSP JTAG programmer up and running.
By nav1058
#53902
Hi,,, everyone.
There are 14 pins on ez430-F2013, For my application I need a ADC which is builtin on ez430. How to use it and what pin among these 14 pins corresponds to ADC.
When ADC converts the signal, on which register of F2013 the converted signal is written.
Plz guide me ,, am completely new to the world of embedded system.
Cheers :!: .
By emf
#53905
nav1058 wrote:Hi,,, everyone.
what pin among these 14 pins corresponds to ADC.
You have a lot of choices: 2,3,4,5,6,7,8, and 9 are all connected to the ADC module.
When ADC converts the signal, on which register of F2013 the converted signal is written.
SD16MEM0

How to use the ADC is covered in the SD16_A chapter of the MSP430x2xx Family User's Guide. In that document they just refer to the pins as A0+/A1+, etc. The actual pin assignments are listed in the MSP430F2013 datasheet.
By OldCow
#53930
uC chips such as MSP430 have far more I/O functions than I/O pins. The programmer has the freedom/duty to select the I/O functions and assign them to I/O pins.

For MSP430F2013, see data-sheet SLAS491D.pdf pages 68-79 for how to assign I/O functions to I/O pins. For example, pin #2 can be assigned as (a1) P1.0 input, (a2) P1.0 output, (b) Timer_A2 TACLK/INCLK, (c) BCS ACLK, or (d) SD16 A0+.

For details of modules such as the SD16, see User's Guide SLAU144E.pdf pages 24-1 to 24-22.