CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Help for GLCD 128X64 driver ST7920

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
rolf_edmundo_guse



Joined: 17 Apr 2019
Posts: 9

View user's profile Send private message Send e-mail

Help for GLCD 128X64 driver ST7920
PostPosted: Wed Apr 17, 2019 6:43 am     Reply with quote

I'm new to this forum and I apologize if you're posting something wrong.
I'm struggling to find library glcd 128x64 drive st7920 someone would use pic18f87k22
Ttelmah



Joined: 11 Mar 2010
Posts: 19537

View user's profile Send private message

PostPosted: Wed Apr 17, 2019 6:52 am     Reply with quote

Look in the code library:

<http://www.ccsinfo.com/forum/viewtopic.php?t=49505&highlight=st7920>
rolf_edmundo_guse



Joined: 17 Apr 2019
Posts: 9

View user's profile Send private message Send e-mail

PostPosted: Wed Apr 17, 2019 7:05 am     Reply with quote

Ttelmah wrote:
Look in the code library:

<http://www.ccsinfo.com/forum/viewtopic.php?t=49505&highlight=st7920>


Thanks for the answer, i will be implementing and performing test soon post results.
rolf_edmundo_guse



Joined: 17 Apr 2019
Posts: 9

View user's profile Send private message Send e-mail

PostPosted: Fri Apr 19, 2019 1:59 pm     Reply with quote

Ttelmah wrote:
Look in the code library:

<http://www.ccsinfo.com/forum/viewtopic.php?t=49505&highlight=st7920>


I did the tests in text mode works, in graphical mode I was not able to perform. Does anyone have an example of using graphic mode?
rolf_edmundo_guse



Joined: 17 Apr 2019
Posts: 9

View user's profile Send private message Send e-mail

Re: Help for GLCD 128X64 driver ST7920
PostPosted: Fri Apr 19, 2019 8:28 pm     Reply with quote

rolf_edmundo_guse wrote:
I'm new to this forum and I apologize if you're posting something wrong.
I'm struggling to find library glcd 128x64 drive st7920 someone would use pic18f87k22


After reading the datasheet several and several times discovers that the error for use of the graphical mode on the lcd 128x64 drive st7920.
Code:

void glcd_update ()
{
   int8 v, h;
   if (gdram.refresh)
   {
     for (v = 0; v <YVAL; v ++) // 64
     {
       if (v <32) // first part
       {
          glcd_instruction (0x80 | v); // Set Vertical Address.
          glcd_instruction (0x80); // Set Horizontal Address.
       }
       else // second lcd stop
       {
          glcd_instruction (0x80 | (v - 32)); // Set Vertical Address.
          glcd_instruction (0x88); // Set Horizontal Address.
       }
       for (h = 0; h <XVAL; h ++) // 8
       {
         glcd_data (gdram.pix [v] [h] .nbyte [1]); // Write High Byte.
         glcd_data (gdram.pix [v] [h] .nbyte [0]); // Write Low Byte.
       }
     }
     gdram.refresh = FALSE;
   }
}
temtronic



Joined: 01 Jul 2010
Posts: 9241
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Sat Apr 27, 2019 8:16 am     Reply with quote

Nice ! You should actually post your 'driver code' in the 'Code Library' forum as well. It's a great source of working code!!

Jay

+++++++++++++++++++++
Driver code posts moved to Code Library forum:
http://www.ccsinfo.com/forum/viewforum.php?f=2

-Forum Moderator
+++++++++++++++++++++
rolf_edmundo_guse



Joined: 17 Apr 2019
Posts: 9

View user's profile Send private message Send e-mail

PostPosted: Sat Apr 27, 2019 2:16 pm     Reply with quote

temtronic wrote:
Nice ! You should actually post your 'driver code' in the 'Code Library' forum as well. It's a great source of working code!!

Jay

+++++++++++++++++++++
Driver code posts moved to Code Library forum:
http://www.ccsinfo.com/forum/viewforum.php?f=2

-Forum Moderator
+++++++++++++++++++++


OK
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
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


Powered by phpBB © 2001, 2005 phpBB Group