SAMV71 Xplained Ultra Software Package 1.5

USART RS485 example with DMA

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

Requirements

This package can be used with SAMV71 Xplained Ultra board or SAME70 Xplained 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. One 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 board. Please refer to the Getting Started with SAM V71/E70 Microcontrollers.pdf
  2. Connect a serial cable to the DBGU port 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 baud rate
    • 8 bits of data
    • 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 RS485 Mode Example xxx --
         -- SAMxxxxx-xx
         -- Compiled: xxx xx xxxx xx:xx:xx --
    

References

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines