EDF - OnePIC MCU
v1.1.0
|
Go to the source code of this file.
Defines | |
#define | IRDA_BRATE 9600 |
#define | NUM_DATA_BITS 8 |
#define | BIT_UDLY 104 |
mS delay period inbetween bits | |
#define | IRDA_TX PTP3_PORT |
#define | IRDA_RX PTP1_PORT |
#define | IRDA_16X_CLK PTP2_PORT |
#define | IRDA_16X_CLK_TRIS PTP2_TRIS |
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 |
Definition in file OnePIC_8bit_demo_irda.h.
#define BIT_UDLY 104 |
mS delay period inbetween bits
BIT_DLY |
uses the built in macro from HI-TECH to delay between bits. = 1/IRDA_BRATE = 1/9600 = 104us Be sure that this is micro seconds!!
Definition at line 22 of file OnePIC_8bit_demo_irda.h.
#define IRDA_16X_CLK PTP2_PORT |
IRDA_16X_CLK | the PWM pin for the MCP2122 |
Definition at line 29 of file OnePIC_8bit_demo_irda.h.
#define IRDA_16X_CLK_TRIS PTP2_TRIS |
IRDA_16X_CLKC_TRIS | tris pin for PWM |
Definition at line 30 of file OnePIC_8bit_demo_irda.h.
#define IRDA_BRATE 9600 |
IRDA_BRATE | baud rate for IR transfer |
Definition at line 11 of file OnePIC_8bit_demo_irda.h.
#define IRDA_RX PTP1_PORT |
IRDA_RX | rx pin |
Definition at line 26 of file OnePIC_8bit_demo_irda.h.
#define IRDA_TX PTP3_PORT |
IRDA_TX | tx pin |
Definition at line 25 of file OnePIC_8bit_demo_irda.h.
#define NUM_DATA_BITS 8 |
NUM_DATA_BITS | num of data bits |
Definition at line 12 of file OnePIC_8bit_demo_irda.h.