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

What is the purpose of using critical sections?

468


What is rtos in an embedded system?

444


How are macros different from functions?

420


What is the need for an infinite loop in embedded systems?

446


Why cannot arrays be passed by values to functions?

488






Can we use printf inside isr?

465


Do you know what is priority inheritance?

444


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

434


Significance of watchdog timer in embedded systems.

464


What are the differences between stateless and stateful systems, and impacts of state on parallelism.

447


Tell me what is the function of simple thread poll in embedded system?

512


What is continuous integration? Why is it important?

437


What's the difference between locking and lockless (optimistic and pessimistic) concurrency models?

508


Why would you choose java in embedded systems?

408


Why is java mostly used in embedded systems?

446