Electronic Components Datasheet Search
  British  ▼
ALLDATASHEET.CO.UK

X  

PIC16F87 Datasheet(PDF) 49 Page - Microchip Technology

Part # PIC16F87
Description  18/20/28-Pin Enhanced FLASH Microcontrollers with nanoWatt Technology
PDF  214 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  MICROCHIP [Microchip Technology]
Direct Link  http://www.microchip.com
Logo MICROCHIP - Microchip Technology

PIC16F87 Datasheet(HTML) 49 Page - Microchip Technology

Back Button PIC16F87 Datasheet HTML 45Page - Microchip Technology PIC16F87 Datasheet HTML 46Page - Microchip Technology PIC16F87 Datasheet HTML 47Page - Microchip Technology PIC16F87 Datasheet HTML 48Page - Microchip Technology PIC16F87 Datasheet HTML 49Page - Microchip Technology PIC16F87 Datasheet HTML 50Page - Microchip Technology PIC16F87 Datasheet HTML 51Page - Microchip Technology PIC16F87 Datasheet HTML 52Page - Microchip Technology PIC16F87 Datasheet HTML 53Page - Microchip Technology Next Button
Zoom Inzoom in Zoom Outzoom out
 49 / 214 page
background image
 2003 Microchip Technology Inc.
Preliminary
DS30487B-page 47
PIC16F87/88
4.7.3.2
Returning to Primary Oscillator with
a RESET
A RESET will clear SCS<1:0> back to ‘00’. The
sequence for starting the primary oscillator following a
RESET is the same for all forms of RESET, including
POR. There is no transition sequence from the
alternate system clock to the primary system clock on
a RESET condition. Instead, the device will reset the
state of the OSCCON register and default to the
primary system clock. The sequence of events that
take place after this will depend upon the value of the
FOSC bits in the Configuration register. If the external
oscillator is configured as a crystal (HS, XT, or LP), the
CPU will be held in the Q1 state until 1024 clock cycles
have transpired on the primary
clock. This is
necessary because the crystal oscillator had been
powered down until the time of the transition.
During
the
oscillator
start-up
time,
instruction
execution and/or peripheral operation is suspended.
If the primary system clock is either RC, EC, or
INTRC, the CPU will begin operating on the first Q1
cycle following the wake-up event. This means that
there is no oscillator start-up time required because
the primary clock is already stable; however, there is a
delay between the wake-up event and the following
Q2. An internal delay timer of 5-10
µs will suspend
operation after the RESET to allow the CPU to
become ready for code execution. The CPU and
peripheral clock will be held in the first Q1.
The sequence of events is as follows:
1.
A device RESET is asserted from one of many
sources (WDT, BOR, MCLR, etc.).
2.
The device resets and the CPU start-up timer is
enabled if in SLEEP mode. The device is held in
RESET until the CPU start-up time-out is
complete.
3.
If the primary system clock is configured as an
external oscillator (HS, XT, LP), then the OST
will be active waiting for 1024 clocks of the pri-
mary system clock. While waiting for the OST,
the device will be held in RESET. The OST and
CPU start-up timers run in parallel.
4.
After both the CPU start-up and OST timers
have timed out, the device will wait for one addi-
tional clock cycle and instruction execution will
begin.
FIGURE 4-10:
PRIMARY SYSTEM CLOCK AFTER RESET (HS, XT, LP)
Note:
If Two-Speed Clock Start-up mode is
enabled, the INTRC will act as the system
clock until the OST timer has timed out.
Q4
Q1
Q3 Q4 Q1 Q2
OSC1
Peripheral
SLEEP
Program
PC
0000h
T1OSI
TOST
Q3
TOSC(2)
TT1P(1)
Q4
OSC2
OSTS
System Clock
0001h
Q1 Q2 Q3 Q4 Q1 Q2
Clock
Counter
0004h
0005h
0003h
Q1 Q2 Q3 Q4
RESET
TCPU(3)
Note 1: TT1P = 30.52
µs.
2: TOSC = 50 ns minimum.
3: TCPU = 5-10
µs (1 MHz system clock).
CPU Start-up



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100  ...More


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com