| 数据搜索系统,热门电子元器件搜索 |
|
STR720 数据表(PDF) 58 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
STR720 数据表(HTML) 58 Page - STMicroelectronics |
|
58 / 401 page ![]() STR720 - ENHANCED INTERRUPT CONTROLLER (EIC) 58/401 Current Interrupt Priority Register (CIPR) Address Offset: 08h Reset value: 0000 0000h The CIP Register reports the priority value of the interrupt currently serviced. There are 16 possible priority values (0 to 15), so the significant register bits are only four (3 down to 0). After reset, the CIP value is set to ‘0’ and is updated by the EIC logic only after the processor has started servicing a valid IRQ interrupt request. To make this happen, some EIC registers must be set as in the following: • ICR IRQ_EN =1 (to have the nIRQ signal set) • IER not all 0 (at least one interrupt channel must be enabled) • among the interrupt channels enabled by the IER register, at least one must have the SIPL field, of the related SIR register, not set to 0, because the EIC generates a processor interrupt request (asserting the IRQ line) ONLY IF it detects an enabled interrupt request whose priority value is bigger than the CIPR (Current Interrupt Priority Register) value. When the IRQ line is set, the processor will read the EIC IVR (Interrupt Vector Register), and this read operation will advise the EIC logic that the ISR (Interrupt Service Routine) has been initiated and the CIPR register can be properly updated. The CIPR value can be modified by the processor, to promote a running ISR to a higher level: the EIC logic will allow a write to the CIP field of any value bigger, or equal, than the priority value associated to the interrupt channel currently serviced. E.g.: suppose the IRQ signal is set because of an enabled interrupt request on channel #4, whose priority value is 7 (i.e. SIPL of SIR7 is 7); after the processor read of IVR register, the EIC will load the CIP field with 7. Until the interrupt service procedure will be completed, writes of values 7 up to 15 will be allowed, while attempts to modify the CIP content with priority lower than 7 will have no effect. Bit 31:4 = Reserved. Bit 3:0 = CIP[3:0]: Current Interrupt Priority. Priority value of the interrupt whose service routine is currently in execution phase. 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 reserved - 15 14 13 12 11 10 9 8 765432 1 0 reserved CIP[3:0] -rw 1 |
|
链接网址 |
| ALLDATASHEET是否为您带来帮助? [ DONATE ] |
关于 Alldatasheet | 广告服务 | 联系我们 | 隐私政策 | 数据表链接 | 链接交换 | 制造商名单 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 |