| Electronic Components Datasheet Search |
|
SH79F6488P/080PR Datasheet(PDF) 70 Page - SINOWEALTH Electronic Ltd |
|
|
|||||||||||||||||||||||||||||
SH79F6488P/080PR Datasheet(HTML) 70 Page - SINOWEALTH Electronic Ltd |
|
70 / 152 page ![]() SH79F6488/SH79F6489 70 7.10.9 External Interrupt Inputs The SH79F6488/SH79F6489 has 5 external interrupt inputs. External interrupt0-3 each has one vector address. External interrupt 4 has 7 inputs; all of them share one vector address. These external interrupts can be programmed to be level-triggered or edge-triggered by clearing or setting bit IT1 or IT0 in register TCON and register EXF1. If ITn = 0 (n = 0 - 1), external interrupt 0/1 is triggered by a low level detected at the INT0/1 pin. If ITn = 1 (n = 0 - 1), external interrupt 0/1 is edge triggered. In this mode if consecutive samples of the INT0/1 pin show a high level in one cycle and a low level in the next cycle, interrupt request flag in register r EXF1 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 while IF4x should be cleared by software. External interrupt4 operates in the similar ways except have different registers and have more selection of trigger. 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 asserted 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, 2, 3) when the interrupt is level sensitive, it simply tracks the input pin level. If an external interrupt is enabled when the SH79F6488/SH79F6489 is put into Power down or Idle mode, the interrupt occurrence will cause the processor to wake up and resume operation. Note: IE0-3 is automatically cleared by CPU when the service routine is called while IF40-47 should be cleared by software. 1 Machine Cyle >1 Machine Cycle High-Level Threshold Low-Level Threshold Low-Level Threshold >2 Machine Cycle External Interrupt Detecting 7.10.10 Interrupt Summary Source Vector Address Enable bits Flag bits Polling Priority Interrupt No. (C51) Reset 0000H - - 0 (higest) - INT0 0003H EX0 IE0 1 0 Timer4 000BH ET4 TF4 2 1 INT1 0013H EX1 IE1 3 2 Timer3 001BH ET3 TF3 4 3 EUART 0023H ES RI+TI 5 4 Timer2 002BH ET2 TF2+EXF2 6 5 ADC 0033H EADC ADCIF 7 6 SPI 003BH ESPI SPIF 8 7 INT2 0043H EX2 IE2 9 8 INT3 004BH EX3 IE3 10 9 INT4 0053H EX4+IENC IF45-40 11 10 USB (for 6489) 005BH EUSB Refers to the USB 12(6489) 11 PWM 0063H EPWM+PWM0/1/2IE PWM0/1/2IF 12(6488)/13(6489) 12 BaseTimer 006BH EBT BTIF 13(6488)/14(6489) 13 SCM 0073H ESCM SCMIF 14(6488)/15(6489) (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 |