文件名称:main
-
所属分类:
- 标签属性:
- 上传时间:2015-11-18
-
文件大小:3.2kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
stm8s M24C64 iic eeprom 源码-This firmware provides a basic example of how to use the I2C firmware library and
an associate I2C EEPROM driver to communicate with an I2C EEPROM device (here the
example is interfacing with M24C64 EEPROM)
I2C peripheral is configured in Master transmitter during write operation and in
Master receiver during read operation I2C EEPROM.
The speed is set to 200kHz and can be configured by modifying the related define
in stm8s_ _i2c_ee.h file.
For M24C64 devices all the memory is accessible through the two-bytes
addressing mode and need to define block addresses. In this case, only the physical
address has to be defined (according to the address pins (E0,E1 and E2) connection).
This address is defined in stm8s_ _i2c_ee.h (default is 0xA0: E0, E1 and E2
tied to ground).
The EEPROM addresses where the program start the write and the read operations
is defined in the main.c file.
First, the content of Tx1_Buffer is written to the EEPROM_WriteAddress1 and the
wr
an associate I2C EEPROM driver to communicate with an I2C EEPROM device (here the
example is interfacing with M24C64 EEPROM)
I2C peripheral is configured in Master transmitter during write operation and in
Master receiver during read operation I2C EEPROM.
The speed is set to 200kHz and can be configured by modifying the related define
in stm8s_ _i2c_ee.h file.
For M24C64 devices all the memory is accessible through the two-bytes
addressing mode and need to define block addresses. In this case, only the physical
address has to be defined (according to the address pins (E0,E1 and E2) connection).
This address is defined in stm8s_ _i2c_ee.h (default is 0xA0: E0, E1 and E2
tied to ground).
The EEPROM addresses where the program start the write and the read operations
is defined in the main.c file.
First, the content of Tx1_Buffer is written to the EEPROM_WriteAddress1 and the
wr
(系统自动生成,下载前可以参看下载内容)
下载文件列表
main.c
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.