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.

[参考译文] RM41L232:我可以#39;t 使用 SCI RX IRQ - RM41L232

Guru**** 1810440 points
Other Parts Discussed in Thread: RM41L232, HALCOGEN
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1136046/rm41l232-i-can-t-use-sci-rx-irq---rm41l232

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

您好!

如何才能使用 SCI RX IRQ RM41L232?

我尝试了波纹管步骤:

-驱动程序已启用选项卡-> SCI 驱动程序已启用

- Halcogen SCI 选项卡-> RX INT 已连接

- VIM 通道0-31选项卡->启用 LIN1级别0 (13)和 LIN1级别1 (27)

调用 sciInit();

//enable interrupts
    _enable_interrupt_();

    //HET rti init
    rtiInit();

    // Enable RTI Compare 0 interrupt notification
    rtiEnableNotification(rtiNOTIFICATION_COMPARE0);


	//CAN Init
	canInit();

    //Enabling error interrupts
    //canEnableErrorNotification(canREG2);

	//canbus irq enable
    canEnableStatusChangeNotification(canREG2);



    //SCI Init
    sciInit();
    sciReceive(scilinREG, 10, rx_data_sci);

//SCI Notification
void sciNotification(sciBASE_t *sci, unsigned flags)
{
    #define SCI_D_SIZE 16

    //uint8_t rx_sci_data[SCI_D_SIZE]="";
    //if(flags == SCI_RX_INT)
    {
        //sciReceive(sci, SCI_D_SIZE, rx_sci_data);
        gioToggleBit(gioPORTA, 7);
    }
    return;
}

@编辑:  

我解决了这个问题。 我的错。 我忘记了禁用 RS485收发器 TX_EN 引脚。

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

    您好 Orthan、

    很高兴知道您自己已经解决了问题。 谢谢