electronics forum

Rules | Recent posts | topic RSS | Search | Register  | Log in

ATMEL 89c52 serial communication


Post new topic  Reply to topic    EDAboard.com Forum Index -> PC Programming and Interfacing -> ATMEL 89c52 serial communication
Author Message
nuarizzah



Joined: 29 Mar 2006
Posts: 17


Post29 Mar 2006 10:49   

atmel 89c52


Hi everybody!

I'm working on a project title intelligent entrance system for condominiums and i'm using ATMEL 89c52 for serial communication part

But, i'm not clear about the circuitry and how does this microcontroller works to send and receive the data.

I've also read about RS 232 Serial Communication topic in this forum and i get confused whether i have also to use this register together with my ATMEL 89c52?

I am very hope to get help from you all. Thank you!!
Back to top
tamerakshar



Joined: 29 Jan 2006
Posts: 109
Helped: 11


Post29 Mar 2006 11:06   

atmel serial communication


hi,
you gotta understand the I²C protocol,
the attached file will help.
TeE ThE EdE
Back to top
Google
AdSense
Google Adsense




Post29 Mar 2006 11:06   

Ads







Sorry, but you need login in to view this attachment

Back to top
nuarizzah



Joined: 29 Mar 2006
Posts: 17


Post29 Mar 2006 11:27   

89c52 circuit diagram


i tried a simple programming on this chip but i don't know how to set the baud rate
we need to set it based on the frequency used on the crystal right?

also, which PIC is also suitable for the serial programming?
and what is the difference between PIC and ATMEL chips?
Back to top
IanP



Joined: 05 Oct 2004
Posts: 6490
Helped: 1542
Location: West Coast


Post29 Mar 2006 12:05   

atmel89c52


It looks like you have already started with ATMEL, so stay with it ..
All microcontrollers can do almost the same but the more you practise with a particular type, the more "fluent" you are in it, and the easier for you is to use it in all sorts of applications ..

Here you have a PDF file with practical examples on 89C51/2 UART including explanations on how to select baud rate etc. etc ..
http://www.atmel.com/dyn/resources/prod_documents/doc4346.pdf

If you have further questions - come back and ask ..

Regards,
IanP



Sorry, but you need login in to view this attachment

Back to top
nuarizzah



Joined: 29 Mar 2006
Posts: 17


Post30 Mar 2006 5:40   

89c52 serial


I've started a simple program on serial interface between two AT89c52 as a practice for serial programming
But, i need to interface AT89c52 and AT89c2051.. But i don't know about their circuitry connection

Could you please help me with a circuit diagram on it?

thank you!
Back to top
IanP



Joined: 05 Oct 2004
Posts: 6490
Helped: 1542
Location: West Coast


Post30 Mar 2006 5:57   

serial control in 89c52


Connect pin 10 (89C52 Rx) with pin 3 (2052 Tx) and pin 11 (89C52 Tx) with pin 2 (89C2051 Rx) and of course 0V - pin 20 (89C52) and 10 (89C2051) ..

Regards,
IanP



Sorry, but you need login in to view this attachment

Back to top
nuarizzah



Joined: 29 Mar 2006
Posts: 17


Post30 Mar 2006 11:28   

89s52 serial communication


mm.. i mean where should i put resistors and whatsoever on 2051? or, do i only need Connect pin 10 (89C52 Rx) with pin 3 (2052 Tx) and pin 11 (89C52 Tx) with pin 2 (89C2051 Rx) and of course 0V - pin 20 (89C52) and 10 (89C2051) as you've mentioned?

because when i did serial interface between two AT89c52, the connection of resistors and capacitors on that chip is similar, the only different is the pin 10 and 11

thank you
Back to top
IanP



Joined: 05 Oct 2004
Posts: 6490
Helped: 1542
Location: West Coast


Post30 Mar 2006 12:00   

89c52


2051 is reduced-pin version of the 89C52 ..
All pins (look at their names, not numbers) should be connected in the same way ..
For example, you need a capacitor on the RST pin, next, you need a crystal connected between XTAL1 and XTAL2 and 33pF caps between XTAL1 and GND and XTAL2 and GND .. and so on ..

Regards,
IanP
Back to top
rajkumarrajan



Joined: 30 Nov 2007
Posts: 1


Post30 Nov 2007 12:26   

serial communication with 89s52


i've started pro'ing with 2051 for serial (RX and TX)
comm'. but it was not sucess, plz help to code for
this

thank u
raja
Back to top
Arabic versionBulgarian versionCatalan versionCzech versionDanish versionGerman versionGreek versionEnglish versionSpanish versionFinnish versionFrench versionHindi versionCroatian versionIndonesian versionItalian versionHebrew versionJapanese versionKorean versionLithuanian versionLatvian versionDutch versionNorwegian versionPolish versionPortuguese versionRomanian versionRussian versionSlovak versionSlovenian versionSerbian versionSwedish versionTagalog versionUkrainian versionVietnamese versionChinese version
Post new topic  Reply to topic    EDAboard.com Forum Index -> PC Programming and Interfacing -> ATMEL 89c52 serial communication
Page 1 of 1 All times are GMT + 1 Hour
Similar topics:
serial port communication 89c52 and pc (3)
scheduler for Atmel 89c52 (2)
difference in atmel 89c51 and 89c52 (9)
Costant current with Atmel 89C52 (10)
design help for digital voltmeter with atmel 89C52 (2)
89C52 Serial Interface (3)
usb or serial interface of 89c52 microcontroller (3)
Connect more than one 89c52 to a PC serial port (3)
serial communication of 89c51 with pc serial port through vi (2)
!PS/2 communication with a atmel mcu! (4)


Abuse || Administrator || Moderators || Support us || sitemap
topic RSS