DD1 - Alpha Numeric Display

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

EDUTEK Ltd www.edutek.ltd.

uk

EZ-CPU CONTROL SYSTEM PROGRAM: DESCRIPTION:

DRIVING DISPLAYS - 1
IP MODULE: OP MODULE: CPU SPEED: QSDD 1 KHz

ALPHA-NUMERIC DISPLAY Displays a series of segment codes read from a table in intervals of 0.5s.

Using indirect addressing, a list or table of segment codes can be sent to the output port. A delay to blank the display has been added to emphasise each character. This is almost exactly the same routine as for the light sequencer. Can you explain why? ADDR 00
Load HL = indirect address of table

START

INSTRUCTION LD HL,0x0080 LD B,5 LD A,(HL) OUT (255),A INC HL LD A,125 DEC A JR NZ 3 LD A,0 OUT (255),A LD A,25 DEC A JR NZ 3 DEC B JR NZ -12 JR -19 21 06 7E D3 23

CODE 80 05 00

03
Load B with length of table

05
Fetch value from table Send value to port Increment table address (HL)

06 08 09 0B 0C 0E 10 12 14 15 17

FF

Delay for 500ms

3E 7D 3D 20 FD 3E 00 D3 FF 3E 19 3D 20 FD 05 20 18 EB E4

Switch off display

Delay for 100ms

Decrement B counter

Yes

Does B=0? End of table?

No

18 1A

DATA TABLE ADDR 80 6E Table length = 5 bytes DATA 9E 1C 1C FC

To make your own characters, mark a 1 in the segments you want to light up then turn the value into HEXADECIMAL a b c d e f g dp Letter H = 6E 0 1 1 0 1 1 1 0

Written by Phil Townshend 31/10/04

You might also like