Nut/OS  4.10.3
API Reference
hd44780_bus.c File Reference

Terminal device definitions for memory mapped lcd. More...

#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <sys/nutconfig.h>
#include <dev/hd44780_bus.h>
#include <dev/term.h>
#include <sys/timer.h>
Include dependency graph for hd44780_bus.c:

Go to the source code of this file.

Defines

#define LCD_2x16
#define LCD_DELAY   asm volatile ("nop"); asm volatile ("nop")

Variables

TERMDCB dcb_term
 Terminal device control block structure.
NUTDEVICE devLcdBus
 LCD device information structure.

Detailed Description

Terminal device definitions for memory mapped lcd.

This is a terminal device driver for a memory mapped hd44780 compatible lcd. It is connected to the databus / adressbus. A Chipselect is generated from /rd, /wr, and the address decoder. It is connected to the lcds enable signal. A0 is connected to the register select pin and A1 to the read/write signal. Therefore you'll read from an address with an offset of two

Have a look to our m-can board if you have questions.

Definition in file hd44780_bus.c.


Define Documentation

#define LCD_2x16

Definition at line 112 of file hd44780_bus.c.

#define LCD_DELAY   asm volatile ("nop"); asm volatile ("nop")

Definition at line 124 of file hd44780_bus.c.