Author | Matthew Schinkel - borntechi.com, copyright © 2011, all rights reserved. |
Adapted-by | |
Compiler | 2.4o |
This library reads temperature from TC77 through SPI. TC77 has a resolution of 0.0625C from -55C to +125C
TC77 temperature sensor library by Eur van Andel http://www.microchip.com/wwwproducts/Devices.aspx?dDocName=en010750
This is a complete re-write of the orignal jallib TC77 library written by Eur van Andel.
No dependency found
var word _TC77_NEG25C = 0b1111001110000111
var word _TC77_POS25C = 0b0000110010000111
var word _TC77_POS125C = 0b0011111010000111
var word _TC77_NEG55C = 0b1110010010000111
tc77_read_celsius_sdword(sdword out temperature)
tc77_read_raw(word out raw)
tc77_read_celsius_sword(sword out temperature)
tc77_read_celsius_sbyte(sbyte out temperature)
tc77_celsius_sbyte'get() return sbyte
tc77_celsius_sword'get() return sword
tc77_celsius_sdword'get() return sdword
var word _TC77_NEG25C = 0b1111001110000111
No documentation found
var word _TC77_POS25C = 0b0000110010000111
constants
var word _TC77_POS125C = 0b0011111010000111
No documentation found
var word _TC77_NEG55C = 0b1110010010000111
No documentation found
tc77_read_celsius_sdword(sdword out temperature)
No documentation found
tc77_read_raw(word out raw)
Read raw data from TC77
tc77_read_celsius_sword(sword out temperature)
No documentation found
tc77_read_celsius_sbyte(sbyte out temperature)
procedures for compatibility
tc77_celsius_sbyte'get() return sbyte
Read Temperature (sbyte). Temperature x 1. Example temperature output: 26
tc77_celsius_sword'get() return sword
Read Temperature (sword). Temperature x 100. Example temperature output: 2662
tc77_celsius_sdword'get() return sdword
Read Temperature (sdword). Temperature x 10000. Example temperature output: 266875
12hv615 | 12hv615_temperature_fan.jal |
16f73 | 16f73_temperature_tc77.jal |
16f876a | 16f876a_tc77.jal |
16f877 | 16f877_temperature_tc77.jal |
16f877a | 16f877a_temperature_tc77.jal |
16f88 | 16f88_temperature_tc77.jal |
18f14k50 | 18f14k50_temperature_tc77.jal |
18f2520 | 18f2520_temperature_tc77.jal |
18f2550 | 18f2550_temperature_tc77.jal |
18f2620 | 18f2620_temperature_tc77.jal |
18f452 | 18f452_temperature_tc77.jal |
18f4550 | 18f4550_temperature_tc77.jal |
18f4620 | 18f4620_temperature_tc77.jal |
18f67j50 | 18f67j50_temperature_tc77.jal |