Mcp960x.ReadStatus Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns the status of the device
public void ReadStatus (out bool burstComplete, out bool thUpdate, out bool shortCircuit, out bool openCircuitOrInputRange, out bool Alert4Status, out bool Alert3Status, out bool Alert2Status, out bool Alert1Status);
member this.ReadStatus : bool * bool * bool * bool * bool * bool * bool * bool -> unit
Public Sub ReadStatus (ByRef burstComplete As Boolean, ByRef thUpdate As Boolean, ByRef shortCircuit As Boolean, ByRef openCircuitOrInputRange As Boolean, ByRef Alert4Status As Boolean, ByRef Alert3Status As Boolean, ByRef Alert2Status As Boolean, ByRef Alert1Status As Boolean)
Parameters
- burstComplete
- Boolean
Returns the burst mode conversions status flag.
- thUpdate
- Boolean
Returns the temperature update/conversion complete flag.
- shortCircuit
- Boolean
MCP9601/L01/RL01 only: Returns the short circuit detection flag.
- openCircuitOrInputRange
- Boolean
MCP960X/L0X/RL0X: Returns the temperature range detection flag - MCP9601/L01/RL01: Returns the open circuit detection flag.
- Alert4Status
- Boolean
Returns Alert 4 status bit.
- Alert3Status
- Boolean
Returns Alert 3 status bit.
- Alert2Status
- Boolean
Returns Alert 2 status bit.
- Alert1Status
- Boolean
Returns Alert 1 status bit.
Remarks
burstComplete: Once Burst mode is enabled, this bit is normally set after the first burst is complete. User can clear it and poll the bit periodically until the next burst of temperature conversions is complete
thUpdate: This bit is normally set. User can clear it and poll the bit until the next temperature conversion is complete.
shortCircuit: MCP9601/L01/RL01 only: 1 = Thermocouple Shorted to VDD or VSS 0 = Normal operation The VSENSE pin must be connected to the Thermocouple.
openCircuitOrInputRange: MCP960X/L0X/RL0X: 1 = The ADC input Voltage (EMF) or the temperature data from the TH register exceeds the measurement range for the selected thermocouple type 0 = The ADC input Voltage(EMF) or the temperature data from the TH register is within the measurement range for the selected thermocouple type If this bit is set, then the MCP960X/L0X/RL0X input voltage (EMF) to Degree Celsius conversion may be bypassed. MCP9601/L01/RL01: Indicates whether the Thermocouple is disconnected from the inputs.The VSENSE pin must be connected to the Thermocouple.
AlertXYZStatus: Alert XYZ status bit 1 = TX > Temperature ALERT<Y> 0 = TX <= Temperature ALERT<Y> Where: TX is either TH or TC