| 전자부품 데이터시트 검색엔진 |
|
RM0312 데이터시트(PDF) 47 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
RM0312 데이터시트(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 |
|
링크 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 |