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's your experience with qa engineering?
Explain me what are the rules followed by mutexes?
Describe a software development life cycle that you've managed.
What does DMA address will deal with?
What does malloc do? What will happen if we have a statement like malloc(sizeof(0));
If you've integrated new software in an existing system, tell us how you evaluated and identified the requirements for this new technology.
Explain what is interrupt latency? How can you reduce it?
Tell me what is the function of dma controlled in embedded system?
What are the characteristics of embedded system?
Tell me what type of scheduling is there in rtos?
Which parameters decide the size of data type for a processor?
What is the need for an infinite loop in embedded systems?
Tell me what are inline functions?
What's the difference between a web server, web farm and web garden? How would your web application need to change for each?
What is watchdog timer?