English
Language : 

PIC16F946 Datasheet, PDF (40/274 Pages) Microchip Technology – 64-Pin Flash-Based, 8-Bit CMOS Microcontrollers with LCD Driver and nanoWatt Technology
PIC16F946
REGISTER 3-3:
PORTB – PORTB REGISTER (ADDRESS: 06h OR 106h)
R/W-x R/W-x R/W-x R/W-x R/W-x R/W-x
RB7
RB6
RB5
RB4
RB3
RB2
bit 7
R/W-x
RB1
R/W-x
RB0
bit 0
bit 7-0
RB<7:0>: PORTB I/O Pin bits
1 = Port pin is >VIH
0 = Port pin is <VIL
Legend:
R = Readable bit
- n = Value at POR
W = Writable bit
‘1’ = Bit is set
U = Unimplemented bit, read as ‘0’
‘0’ = Bit is cleared x = Bit is unknown
REGISTER 3-4:
TRISB – PORTB TRI-STATE REGISTER (ADDRESS: 86h, 186h)
R/W-1 R/W-1 R/W-1 R/W-1 R/W-1 R/W-1 R/W-1
TRISB7 TRISB6 TRISB5 TRISB4 TRISB3 TRISB2 TRISB1
bit 7
R/W-1
TRISB0
bit 0
bit 7-0
TRISB<7:0>: PORTB Tri-State Control bits
1 = PORTB pin configured as an input (tri-stated)
0 = PORTB pin configured as an output
Note: TRISB<7:6> always reads ‘1’ in XT, HS and LP OSC modes.
Legend:
R = Readable bit
- n = Value at POR
W = Writable bit
‘1’ = Bit is set
U = Unimplemented bit, read as ‘0’
‘0’ = Bit is cleared x = Bit is unknown
REGISTER 3-5:
IOCB – PORTB INTERRUPT-ON-CHANGE REGISTER (ADDRESS: 96h)
R/W-0 R/W-0 R/W-0 R/W-0
U-0
U-0
U-0
IOCB7 IOCB6 IOCB5 IOCB4
—
—
—
bit 7
U-0
—
bit 0
bit 7-4
bit 3-0
IOCB<7:4>: Interrupt-on-Change bits
1 = Interrupt-on-change enabled
0 = Interrupt-on-change disabled
Unimplemented: Read as ‘0’
Legend:
R = Readable bit
- n = Value at POR
W = Writable bit
‘1’ = Bit is set
U = Unimplemented bit, read as ‘0’
‘0’ = Bit is cleared x = Bit is unknown
DS41265A-page 38
Preliminary
© 2005 Microchip Technology Inc.