Looking for recient HD44780 LCD C function set that works well with WINAVR

Started by keepwalking188 October 4, 2009
I've just got back into playing with micros after an absence of 25 years. Wow have things changes - for the better.

For the current project I want to hook up a 2x16 LCM with the Mega168P and thought hea, there are LCD everywhere - it should be easy to find a nice tight set of well documented LCD functions that I can use and are built to be versitale. I will not be assuming any such thing in the future.

I realize the LCD interface is not rocket science. But the last time I worked with a uC it was an ancient Mot 40P ceramic body chip that had a UV eraseable 256 byte EPROM capability! And the text-based Borland Turbo C was what all the cool cats were running.

I have tried the Pyrocon and the Pickle routines - but both have compile errors that reflect changes from their build time (mid 2005-6 range) and the current vintage 2009 of WINAVR.

I can make either of these work. The problem is, given this is a staple of the embeded IO world now, I don't want to start my code base with what is really my kludging hack of two probably perfectly older bits of code.

I am sure there is a "most guys use this" answer to a lot of these beginning questions. For the LCD, I am getting old fast trying to figure that out. :)

And so I ask the groups kind recommendation on a set of LCD routines for writing alpha-numeric data to a Hitachi-based LCM???

thanks/jeff

Dear Jeff,

Please see the attached files. they were made by Joerg Wunsch and compiles
fine with WinAVR.

Hope this helps,

Javier
On Sun, Oct 4, 2009 at 10:25 AM, keepwalking188 wrote:

> I've just got back into playing with micros after an absence of 25 years.
> Wow have things changes - for the better.
>
> For the current project I want to hook up a 2x16 LCM with the Mega168P and
> thought hea, there are LCD everywhere - it should be easy to find a nice
> tight set of well documented LCD functions that I can use and are built to
> be versitale. I will not be assuming any such thing in the future.
>
> I realize the LCD interface is not rocket science. But the last time I
> worked with a uC it was an ancient Mot 40P ceramic body chip that had a UV
> eraseable 256 byte EPROM capability! And the text-based Borland Turbo C was
> what all the cool cats were running.
>
> I have tried the Pyrocon and the Pickle routines - but both have compile
> errors that reflect changes from their build time (mid 2005-6 range) and the
> current vintage 2009 of WINAVR.
>
> I can make either of these work. The problem is, given this is a staple of
> the embeded IO world now, I don't want to start my code base with what is
> really my kludging hack of two probably perfectly older bits of code.
>
> I am sure there is a "most guys use this" answer to a lot of these
> beginning questions. For the LCD, I am getting old fast trying to figure
> that out. :)
>
> And so I ask the groups kind recommendation on a set of LCD routines for
> writing alpha-numeric data to a Hitachi-based LCM???
>
> thanks/jeff
>


I think the group settings don't allow attachments. If you send it to me I
can put it up in the files section.

Zack

On Sun, Oct 4, 2009 at 1:06 PM, Javier Chavez wrote:

> Dear Jeff,
>
> Please see the attached files. they were made by Joerg Wunsch and compiles
> fine with WinAVR.
>
> Hope this helps,
>
> Javier
>
> On Sun, Oct 4, 2009 at 10:25 AM, keepwalking188 >wrote:
> >
> >
> > I've just got back into playing with micros after an absence of 25 years.
> > Wow have things changes - for the better.
> >
> > For the current project I want to hook up a 2x16 LCM with the Mega168P
> and
> > thought hea, there are LCD everywhere - it should be easy to find a nice
> > tight set of well documented LCD functions that I can use and are built
> to
> > be versitale. I will not be assuming any such thing in the future.
> >
> > I realize the LCD interface is not rocket science. But the last time I
> > worked with a uC it was an ancient Mot 40P ceramic body chip that had a
> UV
> > eraseable 256 byte EPROM capability! And the text-based Borland Turbo C
> was
> > what all the cool cats were running.
> >
> > I have tried the Pyrocon and the Pickle routines - but both have compile
> > errors that reflect changes from their build time (mid 2005-6 range) and
> the
> > current vintage 2009 of WINAVR.
> >
> > I can make either of these work. The problem is, given this is a staple
> of
> > the embeded IO world now, I don't want to start my code base with what is
> > really my kludging hack of two probably perfectly older bits of code.
> >
> > I am sure there is a "most guys use this" answer to a lot of these
> > beginning questions. For the LCD, I am getting old fast trying to figure
> > that out. :)
> >
> > And so I ask the groups kind recommendation on a set of LCD routines for
> > writing alpha-numeric data to a Hitachi-based LCM???
> >
> > thanks/jeff
> >
> >
> >
>
>
>


