Quadrature Encoder (QEI)
Description:
This sets the current position of the encoder; the encoder position will then be measured
relative to this value.
Returns:
None.
16.2.1.12 ROM_QEIVelocityConfigure
Configures the velocity capture.
Prototype:
void
ROM_QEIVelocityConfigure(uint32_t ui32Base,
uint32_t ui32PreDiv,
uint32_t ui32Period)
ROM Location:
ROM_APITABLE
is an array of pointers located at
0x0100.0010
.
ROM_QEITABLE
is an array of pointers located at
ROM_APITABLE[9]
.
ROM_QEIVelocityConfigure
is a function pointer located at
ROM_QEITABLE[9]
.
Parameters:
ui32Base
is the base address of the quadrature encoder module.
ui32PreDiv
specifies the predivider applied to the input quadrature signal before it is counted;
can be one of
QEI_VELDIV_1
,
QEI_VELDIV_2
,
QEI_VELDIV_4
,
QEI_VELDIV_8
,
QEI_VELDIV_16
,
QEI_VELDIV_32
,
QEI_VELDIV_64
, or
QEI_VELDIV_128
.
ui32Period
specifies the number of clock ticks over which to measure the velocity; must be
non-zero.
Description:
This will configure the operation of the velocity capture portion of the quadrature encoder. The
position increment signal is predivided as specified by
ui32PreDiv
before being accumulated
by the velocity capture. The divided signal is accumulated over
ui32Period
system clock before
being saved and resetting the accumulator.
Returns:
None.
16.2.1.13 ROM_QEIVelocityDisable
Disables the velocity capture.
Prototype:
void
ROM_QEIVelocityDisable(uint32_t ui32Base)
ROM Location:
ROM_APITABLE
is an array of pointers located at
0x0100.0010
.
ROM_QEITABLE
is an array of pointers located at
ROM_APITABLE[9]
.
ROM_QEIVelocityDisable
is a function pointer located at
ROM_QEITABLE[8]
.
182
April 8, 2013
Summary of Contents for Tiva TM4C123GH6PM
Page 26: ...Boot Loader 26 April 8 2013...
Page 68: ...Controller Area Network CAN 68 April 8 2013...
Page 122: ...Hibernation Module 122 April 8 2013...
Page 136: ...Inter Integrated Circuit I2C 136 April 8 2013...
Page 152: ...Memory Protection Unit MPU 152 April 8 2013...
Page 174: ...Pulse Width Modulator PWM Returns None 174 April 8 2013...
Page 196: ...Synchronous Serial Interface SSI 196 April 8 2013...
Page 222: ...System Control 222 April 8 2013...
Page 270: ...UART 270 April 8 2013...
Page 296: ...uDMA Controller 296 April 8 2013...
Page 351: ...April 8 2013 351...