| 数据搜索系统,热门电子元器件搜索 |
|
UPSD323X 数据表(PDF) 39 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
UPSD323X 数据表(HTML) 39 Page - STMicroelectronics |
|
39 / 176 page ![]() 39/176 µPSD323X INTERRUPT SYSTEM There are interrupt requests from 10 sources as follows. s INT0 external interrupt s 2nd USART interrupt s Timer0 interrupt s I2C interrupt s INT1 external interrupt (or ADC interrupt) s DDC interrupt s Timer1 interrupt s USB interrupt s USART interrupt s Timer2 interrupt External Int0 s The INT0 can be either level-active or transition- active depending on Bit IT0 in register TCON. The flag that actually generates this interrupt is Bit IE0 in TCON. s When an external interrupt is generated, the corresponding request flag is cleared by the hardware when the service routine is vectored to only if the interrupt was transition activated. s If the interrupt was level activated then the interrupt request flag remains set until the requested interrupt is actually generated. Then it has to deactivate the request before the interrupt service routine is completed, or else another interrupt will be generated. Timer 0 and 1 Interrupts s Timer0 and Timer1 interrupts are generated by TF0 and TF1 which are set by an overflow of their respective Timer/Counter registers (except for Timer0 in Mode 3). s These flags are cleared by the internal hardware when the interrupt is serviced. Timer 2 Interrupt s Timer2 interrupt is generated by TF2 which is set by an overflow of Timer2. This flag has to be cleared by the software - not by hardware. s It is also generated by the T2EX signal (timer 2 external interrupt P1.1) which is controlled by EXEN2 and EXF2 Bits in the T2CON register. This is the definition of Timer 2 as per 90C320 definition. I2C Interrupt s The interrupt of the I 2C is generated by Bit INTR in the register S2STA. s This flag is cleared by hardware. External Int1 s The INT1 can be either level active or transition active depending on Bit IT1 in register TCON. The flag that actually generates this interrupt is Bit IE1 in TCON. s When an external interrupt is generated, the corresponding request flag is cleared by the hardware when the service routine is vectored to only if the interrupt was transition activated. s If the interrupt was level activated then the interrupt request flag remains set until the requested interrupt is actually generated. Then it has to deactivate the request before the interrupt service routine is completed, or else another interrupt will be generated. s The ADC can take over the External INT1 to generate an interrupt on conversion being completed DDC Interrupt s The DDC interrupt is generated either by Bit INTR in the S1STA register for DC2B protocol or by Bit DDC interrupt in the DDCCON register for DDC1 protocol or by Bit SWHINT Bit in the DDCCON register when DDC protocol is changed from DDC1 to DDC2. s Flags except the INTR have to be cleared by the software. INTR flag is cleared by hardware. USB Interrupt s The USB interrupt is generated when endpoint0 has transmitted a packet or received a packet, when endpoint1 or endpoint2 has transmitted a packet, when the suspend or resume state is detected and every EOP received. s When the USB interrupt is generated, the corresponding request flag must be cleared by software. The interrupt service routine will have to check the various USB registers to determine the source and clear the corresponding flag. s Please see the dedicated interrupt control registers for the USB peripheral for more information. |
|
链接网址 |
| 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 |