Electronic Components Datasheet Search
  English  ▼

X  

DSPIC30F2010 Datasheet(PDF) 133 Page - Microchip Technology

Part # DSPIC30F2010
Description  High-Performance, 16-bit Digital Signal Controllers
PDF  204 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  MICROCHIP [Microchip Technology]
Direct Link  http://www.microchip.com
Logo MICROCHIP - Microchip Technology

DSPIC30F2010 Datasheet(HTML) 133 Page - Microchip Technology

Back Button DSPIC30F2010 Datasheet HTML 129Page - Microchip Technology DSPIC30F2010 Datasheet HTML 130Page - Microchip Technology DSPIC30F2010 Datasheet HTML 131Page - Microchip Technology DSPIC30F2010 Datasheet HTML 132Page - Microchip Technology DSPIC30F2010 Datasheet HTML 133Page - Microchip Technology DSPIC30F2010 Datasheet HTML 134Page - Microchip Technology DSPIC30F2010 Datasheet HTML 135Page - Microchip Technology DSPIC30F2010 Datasheet HTML 136Page - Microchip Technology DSPIC30F2010 Datasheet HTML 137Page - Microchip Technology Next Button
Zoom Inzoom in Zoom Outzoom out
 133 / 204 page
background image
© 2008 Microchip Technology Inc.
DS70118H-page 133
dsPIC30F2010
19.4
Watchdog Timer (WDT)
19.4.1
WATCHDOG TIMER OPERATION
The primary function of the Watchdog Timer (WDT) is
to reset the processor in the event of a software
malfunction. The WDT is a free running timer, which
runs off an on-chip RC oscillator, requiring no external
component. Therefore, the WDT timer will continue to
operate even if the main processor clock (e.g., the
crystal oscillator) fails.
19.4.2
ENABLING AND DISABLING THE
WDT
The Watchdog Timer can be “Enabled” or “Disabled”
only through a Configuration bit (FWDTEN) in the
Configuration register FWDT.
Setting FWDTEN = 1 enables the Watchdog Timer.
The enabling is done when programming the device.
By default, after chip-erase, FWDTEN bit = 1. Any
device
programmer
capable
of
programming
dsPIC30F devices allows programming of this and
other Configuration bits.
If enabled, the WDT will increment until it overflows or
“times out”. A WDT time-out will force a device Reset
(except during Sleep). To prevent a WDT time-out, the
user must clear the Watchdog Timer using a CLRWDT
instruction.
If a WDT times out during Sleep, the device will
wake-up. The WDTO bit in the RCON register will be
cleared to indicate a wake-up resulting from a WDT
time-out.
Setting FWDTEN = 0 allows user software to
enable/disable the Watchdog Timer via the SWDTEN
(RCON<5>) control bit.
19.5
Power-Saving Modes
There are two power-saving states that can be entered
through the execution of a special instruction, PWRSAV.
These are: Sleep and Idle.
The format of the PWRSAV instruction is as follows:
PWRSAV <parameter>
, where ‘parameter’ defines
Idle or Sleep mode.
19.5.1
SLEEP MODE
In Sleep mode, the clock to the CPU and peripherals is
shutdown. If an on-chip oscillator is being used, it is
shutdown.
The fail-safe clock monitor is not functional during
Sleep, since there is no clock to monitor. However,
LPRC clock remains active if WDT is operational during
Sleep.
The Brown-out protection circuit and the Low Voltage
Detect circuit, if enabled, will remain functional during
Sleep.
The processor wakes up from Sleep if at least one of
the following conditions has occurred:
• any interrupt that is individually enabled and meets
the required priority level
• any Reset (POR, BOR and MCLR)
• WDT time-out
On waking up from Sleep mode, the processor will restart
the same clock that was active prior to entry into Sleep
mode.
When
clock
switching
is
enabled,
bits
COSC<1:0> will determine the oscillator source that will
be used on wake-up. If clock switch is disabled, then
there is only one system clock.
If the clock source is an oscillator, the clock to the device
will be held off until OST times out (indicating a stable
oscillator). If PLL is used, the system clock is held off
until LOCK = 1 (indicating that the PLL is stable). In either
case, TPOR, TLOCK and TPWRT delays are applied.
If EC, FRC, LPRC or ERC oscillators are used, then a
delay of TPOR (~ 10
μs) is applied. This is the smallest
delay possible on wake-up from Sleep.
Moreover, if LP oscillator was active during Sleep, and
LP is the oscillator used on wake-up, then the start-up
delay will be equal to TPOR. PWRT delay and OST timer
delay are not applied. In order to have the smallest pos-
sible start-up delay when waking up from Sleep, one of
these faster wake-up options should be selected before
entering Sleep.
Any interrupt that is individually enabled (using the
corresponding IE bit) and meets the prevailing priority
level will be able to wake-up the processor. The
processor will process the interrupt and branch to the
ISR. The Sleep status bit in RCON register is set upon
wake-up.
Note:
If a POR or BOR occurred, the selection of
the oscillator is based on the FOS<1:0>
and FPR<3:0> Configuration bits.
Note:
In spite of various delays applied (TPOR,
TLOCK and TPWRT), the crystal oscillator
(and PLL) may not be active at the end of
the
time-out
(e.g.,
for
low-frequency
crystals. In such cases), if FSCM is
enabled, then the device will detect this as
a clock failure and process the clock
failure trap, the FRC oscillator will be
enabled, and the user will have to
re-enable the crystal oscillator. If FSCM is
not enabled, then the device will simply
suspend execution of code until the clock
is stable, and will remain in Sleep until the
oscillator clock has started.



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