STM32F7 11 Extended interrupts and events controller (EXTI)

  • 15 Replies
  • 343 Views
*

Offline tha

  • *****
  • 4992
    • View Profile
Re: STM32F7 11 Extended interrupts and events controller (EXTI)
« Reply #8 on: November 08, 2022, 01:38:54 pm »
11.8 External interrupt/event line mapping

มากถึง 168 GPIOs ถูกต่อเข้ากับ the 16 external interrupt/event lines ในวิธีต่อไปนี้:




แปด EXTI lines อื่นๆถูกต่อดังต่อไปนี้:
• EXTI line 16 ถูกต่อถึง the PVD output
• EXTI line 17 is connected to the RTC Alarm event
• EXTI line 18 is connected to the USB OTG FS Wakeup event
• EXTI line 19 is connected to the Ethernet Wakeup event
• EXTI line 20 is connected to the USB OTG HS (configured in FS) Wakeup event
• EXTI line 21 is connected to the RTC Tamper and TimeStamp events
• EXTI line 22 is connected to the RTC Wakeup event
• EXTI line 23 is connected to the LPTIM1 asynchronous event

*

Offline tha

  • *****
  • 4992
    • View Profile
Re: STM32F7 11 Extended interrupts and events controller (EXTI)
« Reply #9 on: November 08, 2022, 01:45:37 pm »
11.9 EXTI registers

ดูที่ Section 1.2 on page 62 สำหรับรายการตัวย่อที่ใช้ใน register descriptions.

11.9.1 Interrupt mask register (EXTI_IMR)

Address offset: 0x00
Reset value: 0x0000 0000



Bits 31:24 Reserved, must be kept at reset value.

Bits 23:0 IMx: Interrupt mask on line x
     0: Interrupt request จาก line x ถูกบัง
     1: Interrupt request จาก line x ไม่ถูกบัง

*

Offline tha

  • *****
  • 4992
    • View Profile
Re: STM32F7 11 Extended interrupts and events controller (EXTI)
« Reply #10 on: November 08, 2022, 01:49:30 pm »
11.9.2 Event mask register (EXTI_EMR)

Address offset: 0x04
Reset value: 0x0000 0000



Bits 31:24 Reserved, must be kept at reset value.

Bits 23:0 EMx: Event mask on line x
     0: Event request จาก line x ถูกบัง
     1: Event request จาก line x ไม่ถูกบัง

*

Offline tha

  • *****
  • 4992
    • View Profile
Re: STM32F7 11 Extended interrupts and events controller (EXTI)
« Reply #11 on: November 08, 2022, 02:27:21 pm »
11.9.3 Rising trigger selection register (EXTI_RTSR)

Address offset: 0x08
Reset value: 0x0000 0000



Bits 31:24 Reserved, must be kept at reset value.

Bits 23:0 TRx: Rising trigger event configuration bit of line x
     0: Rising trigger ถูกปิดใช้งาน (สำหรับ Event and Interrupt) สำหรับ input line
     1: Rising trigger ถูกเปิดใช้งาน (สำหรับ Event and Interrupt) สำหรับ input line

Note: The external wakeup lines ถูกทริกที่ขอบ, ต้องไม่มีความบกพร่องถูกสร้างบน lines เหล่านี้.  ถ้า a rising edge เกิดขึ้นบน the
          external interrupt line ในขณะที่เขียนไปยัง the EXTI_RTSR register, the pending bit จะถูกเซ็ต.

          Rising and falling edge triggers สามารถถูกเซ็ตสำหรับ the same interrupt line. ในการกำหนดค่านี้, ทั้งคู่จะสร้าง a
          trigger condition.

*

Offline tha

  • *****
  • 4992
    • View Profile
Re: STM32F7 11 Extended interrupts and events controller (EXTI)
« Reply #12 on: November 08, 2022, 02:35:34 pm »
11.9.4 Falling trigger selection register (EXTI_FTSR)

Address offset: 0x0C
Reset value: 0x0000 0000



Bits 31:24 Reserved, must be kept at reset value.

Bits 23:0 TRx: Falling trigger event configuration bit of line x
     0: Falling trigger ถูกปิดใช้งาน (สำหรับ Event and Interrupt) สำหรับ input line
     1: Falling trigger ถูกเปิดใช้งาน (สำหรับ Event and Interrupt) สำหรับ input line

Note: The external wakeup lines ถูกทริกที่ขอบ, ต้องไม่มีความบกพร่องถูกสร้างบน lines เหล่านี้.  ถ้า a falling edge เกิดขึ้นบน
          the external interrupt line ในขณะที่เขียนไปยัง the EXTI_FTSR register, the pending bit จะไม่ถูกเซ็ต.

          Rising and falling edge triggers สามารถถูกเซ็ตสำหรับ the same interrupt line. ในการกำหนดค่านี้, ทั้งคู่จะสร้าง a
          trigger condition.

*

Offline tha

  • *****
  • 4992
    • View Profile
Re: STM32F7 11 Extended interrupts and events controller (EXTI)
« Reply #13 on: November 08, 2022, 02:50:20 pm »
11.9.5 Software interrupt event register (EXTI_SWIER)

Address offset: 0x10
Reset value: 0x0000 0000



Bits 31:24 Reserved, must be kept at reset value.

Bits 23:0 SWIERx: Software Interrupt on line x
     ถ้า interrupt ถูกเปิดใช้งานบน line x ใน the EXTI_IMR register, การเขียน '1' ไปยัง SWIERx bit เมื่อมันถูกเซ็ตที่ '0' จะเซ็ต
     the corresponding pending bit ใน the EXTI_PR register, ดังนั้นส่งผลให้ an interrupt request generation.
     บิตนี้ถูกเคลียร์โดยการเคลียร์ the corresponding bit ใน EXTI_PR (โดยการเขียน a 1 ไปยัง the bit).

*

Offline tha

  • *****
  • 4992
    • View Profile
Re: STM32F7 11 Extended interrupts and events controller (EXTI)
« Reply #14 on: November 08, 2022, 02:57:36 pm »
11.9.6 Pending register (EXTI_PR)

Address offset: 0x14
Reset value: undefined



Bits 31:24 Reserved, must be kept at reset value.

Bits 23:0 PRx: Pending bit
     0: ไม่มี trigger request เกิดขึ้น
     1: trigger request ที่เลือกเกิดขึ้น
     บิตนี้ถูกเซ็ตเมื่อ the selected edge event มาถึงบน the external interrupt line.
     บิตนี้ถูกเคลียร์โดยการโปรแกรมมันเป็น ‘1’.

*

Offline tha

  • *****
  • 4992
    • View Profile
Re: STM32F7 11 Extended interrupts and events controller (EXTI)
« Reply #15 on: November 08, 2022, 03:02:26 pm »
11.9.7 EXTI register map

Table 45 ให้ the EXTI register map และ the reset values.



          ดูที่ Section 2.2.2 บนน้า 69 สำหรับ the register boundary addresses