EDF - OnePIC MCU  Preliminary v0.7.0
8bit_IR/irda_uart.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 "irda_uart.h"
Include dependency graph for irda_uart.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 = Fclkc) => 9600*16 = 153.6KHz

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

Definition in file irda_uart.c.