The Arduino Tian has a number of facilities for communicating with a computer, with
another Arduino or other microcontrollers, and with different devices like phones,
tablets, cameras and so on. The SAMD21 provides one hardware UART and three
hardware USARTs for 3.3V serial communication.
The Arduino software includes a serial monitor allowing simple textual data to be sent
to and from the board. The RX and TX LEDs on the board will flash when data is
being transmitted via the ATSAMD21G18 chip and USB connection to the computer
(but not for serial communication on pins 0 and 1).
The USB port is connected to the CP2105. It allows for serial (CDC) communication
over USB. This provides a serial connection to the Serial Monitor or other
applications on your computer. When the board is connected to the computer appear
2 COM ports/ttyUSB, one is connected to the UART of SAMD21, while the other is
connected to the serial port of the Linux processor.
The SAMD21 also supports TWI and SPI communication. The Arduino software
includes a Wire library to simplify use of the TWI bus. For SPI communication, you
can use the SPI library.
Programming
The Arduino Tian can be programmed with the Arduino software (download).
If you use Linux-based OS follow the guide Arduino IDE onLinux-basedOS.
Uploading sketches to the SAMD21 is different from how it works with the AVR
microcontrollers found in other Arduino boards: the flash memory needs to be erased
before being re-programmed. Upload operation is managed by a dedicated ROM
area on the SAMD21.
USB port: To use this port, select "Arduino Tian as your board in the Arduino IDE.
The USB port is connected to the CP2105. Installated the driver the user view two
serial ports: one for SAMD21 and other for AR9342. Connect the Tian USB port (the
one closest to the reset button) to your computer. Opening and closing the USB port
at 1200bps triggers a 'soft reset' procedure:the board is restarted with the boot
loader.
Note:
Keep in mind that every time you open the Serial Terminal then the Microcontroller is
resetted.
Note: