Electronic Components Datasheet Search
  English  ▼

X  

DM163006 Datasheet(PDF) 212 Page - Microchip Technology

Part # DM163006
Description  High-Performance ROM-less Microcontrollers
PDF  320 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  MICROCHIP [Microchip Technology]
Direct Link  http://www.microchip.com
Logo MICROCHIP - Microchip Technology

DM163006 Datasheet(HTML) 212 Page - Microchip Technology

Back Button DM163006 Datasheet HTML 208Page - Microchip Technology DM163006 Datasheet HTML 209Page - Microchip Technology DM163006 Datasheet HTML 210Page - Microchip Technology DM163006 Datasheet HTML 211Page - Microchip Technology DM163006 Datasheet HTML 212Page - Microchip Technology DM163006 Datasheet HTML 213Page - Microchip Technology DM163006 Datasheet HTML 214Page - Microchip Technology DM163006 Datasheet HTML 215Page - Microchip Technology DM163006 Datasheet HTML 216Page - Microchip Technology Next Button
Zoom Inzoom in Zoom Outzoom out
 212 / 320 page
background image
PIC18C601/801
DS39541A-page 212
Advance Information
 2001 Microchip Technology Inc.
19.3
Power-down Mode (SLEEP)
Power-down mode is entered by executing a SLEEP
instruction.
Upon entering into Power-down mode, the following
actions are performed:
1.
Watchdog Timer is cleared and kept running.
2.
PD bit in RCON register is cleared.
3.
TO bit in RCON register is set.
4.
Oscillator driver is turned off.
5.
I/O ports maintain the status they had before the
SLEEP
instruction was executed.
To achieve lowest current consumption, follow these
steps before switching to Power-down mode:
1.
Place all I/O pins at either VDD or VSS and
ensure no external circuitry is drawing current
from I/O pin.
2.
Power-down A/D and external clocks.
3.
Pull all hi-impedance inputs to high or low,
externally.
4.
Place T0CKI at VSS or VDD.
5.
Current consumption by PORTB on-chip pull-
ups should be taken into account and disabled,
if necessary.
The MCLR pin must be at a logic high level (VIHMC).
19.3.1
WAKE-UP FROM SLEEP
The device can wake-up from SLEEP through one of
the following events:
1.
External RESET input on MCLR pin.
2.
Watchdog
Timer
Wake-up
(if
WDT
was
enabled).
3.
Interrupt from INT pin, RB port change, or a
peripheral interrupt.
The following peripheral interrupts can wake the device
from SLEEP:
4.
TMR1 interrupt.
Timer1 must be operating as
an asynchronous counter.
5.
TMR3 interrupt.
Timer3 must be operating as
an asynchronous counter.
6.
CCP Capture mode interrupt.
7.
Special event trigger (Timer1 in Asynchronous
mode using an external clock).
8.
MSSP (START/STOP) bit detect interrupt.
9.
MSSP transmit or receive in Slave mode
(SPI/I2C).
10. USART RX or TX (Synchronous Slave mode).
11. A/D conversion (when A/D clock source is RC).
Other peripherals cannot generate interrupts, since
during SLEEP, no on-chip clocks are present.
External MCLR Reset will cause a device RESET. All
other events are considered a continuation of program
execution and will cause a "wake-up". The TO and PD
bits in the RCON register can be used to determine the
cause of the device RESET. The PD bit, which is set on
power-up, is cleared when SLEEP is invoked. The TO
bit is cleared, if a WDT time-out occurred (and caused
wake-up).
When the SLEEP instruction is being executed, the next
instruction (PC + 2) is pre-fetched. For the device to
wake-up through an interrupt event, the corresponding
interrupt enable bit must be set (enabled). Wake-up is
regardless of the state of the GIE bit. If the GIE bit is
clear (disabled), the device continues execution at the
instruction after the SLEEP instruction. If the GIE bit is
set (enabled), the device executes the instruction after
the SLEEP instruction and then branches to the inter-
rupt address. In cases where the execution of the
instruction following SLEEP is not desirable, the user
should have a NOP after the SLEEP instruction.
19.3.2
WAKE-UP USING INTERRUPTS
When global interrupts are disabled (GIE cleared) and
any interrupt source has both its interrupt enable bit
and interrupt flag bit set, one of the following will occur:
• If an interrupt condition (interrupt flag bit and inter-
rupt enable bits are set) occurs before the execu-
tion of a SLEEP instruction, the SLEEP instruction
will complete as a NOP. Therefore, the WDT and
WDT postscaler will not be cleared, the TO bit will
not be set and PD bits will not be cleared.
• If the interrupt condition occurs during or after
the execution of a SLEEP instruction, the device
will immediately wake-up from sleep. The SLEEP
instruction will be completely executed before the
wake-up. Therefore, the WDT and WDT
postscaler will be cleared, the TO bit will be set
and the PD bit will be cleared.
Even if the flag bits were checked before executing a
SLEEP
instruction, it may be possible for flag bits to
become set before the SLEEP instruction completes. To
determine whether a SLEEP instruction executed, test
the PD bit. If the PD bit is set, the SLEEP instruction
was executed as a NOP.
To ensure that the WDT is cleared, a CLRWDT instruc-
tion should be executed before a SLEEP instruction.



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