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.

interfacing 89c51 with next 89c52 using uart

Status
Not open for further replies.

harishwww

Member level 3
Joined
Aug 12, 2010
Messages
57
Helped
2
Reputation
4
Reaction score
2
Trophy points
1,288
Activity points
1,696
how to achieve uart between two 89c51
trx side uses 4*3 key pad lcd
rx side uses lcd
i want to transmit data from one to another using uart pls help
 

what help do you want?

what did you did till now?

Comeup with specific question
 
here is my schematic and code
i am newbie i feel very happy to say i don't know about microcontrollers that much
;PORT DECLERATION
LCD_RS EQU P2.0 ;LCD REGISTER SELECT LINE
LCD_E EQU P2.1 ;LCD ENABLE LINE
LCD_DB4 EQU P2.2 ;PORT 1 IS USED FOR DATA
LCD_DB5 EQU P2.3 ;USED FOR DATA
LCD_DB6 EQU P2.4 ;FOR DATA
LCD_DB7 EQU P2.5 ;FOR DATA
transmit EQU P1.1 ;+ keypad
;xtal 11.0592 both tx and rx

org 000h
anl pcon,#7fh ;set smod bit to 0 for baude * 32 rate
anl tmod,#30h ;alter timer t1 configuration only
orl tmod,#20h ;set timer t1 as an 8 bit autoload
mov th1,#baudnum ;th1 set for divide clock by 13d
set tr1 ;t1 running at 1E6/13=76923 hz
mov scon,#40h ;set uart to mode 1
xmit
mov sbuf,#'U' ;transmit U continiously
wait
jbc ti,xmit
sjmp wait end
i could not interface 4*4 key pad with micro and to write lcd commands
i just want to transmit few letters like UUUUU may be the word Apple to next micro
pls help me sir

i have seen similar project on Free 8051 Microcontroller projects secured wireless data by BINU i found that project too complicated for me standard keyboard interfacing ,lcd, etc i want to do simple first and learn that project
 

Attachments

  • a.rar
    11.6 KB · Views: 84
Last edited:

i have tried to connect project shown in Free 8051 Microcontroller projects secured wireless data transmission it worked but finally i could not read data to receivers section initial message says one data received if button is pressed monoalphabetic polyalphabetic and if button is pressed says enter number and if i tried to enter number number will rotate and could not read the message what went wrong there so i tried to build simple version of system ( i didn't use rx and tx antenna i just connect directly to receiver micro) only one button is working in receivers section
 

write lcd prg , keypad, and serial communication ( tx and rx programsues) seperately .
test if they are working.
If you get the result then combine the program and you get our project completed.

Refer mazidi textbook for reference and you can complete on your own
 

secured wireless data transmission as in Free 8051 Microcontroller projects you have to change code for receiver side then your both key will operate and be able to read data . ya you can connect directly to receiver micro from trans meter micro .ya the algorithm used in that project is quite complicated but you can change that code for your purpose .
 

im using microcontroller atmel at89c52. i need to make an interface with sensor via serial port
I have used 11.0592 MHz Crystal but I can’t get baud rates 19200
Is there any problem with this code for serial please?
; FUNCTIONS/SUBROUTINES
SERIAL1:
MOV A,PCON
SETB ACC.7
MOV PCON,A
MOV TMOD,#20H ; timer1 mode 2
MOV TH1,#0FDH
MOV SCON,#50H ;8-BIT, 1 STOP BIT, REN ENABLED
SETB TCON.6
CLR TI
MOV SBUF,A
H_1: JNB TI,H_1
RET
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top