PIC18LF2523-I/SP Microchip Technology, PIC18LF2523-I/SP Datasheet - Page 113

IC PIC MCU FLASH 16KX16 28-DIP

PIC18LF2523-I/SP

Manufacturer Part Number
PIC18LF2523-I/SP
Description
IC PIC MCU FLASH 16KX16 28-DIP
Manufacturer
Microchip Technology
Series
PIC® 18Fr

Specifications of PIC18LF2523-I/SP

Core Size
8-Bit
Program Memory Size
32KB (16K x 16)
Core Processor
PIC
Speed
40MHz
Connectivity
I²C, SPI, UART/USART
Peripherals
Brown-out Detect/Reset, HLVD, POR, PWM, WDT
Number Of I /o
25
Program Memory Type
FLASH
Eeprom Size
256 x 8
Ram Size
1.5K x 8
Voltage - Supply (vcc/vdd)
2 V ~ 5.5 V
Data Converters
A/D 10x12b
Oscillator Type
Internal
Operating Temperature
-40°C ~ 85°C
Package / Case
28-DIP (0.300", 7.62mm)
Controller Family/series
PIC18
No. Of I/o's
25
Eeprom Memory Size
256Byte
Ram Memory Size
1.5KB
Cpu Speed
40MHz
No. Of Timers
4
Package
28SPDIP
Device Core
PIC
Family Name
PIC18
Maximum Speed
40 MHz
Operating Supply Voltage
2.5|3.3|5 V
Data Bus Width
8 Bit
Number Of Programmable I/os
25
Interface Type
I2C/SPI/USART
On-chip Adc
10-chx12-bit
Number Of Timers
4
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
10.3
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
(Table 10-5). The pins have Schmitt Trigger input buff-
ers. RC1 is normally configured by Configuration bit,
CCP2MX, as the default peripheral pin of the CCP2
module (default/erased state, CCP2MX = 1).
RC7 and RC6 are used by the EUSART (Section 18.0
“Enhanced Universal Synchronous Asynchronous
Receiver Transmitter (EUSART)”). RC5, RC4 and
RC3 are used by the MSSP (Section 17.0 “Master
Synchronous Serial Port (MSSP) Module”). RC2 is
used by ECCP1 (Section 16.0 “Enhanced Capture/
Compare/PWM (ECCP) Module”). RC1 and RC0 are
used by the Timer1 oscillator (Section 12.3 “Timer1
Oscillator”). RC0 may also function as a clock input for
Timer1 and Timer3 (Section 12.0 “Timer1 Module”
and Section 14.0 “Timer3 Module”, respectively). RC1
may also be used by CCP2 (Section 15.0 “Capture/
Compare/PWM (CCP) Modules”) depending on the
Configuration
CONFIG3H).
© 2007 Microchip Technology Inc.
PORTC, TRISC and LATC
Registers
bit,
CCP2MX
(Register 23-4,
PIC18F2423/2523/4423/4523
Preliminary
When enabling peripheral functions, care should be
taken in defining TRIS bits for each PORTC pin. Some
peripherals override the TRIS bit to make a pin an output,
while other peripherals override the TRIS bit to make a
pin an input. The user should refer to the corresponding
peripheral section for additional information.
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-3:
CLRF
CLRF
MOVLW
MOVWF
Note:
PORTC
LATC
0CFh
TRISC
On a Power-on Reset, these pins are
configured as digital inputs.
; 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
DS39755B-page 111

Related parts for PIC18LF2523-I/SP