STM32H750XB_RT-THREAD/I2C—AP3216C(光照三合一)/3.AP3216C全功能例程_(硬件I2C)/必读说明.txt
2025-07-21 14:34:29 +08:00

71 lines
1.4 KiB
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*********************************************************************************************/
【*】程序简介
-工程名称AP3216C基本数据读取
-实验平台: 野火 STM32H750 开发板
-MDK版本5.25
-ST固件库版本1.5.0
【 !】功能简介:
使用AP3216C检测光照强度、红外强度、接近距离和物体是否接近。
【*】注意事项:
【 !】实验操作:
电脑端使用串口调试助手选择电脑与STM32相连的COM口设置为115200-N-8-1
复位开发板即可接收STM32串口发送给电脑的调试信息。
【*】 引脚分配
AP3216C
AP3216C的I2C接口与STM32的I2C1相连,且已接上拉电阻。
SCL <--->PB8
SDA <--->PB9
本程序中没有使用INT引脚
串口(TTL-USB TO USART)
CH340的收发引脚与STM32的发收引脚相连。
RX<--->PA9
TX<--->PA10
/*********************************************************************************************/
【*】 时钟
A.晶振:
-外部高速晶振25MHz
-RTC晶振32.768KHz
B.各总线运行时钟:
-系统时钟 = SYCCLK = 480MHz
-AHB4 = 240MHz
-AXI = 240MHz
-APB1 = 120MHz
-APB2 = 120MHz
-APB3 = 120MHz
C.浮点运算单元:
使能
/*********************************************************************************************/
【*】 版本
-程序版本1.0
-发布日期2019
-版本更新说明:首次发布
/*********************************************************************************************/
【*】 联系我们
-野火论坛 :http://www.firebbs.cn
-淘宝店铺 :http://firestm32.taobao.com
/*********************************************************************************************/