HD44780 update:

- howto updated
- input pin readout reversed
- 4bit and serialLpt init timing modified
This commit is contained in:
robijn
2002-02-22 01:13:24 +00:00
parent fc92898174
commit b3e1506ffa
6 changed files with 73 additions and 31 deletions
+14 -12
View File
@@ -23,21 +23,23 @@
/* Output data
* Write to baseaddress+0
*/
// Straight-forward use, no defines needed for this...
/* Straight-forward use, no defines needed for this... */
/* Control output lines
* Write to baseaddress+2
*/
#define nSTRB 0x01 /* negative logic */
#define nSTRB 0x01 /* pin 1; negative logic */
#define STRB 0x01
#define nLF 0x02
#define nLF 0x02 /* pin 14 */
#define LF 0x02
#define INIT 0x04 /* the only positive logic output line */
#define nSEL 0x08
#define INIT 0x04 /* pin 16; the only positive logic output line */
#define nSEL 0x08 /* pin 17 */
#define SEL 0x08
#define ENIRQ 0x10 /* Enable IRQ via ACK line */
#define ENBI 0x20 /* Enable bi-directional port */
#define ENIRQ 0x10 /* Enable IRQ via ACK line (don't enable this without
* setting up interrupt stuff too) */
#define ENBI 0x20 /* Enable bi-directional port (is nice to play with!
* I first didn't know a SPP could do this) */
#define OUTMASK 0x0B /* SEL, LF and STRB are hardware inverted */
/* Use this mask only for the control output lines */
@@ -47,13 +49,13 @@
/* Control input lines
* Read from baseaddress+1
*/
#define nFAULT 0x08
#define nFAULT 0x08 /* pin 15 */
#define FAULT 0x08
#define SELIN 0x10
#define PAPEREND 0x20
#define nACK 0x40
#define SELIN 0x10 /* pin 13 */
#define PAPEREND 0x20 /* pin 12 */
#define nACK 0x40 /* pin 10 */
#define ACK 0x40
#define BUSY 0x80
#define BUSY 0x80 /* pin 11 */
#define IRQ 0x02
#define INMASK 0x84 /* BUSY input and the IRQ indicator are inverted */