EDF - OnePIC MCU  v1.1.0
source/8bit_IR/OnePIC_8bit_demo_irda.h
Go to the documentation of this file.
00001 
00006 #ifndef _ONEPIC_8BIT_DEMO_IRDA_H_
00007 #define _ONEPIC_8BIT_DEMO_IRDA_H_
00008 
00009 
00010 //Baud rate
00011 #define IRDA_BRATE              9600 
00012 #define NUM_DATA_BITS           8 
00022 #define BIT_UDLY   104
00023 
00024 //Transmit and Receive port bits
00025 #define IRDA_TX         PTP3_PORT  
00026 #define IRDA_RX         PTP1_PORT  
00028 //MCP2122 16x clock
00029 #define IRDA_16X_CLK         PTP2_PORT 
00030 #define IRDA_16X_CLK_TRIS    PTP2_TRIS 
00032 //Prototypes
00033 void irda_putch(char c);
00034 char irda_getch(void);
00035 char irda_getche(void);
00036 
00037 #endif