Microcontroller › 8051 › Need Help with interfacing keypad with 8051 using rf module
- This topic has 3 replies, 3 voices, and was last updated 10 years ago by mert.
-
AuthorPosts
-
December 8, 2014 at 6:46 pm #4899mertParticipant
Hey people,
I am a newbie here:)
I have a project with 8051 as I write at the title.Actually my project is very similar to http://www.engineersgarage.com/microcontroller/8051projects/interface-keypad-AT89C51-circuit this one.The differance is I will use a rf module to make it wireless.
I wrote the codes with assembly and there is no problem with it.I simulated it with both proteus and multisim.But I don’t know how to use preamble and syncron data for rf module coding with assembly.
Here is the circuit diagram without rf module.I made it to simulate if my codes are right.I will add rf then.Here is the assembly codes for receiver mcu:
ORG 0MOV DPTR,#TABLOBASA:MOV P1,#0FFHANL P1,#0FHMOV A,P1CALL D?SPLAYSJMP BASAD?SPLAY:MOVC A,@A+DPTRMOV P3,ATABLO:DB 3FHDB 06HDB 5BHDB 4FHDB 66HDB 6DHDB 7DHDB 07HDB 7FHDB 6FHdb 77hdb 7chdb 39hdb 5ehdb 79hdb 71hljmp BASAENDThis is the transmitter mcu :
ORG 00HMOV DPTR,#LUTMOV P1,#0FFHMOV P3,#00HBACK:MOV P1,#11111111BCLR P1.0NEXT1:JB P1.4,NEXT2MOV A,#1HACALL DISPLAYNEXT2:JB P1.5,NEXT3MOV A,#2HACALL DISPLAYNEXT3:JB P1.6,NEXT4MOV A,#3HACALL DISPLAYNEXT4:SETB P1.0CLR P1.1JB P1.4,NEXT5MOV A,#4HACALL DISPLAYNEXT5:JB P1.5,NEXT6MOV A,#5HACALL DISPLAYNEXT6:JB P1.6,NEXT7MOV A,#6HACALL DISPLAYNEXT7:SETB P1.1CLR P1.2JB P1.4,NEXT8MOV A,#7HACALL DISPLAYNEXT8:JB P1.5,NEXT9MOV A,#8HACALL DISPLAYNEXT9:JB P1.6,NEXT10MOV A,#9HACALL DISPLAYNEXT10:SETB P1.2CLR P1.3JB P1.5,BACKMOV A,#0HACALL DISPLAYLJMP BACKDISPLAY:MOVC A,@A+DPTRMOV P3,ARETLUT: DB 00000000bDB 00010000bDB 00100000bDB 00110000bDB 01000000bDB 01010000bDB 01100000bDB 01110000bDB 10000000bDB 10010000bEND.And now I need your help.this is my first rf project so I don’t know where and how to add preamble and syncron data.Can you pls help me.For further information you can contact me from [email protected] or here.December 12, 2014 at 4:18 am #12413AJISH ALFREDParticipantHi mert,
There are RF modules which transmit data using their own Preample and Sync bits, you dont have to code for it.
Which RF module are you using?
December 12, 2014 at 10:58 am #12414Ashutosh BhattParticipantdo u want to transmit keypad codes to another micro controller?
why u want to do that?
you need RF encoder-decoder chips like HT12E-HT12D along with RF Tx and Rx modules for this operation
December 12, 2014 at 7:32 pm #12420mertParticipantHey people,
Thank you for your replies.
I will do this for a project of my microchips lecture.And to learn how rf modules work.
I have a basic 433mhz rf module already.But i don’t know its model. My rf module doesnt have its preamble codes.So I have to write these codes.
And yes I have HT12E/D for my circuit.The photo I sent was only for showing what I am trying to do.In addition to this photo i have rf module and HT12 E/D in my circuit.I didnt try it yet because I dont have a 8051 programmer.On monday i will try it at the school.
-
AuthorPosts
- You must be logged in to reply to this topic.