SBOA631 August 2025 HDC1010 , HDC1080 , HDC2010 , HDC2021 , HDC2022 , HDC2080 , HDC3020 , HDC3020-Q1 , HDC3021 , HDC3021-Q1 , HDC3022 , HDC3022-Q1 , HDC3120 , HDC3120-Q1
This section outlines how to configure HDC2x devices to operate in Auto Measurement Mode (AMM) and highlights key differences compared to Trigger-On Demand mode.
In AMM, the device automatically performs measurements at a user-defined sampling frequency, eliminating the need for manual measurement triggers from the MCU. Unlike Trigger-On Demand, where each measurement must be initiated manually, AMM requires only a single trigger to start periodic conversions.
In this example, the HDC2010 is configured to sample once every 5 seconds (0.2Hz). This is accomplished by writing the appropriate setting to the Configuration Register (0x0E). An illustration of the Configuration Register setup is provided in Figure 2-5.
// set device to Auto Measurement Mode for 0.2Hz (1 sample/5 seconds)
Wire.beginTransmission(0x40); // start communication with HDC2x
Wire.write(0x0E); // point to register 0x0E (Measurement Config)
Wire.write(0x40); // write value to register
Wire.endTransmission(); // end communicationThe Measurement Configuration Register uses the same configuration explained in the Trigger-On Demand section.
Visit the following link to view the full sample code for the HDC2x in Auto Measurement Mode.