7.9 eQEP Interrupt Structure
shows how the interrupt mechanism works in the eQEP module.
Clr
Set
Latch
QFRC:PCE
PCE
QCLR:PCE
QFLG:PCE
QEINT:PCE
QCLR:UTO
QFRC:UTO
QEINT:UTO
set
Latch
clr
UTO
QFLG:UTO
0
1
0
Pulse
generator
when
input=1
QFLG:INT
Latch
Set
Clr
QCLR:INT
EQEPxINT
Figure 7-20. eQEP Interrupt Generation
Eleven interrupt events (PCE, PHE, QDC, WTO, PCU, PCO, PCR, PCM, SEL, IEL and UTO) can be generated.
The interrupt control register (QEINT) is used to enable/disable individual interrupt event sources. The interrupt
flag register (QFLG) indicates if any interrupt event has been latched and contains the global interrupt flag bit
(INT).
An interrupt pulse is generated to PIE when:
1. Interrupt is enabled for eQEP event inside QEINT register
2. Interrupt flag for eQEP event inside QFLG register is set, and
3. Global interrupt status flag bit QFLG[INT] had been cleared for previously generated interrupt event. The
interrupt service routine will need to clear the global interrupt flag bit and the serviced event, by way of the
interrupt clear register (QCLR), before any other interrupt pulses are generated. If either flags inside the
QFLG register are not cleared, further interrupt events will not generate an interrupt to PIE. You can force an
interrupt event by way of the interrupt force register (QFRC), which is useful for test purposes.
7.10 eQEP Registers
This section describes the Enhanced Quadrature Encoder Pulse Registers.
7.10.1 eQEP Base Addresses
Table 7-3. eQEP Base Address Table
Bit Field Name
Base Address
Instance
Structure
EQep1Regs
EQEP_REGS
0x0000_6B00
EQep2Regs
EQEP_REGS
0x0000_6B40
Enhanced Quadrature Encoder Pulse (eQEP)
SPRUH18I – JANUARY 2011 – REVISED JUNE 2022
TMS320x2806x Microcontrollers
483
Copyright © 2022 Texas Instruments Incorporated
Summary of Contents for TMS320 2806 Series
Page 2: ......