PIC16F785-E/SS Microchip Technology, PIC16F785-E/SS Datasheet - Page 33

20 PIN, 3.5 KB STD FLASH, 128 RAM, 18 I/O PB FREE,

PIC16F785-E/SS

Manufacturer Part Number
PIC16F785-E/SS
Description
20 PIN, 3.5 KB STD FLASH, 128 RAM, 18 I/O PB FREE,
Manufacturer
Microchip Technology
Series
PIC® 16Fr

Specifications of PIC16F785-E/SS

Rohs Compliant
YES
Core Processor
PIC
Core Size
8-Bit
Speed
20MHz
Peripherals
Brown-out Detect/Reset, POR, PWM, WDT
Number Of I /o
17
Program Memory Size
3.5KB (2K x 14)
Program Memory Type
FLASH
Eeprom Size
256 x 8
Ram Size
128 x 8
Voltage - Supply (vcc/vdd)
2 V ~ 5.5 V
Data Converters
A/D 14x10b
Oscillator Type
Internal
Operating Temperature
-40°C ~ 125°C
Package / Case
20-SSOP
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
For Use With
XLT20SS1-1 - SOCKET TRANSITION 20DIP 20SSOPAC162060 - HEADER INTRFC MPLAB ICD2 20PIN
Connectivity
-
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
FIGURE 3-7:
3.7
The Fail-Safe Clock Monitor (FSCM) is designed to
allow the device to continue to operate in the event of
an oscillator failure. The FSCM can detect oscillator
failure at any point after the device has exited a Reset
or Sleep condition and the Oscillator Start-up Timer
(OST) has expired.
FIGURE 3-8:
The FSCM function is enabled by setting the FCMEN
bit in Configuration Word (CONFIG). It is applicable to
all external clock options (LP, XT, HS, EC, RC or I/O
modes).
In the event of an external clock failure, the FSCM will
set the OSFIF bit in the PIR1 Register and generate an
oscillator fail interrupt if the OSFIE bit in the PIE1 Reg-
ister is set. The device will then switch the system clock
to the internal oscillator. The system clock will continue
to come from the internal oscillator unless the external
clock recovers and the Fail-Safe condition is exited.
© 2008 Microchip Technology Inc.
Program Counter
LFINTOSC
Oscillator
(~32 μs)
Primary
31 kHz
Clock
System Clock
Fail-Safe Clock Monitor
INTOSC
OSC1
OSC2
(~2 ms)
488 Hz
÷ 64
Q1
TWO-SPEED START-UP
FSCM BLOCK DIAGRAM
0
(edge-triggered)
Clock Monitor
Q2
Latch (CM)
C
S
1
T
T
OST
Q3
Q
Q
1022 1023
PC
Q4
Detected
Failure
Clock
Q1
Q2
The frequency of the internal oscillator will depend
upon
(OSCCON<6:4>). Upon entering the Fail-Safe condi-
tion, the OSTS bit in the OSCCON Register is automat-
ically cleared to reflect that the internal oscillator is
active and the WDT is cleared. The SCS bit in the OSC-
CON Register is not updated. Enabling FSCM does not
affect the LTS bit.
The FSCM sample clock is generated by dividing the
LFINTOSC clock by 64. This will allow enough time
between FSCM sample clocks for a system clock edge
to occur. Figure 3-8 shows the FSCM block diagram.
On the rising edge of the sample clock, the monitoring
latch (CM = 0) will be cleared. On a falling edge of the
primary system clock, the monitoring latch will be set
(CM = 1). In the event that a falling edge of the sample
clock occurs, and the monitoring latch is not set, a clock
failure has been detected. The assigned internal
oscillator is enabled when FSCM is enabled as
reflected by the IRCF bits.
Note:
the
PC + 1
PIC16F785/HV785
Two-Speed
enabled when the Fail-Safe Clock Monitor
mode is enabled.
value
Q3
contained
Start-up
Q4
in
is
DS41249E-page 31
the
PC + 2
automatically
Q1
IRCF
bits

Related parts for PIC16F785-E/SS