Difference between revisions of "HD44780"
Line 20: | Line 20: | ||
= Pinning = | = Pinning = | ||
+ | |||
== Direct == | == Direct == | ||
− | < | + | The following example maps the LCD pins to AVR port pins found on the 25 pin Sub-D connector of the Pollin AVR Net-IO board: |
+ | <code> | ||
dnl Direct connection example | dnl Direct connection example | ||
dnl map LCD pins to Pollin AVR Net-IO | dnl map LCD pins to Pollin AVR Net-IO | ||
Line 40: | Line 42: | ||
pin(HD44780_BL, PC6, OUTPUT) | pin(HD44780_BL, PC6, OUTPUT) | ||
') | ') | ||
− | </ | + | </code> |
== I2C == | == I2C == | ||
Line 69: | Line 71: | ||
</pre> | </pre> | ||
Pinning: | Pinning: | ||
− | < | + | <code> |
− | ifelse(value_HD44780_CONNECTION,`HD44780_I2CSUPPORT',`dnl | + | ifelse(value_HD44780_CONNECTION,`HD44780_I2CSUPPORT',`dnl |
− | + | dnl HD44780_PCF8574x_MAPPING(ADR,RS,RW,EN,DB4,DB5,DB6,DB7,BL) | |
− | + | HD44780_PCF8574x_MAPPING(0x20, 4, 5, 6, 0, 1, 2, 3, 7) | |
− | ')dnl | + | ')dnl |
− | </ | + | </code> |
=== using MCP23017 === | === using MCP23017 === |
Revision as of 21:18, 5 December 2016
HD44780 | |
---|---|
Status | Stable
|
menuconfig | I/O->LCD Displays->HD44780 module driver (Character-LCD) |
Pinning | yes |
Ecmd | yes |
Control6 | yes |
Depends on | ECMD |
Requires | - |
Code | https://github.com/ethersex/ethersex/tree/master/hardware/lcd |
THIS WIKI PAGE IS CURRENTLY WORK IN PROGRESS
The HD44780 module provides support for common alphanumeric character LCDs using Hitachis HD44780 and compatible controllers.
Contents
Supported LC-Displays
Pinning
Direct
The following example maps the LCD pins to AVR port pins found on the 25 pin Sub-D connector of the Pollin AVR Net-IO board:
dnl Direct connection example dnl map LCD pins to Pollin AVR Net-IO dnl 25 pin extension port ifdef(`conf_HD44780', ` pin(HD44780_RS, PC4) pin(HD44780_RW, PC3) pin(HD44780_EN1, PC2) dnl pin(HD44780_EN2, PC5) pin(HD44780_D4, PA0) pin(HD44780_D5, PA1) pin(HD44780_D6, PA2) pin(HD44780_D7, PA3) ') ifdef(`conf_HD44780_BACKLIGHT', ` pin(HD44780_BL, PC6, OUTPUT) ')
I2C
using PCF8574x
/* * HD44780-Display über PCF8574 ansteuern. * Belegung Pollin Add-On-Board: * * Pin PCF8574 Pin am LCD * 4 (P0) -> 11 (DB4) * 5 (P1) -> 12 (DB5) * 6 (P2) -> 13 (DB6) * 7 (P3) -> 14 (DB7) * 9 (P4) -> 4 (RS) * 10 (P5) -> 5 (R/W) nicht benutzt ! * 11 (P6) -> 6 (EN) * 12 (P7) -> 15 (Beleuchtung) * * Die LCD-Beleuchtung an Pin 12 wird über einen * PNP-Transistor geschaltet. * Beleuchtung an: Bit 7=0 * Beleuchtung aus: Bit 7=1 * Die Address-Eingänge A0 bis A2 des PCF8574 liegen alle auf GND. * Die Basis-Addresse des Chips ist daher immer 0x20. */
Pinning:
ifelse(value_HD44780_CONNECTION,`HD44780_I2CSUPPORT',`dnl dnl HD44780_PCF8574x_MAPPING(ADR,RS,RW,EN,DB4,DB5,DB6,DB7,BL) HD44780_PCF8574x_MAPPING(0x20, 4, 5, 6, 0, 1, 2, 3, 7) ')dnl