Author Topic: No. of UART  (Read 3006 times)

0 Members and 1 Guest are viewing this topic.

Offline Joker94Topic starter

  • Supreme Robot
  • *****
  • Posts: 1,119
  • Helpful? 26
No. of UART
« on: December 29, 2009, 09:50:38 PM »
With Uart is it the same as I2C in the way that you can use the same 2 pins for multiple devices.

Or do you need different UART lines for each device.

I hope i have made my point clear.

Joker94

Offline Razor Concepts

  • Supreme Robot
  • *****
  • Posts: 1,856
  • Helpful? 53
    • RazorConcepts
Re: No. of UART
« Reply #1 on: December 29, 2009, 09:52:17 PM »
different UART for each device

mega168/mega8 only has 1 uart available, so you can communicate with only one other device

Offline SmAsH

  • Supreme Robot
  • *****
  • Posts: 3,959
  • Helpful? 75
  • SoR's Locale Electronics Nut.
Re: No. of UART
« Reply #2 on: December 29, 2009, 09:59:28 PM »
Although, if you only had to receive from a certain device you could only use rx and gnd.
Same goes from only having to transmit...
Howdy

Offline Joker94Topic starter

  • Supreme Robot
  • *****
  • Posts: 1,119
  • Helpful? 26
Re: No. of UART
« Reply #3 on: December 29, 2009, 10:11:59 PM »
Great

so i could potentially have 2

thanks

Joker94

Offline frank26080115

  • Supreme Robot
  • *****
  • Posts: 322
  • Helpful? 2
Re: No. of UART
« Reply #4 on: December 29, 2009, 11:29:13 PM »
there are many devices i've encountered that have a daisy chain scheme that allows for multiple devices to be connected to a single UART, many of Pololu's products have it, maybe some Dimension Engineering products but I'm not sure.

Offline Joker94Topic starter

  • Supreme Robot
  • *****
  • Posts: 1,119
  • Helpful? 26
Re: No. of UART
« Reply #5 on: December 30, 2009, 12:36:44 AM »
Thanks for that info. ;)

Joker94
« Last Edit: December 30, 2009, 07:06:09 AM by Joker94 »

Offline Joker94Topic starter

  • Supreme Robot
  • *****
  • Posts: 1,119
  • Helpful? 26
Re: No. of UART
« Reply #6 on: December 30, 2009, 01:49:37 AM »
on the Atmega 64 on pin 33 and pin 34 there is something i am not sure about.
 it says
Pin 33(WR)
Pin 34(RD)

here is the data sheet.

http://www.futurlec.com.au/Atmel/ATMEGA64.jsp

is this another UART or a function coincidentaly labled the same.

thanks

Joker94
« Last Edit: December 30, 2009, 01:54:20 AM by Joker94 »

Offline rgcustodio

  • Robot Overlord
  • ****
  • Posts: 217
  • Helpful? 0
  • Use "Search" and ye might find answers!
Re: No. of UART
« Reply #7 on: December 30, 2009, 05:15:09 AM »
@Joker94
You're reading the specs incorrectly. PG0 and PG1 are designated for PORT G. WR is write strobe. RD is read strobe. ALE is address latch enable. These are all used for accessing external memory/SRAM.

The pins you are trying to locate is PE0 (RXD0) / PE1 (TXD0) and PD2 (RXD1) / PD3 (TXD1). Those are the USARTs that are directly available to you.
Of course if you have extra pins you can do some bit-banging to get more pseudo-serial interfaces.
The best thing one can do when it's raining is to let it rain. - H. W. Longfellow

understanding is the path to enlightenment

Offline Joker94Topic starter

  • Supreme Robot
  • *****
  • Posts: 1,119
  • Helpful? 26
Re: No. of UART
« Reply #8 on: December 30, 2009, 06:21:46 AM »
thanks rgcustodio

i knew about the others you pointed out i was just not sure if WR and RD were  UART as well

thanks very much

Joker94

 

SMF spam blocked by CleanTalk