实验器材:
探索者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
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
STM32F4的IIC测试工程 (103个子文件)
IIC.uvguix.Administrator 68KB
keilkilll.bat 399B
stm32f4xx_tim.c 122KB
stm32f4xx_rtc.c 100KB
stm32f4xx_rcc.c 97KB
lcd.c 86KB
stm32f4xx_adc.c 67KB
stm32f4xx_flash.c 62KB
stm32f4xx_can.c 59KB
stm32f4xx_cryp_aes.c 57KB
stm32f4xx_usart.c 57KB
stm32f4xx_fmc.c 55KB
stm32f4xx_i2c.c 53KB
stm32f4xx_dma.c 52KB
stm32f4xx_spi.c 51KB
system_stm32f4xx.c 47KB
stm32f4xx_sai.c 45KB
stm32f4xx_fsmc.c 41KB
stm32f4xx_ltdc.c 39KB
stm32f4xx_sdio.c 38KB
stm32f4xx_pwr.c 37KB
stm32f4xx_cryp.c 35KB
stm32f4xx_dma2d.c 27KB
stm32f4xx_dac.c 26KB
stm32f4xx_hash.c 26KB
stm32f4xx_gpio.c 25KB
stm32f4xx_dcmi.c 18KB
stm32f4xx_rng.c 14KB
misc.c 11KB
stm32f4xx_cryp_tdes.c 10KB
stm32f4xx_wwdg.c 10KB
stm32f4xx_exti.c 10KB
stm32f4xx_cryp_des.c 10KB
stm32f4xx_hash_sha1.c 10KB
stm32f4xx_hash_md5.c 9KB
stm32f4xx_syscfg.c 9KB
stm32f4xx_iwdg.c 9KB
delay.c 8KB
stm32f4xx_dbgmcu.c 7KB
stm32f4xx_flash_ramfunc.c 5KB
usart.c 5KB
stm32f4xx_it.c 4KB
24cxx.c 4KB
stm32f4xx_crc.c 4KB
myiic.c 3KB
main.c 2KB
key.c 2KB
led.c 1KB
sys.c 1KB
stm32f4xx.h 688KB
core_cm4.h 107KB
stm32f4xx_tim.h 50KB
stm32f4xx_fmc.h 44KB
stm32f4xx_rtc.h 40KB
FONT.H 34KB
stm32f4xx_adc.h 32KB
stm32f4xx_i2c.h 31KB
stm32f4xx_rcc.h 29KB
stm32f4xx_dma.h 28KB
stm32f4xx_can.h 27KB
stm32f4xx_fsmc.h 27KB
stm32f4xx_sai.h 25KB
stm32f4xx_flash.h 24KB
stm32f4xx_gpio.h 23KB
stm32f4xx_sdio.h 22KB
core_cm4_simd.h 22KB
stm32f4xx_ltdc.h 21KB
stm32f4xx_spi.h 21KB
core_cmInstr.h 20KB
stm32f4xx_dma2d.h 19KB
stm32f4xx_usart.h 18KB
core_cmFunc.h 17KB
stm32f4xx_dac.h 15KB
stm32f4xx_cryp.h 14KB
stm32f4xx_dcmi.h 13KB
stm32f4xx_hash.h 10KB
stm32f4xx_syscfg.h 9KB
stm32f4xx_exti.h 8KB
stm32f4xx_pwr.h 8KB
lcd.h 7KB
misc.h 7KB
stm32f4xx_conf.h 4KB
stm32f4xx_iwdg.h 4KB
stm32f4xx_dbgmcu.h 4KB
stm32f4xx_rng.h 4KB
stm32f4xx_wwdg.h 3KB
sys.h 3KB
stm32f4xx_flash_ramfunc.h 3KB
stm32f4xx_crc.h 2KB
system_stm32f4xx.h 2KB
stm32f4xx_it.h 2KB
24cxx.h 1KB
myiic.h 1KB
usart.h 1KB
key.h 1KB
delay.h 838B
led.h 659B
IIC.hex 99KB
JLinkSettings.ini 650B
startup_stm32f40_41xxx.s 29KB
共 103 条
- 1
- 2
资源评论
hnushixueqian
- 粉丝: 5
- 资源: 2
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功