PIC18LF27J13T-I/SO Microchip Technology, PIC18LF27J13T-I/SO Datasheet - Page 150

no-image

PIC18LF27J13T-I/SO

Manufacturer Part Number
PIC18LF27J13T-I/SO
Description
28-pin, GP, 128KB Flash, 4KB RAM, 12 MIPS, 12-bit ADC 28 SOIC .300in T/R
Manufacturer
Microchip Technology
Series
PIC® XLP™ 18Fr
Datasheets

Specifications of PIC18LF27J13T-I/SO

Core Processor
PIC
Core Size
8-Bit
Speed
48MHz
Connectivity
I²C, LIN, SPI, UART/USART
Peripherals
Brown-out Detect/Reset, POR, PWM, WDT
Number Of I /o
22
Program Memory Size
128KB (64K x 16)
Program Memory Type
FLASH
Ram Size
3.8K x 8
Voltage - Supply (vcc/vdd)
2 V ~ 2.75 V
Data Converters
A/D 10x10b/12b
Oscillator Type
Internal
Operating Temperature
-40°C ~ 85°C
Package / Case
*
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Eeprom Size
-
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
PIC18F47J13 FAMILY
10.4
PORTC is an 8-bit wide, bidirectional port. The corre-
sponding Data Direction register is TRISC. Setting a
TRISC bit (= 1) will make the corresponding PORTC
pin an input (i.e., put the corresponding output driver in
a high-impedance mode). Clearing a TRISC bit (= 0)
will make the corresponding PORTC pin an output (i.e.,
put the contents of the output latch on the selected pin).
The Data Latch register (LATC) is also memory
mapped. Read-modify-write operations on the LATC
register read and write the latched output value for
PORTC.
PORTC is multiplexed with several peripheral functions
(see Table 10-7). The pins have Schmitt Trigger input
buffers.
When enabling peripheral functions, care should be
taken in defining TRISx bits for each PORTC pin. Some
peripherals override the TRISx bit to make a pin an out-
put, while other peripherals override the TRISx bit to
make a pin an input. The user should refer to the
corresponding
information.
DS39974A-page 150
PORTC, TRISC and LATC
Registers
peripheral
section
for
additional
Preliminary
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 10-4:
CLRF
CLRF
MOVLW 0x3F
MOVWF TRISC
MOVLB 0x0F
BSF
Note:
PORTC
LATC
ANCON1,PCFG11
On a Power-on Reset, PORTC pins
(except RC2) are configured as digital
inputs. RC2 will default as an analog input
(controlled by the ANCON1 register).
;
; clearing output
; data latches
; Alternate method
; to clear output
; data latches
; Value used to
; initialize data
; direction
; Set RC<5:0> as inputs
;
; ANCON register is not in
;Configure RC2/AN11 as
digital input
Access Bank
INITIALIZING PORTC
Initialize PORTC by
RC<7:6> as outputs
 2010 Microchip Technology Inc.

Related parts for PIC18LF27J13T-I/SO