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
what is meant by a forward reference in c?
What is the repository pattern? Why are patterns important?
What is risc architecture?
Left to your own devices, what would you create?
Do you know what is priority inversion?
Explain how does combination of functions reduce memory requirements in embedded systems?
Which parameters decide the size of data type for a processor?
Explain what are the uses of the keyword static?
Explain me what is kernel paging?
What is watchdog timer?
What are the differences between mocks and stubs/fakes and where you might use them.
What are the advantages and disadvantages of embedded system?
Describe a software development life cycle that you've managed.
Mention what are buses used for communication in embedded system?
Tell me what are the qualifiers in c?