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

X  

ST9 датащи(PDF) 44 Page - STMicroelectronics

номер детали ST9
подробное описание детали  USER GUIDE
PDF  146 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
производитель  STMICROELECTRONICS [STMicroelectronics]
домашняя страница  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

ST9 датащи(HTML) 44 Page - STMicroelectronics

Back Button ST9 Datasheet HTML 40Page - STMicroelectronics ST9 Datasheet HTML 41Page - STMicroelectronics ST9 Datasheet HTML 42Page - STMicroelectronics ST9 Datasheet HTML 43Page - STMicroelectronics ST9 Datasheet HTML 44Page - STMicroelectronics ST9 Datasheet HTML 45Page - STMicroelectronics ST9 Datasheet HTML 46Page - STMicroelectronics ST9 Datasheet HTML 47Page - STMicroelectronics ST9 Datasheet HTML 48Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 44 / 146 page
background image
44/146
ST9 USER GUIDE
T0_IVR (R242 page 9)
Where V4-V0 (fixed by software) are the high bits of the low byte address memory where the
vector for the first interrupt cause is located. Since there are three different interrupt causes,
and the address of each interrupt service routine occupies two bytes, the IVR must be loaded
with an address between 8 and 250 that is a multiple of 8 (i.e. the lower three bits are zero).
The layout above shows two bits W1 and W0 (fixed by hardware), and a third bit that is per-
manently set to zero. The two W1-W0 bits code four different possible interrupt causes, as in
the following table:
When an interrupt occurs, the resulting value is an address that is the value written in IVR
(here 40H), plus the value coded by the cause (if the cause is a capture event, W1-W0 are 10,
thus the value is 4).
This gives an even number, since the least significant bit is zero, as follows:
So IVR points to address XX 0044H (with XX the ISR segment number), which must contain
a word that is equal to the address in the ISR segment of the Interrupt Service Routine for that
cause.
An example of the code for setting the IVR is:
void ConfigTimer0 ( void )
{
/* setting other registers... */
SelectPage (T0C_PG) ;
T0_IVR = (unsigned char)INTRELOADVECT ;/* Array of pointers to service
routines in ROM */
/* setting other registers, continued... */
}
V4
V3
V2
V1
V0
W1
W0
'0'
W1
W0
Interrupt Source
0
0
Overflow/ Underflow event interrupts
0
1
Not available
1
0
Capture event interrupts
1
1
Compare event interrupts
V4
V3
V2
V1
V0
W1
W0
0
0
1000
100



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


ссылки 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