2015-11-01 07:00 AM
Hello everyone,
I am using STM8S105 and STM8S003. Can we create delay 1 microsecond with TIMER4? I can create delay 1ms, 100us, 10us but can not for delay 1us. Can we? Thank you!2015-11-02 08:49 AM
Hello,
Use:void _delay_1us (void){ nop(); .. nop();}but the length of the delay each time you need to verify through an oscilloscope,because the instruction execution time in STM8 is unpredictable.After the TIM4 can not do this, for the same reason.