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 is the difference between embedded systems and the system in which rtos is running?
What is interrupt latency and how can we decrease it?
Differentiate between mutexes vs semaphores.
Have you designed ui, user interface?
What is the difference between a web server, web farm and web garden? How would your web application need to change for each?
Why would you choose java in embedded systems?
Infinite loops often arise in embedded systems. How does you code an infinite loop in c?
What happens when recursion functions are declared inline?
What are the advantages and disadvantages of embedded system?
What are the commonly found errors in embedded systems?
If a system goes blank, how do you debug it?
Tell me can structures be passed to the functions by value?
Can we put breakpoint inside isr?
Tell me what are the functional requirements that are used in the embedded systems?
Explain the concept of convention over configuration, and talk about an example of convention over configuration you have seen in the wild.