2010-12-12 03:45 AM
what is the number of cycles to meet the following command bit set and clear?
2011-05-17 06:11 AM
Thank you for your reply.
I'm starting to get acquainted with the MCU STM8.
Therefore, these stupid questions.
Yes, also in English do not say: (
2011-05-17 06:11 AM
Hello Denis.
The STM8 core has an execution pipeline. Therefore, while it is executing an instruction, it's fetching the next one. An instruction pipeline speeds code execution but makes it difficult to measure how long an instruction takes to be executed. BRES and BSET instructions need two bus cycles, as you pointed out, but the second bus cycle may be done while the STM8 core executes an internal instruction (e.g. INCW X). So BRES and BSET instructions may take one or two clock cycles according to what follows them. Regards, EtaPhi