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

List out various uses of timers in embedded system?

502


What is the difference between hard real-time and soft real-time os?

432


What is loop unrolling?

503


Tell me what is embedded system in a computer system?

463


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

429






Discuss the differences between mocks and stubs/fakes and where you might use them (answers aren't that important here, just the discussion that would ensue).

450


What value do daily builds, automated testing, and peer reviews add to a project? What disadvantages are there?

466


What is meant by a sandbox, why you would use one.

438


Scope of static variables?

513


What is the use of having the const qualifier?

446


Tell me how does the interrupts handle by using the threads?

408


Explain various uses of timers in embedded system?

474


What is a 'volatile' variable?

475


You've just been assigned to a project in a new technology how would you get started?

445


Explain what is interrupt latency? How can you reduce it?

448