781 views|1 replies

26

Posts

0

Resources
The OP
 

【STM32F103ZET6】Evaluation of the timer module [Copy link]

I found a timer STM32 routine and found many errors after compiling, as shown below

And they are all of the same type, except that one bracket is missing.

After investigation, it was found that it was because ZET6 was a large capacity, so it was necessary to change the definition of the medium capacity STM32F10X_MD to the large capacity STM32F10X_HD in the compiler.

Then compile again and it will pass.

Based on the previous GPIO routine, we still use LED lights, plus a timer, to control the LED lights to flash.

The following is the initialization of the timer, which defines a timer with a period of 500ms.

Then use the timer interrupt to realize the flashing of LED

This will enable the LED to flash at 1Hz.

This post is from stm32/stm8

Latest reply

Timer setting is an important point, you need to be proficient in playing it   Details Published on 2023-10-5 09:55
 

1665

Posts

0

Resources
2
 

Timer setting is an important point, you need to be proficient in playing it

This post is from stm32/stm8
 
 

Guess Your Favourite
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