nRF51 SDK
|
The UART Example demonstrates basic UART usage for communicating with a PC terminal. It transmits and receives data through the configured pins as a serial device. The configure pins needs to be redirected to a COM port (terminal programs like putty can listen to this COM port through a terminal session). When the program starts it will transmit "START: " through this serial device using simple_uart_putstring and this should be visible on the terminal. All typed characters on this terminal will be transmitted to the program through simple_uart_get and when an exit character 'q' or 'Q' is typed the program will end into an infinite loop after transmitting "EXIT!" on a new line of the terminal.
The source code and project file are available for both development and evaluation boards and is located in the following folders:
<InstallFolder>\Nordic\nrf51822\Board\nrf6310\uart_example
<InstallFolder>\Nordic\nrf51822\Board\pca10000\uart_example
<InstallFolder>\Nordic\nrf51822\Board\pca10001\uart_example
<InstallFolder>\Nordic\nrf51422\Board\pca10003\uart_example
Instructions on how to set up the nRFgo Motherboard: nRFgo Motherboard Setup (nRF6310).
Writing 'Q' or 'q' to the PUTTY terminal ends the program.
The UART Example Application can be tested as follows: