SPRACS8 May   2022 TMS320F2800132 , TMS320F2800133 , TMS320F2800135 , TMS320F2800137 , TMS320F2800152-Q1 , TMS320F2800153-Q1 , TMS320F2800154-Q1 , TMS320F2800155 , TMS320F2800155-Q1 , TMS320F2800156-Q1 , TMS320F2800157 , TMS320F2800157-Q1 , TMS320F280021 , TMS320F280021-Q1 , TMS320F280023 , TMS320F280023-Q1 , TMS320F280023C , TMS320F280025 , TMS320F280025-Q1 , TMS320F280025C , TMS320F280025C-Q1 , TMS320F280033 , TMS320F280034 , TMS320F280034-Q1 , TMS320F280036-Q1 , TMS320F280036C-Q1 , TMS320F280037 , TMS320F280037-Q1 , TMS320F280037C , TMS320F280037C-Q1 , TMS320F280038-Q1 , TMS320F280038C-Q1 , TMS320F280039 , TMS320F280039-Q1 , TMS320F280039C , TMS320F280039C-Q1 , TMS320F280040-Q1 , TMS320F280040C-Q1 , TMS320F280041 , TMS320F280041-Q1 , TMS320F280041C , TMS320F280041C-Q1 , TMS320F280045 , TMS320F280048-Q1 , TMS320F280048C-Q1 , TMS320F280049 , TMS320F280049-Q1 , TMS320F280049C , TMS320F280049C-Q1 , TMS320F28075 , TMS320F28075-Q1 , TMS320F28076 , TMS320F28374D , TMS320F28374S , TMS320F28375D , TMS320F28375S , TMS320F28375S-Q1 , TMS320F28376D , TMS320F28376S , TMS320F28377D , TMS320F28377D-EP , TMS320F28377D-Q1 , TMS320F28377S , TMS320F28377S-Q1 , TMS320F28378D , TMS320F28378S , TMS320F28379D , TMS320F28379D-Q1 , TMS320F28379S

 

  1.   Trademarks
  2. 1Introduction
  3. 2Hardware Connection
  4. 3C2000 I2C Source Code
    1. 3.1 I2CHandle Description
    2. 3.2 I2CBusScan
    3. 3.3 I2C_MasterTransmitter
    4. 3.4 I2C_MasterReceiver
  5. 4EEPROM Byte Write
  6. 5EEPROM Byte Read
  7. 6EEPROM Word Write
  8. 7EEPROM Word Read
  9. 8EEPROM Paged Write
  10. 9EEPROM Paged Read

EEPROM Paged Read

Figure 9-1 shows how EEPROM Paged Read protocol is defined in AT24C256. C2000 I2C is configured in Master Transmitter mode (I2CMDR.MST = 1, I2CMDR.TRX = 1) to transmit EEPROM address (both High address byte, Low address byte) and then C2000 I2C generates Repeated START condition in Master Receiver (I2CMDR.MST = 1, I2CMDR.TRX = 0) mode to receive 'N' data bytes from EEPROM.

GUID-AAE48F5A-6AA8-48FC-8EF2-4D05266ACE08-low.png Figure 9-1 EEPROM Paged Read Command

Code flow:

  1. START condition + Transmit Slave address (0x50) + Write bit + ACK bit (from slave)
  2. Transmit EEPROM high address byte + ACK bit (from slave)
  3. Transmit EEPROM low address byte + ACK bit (from slave)
  4. Generate Repeated START condition + Transmit Slave address (0x50) + Read bit + ACK bit (from slave)
  5. Receive data byte # 1 + ACK bit (from master)
  6. Receive data byte # 2 + NACK bit (from master)

    o o o (Receive more bytes)

  7. Receive data byte # N + ACK bit (from master)
  8. Generate STOP condition
GUID-86B50803-A482-46F0-B3FC-0EA812055194-low.png