MPU6050 study notes (power manager 1, 2)


Register No. 107: Power Manager 1

PWR_MGMT_1:

 clip_image002

Description:

This register allows the user to configure the power mode and clock source. It also provides a bit for resetting the entire device, and a bit for disabling the temperature sensor.

This register allows the user to configure the power mode and clock source. It also provides one bit to reset the entire device and one bit to turn off the temperature sensor.

By setting SLEEP to 1, the MPU-60X0 can be put into low power sleep mode. When CYCLE is set to 1 while SLEEP is disabled, the MPU-60X0 will be put into Cycle Mode. In Cycle Mode, the device cycles between sleep mode and waking up to take a single sample of data from accelerometer at a rate determined by LP_WAKE_CTRL (register 108). To configure the wake frequency, use LP_WAKE_CTRL within the Power Management 2 register (Register 108).

By setting SLEEP to 1, the MPU60X0 can enter a low-power sleep mode. When CYCLE is set to 1 and sleep mode is disabled, the MPU60X0 will enter loop mode. In loop mode, the device cycles between sleep and wake modes, taking a single data sample from the accelerometer at a rate determined by LP_WAKE_CTRL (register 108). To configure the wakeup frequency, use the LP_WAKE_CTRL of the power manager 2 register.

An internal 8MHz oscillator, gyroscope based clock, or external sources can be selected as the MPU-60X0 clock source. When the internal 8 MHz oscillator or an external source is chosen as the clock source, the MPU-60X0 can operate in low power modes with the gyroscopes disabled.

An internal 8MHz oscillator can be selected, a gyroscope based clock or an external source can be selected as the MPU60X0 clock source. When 8MHz oscillator or external signal source is selected as clock source, MPU60X0 can not work in low power mode with gyroscope disabled.

Upon power up, the MPU-60X0 clock source defaults to the internal oscillator. However, it is highly recommended that the device be configured to use one of the gyroscopes (or an external clock source) as the clock reference for improved stability. The clock source can be selected according to the following table.

On power-up, the MPU60X0 clock source defaults to the internal oscillator. But we recommend setting the device clock to one of the gyroscopes (or an external clock source) as a clock reference for stability. The clock source can be selected according to the table below.

clip_image004

For further information regarding the MPU-60X0 clock source, please refer to the MPU-6000/MPU6050 Product Specification document. Bit 4 is reserved.

For more information about the MPU60X0 clock source, please refer to the MPU6000/MPU6050 product specification document

Parameters:

DEVICE_RESET When set to 1, this bit resets all internal registers to their default values. The bit automatically clears to 0 once the reset is done. The default values for each register can be found in Section 3.

When set to 1, this bit resets all internal registers to their default values. After reset is completed, this bit is automatically cleared. Default values ​​for each register can be found in Section III. (Register107 defaults to 0x40 after reset, which is 0100 0000, so this bit is reset to 0 after power-on)

SLEEP: When set to 1, this bit puts the MPU-60X0 into sleep mode.

When this bit is 1, this bit puts MPU60X0 in sleep mode (power-on reset, this bit is 1 by default, so MPU60X0 power-on reset defaults to sleep mode, if you need to work normally, you need to wake up first)

CYCLE: When this bit is set to 1 and SLEEP is disabled, the MPU-60X0 will cycle between sleep mode and waking up to take a single sample of data from active sensors at a rate determined by LP_WAKE_CTRL (register 108).

When this bit is set to 1 and SLEEP is disabled, the MPU60X0 will cycle between sleep mode and wake-up mode. This switching rate is determined by LP_WAKE_CTRL (register 108) at the rate at which the valid sensor is sampled from a single data.

TEMP_DIS: When set to 1, this bit disables the temperature sensor.

When set to 1, this bit disables the temperature sensor.

CLKSEL[2:0]:3-bit unsigned value. Specifies the clock source of the device

3 -bit unsigned value specifying the clock source for the device

Register 108 – Power Management 2

PWR_MGMT_2

clip_image006

Description:

This register allows the user to configure the frequency of wake-ups in Accelerometer Only Low Power Mode. This register also allows the user to put individual axes of the accelerometer and gyroscope into standby mode.

The MPU-60X0 can be put into Accelerometer Only Low Power Mode using the following steps:

Set CYCLE bit to 1

Set SLEEP bit to 0

Set TEMP_DIS bit to 1

Set STBY_XG, STBY_YG, STBY_ZG bits to 1

All of the above bits can be found in Power Management 1 register (Register 107).

This register allows the user to set the wakeup frequency when only the accelerometer is in low power mode. This register also allows the user to put the various axes of the accelerometer and gyroscope into standby mode.

The MPU60X0 can enter the accelerometer-only low-power mode by following several steps:

Set the CYCLE bit to 1

Set the SLEEP bit to 0

Set the TEMP_DIS bit to 1

Set the STBY_XG, STBY_YG, STBY_ZG bits to 1

All of the above bits can be found in the Power Management 1 register (Register 107).

In this mode, the device will power off all devices except for the primary I2 C interface, waking only the accelerometer at fixed intervals to take a single measurement. The frequency of wake-ups can be configured with LP_WAKE_CTRL as shown below.

In this mode, the device will shut down all device interfaces except the main IIC and only wake up the accelerometer to take a single measurement at a fixed interval. The frequency of wakeup can be configured with LP_WAKE_CTRL as follows.

clip_image007

For further information regarding the MPU-6050’s power modes, please refer to Register 107.

See register 107 for more information on MPU6050 power modes

The user can put individual accelerometer and gyroscopes axes into standby mode by using this register. If the device is using a gyroscope axis as the clock source and this axis is put into standby mode, the clock source will automatically be changed to the internal 8MHz oscillator.

The user can put the individual accelerometer and gyroscope axes into standby mode by using the registers. If the device is using a gyroscope axis as the clock source and this axis is in standby mode, the clock source will automatically change to the internal 8MHz oscillator.

Paeameters:

LP_WAKE_CTRL: 2-bit unsigned value. Specifies the frequency of wake-ups during Accelerometer Only Low Power Mode.

2 -bit unsigned value specifying the accelerometer-only wakeup frequency during low power consumption.

STBY_XA: When set to 1, this bit puts the X axis accelerometer into standby mode.

When set to 1, this bit puts the X-axis accelerometer in standby mode

STBY_YA: When set to 1, this bit puts the Y axis accelerometer into standby mode.

When set to 1, this bit puts the Y-axis accelerometer in standby mode

STBY_ZA: When set to 1, this bit puts the Z axis accelerometer into standby mode.

When set to 1, this bit puts the Z-axis accelerometer in standby mode

STBY_XG: When set to 1, this bit puts the X axis gyroscope into standby mode.

When set to 1, this bit puts the X-axis gyroscope in standby mode

STBY_YG: When set to 1, this bit puts the Y axis gyroscope into standby mode.

When set to 1, this bit puts the Y-axis gyroscope into standby mode

STBY_ZG: When set to 1, this bit puts the Z axis gyroscope into standby mode.

When set to 1, this bit puts the Z-axis gyroscope in standby mode

clip_image009

clip_image011

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325056835&siteId=291194637