Arduino Hardware Serial
The ever popular arduino is one such microcontroller.
Arduino hardware serial. Some like the mega have more. Used for communication between the arduino board and a computer or other devices. Most microcontrollers on the market include serial ports as part of their set of peripherals. The arduino uno has only one hardware serial port because the microcontroller used on the uno has only one built in serial port.
This model is configured to run in normal mode. All arduino boards have at least one serial port also known as a uart or usart and some have several. In this model the arduino hardware sends data to your computer over the serial port 0 usb port of the arduino hardware. On uno nano mini and mega pins 0 and 1 are used for communication with the computer.
Send serial data to host using arduino hardware. This can be used for example to connect a serial device to the computer through the arduino board. Using hardware serial with the roboclaw arduino library serial communication is one of the many control methods that can be used with the roboclaw motor controller. This code sends data received in one serial port of the arduino mega to another.
The arduino mega 2560 and arduino due both have 3 extra hardware serial ports. All arduinos have at least one hardware serial channel.