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 software languages have you used to design, develop, and debug software application interfaces?
Tell me what is the need for an infinite loop in embedded systems?
Describe, in as much detail as you think is relevant, as deeply as you can, what happens when I type "cnn.com" into a browser and press "go".
Explain the properties of a object oriented programming language.
Why embedded system is useful?
what is the command/instruction in ARM that does not do anything or does not execute any instruction ? (except NOP instruction)
How does combination of functions reduce memory reuirement in embedded system?
How are variables mapped across to the various memories by the c compiler?
What is difference between using a macro and inline function?
What are the qualifiers in c?
What happens when recursive functions are declared inline?
Tell me why is it better to use multi-threading polling then single threading model?
What is continuous integration? Why is it important?
How can you reduce interrupt latency?
How does the addition of service orientation change systems? When is it appropriate to use?