Quadrature Encoder Pulse (QEP)
Incremental Encoder Connections (EVA)
Incremental Encoder Connections (EVA)
GP Timer 2 selected as
GP Timer 2 selected as
pulse counter
pulse counter
Timer
Timer
Prescaler
Prescaler
bypassed (i.e.
bypassed (i.e.
Prescale
Prescale
always 1)
always 1)
Ch. A
Ch. B
CAP1/QEP1
CAP2/QEP2
QEP
decoder
logic
GP Timer 2
CLK
DIR
.
.
Index
CAP
3/Q
E
P
I
QEPIE
QEPIQUAL
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
C28x - Event Manager
Содержание C28 Series
Страница 64: ...Summary 3 16 C28x Peripheral Registers Header Files ...
Страница 78: ...Interrupt Sources 4 14 C28x Reset and Interrupts ...
Страница 218: ...Lab 9 DSP BIOS 9 22 C28x Using DSP BIOS ...
Страница 244: ...Lab 10 Programming the Flash 10 26 C28x System Design ...
Страница 273: ...Appendix A eZdsp F2812 C28x Appendix A eZdsp F2812 A 1 ...
Страница 275: ...Appendix eZdsp F2812 eZdsp F2812 Connector Header and Pin Diagram C28x Appendix A eZdsp F2812 A 3 ...
Страница 276: ...Appendix P2 Expansion Interface A 4 C28x Appendix A eZdsp F2812 ...
Страница 277: ...Appendix P4 P8 P7 I O Interface C28x Appendix A eZdsp F2812 A 5 ...
Страница 278: ...Appendix A 6 C28x Appendix A eZdsp F2812 ...
Страница 279: ...Appendix P5 P9 Analog Interface C28x Appendix A eZdsp F2812 A 7 ...
Страница 281: ...Appendix JP7 JP8 JP11 JP12 Boot Mode Select JP9 PLL Disable DS1 DS2 LEDs C28x Appendix A eZdsp F2812 A 9 ...
Страница 282: ...Appendix A 10 C28x Appendix A eZdsp F2812 TP1 TP2 Test Points ...