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.

AT89C55 and PC communication question

Status
Not open for further replies.

gah_wah

Newbie level 4
Joined
Aug 10, 2004
Messages
5
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
91
Dear all,

I have two question about the AT89C55 serial communication, hope anyone could help?
1) I would like to communication the AT89C55 to a PC.
2) I also would like to communicate the AT89C55 to a Nokia 6150 mobile.

Can I directly communication the AT89C55 TX/RX to these two equipments?

Thanks
Best Regards,
gah wah
 

Salam,

There is built-in uart in AT89C55.
Read datasheet to learn how to set the baudrate
Sending or Receiving is very simple using SBUF register.

Here is C code to setup the uart as 9600-N-8-1, Use 11.0592 Crystal
To change the baud rate look to the datasheet
The baudrate depend on the rate of overflow of timer1

Code:
  SCON = 0x52; // 8-bit UART mode
  TMOD = 0x20; // timer 1 mode 2 auto reload
  TH1= 0xfd; // 9600 8n1
  TR1 = 1; // run timer1


No, You can send or receive directly to PC.
You need level shifter like MAX232, Google it.
Or you can just two transistors instead of MAX232.

All MAX232 is doing is convert TTL signals from AT89 to RS232(+-12V) signals and the oppssite.

using MAX232
**broken link removed**

Using Transistors
**broken link removed**

Now Bye, i have to eat something :)
SphinX
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top