Source file for alphanumeric display driver. More...
Macros | |
#define | LCD_DATA_ALL |
All data port bits in order. More... | |
Instructions execution time | |
Constants that defines execution time for instructions. Values there have to be defined only if we cannot read busy flag (if ALCD_RW is not connected). | |
#define | ALCD_LONG_DELAY (5.0e-3) |
Define bus size. More... | |
#define | ALCD_SHORT_DELAY (120.0e-6) |
Delay of short instruction. More... | |
Functions | |
static void | alcd_modeWData (void) |
Set Write Data mode. More... | |
static void | alcd_modeWInstr (void) |
Set Write Instruction mode. More... | |
static void | alcd_modeRInstr (void) |
Set Read Instruction mode. More... | |
static void | alcd_modeRDataAfterRInstr (void) |
Set Read Data mode. More... | |
static void | alcd_enableOn (void) |
Turn on enable output. More... | |
static void | alcd_enableOff (void) |
Turn off enable output. More... | |
static void | alcd_enablePulse (void) |
Generates pulse on Enable line. More... | |
static void | alcd_waitLong (void) |
Wait for a long instruction. More... | |
static void | alcd_waitShort (void) |
Wait for a short instruction. More... | |
static void | alcd_send8 (uint8_t cmd) |
Write data in 8 bit mode. More... | |
static void | alcd_send4 (uint8_t cmd) |
Write data in 4 bit mode. More... | |
static void | alcd_send (uint8_t cmd) |
Write data in any mode. More... | |
static uint8_t | alcd_get8 (void) |
Read data in 8 bit mode. More... | |
static uint8_t | alcd_get4 (void) |
Read data in 4 bit mode. More... | |
static uint8_t | alcd_get (void) |
Read data in any mode. More... | |
static void | alcd_waitBusy (void) |
Wait for busy flag. More... | |
void | alcd_cmd (uint8_t cmd) |
Send single command byte. More... | |
void | alcd_data (uint8_t data) |
Send signle data byte. More... | |
char | alcd_rdata (void) |
Function to read one character from LCD. More... | |
void | alcd_init (void) |
Initialize LCD. More... | |
void | alcd_puts (const char *pstr) |
Put string. More... | |
void | alcd_puts_P (const __flash char *pstr) |
Put string from program memory. More... | |
void | alcd_read (char *pstr, uint8_t size) |
Read data block. More... | |
void | alcd_defineChar (char c, const char *ppat) |
Define special character pattern. More... | |
void | alcd_defineChar_P (char c, const __flash char *ppat) |
Define special character pattern from program memory. More... | |
void | alcd_readDefinedChar (char c, char *ppat) |
Read defined character pattern. More... | |