实验器材:
阿波罗STM32F7开发板
实验目的:
1,按下按键key0,唤醒传感器进入power on模式并读取TSL2581传感器的数据,串口打印;
2,按下按键key1停止采集,进入power off模式;
3,支持中断管理,传感器0~8,中断引脚分别接到PC4~PC12上
硬件资源:
1,DS0(连接在PB1) ;
2,串口1(波特率:115200,PA9/PA10连接在板载USB转串口芯片CH340上面);
3,用到的I2C1(PB8/PB9),I2C2(PH4/PH5),I2C3(PH7/PH8);
4,由于I2C1和3用到的引脚与显示屏和摄像头有重叠,故如果需要使用显示屏或摄像头需要和I2C引脚进行分时复用;
5,PC4~PC12之前开发板定义的SD卡/PHY/Camera这些功能不可使用,因为IO口复用为外部中断了;
实验现象:
按键控制读取并打印9个TSL2581传感器的数据
注意事项:
1,不要接显示屏/摄像头/SD卡这些外设,IO口被传感器占用
3,此次代码采样的硬件I2C,软件I2C读取数据会乱跳,存在bug暂时不处理;
没有合适的资源?快使用搜索试试~ 我知道了~
TSL2581驱动程序,使用STM32F767,采集9路光传感器数据,串口打印采集结果.zip
共191个文件
h:96个
c:84个
dbgconf:2个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 36 浏览量
2024-01-02
14:50:34
上传
评论
收藏 1.09MB ZIP 举报
温馨提示
嵌入式相关的项目源码、数据集等资源
资源推荐
资源详情
资源评论
收起资源包目录
TSL2581驱动程序,使用STM32F767,采集9路光传感器数据,串口打印采集结果.zip (191个子文件)
IIC.uvguix.Administrator 86KB
keilkilll.bat 372B
stm32f7xx_hal_tim.c 174KB
stm32f7xx_hal_i2c.c 152KB
stm32f7xx_hal_cryp.c 117KB
stm32f7xx_hal_jpeg.c 117KB
stm32f7xx_hal_dfsdm.c 105KB
stm32f7xx_hal_sd.c 103KB
stm32f7xx_hal_cryp_ex.c 101KB
stm32f7xx_hal_spi.c 87KB
stm32f7xx_hal_tim_ex.c 85KB
stm32f7xx_hal_qspi.c 75KB
stm32f7xx_hal_eth.c 71KB
stm32f7xx_hal_dsi.c 70KB
stm32f7xx_hal_uart.c 69KB
stm32f7xx_hal_sai.c 67KB
lcd.c 65KB
stm32f7xx_hal_usart.c 63KB
stm32f7xx_hal_ltdc.c 61KB
stm32f7xx_hal_dma2d.c 61KB
stm32f7xx_hal_adc.c 60KB
stm32f7xx_hal_hash.c 58KB
stm32f7xx_hal_rtc_ex.c 57KB
stm32f7xx_hal_rcc_ex.c 55KB
stm32f7xx_hal_irda.c 54KB
stm32f7xx_hal_rtc.c 53KB
stm32f7xx_hal_lptim.c 51KB
stm32f7xx_hal_hash_ex.c 51KB
stm32f7xx_hal_i2s.c 51KB
stm32f7xx_ll_usb.c 48KB
stm32f7xx_hal_smartcard.c 46KB
stm32f7xx_hal_nand.c 45KB
stm32f7xx_hal_can.c 43KB
stm32f7xx_hal_rcc.c 41KB
stm32f7xx_hal_spdifrx.c 40KB
stm32f7xx_hal_dma.c 40KB
stm32f7xx_hal_adc_ex.c 40KB
stm32f7xx_ll_fmc.c 40KB
stm32f7xx_hal_flash_ex.c 39KB
stm32f7xx_hal_pcd.c 36KB
stm32f7xx_hal_hcd.c 35KB
stm32f7xx_hal_nor.c 32KB
stm32f7xx_hal_dac.c 31KB
stm32f7xx_hal_dcmi.c 29KB
stm32f7xx_hal_sdram.c 26KB
stm32f7xx_hal_flash.c 25KB
stm32f7xx_hal_cec.c 22KB
stm32f7xx_hal_sram.c 22KB
stm32f7xx_hal_pwr.c 21KB
stm32f7xx_hal_pwr_ex.c 20KB
stm32f7xx_hal_gpio.c 19KB
stm32f7xx_hal_mdios.c 19KB
stm32f7xx_hal_cortex.c 19KB
stm32f7xx_ll_sdmmc.c 18KB
ltdc.c 18KB
stm32f7xx_hal.c 17KB
stm32f7xx_hal_crc.c 17KB
stm32f7xx_hal_rng.c 16KB
stm32f7xx_hal_dac_ex.c 15KB
stm32f7xx_hal_wwdg.c 13KB
stm32f7xx_hal_timebase_rtc_alarm_template.c 12KB
stm32f7xx_hal_timebase_rtc_wakeup_template.c 12KB
TSL2581.c 11KB
stm32f7xx_hal_dma_ex.c 11KB
stm32f7xx_hal_iwdg.c 10KB
system_stm32f7xx.c 9KB
stm32f7xx_hal_i2c_ex.c 8KB
stm32f7xx_hal_crc_ex.c 8KB
stm32f7xx_hal_ltdc_ex.c 7KB
sdram.c 7KB
stm32f7xx_hal_pcd_ex.c 7KB
myiic.c 7KB
stm32f7xx_hal_smartcard_ex.c 7KB
stm32f7xx_hal_timebase_tim_template.c 6KB
stm32f7xx_it.c 6KB
delay.c 6KB
usart.c 6KB
sys.c 4KB
stm32f7xx_hal_msp_template.c 4KB
24cxx.c 4KB
exti.c 3KB
main.c 3KB
stm32f7xx_hal_sai_ex.c 3KB
stm32f7xx_hal_dcmi_ex.c 3KB
key.c 2KB
led.c 1KB
IIC_STM32F767IGTx_1.0.0.dbgconf 7KB
IIC_STM32F767IGTx_2.0.0.dbgconf 4KB
stm32f767xx.h 716KB
stm32f7xx_hal_rcc_ex.h 203KB
stm32_hal_legacy.h 169KB
core_cm7.h 134KB
stm32f7xx_hal_eth.h 110KB
stm32f7xx_hal_tim.h 71KB
font.h 65KB
stm32f7xx_hal_rcc.h 58KB
stm32f7xx_hal_uart.h 55KB
stm32f7xx_ll_fmc.h 52KB
stm32f7xx_hal_dsi.h 49KB
stm32f7xx_hal_rtc_ex.h 47KB
共 191 条
- 1
- 2
资源评论
马coder
- 粉丝: 1211
- 资源: 6602
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功