数据搜索系统,热门电子元器件搜索
  Chinese  ▼
ALLDATASHEETCN.COM

X  

STM8S 数据表(PDF) 63 Page - STMicroelectronics

部件名 STM8S
功能描述  STM8S Series and STM8AF Series 8-bit microcontrollers
PDF  467 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
制造商  STMICROELECTRONICS [STMicroelectronics]
网页  http://www.st.com
标志 STMICROELECTRONICS - STMicroelectronics

STM8S 数据表(HTML) 63 Page - STMicroelectronics

Back Button STM8S Datasheet HTML 59Page - STMicroelectronics STM8S Datasheet HTML 60Page - STMicroelectronics STM8S Datasheet HTML 61Page - STMicroelectronics STM8S Datasheet HTML 62Page - STMicroelectronics STM8S Datasheet HTML 63Page - STMicroelectronics STM8S Datasheet HTML 64Page - STMicroelectronics STM8S Datasheet HTML 65Page - STMicroelectronics STM8S Datasheet HTML 66Page - STMicroelectronics STM8S Datasheet HTML 67Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 63 / 467 page
background image
DocID14587 Rev 14
63/467
RM0016
Interrupt controller (ITC)
72
Maskable interrupt sources
Maskable interrupt vector sources are serviced if the corresponding interrupt is enabled and
if its own interrupt software priority in ITC_SPRx registers is higher than the one currently
being serviced (I1 and I0 in CCR register). If one of these two conditions is not met, the
interrupt is latched and remains pending.
External interrupts
External interrupts can be used to wake up the MCU from Halt mode. The device
sensitivity to external interrupts can be selected by software through the External
Interrupt Control registers (EXTI_CRx).
When several input pins connected to the same interrupt line are selected
simultaneously, they are logically ORed.
When external level-triggered interrupts are latched, if the given level is still present at
the end of the interrupt routine, the interrupt remains activated except if it has been
inactivated in the routine.
Peripheral interrupts
Most peripheral interrupts cause the MCU to wake up from Halt mode. See the interrupt
vector table in the datasheet.
A peripheral interrupt occurs when a specific flag is set in the peripheral status register
and the corresponding enable bit is set in the peripheral control register.
The standard sequence for clearing a peripheral interrupt performs an access to the
status register followed by a read or write to an associated register. The clearing
sequence resets the internal latch. A pending interrupt (that is an interrupt waiting to be
serviced) is therefore lost when the clear sequence is executed.
6.3
Interrupts and low power modes
All interrupts allow the processor to exit from Wait mode.
Only external and other specific interrupts allow the processor to exit from Halt and Active-
halt mode (see wakeup from halt and wakeup from Active-halt in the interrupt vector table in
the datasheet).
When several pending interrupts are present while waking up from Halt mode, the first
interrupt serviced can only be an interrupt with exit-from-Halt mode capability. It is selected
through the decision process shown in Figure 14. If the highest priority pending interrupt
cannot wake up the device from Halt mode, it will be serviced next.
If any internal or external interrupt (from a timer for example) occurs while the HALT
instruction is executing, the HALT instruction is completed but the interrupt invokes the
wakeup process immediately after the HALT instruction has finished executing. In this case
the MCU is actually waking up from Halt mode to Run mode, with the corresponding delay
of tWUH as specified in the datasheet.
6.4
Activation level/low power mode control
The MCU activation level is configured by programming the AL bit in the CFG_GCR register
(see global configuration register (CFG_GCR)).
This bit is used to control the low power modes of the MCU. In very low power applications,
the MCU spends most of the time in WFI and is woken up (through interrupts) at specific



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


数据表 下载

Go To PDF Page


链接网址



ALLDATASHEET是否为您带来帮助?  [ DONATE ] 

关于 Alldatasheet   |   广告服务   |   联系我们   |   隐私政策   |   数据表链接    |   链接交换   |   制造商名单
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