English
Language : 

PIC16F1829LIN Datasheet, PDF (42/74 Pages) Micon Design Technology Corporation – 20-Pin, 8-bit Flash LIN/J2602 Microcontroller
PIC16F1829LIN
REGISTER 5-5: LATB: PORTB DATA LATCH REGISTER
R/W-x/u
R/W-x/u
R/W-x/u
R/W-x/u
U-0
U-0
LATB7
LATB6
LATB5
LATB4
—
—
bit 7
U-0
U-0
—
—
bit 0
Legend:
R = Readable bit
u = Bit is unchanged
‘1’ = Bit is set
W = Writable bit
x = Bit is unknown
‘0’ = Bit is cleared
U = Unimplemented bit, read as ‘0’
-n/n = Value at POR and BOR/Value at all other Resets
bit 7-5
bit 4
bit 3-0
LATB<7:5>: Dedicated the LIN Transceiver Transmit Function(1)
LATB4: RB4 Port I/O Output Latch Register bit(1)
Unimplemented: Read as ‘0’
Note 1: Writes to PORTB are actually written to the corresponding LATB register. Reads from the PORTB register
actually return the I/O pin values.
REGISTER 5-6: ANSELB: PORTB ANALOG SELECT REGISTER
R/W-1/1
R/W-1/1
R/W-1/1
R/W-1/1
U-0
U-0
U-0
U-0
ANSB7
ANSB6
ANSB5
ANSB4
—
—
—
—
bit 7
bit 0
Legend:
R = Readable bit
u = Bit is unchanged
‘1’ = Bit is set
W = Writable bit
x = Bit is unknown
‘0’ = Bit is cleared
U = Unimplemented bit, read as ‘0’
-n/n = Value at POR and BOR/Value at all other Resets
bit 7-5
bit 4
bit 3-0
ANSB<7:5>: Analog Select between Analog or Digital Function on Pins RB<7:5>
0 = Must be set to ‘0’. Digital I/O. Pin is assigned to port or digital special function.
1 = Not used
ANSB4: Analog Select between Analog or Digital Function on Pin RB4
0 = Digital I/O. Pin is assigned to port or digital special function.
1 = Analog input. Pin is assigned as analog input(1). Digital input buffer is disabled.
Unimplemented: Read as ‘0’
Note 1: When setting a pin to an analog input, the corresponding TRIS bit must be set to Input mode in order to
allow external control of the voltage on the pin.
DS41673A-page 42
Preliminary
 2012 Microchip Technology Inc.