PIC16F887-E/P Microchip Technology Inc., PIC16F887-E/P Datasheet - Page 65

no-image

PIC16F887-E/P

Manufacturer Part Number
PIC16F887-E/P
Description
40 PIN, 14KB FLASH, 368 RAM, 36 I/O, PDIP
Manufacturer
Microchip Technology Inc.
Datasheet

Specifications of PIC16F887-E/P

A/d Inputs
14-Channel, 10-Bit
Comparators
2
Cpu Speed
5 MIPS
Eeprom Memory
256 Bytes
Frequency
20 MHz
Input Output
35
Interface
I2C/SPI/USART
Memory Type
Flash
Number Of Bits
8
Package Type
40-pin PDIP
Programmable Memory
14K Bytes
Ram Size
368 Bytes
Resistance, Drain To Source On
Bytes
Serial Interface
MSSP or EUSART
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

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC16F887-E/P
Manufacturer:
TI
Quantity:
12 000
Part Number:
PIC16F887-E/PT
Manufacturer:
Microchip Technology
Quantity:
10 000
4.3
Clock Source modes can be classified as external or
internal.
• External Clock modes rely on external circuitry for
• Internal clock sources are contained internally
The system clock can be selected between external or
internal clock sources via the System Clock Select
(SCS) bit of the OSCCON register. See Section 4.6
“Clock Switching” for additional information.
TABLE 4-1:
4.4.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 input and the OSC2 is available
for general purpose I/O. Figure 4-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 PIC
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.
© 2008 Microchip Technology Inc.
Switch From
Sleep/POR
Sleep/POR
LFINTOSC (31 kHz)
Sleep/POR
LFINTOSC (31 kHz)
the clock source. Examples are: oscillator mod-
ules (EC mode), quartz crystal resonators or
ceramic resonators (LP, XT and HS modes) and
Resistor-Capacitor (RC) mode circuits.
within the oscillator module. The oscillator module
has two internal oscillators: the 8 MHz High-
Frequency Internal Oscillator (HFINTOSC) and
the 31 kHz Low-Frequency Internal Oscillator
(LFINTOSC).
Clock Source Modes
EC MODE
OSCILLATOR DELAY EXAMPLES
Switch To
LFINTOSC
HFINTOSC
EC, RC
EC, RC
LP, XT, HS
HFINTOSC
®
MCU design is fully
PIC16F882/883/884/886/887
125 kHz to 8 MHz
Frequency
31 kHz
125 kHz to 8 MHz
DC – 20 MHz
DC – 20 MHz
32 kHz to 20 MHz
4.4
4.4.1
If the oscillator module is configured for LP, XT or HS
modes, the Oscillator Start-up Timer (OST) counts
1024 oscillations from OSC1. This occurs following a
Power-on Reset (POR) and when 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 oscillator
module. When switching between clock sources, a
delay is required to allow the new clock to stabilize.
These oscillator delays are shown in Table 4-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 4.7 “Two-
Speed Clock Start-up Mode”).
FIGURE 4-2:
Note 1:
Clock from
Ext. System
External Clock Modes
OSCILLATOR START-UP TIMER (OST)
Alternate pin functions are listed in the
Section 1.0 “Device Overview”.
Oscillator Warm-up Delay (T
1024 Clock Cycles (OST)
1 μs (approx.)
Oscillator Delay
2 cycles
1 cycle of each
I/O
EXTERNAL CLOCK (EC)
MODE OPERATION
OSC1/CLKIN
OSC2/CLKOUT
PIC
®
DS41291E-page 63
MCU
(1)
WARM
)

Related parts for PIC16F887-E/P