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.

新手提问:DSP2808 CAP 设置为连续工作模式时,STOP_WRAP位的含义.



如题

  • 你好。

    Wrap value for continuous mode. This is the number (between 1-4) of the capture register in which the circular buffer wraps around and starts again.

    也就是说WRAP值表示最多可以发生的捕获事件数(1~4)。

    STOP_WRAP位共有4种值可选,0~3。在连续工作模式下,其含义如下:

    0:CEVT1事件后,事件计数器立即复位,下一次事件仍为CEVT1,不会发生CEVT2~CEVT3,事件顺序可表示为CEVT1->CEVT1->CEVT1->CEVT1->.....

    1:事件计数器在CEVT2发生后复位,事件顺序可表示为CEVT1->CEVT2->CEVT1->CEVT2->..............

    2:事件计数器在CEVT3发生后复位,事件顺序可表示为CEVT1->CEVT2->CEVT3->CEVT1->CEVT2->CEVT3->.............

    3:事件计数器在CEVT4发生后复位,事件顺序可表示为CEVT1->CEVT2->CEVT3->CEVT4->CEVT1->CEVT2->CEVT3->CEVT4.............