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
What is the purpose of using critical sections?
What is rtos in an embedded system?
How are macros different from functions?
What is the need for an infinite loop in embedded systems?
Why cannot arrays be passed by values to functions?
Can we use printf inside isr?
Do you know what is priority inheritance?
Describe a pattern that is not the factory pattern? How is it used and when?
Significance of watchdog timer in embedded systems.
What are the differences between stateless and stateful systems, and impacts of state on parallelism.
Tell me what is the function of simple thread poll in embedded system?
What is continuous integration? Why is it important?
What's the difference between locking and lockless (optimistic and pessimistic) concurrency models?
Why would you choose java in embedded systems?
Why is java mostly used in embedded systems?