21.6 Interrupts

The following are the sources of QEI interrupts:

  • Position Counter Overflow or Underflow Event (POSOVIRQ)
  • Velocity Counter Overflow or Underflow Event (VELOVIRQ)
  • Position Counter Initialization Process Complete (PCIIRQ)
  • Position Counter Greater Than or Equal Compare Interrupt (PCEHQIRQ)
  • Position Counter Less Than or Equal Compare Interrupt (PCLEQIRQ)
  • Index Event Interrupt (IDXIRQ) (When not in Internal Timer mode CCM = 0b11)
  • Home Event Interrupt (HOMIRQ) (When not in Internal Timer mode CCM = 0b11)

The QEIx Status register (QEIxSTAT) contains the individual interrupt enable bits and the corresponding interrupt status bits for each interrupt source. A status bit indicates that an interrupt request has occurred. The module reduces all of the QEI interrupts to a single interrupt signal to the interrupt controller module.