cancel
Showing results for 
Search instead for 
Did you mean: 

what is the number of cycles to meet the following command bit set and clear?

zheleznjakov
Associate II
Posted on December 12, 2010 at 12:45

what is the number of cycles to meet the following command bit set and clear?

2 REPLIES 2
zheleznjakov
Associate II
Posted on May 17, 2011 at 15:11

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: (

fggnrc2
Associate II
Posted on May 17, 2011 at 15:11

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