EmbeddedRelated.com
Forums
Memfault Beyond the Launch

Lascar DDM4

Started by kenrv8 January 9, 2004
Has anyone seen or written code to write to the Lascar Electronics
DDM4 LCD display? It's a serial interface, but doesn't have onboard
decoding. You have to send the status of each segment.

If I can't find anything I was planning on using the the code for the
LCD interface using the 74x595 as a starting point.

Thanks.

Ken



Oooh that one scores a 1 out of 1 to 5 for ease.
look at
http://www.ami.ac.uk/courseware/micros/restricted/ch6/micro06notes.html

Don Lewis --- In , "kenrv8" <ken@t...> wrote:
> Has anyone seen or written code to write to the Lascar Electronics
> DDM4 LCD display? It's a serial interface, but doesn't have onboard
> decoding. You have to send the status of each segment.
>
> If I can't find anything I was planning on using the the code for the
> LCD interface using the 74x595 as a starting point.
>
> Thanks.
>
> Ken




--- In , "kenrv8" <ken@t...> wrote:
> Has anyone seen or written code to write to the Lascar Electronics
> DDM4 LCD display?

There's a Yahoo group for a compiled language called JAL for the PIC
16F84. One of the members posted some code to drive the DDM4.
(You'll have to join the group to access the files, of course.)

http://groups.yahoo.com/group/jallist/files/Ian%20Forse/

You might be able to get some ideas from the code. You might even be
able to munge it into BasicX code if it fits closely with what you
want to do.

Don


Thanks for the link. I've seen that one before, but I'm not sure it provides much help. I guess I should have been more specific in my question and asked for code that will run on the BX24 or could be easily modified.

Ken ---------- Original Message ----------------------------------
From: "Don Lewis" <>
Reply-To:
Date: Fri, 09 Jan 2004 23:22:33 -0000

>Oooh that one scores a 1 out of 1 to 5 for ease.
>look at
>http://www.ami.ac.uk/courseware/micros/restricted/ch6/micro06notes.html
>
>Don Lewis >--- In , "kenrv8" <ken@t...> wrote:
>> Has anyone seen or written code to write to the Lascar Electronics
>> DDM4 LCD display? It's a serial interface, but doesn't have onboard
>> decoding. You have to send the status of each segment.
>>
>> If I can't find anything I was planning on using the the code for the
>> LCD interface using the 74x595 as a starting point.
>>
>> Thanks.
>>
>> Ken >



--- In , "kenrv8" <ken@t...> wrote:
> Has anyone seen or written code to write to the Lascar Electronics
> DDM4 LCD display?

I took a look at the PIC code at the link that Don Lewis provided.
Since it looked so simple, I whipped up some code that you might find
useful as a starting point. It might even work!

You can find my code at
http://www.kinzers.com/don/BX24/Routines/DDM4.bas

The code always writes out all four display positions. There might
be a way to write out only some of them. Since I don't have a spec
sheet I don't know.

To use the code, change the pin definitions at the top of the file to
match your circuit. From your main code, call InitLCD() once. This
will set up the segment data table and initialize the display to
blanks. I assume that zero bits mean the segment is off. If not,
change the value for the constant BlankDigit to &Hff. You'll also
have to invert all of the bits in the segment data table.

Speaking of the segment data table, I end-for-end swapped the bits in
the segment data with respect to what is in the PIC code. This is
necessary because the BX-24 shifts out MSB first and it appears that
the PIC code shifts out LSB first. In any case, you might have to
modify the segment data table to get it right.

To display a one or more digits, call SetDigitLCD() to prepare each
display position and then call UpdateLCD(). Alternatively, you can
immediately display a digit by calling WriteLCD(). Lastly, the
display can be blanked by calling ClearLCD().

I didn't add the capability to blank an individual position. That's
an exercise for the interested reader.

Don


Don,

That's above and beyond. I really appreaciate it. This is my first project with the BX24 and it's been a few years since I worked with other stamp products. I just need a starting point to get me going. I think you've certainly provided that.

Thanks again.

Ken ---------- Original Message ----------------------------------
From: "Don Kinzer" <>
Reply-To:
Date: Sat, 10 Jan 2004 03:07:28 -0000

>--- In , "kenrv8" <ken@t...> wrote:
>> Has anyone seen or written code to write to the Lascar Electronics
>> DDM4 LCD display?
>
>I took a look at the PIC code at the link that Don Lewis provided.
>Since it looked so simple, I whipped up some code that you might find
>useful as a starting point. It might even work!
>
>You can find my code at
>http://www.kinzers.com/don/BX24/Routines/DDM4.bas
>
>The code always writes out all four display positions. There might
>be a way to write out only some of them. Since I don't have a spec
>sheet I don't know.
>
>To use the code, change the pin definitions at the top of the file to
>match your circuit. From your main code, call InitLCD() once. This
>will set up the segment data table and initialize the display to
>blanks. I assume that zero bits mean the segment is off. If not,
>change the value for the constant BlankDigit to &Hff. You'll also
>have to invert all of the bits in the segment data table.
>
>Speaking of the segment data table, I end-for-end swapped the bits in
>the segment data with respect to what is in the PIC code. This is
>necessary because the BX-24 shifts out MSB first and it appears that
>the PIC code shifts out LSB first. In any case, you might have to
>modify the segment data table to get it right.
>
>To display a one or more digits, call SetDigitLCD() to prepare each
>display position and then call UpdateLCD(). Alternatively, you can
>immediately display a digit by calling WriteLCD(). Lastly, the
>display can be blanked by calling ClearLCD().
>
>I didn't add the capability to blank an individual position. That's
>an exercise for the interested reader.
>
>Don >


Thats cool. But, just to add to the confusion,
It does not appear to have a "serial port" as such. It has a data
port and clock. If you don't have the data sheet on the
AY0438 chip. I think this is the driver...
here is more..
http://www.microchip.com/download/lit/pline/picmicro/families/ay043x/80438a.pdf

And Way to go Don Kinzer for putting something together to get it
moving. Looks like your code will talk to the beast.

Don Lewis

-- In , "Ken Simmons" <ken@t...> wrote:
> Thanks for the link. I've seen that one before, but I'm not sure it provides much
help. I guess I should have been more specific in my question and asked for code
that will run on the BX24 or could be easily modified.
>
> Ken > ---------- Original Message ----------------------------------
> From: "Don Lewis" <bubba_0n_wye_mtn@y...>
> Reply-To:
> Date: Fri, 09 Jan 2004 23:22:33 -0000
>
> >Oooh that one scores a 1 out of 1 to 5 for ease.
> >look at
> >http://www.ami.ac.uk/courseware/micros/restricted/ch6/micro06notes.html
> >
> >Don Lewis
> >
> >
> >--- In , "kenrv8" <ken@t...> wrote:
> >> Has anyone seen or written code to write to the Lascar Electronics
> >> DDM4 LCD display? It's a serial interface, but doesn't have onboard
> >> decoding. You have to send the status of each segment.
> >>
> >> If I can't find anything I was planning on using the the code for the
> >> LCD interface using the 74x595 as a starting point.
> >>
> >> Thanks.
> >>
> >> Ken
> >
> >
> >
> >
> >
> >
> >
> >
> >




You are right. It's not a defacto "serial port". The data is just pumped out serially. I have the data sheet so that's not a problem.

And, your right about Don Kinzer's code. I tried it last night and it works perfectly.

Now on to the next step. I'll see if I can get this one without bugging you guys.

Thanks for the help.

Ken ---------- Original Message ----------------------------------
From: "Don Lewis" <>
Reply-To:
Date: Mon, 12 Jan 2004 19:13:12 -0000

>Thats cool. But, just to add to the confusion,
>It does not appear to have a "serial port" as such. It has a data
>port and clock. If you don't have the data sheet on the
>AY0438 chip. I think this is the driver...
>here is more..
>http://www.microchip.com/download/lit/pline/picmicro/families/ay043x/80438a.pdf
>
>And Way to go Don Kinzer for putting something together to get it
>moving. Looks like your code will talk to the beast.
>
>Don Lewis
>
>-- In , "Ken Simmons" <ken@t...> wrote:
>> Thanks for the link. I've seen that one before, but I'm not sure it provides much
>help. I guess I should have been more specific in my question and asked for code
>that will run on the BX24 or could be easily modified.
>>
>> Ken
>>
>>
>> ---------- Original Message ----------------------------------
>> From: "Don Lewis" <bubba_0n_wye_mtn@y...>
>> Reply-To:
>> Date: Fri, 09 Jan 2004 23:22:33 -0000
>>
>> >Oooh that one scores a 1 out of 1 to 5 for ease.
>> >look at
>> >http://www.ami.ac.uk/courseware/micros/restricted/ch6/micro06notes.html
>> >
>> >Don Lewis
>> >
>> >
>> >--- In , "kenrv8" <ken@t...> wrote:
>> >> Has anyone seen or written code to write to the Lascar Electronics
>> >> DDM4 LCD display? It's a serial interface, but doesn't have onboard
>> >> decoding. You have to send the status of each segment.
>> >>
>> >> If I can't find anything I was planning on using the the code for the
>> >> LCD interface using the 74x595 as a starting point.
>> >>
>> >> Thanks.
>> >>
>> >> Ken
>> >
>> >
>> >
>> >
>> >
>> >
>> >
>> >
>> >



Memfault Beyond the Launch