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
How do you reduce interrupt latency?
Tell me when one must use recursion function? Mention what happens when recursion functions are declared inline?
Explain how to reduce interrupt latency?
What is endianness of a system and how do different systems communicate with each other?
Explain me how does the interrupt architecture works?
Left to your own devices, what would you create?
Why are patterns important?
What are the qualifiers in c?
Tell us what is the need for an infinite loop in embedded systems?
Tell me what happens when recursive functions are declared inline?
What kinds of problems can you hit with locking model? And a lockless model?
Explain me what is the main function of multiplexed address/data bus?
Tell me can structures be passed to the functions by value?
How does the addition of service orientation change systems? When is it appropriate to use?
What is risc architecture?