Jump to content
Sign in to follow this  
Guest Dave

LCD Plugin is here

Recommended Posts

Guest Dave

lcd.gif

 

I having to post this because I'm very excited about the new latest plugin device thats part of the New Plugin Package - Alphanumeric LCD.

 

This plugin accurately simulates an LCD  display connected to an industry standard HD447880 display controller.

 

The display format is variable from 8 x 1 to 40 x 2.

 

The simulation is accurate including:

1) Reset sequence.

2) 8 bit and 4 bit interfaces

3) Internal command delays

4) Busy bit implementation.

 

For me this is one of the best plugins so far.

:)

 

Regards

Dave

Share this post


Link to post
Share on other sites

Hi all,

I'd tried use LCD plugin but I had no luck. I use the example

how to control HD44780-based character LCD ( by Victor Golutvin)

First time with: main.c, main.h

Second time: lcdfunc.c, main.h

What I'm doing wrong?

Anybody have an example that works with this plugin????

Thanx

:)

Share this post


Link to post
Share on other sites
Guest Dave

A couple of things to check

1) You have PicAntIDE 5.1.1

2) Settings->Clock rate is set the same as #pragma CLOCK_FREQ in the source code.

3) That the plugin connections are correct in the configure dialog. If using 4 bit mode set DB0 to DB3 to "None"

 

Sample code is include in the plugin pack, its in the "plugin_examples\lcd" folder.

 

Regards

Dave

Share this post


Link to post
Share on other sites
Guest Dave

The sample code by Victor Golutvin looks broken - any comments Victor?

 

It is meant to be for an 16F84A target, but uses RA4 to RA7 for the data interface to the LCD, but a 16F84A doesn't have these.

:(

 

Also the code is broken inside as well, some of the expressions in the code are missing brackets, so the order of evaluation means that 0 gets written to the port.

:(

 

One other point, this code only ever writes to the display, so the W/R line needs pulling high all the time, so set its pin in the configure dialog to VDD or it won't work

 

I corrected the problems above, and then the sample worked for me. :)

 

Regards

Dave

Share this post


Link to post
Share on other sites

Hi Dave & CO:

I have corrected all errors you mentioned, but I can't do nothing with LCD Plugin.

About the letters on LCD AlphaNumeric Window:

"LCD Plugin

For PicAnt IDE"

Do you have done it with MS-Paint or it's a real PicantIde's screenshot ??? :D

Perhaps I need a code list example that really works (with a good documentation: pinout, schematic, etc ( usually it's a good way to start) ... ).

Please, when somebody have a good example (that works) put it on the forum ....

Thanx ...

 

:laugh:

Share this post


Link to post
Share on other sites
Guest Dave

It is a real screen shot  :P

 

Please try the supplied sample code, it works.

Its in the "plugin_examples\lcd" folder.

 

The LCD plugin does have an error, that no text will be displayed until the DDRAM address has been set once.

 

Regards

Dave

:D

Share this post


Link to post
Share on other sites
Guest Pavel

LCD plugin patch is available to download from Download page. The patch fixes the plugin reset issue.

 

I also updated LCD sample from Victor Golutvin corrected by David Hobday. The code works fine with the patched LCD plugin. Thanks Dave!

 

Regards,

Pavel

Share this post


Link to post
Share on other sites

Hi Dave & CO:

I have copied&pasted exactly the code that is on the examples page ( LCD sample application by Victor Golutvin, corrections by David Hobday) and works fine.

I noticed that you have put info about connections inside main.h

When I said "Do you have done it with MS-Paint or it's a real PicantIde's screenshot ?" .... it was a joke ::D:

Good job ...

Good support ...

Good Plugin ...

 

Suggestion: when post examples ... please test it before ...

 

Best Regards

John :laugh:

Edited by Joan
Delete personal data

Share this post


Link to post
Share on other sites
Guest Dave

Joan,

I have copied&pasted exactly the code that is on the examples page ( LCD sample application by Victor Golutvin, corrections by David Hobday) and works fine.

Good :D

 

 

I noticed that you have put info about connections inside main.h
Yes, that is because the ports and the bit numbers being used are specifined in here with some #defines, so best to keep that all together.

 

When I said "Do you have done it with MS-Paint or it's a real PicantIde's screenshot ?" .... it was a joke
:P  - The comment was taken as such - but it could have been true, I'm quite good with MS-Paint :P

 

 

Suggestion: when post examples ... please test it before ...
To test every sample is difficult, there is a reliance on "Good Faith" that the supplied code has bee tested.

 

Glad that you are now enjoying the LCD plugin.

 

Oh, by the way, try the supplied code example (it gets installed with PicAntIDE), because this one tests almost all features of the display, including scrolling, reverse entry mode, block cursor, cursor positioning and more.

 

 

Regards

Dave

Share this post


Link to post
Share on other sites

Join the conversation

You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...