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 格式 EEPROM 忙标志问题

Guru**** 2535750 points


请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/602692/tms320f28379d-t-format-eeprom-busy-flag-question

器件型号:TMS320F28379D

你好、冠军

我的客户评估 T 格式、并在:以下有一个问题

他们将 在100us PWM ISR 中写入 T 格式编码器 EEPROM、客户不想使用下面的延迟函数、但希望检查 EEPROM 的忙标志、如果没有忙、则写入 EEPROM、这会提高效率。 请建议如何获取 EEPROM 的忙标志。

DELAY_US (200L);//延迟200us

地址= 1;
address_tmp =(__翻转32 (address)>> 24)和0xFE;//包括忙"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);

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    尊敬的 Eric:

    客户可以监控 状态标志对应的 tformatData.eepromAddress 字段。
    接收到的地址字段被打包回 tformatData.eepromAddress -当您使用 相应的 ID 调用 PM_tformat_receiveData 函数时、这应该会自动发生。

    Bharathi。