Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 difference between embedded systems and the system in which rtos is running?

874


What is the repository pattern?

860


Given time, cost, client satisfaction and best practices, how will you prioritize them for a project you are working on? Explain why.

846


Show me a portfolio of all the applications you worked on, and tell me how you contributed to design them.

781


Tell me what are the functional requirements that are used in the embedded systems?

744


What is the difference between "set" logic, and "procedural" logic. When would you use each one and why?

744


Tell me what is difference between binary semaphore and mutex?

802


Tell me what is a watchdog timer?

822


Explain the concept of separation of concerns?

791


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

885


Explain what is a watchdog timer?

764


Tell me why embedded system is useful?

781


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

3024


What is risc architecture?

766


Is count down_to_zero loop better than count_up_loops?

816