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


Please Help Members By Posting Answers For Below Questions

Tell me what are buses used for communication in embedded system?

490


What does DMA address will deal with?

489


Why do we need virtual device drivers when we have physical device drivers?

470


Explain what is semaphore?

448


A=7; b=8; x=a++-b; printf(ā€œ%dā€, x ); what does this code give as output?

571






Is count down_to_zero loop better than count_up_loops?

487


Tell me what are the uses of the keyword volatile?

463


Explain how does combination of functions reduce memory requirements in embedded systems?

429


what is the command/instruction in ARM that does not do anything or does not execute any instruction ? (except NOP instruction)

2698


Describe a pattern that is not the factory pattern? How is it used and when?

440


Tell me can we put breakpoint inside isr?

480


What is spin lock?

476


Please write a program to show the functionality of power-save super loop?

457


Why is it better to use multi-threading polling instead of a single threading model?

575


Explain what is the need for an infinite loop in embedded systems?

478