寄存器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轴陀螺仪置于待机模式

MPU6050学习笔记(电源管理器1、2)的更多相关文章

  1. 基于I2C总线的MPU6050学习笔记

    MPU6050学习笔记 1. 简述 一直想自己做个四轴飞行器,却无从下手,终于狠下决心,拿出尘封已久的MPU6050模块,开始摸索着数据手册分析,一步一步地实现了MPU6050模块的功能,从MPU60 ...

  2. js学习笔记:webpack基础入门(一)

    之前听说过webpack,今天想正式的接触一下,先跟着webpack的官方用户指南走: 在这里有: 如何安装webpack 如何使用webpack 如何使用loader 如何使用webpack的开发者 ...

  3. PHP-自定义模板-学习笔记

    1.  开始 这几天,看了李炎恢老师的<PHP第二季度视频>中的“章节7:创建TPL自定义模板”,做一个学习笔记,通过绘制架构图.UML类图和思维导图,来对加深理解. 2.  整体架构图 ...

  4. PHP-会员登录与注册例子解析-学习笔记

    1.开始 最近开始学习李炎恢老师的<PHP第二季度视频>中的“章节5:使用OOP注册会员”,做一个学习笔记,通过绘制基本页面流程和UML类图,来对加深理解. 2.基本页面流程 3.通过UM ...

  5. 2014年暑假c#学习笔记目录

    2014年暑假c#学习笔记 一.C#编程基础 1. c#编程基础之枚举 2. c#编程基础之函数可变参数 3. c#编程基础之字符串基础 4. c#编程基础之字符串函数 5.c#编程基础之ref.ou ...

  6. JAVA GUI编程学习笔记目录

    2014年暑假JAVA GUI编程学习笔记目录 1.JAVA之GUI编程概述 2.JAVA之GUI编程布局 3.JAVA之GUI编程Frame窗口 4.JAVA之GUI编程事件监听机制 5.JAVA之 ...

  7. seaJs学习笔记2 – seaJs组建库的使用

    原文地址:seaJs学习笔记2 – seaJs组建库的使用 我觉得学习新东西并不是会使用它就够了的,会使用仅仅代表你看懂了,理解了,二不代表你深入了,彻悟了它的精髓. 所以不断的学习将是源源不断. 最 ...

  8. CSS学习笔记

    CSS学习笔记 2016年12月15日整理 CSS基础 Chapter1 在console输入escape("宋体") ENTER 就会出现unicode编码 显示"%u ...

  9. HTML学习笔记

    HTML学习笔记 2016年12月15日整理 Chapter1 URL(scheme://host.domain:port/path/filename) scheme: 定义因特网服务的类型,常见的为 ...

随机推荐

  1. python scikit-learn 安装中的各种事宜

    由于兴趣,想安装scikit,但是安装时提示pip版本低,让更新,但是他给的更新命令用了之后并不能更新成功(我是指我的) 网上的各种命令都试过了,弄了大半天还是不行,后来我把SCIKIT换成(whl- ...

  2. [leetcode]340. Longest Substring with At Most K Distinct Characters至多包含K种字符的最长子串

    Given a string, find the length of the longest substring T that contains at most k distinct characte ...

  3. centos7下mysql5.6的主从复制

    一.mysql主从复制介绍 mysql的主从复制并不是数据库磁盘上的文件直接拷贝,而是通过逻辑的binlog日志复制到要同步的服务器本地,然后由本地的线程读取日志里面的sql语句,重新应用到mysql ...

  4. 使用jdbc编程实现对数据库的操作以及jdbc问题总结

    1.创建数据库名为mybatis. 2. 在数据库中建立两张表,user与orders表: (1)user表: (2)orders表: 3.创建工程 * 开发环境: * eclipse mars *  ...

  5. EF6.0新特性-DbCommandInterceptor实现非SQL端读写分离

    前几天看了一个基于sqlserver的负载均衡与读写分离的软件Moebius,实现的方式还是不错的,这使得用sqlserver数据库的同学时有机会对数据库进行更有效的优化了

  6. Luugu 3084 [USACO13OPEN]照片Photo

    很神仙的dp...假装自己看懂了,以后回来复习复习... 设$f_{i}$表示从$1$到$i$,且$i$这个点必放的最大数量. 一个区间有两个限制条件:至少放一个,至多放一个. 因为一个区间至多要放一 ...

  7. 使用JConsole监控HBase内存状态

    使用JConsole或者VisualVM等工具监控HBase状态时,需要修改HBase的配置文件,以解决随机端口问题. 文件名:hbase-env.sh export HBASE_JMX_BASE=& ...

  8. 为什么c++中返回成员变量的指针,会破坏了封装?

    上述代码中,get()函数返回的是类成员变量的name的地址,这是很危险的,name是私有的,意味这不想被客户访问,但是如果返回name的地址,那么外部函数就可以修改name,这就破坏了封装性. 为什 ...

  9. Spring Boot 简单的请求示例(包括请求体验证)

    1.先做个最简单的Get请求 新建一个Controller , 并给他添加注解@RestController 它是@Controller和@ResponseBody的组合注解,告诉Spring我是一个 ...

  10. 冒泡排序java语言实现

    class bubbleSort { public static void main(String[] args){ int[] a={49,38,65,97,76,13,27,49,78,34,12 ...