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
can a pointer be volatile ? Explain.
What is inversion of control?
Explain me can we use printf inside isr?
How to implement a fourth order butter worth lp filter at 1 khz if sampling freuency is 8 khz?
Tell me what is null pointer and what is its use?
What are the uses of the keyword static?
Explain the difference between risc and cisc processor?
Explain the difference between "set" logic, and "procedural" logic.
What is priority inheritance?
What is the repository pattern? Why are patterns important?
Why embedded system is useful?
Please explain what is semaphore?
What is continuous integration? Have you used it and why is it important?
What's the difference between unit test and integration test?
You've just been assigned to a project in a new technology how would you get started?