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.

请问POLLING指的是什么?



Program the uPP interrupt enable set register (UPIES) to interrupt generation for the desired events.
Register an interrupt service routine (ISR) if desired; otherwise, polling is required.

这句话中POLLING指的是什么?具体点,谢谢!

  • polling是指轮询的意思。

    上面这句的话意思是指如果你不用中断方式的话, 可以用轮询的方式, 就是一直判断某状态标志位直到其置1,然后去做相应的后续处理。

  • 在TI的用户手册中,关于UPP这一章,提到例程,interrupt_status = UPIER     

    if (interrupt_status.EOLI)
    {
    UPIER.EOLI = 1 // clear EOLI
    // Handle EOLI...
    }
    if (interrupt_status.EOWI)
    {
    UPIER.EOWI = 1 // clear EOWI
    // Handle EOWI...
    }

    interrupt_status是什么数据类型,怎么可以进行位域操作??

  • victor sun1 说:

    在TI的用户手册中,关于UPP这一章,提到例程,interrupt_status = UPIER     

    if (interrupt_status.EOLI)
    {
    UPIER.EOLI = 1 // clear EOLI
    // Handle EOLI...
    }
    if (interrupt_status.EOWI)
    {
    UPIER.EOWI = 1 // clear EOWI
    // Handle EOWI...
    }

    interrupt_status是什么数据类型,怎么可以进行位域操作??

    那是结构体类型,结构体成员设定成bit型,你可以具体查看该数据的定义