Component: Thermocouple (MCP960X) (Environmental)
From Flowcode Help
Jump to navigationJump to searchAuthor | Matrix TSL |
Version | 6.0 |
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.
Version information
Library Version, Component Version, Date, Author, Info
Detailed description
No detailed description exists yet for this component
Examples
Here is a basic example to display both the thermocouple temperature and IC surface temperature.
Sim Demo
Macro reference
Initialise
![]() |
Initialise |
Configures the I2C bus ready for communications. | |
![]() |
Return |
ReadReference_Float
![]() |
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. | |
![]() |
Return |
ReadReference_Int
![]() |
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. | |
![]() |
Return |
ReadThermocouple_Float
![]() |
ReadThermocouple_Float |
Returns the thermocouple temperature from the last sample as a floating point value. Use Sample first, which samples both reference & themocouple temperatures. | |
![]() |
Return |
ReadThermocouple_Int
![]() |
ReadThermocouple_Int |
Returns the thermocouple temperature from the last sample as an integer value. Use Sample first, which samples both reference & themocouple temperatures. | |
![]() |
Return |
Read_N_Registers
![]() |
Read_N_Registers |
Reads a number of sequential bytes starting from the specified register | |
![]() |
Address |
![]() |
Data |
![]() |
Count |
![]() |
Return |
Read_Register
![]() |
Read_Register |
Reads a byte from a register | |
![]() |
Address |
![]() |
Return |
Sample
Write_N_Registers
![]() |
Write_N_Registers |
Writes a set of data values to a sequential registers on the accelerometer | |
![]() |
Start_Reg |
![]() |
Num_Regs |
![]() |
Data |
![]() |
Return |
Write_Register
![]() |
Write_Register |
Writes a byte to a register | |
![]() |
Address |
![]() |
Data |
![]() |
Return |
Property reference
Component Source Code
Please click here to download the component source project: FC_Comp_Source_ThermocoupleMCP960X.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_ThermocoupleMCP960X.fcfx