Skip to content

Demo I2C interface between MSP430 and Sensirion SHTC3 temp-humidity sensor

License

Notifications You must be signed in to change notification settings

microphonon/SHTC3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SHTC3

Demo code to read and display temperature and humidity data from Sensirion SHTC3 using the MSP430F5529 or MSP430FR5969 Launchpad. Low-level I2C communication using UCB0 registers, interrupts, and low-power modes. Read sensor in low-power mode with clock stretching. Display data on terminal program. Humidity displayed with 4 significant figures; temperature 3 significant figures. Main loop runs with timed interrupt from LPM3 and VLO clock. I2C clock 100 kHz; UART 9600 baud. IDE with CCS 6.1.3 and nofloat printf support.

SHTC3_F.c Code for MSP430Fx5xx/x6xx MCUs. Launchpad terminals:
P3.0 SDA with 10k pullup
P3.1 SCL with 10k pullup
P3.3 UART TXD
P3.4 UART RXD

SHTC3_FR.c Code for MSP430FR59xx MCUs. Launchpad terminals:
P1.6 UCB0SDA with 10k pullup
P1.7 UCB0SCL with 10k pullup
P2.5 UCA1TXD
P2.6 UCA1RXD

Sensirion product page: https://www.sensirion.com/shtc3

Digi-Key video: https://www.youtube.com/watch?v=X7GWMmYFZ9I

shtc3

About

Demo I2C interface between MSP430 and Sensirion SHTC3 temp-humidity sensor

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages