文件名称:STM32--II--EEPROM
- 所属分类:
- 单片机(51,AVR,MSP430等)
- 资源属性:
- [C/C++] [源码]
- 上传时间:
- 2014-03-26
- 文件大小:
- 4.01mb
- 下载次数:
- 0次
- 提 供 者:
- MRw***
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
根据24c02datasheet里的IIC总线读写时序,利用stm32单片机内部IIC总线,对2kb的EEPROM进行读写。代码主要包括对单片机内部设置及外部IO口的初始化,EEPROM的写字节和读字节操作的驱动程序。通过向地址255里写入55H来检测EEPROM是否处于正常状态,如果正常,那么向EEPROM中写入WarShipSTM32 IIC TEST,然后再将其读出,并通过2.8寸LCD进行显示。代码已经验证通过,
程序是通过ST官方给的库函数进行编写。-According 24c02datasheet in the IIC bus read and write timing, use of stm32 SCM internal IIC bus, on 2kb of EEPROM read and write. Including the internal code set and initialize the external microcontroller IO port, EEPROM write byte and byte read driver. By writing to the address 55H 255 years to detect EEPROM is in a normal state, if normal, then write to the EEPROM WarShipSTM32 IIC TEST, then it reads through 2.8-inch LCD display. Code has been validated, the procedure is performed by the library functions to write to the official ST.
程序是通过ST官方给的库函数进行编写。-According 24c02datasheet in the IIC bus read and write timing, use of stm32 SCM internal IIC bus, on 2kb of EEPROM read and write. Including the internal code set and initialize the external microcontroller IO port, EEPROM write byte and byte read driver. By writing to the address 55H 255 years to detect EEPROM is in a normal state, if normal, then write to the EEPROM WarShipSTM32 IIC TEST, then it reads through 2.8-inch LCD display. Code has been validated, the procedure is performed by the library functions to write to the official ST.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
实验22 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
...................\........\...\ILI93xx.c
...................\........\...\LCD.h
...................\........\LED
...................\........\...\led.c
...................\........\...\led.h
...................\keilkilll.bat
...................\OBJ
...................\...\24cxx.__i
...................\...\24cxx.crf
...................\...\24cxx.d
...................\...\24cxx.o
...................\...\core_cm3.crf
...................\...\core_cm3.d
...................\...\core_cm3.o
...................\...\delay.__i
...................\...\delay.crf
...................\...\delay.d
...................\...\delay.o
...................\...\ExtDll.iex
...................\...\ili93xx.crf
...................\...\ili93xx.d
...................\...\ili93xx.o
...................\...\key.__i
...................\...\key.crf
...................\...\key.d
...................\...\key.o
...................\...\lcd.__i
...................\...\lcd.crf
...................\...\lcd.d
...................\...\led.__i
...................\...\led.crf
...................\...\led.d
...................\...\led.o
...................\...\main.crf
...................\...\main.d
...................\...\main.o
...................\...\misc.__i
...................\...\misc.crf
...................\...\misc.d
...................\...\misc.o
...................\...\myiic.__i
...................\...\myiic.crf
...................\...\myiic.d
...................\...\myiic.o
...................\...\startup_stm32f10x_hd._ia
...................\...\startup_stm32f10x_hd.o
...................\...\stm32f10x_flash.__i
...................\...\stm32f10x_flash.crf
...................\...\stm32f10x_flash.d
...................\...\stm32f10x_flash.o
...................\...\stm32f10x_fsmc.__i
...................\...\stm32f10x_fsmc.crf
...................\...\stm32f10x_fsmc.d
...................\...\stm32f10x_fsmc.o
...................\...\stm32f10x_gpio.__i
...................\...\stm32f10x_gpio.crf
...................\...\stm32f10x_gpio.d
...................\...\stm32f10x_gpio.o
...................\...\stm32f10x_it.__i
...................\...\stm32f10x_it.crf
...................\...\stm32f10x_it.d
...................\...\stm32f10x_it.o
...................\...\stm32f10x_rcc.__i
...................\...\stm32f10x_rcc.crf
...................\...\stm32f10x_rcc.d
...................\...\stm32f10x_rcc.o
...................\...\stm32f10x_tim.__i
...................\...\stm32f10x_tim.crf
...................\...\stm32f10x_tim.d
...................\...\stm32f10x_tim.o
...................\...\stm32f10x_usart.__i
...................\...\stm32f10x_usart.crf
...................\...\stm32f10x_usart.d
...................\...\stm32f10x_usart.o
...................\...\sys.__i
...................\...\sys.crf
...................\...\sys.d
...................\...\sys.o
...................\...\system_stm32f10x.__i
...................\...\system_stm32f10x.crf
...................\...\system_stm32f10x.d
...................\...\system_stm32f10x.o
...................\...\usart.__i