Technorati Tags: 嵌入式開發、模塊開發寄存器107號:電源管理器1PWR_MGMT_1: Description:This register allows the user to configure the power mode and clock source. It also p... ...
Technorati Tags: 嵌入式開發、模塊開發
寄存器107號:電源管理器1
PWR_MGMT_1:
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.
該寄存器允許用戶配置電源模式和時鐘源。它也提供了一位用來重置整個設備,一位用來關閉溫度感測器。
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).
通過將SLEEP設置為1,MPU60X0可以進入低功耗睡眠模式。當CYCLE被設置為1,而睡眠模式被禁用時,MPU60X0將進入迴圈模式。在迴圈模式下,設備在睡眠模式和喚醒模式之間迴圈,該迴圈從加速度計獲取單個數據樣本速率由LP_WAKE_CTRL(108號寄存器)確定。要配置喚醒頻率,請使用電源管理器2寄存器的LP_WAKE_CTRL.
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.
可以選擇內部8MHz的振蕩器,基於陀螺儀的時鐘或者外部源可以被選擇為MPU60X0的時鐘源。當選擇8MHz振蕩器或外部信號源作為時鐘源,MPU60X0可以在陀螺儀禁用的低功耗模式下不工作。
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.
上電時,MPU60X0時鐘源預設為內部振蕩器。但是我們更建議將設備時鐘設置為其中一個陀螺儀(或者外部時鐘源)作為提供穩定性的時鐘基準。時鐘源可以根據下表選擇。
For further information regarding the MPU-60X0 clock source, please refer to the MPU-6000/MPU6050 Product Specification document. Bit 4 is reserved.
有關MPU60X0時鐘源的更多消息,請參考MPU6000/MPU6050產品規格文件
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.
設置為1時,該位所有內部寄存器複位為預設值。複位完成後,該位自動清零。每個寄存器的預設值可以在第三節中找到。(Register107複位後預設為0x40即0100 0000,所以該位上電覆位為0)
SLEEP: When set to 1, this bit puts the MPU-60X0 into sleep mode.
當該位置為1時,該位將MPU60X0置於睡眠模式(上電覆位,該位預設為1,所以MPU60X0上電覆位預設為睡眠模式,如果需要正常工作,需要先進行喚醒)
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).
當該位設置為1且SLEEP被禁用時,MPU60X0將在睡眠模式和喚醒模式之間迴圈。該切換速率從單個數據採樣有效感測器的速率由LP_WAKE_CTRL (register 108)確定。
TEMP_DIS: When set to 1, this bit disables the temperature sensor.
設置為1時,該位禁用溫度感測器。
CLKSEL[2:0]:3-bit unsigned value. Specifies the clock source of the device
3位無符號值,用於指定設備的時鐘源
Register 108 – Power Management 2(108號寄存器,電源管理器2)
PWR_MGMT_2
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).
該寄存器允許用戶設置僅加速度計處於低功耗模式下的喚醒頻率。該寄存器還允許用戶將加速度計和陀螺儀的各個軸置於待機模式。
MPU60X0可以通過以下幾個步驟進入僅加速度計低功耗模式:
將CYCLE位設置為1
將SLEEP位設置為0
將TEMP_DIS位設置為1
將STBY_XG,STBY_YG,STBY_ZG位設置為1
所有上述位都可以在電源管理1寄存器(寄存器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.
在此模式下,器件將關閉除主IIC之外的所有器件介面,僅喚醒加速度計以固定的時間間隔進行單次測量。喚醒的頻率可以如下所示配置LP_WAKE_CTRL。
For further information regarding the MPU-6050’s power modes, please refer to Register 107.
有關MPU6050電源模式的更多信息,請參閱寄存器107
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.
用戶可以通過使用寄存器將各個加速度計和陀螺儀的軸置於待機模式。如果設備使用陀螺儀軸作為時鐘源並且這個軸處於待機模式,時鐘源將自動更改為內部的8MHz振蕩器。
Paeameters:
LP_WAKE_CTRL: 2-bit unsigned value. Specifies the frequency of wake-ups during Accelerometer Only Low Power Mode.
2位無符號值,指定僅加速度計在低功耗期間的喚醒頻率。
STBY_XA: When set to 1, this bit puts the X axis accelerometer into standby mode.
設置為1時,該位將X軸加速度計置於待機模式
STBY_YA: When set to 1, this bit puts the Y axis accelerometer into standby mode.
設置為1時,該位將Y軸加速度計置於待機模式
STBY_ZA: When set to 1, this bit puts the Z axis accelerometer into standby mode.
設置為1時,該位將Z軸加速度計置於待機模式
STBY_XG: When set to 1, this bit puts the X axis gyroscope into standby mode.
設置為1時,該位將X軸陀螺儀置於待機模式
STBY_YG: When set to 1, this bit puts the Y axis gyroscope into standby mode.
設置為1時,該位將Y軸陀螺儀置於待機模式
STBY_ZG: When set to 1, this bit puts the Z axis gyroscope into standby mode.
設置為1時,該位將Z軸陀螺儀置於待機模式