Hi everyone,
Having been into picaxe for only for a short time, i am in need of
some help.
I have a project where i need to display a word eg, "ALARM" on an
intelligent led display HCMS-2911.
http://web.mit.edu/6.111/www/s2004/NEWKIT/datasheets/HCMS-2973.pdf
This may help also...
http://www.avagotech.com/pc/downloadDocument.do?id=3668
Understanding the concept of how the display works is no problem,
but how to use the PICAXE to display text, is at this stage not
coming to me. I have managed to write a program that displays three
boxes that move from right to left, 10 times and then puts the
display into sleep mode, but i think i'm going the long and wrong
way about it. Perhaps someone could write a shorter example using
the word "ALARM" in so i can see how it works. This is my LONG
CODE...
activate:
if pin7= 1 then word0
goto activate
word0:
for b1= 1 to 2
pause 10
high 5 'select control register
pause 10
low 7 'chip enable
pause 10
Control word0, Brightness.
pulsout 6,250 '0 clock
high 4 data high,etc
pulsout 6,250 '1
high 4
pulsout 6,250 '1
low 4 data low,etc
pulsout 6,250 '0
high 4
pulsout 6,250 '1
high 4
pulsout 6,250 '1
high 4
pulsout 6,250 '1
high 4
pulsout 6,250 '1
high 7
pause 10
high 5
pause 10
low 7
high 4
pulsout 6,250 '1 Control word1.
low 4
pulsout 6,250 '0
low 4
pulsout 6,250 '0
low 4
pulsout 6,250 '0
low 4
pulsout 6,250 '0
low 4
pulsout 6,250 '0
low 4
pulsout 6,250 '0
high 4
pulsout 6,250 '1
low 4
high 7
next b1
goto main1
main1: 'Three boxes scrolling from right to left.
for b3= 1 to 10
if pin0= 1 then sleepy
low 5
pause 10
low 7
pause 10
for b2=1 to 3
for b0= 1 to 40
high 4
pulsout 6,250
next b0
pulsout 7,250
next b2
gosub clear
next b3
goto sleepy
clear: 'Clear all boxes.
pause 10
low 5
pause 10
low 7
for b2= 1 to 8
for b0= 1 to 40
low 4
pulsout 6,250
next b0
pulsout 7,250
next b2
return
sleepy:
for b1= 1 to 2
pause 10
high 5
pause 10
low 7
pause 10
low 4
'Control word0,Sleepmode.
pulsout 6,250 '0
low 4
pulsout 6,250 '0 ' this is the sleep bit
high 4
pulsout 6,250 '1
low 4
pulsout 6,250 '0
high 4
pulsout 6,250 '1
high 4
pulsout 6,250 '1
high 4
pulsout 6,250 '1
high 4
pulsout 6,250 '1
low 4
high 7
pause 10
high 5
pause 10
low 7
high 4
pulsout 6,250 '1 'Control word1.
low 4
pulsout 6,250 '0
low 4
pulsout 6,250 '0
low 4
pulsout 6,250 '0
low 4
pulsout 6,250 '0
low 4
pulsout 6,250 '0
low 4
pulsout 6,250 '0
high 4
pulsout 6,250 '1
low 4
high 7
next b1
pause 10
low 5
pause 10
low 7
gosub clear
goto activate
PS: Contol word0 and word1 control brightness,sleep mode etc...
i am using a picaxe 28X
Many, many thanks... Kurt
Having been into picaxe for only for a short time, i am in need of
some help.
I have a project where i need to display a word eg, "ALARM" on an
intelligent led display HCMS-2911.
http://web.mit.edu/6.111/www/s2004/NEWKIT/datasheets/HCMS-2973.pdf
This may help also...
http://www.avagotech.com/pc/downloadDocument.do?id=3668
Understanding the concept of how the display works is no problem,
but how to use the PICAXE to display text, is at this stage not
coming to me. I have managed to write a program that displays three
boxes that move from right to left, 10 times and then puts the
display into sleep mode, but i think i'm going the long and wrong
way about it. Perhaps someone could write a shorter example using
the word "ALARM" in so i can see how it works. This is my LONG
CODE...
activate:
if pin7= 1 then word0
goto activate
word0:
for b1= 1 to 2
pause 10
high 5 'select control register
pause 10
low 7 'chip enable
pause 10
Control word0, Brightness.
pulsout 6,250 '0 clock
high 4 data high,etc
pulsout 6,250 '1
high 4
pulsout 6,250 '1
low 4 data low,etc
pulsout 6,250 '0
high 4
pulsout 6,250 '1
high 4
pulsout 6,250 '1
high 4
pulsout 6,250 '1
high 4
pulsout 6,250 '1
high 7
pause 10
high 5
pause 10
low 7
high 4
pulsout 6,250 '1 Control word1.
low 4
pulsout 6,250 '0
low 4
pulsout 6,250 '0
low 4
pulsout 6,250 '0
low 4
pulsout 6,250 '0
low 4
pulsout 6,250 '0
low 4
pulsout 6,250 '0
high 4
pulsout 6,250 '1
low 4
high 7
next b1
goto main1
main1: 'Three boxes scrolling from right to left.
for b3= 1 to 10
if pin0= 1 then sleepy
low 5
pause 10
low 7
pause 10
for b2=1 to 3
for b0= 1 to 40
high 4
pulsout 6,250
next b0
pulsout 7,250
next b2
gosub clear
next b3
goto sleepy
clear: 'Clear all boxes.
pause 10
low 5
pause 10
low 7
for b2= 1 to 8
for b0= 1 to 40
low 4
pulsout 6,250
next b0
pulsout 7,250
next b2
return
sleepy:
for b1= 1 to 2
pause 10
high 5
pause 10
low 7
pause 10
low 4
'Control word0,Sleepmode.
pulsout 6,250 '0
low 4
pulsout 6,250 '0 ' this is the sleep bit
high 4
pulsout 6,250 '1
low 4
pulsout 6,250 '0
high 4
pulsout 6,250 '1
high 4
pulsout 6,250 '1
high 4
pulsout 6,250 '1
high 4
pulsout 6,250 '1
low 4
high 7
pause 10
high 5
pause 10
low 7
high 4
pulsout 6,250 '1 'Control word1.
low 4
pulsout 6,250 '0
low 4
pulsout 6,250 '0
low 4
pulsout 6,250 '0
low 4
pulsout 6,250 '0
low 4
pulsout 6,250 '0
low 4
pulsout 6,250 '0
high 4
pulsout 6,250 '1
low 4
high 7
next b1
pause 10
low 5
pause 10
low 7
gosub clear
goto activate
PS: Contol word0 and word1 control brightness,sleep mode etc...
i am using a picaxe 28X
Many, many thanks... Kurt