PIC18F2331 MICROCHIP [Microchip Technology], PIC18F2331 Datasheet - Page 161

no-image

PIC18F2331

Manufacturer Part Number
PIC18F2331
Description
28/40/44-Pin Enhanced Flash Microcontrollers with nanoWatt Technology, High Performance PWM and A/D
Manufacturer
MICROCHIP [Microchip Technology]
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC18F2331-I/SO
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Part Number:
PIC18F2331-I/SP
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
16.0
The Motion Feedback module is a special-purpose
peripheral designed for motion feedback applications.
Together with the Power Control PWM module (see
Section 17.0 “Power Control PWM Module”), it pro-
vides a variety of control solutions for a wide range of
electric motors.
The module actually consists of two hardware
sub-modules:
• Input Capture module (IC)
• Quadrature Encoder Interface (QEI).
Together with Timer5 (see Section 14.0 “Timer5 Mod-
ule”), these modules provide a number of options for
motion and control applications.
TABLE 16-1:
 2003 Microchip Technology Inc.
Submodule
IC (3x)
QEI
MOTION FEEDBACK MODULE
• Synchronous
• Input Capture
QEI
Velocity
measurement
SUMMARY OF MOTION FEEDBACK MODULE FEATURES
Mode(s)
• Flexible input capture modes
• Available prescaler
• Selectable time base reset
• Special event trigger for ADC
• Wake-up from Sleep function
• Selectable interrupt frequency
• Optional noise filter
• Detect position
• Detect direction of rotation
• Large bandwidth (Fcy/16)
• Optional noise filter
• 2x and 4x update modes
• Velocity event postscaler
• Counter overflow flag for low
• Utilizes Input Capture 1 logic
• High and low velocity support
sampling/conversion or
optional TMR5 Reset feature
(CAP1 only)
rotation speed
(IC1)
PIC18F2331/2431/4331/4431
Features
Preliminary
Many of the features for the IC and QEI submodules
are fully programmable, creating a flexible peripheral
structure that can accommodate a wide range of
in-system uses. An overview of the available features
is presented in Table 16-1. A simplified block diagram
of the entire Motion Feedback module is shown in
Figure 16-1.
Note:
position
counter
Timer
TMR5
TMR5
16-bit
Because the same input pins are common
to the IC and QEI submodules, only one of
these two submodules may be used at any
given time. If both modules are on, the QEI
submodule will take precedence.
• 3x Input Capture (edge
• Special event triggers the A/D
• Position measurement
• Direction of rotation status
• Precise velocity measurement
• Direction of rotation status
capture, pulse width, period
measurement, capture on
change)
conversion on the CAP1 input
Function
DS39616B-page 159

Related parts for PIC18F2331