文件名称:IIC
- 所属分类:
- 单片机(51,AVR,MSP430等)
- 资源属性:
- [C/C++] [源码]
- 上传时间:
- 2015-09-24
- 文件大小:
- 364kb
- 下载次数:
- 0次
- 提 供 者:
- 吴**
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
实验目的:
学习STM32模拟IIC的使用,驱动24C02实现EEPROM数据读写.
硬件资源:
1,DS0(连接在PB5)
2,串口1(波特率:115200,PA9/PA10连接在板载USB转串口芯片CH340上面)
3,ALIENTEK 2.8/3.5/4.3/7寸TFTLCD模块(通过FSMC驱动,FSMC_NE4接LCD片选/A10接RS)
4,按键KEY0(PE4)/KEY1(PE3)
5,24C02(IIC连接在PB6/PB7上面)
实验现象:
本实验通过KEY1按键来控制24C02的写入,通过另外一个按键KEY0来控制24C02的读取。并在LCD模块上面显示
相关信息。同时,我们可以通过USMART控制在24C02的任意地址写入和读取数据。
注意事项: 1,4.3寸和7寸屏需要比较大电流,USB供电可能不足,请用外部电源适配器(推荐外接12V 1A电源).
2,本例程在LCD_Init函数里面(在ILI93xx.c),用到了printf,如果不初始化串口1,将导致液晶无法显示!!
-Experimental equipment: Battleship STM32F103 Development Board V3 version Purpose: Learning STM32 use of simulation IIC, drive 24C02 EEPROM data read and write hardware resources to achieve:. 1, DS0 (connected to PB5) 2, 1 serial port (baud rate: 115200, PA9/PA10 connected to the onboard USB to serial chip CH340 above) 3, ALIENTEK 2.8/3.5/4.3/7 inch TFTLCD module (via FSMC drive, FSMC_NE4 connected LCD chip select/A10 connection RS) 4, button KEY0 (PE4)/KEY1 (PE3) 5,24C02 (IIC connection PB6/PB7 above) experimental phenomena: In this study, KEY1 keys to control the write 24C02 by another KEY0 buttons to control the read 24C02. And displays information on the LCD module above. At the same time, we can control by USMART 24C02 any address in writing and reading data. Note: 1,4.3 inch and 7-inch screen requires a relatively large current, USB supply may be insufficient, please use an external power adapter (12V 1A external power supply recommended) 2, this routine LCD_Init function inside
学习STM32模拟IIC的使用,驱动24C02实现EEPROM数据读写.
硬件资源:
1,DS0(连接在PB5)
2,串口1(波特率:115200,PA9/PA10连接在板载USB转串口芯片CH340上面)
3,ALIENTEK 2.8/3.5/4.3/7寸TFTLCD模块(通过FSMC驱动,FSMC_NE4接LCD片选/A10接RS)
4,按键KEY0(PE4)/KEY1(PE3)
5,24C02(IIC连接在PB6/PB7上面)
实验现象:
本实验通过KEY1按键来控制24C02的写入,通过另外一个按键KEY0来控制24C02的读取。并在LCD模块上面显示
相关信息。同时,我们可以通过USMART控制在24C02的任意地址写入和读取数据。
注意事项: 1,4.3寸和7寸屏需要比较大电流,USB供电可能不足,请用外部电源适配器(推荐外接12V 1A电源).
2,本例程在LCD_Init函数里面(在ILI93xx.c),用到了printf,如果不初始化串口1,将导致液晶无法显示!!
-Experimental equipment: Battleship STM32F103 Development Board V3 version Purpose: Learning STM32 use of simulation IIC, drive 24C02 EEPROM data read and write hardware resources to achieve:. 1, DS0 (connected to PB5) 2, 1 serial port (baud rate: 115200, PA9/PA10 connected to the onboard USB to serial chip CH340 above) 3, ALIENTEK 2.8/3.5/4.3/7 inch TFTLCD module (via FSMC drive, FSMC_NE4 connected LCD chip select/A10 connection RS) 4, button KEY0 (PE4)/KEY1 (PE3) 5,24C02 (IIC connection PB6/PB7 above) experimental phenomena: In this study, KEY1 keys to control the write 24C02 by another KEY0 buttons to control the read 24C02. And displays information on the LCD module above. At the same time, we can control by USMART 24C02 any address in writing and reading data. Note: 1,4.3 inch and 7-inch screen requires a relatively large current, USB supply may be insufficient, please use an external power adapter (12V 1A external power supply recommended) 2, this routine LCD_Init function inside
(系统自动生成,下载前可以参看下载内容)
下载文件列表
实验23 IIC实验\CORE\core_cm3.c
..............\....\core_cm3.h
..............\....\startup_stm32f10x_hd.s
..............\....\startup_stm32f10x_md.s
..............\HARDWARE\24CXX\24cxx.c
..............\........\.....\24cxx.h
..............\........\IIC\myiic.c
..............\........\...\myiic.h
..............\........\KEY\key.c
..............\........\...\key.h
..............\........\LCD\font.h
..............\........\...\lcd.c
..............\........\...\lcd.h
..............\........\.ED\led.c
..............\........\...\led.h
..............\keilkilll.bat
..............\OBJ\IIC.hex
..............\README.TXT
..............\STM32F10x_FWLib\inc\misc.h
..............\...............\...\stm32f10x_adc.h
..............\...............\...\stm32f10x_bkp.h
..............\...............\...\stm32f10x_can.h
..............\...............\...\stm32f10x_cec.h
..............\...............\...\stm32f10x_crc.h
..............\...............\...\stm32f10x_dac.h
..............\...............\...\stm32f10x_dbgmcu.h
..............\...............\...\stm32f10x_dma.h
..............\...............\...\stm32f10x_exti.h
..............\...............\...\stm32f10x_flash.h
..............\...............\...\stm32f10x_fsmc.h
..............\...............\...\stm32f10x_gpio.h
..............\...............\...\stm32f10x_i2c.h
..............\...............\...\stm32f10x_iwdg.h
..............\...............\...\stm32f10x_pwr.h
..............\...............\...\stm32f10x_rcc.h
..............\...............\...\stm32f10x_rtc.h
..............\...............\...\stm32f10x_sdio.h
..............\...............\...\stm32f10x_spi.h
..............\...............\...\stm32f10x_tim.h
..............\...............\...\stm32f10x_usart.h
..............\...............\...\stm32f10x_wwdg.h
..............\...............\src\misc.c
..............\...............\...\stm32f10x_adc.c
..............\...............\...\stm32f10x_bkp.c
..............\...............\...\stm32f10x_can.c
..............\...............\...\stm32f10x_cec.c
..............\...............\...\stm32f10x_crc.c
..............\...............\...\stm32f10x_dac.c
..............\...............\...\stm32f10x_dbgmcu.c
..............\...............\...\stm32f10x_dma.c
..............\...............\...\stm32f10x_exti.c
..............\...............\...\stm32f10x_flash.c
..............\...............\...\stm32f10x_fsmc.c
..............\...............\...\stm32f10x_gpio.c
..............\...............\...\stm32f10x_i2c.c
..............\...............\...\stm32f10x_iwdg.c
..............\...............\...\stm32f10x_pwr.c
..............\...............\...\stm32f10x_rcc.c
..............\...............\...\stm32f10x_rtc.c
..............\...............\...\stm32f10x_sdio.c
..............\...............\...\stm32f10x_spi.c
..............\...............\...\stm32f10x_tim.c
..............\...............\...\stm32f10x_usart.c
..............\...............\...\stm32f10x_wwdg.c
..............\.YSTEM\delay\delay.c
..............\......\.....\delay.h
..............\......\sys\sys.c
..............\......\...\sys.h
..............\......\usart\usart.c
..............\......\.....\usart.h
..............\USER\IIC.uvguix.Administrator
..............\....\IIC.uvopt
..............\....\IIC.uvoptx
..............\....\IIC.uvprojx
..............\....\JLinkSettings.ini
..............\....\main.c
..............\....\stm32f10x.h
..............\....\stm32f10x_conf.h
..............\....\stm32f10x_it.c
..............\....\stm32f10x_it.h
..............\....\system_stm32f10x.c
..............\....\system_stm32f10x.h
..............\..MART\readme.txt
..............\......\usmart.c
..............\......\usmart.h
..............\......\usmart_config.c
..............\......\usmart_str.c
..............\......\usmart_str.h
..............\HARDWARE\24CXX
..............\........\IIC
..............\........\KEY
..............\........\LCD
..............\........\LED
..............\STM32F10x_FWLib\inc
..............\...............\src
..............\.YSTEM\delay
..............\......\sys
..............\......\us