Design a circuit to detect when 3 and only 3 bits are set
out of 8 bits.(eg. o0101100)
Answer Posted / gautam
Sorry thr was a bit mistake. Corrected :
MOV XAR1, #Data
MOV XAR0, #0
MOV XAR2, #0
Loop:
TBIT *XAR1, *XAR2
BF Loop1, NTC
INR *XAR0
Loop1:
INR *XAR2
MOV AL, *XAR0
CMP AL, #0x03
BF Loop3, EQ
MOV AL, *XAR2
CMP AL, #0x80
BF Loop, NEQ
Loop3:
EXIT
| Is This Answer Correct ? | 0 Yes | 3 No |
Post New Answer View All Answers
What is the function of simple thread poll in embedded system?
Explain me why is model transformations used in the embedded system?
What is the need for having multibyte data input and output buffers in case of device ports?
Why continuous integration is important?
What's your experience with technical documentation?
What are the different types of buses used by the embedded systems?
What are the different types of embedded systems?
Accessing fixed memory locations
Show me a portfolio of all the applications you worked on, and tell me how you contributed to design them.
Describe the structure and contents of a design document, or a set of design documents, for a multi-tiered web application.
What is an embedded system?
Please write a program to show the functionality of power-save super loop?
What is the use of having the const qualifier?
Tell me what is the need for having multibyte data input and output buffers in case of device ports?
Can you name the differences between object-oriented and component-based design?