| 전자부품 데이터시트 검색엔진 |
|
TMP47P201 데이터시트(PDF) 18 Page - Toshiba Semiconductor |
|
|
|||||||||||||||||||||||||||||
TMP47P201 데이터시트(HTML) 18 Page - Toshiba Semiconductor |
|
18 / 32 page ![]() 18/32 TOSHIBA CORPORATION TMP47C101/201 Example 1: To enable IOVF1, INT1, and INT2 interrupts. LD A,#0101B ; EIR ←0101 B XCH A,EIR EICLR IL,111111B ; EIF ←1 Example 2: To set the EIF to “1”, and to clear the inter- rupt latches except ITMR to “0”. EICLR IL,000010B ; EIF ←1, IL 0←0, IL2- IL5←0 2.8.2 Interrupt Processing An interrupt request is held until the interrupt is accepted or the IL is cleared by the reset of the interrupt latch operation instruction.The interrupt acknowledge processing is performed in 2 instruction cycles after the end of the current instruction execution (or after the timer/counter processing if any). The interrupt service program terminates upon execution of the interrupt return instruction [RETI]. The interrupt acknowledge processing consists of the fol- lowing sequence: The contents of the program counter and the flags are saved on the stack. The interrupt entry address corresponding to the inter- rupt source is set to the program counter. The status flag is set to “1”. The EIF is cleared to “0”, temporarily disabling the ac- ceptance of subsequent interrupts. The interrupt latch for the accepted interrupt source is cleared to “0”. The instruction stored at the interrupt entry address is executed. (Generally, in the program memory space at the interrupt entry address, the branch instruction to each interrupt processing program is stored.) Figure 2-22. Interrupt Timing Chart (Example) To perform the multi-interrupt, the EIF is set to “1” in the interrupt service program, and the acceptable interrupt source is selected by the EIR. However, for the INT1 interrupt, the interrupt service is disabled under software control be- cause it is not disabled by the EIR. Example: The INT1 interrupt service is disabled under software control (Bit 0 of RAM [05H] are as- signed to the disabling switch of interrupt ser- vice). PINT1: TEST 05H,0 ; Skips if RAM [05H] 0 is “1” B SINT1 RET1 SINT1: : The Interrupt return instruction [RETI] performs the follow- ing operations: Restores the contents of the program counter and the flags from the stack. Sets the EIF to “1” to provide the interrupt enable state again. |
|
링크 URL |
| 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 |