still it is not working
my receiving code
-------------------------
Code ASM - [expand] |
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
| org 00h
sjmp main
main:
clr p1.0
;====================tmt
clr p2.7;enable tmt
nop
mov p0,#00000001b
clr p2.7;enable tmt
nop
nop
nop
setb p2.7;diable tmt
m:
setb p1.0
nop
nop
nop
nop
nop
nop
nop
nop
nop
sjmp m
end |
my transmitting code
-------------------------------
Code ASM - [expand] |
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
| org 0
sjmp main
main:
agn:
mov a,p0
cjne a,#00h,next
sjmp agn
next:
setb p1.0
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
clr p1.0
sjmp next
/*
sjmp agn
next :
cjne a,#11111001b,next2
clr p1.0
ret
next2:
cjne a,#11110110b,next3
n:
clr p1.0
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
setb p1.0
sjmp n
next3:
setb p2.1
*/
end |
Last edited by a moderator: