# temperature_tc77

TC77 temperature library

Author | Matthew Schinkel - borntechi.com, copyright © 2011, all rights reserved.
Adapted-by |
Compiler | 2.4o

Description

    This library reads temperature from TC77 through SPI.
                 TC77 has a resolution of 0.0625C from -55C to +125C

Sources

    TC77 temperature sensor library by Eur van Andel
    http://www.microchip.com/wwwproducts/Devices.aspx?dDocName=en010750

Notes

    This is a complete re-write of the orignal jallib TC77 library
    written by Eur van Andel.

Dependencies

No dependency found

## Summary

### Global variables/contants

- `var word _TC77_NEG25C = 0b1111001110000111`
- `var word _TC77_POS25C = 0b0000110010000111`
- `var word _TC77_POS125C = 0b0011111010000111`
- `var word _TC77_NEG55C = 0b1110010010000111`

### Procedures

- `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)`

### Functions

- `tc77_celsius_sbyte'get() return sbyte`
- `tc77_celsius_sword'get() return sword`
- `tc77_celsius_sdword'get() return sdword`

## API details

### Global variables/contants

- `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

### Procedures

- `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

### Functions

- `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

## Related samples

Here are the list of samples which use this library:

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