Aguijón Software Libraries
1.0
Documentation for the included Libraries
|
#include <libpic30.h>
Go to the source code of this file.
Macros | |
#define | FCY 2000000 |
MCU frequency = 2MHz. | |
#define | delayms(x) __delay_ms(x); |
Included delay function. | |
#define | TRUE 1 |
#define | FALSE 0 |
#define | ON 0 |
To make toggling easier. | |
#define | OFF 1 |
To make toggling easier. | |
#define | I2C_HW |
I2C via hardware. | |
#define | RST LATDbits.LATD11 |
LCD reset. | |
#define | SCL LATDbits.LATD10 |
Main I2C BUS clock line. | |
#define | SDA LATDbits.LATD9 |
Main I2C BUS data line. | |
#define | SCL_TRIS TRISDbits.TRISD10 |
#define | SDA_TRIS TRISDbits.TRISD9 |
#define | RST_TRIS TRISDbits.TRISD11 |
#define | SDA_READ PORTDbits.RD9 |
#define | STX 2 |
Start transmission. | |
#define | ETX 13 |
End transmission. | |
#define | RELAY 0x0A |
Used for test mode. | |
#define | OCOUT 0x0B |
Used for test mode. | |
#define | LEDPT 0x0C |
Used for test mode. | |
#define | BUZZ 0x0E |
Used for test mode. | |
#define | OII 0x1A |
Used for test mode. | |
#define | DIPSW 0x1B |
Used for test mode. | |
#define | PT10K 0x1C |
Used for test mode. | |
#define | OPTO1 PORTBbits.RB0 |
Opto Isolated input #1. | |
#define | OPTO2 PORTBbits.RB1 |
Opto Isolated input #2. | |
#define | OPTO3 PORTBbits.RB2 |
Opto Isolated input #3. | |
#define | OPTO4 PORTBbits.RB3 |
Opto Isolated input #4. | |
#define | SW1 PORTBbits.RB13 |
Keyboard switch #1. | |
#define | SW2 PORTBbits.RB12 |
Keyboard switch #2. | |
#define | SW3 PORTBbits.RB11 |
Keyboard switch #3. | |
#define | SW4 PORTBbits.RB10 |
Keyboard switch #4. | |
#define | DIP1_5 PORTBbits.RB10 |
DIP Switch #1 & #5. | |
#define | DIP2_6 PORTBbits.RB11 |
DIP Switch #2 & #6. | |
#define | DIP3_7 PORTBbits.RB12 |
DIP Switch #3 & #7. | |
#define | DIP4_8 PORTBbits.RB13 |
DIP Switch #4 & #8. | |
#define | DSWLSBE LATFbits.LATF1 |
DIP SW control line #1. | |
#define | DSWMSBE LATFbits.LATF0 |
DIP SW control line #2. | |
#define | DMSB 0 |
Enables the MSB bits for the DIP SW. | |
#define | DLSB 1 |
Enables the LSB bits for the DIP SW. | |
#define | DDIS 2 |
Disables DIP SW both MSB & LSB nibbles. | |
#define | BLI4 800 |
Highest intensity. | |
#define | BLI3 1600 |
Intensity #3. | |
#define | BLI2 2400 |
Intensity #2. | |
#define | BLI1 3040 |
Lowest intensity. | |
#define | RLY1 LATDbits.LATD7 |
#define | RLY2 LATDbits.LATD6 |
#define | RLY3 LATDbits.LATD5 |
#define | RLY4 LATDbits.LATD4 |
#define | OC1 LATDbits.LATD3 |
#define | OC2 LATDbits.LATD2 |
#define | OC3 LATDbits.LATD1 |
#define | OC4 LATDbits.LATD0 |
#define | LED1 LATEbits.LATE0 |
#define | LED2 LATEbits.LATE1 |
#define | LED3 LATEbits.LATE2 |
#define | LED4 LATEbits.LATE3 |
#define | LED5 LATEbits.LATE4 |
#define | LED6 LATEbits.LATE5 |
#define | LED7 LATEbits.LATE6 |
#define | LED8 LATEbits.LATE7 |
#define | BUZZER LATGbits.LATG7 |
#define BLI1 3040 |
Lowest intensity.
Definition at line 102 of file definitions.h.
#define BLI2 2400 |
Intensity #2.
Definition at line 100 of file definitions.h.
#define BLI3 1600 |
Intensity #3.
Definition at line 98 of file definitions.h.
#define BLI4 800 |
Highest intensity.
Definition at line 96 of file definitions.h.
#define BUZZ 0x0E |
Used for test mode.
Definition at line 44 of file definitions.h.
#define BUZZER LATGbits.LATG7 |
Definition at line 125 of file definitions.h.
#define DDIS 2 |
Disables DIP SW both MSB & LSB nibbles.
Definition at line 92 of file definitions.h.
#define delayms | ( | x | ) | __delay_ms(x); |
Included delay function.
Definition at line 7 of file definitions.h.
#define DIP1_5 PORTBbits.RB10 |
DIP Switch #1 & #5.
Definition at line 74 of file definitions.h.
#define DIP2_6 PORTBbits.RB11 |
DIP Switch #2 & #6.
Definition at line 76 of file definitions.h.
#define DIP3_7 PORTBbits.RB12 |
DIP Switch #3 & #7.
Definition at line 78 of file definitions.h.
#define DIP4_8 PORTBbits.RB13 |
DIP Switch #4 & #8.
Definition at line 80 of file definitions.h.
#define DIPSW 0x1B |
Used for test mode.
Definition at line 48 of file definitions.h.
#define DLSB 1 |
Enables the LSB bits for the DIP SW.
Definition at line 90 of file definitions.h.
#define DMSB 0 |
Enables the MSB bits for the DIP SW.
Definition at line 88 of file definitions.h.
#define DSWLSBE LATFbits.LATF1 |
DIP SW control line #1.
Definition at line 83 of file definitions.h.
#define DSWMSBE LATFbits.LATF0 |
DIP SW control line #2.
Definition at line 85 of file definitions.h.
#define ETX 13 |
End transmission.
Definition at line 35 of file definitions.h.
#define FALSE 0 |
Definition at line 10 of file definitions.h.
#define FCY 2000000 |
MCU frequency = 2MHz.
Definition at line 4 of file definitions.h.
#define I2C_HW |
I2C via hardware.
Definition at line 18 of file definitions.h.
#define LED1 LATEbits.LATE0 |
Definition at line 116 of file definitions.h.
#define LED2 LATEbits.LATE1 |
Definition at line 117 of file definitions.h.
#define LED3 LATEbits.LATE2 |
Definition at line 118 of file definitions.h.
#define LED4 LATEbits.LATE3 |
Definition at line 119 of file definitions.h.
#define LED5 LATEbits.LATE4 |
Definition at line 120 of file definitions.h.
#define LED6 LATEbits.LATE5 |
Definition at line 121 of file definitions.h.
#define LED7 LATEbits.LATE6 |
Definition at line 122 of file definitions.h.
#define LED8 LATEbits.LATE7 |
Definition at line 123 of file definitions.h.
#define LEDPT 0x0C |
Used for test mode.
Definition at line 42 of file definitions.h.
#define OC1 LATDbits.LATD3 |
Definition at line 111 of file definitions.h.
#define OC2 LATDbits.LATD2 |
Definition at line 112 of file definitions.h.
#define OC3 LATDbits.LATD1 |
Definition at line 113 of file definitions.h.
#define OC4 LATDbits.LATD0 |
Definition at line 114 of file definitions.h.
#define OCOUT 0x0B |
Used for test mode.
Definition at line 40 of file definitions.h.
#define OFF 1 |
To make toggling easier.
Definition at line 15 of file definitions.h.
#define OII 0x1A |
Used for test mode.
Definition at line 46 of file definitions.h.
#define ON 0 |
To make toggling easier.
Definition at line 13 of file definitions.h.
#define OPTO1 PORTBbits.RB0 |
Opto Isolated input #1.
Definition at line 55 of file definitions.h.
#define OPTO2 PORTBbits.RB1 |
Opto Isolated input #2.
Definition at line 57 of file definitions.h.
#define OPTO3 PORTBbits.RB2 |
Opto Isolated input #3.
Definition at line 59 of file definitions.h.
#define OPTO4 PORTBbits.RB3 |
Opto Isolated input #4.
Definition at line 61 of file definitions.h.
#define PT10K 0x1C |
Used for test mode.
Definition at line 50 of file definitions.h.
#define RELAY 0x0A |
Used for test mode.
Definition at line 38 of file definitions.h.
#define RLY1 LATDbits.LATD7 |
Definition at line 106 of file definitions.h.
#define RLY2 LATDbits.LATD6 |
Definition at line 107 of file definitions.h.
#define RLY3 LATDbits.LATD5 |
Definition at line 108 of file definitions.h.
#define RLY4 LATDbits.LATD4 |
Definition at line 109 of file definitions.h.
#define RST LATDbits.LATD11 |
LCD reset.
Definition at line 20 of file definitions.h.
#define RST_TRIS TRISDbits.TRISD11 |
Definition at line 27 of file definitions.h.
#define SCL LATDbits.LATD10 |
Main I2C BUS clock line.
Definition at line 22 of file definitions.h.
#define SCL_TRIS TRISDbits.TRISD10 |
Definition at line 25 of file definitions.h.
#define SDA LATDbits.LATD9 |
Main I2C BUS data line.
Definition at line 24 of file definitions.h.
#define SDA_READ PORTDbits.RD9 |
Definition at line 28 of file definitions.h.
#define SDA_TRIS TRISDbits.TRISD9 |
Definition at line 26 of file definitions.h.
#define STX 2 |
Start transmission.
Definition at line 33 of file definitions.h.
#define SW1 PORTBbits.RB13 |
Keyboard switch #1.
Definition at line 65 of file definitions.h.
#define SW2 PORTBbits.RB12 |
Keyboard switch #2.
Definition at line 67 of file definitions.h.
#define SW3 PORTBbits.RB11 |
Keyboard switch #3.
Definition at line 69 of file definitions.h.
#define SW4 PORTBbits.RB10 |
Keyboard switch #4.
Definition at line 71 of file definitions.h.
#define TRUE 1 |
Definition at line 9 of file definitions.h.