English
Language : 

PIC18F1XK22 Datasheet, PDF (88/388 Pages) Microchip Technology – 20-Pin Flash Microcontrollers with nanoWatt XLP Technology
PIC18F1XK22/LF1XK22
TABLE 8-3: PORTB I/O SUMMARY
Pin
Function
TRIS
Setting
I/O
I/O
Type
Description
RB4/AN10/SDI/
SDA
RB4
AN10
0
O DIG LATB<4> data output.
1
I
TTL PORTB<4> data input; Programmable weak pull-up.
1
I ANA ADC input channel 10.
SDI
SDA
1
I
ST SPI data input (MSSP module).
1
O DIG I2C™ data output (MSSP module).
1
I
I2C I2C™ data input (MSSP module); input type depends on module
setting.
RB5/AN11/RX/DT
RB5
0
O DIG LATB<5> data output.
1
I
TTL PORTB<5> data input; Programmable weak pull-up.
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/SCK/SCL
RB6
0
O DIG LATB<6> data output.
SCK
SCL
1
I
TTL PORTB<6> data input; Programmable weak pull-up.
0
O DIG SPI clock output (MSSP module).
1
I
ST SPI clock input (MSSP module).
0
O DIG I2C™ clock output (MSSP module).
1
I
I2C I2C™ clock input (MSSP module); input type depends on module
setting.
RB7/TX/CK
RB7
0
O DIG LATB<7> data output.
1
I
TTL PORTB<7> data input; Programmable weak pull-up.
TX
1
O DIG Asynchronous serial transmit data output (USART module).
CK
1
O DIG Synchronous serial clock output (USART module).
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;
I2C = Schmitt Trigger input with I2C; x = Don’t care (TRIS bit does not affect port direction or is overridden for this option).
DS41365D-page 88
Preliminary
 2010 Microchip Technology Inc.