Thread 中讨论的其他器件:EK-TM4C1294XL
工具与软件:
嗨、团队:
我的客户在一些 IND EE 项目中使用 TM4C1290、现在客户开始使用 A&T 测试工具来测试 TM4C1290。
在检查 M4的 SDK 后、 是否有 TM4C1490的串行端口接收中断示例? SDK 中的两个示例都可以调用阻塞接收函数。
请在此处查看。

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.
工具与软件:
嗨、团队:
我的客户在一些 IND EE 项目中使用 TM4C1290、现在客户开始使用 A&T 测试工具来测试 TM4C1290。
在检查 M4的 SDK 后、 是否有 TM4C1490的串行端口接收中断示例? SDK 中的两个示例都可以调用阻塞接收函数。
请在此处查看。

您好!
请参阅 C:\ti\TivaWare_C_Series-2.2.0.295\examples\boards\ek-tm4c1294xl\uart_echo 中的示例。 在本例中、接收端使用中断模式将数据回显到发送器。
//*****************************************************************************
//
// The UART interrupt handler.
//
//*****************************************************************************
void
UARTIntHandler(void)
{
uint32_t ui32Status;
//
// Get the interrrupt status.
//
ui32Status = MAP_UARTIntStatus(UART0_BASE, true);
//
// Clear the asserted interrupts.
//
MAP_UARTIntClear(UART0_BASE, ui32Status);
//
// Loop while there are characters in the receive FIFO.
//
while(MAP_UARTCharsAvail(UART0_BASE))
{
//
// Read the next character from the UART and write it back to the UART.
//
MAP_UARTCharPutNonBlocking(UART0_BASE,
MAP_UARTCharGetNonBlocking(UART0_BASE));
//
// Blink the LED to show a character transfer is occuring.
//
MAP_GPIOPinWrite(GPIO_PORTN_BASE, GPIO_PIN_0, GPIO_PIN_0);
//
// Delay for 1 millisecond. Each SysCtlDelay is about 3 clocks.
//
SysCtlDelay(g_ui32SysClock / (1000 * 3));
//
// Turn off the LED
//
MAP_GPIOPinWrite(GPIO_PORTN_BASE, GPIO_PIN_0, 0);
}
}尊敬的 Tsal:
现在、我的客户还将 TM4C1290 用于两个 CAN 通信以进行内部 自检。 正在使用 CAN0和 CAN1、但报告以下错误。
您能否帮助查看以下代码来帮助我们修复此错误?
您好!
C:\ti\TivaWare_C_Series-2.2.0.295\examples\peripherals\can 中提供了 CAN 示例。 我建议客户从 simple_tx.c 作为网络上的一个 CAN 控制器、从 simple_rx.c 作为网络上的另一个控制器。 若要测试这些示例、必须构建 CAN 网络、这意味着在网络上使用适当的端接电阻器为每个 CAN 控制器实现了 CAN 收发器。
