7.10.2.1 QPOSCNT Register (Offset = 0h) [reset = 0h]
Position Counter
Figure 7-21. QPOSCNT Register
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9
8
7
6
5
4
3
2
1
0
QPOSCNT
R/W-0h
Table 7-6. QPOSCNT Register Field Descriptions
Bit
Field
Type
Reset
Description
31-0
QPOSCNT
R/W
0h
Position Counter
This 32-bit position counter register counts up/down on every eQEP
pulse based on direction input. This counter acts as a position
integrator whose count value is proportional to position from a give
reference point. This Register acts as a Read ONLY register while
counter is counting up/down.
Note: It is recommended to only write to the position counter register
(QPOSCNT) during initialization, that is, when the eQEP position
counter is disabled (QPEN bit of QEPCTL is zero). Once the position
counter is enabled (QPEN bit is one), writing to the eQEP position
counter register (QPOSCNT) may cause unexpected results.
Reset type: SYSRSn
7.10.2.2 QPOSINIT Register (Offset = 2h) [reset = 0h]
Position Counter Initialize
Figure 7-22. QPOSINIT Register
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9
8
7
6
5
4
3
2
1
0
QPOSINIT
R/W-0h
Table 7-7. QPOSINIT Register Field Descriptions
Bit
Field
Type
Reset
Description
31-0
QPOSINIT
R/W
0h
Position Counter Init
This register contains the position value that is used to initialize
the position counter based on external strobe or index event. The
position counter can be initialized through software. Writes to this
register should always be full 32-bit writes.
Reset type: SYSRSn
Enhanced Quadrature Encoder Pulse (eQEP)
486
TMS320x2806x Microcontrollers
SPRUH18I – JANUARY 2011 – REVISED JUNE 2022
Copyright © 2022 Texas Instruments Incorporated
Содержание TMS320 2806 Series
Страница 2: ......