| Os motores de busca de Datasheet de Componentes eletrônicos |
|
RM0312 Folha de dados(PDF) 47 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
RM0312 Folha de dados(HTML) 47 Page - STMicroelectronics |
|
47 / 275 page ![]() DocID022352 Rev 3 47/275 RM0312 Interrupt controller (ITC) 55 5.6 External interrupts Ten interrupt vectors are dedicated to external Interrupt events: • EXTIB - 8 lines on Port B: PB[7:0] • EXTID - 8 lines on Port D: PD[7:0] • EXTI0 - 4 lines on Port A/B/C/D, bit 0: Px[0] • EXTI1 - 3 lines on Port A/B/D • EXTI2 - 3 lines on Port A/B/D • EXTI3 - 3 lines on Port A/B/D • EXTI4 - 3 lines on Port A/B/D • EXTI5 - 2 lines on Port B/D • EXTI6 - 3 lines on Port A/B/D • EXTI7 - 3 lines on Port A/B/D To generate an interrupt, the corresponding GPIO port must be configured in input mode with interrupts enabled. Refer to the register description in the GPIO chapter for details. When an external interrupt occurs, the corresponding bit is set in the EXTI_SRx status register. This indicates a pending interrupt. Clearing this bit, writing a 1 in it, clears the corresponding pending external interrupt. The interrupt sensitivity must be configured in the external interrupt control register 1 (EXTI_CR1), external interrupt control register 2 (EXTI_CR2), and external interrupt control register 3 (EXTI_CR3) (see Section 5.9.5, Section 5.9.6 and Section 5.9.7). 5.7 Interrupt instructions Table 12 shows the interrupt instructions. Table 11. External interrupt sensitivity GPIO port Interrupt sensitivity Configuration register EXTI0 to EXTI3 on port A, B, C and D Falling edge and low level Rising edge only Falling edge only Rising and falling edge EXTI_CR1 EXTI4 to EXTI7 of port A, B, C and D EXTI_CR2 EXTIB and EXTID EXTI_CR3 Table 12. Dedicated interrupt instruction set Instruction New description Function/example I1 H I0 N Z C HALT Entering Halt mode 1 0 IRET Interrupt routine return Pop CCR, A, X, Y, PC I1 H I0 N Z C JRM Jump if I1:0=11 (level 3) I1:0=11 ? JRNM Jump if I1:0<>11 I1:0<>11 ? POP CC Pop CCR from the stack Memory => CCR I1 H I0 N Z C PUSH CC Push CC on the stack CC =>Memory |
|
Ligação URL |
| ALLDATASHEET é útil para você? [ DONATE ] |
Sobre Alldatasheet | Publicidade | Contato conosco | Privacy Policy | Link para a ficha técnica | roca de Link | Lista de Fabricantes 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 |