Professional Documents
Culture Documents
Scrolling Messg Display
Scrolling Messg Display
A3 BIT 80H.1; clear for brightness set, then set and leave set.
; to set brightness send the following out to the data
D_BUS.
; MSD-LSD 0=100% 1=80% 2=53% 3=40% 4=27% 5=20% 6=13%
7=blank
;
************************************************************************
***
;* FIRMWARE For Control Of The HDSP-2112 Display
*
;* A MOVING MESSAGE DISPLAY
*
;* FOR THE PHILLIPS 87C750 MICROCONTROLLER
*
;
************************************************************************
***
count: mov r7,#4 ; Load R7 with the number of times+1 you want
your
; message to be displayed before power down.
; a 4 here will play the message 3 times etc...
doit: xch a,@r0 ; SWAP ACC data with display RAM data
inc r0 ; increment to next RAM address
djnz r5,doit; check if END of RAM location, if not keep
going
mov r0,#20h; again load first RAM address
mov r4,#7 ; address to select first digit
; ( far right ) on display
acall msgout ; send message digit to display
ajmp fetch ; return to routine FETCH.
power_down: mov 87h,#2 ; Set bit "PD" of the PCON Special Function
Register
; This will cause the controller to Power Down.
; routine DELAY2 sets the SCROLL SPEED, and will prevent a JERKY
APPEARANCE
; between display digit updates. by changing the value first loaded into
; R1 in the first line to a lower number the scroll speed is faster, and
by
; changing it to a higher number the scroll speed will be slower.
END