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

PIC16F690-I/SS 参数 Datasheet PDF下载

PIC16F690-I/SS图片预览
型号: PIC16F690-I/SS
PDF下载: 下载PDF文件 查看货源
内容描述: 20引脚基于闪存的8位CMOS微控制器采用纳瓦技术 [20-Pin Flash-Based, 8-Bit CMOS Microcontrollers with nanoWatt Technology]
分类和应用: 闪存微控制器和处理器外围集成电路光电二极管PC时钟
文件页数/大小: 294 页 / 5272 K
品牌: MICROCHIP [ MICROCHIP ]
 浏览型号PIC16F690-I/SS的Datasheet PDF文件第58页浏览型号PIC16F690-I/SS的Datasheet PDF文件第59页浏览型号PIC16F690-I/SS的Datasheet PDF文件第60页浏览型号PIC16F690-I/SS的Datasheet PDF文件第61页浏览型号PIC16F690-I/SS的Datasheet PDF文件第63页浏览型号PIC16F690-I/SS的Datasheet PDF文件第64页浏览型号PIC16F690-I/SS的Datasheet PDF文件第65页浏览型号PIC16F690-I/SS的Datasheet PDF文件第66页  
PIC16F631/677/685/687/689/690  
4.2.3  
INTERRUPT-ON-CHANGE  
4.2  
Additional Pin Functions  
Each PORTA pin is individually configurable as an  
interrupt-on-change pin. Control bits IOCAx enable or  
disable the interrupt function for each pin. Refer to  
Register 4-6. The interrupt-on-change is disabled on a  
Power-on Reset.  
Every PORTA pin on this device family has an  
interrupt-on-change option and a weak pull-up option.  
RA0 also has an Ultra Low-Power Wake-up option. The  
next three sections describe these functions.  
4.2.1  
ANSEL AND ANSELH REGISTERS  
For enabled interrupt-on-change pins, the values are  
compared with the old value latched on the last read of  
PORTA. The ‘mismatch’ outputs of the last read are  
OR’d together to set the PORTA Change Interrupt Flag  
bit (RABIF) in the INTCON register (Register 2-6).  
The ANSEL and ANSELH registers are used to disable  
the input buffers of I/O pins, which allow analog voltages  
to be applied to those pins without causing excessive  
current. Setting the ANSx bit of a corresponding pin will  
cause all digital reads of that pin to return ‘0’ and also  
permit analog functions of that pin to operate correctly.  
This interrupt can wake the device from Sleep. The  
user, in the Interrupt Service Routine, clears the  
interrupt by:  
The state of the ANSx bit has no effect on the digital  
output function of its corresponding pin. A pin with the  
TRISx bit clear and ANSx bit set will operate as a digital  
output, together with the analog input function of that  
pin. Pins with the ANSx bit set always read ‘0’, which  
can cause unexpected behavior when executing read  
or write operations on the port due to the  
read-modify-write sequence of all such operations.  
a) Any read or write of PORTA. This will end the  
mismatch condition, then,  
b) Clear the flag bit RABIF.  
A mismatch condition will continue to set flag bit RABIF.  
Reading PORTA will end the mismatch condition and  
allow flag bit RABIF to be cleared. The latch holding the  
last read value is not affected by a MCLR nor BOR  
Reset. After these Resets, the RABIF flag will continue  
to be set if a mismatch is present.  
4.2.2  
WEAK PULL-UPS  
Each of the PORTA pins, except RA3, has an  
individually configurable internal weak pull-up. Control  
bits WPUAx enable or disable each pull-up. Refer to  
Register 4-4. Each weak pull-up is automatically turned  
off when the port pin is configured as an output. The  
pull-ups are disabled on a Power-on Reset by the  
RABPU bit of the OPTION register. A weak pull-up is  
automatically enabled for RA3 when configured as  
MCLR and disabled when RA3 is an I/O. There is no  
software control of the MCLR pull-up.  
Note:  
If a change on the I/O pin should occur  
when the read operation is being executed  
(start of the Q2 cycle), then the RABIF  
interrupt flag may not get set.  
DS41262D-page 60  
© 2007 Microchip Technology Inc.  
 复制成功!