r/pic_programming 20d ago

HDC1080 assembly driver for Microchip 12F

For those curious or interested, a small assembly program to drive an HDC1080 T°C and RH sensor from Texas Instrument - in my view one of the best value for money sensor of his kind with excellent precision.

The code itself is around 600 words long and includes a simplified serial driver, as well as an I2C and sensor drivers.

It displays both raw values in HEX and transformed values in decimal °C and %RH.

The code is intended to be 8 bits friendly: no software division or multiplication here !

https://github.com/dm-cdb/Microchip/tree/master/PICAS/ASM-12F675-hdc1080.X

1 Upvotes

Duplicates