LCDInfo.com
http://forum.lcdinfo.com/

Interfacing to the HD61830 lcd controller
http://forum.lcdinfo.com/viewtopic.php?f=6&t=425
Page 1 of 1

Author:  Beefer3 [ Sat Nov 29, 2003 14:55 ]
Post subject:  Interfacing to the HD61830 lcd controller

Hey all
Does anyone know how to interface with the HD61830 controller? At this point I am just trying to get a blinking cursor on the LCD with dip switches as this example shows for the HD44780 http://www.epemag.wimborne.co.uk/resources.htm

I have the datasheet for the HD61830 and it tells me to set RS High and all data low. Then I assume you have to pulse enable low. Then set RS Low and data to '00111100'. Then pulse low again. This is supposed to put a blinking cursor (or just a plain cursor) on the screen. This does not work.

Has anyone interfaced with the HD61830 with success?

Any help is greatly appreciated.

Author:  Beefer3 [ Sat Nov 29, 2003 21:26 ]
Post subject: 

anyone?

Author:  Henri [ Sat Nov 29, 2003 22:46 ]
Post subject: 

I'm not looking into the datasheet now but I think that to get something showing you should first initialize the display with the settings for the particular size etc. and that would take many commands and I don't know if that would work with dip switches.

What are you planning to interface the display with ? In new LCDInfo there is a driver for HD61830 for PC parallel port connection.

Author:  Beefer3 [ Sun Nov 30, 2003 0:16 ]
Post subject: 

Thanks for your input Henri.

I am going to connect this to a PIC16F877A microcontroller. The whole idea is to interface with my home automation system using X10 modules. The only reason for the display is to have some graphical user interface. Basically, just a nice picture! :D

Where is this parallel software located? I would like to see if the display actually works.

To be honest I really have not tried to connect with the PIC just yet. I wanted to see if I could get the display working with the dip switches.

Thanks again!!

Author:  Henri [ Sun Nov 30, 2003 18:29 ]
Post subject: 

I have just sent you email with some simple test program attached.

Author:  beto1684 [ Tue Jan 31, 2006 14:27 ]
Post subject:  HD61830 + 18F452

I´m writting a source code for the HD61830 + PIC18F452. It is a commented code and contains some advanced functions you may like, for example: while in graph mode, you can put text string (4 fonts to choose) mixed with images.

It is available at: http://eletronica.50webs.com/

I hope it may help.

Roberto.

Author:  aktokluk [ Tue Sep 05, 2006 17:27 ]
Post subject:  hi

i have hd61830 chipset lcd screen. but don't work. where is the problems? i using this pic code;

DEVICE 16F628
CONFIG BODEN_ON,CP_OFF,WDT_OFF,PWRTE_OFF,LVP_OFF,MCLRE_OFF,BODEN_OFF,INTRC_OSC_NOCLKOUT
XTAL 4

ALL_DIGITAL = TRUE

DIM LCD_KOMUT AS BYTE,LCD_DATA AS BYTE,T AS BYTE

SYMBOL LCD_RESETB=PORTA.2
SYMBOL RS=PORTA.1
SYMBOL E=PORTA.0

TRISA=%00000000
TRISB=%00000000

DELAYMS 250
LCD_INIT:
DELAYMS 250:LOW LCD_RESETB:DELAYMS 250
HIGH LCD_RESETB
DELAYMS 250

GFX_MODE:
PORTB=0X00:GOSUB GONDER_KOMUT 'SET_LCD_MODE(0X00),0X32

PORTB=0X32:GOSUB GONDER_DATA 'SET_LCD_MODE(0X00),0X32
DELAYMS 100
PORTB=0X01:GOSUB GONDER_KOMUT 'SET_CH_PITCH(0X01),0X77
PORTB=0X77:GOSUB GONDER_DATA
DELAYMS 100
PORTB=0X02:GOSUB GONDER_KOMUT 'SET_CHAR_NUM=0X02),16-1
PORTB=15:GOSUB GONDER_DATA
DELAYMS 100
PORTB=0X03:GOSUB GONDER_KOMUT 'SET_TIME_DIVS(0X03),64-1
PORTB=63:GOSUB GONDER_DATA
DELAYMS 100
PORTB=0X04:GOSUB GONDER_KOMUT 'SET_CURS_POS(0X04), 8
PORTB=8:GOSUB GONDER_DATA
DELAYMS 100
PORTB=0X08:GOSUB GONDER_KOMUT 'SET_HOM_L_ADDR(0X08), 0
PORTB=0X00:GOSUB GONDER_DATA
DELAYMS 100
PORTB=0X09:GOSUB GONDER_KOMUT 'SET_HOM_H_ADDR(0X09), 0
PORTB=0X00:GOSUB GONDER_DATA
DELAYMS 100
PORTB=0X0A:GOSUB GONDER_KOMUT 'SET_CUR_L_ADDR(0X0A), 0
PORTB=0X00:GOSUB GONDER_DATA
DELAYMS 100
PORTB=0X0B:GOSUB GONDER_KOMUT 'SET_CUR_H_ADDR(0X0B), 0
PORTB=0X00:GOSUB GONDER_DATA
DELAYMS 100

'--------------------------------------------------------

FOR T=65 TO 100
PORTB=0X0C:GOSUB GONDER_KOMUT
DELAYMS 1
PORTB=T:GOSUB GONDER_DATA
DELAYMS 500
NEXT T
STOP

GONDER_KOMUT:
HIGH RS:DELAYUS 50
HIGH E
DELAYUS 100
LOW E
DELAYUS 100
RETURN

GONDER_DATA:
LOW RS:DELAYUS 50
HIGH E
DELAYUS 100
LOW E
DELAYUS 100
RETURN
END

Page 1 of 1 All times are UTC + 2 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/