Go Down

Topic: Question about serial pins (Read 534 times) previous topic - next topic

birvin

Why is there only 1 seri in/out pins on the uno but with mega you have an extra 2 or 3.  Is it software related or hardware related?

johnwasser

Hardware.  The UART (Universal Asynchronous Receiver Transmitter) hardware includes shift registers and timing circuits.  There is one set in the ATmega328P and four sets in the ATmega1280/2560.
Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

florinc

You can "add" extra serial pins on Uno by using SoftwareSerial.

birvin

How would u send data instead of strings?

dxw00d

'U' would use Serial.write() instead of Serial.print().

I've never understood the point of writing an almost complete sentence in full, and just dropping the two characters from the word 'you'.

birvin

I am sorry I wass using my phone for the last post.  I know how to use Serial.Write but my question was concerning software serial, and not the built in serial port.  Do they have the same methods?

Go Up