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.

28377s SCI发送问题

28377s使用SIC_ECHOBACK_CPU01例程,只是修改下端口,使用串口助手没有数据,修改的地方如下:

GPIO_SetupPinMux(9, GPIO_MUX_CPU1, 1);
GPIO_SetupPinOptions(9, GPIO_INPUT, GPIO_PUSHPULL);
GPIO_SetupPinMux(8, GPIO_MUX_CPU1, 1);
GPIO_SetupPinOptions(8, GPIO_OUTPUT, GPIO_ASYNC);

硬件方面已经排查,没有问题,但一直都没数据发出,以上配置是否正确?

  • 对于void GPIO_SetupPinMux(Uint16 pin, Uint16 cpu, Uint16 peripheral)函数,参数的描述如下:
    pin - This is the GPIO number
    cpu - This is the CPU number - 1 (see defines of GPIO_MUX_CPU1 and GPIO_MUX_CPU2)
    peripheral - This is the mux position on that table you referenced in the datasheet. So this will be a integer from 0-15 depending on what you are selecting.
  • peripheral - This is the mux position on that table you referenced in the datasheet. So this will be a integer from 0-15 depending on what you are selecting.
    这个参数不是很理解,具体在参考手册哪一页,找过都没找到
  • 在datasheet 4.2 章节Signal Descriptions 表格内mux position
    www.ti.com.cn/.../tms320f28377s.pdf