Saturday, February 21, 2015

Energia library for MSP430 internal temp sensor

Energia library for MSP430 internal temp sensor



I added little library for MSP430 internal temperature sensor usage.This sensor is not very precise but can be used if necessary.

You can access source code and see example file here:
https://github.com/JFF-Bohdan/msp430intertempsensor

Also, you can find post on 43oh:
http://forum.43oh.com/topic/6415-energia-library-for-msp430-internal-temp-sensor/

Notice, that you can use float values for temperature or int16 (also with decimal part of temperature value). When using int16 temperature will be returned in this way:
  • 23.5 C will be returned as 235 (0xEB) integer value;
  • 54.3 C will be returned as 543 (0x21F) integer value
When using float values (on my MSP430G2553) memory usage will be like this:
binary sketch size: 7 625 bytes (of a 16 384 byte maximum)

When using int16 memory usage will be:
binary sketch size: 3 359 bytes (of a 16 384 byte maximum)

1 comment: