2020-08-14 03:43 AM
I am working on a project with the STM8S003F3. I need to configure the TIM1 to generate the following digital output signal on PC3:
1. Turn PC3 output to High state immediately (<1us) when signal on PC4 input goes Low.
2. After PC4 input signal goes High, wait 25us and then turn PC3 output to Low state.
PC4 input ----------|__________|-----------------------------------------------
PC3 outp. _______|---------------|-------25us------------|_____________
I want to generate this signal without using interrupts and code, just by configuring the timers and the hardware must do the work without code.
I thought using a complementary output with 25us deadtime would be OK and instead of an internal clock signal I would use the external signal from PC3? Is this possible?