View previous topic :: View next topic |
Author |
Message |
revenue
Joined: 18 Jan 2007 Posts: 7
|
Posted: Fri Feb 15, 2013 1:13 am Post subject: OLED Charactor display interface |
|
|
does anyone know how to get a NHD-0220DZW-AG5 OLED display to work properly? I have a application that uses a standard LCD which works fine. but I want to start using the OLED display, however it works for a few seconds and then starts displaying junk. I have talked to support at Newhaven and they tell me I would need to insert more delay time in commands to the display. I would try to edit the LCD lib. functions, however I can't find them. Where are the LCD functions located? MSC.lib? LCD4.lib? or is there an existing lib for these displays?
Thanks for any help.
Steve - Virginia, USA
(BASCOM-AVR version : 2.0.7.6 ) |
|
Back to top |
|
|
albertsm
Joined: 09 Apr 2004 Posts: 5921 Location: Holland
|
Posted: Fri Feb 15, 2013 11:05 am Post subject: |
|
|
you should use the busy pin by using/specifying the WR pin. See help for config lcdpin. _________________ Mark |
|
Back to top |
|
|
revenue
Joined: 18 Jan 2007 Posts: 7
|
Posted: Fri Feb 15, 2013 12:49 pm Post subject: |
|
|
I want to use this display on existing boards, the WR single is tied low. |
|
Back to top |
|
|
albertsm
Joined: 09 Apr 2004 Posts: 5921 Location: Holland
|
Posted: Fri Feb 15, 2013 12:54 pm Post subject: |
|
|
then you can use lcd4.lib as a sample.
this one uses a nibble so you might need to change it. _________________ Mark |
|
Back to top |
|
|
revenue
Joined: 18 Jan 2007 Posts: 7
|
Posted: Fri Feb 15, 2013 2:01 pm Post subject: |
|
|
Where are the default LCD functions located? are they in a lib file?
Thanks for your help. |
|
Back to top |
|
|
albertsm
Joined: 09 Apr 2004 Posts: 5921 Location: Holland
|
Posted: Fri Feb 15, 2013 2:52 pm Post subject: |
|
|
they are not in a lib but dynamic generated (because there a lot of options)
the provided alternative libs can be modified.
essentially, it is simple :
there is the _Init_LCD: routine which must initialize the lcd
there is the _Write_lcd which will receive a value in R24
all other routines are optional.
when you make sure you save/restore registers you use you can even write the code in basic. _________________ Mark |
|
Back to top |
|
|
revenue
Joined: 18 Jan 2007 Posts: 7
|
Posted: Sat Feb 16, 2013 2:53 pm Post subject: |
|
|
Mark, Are there internal variables to reference the LCD port pins configuration that I can use in my OLED lib? |
|
Back to top |
|
|
TSEYFARTH
Joined: 01 Jul 2006 Posts: 1054
|
Posted: Thu Aug 06, 2015 7:01 pm Post subject: |
|
|
Hello Revenue,
I have the same problem with the same display. I also have the R/W pin tied low on my boards. It took quite a bit of time for the problem to manifest itself - 3 weeks.
Did you find a solution? If so, can you share with me?
Thank you,
Tim |
|
Back to top |
|
|
|