PIC16C782 Microchip Technology Inc., PIC16C782 Datasheet - Page 38
![no-image](/images/manufacturer_photos/0/4/440/microchip_technology_inc__sml.jpg)
PIC16C782
Manufacturer Part Number
PIC16C782
Description
8-bit Cmos Microcontrollers With A/d, D/a, Opamp, Comparators And Psmc
Manufacturer
Microchip Technology Inc.
Datasheet
1.PIC16C782.pdf
(186 pages)
Available stocks
Company
Part Number
Manufacturer
Quantity
Price
- Current page: 38 of 186
- Download datasheet (4Mb)
PIC16C781/782
REGISTER 3-2:
REGISTER 3-3:
3.3.3
The ANSEL and TRISB registers are the primary con-
trols for the configuration of PORTB pins. TRISB tri-
states the output drivers of PORTB, and the ANSEL
register disables the input buffers. It is important to pro-
gram both registers when configuring a port pin, since
most peripherals do not have precedence over the
TRISB and ANSEL registers’ control of the pin. Even if
a peripheral has the ability to override the control of the
TRISB and ANSEL registers, it is good practice to pro-
gram both registers appropriately.
DS41171A-page 36
bit 7-0
bit 7-0
TRISB, ANSEL, AND CONTROL
PRECEDENCE
WEAK PULL-UP PORTB REGISTER (WPUB: 95h)
WPUB<7:0>: PORTB Weak Pull-Up Control bits
1 = Weak pull-up enabled for corresponding pin
0 = Weak pull-up disabled for corresponding pin
Note 1: For the WPUB register setting to take effect, the RBPU bit in the OPTION_REG
INTERRUPT-ON-CHANGE PORTB REGISTER (IOCB: 96h)
IOCB<7:0>: Interrupt-on-Change PORTB Control bits
1 = Interrupt-on-change enabled for corresponding pin
0 = Interrupt-on-change disabled for corresponding pin
Note 1: The interrupt enable bits, GIE and RBIE in the INTCON register, must be set for indi-
bit7
Legend:
R = Readable bit
- n = Value at POR
bit7
Legend:
R = Readable bit
- n = Value at POR
WPUB7
IOCB7
R/W-1
R/W-1
2: The weak pull-up device is automatically disabled if the pin is in output mode, i.e.,
register must be cleared.
(TRISB = 0) for corresponding pin.
vidual interrupts to be recognized.
WPUB6
IOCB6
R/W-1
R/W-1
WPUB5
IOCB5
R/W-1
R/W-1
Preliminary
W = Writable bit
’1’ = Bit is set
W = Writable bit
’1’ = Bit is set
WPUB4
IOCB4
R/W-1
R/W-1
Note 1: Upon RESET, the ANSEL register config-
WPUB3
IOCB3
R/W-1
R/W-0
U = Unimplemented bit, read as ‘0’
’0’ = Bit is cleared
2: When programmed as analog inputs,
3: There are specific cases in which the
U = Unimplemented bit, read as ‘0’
’0’ = Bit is cleared
ures the RB<3:0> pins as analog inputs.
RB<3:0> pins will read as ‘0’.
functions of the TRISB and ANSEL regis-
ters can be overridden by a peripheral or
configuration
through Figure 3-16 for details).
WPUB2
IOCB2
R/W-1
R/W-0
2001 Microchip Technology Inc.
word
WPUB1
x = Bit is unknown
x = Bit is unknown
IOCB1
R/W-1
R/W-0
(see
Figure 3-9
WPUB0
IOCB0
R/W-1
R/W-0
bit0
bit0
Related parts for PIC16C782
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
![PIC-0903](/images/no-image3.png)
Part Number:
Description:
Photo IC(photodiode with signal processing)
Manufacturer:
KODENSHI KOREA CORP
Datasheet:
![PIC-1018SMB](/images/no-image3.png)
Part Number:
Description:
INFRARED RECEIVER MODULE
Manufacturer:
ETC
Datasheet:
![PIC-2058SMB](/images/no-image3.png)
Part Number:
Description:
INFRARED RECEIVER MODULE
Manufacturer:
ETC
Datasheet:
![PIC-2503](/images/no-image3.png)
Part Number:
Description:
Photo IC(photodiode with signal processing)
Manufacturer:
KODENSHI KOREA CORP
Datasheet:
![PIC12045S](/images/manufacturer_photos/0/3/374/kodenshi_tmb.jpg)
Part Number:
Description:
(PIC-1204x) OPTICAL-RECEIVER OUTPUT PHOTO IC
Manufacturer:
Kodenshi
Datasheet:
![TC1014-2.7VCT](/images/manufacturer_photos/0/4/440/microchip_technology_inc__tmb.jpg)
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
![TC1014-5.0VCT](/images/manufacturer_photos/0/4/440/microchip_technology_inc__tmb.jpg)
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
![TC1055-2.5VCT](/images/manufacturer_photos/0/4/440/microchip_technology_inc__tmb.jpg)
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
![TC1055-2.7VCT](/images/manufacturer_photos/0/4/440/microchip_technology_inc__tmb.jpg)
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
![TC1055-2.8VCT](/images/manufacturer_photos/0/4/440/microchip_technology_inc__tmb.jpg)
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
![TC1055-4.0VCT](/images/manufacturer_photos/0/4/440/microchip_technology_inc__tmb.jpg)
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet: