Design a circuit to detect when 3 and only 3 bits are set
out of 8 bits.(eg. o0101100)
Answer Posted / gautam
I have modified it a bit,
MOVL XAR1, #Data
MOVL XAR0, #0x00
MOVL XAR2, #0x00
Loop:
TBIT *XAR1,#XAR2
BF Loop1, NTC
INR AR0
Loop1:
INR AR2
MOV AL, *XAR0
CMP AL, @0x03
BF Action, EQ
MOV AL, *XAR2
CMP AL, @0x08
BF Loop, NEQ
Loop3:
EXIT
Action:
| Is This Answer Correct ? | 0 Yes | 5 No |
Post New Answer View All Answers
What is continuous integration? Have you used it and why is it important?
How can to check the working of a sensor deployed in a project?
How does the interrupt architecture works?
What are the types of embedded system?
What are recursive functions? Can we make them in line?
Differentiate testing and verification?
Why is java mostly used in embedded systems?
What's yagni? Is this list of questions an example?
Tell me how many types of ipc mechanism you know?
Tell me what are the different storage classes in c?
What is the main function of multiplexed address/data bus?
What is the repository pattern? Why are patterns important?
what are buses used for communication in embedded system?
How many types of ipc mechanism you know?
Tell me can a variable be both const and volatile?