Go Down

Topic: two serial devices (Read 293 times) previous topic - next topic

swalehm

Hi..

I am working on a project that requires me to read a serial device do some calculations and write to another serial device connected to the same board. is this possible by simply using pins 0 and 1 on the board to connect to the two serial devices ?

Thank you in advance

Cheers

dogsop

If all you ever do is read from one device and write to the other (and you can configure both devices for the same baud rate) then what you are proposing would work just fine.

retrolefty

#2
Apr 17, 2009, 07:55 pm Last Edit: Apr 17, 2009, 07:55 pm by retrolefty Reason: 1
Otherwise you can use the hardware serial (pins 0 & 1) for one link and use a software UART for the other link. Lots of options. Then new mega Arduino has lots of hardware serial ports also. The 644p AVR chip has two hardware UART ports available. Lots of ways to go.

Lefty


kg4wsv

Yes, that will work, but as retrolefty points out, a write-only RS232 peripheral is an ideal candidate for software serial.

-j


Go Up