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

PIC17LC42-16I/JW 参数 Datasheet PDF下载

PIC17LC42-16I/JW图片预览
型号: PIC17LC42-16I/JW
PDF下载: 下载PDF文件 查看货源
内容描述: 高性能8位CMOS EPROM / ROM微控制器 [High-Performance 8-Bit CMOS EPROM/ROM Microcontroller]
分类和应用: 微控制器可编程只读存储器电动程控只读存储器
文件页数/大小: 240 页 / 1141 K
品牌: MICROCHIP [ MICROCHIP ]
 浏览型号PIC17LC42-16I/JW的Datasheet PDF文件第51页浏览型号PIC17LC42-16I/JW的Datasheet PDF文件第52页浏览型号PIC17LC42-16I/JW的Datasheet PDF文件第53页浏览型号PIC17LC42-16I/JW的Datasheet PDF文件第54页浏览型号PIC17LC42-16I/JW的Datasheet PDF文件第56页浏览型号PIC17LC42-16I/JW的Datasheet PDF文件第57页浏览型号PIC17LC42-16I/JW的Datasheet PDF文件第58页浏览型号PIC17LC42-16I/JW的Datasheet PDF文件第59页  
PIC17C4X  
This interrupt can wake the device from SLEEP. The  
user, in the interrupt service routine, can clear the inter-  
rupt by:  
9.2  
PORTB and DDRB Registers  
PORTB is an 8-bit wide bi-directional port. The corre-  
sponding data direction register is DDRB. A '1' in DDRB  
configures the corresponding port pin as an input. A '0'  
in the DDRB register configures the corresponding port  
pin as an output. Reading PORTB reads the status of  
the pins, whereas writing to it will write to the port latch.  
a) Read-Write PORTB (such as; MOVPF PORTB,  
PORTB). This will end mismatch condition.  
b) Then, clear the RBIF bit.  
A mismatch condition will continue to set the RBIF bit.  
Reading then writing PORTB will end the mismatch  
condition, and allow the RBIF bit to be cleared.  
Each of the PORTB pins has a weak internal pull-up. A  
single control bit can turn on all the pull-ups. This is  
done by clearing the RBPU (PORTA<7>) bit. The weak  
pull-up is automatically turned off when the port pin is  
configured as an output. The pull-ups are enabled on  
any reset.  
This interrupt on mismatch feature, together with soft-  
ware configurable pull-ups on this port, allows easy  
interface to a key pad and make it possible for wake-up  
on key-depression. For an example, refer to AN552 in  
the Embedded Control Handbook.  
PORTB also has an interrupt on change feature. Only  
pins configured as inputs can cause this interrupt to  
occur (i.e. any RB7:RB0 pin configured as an output is  
excluded from the interrupt on change comparison).  
The input pins (of RB7:RB0) are compared with the  
value in the PORTB data latch.The “mismatch” outputs  
of RB7:RB0 are OR’ed together to generate the  
PORTB Interrupt Flag RBIF (PIR<7>).  
The interrupt on change feature is recommended for  
wake-up on operations where PORTB is only used for  
the interrupt on change feature and key depression  
operation.  
FIGURE 9-4: BLOCK DIAGRAM OF RB<7:4> AND RB<1:0> PORT PINS  
Peripheral Data in  
RBPU  
(PORTA<7>)  
Weak  
Pull-Up  
Match Signal  
from other  
port pins  
RBIF  
Port  
Input Latch  
Data Bus  
RD_DDRB (Q2)  
RD_PORTB (Q2)  
D
OE  
Q
WR_DDRB (Q4)  
WR_PORTB (Q4)  
CK  
D
Port  
Q
Data  
CK  
Note: I/O pins have protection diodes to VDD and VSS.  
1996 Microchip Technology Inc.  
DS30412C-page 55  
 复制成功!