Start Setting PORTC bit 4 as an input Setting all bits PORTD as Output port Setting PORTB bit 5 as an output Insert valu
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
Start Setting PORTC bit 4 as an input Setting all bits PORTD as Output port Setting PORTB bit 5 as an output Insert valu
sentences so that the values in the register file can bemanipulated according to the
programmer's requirements. Based on this, answer the followingquestions:
(a) Convert the flowchart in FIGURE Q4(a) tothe appropriate Assembly Language.
Start Setting PORTC bit 4 as an input Setting all bits PORTD as Output port Setting PORTB bit 5 as an output Insert value 23 to Working Register LOW LOOP test bit 4 in PORTC either high or low High Insert value in Working Register to PORTD Setting PORTB bit 5 as high Clear PORTB bit 5 Figure Q4(a)