文件名称:EEPROM-AT24C02
- 所属分类:
- 单片机(51,AVR,MSP430等)
- 资源属性:
- [C/C++] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 279kb
- 下载次数:
- 0次
- 提 供 者:
- 刘润j****
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
硬件环境:(使用硬件I2C1)
SCL--PB6 SDA--PB7
功能:
器件写和读的字节地址均为:0xfe
器件地址:0xA0
实验目的:本工程测试功能:
向AT24C02的地址0x00处写入字符:STM32F10x I2C
然后从地址0xfe处将刚才写入的字符全部读出来,再校验,如果全部字符都相等,
说明读写都成功,并将LED1~LED8(GPIOC的低8位)全部点亮,否则全部熄灭。-Hardware Environment: (use the hardware for I2C1) the SCL- PB6 SDA- the PB7 function: the device to write and read the byte address are: the 0xfe device address: 0xA0 experimental purposes: the test function of the project: AT24C02 address 0x00 at write characters: the STM32F10xxx the I2C and then address 0xfe Department will just write the characters all read out, and then check if all characters are equal, reading and writing are successful, and LED1 to LED8 (GPIOC of 8) all points light, or all out.
SCL--PB6 SDA--PB7
功能:
器件写和读的字节地址均为:0xfe
器件地址:0xA0
实验目的:本工程测试功能:
向AT24C02的地址0x00处写入字符:STM32F10x I2C
然后从地址0xfe处将刚才写入的字符全部读出来,再校验,如果全部字符都相等,
说明读写都成功,并将LED1~LED8(GPIOC的低8位)全部点亮,否则全部熄灭。-Hardware Environment: (use the hardware for I2C1) the SCL- PB6 SDA- the PB7 function: the device to write and read the byte address are: the 0xfe device address: 0xA0 experimental purposes: the test function of the project: AT24C02 address 0x00 at write characters: the STM32F10xxx the I2C and then address 0xfe Department will just write the characters all read out, and then check if all characters are equal, reading and writing are successful, and LED1 to LED8 (GPIOC of 8) all points light, or all out.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
四:使用硬件I2C读写EEPROM AT24C02\library\src\stm32f10x_adc.c
.................................\.......\...\stm32f10x_bkp.c
.................................\.......\...\stm32f10x_can.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_lib.c
.................................\.......\...\stm32f10x_nvic.c
.................................\.......\...\stm32f10x_pwr.c
.................................\.......\...\stm32f10x_rcc.c
.................................\.......\...\stm32f10x_rtc.c
.................................\.......\...\stm32f10x_sdio.c
.................................\.......\...\stm32f10x_spi.c
.................................\.......\...\stm32f10x_systick.c
.................................\.......\...\stm32f10x_tim.c
.................................\.......\...\stm32f10x_usart.c
.................................\.......\...\stm32f10x_wwdg.c
.................................\project\EWARMv4.42a\cortexm3_macro.s
.................................\.......\...........\Debug\Exe\I2C.d79
.................................\.......\...........\.....\...\I2C.elf
.................................\.......\...........\.....\...\I2C.hex
.................................\.......\...........\.....\...\I2C.sim
.................................\.......\...........\.....\List\I2C.map
.................................\.......\...........\.....\....\i2c_ee.lst
.................................\.......\...........\.....\....\main.lst
.................................\.......\...........\.....\....\stm32f10x_flash.lst
.................................\.......\...........\.....\....\stm32f10x_gpio.lst
.................................\.......\...........\.....\....\stm32f10x_i2c.lst
.................................\.......\...........\.....\....\stm32f10x_it.lst
.................................\.......\...........\.....\....\stm32f10x_lib.lst
.................................\.......\...........\.....\....\stm32f10x_nvic.lst
.................................\.......\...........\.....\....\stm32f10x_rcc.lst
.................................\.......\...........\.....\....\stm32f10x_vector.lst
.................................\.......\...........\.....\Obj\cortexm3_macro.r79
.................................\.......\...........\.....\...\i2c_ee.r79
.................................\.......\...........\.....\...\main.r79
.................................\.......\...........\.....\...\stm32f10x_flash.r79
.................................\.......\...........\.....\...\stm32f10x_gpio.r79
.................................\.......\...........\.....\...\stm32f10x_i2c.r79
.................................\.......\...........\.....\...\stm32f10x_it.r79
.................................\.......\...........\.....\...\stm32f10x_lib.r79
.................................\.......\...........\.....\...\stm32f10x_nvic.r79
.................................\.......\...........\.....\...\stm32f10x_rcc.r79
.................................\.......\...........\.....\...\stm32f10x_vector.r79
.................................\.......\...........\I2C.dep
.................................\.......\...........\I2C.ewd
.................................\.......\...........\I2C.ewp
.................................\.......\...........\I2C.eww
.................................\.......\...........\lnkarm_flash.xcl
.................................\.......\...........\lnkarm_ram.xcl
.................................\.......\...........\set
.................................\.......\...\stm32f10x_bkp.c
.................................\.......\...\stm32f10x_can.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_lib.c
.................................\.......\...\stm32f10x_nvic.c
.................................\.......\...\stm32f10x_pwr.c
.................................\.......\...\stm32f10x_rcc.c
.................................\.......\...\stm32f10x_rtc.c
.................................\.......\...\stm32f10x_sdio.c
.................................\.......\...\stm32f10x_spi.c
.................................\.......\...\stm32f10x_systick.c
.................................\.......\...\stm32f10x_tim.c
.................................\.......\...\stm32f10x_usart.c
.................................\.......\...\stm32f10x_wwdg.c
.................................\project\EWARMv4.42a\cortexm3_macro.s
.................................\.......\...........\Debug\Exe\I2C.d79
.................................\.......\...........\.....\...\I2C.elf
.................................\.......\...........\.....\...\I2C.hex
.................................\.......\...........\.....\...\I2C.sim
.................................\.......\...........\.....\List\I2C.map
.................................\.......\...........\.....\....\i2c_ee.lst
.................................\.......\...........\.....\....\main.lst
.................................\.......\...........\.....\....\stm32f10x_flash.lst
.................................\.......\...........\.....\....\stm32f10x_gpio.lst
.................................\.......\...........\.....\....\stm32f10x_i2c.lst
.................................\.......\...........\.....\....\stm32f10x_it.lst
.................................\.......\...........\.....\....\stm32f10x_lib.lst
.................................\.......\...........\.....\....\stm32f10x_nvic.lst
.................................\.......\...........\.....\....\stm32f10x_rcc.lst
.................................\.......\...........\.....\....\stm32f10x_vector.lst
.................................\.......\...........\.....\Obj\cortexm3_macro.r79
.................................\.......\...........\.....\...\i2c_ee.r79
.................................\.......\...........\.....\...\main.r79
.................................\.......\...........\.....\...\stm32f10x_flash.r79
.................................\.......\...........\.....\...\stm32f10x_gpio.r79
.................................\.......\...........\.....\...\stm32f10x_i2c.r79
.................................\.......\...........\.....\...\stm32f10x_it.r79
.................................\.......\...........\.....\...\stm32f10x_lib.r79
.................................\.......\...........\.....\...\stm32f10x_nvic.r79
.................................\.......\...........\.....\...\stm32f10x_rcc.r79
.................................\.......\...........\.....\...\stm32f10x_vector.r79
.................................\.......\...........\I2C.dep
.................................\.......\...........\I2C.ewd
.................................\.......\...........\I2C.ewp
.................................\.......\...........\I2C.eww
.................................\.......\...........\lnkarm_flash.xcl
.................................\.......\...........\lnkarm_ram.xcl
.................................\.......\...........\set