open-ameba/RTL00_SDKV35a/example_sources/uart_irq
2017-02-28 10:40:07 +03:00
..
src delete '!!!' 2017-02-28 10:40:07 +03:00
readme.txt add examples 2016-12-14 04:21:37 +03:00

Example Description

This example describes how to use UART to communicate with PC.

Required Components:
    USBtoTTL adapter

Connect to PC
 - Connect Ground: connect to GND pin via USBtoTTL adapter
 - Use UART1
	GPIOA_6 as UART1_RX connect to TX of USBtoTTL adapter
	GPIOA_7 as UART1_TX connect to RX of USBtoTTL adapter

Open Super terminal or teraterm and 
set baud rate to 38400, 1 stopbit, no parity, no flow contorl.

This example shows:
1. The RX data ready interrupt service routine is used to receive characters from the PC, and then loopback them to the PC.
2. The TX done interrupt service routine will send a prompt string "8195a$" to the PC.