CMSIS-Driver Validation  
Driver Validation
USART Validation

USART driver validation. More...

Content

 Configuration
 
 USART Server
 
 Tests
 

Description

The USART validation performs the following tests:

Two Test Modes are available: Loopback and USART Server.

Test Mode : <b>Loopback</b>

This test mode allows only limited validation of the USART Driver.
It is recommended that this test mode is used only as a proof that driver is good enough to be tested with the USART Server.

For this purpose following Default settings should be used:

To enable this mode of testing in the DV_USART_Config.h configuration file select the Configuration: Test Mode: Loopback setting.

Required pin connection for the Loopback test mode:

Note
In this mode following operations / settings cannot be tested:
  • synchronous slave or single-wire modes
  • operation of the Receive function
  • data content sent by the Send function
  • parity, stop bits, flow control, clock polarity / phase settings
  • data bit settings other then 8
  • modem lines operation
  • event signaling

Test Mode : <b>USART Server</b>

This test mode allows extensive validation of the USART Driver.
Results of the Driver Validation in this test mode are relevant as a proof of driver compliance to the CMSIS-Driver specification.

To perform extensive communication tests, it is required to use an USART Server running on a dedicated hardware.

To enable this mode of testing in the DV_USART_Config.h configuration file select the Configuration: Test Mode: USART Server setting.

Required pin connections for the USART Server test mode with USART Server Mode: Asynchronous or IrDa

Note
Only necessary pin connections are Tx, Rx and GND. Flow control (RTS, CTS), modem lines (DSR, DTR, DCD, RI) and synchronous clock (CLK) line are optional and depend on pin availability and driver support for flow control, modem lines and synchronous mode.
For stable idle level on Rx lines, external pull-ups can be added.

Required pin connections for the USART Server test mode with USART Server Mode: Single-wire

Note
Asynchronous and IrDa modes use same connection type and Single-wire uses a different connection.
Please ensure that correct connection is used as required by tests otherwise damage to hardware may occur (For example using Asynchronous mode selected with hardware connected for Single-wire tests can result in damaged pins).
In this mode Tx and Rx pins are internally connected together.
Tx pin should use open-drain setting in this mode to prevent damage in case of simultaneous driving from both USART Server and USART Client.
To ensure proper signal quality:
  • keep the connecting wires as short as possible
  • if possible keep Tx and Rx wires wires separate from each other
  • ensure a good Ground (GND) connection between USART Server and DUT