实验24 IIC实验---I2C温湿度传感器
所属分类:处理器开发
开发工具:C/C++
文件大小:3911KB
下载次数:15
上传日期:2018-05-31 15:16:43
上 传 者:
菜菜大兵
说明: STM32F4的 I2C总线控制SHT20 温湿度控制
(Control of SHT20 temperature and humidity by I2C bus of STM32F4)
文件列表:
实验24 IIC实验\CORE\core_cm4.h (109142, 2014-07-17)
实验24 IIC实验\CORE\core_cm4_simd.h (22735, 2014-07-17)
实验24 IIC实验\CORE\core_cmFunc.h (17146, 2014-07-17)
实验24 IIC实验\CORE\core_cmInstr.h (20513, 2014-07-17)
实验24 IIC实验\CORE\startup_stm32f40_41xxx.s (29605, 2014-08-02)
实验24 IIC实验\FWLIB\inc\misc.h (6924, 2014-08-01)
实验24 IIC实验\FWLIB\inc\stm32f4xx_adc.h (32880, 2014-08-01)
实验24 IIC实验\FWLIB\inc\stm32f4xx_can.h (27318, 2014-08-01)
实验24 IIC实验\FWLIB\inc\stm32f4xx_crc.h (2416, 2014-08-01)
实验24 IIC实验\FWLIB\inc\stm32f4xx_cryp.h (14481, 2014-08-01)
实验24 IIC实验\FWLIB\inc\stm32f4xx_dac.h (14946, 2014-08-01)
实验24 IIC实验\FWLIB\inc\stm32f4xx_dbgmcu.h (4296, 2014-08-01)
实验24 IIC实验\FWLIB\inc\stm32f4xx_dcmi.h (12977, 2014-08-01)
实验24 IIC实验\FWLIB\inc\stm32f4xx_dma.h (28882, 2014-08-01)
实验24 IIC实验\FWLIB\inc\stm32f4xx_dma2d.h (19692, 2014-08-01)
实验24 IIC实验\FWLIB\inc\stm32f4xx_exti.h (8012, 2014-08-01)
实验24 IIC实验\FWLIB\inc\stm32f4xx_flash.h (24467, 2014-08-04)
实验24 IIC实验\FWLIB\inc\stm32f4xx_flash_ramfunc.h (3275, 2014-08-04)
实验24 IIC实验\FWLIB\inc\stm32f4xx_fmc.h (44924, 2014-08-01)
实验24 IIC实验\FWLIB\inc\stm32f4xx_fsmc.h (27181, 2014-08-01)
实验24 IIC实验\FWLIB\inc\stm32f4xx_gpio.h (23548, 2014-08-01)
实验24 IIC实验\FWLIB\inc\stm32f4xx_hash.h (10084, 2014-08-01)
实验24 IIC实验\FWLIB\inc\stm32f4xx_i2c.h (31939, 2014-08-01)
实验24 IIC实验\FWLIB\inc\stm32f4xx_iwdg.h (4323, 2014-08-01)
实验24 IIC实验\FWLIB\inc\stm32f4xx_ltdc.h (21191, 2014-08-01)
实验24 IIC实验\FWLIB\inc\stm32f4xx_pwr.h (7728, 2014-08-01)
实验24 IIC实验\FWLIB\inc\stm32f4xx_rcc.h (30063, 2014-08-01)
实验24 IIC实验\FWLIB\inc\stm32f4xx_rng.h (3958, 2014-08-01)
实验24 IIC实验\FWLIB\inc\stm32f4xx_rtc.h (40546, 2014-08-01)
实验24 IIC实验\FWLIB\inc\stm32f4xx_sai.h (25470, 2014-08-01)
实验24 IIC实验\FWLIB\inc\stm32f4xx_sdio.h (22777, 2014-08-01)
实验24 IIC实验\FWLIB\inc\stm32f4xx_spi.h (21178, 2014-08-01)
实验24 IIC实验\FWLIB\inc\stm32f4xx_syscfg.h (8974, 2014-08-01)
实验24 IIC实验\FWLIB\inc\stm32f4xx_tim.h (51689, 2014-08-01)
实验24 IIC实验\FWLIB\inc\stm32f4xx_usart.h (17935, 2014-08-01)
实验24 IIC实验\FWLIB\inc\stm32f4xx_wwdg.h (3542, 2014-08-01)
实验24 IIC实验\FWLIB\src\misc.c (11443, 2014-08-01)
实验24 IIC实验\FWLIB\src\stm32f4xx_adc.c (69068, 2014-08-01)
实验24 IIC实验\FWLIB\src\stm32f4xx_can.c (60150, 2014-08-01)
实验24 IIC实验\FWLIB\src\stm32f4xx_crc.c (3596, 2014-08-01)
... ...
实验器材:
探索者STM32F4开发板
实验目的:
学习STM32模拟IIC的使用,驱动24C02实现EEPROM数据读写.
硬件资源:
1,DS0(连接在PF9)
2,串口1(波特率:115200,PA9/PA10连接在板载USB转串口芯片CH340上面)
3,ALIENTEK 2.8/3.5/4.3/7寸TFTLCD模块(通过FSMC驱动,FSMC_NE4接LCD片选/A6接RS)
4,按键KEY0(PE4)/KEY1(PE3)
5,24C02(IIC连接在PB8/PB9上面)
实验现象:
本实验通过KEY1按键来控制24C02的写入,通过另外一个按键KEY0来控制24C02的读取。并在LCD模块上面显示
相关信息。同时,我们可以通过USMART控制在24C02的任意地址写入和读取数据。
注意事项:
1,4.3寸和7寸屏需要比较大电流,USB供电可能不足,请用外部电源适配器(推荐外接12V 1A电源).
2,本例程在LCD_Init函数里面(在ILI93xx.c),用到了printf,如果不初始化串口1,将导致液晶无法显示!!
正点原子@ALIENTEK
2014-10-25
广州市星翼电子科技有限公司
电话:020-38271790
传真:020-36773971
购买:http://shop62103354.taobao.com
http://shop62057469.taobao.com
公司网站:www.alientek.com
技术论坛:www.openedv.com
近期下载者:
相关文件:
收藏者: