| поискавой системы для электроныых деталей |
|
ST9 датащи(PDF) 44 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
ST9 датащи(HTML) 44 Page - STMicroelectronics |
|
44 / 146 page ![]() 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 |
|
ссылки URL |
| Вашему бизинису помогли Аллдатащит? [ DONATE ] |
Что такое Аллдатащит | реклама | контакт | Конфиденциальность | Ссылка на техническое описание | обмен ссыками | поиск по производителю All Rights Reserved©Alldatasheet.com |
| 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 |