All About Circuits

Digital Circuits

Microcontroller Principles


20 questions By Tony R. Kuphaldt

Page 3 of 7 0 of 20 answers revealed (0%)
  • Question 7 of 20

    Examine the following schematic diagram and program listing (written in “pseudocode” rather than a formal programming language) to determine what type of basic logic function is being implemented in this microcontroller unit:



    Pseudocode listing Declare Pin0 as an output

    Declare Pin1 and Pin2 as inputs

    LOOP

    IF Pin1 is LOW, set Pin0 HIGH

    ELSEIF Pin2 is LOW, set Pin0 HIGH

    ELSE set Pin0 LOW

    ENDIF

    ENDLOOP

    Reveal answer
  • Question 8 of 20

    Examine the following schematic diagram and program listing (written in “pseudocode” rather than a formal programming language) to determine what type of basic logic function is being implemented in this microcontroller unit:



    Pseudocode listing Declare Pin0 as an output

    Declare Pin1 and Pin2 as inputs

    LOOP

    IF Pin1 is HIGH, set Pin0 LOW

    ELSEIF Pin2 is HIGH, set Pin0 LOW

    ELSE set Pin0 HIGH

    ENDIF

    ENDLOOP

    Reveal answer
  • Question 9 of 20

    Examine the following schematic diagram and program listing (written in “pseudocode” rather than a formal programming language) to determine what type of basic logic function is being implemented in this microcontroller unit:



    Pseudocode listing Declare Pin0 as an output

    Declare Pin1 and Pin2 as inputs

    LOOP

    IF Pin1 is same as Pin2, set Pin0 LOW

    ELSE set Pin0 HIGH

    ENDIF

    ENDLOOP

    Reveal answer