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

PIC12F615-I/SN 参数 Datasheet PDF下载

PIC12F615-I/SN图片预览
型号: PIC12F615-I/SN
PDF下载: 下载PDF文件 查看货源
内容描述: 8引脚基于闪存的8位CMOS微控制器 [8-Pin Flash-Based, 8-Bit CMOS Microcontrollers]
分类和应用: 闪存微控制器
文件页数/大小: 168 页 / 2608 K
品牌: MICROCHIP [ MICROCHIP ]
 浏览型号PIC12F615-I/SN的Datasheet PDF文件第30页浏览型号PIC12F615-I/SN的Datasheet PDF文件第31页浏览型号PIC12F615-I/SN的Datasheet PDF文件第32页浏览型号PIC12F615-I/SN的Datasheet PDF文件第33页浏览型号PIC12F615-I/SN的Datasheet PDF文件第35页浏览型号PIC12F615-I/SN的Datasheet PDF文件第36页浏览型号PIC12F615-I/SN的Datasheet PDF文件第37页浏览型号PIC12F615-I/SN的Datasheet PDF文件第38页  
PIC12F609/615/12HV609/615  
last read value is not affected by a MCLR nor BOR  
Reset. After these resets, the GPIF flag will continue to  
be set if a mismatch is present.  
4.2  
Additional Pin Functions  
Every GPIO pin on the PIC12F609/615/12HV609/615  
has an interrupt-on-change option and a weak pull-up  
option. The next three sections describe these  
functions.  
Note:  
If a change on the I/O pin should occur  
when any GPIO operation is being  
executed, then the GPIF interrupt flag may  
not get set.  
4.2.1  
ANSEL REGISTER  
The ANSEL register is used to configure the Input  
mode of an I/O pin to analog. Setting the appropriate  
ANSEL bit high will cause all digital reads on the pin to  
be read as ‘0’ and allow analog functions on the pin to  
operate correctly.  
The state of the ANSEL bits has no affect on digital  
output functions. A pin with TRIS clear and ANSEL set  
will still operate as a digital output, but the Input mode  
will be analog. This can cause unexpected behavior  
when executing read-modify-write instructions on the  
affected port.  
4.2.2  
WEAK PULL-UPS  
Each of the GPIO pins, except GP3, has an individually  
configurable internal weak pull-up. Control bits WPUx  
enable or disable each pull-up. Refer to Register 4-5.  
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 GPPU bit of the  
OPTION register). A weak pull-up is automatically  
enabled for GP3 when configured as MCLR and  
disabled when GP3 is an I/O. There is no software  
control of the MCLR pull-up.  
4.2.3  
INTERRUPT-ON-CHANGE  
Each GPIO pin is individually configurable as an inter-  
rupt-on-change pin. Control bits IOCx 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.  
For enabled interrupt-on-change pins, the values are  
compared with the old value latched on the last read of  
GPIO. The ‘mismatch’ outputs of the last read are OR’d  
together to set the GPIO Change Interrupt Flag bit  
(GPIF) in the INTCON register (Register 2-3).  
This interrupt can wake the device from Sleep. The  
user, in the Interrupt Service Routine, clears the inter-  
rupt by:  
a) Any read of GPIO AND Clear flag bit GPIF. This  
will end the mismatch condition;  
OR  
b) Any write of GPIO AND Clear flag bit GPIF will  
end the mismatch condition;  
A mismatch condition will continue to set flag bit GPIF.  
Reading GPIO will end the mismatch condition and  
allow flag bit GPIF to be cleared. The latch holding the  
DS41302A-page 32  
Preliminary  
© 2006 Microchip Technology Inc.  
 复制成功!