This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TMS320F28379D: T format EEPROM busy flag question

Part Number: TMS320F28379D


Hi Champion

My customer evaluate T format, and have a question below:

They will write the T format Encoder EEPROM  in 100us PWM ISR, and customer don't want to use the delay function as below, but want to check the busy flag of EEPROM, if no busy, then write EEPROM, which is much more efficiency. Please suggest how to get the busy flag of EEPROM.

DELAY_US(200L); //Delay 200us

address = 1;
address_tmp = (__flip32(address) >> 24) & 0xFE; // includes busy "0"
tformatData.rxPkts[0] = ((((uint32_t) DATAIDD) | 0x40) << 8) | (uint32_t) address_tmp;
crcResult = PM_tformat_getCRC(0, 16, 8, (uint16_t *)&tformatData.rxPkts, tformatCRCtable, 2);
crcResult = (crcResult) ^ (0xFF);

  • Hi Eric,

    Customer could monitor the tformatData.eepromAddress field corresponding bit for the status flag.
    The received address field is packed back into the tformatData.eepromAddress - this should automatically happen with you call the PM_tformat_receiveData function with corresponding ID.

    -Bharathi.