Question 6.12: Write a program to transfer value 41H serially (one bit at a...

Write a program to transfer value 41H serially (one bit at a time) via pin P2.1. Put two highs at the start and end of the data. Send the byte LSB first.

The blue check mark means that this solution has been answered and checked by an expert. This guarantees that the final answer is accurate.
Learn more on how we answer questions.

MOV    A,#41H
SETB   P2.1            ;high
SETB   P2.1            ;high
MOV    R5,#8

AGAIN:        RRC      A

MOV    P2.1,C        ;send CY to P2.1
DJNZ   R5,HERE
SETB   P2.1            ;high
SETB   P2.1            ;high

1649075525841

Related Answered Questions

Question: 6.8

Verified Answer:

1.     0011 0100        34H given in binary 2.    ...
Question: 6.10

Verified Answer:

MOV    P2,#00        ;clear P2 MOV    P1,#0FFH   ;...
Question: 6.15

Verified Answer:

MOV   R1,#0             ;R1 keeps number of 1s MOV...
Question: 6.13

Verified Answer:

MOV    R5,#8 AGAIN:         MOV   C,P2.7         ;...