Welcome![Sign In][Sign Up]
Location:
Downloads SourceCode Embeded-SCM Develop Other Embeded program
Title: main Download
 Description: 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
 Downloaders recently: [More information of uploader ken]
 To Search:
File list (Check if you may need any files):
 

main.c
    

CodeBus www.codebus.net