Skip to main content
zheleznjakov
Associate II
December 12, 2010
Question

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

  • December 12, 2010
  • 2 replies
  • 1645 views
Posted on December 12, 2010 at 12:45

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

    This topic has been closed for replies.

    2 replies

    fggnrc2
    Associate III
    May 17, 2011
    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

    zheleznjakov
    Associate II
    May 17, 2011
    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: (