Component: Thermocouple ( MCP960X) (Environmental)
Author | Matrix TSL |
Version | 1.0 (Release) |
Category | Environmental |
Contents
Thermocouple ( MCP960X) component
Component to interface the MCP960X IC from Microchip. Uses a standard 2-wire I2C interface to connect to the IC and collect the temperature. IC available in different versions to suit different thermocouple types.
Examples
No additional examples
Downloadable macro reference
ReadReference_Int
Returns the Reference (IC die) temperature from the last sample as an integer value.
Use Sample first, which samples both reference & themocouple temperatures.
Parameters
- This macro has no parameters
Return value
ReadReference_Float
Returns the reference (IC die) temperature from the last sample as a floating point.
Use Sample first, which samples both reference & themocouple temperatures.
Parameters
- This macro has no parameters
Return value
Sample
Must be called before any of the Read functions.
Reads the memory of the MCP9600/1 IC. Returns 0 for 9600. Checks for errors, MCP9601 only.
Returns: 0 = OK, 1 = O/ C Themocouple & 2=S/C Themocouple.
Parameters
- This macro has no parameters
Return value
ReadThermocouple_Int
Returns the thermocouple temperature from the last sample as an integer value.
Use Sample first, which samples both reference & themocouple temperatures.
Parameters
- This macro has no parameters
Return value
ReadThermocouple_Float
Returns the thermocouple temperature from the last sample as a floating point value.
Use Sample first, which samples both reference & themocouple temperatures.
Parameters
- This macro has no parameters
Return value
Initialise
Configures the I2C bus ready for communications.
Parameters
- This macro has no parameters
Return value
- This call does not return a value
Simulation macro reference
This component does not contain any simulation macros
Property reference
Thermocouple Type
This property is of type Fixed list of ints and can be referenced with the variable name ThermocoupleType.
Thermocouple type.
Selects which type of thermocouple the IC works with.
Filter Coefficients
This property is of type Fixed list of ints and can be referenced with the variable name FilterCoef.
Digitial filter selection.
The higher the number the better the filter.
Results more stable but take longer to update.
Unit
This property is of type Fixed list of ints and can be referenced with the variable name Unit.
Select Temperature results to be celsius or fahrenheit
Address
This property is of type Unsigned integer and can be referenced with the variable name Address.
Address ranges 0x60 - 0x67 (96 - 103)
Channel
This property is of type Fixed list of ints and can be referenced with the variable name cal_i2c1::CHANNEL.
Channel selection
SDA
This property is of type Single digital pin and can be referenced with the variable name cal_i2c1::SDA.
Pin used for SDA (data signal)
SCL
This property is of type Single digital pin and can be referenced with the variable name cal_i2c1::SCL.
Pin used for SCL (clock signal)
Simulate Comms
This property is of type True or false and can be referenced with the variable name SimComms.
No additional information
Console Data
This property is of type True or false and can be referenced with the variable name cal_spi1::ConsoleData.
Selects if the console data is automatically generated or not
Scope Traces
This property is of type True or false and can be referenced with the variable name cal_spi1::ScopeTraces.
Selects if the scope traces are automatically generated or not
API
This property is of type Fixed list of ints and can be referenced with the variable name cal_spi1::Injector.
No additional information