2003 views|2 replies

9

Posts

0

Resources
The OP
 

Can STM32F1 achieve interruption when connected to a 5V rated rotary encoder? [Newbie help] [Copy link]

I'm currently learning about the external interrupts of stm32 and using a rotary encoder as the interrupt source. However, I only have a 5 volt rated rotary encoder and after encoding I found that it failed. Is this a hardware problem?

This post is from stm32/stm8

Latest reply

Also try capture mode.   Details Published on 2022-3-14 22:24
 

4005

Posts

0

Resources
2
 

First, connect an oscilloscope to check the waveforms and see if there are two signals. Set the IO port to input pull-up. If it is not connected to a microcontroller, a resistor must be connected.

It is best to use the encoder mode of the timer, and do not use external interrupts, which will not respond well.

This post is from stm32/stm8
 
 

7462

Posts

2

Resources
3
 

Also try capture mode.

This post is from stm32/stm8
 
Personal signature

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

 

Guess Your Favourite
Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

Featured Posts
Huawei Telecom Basic Knowledge Question Bank

Basic Telecommunications Knowledge Question Bank (The following questions can be asked in the form of fill-in-the-blank, ...

Hardware Design Manual

Hardware Design Manual

MATLAB APP Designer serial port debugging tool writing

This post was last edited by lb8820265 on 2019-5-9 23:11 Previously, we introduced two ways to use VC6 to make serial ...

MSP430 standby power consumption problem

Recently, due to project reasons, I used TI's MSP430F149 microcontroller. During the use, I encountered some problems wi ...

Video explains the triggering modes of oscilloscopes and what they mean

The principle and usage of each trigger mode are explained in the form of video, including edge trigger, pulse width tri ...

ssd1306 Chinese and picture display

This post was last edited by lemon1394 on 2021-8-17 23:19 I have found many Chinese displays of ssd1306 introduced on t ...

Embedded Qt-Control Hardware: Slide bar controls RGB lights

The previous articles introduced Qt routines, which are all hardware-independent and can run on both Windows and embed ...

Live broadcast of STM32 Global Conference at 10 am today [send development board and gifts]

With STM32, STMicroelectronics is committed to helping developers around the world build smarter, more connected and mor ...

What is the core technology in the battery management system of new energy vehicles?

Simply put, the core content of battery management is SOC (battery state of charge) and SOH (battery state of health). ...

XD08M3232 is a domestically produced 8-bit high-performance Flash proximity sensing microcontroller with an enhanced 1T8051 core.

XD08M3232 is a domestically produced 8-bit high-performance Flash proximity sensing microcontroller with an enhanced 1T8 ...

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