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
Explain the differences between stateless and stateful systems, and impacts of state on parallelism.
Tell me what does dma address will deal with?
Do you know what is the function of watchdog timer in embedded system?
Discuss the concept of yagni.
What are little endian and big endian types of storage? How can you identify which type of allocation a system follows?
What kinds of problems can you hit with lockless model?
Explain whether we can use semaphore or mutex or spinlock in interrupt context in linux kernel?
Explain what are the differences between analytical and computational modeling?
Why are interfaces important?
Tell me how does input/output bus functions?
Explain me what is spin lock?
What is inversion of control? How does that relate to dependency injection?
Describe a pattern that is not the factory pattern? How is it used and when?
What is null pointer and what is its use?
Tell me significance of watchdog timer in embedded systems?