12. Send_receive_padma
12.1. Function description:
This demo is send_receive_padma, test with two groups of USARTn. In this demo, the USARTn_TX is configured as DMA mode and the USARTn_RX is configured as DMA mode. Through IO connection, the data will be sent through USARTn_TX and received by USART1_RX.
12.2. Test result:
This dmo show USARTn_TX send data, USART1_RX receive data, if USARTn_TX send data equals USART1_RX receive data, print “pass”,if not, print “fail”.
12.3. IO connection:
PAD |
PAD |
|---|---|
pad_USARTn_TX_DMA |
pad_USART1_RX_DMA |
Note
The ‘m’ and ‘n’ in “usartm” and “usartn” indicate the peripheral number.