Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

[SOLVED] 8051 and RF data communication.

Status
Not open for further replies.

torana

Member level 2
Joined
Sep 11, 2011
Messages
51
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
1,683
please give me guide for this work.

programming and H/w side.

this h/w diagram i am using. is it correct.

i am confuse on 14 no. pin of both encoder and decoder.

 

Hi

pin 14 is "Transmission enable, active low", try to go through the datasheet.

you can download the datasheet from https://www.futurlec.com/Others/HT12E.shtml

I have not studied the datasheet in detail but it seems your circuit may be incomplete. :!:
 

Everything correct, you can do low or high on pin 14 using your code
 

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:

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top