Microchip | The Embedded Control Solutions Company Register Login
Browse All
Microchip Technology
 305 Code Snippets

3-wire UART

Microchip Technology

This code example is a basic UART communication on RS-232 on Explorer 16 development board. Baudrate 9600, 8-bit data, No parity, 1 Stop bit, No Flow Control.

About this Code Example

This code example is a basic UART communication on RS-232 on Explorer 16 development board.
Baudrate 9600, 8-bit data, No parity, 1 Stop bit, No Flow Control.

It's a small, bare bones program to guide designers with UART implementation
To run the program, plug DB9 cable to Terminal (9600,8,N,1) -
Data sent from TERMINAL will be represented as binary equivalent of ASCII on 7 LSB LEDs of
Explorer 16 development board

Data is sent from Explorer 16 by pressing S3 - S6.  A single letter will be transmitted upon each keypress.

Peripheral Library was not utilized, Bit Addressing was used in order to show all details involved in initialization of UART.

This code example has been tested on Explorer 16 Development Board
with PIC24FJ128GA010, PIC24FJ256GA110 and PIC24FJ256GB110 PIMs.

Categories

Release History

  • Jun 21, 2012

    Version: 1.0.0

    First Release to ECS

Download Contact the Developer

*Required Fields

  • Current Version:1.0.0
  • Created:Jun 21, 2012
  • Updated:Feb 26, 2015
  • Downloads:5430
  • MPLAB Version:V8.xx or above
  • C Compiler:MCC18 v3.30 or above
  • Development Tools:Explorer 16 Demo board
  • Supported Devices:PIC24FJ128GA010 or PIC24FJ256GA110 or PIC24FJ256GB110

Corporate News

Resources

Stay Connected

Stay up to date with the latest news from Microchip Technology.