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

16F819 参数 Datasheet PDF下载

16F819图片预览
型号: 16F819
PDF下载: 下载PDF文件 查看货源
内容描述: 二十零分之一十八引脚增强型闪存微控制器采用纳瓦技术 [18/20-Pin Enhanced Flash Microcontrollers with nanoWatt Technology]
分类和应用: 闪存微控制器
文件页数/大小: 176 页 / 2950 K
品牌: MICROCHIP [ MICROCHIP ]
 浏览型号16F819的Datasheet PDF文件第41页浏览型号16F819的Datasheet PDF文件第42页浏览型号16F819的Datasheet PDF文件第43页浏览型号16F819的Datasheet PDF文件第44页浏览型号16F819的Datasheet PDF文件第46页浏览型号16F819的Datasheet PDF文件第47页浏览型号16F819的Datasheet PDF文件第48页浏览型号16F819的Datasheet PDF文件第49页  
PIC16F818/819  
A mismatch condition will continue to set flag bit RBIF.  
Reading PORTB will end the mismatch condition and  
allow flag bit RBIF to be cleared.  
5.2  
PORTB and the TRISB Register  
PORTB is an 8-bit wide, bidirectional port. The corre-  
sponding data direction register is TRISB. Setting a  
TRISB bit (= 1) will make the corresponding PORTB  
pin an input (i.e., put the corresponding output driver in  
a high-impedance mode). Clearing a TRISB bit (= 0)  
will make the corresponding PORTB pin an output (i.e.,  
put the contents of the output latch on the selected pin).  
The interrupt-on-change feature is recommended for  
wake-up on key depression operation and operations  
where PORTB is only used for the interrupt-on-change  
feature. Polling of PORTB is not recommended while  
using the interrupt-on-change feature.  
RB0/INT is an external interrupt input pin and is  
configured using the INTEDG bit (OPTION_REG<6>).  
Each of the PORTB pins has a weak internal pull-up. A  
single control bit can turn on all the pull-ups. This is  
performed by clearing bit RBPU (OPTION_REG<7>).  
The 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.  
PORTB is multiplexed with several peripheral functions  
(see Table 5-3). PORTB pins have Schmitt Trigger  
input buffers.  
When enabling peripheral functions, care should be  
taken in defining TRIS bits for each PORTB pin. Some  
peripherals override the TRIS bit to make a pin an out-  
put, while other peripherals override the TRIS bit to  
make a pin an input. Since the TRIS bit override is in  
effect while the peripheral is enabled, read-modify-  
write instructions (BSF, BCF, XORWF) with TRISB as  
the destination should be avoided. The user should  
refer to the corresponding peripheral section for the  
correct TRIS bit settings.  
Four of PORTB’s pins, RB7:RB4, have an interrupt-on-  
change feature. Only pins configured as inputs can  
cause this interrupt to occur (i.e., any RB7:RB4 pin  
configured as an output is excluded from the interrupt-  
on-change comparison). The input pins (of RB7:RB4)  
are compared with the old value latched on the last  
read of PORTB. The “mismatch” outputs of RB7:RB4  
are ORed together to generate the RB Port Change  
Interrupt with Flag bit, RBIF (INTCON<0>).  
This interrupt can wake the device from Sleep. The  
user, in the Interrupt Service Routine, can clear the  
interrupt in the following manner:  
a) Any read or write of PORTB. This will end the  
mismatch condition.  
b) Clear flag bit RBIF.  
2004 Microchip Technology Inc.  
DS39598E-page 43  
 复制成功!