| Electronic Components Datasheet Search |
|
SH89F52P/044PR Datasheet(PDF) 56 Page - SINOWEALTH Electronic Ltd |
|
|
|||||||||||||||||||||||||||||
SH89F52P/044PR Datasheet(HTML) 56 Page - SINOWEALTH Electronic Ltd |
|
56 / 105 page ![]() SH88F516(SH88F54/SH89F52) 56 8.9.9 External Interrupt Inputs The SH88F516 has 3 external interrupt inputs. External interrupt0-1 each has one vector address, External interrupt 4 has 8 inputs sharing an interrupt vector address. External interrupt0-1 can be programmed to be level-triggered or edge-triggered by clearing or setting bit IT1 or IT0 in TCON register. If ITx = 0 (x = 0, 1), external interrupt INTx (x = 0, 1) is triggered by a low level detected. If ITx = 1 (x = 0, 1), external interrupt INTx (x = 0, 1) is edge triggered. In this mode if consecutive samples of the INTx (x = 0, 1)pin show a high level in one cycle and a low level in the next cycle, interrupt request flag in register TCON is set, causing an interrupt request. Since the external interrupt pins are sampled once each machine cycle, an input high or low level should be held for at least one machine cycle to ensure proper sampling. If the external interrupt is edge-triggered, the external source has to hold the request pin high for at least one machine cycle, and then hold it low for at least one machine cycle. This is to ensure that the transition is detected and that interrupt request flag is set. Notice that IE0-1 is automatically cleared by CPU when the service routine is called. If the external interrupt is level-triggered, the external source must hold the request active until the requested interrupt is generated, which will take 2 machine cycles. If the external interrupt is still valid when the interrupt service routine is completed, another interrupt will be generated. It is not necessary to clear the interrupt flag IEx (x = 0, 1), when the interrupt is triggered by level, it simply tracks the input pin level. External interrupt4 has more interrupt trigger modes than INT0/1, operation is similar to INT0/1. If an external interrupt is enabled when the SH88F516 is put into Power down or Idle mode, the interrupt occurrence will cause the processor to wake up and resume operation. (Refer to "Power Management" section for details) Note: IE0-1 is automatically cleared by hardware when the service routine is called while IF40-47 should be cleared by software. >1 system clock >1 system clcok >2 system clcok High-Level Threshold Low-Level Threshold Low-Level Threshold 8.9.10 Interrupt Summary Source Vector Address Enable bits Flag bits Polling Priority Interrupt number(C51) Reset 0000h 0 (highest) - INT0 0003h EX0 IE0 1 0 Timer0 000Bh ET0 TF0 2 1 INT1 0013h EX1 IE1 3 2 Timer1 001Bh ET1 TF1 4 3 EUART0 0023h ES0 RI+TI 5 4 Timer2 002Bh ET2 TF2+EXF2 6 5 ADC 0033h EADC ADCIF 7 6 SPI 003Bh ESPI SPIF 8 7 CMP0 0043h ECMP0 CMP0IF 9 8 EUART1 004Bh ES1 RI1+TI1 10 9 CMP1 0053h ECMP1 CMP1IF 11 10 SCM 005Bh ESCM SCMIF 12 11 PWM 0063h EPWM PWMIF 13 12 INT4 006Bh EX4 IF47-40 14 13 LPD 0073h ELPD LPDF 15 (lowest) 14 |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List 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 |