| поискавой системы для электроныых деталей |
|
SN8P1602AS датащи(PDF) 70 Page - SONiX Technology Company |
|
|
|||||||||||||||||||||||||||||
SN8P1602AS датащи(HTML) 70 Page - SONiX Technology Company |
|
70 / 94 page ![]() SN8P1600 8-bit micro-controller SONiX TECHNOLOGY CO., LTD Page 70 Revision 1.94 MULTI-INTERRUPT OPERATION In almost conditions, the software designer uses more than one interrupt requests. Processing multi-interrupt request needs to set the priority of these interrupt requests. The IRQ flags of interrupts are controlled by the interrupt event. But the IRQ flag “1” doesn’t mean the system to execute the interrupt vector. The IRQ flags can be set “1” by the events without interrupt enable. Just only any the event occurs and the IRQ will be logic “1”. The IRQ and its trigger event relationship is as the below table. Interrupt Name Trigger Event Description P00IRQ P0.0 trigger. OTP is falling edge. TC0IRQ TC0C overflow. (SN8P1602/1603) TC1IRQ TC1C overflow. (SN8P1604) There are two works need to do for multi-interrupt conditions. One is to make a good priority for these interrupt requests. Two is using IEN and IRQ flags to decide executing interrupt service routine or not. Users have to check interrupt control bit and interrupt request flag in interrupt vector. There is a simple routine as following. Example: How do users check the interrupt request in multi-interrupt situation? ORG 8 ; Interrupt vector B0XCH A, ACCBUF ; Store ACC value. B0MOV A, PFLAG ; Store PFLAG value B0MOV PFLAGBUF,A INTP00CHK: ; Check INT0 interrupt request B0BTS1 FP00IEN ; Check P00IEN JMP INTTC0CHK ; Jump check to next interrupt B0BTS0 FP00IRQ ; Check P00IRQ JMP INTP00 ; Jump to INT0 interrupt service routine INTTC0CHK: ; Check TC0 interrupt request B0BTS1 FTC0IEN ; Check TC0IEN JMP INT_EXIT ; Jump to exit of IRQ B0BTS0 FTC0IRQ ; Check TC0IRQ JMP INTTC0 ; Jump to TC0 interrupt service routine INT_EXIT: B0MOV A, PFLAGBUF ; Restore PFLAG value B0MOV PFLAG,A B0XCH A, ACCBUF ; Restore ACC value. RETI ; Exit interrupt vector |
|
ссылки 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 |