Professional Documents
Culture Documents
DD1 - Alpha Numeric Display
DD1 - Alpha Numeric Display
DD1 - Alpha Numeric Display
uk
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
3E 7D 3D 20 FD 3E 00 D3 FF 3E 19 3D 20 FD 05 20 18 EB E4
Decrement B counter
Yes
No
18 1A
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