EDF - OnePIC MCU  v1.1.0
source/8bit_IR/OnePIC_8bit_demo_irda.c File Reference

A bit-bang UART routine for the PICtail device which has an IrDA transciever and encoder/decoder. More...

#include <htc.h>
#include <stdio.h>
#include "bsp.h"
#include "OnePIC_8bit_demo_irda.h"
Include dependency graph for OnePIC_8bit_demo_irda.c:

Go to the source code of this file.

Functions

void irda_putch (char c)
 bit-bang IR byte
char irda_getch (void)
 receives one byte
char irda_getche (void)
 echos back whatever received

Detailed Description

A bit-bang UART routine for the PICtail device which has an IrDA transciever and encoder/decoder.

The encoder/decoder chip requires a 16x clock for correct operation (i.e baud rate * 16 = Fclk) => 9600*16 = 153.6KHz

MODEL #: TFDU6300 (transciever) MODEL #: MCP2122 (encoder/decoder)

Definition in file OnePIC_8bit_demo_irda.c.