Design a circuit to detect when 3 and only 3 bits are set
out of 8 bits.(eg. o0101100)
Answer Posted / gautam
Sorry thr was a bit mistake. Corrected :
MOV XAR1, #Data
MOV XAR0, #0
MOV XAR2, #0
Loop:
TBIT *XAR1, *XAR2
BF Loop1, NTC
INR *XAR0
Loop1:
INR *XAR2
MOV AL, *XAR0
CMP AL, #0x03
BF Loop3, EQ
MOV AL, *XAR2
CMP AL, #0x80
BF Loop, NEQ
Loop3:
EXIT
Is This Answer Correct ? | 0 Yes | 3 No |
Post New Answer View All Answers
What are the different types of customizations that is used with the “volatile” keyword?
What are some alternate ways to store data other than a relational database? Why would you do that, and what are the trade-offs?
What are the different types of embedded systems?
What is the purpose of a watchdog timer?
What are recursive functions? Can we make them in line?
What are the essential components of embedded system?
A=7; b=8; x=a++-b; printf(“%d”, x ); what does this code give as output?
What is solid?
What is mutex in an embedded system?
How does inversion of control relate to dependency injection?
What are the 4 types of inheritance relationship?
How can you reduce memory requirements in embedded systems?
Explain the concept of convention over configuration, and talk about an example of convention over configuration you have seen in the wild.
Explain the concept of separation of concerns?
What trade offs do you have for resource contention?