English
Language : 

PIC18F-LF1XK50 Datasheet, PDF (92/420 Pages) Microchip Technology – 20-Pin USB Flash Microcontrollers
PIC18F/LF1XK50
TABLE 9-3: PORTB I/O SUMMARY
Pin
Function
TRIS
Setting
I/O
I/O
Type
Description
RB4/IOCB4/AN10/
RB4
SDI/SDA
0
O DIG LATB<4> data output; not affected by analog input.
1
I
TTL PORTB<4> data input; Programmable weak pull-up.
IOCB4
1
I
TTL Interrupt-on-pin change.
AN10
1
I ANA ADC input channel 10.
SDI
1
I
ST SPI data input (MSSP module).
SDA
1
I
DIG I2C™ data output (MSSP module); takes priority over port data.
1
O I2C I2C™ data input (MSSP module); input type depends on module
setting.
RB5/IOCB5/AN11/
RB5
RX/DT
0
O DIG LATB<5> data output.
1
I
TTL PORTB<5> data input; Programmable weak pull-up.
IOCB5
1
I
TTL Interrupt-on-pin change.
AN11
1
I ANA ADC input channel 11.
RX
1
I
ST Asynchronous serial receive data input (USART module).
DT
1
O DIG Synchronous serial data output (USART module); takes priority over
port data.
1
I
ST Synchronous serial data input (USART module). User must configure
as an input.
RB6/IOCB6/SCK/
RB6
SCL
0
O DIG LATB<6> data output.
1
I
TTL PORTB<6> data input; Programmable weak pull-up.
IOCB6
1
I
TTL Interrupt-on-pin change.
SCK
0
O DIG SPI clock output (MSSP module); takes priority over port data.
1
I
ST SPI clock input (MSSP module).
SCL
0
O DIG I2C™ clock output (MSSP module); takes priority over port data.
1
I
I2C I2C™ clock input (MSSP module); input type depends on module
setting.
RB7/IOCB7/TX/CK
RB7
0
O DIG LATB<7> data output.
1
I
TTL PORTB<7> data input; Programmable weak pull-up.
IOCB7
1
I
TTL Interrupt-on-pin change.
TX
1
O DIG Asynchronous serial transmit data output (USART module); takes
priority over port data. User must configure as output.
CK
1
O DIG Synchronous serial clock output (USART module); takes priority over
port data.
1
I
ST Synchronous serial clock input (USART module).
Legend: DIG = Digital level output; TTL = TTL input buffer; ST = Schmitt Trigger input buffer; ANA = Analog level input/output;
x = Don’t care (TRIS bit does not affect port direction or is overridden for this option).
DS41350E-page 92
Preliminary
 2010 Microchip Technology Inc.