1079 views|4 replies

7171

Posts

195

Resources
The OP
 

[STM32H5 development board] EXTI interrupt experiment [Copy link]

This post was last edited by Changjianze1 on 2023-5-5 22:18

The third STM32H5 EXTI test

First, let's confirm the pins needed for EXTI

I really can't find the schematic diagram, I can only read the introduction of Nucleo

PC13 for external EXTI pin

LED uses PF4 port

2. Introduction to EXTI

EXTI monitors the level flip signal of the specified GPIO port. When the level of the GPIO port flips (the rising edge, falling edge or both can be configured), EXTI sends an interrupt request to NVIC. After NVIC's decision, the MCU executes the interrupt program.

Look at the structure diagram of EXTI

Connection diagram of EXTI line

EXTI MUX selection

We use EXTI13 Line in this article

Three creation projects

Setting interrupt priority

I only have one systick interrupt here, so the interrupt priority doesn't matter, just set one at random

Let’s output the code below.

This is how the project is created.

You need to add some code below

Add a callback function in the main function, and the light will flip when the button is pressed.

Four test situations

I took a short video
STM32H5 EXTI

第三篇 STM32H5开发笔记之EXIT测试.pdf (998.72 KB, downloads: 1)
This post is from stm32/stm8

Latest reply

Please update faster... The core seems to be nothing.   Details Published on 2023-5-9 19:13
 

6570

Posts

0

Resources
2
 

The development board EXTI interrupt experimental test is generally done once, which is the basic work of the development board test

This post is from stm32/stm8
 
 

224

Posts

0

Resources
3
 

Familiar MDK-ARM / CubeMX

H5 seems to be quite new, what’s so special about it?

This post is from stm32/stm8

Comments

Please update faster... The core seems to be nothing.  Details Published on 2023-5-10 15:00
Please update faster... The core seems to be nothing.  Details Published on 2023-5-9 19:13
 
 

7422

Posts

2

Resources
4
 
starcat123 posted on 2023-5-9 16:26 The familiar MDK-ARM / CubeMX H5 seems quite new, what is so special about it?

Please update faster... The core seems to be nothing.

This post is from stm32/stm8
 
Personal signature

默认摸鱼,再摸鱼。2022、9、28

 
 

7171

Posts

195

Resources
5
 
starcat123 posted on 2023-5-9 16:26 The familiar MDK-ARM / CubeMX H5 seems quite new, what is so special about it?

At present, it seems that the trustzone M33 belt

The main frequency is higher than M4. The internal clock is higher.

This post is from stm32/stm8
 
 
 

Guess Your Favourite
Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list