PIC18F87K22-I/PTRSL Microchip Technology, PIC18F87K22-I/PTRSL Datasheet - Page 172

no-image

PIC18F87K22-I/PTRSL

Manufacturer Part Number
PIC18F87K22-I/PTRSL
Description
MCU PIC 128K FLASH XLP 80TQFP
Manufacturer
Microchip Technology
Series
PIC® XLP™ 18Fr

Specifications of PIC18F87K22-I/PTRSL

Core Processor
PIC
Core Size
8-Bit
Speed
64MHz
Connectivity
EBI/EMI, I²C, LIN, SPI, UART/USART
Peripherals
Brown-out Detect/Reset, LVD, POR, PWM, WDT
Number Of I /o
69
Program Memory Size
128KB (64K x 16)
Program Memory Type
FLASH
Eeprom Size
1K x 8
Ram Size
4K x 8
Voltage - Supply (vcc/vdd)
1.8 V ~ 5.5 V
Data Converters
A/D 24x12b
Oscillator Type
Internal
Operating Temperature
-40°C ~ 85°C
Package / Case
80-TFQFP
Processor Series
PIC18F
Core
PIC
3rd Party Development Tools
52715-96, 52716-328, 52717-734, 52712-325, EWPIC18
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Lead Free Status / RoHS Status
Lead free / RoHS Compliant, Lead free / RoHS Compliant

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC18F87K22-I/PTRSL
Manufacturer:
Microchip Technology
Quantity:
10 000
corresponding Data Direction and Output Latch registers
PIC18F87K22 FAMILY
12.4
PORTC is an eight-bit wide, bidirectional port. The
are TRISC and LATC. Only PORTC pins, RC2 through
RC7, are digital only pins.
PORTC is multiplexed with ECCP, MSSP and EUSART
peripheral functions (Table 12-5). The pins have
Schmitt Trigger input buffers. The pins for ECCP, SPI
and EUSART are also configurable for open-drain out-
put whenever these functions are active. Open-drain
configuration is selected by setting the SPIOD,
CCPxOD and U1OD control bits in the registers,
ODCON1 and ODCON3.
RC1 is normally configured as the default peripheral
pin for the ECCP2 module. Assignment of ECCP2 is
controlled by Configuration bit, CCP2MX (default state,
CCP2MX = 1).
TABLE 12-5:
DS39960B-page 172
RC0/SOSCO/
SCLKI/
RC1/SOSCI/
ECCP2/P2A
RC2/ECCP1/
P1A
Legend:
Note 1:
Pin Name
PORTC, TRISC and
LATC Registers
O = Output, I = Input, ANA = Analog Signal, DIG = Digital Output, ST = Schmitt Trigger Buffer Input, TTL = TTL Buffer Input,
I
Default assignment for ECCP2 when the CCP2MX Configuration bit is set.
2
C = I
Function
ECCP2
SOSCO
ECCP1
SOSCI
SCLKI
2
RC0
RC1
RC2
PORTC FUNCTIONS
P2A
P1A
C™/SMBus Buffer Input, x = Don’t care (TRIS bit does not affect port direction or is overridden for this option).
(1)
Setting
TRIS
0
1
1
1
0
1
x
0
1
0
0
1
0
1
0
I/O
O
O
O
O
O
O
O
I
I
I
I
I
I
I
I
Type
ANA
DIG
DIG
DIG
DIG
DIG
DIG
DIG
I/O
ST
ST
ST
ST
ST
ST
ST
LATC<0> data output.
PORTC<0> data input.
SOSC oscillator output.
Digital clock input; enabled when SOSC oscillator disabled.
LATC<1> data output.
PORTC<1> data input.
SOSC oscillator input.
ECCP2 compare output and ECCP2 PWM output.
Takes priority over port data.
ECCP2 Capture input.
ECCP2 Enhanced PWM output, Channel A.
May be configured for tri-state during Enhanced PWM shutdown events. Takes
priority over port data.
LATC<2> data output.
PORTC<2> data input.
ECCP1 compare output and ECCP1 PWM output. Takes priority over port data.
ECCP1 capture input.
ECCP1 enhanced PWM output, Channel A.
May be configured for tri-state during Enhanced PWM shutdown events. Takes
priority over port data.
Preliminary
When enabling peripheral functions, use care in defin-
ing TRIS bits for each PORTC pin. Some peripherals
can override the TRIS bit to make a pin an output or
input. Consult the corresponding peripheral section for
the correct TRIS bit settings.
The contents of the TRISC register are affected by
peripheral overrides. Reading TRISC always returns
the current contents, even though a peripheral device
may be overriding one or more of the pins.
EXAMPLE 12-3:
CLRF
CLRF
MOVLW
MOVWF
Note:
PORTC
LATC
0CFh
TRISC
These pins are configured as digital inputs
on any device Reset.
Description
; Initialize PORTC by
; clearing output
; data latches
; Alternate method
; to clear output
; data latches
; Value used to
; initialize data
; direction
; Set RC<3:0> as inputs
; RC<5:4> as outputs
; RC<7:6> as inputs
INITIALIZING PORTC
 2010 Microchip Technology Inc.

Related parts for PIC18F87K22-I/PTRSL