Pages: [1]   Go Down
Author Topic: two serial devices  (Read 289 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 20
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

0
Offline Offline
Jr. Member
**
Karma: 0
Posts: 57
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Left Coast, CA (USA)
Offline Offline
Brattain Member
*****
Karma: 361
Posts: 17301
Measurement changes behavior
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

« Last Edit: April 17, 2009, 12:55:51 pm by retrolefty » Logged

0
Offline Offline
Faraday Member
**
Karma: 8
Posts: 2526
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

-j

Logged

Pages: [1]   Go Up
Jump to: