Other Parts Discussed in Thread: HALCOGEN
工具/软件:Code Composer Studio
我可以启用 TX 中断、这样就可以使用以下函数成功接收数据:
uint32_t thcp_hw_read_hercules (uint8_t*缓冲区、const uint32_t length) { uint32 bytes_read = 0; uint32 bytes_TO_read =长度; while (sciIsRxReady (thcp_hw_sci_BASE)&&(bytes_TO_Read > 0)) { Buffer[bytes_read]= sciReceiveByte (thcp_hw_sci_BASE); bytes_to 读取--; bytes_read++; } 返回 bytes_read ;}
但启用 Rx 中断不起作用。 我在 HalCoGen 中启用了 SCI3 RX INT 并启用了相应的 VIM 通道。
这种方法适用于 TX 中断、但不适用于 RX 中断。 我缺少什么?