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

5-wire UART with Hardware Flow Control v1.1

Microchip Technology

This code example is a safe UART communication on RS-232 on Explorer 16 development board.

About this Code Example

This code example is a safe UART communication on RS-232 on Explorer 16 development board.
Baudrate 115200, 8-bit data, Odd, 1 Stop bit, Hardware Flow Control with CTS and RTS.

To run this code example, plug DB9 cable to Terminal (115200,8,Odd,1,HW).
If the data sent from TERMINAL including 4 continuous bytes of "mchp",
0b01010101 will be displayed on LEDs of Explorer 16 development board.
Otherwise, LED will be 0b00101010.

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 22, 2012

    Version: 1.0.0

    First Release to ECS

Download Contact the Developer

*Required Fields

  • Current Version:1.0.0
  • Created:Jun 23, 2012
  • Updated:Feb 26, 2015
  • Downloads:4082
  • MPLAB Version:V8.xx or above
  • C Compiler:V8.xx 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.