Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Thread

Dave vanHorn's 4bit LCD lib

Dave vanHorn's 4bit LCD lib

2008-03-27 by steamphreaque

Dave:

  Here is the doc from your code.   I am shocked!  You don't remember
what you wrote in 1989!??   What, are you getting old or something?  

*grin*

Thanks

;*****************************************************************
;HD44780 instruction set
;
;Instruction Code 		Description
;
;	R R D D D D D D D D
;	S W 7 6 5 4 3 2 1 0
;Clear	0 0 0 0 0 0 0 0 0 1  Clears display and returns cursor to the
home position (address 0) 1.64mS
;
;Home   0 0 0 0 0 0 0 0 1 X  Returns cursor to home position (address 0). 
;			     Also returns display being shifted the original position. 
;			     DDRAM contents remains unchanged. 1.64mS
;Entry mode set
;	0 0 0 0 0 0 0 1 I/D S	Sets cursor move direction (I/D), specifies to
shift the display (S).
;				These operations are performed during data read/write. 40uS
;Display On/Off control
;	0 0 0 0 0 0 1 D C B	Sets On/Off of all display (D), cursor On/Off
(C) and blink of cursor 
;				position character (B). 40uS
;Cursor/display shift
;	0 0 0 0 0 1 S/L R/L X X	Sets cursor-move or display-shift (S/C),
shift direction (R/L).
;				DDRAM contents remains unchanged. 40uS
;Function set
;	0 0 0 0 1 DL N F X X	Sets interface data length (DL), number of
display line (N) 
;				and character font(F). 40uS
;Set CGRAM address
;	0 0 0 1 CGRAM address	Sets the CGRAM address. 
;				CGRAM data is sent and received after this setting. 40uS
;Set DDRAM address
;	0 0 1 DDRAM address	Sets the DDRAM address.
;				DDRAM data is sent and received after this setting. 40uS        
                                                                40uS
;Read busy-flag and address counter
;	0 1 BF DDRAM address	Reads Busy-flag (BF) indicating internal operation
;				is being performed and reads address counter contents. 0uS
;Write to CGRAM or DDRAM
;	1 0 write data		Writes data to CGRAM or DDRAM. 40uS
;Read from CGRAM or DDRAM
;	1 1 read data 		Reads data from CGRAM or DDRAM. 40uS
;

Re: [AVR-Chat] Dave vanHorn's 4bit LCD lib

2008-03-27 by David VanHorn

Ok, at this point, I am just documenting all the features of the display.

I don't have the code here, can you email me the ZIP you're working from?
Show quoted textHide quoted text
On Thu, Mar 27, 2008 at 4:35 PM, steamphreaque <tjkeller@inetnebr.com> wrote:
> Dave:
>
>  Here is the doc from your code.   I am shocked!  You don't remember
> what you wrote in 1989!??   What, are you getting old or something?
>
> *grin*
>
> Thanks
>
> ;*****************************************************************
> ;HD44780 instruction set
> ;
> ;Instruction Code               Description
> ;
> ;       R R D D D D D D D D
> ;       S W 7 6 5 4 3 2 1 0
> ;Clear  0 0 0 0 0 0 0 0 0 1  Clears display and returns cursor to the
> home position (address 0) 1.64mS
> ;
> ;Home   0 0 0 0 0 0 0 0 1 X  Returns cursor to home position (address 0).
> ;                            Also returns display being shifted the original position.
> ;                            DDRAM contents remains unchanged. 1.64mS
> ;Entry mode set
> ;       0 0 0 0 0 0 0 1 I/D S   Sets cursor move direction (I/D), specifies to
> shift the display (S).
> ;                               These operations are performed during data read/write. 40uS
> ;Display On/Off control
> ;       0 0 0 0 0 0 1 D C B     Sets On/Off of all display (D), cursor On/Off
> (C) and blink of cursor
> ;                               position character (B). 40uS
> ;Cursor/display shift
> ;       0 0 0 0 0 1 S/L R/L X X Sets cursor-move or display-shift (S/C),
> shift direction (R/L).
> ;                               DDRAM contents remains unchanged. 40uS
> ;Function set
> ;       0 0 0 0 1 DL N F X X    Sets interface data length (DL), number of
> display line (N)
> ;                               and character font(F). 40uS
> ;Set CGRAM address
> ;       0 0 0 1 CGRAM address   Sets the CGRAM address.
> ;                               CGRAM data is sent and received after this setting. 40uS
> ;Set DDRAM address
> ;       0 0 1 DDRAM address     Sets the DDRAM address.
> ;                               DDRAM data is sent and received after this setting. 40uS
>                                                                40uS
> ;Read busy-flag and address counter
> ;       0 1 BF DDRAM address    Reads Busy-flag (BF) indicating internal operation
> ;                               is being performed and reads address counter contents. 0uS
> ;Write to CGRAM or DDRAM
> ;       1 0 write data          Writes data to CGRAM or DDRAM. 40uS
> ;Read from CGRAM or DDRAM
> ;       1 1 read data           Reads data from CGRAM or DDRAM. 40uS
> ;
>
>
> ------------------------------------
>
> Yahoo! Groups Links
>
>
>
>

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.