Author Topic: communication between atmega16 and atmega162  (Read 591 times)

0 Members and 1 Guest are viewing this topic.

Offline raulTopic starter

  • Beginner
  • *
  • Posts: 1
  • Helpful? 0
communication between atmega16 and atmega162
« on: March 10, 2013, 06:50:54 AM »
can someone plz help me with uart communication between atmega16 and atmega162,,,,,,

Offline waltr

  • Supreme Robot
  • *****
  • Posts: 1,943
  • Helpful? 98
Re: communication between atmega16 and atmega162
« Reply #1 on: March 10, 2013, 08:12:07 AM »
can someone plz help me with uart communication between atmega16 and atmega162,,,,,,

Connect TX to RX, RX to TX and Ground to Ground.
Setup the UART in each Atmega for the same number of Start, Data & Stop bits. and the same Baud rates.

Now send data from one Atmega and receive the data on the other Atmega.

Offline jwatte

  • Supreme Robot
  • *****
  • Posts: 1,343
  • Helpful? 81
Re: communication between atmega16 and atmega162
« Reply #2 on: March 10, 2013, 04:20:54 PM »
If you're talking between two Atmegas, why are you using UART?
I2C and SPI are both better protocols for this purpose IMO. I2C is much more flexible, and SPI can run faster (but uses more pins.)

 


Get Your Ad Here

data_list