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!!
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?
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 ..
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?
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
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 ..