» Home

  » Products

  » Interfaces

  » Lab

  » Downloads

  » Buy It

  » Contact

  » Links

» Lab » Half-Duplex Serial <-> Infra-Red Converter

Project:Half-Duplex Serial <-> Infra-Red Converter
Source Code:None
PIC:None
Interface:SerialPIC & InfraPIC
Author:Ravi Deo
Last Updated:7th April 2005

16f628 16f628

Project Description

This sample project demonstrates how to use the wired SerialPIC interface with the wireless InfraPIC interface, to create a half-duplex RS232 <-> Infra-Red Converter. In the above Lab setup, this converter allows a terminal emulator on the PC to communicate via the RS232 serial port, with the Palm PDA via the infra-red port. In a half-duplex system, only one device can transmit at any one time. Unlike a full-duplex system, where both devices can transmit and receive concurrently.

Hardware Schematic

In the schematic below, the Rx and Tx wires are crossed, as there is no intermediate PIC micro.

16f628

SirPic Settings

The SirPic Communication and Options settings should be configured as shown below. The terminal emulator should be configured for the COM port being used, and communication settings should match that of the Palm.

16f628   16f628

SirPic Output

Power up both modules, and begin logging data on SirPic and the terminal emulator. Using the grafitti pad, enter "A", this should be locally echoed on the PDA screen, and displayed on the terminal emulator. Similarly pressing the key "B" on the terminal emulator, should be locally echoed on the screen, and displayed on the PDA screen..