Nxp Semiconductors OM11043 Data Sheet

Page of 89
LPC1769_68_67_66_65_64_63
All information provided in this document is subject to legal disclaimers.
© NXP Semiconductors N.V. 2014. All rights reserved.
Product data sheet
Rev. 9.5 — 24 June 2014 
34 of 89
NXP Semiconductors
LPC1769/68/67/66/65/64/63
32-bit ARM Cortex-M3 microcontroller
Supports single edge controlled and/or double edge controlled PWM outputs. Single 
edge controlled PWM outputs all go high at the beginning of each cycle unless the 
output is a constant low. Double edge controlled PWM outputs can have either edge 
occur at any position within a cycle. This allows for both positive going and negative 
going pulses.
Pulse period and width can be any number of timer counts. This allows complete 
flexibility in the trade-off between resolution and repetition rate. All PWM outputs will 
occur at the same repetition rate.
Double edge controlled PWM outputs can be programmed to be either positive going 
or negative going pulses.
Match register updates are synchronized with pulse outputs to prevent generation of 
erroneous pulses. Software must ‘release’ new match values before they can become 
effective.
May be used as a standard 32-bit timer/counter with a programmable 32-bit prescaler 
if the PWM mode is not enabled.
8.23 Motor control PWM
The motor control PWM is a specialized PWM supporting 3-phase motors and other 
combinations. Feedback inputs are provided to automatically sense rotor position and use 
that information to ramp speed up or down. An abort input is also provided that causes the 
PWM to immediately release all motor drive outputs. At the same time, the motor control 
PWM is highly configurable for other generalized timing, counting, capture, and compare 
applications.
8.24 Quadrature Encoder Interface (QEI)
A quadrature encoder, also known as a 2-channel incremental encoder, converts angular 
displacement into two pulse signals. By monitoring both the number of pulses and the 
relative phase of the two signals, the user can track the position, direction of rotation, and 
velocity. In addition, a third channel, or index signal, can be used to reset the position 
counter. The quadrature encoder interface decodes the digital pulses from a quadrature 
encoder wheel to integrate position over time and determine direction of rotation. In 
addition, the QEI can capture the velocity of the encoder wheel.
8.24.1 Features
Tracks encoder position.
Increments/decrements depending on direction.
Programmable for 2
 or 4 position counting.
Velocity capture using built-in timer.
Velocity compare function with “less than” interrupt.
Uses 32-bit registers for position and velocity.
Three position compare registers with interrupts.
Index counter for revolution counting.
Index compare register with interrupts.
Can combine index and position interrupts to produce an interrupt for whole and 
partial revolution displacement.