--- In a..., "keepwalking188" wrote:
>
> I've just got back into playing with micros after an absence of 25 years. Wow have things changes - for the better.
>
> For the current project I want to hook up a 2x16 LCM with the Mega168P and thought hea, there are LCD everywhere - it should be easy to find a nice tight set of well documented LCD functions that I can use and are built to be versitale. I will not be assuming any such thing in the future.
>
> I realize the LCD interface is not rocket science. But the last time I worked with a uC it was an ancient Mot 40P ceramic body chip that had a UV eraseable 256 byte EPROM capability! And the text-based Borland Turbo C was what all the cool cats were running.
>
> I have tried the Pyrocon and the Pickle routines - but both have compile errors that reflect changes from their build time (mid 2005-6 range) and the current vintage 2009 of WINAVR.
>
> I can make either of these work. The problem is, given this is a staple of the embeded IO world now, I don't want to start my code base with what is really my kludging hack of two probably perfectly older bits of code.
>
> I am sure there is a "most guys use this" answer to a lot of these beginning questions. For the LCD, I am getting old fast trying to figure that out. :)
>
> And so I ask the groups kind recommendation on a set of LCD routines for writing alpha-numeric data to a Hitachi-based LCM???
>
> thanks/jeff
>

http://lmgtfy.com/?q=mega168+HD44780+

I just uploaded a couple files kindly provided by Javier Chavez. They are in
the Group's Files section and are "HD44780.c" and "HD44780.h" Javier said
the files were written by Joerg Wunsch.

I also uploaded the files "HD44780.pdf" which is the data sheet for the
HD44780 LCD controller and "Optrex_Dmcman_full.pdf" which is the Optrex
datasheet for their LCD displays using the HD44780.

In the Links page I added a link for "LCD.h" which is for the HD44780-type
LCD drivers.

I hope these are of use to someone!

Zack
On Sun, Oct 4, 2009 at 7:50 PM, Zack Widup wrote:

> I think the group settings don't allow attachments. If you send it to me I
> can put it up in the files section.
>
> Zack
>
> On Sun, Oct 4, 2009 at 1:06 PM, Javier Chavez wrote:
>
>> Dear Jeff,
>>
>> Please see the attached files. they were made by Joerg Wunsch and compiles
>> fine with WinAVR.
>>
>> Hope this helps,
>>
>> Javier
>>
>> On Sun, Oct 4, 2009 at 10:25 AM, keepwalking188 >wrote:
>> >
>> >
>> > I've just got back into playing with micros after an absence of 25
>> years.
>> > Wow have things changes - for the better.
>> >
>> > For the current project I want to hook up a 2x16 LCM with the Mega168P
>> and
>> > thought hea, there are LCD everywhere - it should be easy to find a nice
>> > tight set of well documented LCD functions that I can use and are built
>> to
>> > be versitale. I will not be assuming any such thing in the future.
>> >
>> > I realize the LCD interface is not rocket science. But the last time I
>> > worked with a uC it was an ancient Mot 40P ceramic body chip that had a
>> UV
>> > eraseable 256 byte EPROM capability! And the text-based Borland Turbo C
>> was
>> > what all the cool cats were running.
>> >
>> > I have tried the Pyrocon and the Pickle routines - but both have compile
>> > errors that reflect changes from their build time (mid 2005-6 range) and
>> the
>> > current vintage 2009 of WINAVR.
>> >
>> > I can make either of these work. The problem is, given this is a staple
>> of
>> > the embeded IO world now, I don't want to start my code base with what
>> is
>> > really my kludging hack of two probably perfectly older bits of code.
>> >
>> > I am sure there is a "most guys use this" answer to a lot of these
>> > beginning questions. For the LCD, I am getting old fast trying to figure
>> > that out. :)
>> >
>> > And so I ask the groups kind recommendation on a set of LCD routines for
>> > writing alpha-numeric data to a Hitachi-based LCM???
>> >
>> > thanks/jeff
>> >
>> >
>> >
>>
>>
>>
>>
>>


Don,

The link on that first G page with Ron K's ultra simple LCD routines was just what I was looking for. Thanks!

Jeff
From: Donald H
Sent: Monday, October 05, 2009 12:06 AM
To: a...
Subject: [AVR club] Re: Looking for recient HD44780 LCD C function set that works well with WINAVR

