| Author |
Message |
nuarizzah
Joined: 29 Mar 2006 Posts: 17
|
29 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
|
29 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

|
29 Mar 2006 11:06 Ads |
|
|
|
|
|
|
| Back to top |
|
 |
nuarizzah
Joined: 29 Mar 2006 Posts: 17
|
29 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
|
29 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
|
|
| Back to top |
|
 |
nuarizzah
Joined: 29 Mar 2006 Posts: 17
|
30 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
|
30 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
|
|
| Back to top |
|
 |
nuarizzah
Joined: 29 Mar 2006 Posts: 17
|
30 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
|
30 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
|
30 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 |
|
 |