0

Choose HW Serial Over SW Serial Whenever Possible?
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Choose HW Serial Over SW Serial Whenever Possible?

by Agriculex on Thu Nov 26, 2020 11:00 am

I'm using my custom made (Arduino Mega-based) PCB to interface with the 3G Fona Module. It uses the standard software serial and works fine.

However, looking at the redesign of my custom PCB, I noticed two of the three extra Hardware Serial aren't being used. As a result, I'm thinking of connecting the 3G FONA to it instead.

So my question is what's the main advantage if I switch over to hardware serial? Is it just more stable and faster communication with the 3G Fona?

Agriculex
 
Posts: 7
Joined: Fri Mar 06, 2020 3:22 pm

Re: Choose HW Serial Over SW Serial Whenever Possible?

by adafruit_support_bill on Thu Nov 26, 2020 12:58 pm

Hardware serial has much less overhead than software serial. It is potentially faster and there will be less chances for dropped characters.

adafruit_support_bill
 
Posts: 80311
Joined: Sat Feb 07, 2009 10:11 am

Re: Choose HW Serial Over SW Serial Whenever Possible?

by Agriculex on Thu Nov 26, 2020 1:03 pm

Thanks for the info. I will switch to HW serial then.

Agriculex
 
Posts: 7
Joined: Fri Mar 06, 2020 3:22 pm

Please be positive and constructive with your questions and comments.