PIC18F2221-E/SO Microchip Technology, PIC18F2221-E/SO Datasheet - Page 41

no-image

PIC18F2221-E/SO

Manufacturer Part Number
PIC18F2221-E/SO
Description
4KB, Flash, 512bytes-RAM, 25I/O, 8-bit Family,nanoWatt 28 SOIC .300in TUBE
Manufacturer
Microchip Technology
Series
PIC® 18Fr

Specifications of PIC18F2221-E/SO

Core Processor
PIC
Core Size
8-Bit
Speed
40MHz
Connectivity
I²C, SPI, UART/USART
Peripherals
Brown-out Detect/Reset, HLVD, POR, PWM, WDT
Number Of I /o
25
Program Memory Size
4KB (2K x 16)
Program Memory Type
FLASH
Eeprom Size
256 x 8
Ram Size
512 x 8
Voltage - Supply (vcc/vdd)
4.2 V ~ 5.5 V
Data Converters
A/D 10x10b
Oscillator Type
Internal
Operating Temperature
-40°C ~ 125°C
Package / Case
28-SOIC (7.5mm Width)
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
FIGURE 4-1:
FIGURE 4-2:
4.2.3
In RC_RUN mode, the CPU and peripherals are
clocked from the internal oscillator block using the
INTOSC multiplexer. In this mode, the primary clock is
shut down. When using the INTRC source, this mode
provides the best power conservation of all the Run
modes, while still executing code. It works well for user
applications which are not highly timing sensitive or do
not require high-speed clocks at all times.
If the primary clock source is the internal oscillator block
(either INTRC or INTOSC), there are no distinguishable
differences between PRI_RUN and RC_RUN modes
during execution. However, a clock switch delay will
occur during entry to and exit from RC_RUN mode.
Therefore, if the primary clock source is the internal
oscillator block, the use of RC_RUN mode is not
recommended.
© 2009 Microchip Technology Inc.
Note 1: Clock transition typically occurs within 2-4 T
Peripheral
Program
Counter
T1OSI
OSC1
Clock
Clock
RC_RUN MODE
Note 1: T
CPU
CPU Clock
PLL Clock
Peripheral
Program
Counter
Output
T1OSI
OSC1
Clock
2: Clock transition typically occurs within 2-4 T
Q1
SCS<1:0> bits Changed
Q2
TRANSITION TIMING FOR ENTRY TO SEC_RUN MODE
TRANSITION TIMING FROM SEC_RUN MODE TO PRI_RUN MODE (HSPLL)
OST
PIC18F2221/2321/4221/4321 FAMILY
PC
Q3
= 1024 T
Q4
Q1
Q1
OSC
T
1
OST
; T
PLL
(1)
PC
Q2
2
= 2 ms (approx). These intervals are not shown to scale.
Clock Transition
3
T
OSTS bit Set
Q3
PLL (1)
OSC
(1)
Q4
PC + 2
n-1
.
OSC
Q1
This mode is entered by setting the SCS1 bit to ‘1’.
Although it is ignored, it is recommended that the SCS0
bit also be cleared; this is to maintain software compat-
ibility with future devices. When the clock source is
switched to the INTOSC multiplexer (see Figure 4-3),
the primary oscillator is shut down and the OSTS bit is
cleared. The IRCF bits may be modified at any time to
immediately change the clock speed.
1
n
.
Transition
Note:
2
Clock
n-1 n
(2)
Q2
PC + 2
Caution should be used when modifying a
single IRCF bit. If V
possible to select a higher clock speed
than is supported by the low V
Improper device operation may result if
the V
DD
Q3
/F
Q2
OSC
Q4
Q3 Q4
specifications are violated.
Q1
Q1
DD
PC + 4
Q2
Q2
is less than 3V, it is
PC + 4
DS39689F-page 41
Q3
Q3
DD
.

Related parts for PIC18F2221-E/SO