Skip to content

Commit b22d247

Browse files
authored
Add files via upload
1 parent cba7954 commit b22d247

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

Counter/ckt_&_output.png

118 KB
Loading

Counter/counter.asm

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
ORG 00H
2+
3+
MOV TMOD ,#06h ;COUNTER 0 MODE2 8 BIT AUTO RELOAD MODE
4+
SETB P3.4 ; set P3.4 pin as input pin (set bit)
5+
6+
MOV TL0,#00H
7+
MOV TH0,#00H
8+
9+
HERE:SETB TR0 ;set timer run counter to 0
10+
11+
BACK:MOV P1,TL0
12+
JNB TF0,BACK ; jump not bit , if TF0 is not det jumpp to back
13+
14+
CLR TR0
15+
CLR TF0
16+
17+
SJMP HERE
18+
19+
END

0 commit comments

Comments
 (0)