2020-07-01 02:18 PM
Hi All;
I am working on an STM32F429I timer (PWM-mode1) to obtain two signals then I want to use AND gate inside the program (the input is the two signals come from timer Ch1 &Ch2) and designate one pin to be the final output.
2020-07-02 07:35 AM
If you use the same timer for the compare toggles, you will be guaranteed synchronized generation.
2020-07-02 08:26 AM
is that ok
HAL_GPIO_WritePin(GPIOG,GPIO_PIN_9, ( HAL_GPIO_ReadPin(GPIOD, GPIO_PIN_5) && HAL_GPIO_ReadPin(GPIOC, GPIO_PIN_8))? GPIO_PIN_SET : GPIO_PIN_RESET);
2020-07-02 08:33 AM
I want to design the following signal ---->>>>
2020-07-02 08:35 AM
I want to design the following signal--->>>
2020-07-02 03:11 PM
Assuming your waveform is periodic, it's equivalent to starting the first pulse at t=0 and the second pulse at T=T/2. I'm sure you could manage that with two synchronized timers. Not sure about two channel within the same timer.
You could even keep the centers at 0.25T and 0.75T using center-aligned mode.
2020-07-03 04:39 AM
yes.
2020-07-03 11:33 AM
Do you have example about that
Thanks