» Home

» Products

» Interfaces

» Lab

» Downloads

» Buy It

» Contact

» Links

|
» Lab » Hello Palm in "Framed mode" via SIrTx or InfraPIC
|
| Project: | Hello Palm in Framed Mode |
| Source Code: | PIC BASIC |
| PIC: | 16F628 |
| Interfaces: | SIrTx or InfraPIC |
| Author: | Ravi Deo |
| Last Updated: | 7th April 2005 |
|
Project Description:
This sample PIC project is based upon the typical "Hello World" program.
The PIC transmits the string "Hello Palm" repeatedly via Infra-red (using raw SIR mode).
This applications is developed using PIC BASIC Pro Compiler and the "SEROUT" command.
It demonstrates the use of framed data infra-red transmission and reception capability, end to end
(PIC to Palm). This project is most useful for PDAs which do not support raw SIR mode, but do support
framed mode (such as Palm Zire 21). Check the PDA compatability page for
further information.
This project is compatible with the SIrTx (in T9600 mode) or InfraPIC interface.
Hello Palm using "Framed mode" with PIC BASIC
: Zip file containing BAS and HEX files (approx 1KB).
Hardware Schematic

In the following code a 10 microsecond delay has been specified between characters (CHAR_PACING).
include "bs2defs.bas"
DEFINE CHAR_PACING 10
loop:
SEROUT PORTB.2,T9600,[192,"Hello Palm",10,193]
Goto loop
SirPic Communication and Options settings should be configured as shown below (Note: Port=Framed).

On starting the SirPic log session, you should see the following data being captured.

For PDA users which have raw SIR support, try switching back to raw SIR mode,
and you can see the unfiltered framing characters (0xC0 and 0xC1).
|
|