hw_lcd.h File Reference
LCD low-level hardware macros. More...
#include <appconfig.h>
#include <cpu/attr.h>
#include <cpu/irq.h>
#include <cpu/types.h>
#include <cfg/macros.h>
#include <cfg/debug.h>
#include <avr/io.h>
#include <stdbool.h>
#include <inttypes.h>
Go to the source code of this file.
Defines | |
| #define | LCD_DB_OUT (LCD_DB_DDR |= LCD_MASK) |
| Set data bus direction to output (write to display). | |
| #define | LCD_DB_IN (LCD_DB_DDR &= ~LCD_MASK) |
| Set data bus direction to input (read from display). | |
| #define | LCD_DELAY_WRITE |
| Delay for write (Enable pulse width, 220ns). | |
| #define | LCD_DELAY_READ |
| Delay for read (Data ouput delay time, 120ns). | |
LCD I/O pins/ports | |
| #define | LCD_RS BV(PG3) |
| #define | LCD_RW BV(PG0) |
| #define | LCD_E BV(PG2) |
| #define | LCD_DB0 BV(PA0) |
| #define | LCD_DB1 BV(PA1) |
| #define | LCD_DB2 BV(PA2) |
| #define | LCD_DB3 BV(PA3) |
| #define | LCD_DB4 BV(PA4) |
| #define | LCD_DB5 BV(PA5) |
| #define | LCD_DB6 BV(PA6) |
| #define | LCD_DB7 BV(PA7) |
DB high nibble (DB[4-7]) | |
| #define | LCD_PORT PORTG |
| #define | LCD_DB_PORT PORTA |
| #define | LCD_PIN PING |
| #define | LCD_DB_PIN PINA |
| #define | LCD_DDR DDRG |
| #define | LCD_DB_DDR DDRA |
| #define | LCD_MASK (uint8_t)0xff |
| #define | LCD_SHIFT 0 |
LCD bus control macros | |
| #define | LCD_CLR_RS (LCD_PORT &= ~LCD_RS) |
| #define | LCD_SET_RS (LCD_PORT |= LCD_RS) |
| #define | LCD_CLR_RD (LCD_PORT &= ~LCD_RW) |
| #define | LCD_SET_RD (LCD_PORT |= LCD_RW) |
| #define | LCD_CLR_E (LCD_PORT &= ~LCD_E) |
| #define | LCD_SET_E (LCD_PORT |= LCD_E) |
| #define | LCD_WRITE(x) (LCD_DB_PORT = (x)) |
| #define | LCD_READ (LCD_DB_PIN) |
Detailed Description
LCD low-level hardware macros.
- Version:
- Id
- hw_lcd.h 930 2007-10-23 14:48:48Z batt
Definition in file hw_lcd.h.
