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.

AM3354 eQEP Edge Capture Unit UPEVNT

Hi,

Does anyone knows are there any other event(s) beside the UPEVNT that can cause the capture timer (QCTMR) value to be latched into the capture period register (QCPRD)?

Below is an extract from the AM335x ARM® Cortex™-A8 Microprocessors (MPUs) technical reference manual ,Page 2164

The eQEP capture timer (QCTMR) runs from prescaled SYSCLKOUT and the prescaler is programmed
by the QCAPCTL[CCPS] bits. The capture timer (QCTMR) value is latched into the capture period register
(QCPRD) on every unit position event and then the capture timer is reset, a flag is set in
QEPSTS[UPEVNT] to indicate that new value is latched into the QCPRD register. Software can check this
status flag before reading the period register for low speed measurement and clear the flag by writing 1. 

Thank you in advance :)

Regards,

Weiren

  • I don't think there are any other possibilities, but there are additional latches:

    Capture Timer (QCTMR) and Capture period register (QCPRD) can be configured to latch on following
    events.
    • CPU read of QPOSCNT register
    • Unit time-out event
    If the QEPCTL[QCLM] bit is cleared, then the capture timer and capture period values are latched into the
    QCTMRLAT and QCPRDLAT registers, respectively, when the CPU reads the position counter
    (QPOSCNT).
    If the QEPCTL[QCLM] bit is set, then the position counter, capture timer, and capture period values are
    latched into the QPOSLAT, QCTMRLAT and QCPRDLAT registers, respectively, on unit time out.

  • Hi Biser,

    Thanks for your reply.

    Those additional latching will not modify the Capture Timer (QCTMR) and Capture period register (QCPRD) registers right? They will only latch the values to other registers from what I understood.

    Regards,

    Weiren

  • Yes, this is correct.