English
Language : 

PD243X Datasheet, PDF (5/7 Pages) OSRAM GmbH – Alphanumeric Programmable Display
Program listing
UDISP
’PD 2435 Display PROGRAM’
1
2
3
4
....
5
6
7
8
0000
9
10
0000 02000C
11
12
13
14
15
16
17
18
0003
19
20
0003 C0E0
21
0005 D2D5
22
0007 D0E0
23
0009 C289
24
000B 32
25
26
27
28
29
30
000C D282
31
000E 758110
32
0011 75D800
33
34
0014 C2D5
35
0016 7800
36
0018 79FF
37
001A 90F000
38
001D 7403
39
001F F0
40
0020 9000C2
41
0023 7820
42
0025 7D65
43
0027 7420
44
0029 F6
45
002A 08
46
002B DDFC
47
48
002D 12006C
49
0030 20D501
50
0033 0B
51
0034 7D65
52
0036 7820
53
0038 20D506
54
003B C6
55
003C 08
56
003D DDFC
57
003F 0158
58
0041 7421
59
0043 2B
60
$TITLE (‘PD 2435 DISPLAY PROGRAM’)
$MOD515
$NOSYMBOLS
CSEG
$DEBUG
BEGIN:
OPTS:
BLANK:
SHIF:
TEMP:
SHFT:
REV0:
ORG
00H
LJMP BEGIN
;Jump on reset
;
; This is the interrupt subroutine for INTO. This is used to set a flag
; which then indicates that the message needs to be rolled back.
;
;
ORG
03H
PUSH
SETB
POP
CLR
RETI
ACC
F0
ACC
IE0
;Set flag for external interrupt
; MAIN PROGRAM
;
;
SETB
MOV
MOV
P3.2
SP,#10H
ADCON, #00H
;Set bit for INT0
;Select analog channel 0
CLR
MOV
MOV
MOV
MOV
MOVX
MOV
MOV
MOV
MOV
MOV
INC
DJNZ
F0
R3,#00H
R1,#0FFH
DPTR,#0F000H
A,#03H
@DPTR,A
DPTR,#(TEXT-1)
R0,#20H
R5,#101
A,#20H
@R0,A
R0
R5, BLANK
;Clear flag 0
;Character pointer in the message
;R1 used as a flag
;Control register of all displays
;Control word for display
;Beginning of the text
;Internal RAM location
;A count for 101 characters
;ASCII for space
;Fill all locations with blank
CALL
JB
INC
MOV
MOV
JB
XCH
INC
DJNZ
AJMP
MOV
ADD
NEXTC
F0,TEMP
R3
R5,#101
R0,#20H
F0,REV0
A,@R0
R0
R5,SHFT
CONT0
A,#21H
A,R3
;Read the next character
;Check if the interrupt was raised
;If no interrupt
;Character count in message
;RAM location 20H
;If no interrupt
;Add the character
;To the top of the RAM buffer
;If there is no interrupt
;Offset for the RAM buffer
 2000 Infineon Technologies Corp. • Optoelectronics Division • San Jose, CA
www.infineon.com/opto • 1-888-Infineon (1-888-463-4636)
OSRAM Opto Semiconductors GmbH & Co. OHG • Regensburg, Germany
www.osram-os.com • +49-941-202-7178
5
Appnote 49
May 31, 2000-14