--- In a..., "keepwalking188" wrote:
>
> I've just got back into playing with micros after an absence of 25 years. Wow have things changes - for the better.
>
> For the current project I want to hook up a 2x16 LCM with the Mega168P and thought hea, there are LCD everywhere - it should be easy to find a nice tight set of well documented LCD functions that I can use and are built to be versitale. I will not be assuming any such thing in the future.
>
> I realize the LCD interface is not rocket science. But the last time I worked with a uC it was an ancient Mot 40P ceramic body chip that had a UV eraseable 256 byte EPROM capability! And the text-based Borland Turbo C was what all the cool cats were running.
>
> I have tried the Pyrocon and the Pickle routines - but both have compile errors that reflect changes from their build time (mid 2005-6 range) and the current vintage 2009 of WINAVR.
>
> I can make either of these work. The problem is, given this is a staple of the embeded IO world now, I don't want to start my code base with what is really my kludging hack of two probably perfectly older bits of code.
>
> I am sure there is a "most guys use this" answer to a lot of these beginning questions. For the LCD, I am getting old fast trying to figure that out. :)
>
> And so I ask the groups kind recommendation on a set of LCD routines for writing alpha-numeric data to a Hitachi-based LCM???
>
> thanks/jeff
>

http://lmgtfy.com/?q=mega168+HD44780+



Thanks Zack,

I will check them out. And I really appreciate it and all the group comments to get this old dog set to start learning some new tricks.

Thanks again! Jeff
From: Zack Widup
Sent: Tuesday, October 06, 2009 1:06 AM
To: a...
Subject: Re: [AVR club] Looking for recient HD44780 LCD C function set that works well with WINAVR
I just uploaded a couple files kindly provided by Javier Chavez. They are in
the Group's Files section and are "HD44780.c" and "HD44780.h" Javier said
the files were written by Joerg Wunsch.

I also uploaded the files "HD44780.pdf" which is the data sheet for the
HD44780 LCD controller and "Optrex_Dmcman_full.pdf" which is the Optrex
datasheet for their LCD displays using the HD44780.

In the Links page I added a link for "LCD.h" which is for the HD44780-type
LCD drivers.

I hope these are of use to someone!

Zack

On Sun, Oct 4, 2009 at 7:50 PM, Zack Widup wrote:

> I think the group settings don't allow attachments. If you send it to me I
> can put it up in the files section.
>
> Zack
>
> On Sun, Oct 4, 2009 at 1:06 PM, Javier Chavez wrote:
>
>> Dear Jeff,
>>
>> Please see the attached files. they were made by Joerg Wunsch and compiles
>> fine with WinAVR.
>>
>> Hope this helps,
>>
>> Javier
>>
>> On Sun, Oct 4, 2009 at 10:25 AM, keepwalking188 >wrote:
>> >
>> >
>> > I've just got back into playing with micros after an absence of 25
>> years.
>> > Wow have things changes - for the better.
>> >
>> > For the current project I want to hook up a 2x16 LCM with the Mega168P
>> and
>> > thought hea, there are LCD everywhere - it should be easy to find a nice
>> > tight set of well documented LCD functions that I can use and are built
>> to
>> > be versitale. I will not be assuming any such thing in the future.
>> >
>> > I realize the LCD interface is not rocket science. But the last time I
>> > worked with a uC it was an ancient Mot 40P ceramic body chip that had a
>> UV
>> > eraseable 256 byte EPROM capability! And the text-based Borland Turbo C
>> was
>> > what all the cool cats were running.
>> >
>> > I have tried the Pyrocon and the Pickle routines - but both have compile
>> > errors that reflect changes from their build time (mid 2005-6 range) and
>> the
>> > current vintage 2009 of WINAVR.
>> >
>> > I can make either of these work. The problem is, given this is a staple
>> of
>> > the embeded IO world now, I don't want to start my code base with what
>> is
>> > really my kludging hack of two probably perfectly older bits of code.
>> >
>> > I am sure there is a "most guys use this" answer to a lot of these
>> > beginning questions. For the LCD, I am getting old fast trying to figure
>> > that out. :)
>> >
>> > And so I ask the groups kind recommendation on a set of LCD routines for
>> > writing alpha-numeric data to a Hitachi-based LCM???
>> >
>> > thanks/jeff
>> >
>> >
>> >
>>
>>
>>