Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

OLED Charactor display interface

 
Post new topic   Reply to topic    www.mcselec.com Forum Index -> BASCOM-AVR
View previous topic :: View next topic  
Author Message
revenue

Bascom Member



Joined: 18 Jan 2007
Posts: 7

usa.gif
PostPosted: Fri Feb 15, 2013 1:13 am    Post subject: OLED Charactor display interface Reply with quote

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
View user's profile
albertsm

Administrator



Joined: 09 Apr 2004
Posts: 5921
Location: Holland

blank.gif
PostPosted: Fri Feb 15, 2013 11:05 am    Post subject: Reply with quote

you should use the busy pin by using/specifying the WR pin. See help for config lcdpin.
_________________
Mark
Back to top
View user's profile Visit poster's website
revenue

Bascom Member



Joined: 18 Jan 2007
Posts: 7

usa.gif
PostPosted: Fri Feb 15, 2013 12:49 pm    Post subject: Reply with quote

I want to use this display on existing boards, the WR single is tied low.
Back to top
View user's profile
albertsm

Administrator



Joined: 09 Apr 2004
Posts: 5921
Location: Holland

blank.gif
PostPosted: Fri Feb 15, 2013 12:54 pm    Post subject: Reply with quote

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
View user's profile Visit poster's website
revenue

Bascom Member



Joined: 18 Jan 2007
Posts: 7

usa.gif
PostPosted: Fri Feb 15, 2013 2:01 pm    Post subject: Reply with quote

Where are the default LCD functions located? are they in a lib file?

Thanks for your help.
Back to top
View user's profile
albertsm

Administrator



Joined: 09 Apr 2004
Posts: 5921
Location: Holland

blank.gif
PostPosted: Fri Feb 15, 2013 2:52 pm    Post subject: Reply with quote

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
View user's profile Visit poster's website
revenue

Bascom Member



Joined: 18 Jan 2007
Posts: 7

usa.gif
PostPosted: Sat Feb 16, 2013 2:53 pm    Post subject: Reply with quote

Mark, Are there internal variables to reference the LCD port pins configuration that I can use in my OLED lib?
Back to top
View user's profile
TSEYFARTH

Bascom Member



Joined: 01 Jul 2006
Posts: 1054

usa.gif
PostPosted: Thu Aug 06, 2015 7:01 pm    Post subject: Reply with quote

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
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    www.mcselec.com Forum Index -> BASCOM-AVR All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum