2018-04-26 10:49 PM
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.
2018-04-27 12:05 AM
Who has the opportunity to check the previously installed code, or a complete stupor. Thank you.
2018-06-12 02:58 AM
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=false2018-06-12 03:27 AM
'
if you could, take a decent class on coding and go from there.'
What did you mean?
2018-06-12 05:12 AM
'
If anyone knows what the problem can be, let me know.'
if you could, take a decent class on coding and go from there.