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 / gautam

I have modified it a bit,

MOVL XAR1, #Data
MOVL XAR0, #0x00
MOVL XAR2, #0x00

Loop:
TBIT *XAR1,#XAR2
BF Loop1, NTC
INR AR0

Loop1:
INR AR2
MOV AL, *XAR0
CMP AL, @0x03
BF Action, EQ

MOV AL, *XAR2
CMP AL, @0x08
BF Loop, NEQ

Loop3:
EXIT

Action:

Is This Answer Correct ?    0 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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

932


Tell me what does dma address will deal with?

809


Do you know what is the function of watchdog timer in embedded system?

803


Discuss the concept of yagni.

848


What are little endian and big endian types of storage? How can you identify which type of allocation a system follows?

913


What kinds of problems can you hit with lockless model?

969


Explain whether we can use semaphore or mutex or spinlock in interrupt context in linux kernel?

872


Explain what are the differences between analytical and computational modeling?

874


Why are interfaces important?

876


Tell me how does input/output bus functions?

855


Explain me what is spin lock?

761


What is inversion of control? How does that relate to dependency injection?

862


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

882


What is null pointer and what is its use?

774


Tell me significance of watchdog timer in embedded systems?

857