EDF - OnePIC MCU  v1.1.0
IrDA PICtail
Collaboration diagram for IrDA PICtail:

Files

file  OnePIC_8bit_demo_irda.h

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

Function Documentation

char irda_getch ( void  )

receives one byte

lets just use a baud rate of 9600 since this is bit-banged! A higher baudrate may be achievable, no guarentee that the data will be accurate

Returns:
char received byte
Note:
writing delay loops directly in 'C' is a very bad idea! The actual delay will depend on the accuracy of the compiler. Use a predefined macro instead or use in-line assembly!

Definition at line 59 of file OnePIC_8bit_demo_irda.c.

Here is the caller graph for this function:

char irda_getche ( void  )

echos back whatever received

Returns:
char received byte

Definition at line 80 of file OnePIC_8bit_demo_irda.c.

Here is the call graph for this function:

void irda_putch ( char  c)

bit-bang IR byte

lets just use a baud rate of 9600 since this is bit-banged! A higher baudrate may be achievable, no guarentee that the data will be accurate

Parameters:
cchar byte to send
Note:
writing delay loops directly in 'C' is a very bad idea! The actual delay will depend on the accuracy of the compiler. Use a predefined macro instead or use in-line assembly!

start bit is always a 0

stop bit always a 1

Definition at line 33 of file OnePIC_8bit_demo_irda.c.

Here is the caller graph for this function: