Eqep Interrupt Generation; Qep Decoder Control (Qdecctl) Register; Eqep Decoder Control (Qdecctl) Register Field Descriptions - Texas Instruments Concerto F28M36 Series Technical Reference Manual

Table of Contents

Advertisement

www.ti.com
9.8
eQEP Interrupt Structure
Figure 9-20
shows how the interrupt mechanism works in the EQEP module.
Set
Latch
Pulse
EQEPxINT
generator
when
input=1
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 only to the PIE if any of the interrupt
events is enabled, the flag bit is 1 and the INT flag bit is 0. The interrupt service routine will need to clear
the global interrupt flag bit and the serviced event, via the interrupt clear register (QCLR), before any other
interrupt pulses are generated. You can force an interrupt event by way of the interrupt force register
(QFRC), which is useful for test purposes.
9.9
eQEP Registers
15
14
QSRC
R/W-0
7
6
QBP
QIP
R/W-0
R/W-0
LEGEND: R/W = Read/Write; R = Read only; -n = value after reset
Table 9-3. eQEP Decoder Control (QDECCTL) Register Field Descriptions
Bits
Name
15-14
QSRC
13
SOEN
SPRUHE8E – October 2012 – Revised November 2019
Submit Documentation Feedback
Figure 9-20. EQEP Interrupt Generation
Clr
QCLR:INT
QFLG:INT
0
0
1
Figure 9-21. QEP Decoder Control (QDECCTL) Register
13
12
SOEN
SPSEL
R/W-0
R/W-0
5
4
QSP
R/W-0
Value
Position-counter source selection
00
Quadrature count mode (QCLK = iCLK, QDIR = iDIR)
01
Direction-count mode (QCLK = xCLK, QDIR = xDIR)
10
UP count mode for frequency measurement (QCLK = xCLK, QDIR = 1)
11
DOWN count mode for frequency measurement
(QCLK = xCLK, QDIR = 0)
Sync output-enable
0
Disable position-compare sync output
1
Enable position-compare sync output
Copyright © 2012–2019, Texas Instruments Incorporated
QEINT:PCE
Clr
Latch
Set
QFLG:PCE
QEINT:UTO
clr
Latch
set
QFLG:UTO
11
10
XCR
SWAP
R/W-0
R/W-0
Reserved
R-0
Description
C28 Enhanced QEP (eQEP) Module
eQEP Interrupt Structure
QCLR:PCE
QFRC:PCE
PCE
QCLR:UTO
QFRC:UTO
UTO
9
8
IGATE
QAP
R/W-0
R/W-0
0
877

Advertisement

Table of Contents
loading

Table of Contents