cancel
Showing results for 
Search instead for 
Did you mean: 

Turns itself PWM on STM32F030F4

valik mahrov
Associate II
Posted on April 27, 2018 at 07:49

Hello. Dear forum users, help to understand the problem of the incorrect operation of the PWM control program. I'm writing on HAL in KEIL v5 environment, the signals are monitored by the analyzer. The problem is this: I generate the bursts of pulses with the help of PWM (for IR-diode) _ has set the TIM14 (PWM) and TIM16 (pulse length) timer, the number of pulses and pauses by logic. At start-up, pulses and pauses (fuzzy errors) are formed not of the same duration, but the PWM (see Fig.) Is also switched on during the pause. I'm applying a picture from the analyzer: the upper pulses are the output from port A0, so to say the additional transmission control to the infrared. Originally planned to do this on IRTIM when receiving from UART (it is very necessary) but there does not start at all. For a long time I am suffering and I can not write to the forum, I tried to transfer the code to stm32f103c8t6, too, I ask not to kick stm, I recently do it - before this spike). The code is below (only the form packs and with the button on port A6). I understand that somewhere my jamb, but where? Thank you in advance.

4 REPLIES 4
valik mahrov
Associate II
Posted on April 27, 2018 at 09:05

Who has the opportunity to check the previously installed code, or a complete stupor. Thank you.

valik mahrov
Associate II
Posted on June 12, 2018 at 11:58

Hello. Tried to write the same thing but on CMSIS and the result is the same. Turns on in the middle of PWM data transfer. If anyone knows what the problem can be, let me know. Thanks in advance. The code is visible from the bottom.

________________

Attachments :

Daikin.txt.zip : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006HxW1&d=%2Fa%2F0X0000000az8%2F6Qpb1IPMK12GS.9eYyXlY.Dr6mbVZzxoiDU9UoseZf4&asPdf=false
valik mahrov
Associate II
Posted on June 12, 2018 at 12:27

'

if you could, take a decent class on coding and go from there.' 

What did you mean?

Posted on June 12, 2018 at 12:12

'

If anyone knows what the problem can be, let me know.'

if you could, take a decent class on coding and go from there.