PIC12F683-E/P Microchip Technology Inc., PIC12F683-E/P Datasheet - Page 22

no-image

PIC12F683-E/P

Manufacturer Part Number
PIC12F683-E/P
Description
8 PIN, 3.5 KB FLASH, 128 RAM, 6 I/O, PDIP
Manufacturer
Microchip Technology Inc.
Datasheet

Specifications of PIC12F683-E/P

A/d Inputs
4 Channel, 10-Bit
Comparators
1
Cpu Speed
5 MIPS
Eeprom Memory
256 Bytes
Frequency
20 MHz
Input Output
6
Memory Type
Flash
Number Of Bits
8
Package Type
8-pin PDIP
Programmable Memory
3.5K Bytes
Ram Size
128 Bytes
Serial Interface
None
Speed
20 MHz
Timers
2-8-bit, 1-16-bit
Voltage, Range
2-5.5 V
Lead Free Status / Rohs Status
RoHS Compliant part Electrostatic Device
PIC12F683
3.2
Clock source modes can be classified as external or
internal.
• External clock modes rely on external circuitry
• Internal clock sources are contained internally
The system clock can be selected between external or
internal clock sources via the System Clock Selection
(SCS) bit (see Section 3.5 “Clock Switching”).
TABLE 3-1:
3.3.2
The External Clock (EC) mode allows an externally
generated logic level as the system clock source.
When operating in this mode, an external clock source
is connected to the OSC1 pin and the GP5 pin is
available for general purpose I/O. Figure 3-2 shows the
pin connections for EC mode.
The Oscillator Start-up Timer (OST) is disabled when
EC mode is selected. Therefore, there is no delay in
operation after a Power-on Reset (POR) or wake-up
from Sleep. Because the PIC12F683 design is fully
static, stopping the external clock input will have the
effect of halting the device while leaving all data intact.
Upon restarting the external clock, the device will
resume operation as if no time had elapsed.
DS41211B-page 20
Note 1:
for the clock source. Examples are oscillator
modules (EC mode), quartz crystal resonators or
ceramic resonators (LP, XT and HS modes) and
Resistor-Capacitor (RC mode) circuits.
within the PIC12F683. The PIC12F683 has two
internal oscillators: the 8 MHz High-Frequency
Internal Oscillator (HFINTOSC) and 31 kHz
Low-Frequency Internal Oscillator (LFINTOSC).
LFINTOSC (31 kHz)
LFINTOSC (31 kHz)
Switch From
Sleep/POR
Sleep/POR
Sleep/POR
Clock Source Modes
The 5 s–10 s start-up delay is based on a 1 MHz system clock.
EC MODE
OSCILLATOR DELAY EXAMPLES
HFINTOSC
HFINTOSC
LFINTOSC
LP, XT, HS
Switch To
EC, RC
EC, RC
Preliminary
125 kHz-8 MHz
31 kHz-20 MHz
125 kHz-8 MHz
3.3
3.3.1
If the PIC12F683 is configured for LP, XT or HS modes,
the Oscillator Start-up Timer (OST) counts 1024 oscil-
lations from the OSC1 pin, following a Power-on Reset
(POR) and the Power-up Timer (PWRT) has expired (if
configured), or a wake-up from Sleep. During this time,
the program counter does not increment and program
execution is suspended. The OST ensures that the
oscillator circuit, using a quartz crystal resonator or
ceramic resonator, has started and is providing a stable
system clock to the PIC12F683. When switching
between clock sources a delay is required to allow the
new clock to stabilize. These oscillator delays are
shown in Table 3-1.
In order to minimize latency between external oscillator
start-up and code execution, the Two-Speed Clock Start-
up mode can be selected (see Section 3.6 “Two-Speed
Clock Start-up Mode”).
FIGURE 3-2:
DC – 20 MHz
DC – 20 MHz
Frequency
Clock from
Ext. System
31 kHz
External Clock Modes
OSCILLATOR START-UP TIMER
(OST)
GP4
EXTERNAL CLOCK (EC)
MODE OPERATION
 2004 Microchip Technology Inc.
5 s–10 s (approx.) CPU
1024 Clock Cycles (OST)
OSC1/CLKIN
I/O (OSC2)
Oscillator Delay
1 s (approx.)
Start-up
PIC12F683
(1)

Related parts for PIC12F683-E/P