1707 views|0 replies

3180

Posts

0

Resources
The OP
 

STM32F407VET6 PWM mutual influence problem [Copy link]

Now the PWM wave comes out.

But when it was added to the large program, problems arose.

Large program code:

I added a timer 4, but the result was wrong.

Originally there was only this sentence TIM1_PWM_Init(1000-1,84-1);

There is no waveform. Add this sentence: TIM_SetCompare4(TIM1,250); and it will appear.

Then I block this sentence: //TIM_SetCompare4(TIM1,250);

The waveform is not there. But add TIM4_Int_Init(999,839);

There shouldn't be any, but the waveform appears anyway.

I just can't figure it out.

Timer 4 code:

Could you please tell me what's wrong? Thank you!

This post is from stm32/stm8
Personal signature为江山踏坏了乌骓马,为社稷拉断了宝雕弓。
 

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