Does General Purpose Counter in ADSP-SC59x/ADSP-2159x processors detect overflow or underflow in the counter value?

Does General Purpose Counter in ADSP-SC59x/ADSP-2159x processors detect overflow or underflow in the counter value? 

  • +1
    •  Analog Employees 
    on May 25, 2021 5:03 PM

    There are two status bits that indicate whether the signed counter-register has overflowed from a positive to a negative value or conversely. The CNT_STAT.COV31 bit reports that the 32-bit CNT_CNTR register has either incremented from 0x7FFF FFFF to 0x8000 0000, or decremented from 0x8000 0000 to 0x7FFF FFFF.
          If enabled by the CNT_IMSK.COV31 bit, an interrupt request is generated. Similarly, in applications where only the lower 16 bits of the counter are of interest, the CNT_STAT.COV15 status bit reports counter transitions from 0xXXXX 7FFF to 0xXXXX 8000, or from 0xXXXX 8000 to 0xXXXX 7FFF. If enabled by the CNT_IMSK.COV15 bit, an interrupt request is generated.