Program instruction for generation of 2kHz square frequency

Q.  Which among the below mentioned sequence of program instructions represent the correct chronological order for the generation of 2kHz square wave frequency?

1.  MOV TMOD, 0000 0010 B

2.  MOV TL0,  # 06H

3.  MOV TH0, # 06H

4.  SETB TR0

5.  CPL p1.0   

6.  ORG 0000H

- Published on 09 Nov 15

a. 6, 5, 2, 4, 1, 3
b. 6, 1, 3, 2, 4, 5
c. 6, 5, 4, 3, 2, 1
d. 6, 2, 4, 5, 1, 3

ANSWER: 6, 1, 3, 2, 4, 5

Post your comment / Share knowledge


Enter the code shown above:

(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)