Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

HD44780 custom characters help [pic code]

Status
Not open for further replies.

Fletcher

New Member
im trying to make some code which will load a hd44780 display with custom characters, i cant seem to get it to work. heres my routine:
Code:
CSTCHRS
BSF LCD_CTRL,RS				;SET RS LINE HIGH (DATA MODE)
CLRF COUNT1					;CLEAR COUNTER
CST1 MOVF COUNT1,W			;COUNT VALUE INTO W
CALL CSTC					;GET TABLE DATA
MOVWF TEMP1					;SAVE IT
SUBLW 0X04					;IS DATA = 04H
SKPNZ						;SKIP IF IT ISNT
GOTO CST1E					;EXIT IF IS
MOVF TEMP1,W				;GET SAVED DATA
CALL SENDDATA				;SEND DATA TO CGRAM
INCF COUNT1,F				;INC COUNTER BY ONE FOR NEXT BYTE OF DATA
GOTO CST1					;LOOP
CST1E BCF LCD_CTRL,RS		;COMMAND MODE
RETURN						;RETURN

CSTC
ADDWF PCL,F
DT 00H,00H,00H,00H,00H,00H,07H,1FH,00H,00H,00H,00H,00H,0FH,1FH,1FH,04H

can anyone give me any hints?
 
4 bit ....16 values shouldent be that hard to work out.. why not create a thread of your own ..so we can go there when we want to see what yer up to. :wink:
 
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top