欢迎访问ic37.com |
会员登录 免费注册
发布采购

PIC18F4431-I/P 参数 Datasheet PDF下载

PIC18F4431-I/P图片预览
型号: PIC18F4431-I/P
PDF下载: 下载PDF文件 查看货源
内容描述: 28 /40/ 44引脚增强型闪存微控制器采用纳瓦技术,高性能PWM和A / D [28/40/44-Pin Enhanced Flash Microcontrollers with nanoWatt Technology, High-Performance PWM and A/D]
分类和应用: 闪存微控制器
文件页数/大小: 392 页 / 3127 K
品牌: MICROCHIP [ MICROCHIP ]
 浏览型号PIC18F4431-I/P的Datasheet PDF文件第157页浏览型号PIC18F4431-I/P的Datasheet PDF文件第158页浏览型号PIC18F4431-I/P的Datasheet PDF文件第159页浏览型号PIC18F4431-I/P的Datasheet PDF文件第160页浏览型号PIC18F4431-I/P的Datasheet PDF文件第162页浏览型号PIC18F4431-I/P的Datasheet PDF文件第163页浏览型号PIC18F4431-I/P的Datasheet PDF文件第164页浏览型号PIC18F4431-I/P的Datasheet PDF文件第165页  
PIC18F2331/2431/4331/4431  
The QEI control logic detects the leading edge on the  
17.2 Quadrature Encoder Interface  
QEA or QEB phase input pins and generates the count  
pulse, which is sent to the position counter logic. It also  
samples the index input signal (INDX) and generates  
the direction of the rotation signal (up/down) and the  
velocity event signals.  
The Quadrature Encoder Interface (QEI) decodes  
speed and motion sensor information. It can be used in  
any application that uses a quadrature encoder for  
feedback. The interface implements these features:  
• Three QEI inputs: two phase signals (QEA and  
QEB) and one index signal (INDX)  
The position counter acts as an integrator for tracking  
distance traveled. The QEA and QEB input edges  
serve as the stimulus to create the input clock which  
advances the Position Counter register (POSCNT).  
The register is incremented on either the QEA input  
edge, or the QEA and QEB input edges, depending on  
the operating mode. It is reset either by a rollover on  
match to the Period register, MAXCNT, or on the  
external index pulse input signal (INDX). An interrupt is  
generated on a Reset of POSCNT if the position  
counter interrupt is enabled.  
• Direction of movement detection with a direction  
change interrupt (IC3DRIF)  
• 16-bit up/down position counter  
• Standard and High-Precision Position Tracking  
modes  
• Two Position Update modes (x2 and x4)  
• Velocity measurement with a programmable  
postscaler for high-speed velocity measurement  
• Position counter interrupt (IC2QEIF in the PIR3  
register)  
The velocity postscaler down samples the velocity  
pulses used to increment the velocity counter by a  
specified ratio. It essentially divides down the number  
of velocity pulses to one output per so many inputs,  
preserving the pulse width in the process.  
• Velocity control interrupt (IC1IF in the PIR3  
register)  
The QEI submodule has three main components: the  
QEI control logic block, the position counter and  
velocity postscaler.  
A simplified block-diagram of the QEI module is shown  
in Figure 17-8.  
FIGURE 17-8:  
QEI BLOCK DIAGRAM  
QEI Module  
Direction Change  
Set CHGIF  
Reset Timer5  
Velocity Capture  
8
Timer Reset  
Velocity Event  
Postscaler  
Set UP/DOWN  
Direction  
Clock  
8
Filter  
Filter  
QEB  
QEA  
INDX  
CAP2BUF/POSCNT  
Comparator  
CAP3/QEB  
CAP2/QEA  
Reset on Match  
Set IC2QEIF  
8
CAP3BUF/MAXCNT  
QEI  
Control  
Logic  
Filter  
Position Counter  
CAP1/INDX  
8
8
2010 Microchip Technology Inc.  
DS39616D-page 161  
 复制成功!