Design a circuit to detect when 3 and only 3 bits are set
out of 8 bits.(eg. o0101100)
Answer Posted / ravichandra
step1: start
step2: mov the byte to accumulator
step3: intialize length = 0 , count = 0
step4: rotate acc. to right through carry.
step5: if carry = 1 , increment count
step6: increment length
step7: if length < 8 , goto step3
step8: if count = 3 , (do required action)
step9: end
Is This Answer Correct ? | 6 Yes | 4 No |
Post New Answer View All Answers
Tell me what are buses used for communication in embedded system?
What does DMA address will deal with?
Why do we need virtual device drivers when we have physical device drivers?
Explain what is semaphore?
A=7; b=8; x=a++-b; printf(ā%dā, x ); what does this code give as output?
Is count down_to_zero loop better than count_up_loops?
Tell me what are the uses of the keyword volatile?
Explain how does combination of functions reduce memory requirements in embedded systems?
what is the command/instruction in ARM that does not do anything or does not execute any instruction ? (except NOP instruction)
Describe a pattern that is not the factory pattern? How is it used and when?
Tell me can we put breakpoint inside isr?
What is spin lock?
Please write a program to show the functionality of power-save super loop?
Why is it better to use multi-threading polling instead of a single threading model?
Explain what is the need for an infinite loop in embedded systems?