Qep Initialization With Gp Timer 2 (Eva) - Texas Instruments C28 Series Student Manual

Dsp design workshop
Hide thumbs Also See for C28 Series:
Table of Contents

Advertisement

Quadrature Encoder Pulse (QEP)
Incremental Encoder Connections (EVA)
Incremental Encoder Connections (EVA)
CLK
GP Timer 2

QEP Initialization with GP Timer 2 (EVA)

Select Timer 2 for Capture number1 and 2
CAPCONA . 9 = 0 (for Timer 2)
Optionally pre-load Timer 2 counter
TxCNT register
Select directional-up/down mode for Timer 2
TxCON . 12 – 11 = 11
Set T2PER register for desired timer rollover
e.g. set the number of ticks per revolution
Enable QEP operation
CAPCONA . 14 – 13 = 11
7 - 34
.
QEP
.
decoder
logic
DIR
QEPIQUAL
QEPIE
Ch. A
Ch. B
CAP1/QEP1
CAP2/QEP2
GP Timer 2 selected as
GP Timer 2 selected as
pulse counter
pulse counter
Timer
Timer
bypassed (i.e.
bypassed (i.e.
always 1)
always 1)
Index
Prescaler
Prescaler
Prescale
Prescale
C28x - Event Manager

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Tms320c28 series

Table of Contents