MSP430 Microcontroller Help

NaOH

Diamond Member
Mar 2, 2006
5,015
0
0
I need help. I can get the board to read in using the temperature sensor, but I can't figure what the actual temperature in degrees is. I look in the register that stores the reading and it's in HEX. So lost.
 

jmcoreymv

Diamond Member
Oct 9, 1999
4,264
0
0
[Edit] Check page 371 and 377 of the manual http://focus.ti.com/lit/ug/slau144b/slau144b.pdf
Pg 377 gives the transfer function.
[/Edit]

Does the microcontroller itself have an internal temperature sensor that automatically stores its value into a specific register? Or is there a temperature sensor on a development board that also has the MSP430 on it?
 

NaOH

Diamond Member
Mar 2, 2006
5,015
0
0
yes it has an interal temp sensor and it stores the value into a specific register. I have that data sheet already but I can;t make anything out of that transfer function (idiot).
 

Casawi

Platinum Member
Oct 31, 2004
2,366
1
0
The datasheet should have the function to use to convert to either F or Cs. MSPs are 16bit MCU so prolly this value will be stored in a register somewhere, if you look into your register file to the specific location stated in the datasheet, there should be a 16bit HEX value.
 

Casawi

Platinum Member
Oct 31, 2004
2,366
1
0
What is the value that you read(Unsigned Hex value) ? you're right that transfer function is not really clear. DO you know what is your voltage reference ? then I think the offset Voltage is the actual reading from the sensor - voltage ref.
 

NaOH

Diamond Member
Mar 2, 2006
5,015
0
0
The value read in is like 0xD335. That corresponds to roughly 75C (using an extra thermometer to check). Voltage ref is 1.2V.