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.

[参考译文] TMS570LS1224:TMS570 SPI 与 M95040WP EEPROM (8位)连接

Guru**** 2616265 points

Other Parts Discussed in Thread: HALCOGEN

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

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/780309/tms570ls1224-tms570-spi-connect-with-m95040wp-eeprom-8bit

器件型号:TMS570LS1224
主题中讨论的其他器件:HALCOGEN

尊敬的所有人:

     我们的 PCB 板使用 SPI3连接 M95040WP EEPROM (8位)。

     从 HCG 示例中、 void mibspiSetData (mibspiBASE-t * mibspi、uint32组、uint16 * data)函数与 uint16 (16位数据)

     如何使用 HCG Generate void mibspiSetData (mibspiBASE-t * mibspi、uint32组、uint8*数据)。

      

此致

Fred  

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    您好!
    请查看此主题 :e2e.ti.com/.../557637

    此致、
    米罗
  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    您好、Miro:
    我已经阅读了该主题。
    在 HALCoGen 中,该函数仅提供 uint16*指向的数据。
    但我将 TMS570与 EEPROM M95040WP 连接、后者是字节宽度操作序列。
    例如
    我想发送 uint8 data1[4]={0x45、0x21、0x23、0x34};
    我想发送 uint8 data2[3]={0x45、0x11、0x23};
    请问我该怎么办?

    此致
    Fred
  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    您好!
    如果您需要使用 HALCoGen API、则必须将指针传递到 uint16。
    案例中数据格式的 HALCoGen 设置必须为:Charlen:8

    此致、
    米罗
  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    您好、Miro:
    我明白了、我使用示波器来知道如何配置寄存器。

    此致
    曹华明