hd44780 display debugger
This commit is contained in:
7
assembly/README.txt
Normal file
7
assembly/README.txt
Normal file
@ -0,0 +1,7 @@
|
||||
Compilare assembly:
|
||||
z80asm -i hd44780_lcd_test_procedure.asm -o rom.bin
|
||||
Portare binario alla dimensione dell eeprom:
|
||||
dd if=/dev/zero of=rom.bin bs=1 count=0 seek=8192
|
||||
Scrivere su EEPROM:
|
||||
minipro -w rom.bin -p "AT28C64B"
|
||||
|
BIN
assembly/a.bin
BIN
assembly/a.bin
Binary file not shown.
@ -1,40 +1,39 @@
|
||||
;hd44780 lcd test procedure
|
||||
|
||||
ld hl,$4000 ;address reg points to lcd instruction address
|
||||
LCD_INSTR_REG: EQU %00000000
|
||||
LCD_DATA_REG: EQU %00000001
|
||||
|
||||
;reset procedure
|
||||
ld a,%00111000
|
||||
ld (hl),a
|
||||
out (LCD_INSTR_REG),a
|
||||
ld a,%00001000
|
||||
ld (hl),a
|
||||
out (LCD_INSTR_REG),a
|
||||
ld a,%00000001
|
||||
ld (hl),a
|
||||
out (LCD_INSTR_REG),a
|
||||
|
||||
;init procedure
|
||||
ld a,%00111000
|
||||
ld (hl),a
|
||||
out (LCD_INSTR_REG),a
|
||||
ld a,%00001110
|
||||
ld (hl),a
|
||||
out (LCD_INSTR_REG),a
|
||||
|
||||
;write characters to display
|
||||
ld hl,$4001 ;address reg points to lcd data address
|
||||
|
||||
ld a,%01000100
|
||||
ld (hl),a
|
||||
out (LCD_DATA_REG),a
|
||||
ld a,%01100001
|
||||
ld (hl),a
|
||||
out (LCD_DATA_REG),a
|
||||
ld a,%01101110
|
||||
ld (hl),a
|
||||
out (LCD_DATA_REG),a
|
||||
ld a,%01101001
|
||||
ld (hl),a
|
||||
out (LCD_DATA_REG),a
|
||||
ld a,%01100101
|
||||
ld (hl),a
|
||||
out (LCD_DATA_REG),a
|
||||
ld a,%01101100
|
||||
ld (hl),a
|
||||
out (LCD_DATA_REG),a
|
||||
ld a,%01100101
|
||||
ld (hl),a
|
||||
out (LCD_DATA_REG),a
|
||||
ld a,%00100001
|
||||
ld (hl),a
|
||||
out (LCD_DATA_REG),a
|
||||
|
||||
halt
|
||||
|
||||
|
Reference in New Issue
Block a user