View previous topic :: View next topic |
Author |
Message |
MadMax
Joined: 24 May 2005 Posts: 53 Location: Kingston, Ontario, Canada
|
Posted: Tue Jan 20, 2015 7:17 pm Post subject: Problems communicating with T6963C controller |
|
|
Hello All,
Need some help with respect to a NEW communication error I am having with a T6963C controller on a Lumex Graphic Display (LCM-S240128GSF).
My code is written for an Atmega128 to communicate with the graphic display listed above. The code and the display worked perfectly fine together for several years (since 2010).
Important details about the hardware:
I'm using an ATX power supply. The Atmega128 is powered from the standby voltage on the power supply. This means that as long as the power supply is attached to the mains, then there is power to the Atmega. The display is however, powered from the +5 volt rail of the power supply.
The usual config line is used to configure the display, and then the code sits in a short loop waiting for a user to press a hardware (power) button, causing an interrupt. The interrupt turns on the ATX power supply, which powers the display, and away we go. Text and graphics are displayed perfectly.
Recently, Lumex have changed something about the display that I am using. When I attach a newly purchased display to a working system, it fails to display any text or graphics on the display. It seems as though the display is not being initialized properly?
I have tried several of the new displays, all with the same result. I have even returned the displays back to Lumex to have them tested, and they were returned to me with a report saying that they are all fine.
When I plug an old display into the system, everything works fine, so it appears to me as though it is a problem with the display?
Visually inspecting the displays, the only difference that I note is that Lumex is using a different set of Segment Drivers (after the T6963), which I would not have thought to cause the problem.
When I power the display from the same standby voltage ast the Atmega128, then the displays work perfectly.
My conclusion is that the initialization that I was getting away with previously with the older displays (when the display was not being powered from the standby voltage) is no longer working for me with the newer displays (for whatever reason). This leads me to believe that I need to initialize the display once the +5 volt rail on the ATX power supply comes up.
I've tried moving the config line for the display after the wait loop; assuming that once the user presses the power button, and the power supply comes up, then the config line for the display will be executed and the display will be properly initialized. This has resulted in no difference in the way display works, and I'm not sure why?
My thoughts are to write my own initialization subroutine to reset and re-initialize the display after the power supply has come up (and I receive the power OK signal from the power supply). This may be a little complicated? Perhaps it's already been done?
I'd prefer to solve this issue in code, rather than solve this issue by jumpering power to the display from the standby voltage.
I've wracked my brain, and come at this very every angle that I can think of. I'm hoping that someone out there might be able to offer some suggestions that I haven't thought of?
~ Chris
(BASCOM-AVR version : 2.0.7.8 , Latest : 2.0.7.8 ) |
|
Back to top |
|
|
EDC
Joined: 26 Mar 2014 Posts: 971
|
Posted: Tue Jan 20, 2015 8:09 pm Post subject: |
|
|
Do You try INITLCD?
http://wiki.mcselec.com/bavr/INITLCD
I don't test this for GLCD but Init command should be also finded in glcd.lib library |
|
Back to top |
|
|
MadMax
Joined: 24 May 2005 Posts: 53 Location: Kingston, Ontario, Canada
|
Posted: Tue Jan 20, 2015 8:28 pm Post subject: |
|
|
Thank you EDC!
I have not tried this, nor did I know about this, but I will when I get to my development machine.
Is anyone else able to comment on whether the INITLCD command will work for the T6963C controller? This sounds like it will solve my issue.
Best,
Chris |
|
Back to top |
|
|
MadMax
Joined: 24 May 2005 Posts: 53 Location: Kingston, Ontario, Canada
|
Posted: Wed Jan 21, 2015 8:18 pm Post subject: |
|
|
I tried the InitLCD command, however the code would not compile. Came back with the following error:
Error: 61 Line: 639 Label not found [_INIT_LCD ]
Is this because the InitLCD command does not work with GLCD.lib library? |
|
Back to top |
|
|
kimmi
Joined: 24 Feb 2006 Posts: 1922 Location: Denmark
|
Posted: Thu Jan 22, 2015 4:20 am Post subject: |
|
|
Hi
after you receive the power OK signal from the power supply
try add this line
hope this works _________________ / Kim |
|
Back to top |
|
|
EDC
Joined: 26 Mar 2014 Posts: 971
|
|
Back to top |
|
|
MadMax
Joined: 24 May 2005 Posts: 53 Location: Kingston, Ontario, Canada
|
Posted: Thu Jan 22, 2015 8:05 pm Post subject: |
|
|
This worked for me!
Thank you very much to both EDC and kimmi for taking the time to read and respond to the question. This tidbit of knowledge saved me a lot of extra time and effort to resolve this issue.
Greatly appreciated. Thank you!
Chris |
|
Back to top |
|
|
|