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

X  

EM6812F2TP24B 数据表(PDF) 68 Page - EM Microelectronic - MARIN SA

部件名 EM6812F2TP24B
功能描述  Ultra Low Power 8-bit FLASH Microcontroller
PDF  81 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
制造商  EMMICRO [EM Microelectronic - MARIN SA]
网页  http://www.emmicroelectronic.com
标志 EMMICRO - EM Microelectronic - MARIN SA

EM6812F2TP24B 数据表(HTML) 68 Page - EM Microelectronic - MARIN SA

Back Button EM6812F2TP24B Datasheet HTML 64Page - EM Microelectronic - MARIN SA EM6812F2TP24B Datasheet HTML 65Page - EM Microelectronic - MARIN SA EM6812F2TP24B Datasheet HTML 66Page - EM Microelectronic - MARIN SA EM6812F2TP24B Datasheet HTML 67Page - EM Microelectronic - MARIN SA EM6812F2TP24B Datasheet HTML 68Page - EM Microelectronic - MARIN SA EM6812F2TP24B Datasheet HTML 69Page - EM Microelectronic - MARIN SA EM6812F2TP24B Datasheet HTML 70Page - EM Microelectronic - MARIN SA EM6812F2TP24B Datasheet HTML 71Page - EM Microelectronic - MARIN SA EM6812F2TP24B Datasheet HTML 72Page - EM Microelectronic - MARIN SA Next Button
Zoom Inzoom in Zoom Outzoom out
 68 / 81 page
background image
R
EM6812
Copyright
© 2005, EM Microelectronic-Marin SA
68
www.emmicroelectronic.com
14.3
CPU Interrupt and Event handling
The CPU has three interrupt inputs of different priority. These inputs are directly connected to the peripheral interrupt
acquisition block. Each of these inputs has its own interrupt vector. Individual interrupt enabling mechanism is provided for
the 2 low priority inputs (IE1, IE2). The GIE acts as a master enable, if GIE is cleared no interrupt can reach the CPU, but
may still be stored in the interrupt acquisition block. If the hardware stack of the EM6812 is full, all interrupt inputs are
blocked. The number of implemented hardware stack levels is 4. Figure 39, CPU Interrupt architecture and Status register
shows the architectural details concerning the interrupt and event latching and its enabling mechanism.
Figure 39, CPU Interrupt architecture and Status register block
An interrupt from the peripheral acquisition block i.e. CPUInt2 is synchronized in the CPU interrupt latch and fed to the CPU
interrupt handler signal IN2 if enable bits IE2 and GIE are set and the hardware stack is not full.
Same thing applies to CPUInt1. CPUint0 is maskable only with GIE. As soon as the interrupt is latched, the GIE bit will be
automatically cleared to avoid interleaved interrupts. Reading the interrupt acquisition register will clear the pending
interrupt and at the end of the interrupt routine the RETI instruction will reinstall the GIE bit.
The CPU will loop in the interrupt routine as long as there is a CPU interrupt input active and the corresponding IE1,IE2 and
GIE are set. Refer to 14.2.2 for Interrupt acquisition Clearing.
An interrupt or Event will also clear the CPU Halt mode. The HALT mode disabling remains active as long as one of the
EV0, EV1, IN0, IN1, IN2 signals are set.
Before leaving the interrupt service routine one needs to clear the active IRQ aquisition bit (inside RegIntxx) and the
corresponding status bit (IN0, IN1, IN2) in the CoolRISC status register. Failure to do so will re-invoke the interrupt service
routine just after the preceeding RETI innstruction.
Software Interrupts and Events
The above shown CPU Interrupt handling implementation is an extension to the base structure and as such allows software
interrupts and software events to be written directly in the interrupt and event latches (write ‘1’ to CPU status register bit 0 to
4, signals status_e and status_in). Software written interrupts and events remain stored in the interrupt latch until they get
cleared again (write ‘0’ to status register bit 0 to bit 4).
The CPUEvent1 input is not used on the EM6812 and therefore reads always ‘0’ unless set by software.
The CPUEvent0 is connected to the Port A wake-up function (signal DebWakeUp), this event shows on EV0.
14.3.1 Interrupt priority
Interrupt priority is used only to select which interrupt will be processed when multiple interrupt requests occur
simultaneously. In such case the higher priority interrupt is handled first. At the end of the interrupt routine RETI the
processor will immediately go back into the interrupt routine to handle the next interrupt of highest priority.
If a high priority interrupt occurs while the CPU is treating a low priority interrupt, the pending interrupt must wait until the
GIE is enabled, usually by the RETI instruction.
HW stack not full
GIE
IE2
IE1
1
0
ck3
ck1
5
5
CPUInt0
CPUInt1
CPUInt2
CPUEvent0
(CPUEvent1=VSS)
(=DebWakeUp)
Status_e
Status_in[4:0]
interrupt and envent latch
5
5
IN2
IN1
IN0
EV0
EV1
CPU Status register
IE2
IE1
GIE
IN2
IN1
IN0
EV1
EV2
MSB
LSB
Mask
IRQ
status
Event
status



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


数据表 下载

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