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


Please Help Members By Posting Answers For Below Questions

What are the different types of customizations that is used with the “volatile” keyword?

457


What are some alternate ways to store data other than a relational database? Why would you do that, and what are the trade-offs?

430


What are the different types of embedded systems?

455


What is the purpose of a watchdog timer?

442


What are recursive functions? Can we make them in line?

481






What are the essential components of embedded system?

411


A=7; b=8; x=a++-b; printf(“%d”, x ); what does this code give as output?

568


What is solid?

460


What is mutex in an embedded system?

439


How does inversion of control relate to dependency injection?

438


What are the 4 types of inheritance relationship?

445


How can you reduce memory requirements in embedded systems?

476


Explain the concept of convention over configuration, and talk about an example of convention over configuration you have seen in the wild.

399


Explain the concept of separation of concerns?

428


What trade offs do you have for resource contention?

463