- 79
- 0
- 约1.21万字
- 约 28页
- 2017-06-05 发布于河南
- 举报
STM8L051F3 串口通讯,模拟I2C读写MPU6050(国外英文资料)
STM8L051F3 串口通讯,模拟I2C读写MPU6050
/ * Includes -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- - * /
# include stm8l15x. H
# include stm8_eval.
/ * @addtogroup STM8L15x_StdPeriph_Examples
* @ {
* /
/ * *
* @addtogroup USART_HyperTerminal_Interrupts
* @ {
* /
/ * Private typedef -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- - * /
/ * Private define -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- - * /
* * * * * * * * *
/ / define the internal address of MPU6050
* * * * * * * * *
# define SMPLRT_DIV 0x19 / / gyro sampling rate, typical value: 0x07 (125Hz)
# define CONFIG 0x1A / / low pass filter frequency, typical value: 0x06 (5Hz)
# define GYRO_CONFIG 0x1B / / gyroscope self-check and measurement range, typical value: 0x18 (no self-checking, 2000deg/s)
# define ACCEL_CONFIG 0x1C / / accelerometer self-checking, measuring range, and high pass filter frequency, typical value: 0x01 (not self-checking, 2G, 5Hz)
# define ACCEL_XOUT_H 0 x3b
# define ACCEL_XOUT_L 0 x3c
# define ACCEL_YOUT_H 0 x3d
# define ACCEL_YOUT_L 0 x3e
# define ACCEL_ZOUT_H 0 x3f
# define ACCEL_ZOUT_L 0 x40
# define TEMP_OUT_H 0x41
# define TEMP_OUT_L 0x42
# define GYRO_XOUT_H 0x43
# define GYRO_XOUT_L 0x44
Pound sign define GYRO_YOUT_H 0x45
Pound sign define GYRO_YOUT_L 0x46
# define GYRO_ZOUT_H 0x47
# define GYRO_ZOUT_L 0x48
# define PWR_MGMT_1 0x6B / / power management, typical value: 0x00 (normally enabled)
# define WHO_AM_I 0x75/iic address register (default value 0x68, read-only)
The address byte data for the # define SlaveAddress 0xD0 / / IIC is read by + 1
/ * Private macro -- -- -- -- -- -- -- -- --
您可能关注的文档
- ansys命令流----前后处理和求解常用命令之求解与后处理(国外英文资料).doc
- AOA重点难点整顿(国外英文资料).doc
- Apache的多种缓存设置方法(国外英文资料).doc
- apache allow&deny详解(国外英文资料).doc
- AI罕见的各类小题目处理方法(国外英文资料).doc
- aptana快捷键说明(国外英文资料).doc
- aptitude 简明手册(国外英文资料).doc
- arm-linux-gcc下载与装置(国外英文资料).doc
- ASC II编码表(国外英文资料).doc
- ASCII码对比表((国外英文资料).doc
- 2025年北京市门头沟区中考一模英语试题.docx
- 2025年北京市门头沟区中考二模英语试题.docx
- 2025年北京市丰台区中考二模英语试题.docx
- 2025年中考英语考前冲刺模拟卷 (北京专用) 解析卷.docx
- 2025年中考英语考前冲刺模拟卷 (北京专用) 原卷.docx
- 2025年肩颈按摩仪行业社媒趋势数据分析.docx
- 2025年人身险行业信用回顾与2026年展望.docx
- 合同法买卖合同培训课件.ppt
- 2025年全球食物系统与SDG研究报告-食物供给、食者健康、生态平衡的整体治理.docx
- 2025下半年四川乐山市川投峨眉铁合金(集团)有限责任公司对考前自测高频考点模拟试题最新.docx
最近下载
- 制鞋技术之成型后段技术培训教材01.pdf VIP
- 磁共振温度图像重建方法、装置、设备、介质及程序产品.pdf VIP
- 金田JTE 388系列变频器使用手册.pdf
- 人教版(PEP)2026-2027学年四年级英语下册教学计划(及进度表).docx
- 东北师范大学2021-2022学年第1学期《线性代数》期末考试试卷(A卷)及标准答案.docx
- 新生儿科消防安全知识培训.pptx VIP
- 第五章+中国的地理差异+课件-2023-2024学年八年级地理下学期人教版.pptx VIP
- 第五章+中国的地理差异+第1课时+课件-2023-2024学年八年级地理下学期人教版.pptx VIP
- 【地理】中国的地理差异第1课时课件-2025-2026学年人教版地理八年级下册.pptx VIP
- 第五章+中国的地理差异+第1课时课件2022-2023学年人教版地理八年级下册.pptx VIP
原创力文档

文档评论(0)