pic32mx320f064h Microchip Technology Inc., pic32mx320f064h Datasheet - Page 224

no-image

pic32mx320f064h

Manufacturer Part Number
pic32mx320f064h
Description
64/100-pin General Purpose, 32-bit Flash Microcontrollers
Manufacturer
Microchip Technology Inc.
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
pic32mx320f064h-40I/PT
Manufacturer:
Microchip Technology
Quantity:
10 000
Part Number:
pic32mx320f064h-40I/PT
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Part Number:
pic32mx320f064h-40V/PT
Manufacturer:
Microchip Technology
Quantity:
10 000
Part Number:
pic32mx320f064h-80I/PT
Manufacturer:
Microchip Technology
Quantity:
10 000
Part Number:
pic32mx320f064h-80V/PT
Manufacturer:
Microchip Technology
Quantity:
10 000
Part Number:
pic32mx320f064hT-40I/PT
Manufacturer:
Microchip Technology
Quantity:
10 000
PIC32MX FAMILY
10.2.3
Two-Speed Start-up mode can be used to reduce the
device start-up latency when using all External Crystal
POSC modes, including PLL. Two-Speed Start-up uses
the FRC clock as the SYSCLK source until the Primary
Oscillator (POSC) has stabilized. After the user
selected oscillator has stabilized, the clock source will
switch to POSC. This allows the CPU to begin running
code, at a lower speed, while the oscillator is stabiliz-
ing. When the POSC has met the start-up criteria an
automatic clock switch occurs to switch to POSC. This
mode is enabled by the device Configuration bits
FCKSM<1:0> (DEVCFG1<15:14>). Two-Speed Start-
up operates after a Power-on Reset (POR) or exit from
SLEEP. Software can determine the oscillator source
currently in use by reading the COSC<2:0> bits in the
OSCCON register.
10.2.4
The Fail-Safe Clock Monitor (FSCM) is designed to
allow continued device operation if the current oscilla-
tor fails. It is intended for use with the Primary Oscillator
(POSC) and automatically switches to the FRC oscilla-
tor if a POSC failure is detected. The switch to the Fast
Internal RC Oscillator (FRC) oscillator allows continued
device operation and the ability to retry the POSC or to
execute code appropriate for a clock failure.
The FSCM mode is controlled by the FCKSM<1:0> bits
in the device Configuration register, DEVCFG1. Any of
the POSC modes can be used with FSCM.
When a clock failure is detected with FSCM enabled
and
(IEC1<14>) set, the clock source will be switched from
POSC to FRC. An Oscillator Fail interrupt will be gen-
erated, with the CF bit (OSCCON<3>) set. This inter-
rupt has a user settable priority FSCMIP<2:0>
(IPC8<12:10>)
(IPC8<9:8>). The clock source will remain FRC until a
device Reset or a clock switch is performed. Failure to
enable the FSCM interrupt will not inhibit the actual
clock switch.
The FSCM module takes the following actions when
switching to the FRC oscillator:
1.
2.
3.
DS61143A-page 222
Note:
The COSC bits (OSCCON<14:12>) are loaded
with ‘000’.
The CF OSCCON<3> bit is set to indicate the
clock failure
The OSWEN control bit (OSCCON<0>) is
the
The Watchdog Timer (WDT), if enabled,
will continue to count at the same rate
regardless of the SYSCLK frequency.
Care must be taken to service the WDT
during Two-Speed Start-up, taking into
account the change in SYSCLK.
TWO-SPEED START-UP
FAIL-SAFE CLOCK MONITOR
OPERATION
FSCM
and
Interrupt
subpriority
Enable
FSCMIS<1:0>
bit
Advance Information
FSCMIE
To enable FSCM the following steps should be
performed:
1.
2.
3.
If the PLL is to be used:
If a FSCM interrupt is desired when a FSCM event
occurs, the following steps should be performed during
start-up code:
Note:
cleared to cancel any pending clock switches.
Enable the FSCM in the device Configuration
register,
FCKSM<1:0> bits to ‘00’.
01 = Clock Switching is enabled, FSCM is
disabled
00 = Clock Switching and FSCM are enabled
Select the desired mode HS, XT, or EC using
FNOSC<2:0> in DEVCFG1.
Select POSC as the default oscillator in the
device Configuration register, DEVCFG1 by
configuring FNOSC<2:0> = 010 without PLL or
‘011’ with PLL.
1.
2.
3.
1.
2.
3.
Select the appropriate Configuration bits for
the PLL input divider to scale the input fre-
quency to be between 4 MHz and 5 MHz
using FPLLIDIV<2:0> (DEVCFG2<2:0>).
Select the desired PLL multiplier using FPLL-
Select the desired PLL output divider using
Clear the FSCM interrupt bit FSCMIF
(IFS1<14>).
Set the Interrupt priority FSCMIP<2:0>
Set the FSCM Interrupt Enable bit FSCMIE
MULT<2:0> (DEVCFG2<6:4>).
FPLLODIV<2:0> (DEVCFG2<18:16>).
(IPC8<12:10>) and subpriority FSCMIS<1:0>
(IPC8<9:8>).
(IEC1<14>)
The Watchdog Timer, if enabled, will con-
tinue to count at the same rate regardless
of the SYSCLK frequency. Care must be
taken to service the WDT after a Fail-Safe
Clock Monitor event, taking into account
the change in SYSCLK.
DEVCFG1,
© 2007 Microchip Technology Inc.
by
configuring
the

Related parts for pic32mx320f064h