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
How to implement a fourth order butter worth lp filter at 1 khz if sampling freuency is 8 khz?
Why is java used in embedded systems?
Explain what is embedded system in a computer system?
What is the difference between "set" logic, and "procedural" logic. When would you use each one and why?
What is yagni? Is this list of questions an example?
What is dma in an embedded system?
Why is model transformations used in the embedded system?
Describe to me some bad code you've read or inherited lately.
What is pass by value and pass by reference? How are structure passed as arguments?
What is so great about
What is loop unrolling?
Tell me what is null pointer and what is its use?
You have two computers, and you want to get data from one to the other. How could you do it?
What are the most common errors you've found in embedded systems?
You've just been assigned to a project in a new technology how would you get started?