1724 views|9 replies

76

Posts

1

Resources
The OP
 

It's over, it's over, it can't be completed. The STM32F103 generates a square wave with a pulse width of 1us to 80us. Is it not possible? [Copy link]

STM32F103 generates a square wave with a pulse width of 1us to 80us. Is it not possible? Is it better to use CPLD or FPGA?

This post is from MCU

Latest reply

Only PWM can be used. I don't know how high your adjustment accuracy is. If the accuracy is too high, there may be problems.   Details Published on 2024-7-29 13:56
 

6063

Posts

4

Resources
2
 
This post was last edited by damiaa on 2022-11-20 22:06

The stm32 GPIO flip can reach 50MHz.

CPU speed, the maximum CPU speed is 72mhz .

You just asked for 1M~12.5k. There shouldn't be any problem.

This can be achieved using a timer interrupt.

This post is from MCU

Comments

The timer may not work, PWM should be better. The 72M MCU has used 10uS timing to make things, which is not reliable.  Details Published on 2022-11-21 08:55
 
 

9702

Posts

24

Resources
3
 

It should be fine. Is your 1-80us adjustable? Is it the same frequency but different duty cycle, or the same duty cycle but different frequency?

This post is from MCU
 
 
 

2865

Posts

4

Resources
4
 
damiaa posted on 2022-11-20 22:02 The stm32 GPIO flip can reach 50MHz. The speed of the cpu, the maximum speed of the CPU is 72mhz. You are asking for 1M~12.5k. Should...

The timer may not work, PWM should be better. The 72M MCU has used 10uS timing to make things, which is not reliable.

This post is from MCU
 
 
 

6744

Posts

2

Resources
5
 

There should be no problem with the STM32F103 outputting 1us.

This post is from MCU
 
 
 

6027

Posts

6

Resources
6
 

The microcontroller has tried to output 1.28Mhz pwm, and the output of 1us should be OK

This post is from MCU
 
Personal signature

在爱好的道路上不断前进,在生活的迷雾中播撒光引

 
 

6821

Posts

11

Resources
7
 

Is there something wrong with the equipment that detects the waveform and it is not detecting it?

This post is from MCU
 
 
 

2928

Posts

0

Resources
8
 

There is no problem with all the way. The key words are crystal frequency and PWM.

This post is from MCU

Comments

I want to implement two paths.  Details Published on 2022-12-26 11:23
 
 
 

76

Posts

1

Resources
9
 
tagetage posted on 2022-11-21 11:25 If it's all the way, there is no problem at all. The key words are crystal frequency and PWM.

I want to implement two paths.

This post is from MCU
 
 
 

1024

Posts

0

Resources
10
 

Only PWM can be used. I don't know how high your adjustment accuracy is. If the accuracy is too high, there may be problems.

This post is from MCU
 
Personal signatureچوآن شـين
 
 

Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

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