поискавой системы для электроныых деталей
  Russian  ▼
ALLDATASHEETRU.COM

X  

COP888EB датащи(PDF) 40 Page - National Semiconductor (TI)

[Old version datasheet] Texas Instruments acquired National semiconductor.
номер детали COP888EB
подробное описание детали  8-Bit CMOS ROM Based Microcontrollers with 8k Memory, CAN Interface, 8-Bit A/D, and USART
PDF  75 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
производитель  NSC [National Semiconductor (TI)]
домашняя страница  http://www.national.com
Logo NSC - National Semiconductor (TI)

COP888EB датащи(HTML) 40 Page - National Semiconductor (TI)

Back Button COP888EB Datasheet HTML 36Page - National Semiconductor (TI) COP888EB Datasheet HTML 37Page - National Semiconductor (TI) COP888EB Datasheet HTML 38Page - National Semiconductor (TI) COP888EB Datasheet HTML 39Page - National Semiconductor (TI) COP888EB Datasheet HTML 40Page - National Semiconductor (TI) COP888EB Datasheet HTML 41Page - National Semiconductor (TI) COP888EB Datasheet HTML 42Page - National Semiconductor (TI) COP888EB Datasheet HTML 43Page - National Semiconductor (TI) COP888EB Datasheet HTML 44Page - National Semiconductor (TI) Next Button
Zoom Inzoom in Zoom Outzoom out
 40 / 75 page
background image
Interrupts (Continued)
ample, if the Software Trap routine is located at 0310 Hex,
then the vector location 0yFE and -0yFF should contain the
data 03 and 10 Hex, respectively. When a Software Trap in-
terrupt occurs and the VIS instruction is executed, the pro-
gram jumps to the address specified in the vector table.
The interrupt sources in the vector table are listed in order of
rank, from highest to lowest priority. If two or more enabled
and pending interrupts are detected at the same time, the
one with the highest priority is serviced first. Upon return
from the interrupt service routine, the next highest-level
pending interrupt is serviced.
If the VIS instruction is executed, but no interrupts are en-
abled and pending, the lowest-priority interrupt vector is
used, and a jump is made to the corresponding address in
the vector table. This is an unusual occurrence, and may be
the result of an error. It can legitimately result from a change
in the enable bits or pending flags prior to the execution of
the VIS instruction, such as executing a single cycle instruc-
tion which clears an enable flag at the same time that the
pending flag is set. It can also result, however, from inadvert-
ent execution of the VIS command outside of the context of
an interrupt.
The default VIS interrupt vector can be useful for applica-
tions in which time critical interrupts can occur during the
servicing of another interrupt. Rather than restoring the pro-
gram context (A, B, X, etc.) and executing the RETI instruc-
tion, an interrupt service routine can be terminated by return-
ing to the VIS instruction. In this case, interrupts will be
serviced in turn until no further interrupts are pending and
the default VIS routine is started. After testing the GIE bit to
ensure that execution is not erroneous, the routine should
restore the program context and execute the RETI to return
to the interrupted program.
This technique can save up to fifty instruction cycles (t
c), or
more, (50 µs at 10 MHz oscillator) of latency for pending in-
terrupts with a penalty of fewer than ten instruction cycles if
no further interrupts are pending.
To ensure reliable operation, the user should always use the
VIS instruction to determine the source of an interrupt. Al-
though it is possible to poll the pending bits to detect the
source of an interrupt, this practice is not recommended. The
use of polling allows the standard arbitration ranking to be al-
tered, but the reliability of the interrupt system is compro-
mised. The polling routine must individually test the enable
and pending bits of each maskable interrupt. If a Software
Trap interrupt should occur, it will be serviced last, even
though it should have the highest priority. Under certain con-
ditions, a Software Trap could be triggered but not serviced,
resulting in an inadvertent “locking out” of all maskable inter-
rupts by the Software Trap pending flag. Problems such as
this can be avoided by using VIS instruction.
TABLE 10. Interrupt Vector Table
Arbitration Rank
Interrupt Source
Description
Vector Address
1
Software Trap
INTR Instruction
0yFE–0yFF
2
reserved
NMI
0yFC–0yFD
3
CAN Receive
RBF, RFV set
0yFA–0yFB
4
CAN Error
TERR, RERR set
0yF8–0yF9
(transmit/receive)
5
CAN Transmit
TBE set
0yF6–0yF7
6
Pin G0 Edge
External
0yF4–0yF5
7
MICROWIRE/PLUS
BUSY Goes Low
0yF2–0yF3
SPI Interface
SRBF or STBE set
8
Timer T0
Idle Timer Underflow
0yF0–0yF1
9
UART
receive buffer full
0yEE–0yEF
10
UART
transmit buffer empty
0yEC–0yED
11
Timer T2
T2A/Underflow
0yEA–0yEB
12
Timer T2
T2B
0yE8–0yE9
13
Timer T1
T1A/Underflow
0yE6–0yE7
14
Timer T1
T1B
0yE4–0yE5
15
Port L, Port M;
Port L Edge or
0yE2–0yE3
MIWU
Port M Edge
16
Default VIS Interrupt
VIS Interrupt
0yE0–0yE1
Note 27: y is a variable which represents the VIS block. VIS and the vector table must be located in the same 256-byte block except if VIS is located at the last ad-
dress of a block. In this case, the table must be in the next block.
www.national.com
40



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


датащи скачать

Go To PDF Page


ссылки URL



Вашему бизинису помогли Аллдатащит?  [ DONATE ] 

Что такое Аллдатащит   |   реклама   |   контакт   |   Конфиденциальность   |   Ссылка на техническое описание    |   обмен ссыками   |   поиск по производителю
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