Max31865.Registers.ConfigRegister (max31865 v0.1.0)

Allows the reading and writing of the Max31865 Config Register.

register-layout

Register Layout

The config register for the MAX31865 consists of 8 bits, from left to right:

VbiasAutoModeOneShotModeThreeWireModeFaultCycle1FaultCycle2Fault ClearFilter Select
NameR/WBehaviour
VbiasR/WEnables/Disables Vbias. Vbias introduces self heating so it should be disabled when not actively performing conversions.
AutoModeR/WWhen enabled, conversions will be performed constantly even if they are not being read. Vbias must be enabled if auto mode is enabled.
OneShotModeR/WWhen enabled a single conversion is performed, after which the bit is automatically cleared.
ThreeWireModeR/WWhen enabled, three wire mode is used. Otherwise, 2/4 wire mode is used.
FaultCycle1RUsed to determine fault cycle status. See below for further detail.
FaultCycle2RUsed to determine fault cycle status. See below for further detail.
FaultClearR/WWhen enabled, any faults will be cleared, after which the bit is automatically cleared.
FilterSelectR/WUsed to filter out mains noise. When enabled, 50hz mode is used. Otherwise, 60hz mode is used.

fault-cycle-status-bits

Fault Cycle Status Bits

The Fault Cycle bits can be written to in order to trigger a fault detection with either an automatic or manual delay. In the case of a manual delay, fault detection continues until the user requests that it ends.

The Fault Cycle bits can be read to determine the status of the Fault Cycle. Note that these bits do not report faults. For that, see the FaultRegister.

writing-to-fault-cycle-bits

Writing to Fault Cycle Bits

Bit 1Bit 2Meaning
00N/A
10Begin Fault detection with Automatic completion
01Begin Fault detection with Manual completion
11End Fault detection with Manual completion

reading-from-fault-cycle-bits

Reading from Fault Cycle Bits

Bit 1Bit 2Meaning
00Fault detection finished
10Automatic fault detection still running
01Manual cycle 1 still running; waiting for user to write 11
11Manual cycle 2 still running

Link to this section Summary

Functions

Accepts a Max31865 SPI reference and reads the Config Register, then returns a ConfigRegister struct representing it's contents.

Accepts a ConfigRegister struct and a Max31865 SPI reference and writes it to the ConfigRegister.

Link to this section Functions

Accepts a Max31865 SPI reference and reads the Config Register, then returns a ConfigRegister struct representing it's contents.

Link to this function

write(config, max_ref)

Accepts a ConfigRegister struct and a Max31865 SPI reference and writes it to the ConfigRegister.