SAMV71 Xplained Ultra Software Package 1.4

USART LON example with DMA

This example demonstrates the LON mode provided by the USART peripherals on SAMV7 Microcontrollers.

Requirements

This example can be used on SAM V71 Xplained Ultra board. Before running, make sure to connect two boards with RS485 lines. The rs485 adapt board (ADM3485ARZ) for this purpose. Match each paired pins of two boards respectively with A to A, B to B and FGND to FGND(the central pin of J3). this part is connect with EK and ADM3485ARZ

Description

This example connects two boards through RS485 interface to show how to use USART in LON (local operating network) mode. One of the board acts as the transmitter and the other one as the receiver. It is determined by the sequence the two applications started.

Usage

  1. Build the program and download it inside the SAM V71 Xplained Ultra board. Please refer to the Getting Started with SAM V71 Microcontrollers.pdf
  2. Connect a serial cable to the UART4 port (J505 Pin3 D18 and Pin4 D19) on the evaluation kit.
  3. On the computer, open and configure a terminal application for each board (e.g. HyperTerminal on Microsoft Windows) with these settings:
    • 115200 bauds
    • 8 data bits
    • No parity
    • 1 stop bit
    • No flow control
  4. Start application from two boards in sequence. Make sure the second board should NOT be started unless the first board had run to wait for the synchronizing character. The output message in later section would describe this.
  1. In the terminal window, the following text should appear (values depend on the board and chip used):
         -- USART LON Mode Example xxx --
         -- SAMxxxxx-xx
         -- Compiled: xxx xx xxxx xx:xx:xx --
    

References

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines