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
Show me a portfolio of all the applications you worked on, and tell me how you contributed to design them.
Discuss the concept of yagni.
Tell me how does the interrupts handle by using the threads?
what is embedded system in a computer system?
Explain the difference between testing and verification?
Can we use any function inside isr?
What is the purpose of the segment register?
How can you stop your dba from making off with a list of your users’ passwords?
You've just been assigned to a project in a new technology how would you get started?
Explain scope of static variables?
How does combination of functions reduce memory reuirement in embedded system?
Tell me why is it better to use multi-threading polling then single threading model?
What are some alternate ways to store data other than a relational database? Why would you do that, and what are the trade-offs?
How does the addition of service orientation change systems? When is it appropriate to use?
What is a 'volatile' variable?