<?xml version="1.0" encoding="utf-8" ?>
				<!-- generator="e107" -->
				<!-- content type="Forum / topic" -->
				<rdf:RDF xmlns="http://purl.org/rss/1.0/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:admin="http://webns.net/mvcb/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
				<channel rdf:about="http://www.8051projects.net/">
				<title>8051 Microcontroller Projects AVR PIC Projects Tutorials Ebooks Libraries codes : Forum / topic</title>
				<link>http://www.8051projects.net/</link>
				<description>Learn to make simple microcontroller projects, pic, 8051, avr and arm projects. download 8051 projects, tutorials, libraries, sample codes. join the microcontroller discussion forum and ask doubts regarding electronics. the best source for 8051 over internet.</description>
				<dc:language>en-gb</dc:language>
				<dc:date>2008-12-01T23:24:36-08:00</dc:date>
				<dc:creator>contact@nospam.com</dc:creator>
				<admin:generatorAgent rdf:resource="http://e107.org" />
				<admin:errorReportsTo rdf:resource="mailto:contact@nospam.com" />
				<sy:updatePeriod>hourly</sy:updatePeriod>
				<sy:updateFrequency>1</sy:updateFrequency>
				<sy:updateBase>2000-01-01T12:00+00:00</sy:updateBase>
				<items>
				<rdf:Seq>
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t4144.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t4144.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t4144.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t4144.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t4144.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t4144.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t4144.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t4144.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t4144.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t4144.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t4144.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t4144.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t4144.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t4144.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t4144.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t4144.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t4144.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t4144.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t4144.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t4144.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t4144.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t4144.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t4144.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t4144.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t4144.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t4144.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t4144.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t4144.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t4144.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t4144.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t4144.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t4144.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t4144.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t4144.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t4144.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t4144.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t4144.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t4144.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t4144.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t4144.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t4144.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t4144.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t4144.html" />
						<rdf:li rdf:resource="http://www.8051projects.net/forum-t4144.html" />
				</rdf:Seq>
				</items>
				</channel>
						<item rdf:about="http://www.8051projects.net/forum-t4144.html">
						<title>Help GLCD port from 8051</title>
						<link>http://www.8051projects.net/forum-t4144.html</link>
						<dc:date>2008-12-01T23:24:36-08:00</dc:date>
						<dc:creator></dc:creator>
						<dc:subject></dc:subject>
						<description>Hi,I'm new to arm and microcontrollers, played with pic before but I decided I want to learn arm.I already have a working LCD driver for t6963c, but I kind of like the buffering technique used in the attached. The driver attached is not mine I found it before  I can't remember where actually. I was wondering if any1 could help port the code to gcc arm as I don't have knowledge of 8051 and kind of lost in the code. Or if anyone could just explain how it works I will try to understand it.EDIT:Forgot to tell, I'm using LPc2138 with WinARMTIA. 8051_glcd.zip</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t4144.html">
						<title>Re: Help GLCD port from 8051</title>
						<link>http://www.8051projects.net/forum-t4144.html</link>
						<dc:date>2008-12-01T23:24:36-08:00</dc:date>
						<dc:creator>shyam</dc:creator>
						<dc:subject></dc:subject>
						<description>hi mhel....it is much easier to have glcd in LPC2138  than 51   only thing... u must know how to handle tje gpios  a thread in corresponding topic is going on i wud like u to  go thru it....cause it is a small issue u can easily do it......</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t4144.html">
						<title>Re: Help GLCD port from 8051</title>
						<link>http://www.8051projects.net/forum-t4144.html</link>
						<dc:date>2008-12-01T23:24:36-08:00</dc:date>
						<dc:creator>mhel</dc:creator>
						<dc:subject></dc:subject>
						<description>Thanks for reply Shyam,Yes, I have learnt how to control GPIOs, I also have a working LCD but I want to learn how to do the offscreen buffering ( i think that's what it's called). Although from what I have found out, the code uses external memory. I'm hoping it could still be done on the 2138 using the 32k ram.</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t4144.html">
						<title>Re: Help GLCD port from 8051</title>
						<link>http://www.8051projects.net/forum-t4144.html</link>
						<dc:date>2008-12-01T23:24:36-08:00</dc:date>
						<dc:creator>shyam</dc:creator>
						<dc:subject></dc:subject>
						<description>of course it can be done......u r not using fonts in ur code....i have use 18 fonts with my lpc 2148...   no problem with that......try it out...ne problem i'll be there</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t4144.html">
						<title>Re: Help GLCD port from 8051</title>
						<link>http://www.8051projects.net/forum-t4144.html</link>
						<dc:date>2008-12-01T23:24:36-08:00</dc:date>
						<dc:creator>mhel</dc:creator>
						<dc:subject></dc:subject>
						<description>hi Shyam,The attached is my attempt to port the code, but I got stuck, some definitions are not included,particularly the XBYTES[] array, it's probably in one of the header or it's specific to '51.The low level routine for the LCD works I know that for sure. I tried to adapt it to the code.Is your 2148 LCD driver available to download?Thanks.</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t4144.html">
						<title>Re: Help GLCD port from 8051</title>
						<link>http://www.8051projects.net/forum-t4144.html</link>
						<dc:date>2008-12-01T23:24:36-08:00</dc:date>
						<dc:creator>shyam</dc:creator>
						<dc:subject></dc:subject>
						<description>well if u really in need...oki'll have it for download here....... do u only want to show image on lcd???</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t4144.html">
						<title>Re: Help GLCD port from 8051</title>
						<link>http://www.8051projects.net/forum-t4144.html</link>
						<dc:date>2008-12-01T23:24:36-08:00</dc:date>
						<dc:creator>mhel</dc:creator>
						<dc:subject></dc:subject>
						<description>Thanks, Basically, what I want is to draw the font/image in a buffer before actually sending it to the lcd, as it is done the 8051 code, I want to understand how he did it the e.g the mask[]I won't mind taking a peek at your lcd code tho, thanks again.</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t4144.html">
						<title>Re: Help GLCD port from 8051</title>
						<link>http://www.8051projects.net/forum-t4144.html</link>
						<dc:date>2008-12-01T23:24:36-08:00</dc:date>
						<dc:creator>shyam</dc:creator>
						<dc:subject></dc:subject>
						<description>well mhel i am gonna upload a code .. just  see if it helps... otherwise we will surely resume the discussion...watch out here i'll let u know as soon as the code is uploaded</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t4144.html">
						<title>Re: Help GLCD port from 8051</title>
						<link>http://www.8051projects.net/forum-t4144.html</link>
						<dc:date>2008-12-01T23:24:36-08:00</dc:date>
						<dc:creator>shyam</dc:creator>
						<dc:subject></dc:subject>
						<description>hi mhel u can download the library from   http://www.8051projects.net/downloads197.html</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t4144.html">
						<title>Re: Help GLCD port from 8051</title>
						<link>http://www.8051projects.net/forum-t4144.html</link>
						<dc:date>2008-12-01T23:24:36-08:00</dc:date>
						<dc:creator>mhel</dc:creator>
						<dc:subject></dc:subject>
						<description>I'll look into it.thanks.Edit;This looks like the same code I got from lpc2000 yahoo group. which I already have working too.I'm just having a hard time modifying it to output one character at a time instead of drawing a string.I wanted it to accept newline character and move to the next line too.The reason I like to have a buffered display  is I wanted to implement a vertical scrolling text and from what i've read that's how I could achieved it. Any help on this would be greatly appreciated.</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t4144.html">
						<title>Re: Help GLCD port from 8051</title>
						<link>http://www.8051projects.net/forum-t4144.html</link>
						<dc:date>2008-12-01T23:24:36-08:00</dc:date>
						<dc:creator>shyam</dc:creator>
						<dc:subject></dc:subject>
						<description>hmm  ,,well then i m gonna convert that 51 code that too as early as possible... just be with me....</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t4144.html">
						<title>Re: Help GLCD port from 8051</title>
						<link>http://www.8051projects.net/forum-t4144.html</link>
						<dc:date>2008-12-01T23:24:36-08:00</dc:date>
						<dc:creator>shyam</dc:creator>
						<dc:subject></dc:subject>
						<description>hi mhel,cudnt find the following definitions....CODE:<br />byte_basso&#40;dato&#41;;<br />&nbsp;byte_alto&#40;dato&#41;;plz.. check if u have them n which file.....</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t4144.html">
						<title>Re: Help GLCD port from 8051</title>
						<link>http://www.8051projects.net/forum-t4144.html</link>
						<dc:date>2008-12-01T23:24:36-08:00</dc:date>
						<dc:creator>mhel</dc:creator>
						<dc:subject></dc:subject>
						<description>I couldn't find that part too, I assumed it's sending the low byte first then high byte,that's what I did in my attempt. I think it's in Italian.I only got that zip file. There was no contact infor for the guy, else I would have asked him.</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t4144.html">
						<title>Re: Help GLCD port from 8051</title>
						<link>http://www.8051projects.net/forum-t4144.html</link>
						<dc:date>2008-12-01T23:24:36-08:00</dc:date>
						<dc:creator>shyam</dc:creator>
						<dc:subject></dc:subject>
						<description>hi mhel got this attatchment....will lokk on to it....</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t4144.html">
						<title>Re: Help GLCD port from 8051</title>
						<link>http://www.8051projects.net/forum-t4144.html</link>
						<dc:date>2008-12-01T23:24:36-08:00</dc:date>
						<dc:creator>mhel</dc:creator>
						<dc:subject></dc:subject>
						<description>Hi,I'm making some progress , I manage to display something but it's not as expected.I'm using 5x8 font only. The text display overlaps, characters are too close to each other or the mapping is incorrect, the graphics is chopped on the bottom. I think it's related to the current_addr_pointer().Shyam: if you have time, maybe you could look at the attached. I can't figure out where the value 1024 came from, 128x8=1024, but the original author uses 128x128 lcd, mine is 240x128. Also perhaps you could make changes on the struct, it's tedious to add those brackets in the array, I get warnings/errors without them. If you do then wbm() would have to be changed too I think.this is how test it, same as in the originalCODE:<br />&nbsp; do<br />&nbsp; &nbsp; &#123;<br />&nbsp; &nbsp; &nbsp; i = 0;<br />&nbsp; &nbsp; &nbsp; do<br />&nbsp; &nbsp; &nbsp; &nbsp; &#123;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; gotoxy&#40;i, i&#41;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; box&#40;239-4*i, 127-4*i&#41;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; refresh_LCD&#40;0&#41;;&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //refresh for each box<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; pause&#40;QUARTER_SEC&#41;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &#125;while &#40;i++ &lt; 16&#41;;<br />&nbsp; &nbsp; &nbsp; set_display&#40;F5x8, &#40;flag&#41; ? NORMAL : REVERSE&#41;;<br />&nbsp; &nbsp; &nbsp; flag = !flag;<br />&nbsp; &nbsp; &#125;while &#40;flag&#41;;<br />&nbsp; &nbsp;<br />&nbsp; &nbsp;&nbsp; &nbsp; &nbsp;pause&#40;FIVE_SEC&#41;;<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; //clearlcd &#40;ALL&#41;;<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; // test fonts<br />&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;set_display&#40;F5x8, NORMAL&#41;;<br />&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;gotoxy&#40;2,2&#41;; wrstr("5/8 FONT");<br /><br />refresh_LCD&#40;0&#41;;<br />&nbsp;Thanks.</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t4144.html">
						<title>Re: Help GLCD port from 8051</title>
						<link>http://www.8051projects.net/forum-t4144.html</link>
						<dc:date>2008-12-01T23:24:36-08:00</dc:date>
						<dc:creator>mhel</dc:creator>
						<dc:subject></dc:subject>
						<description>7zip files is not supported , I forgot about it. lcdt.zipEdit: how do I update the attachment I want to reupload a new one???</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t4144.html">
						<title>Re: Help GLCD port from 8051</title>
						<link>http://www.8051projects.net/forum-t4144.html</link>
						<dc:date>2008-12-01T23:24:36-08:00</dc:date>
						<dc:creator>mhel</dc:creator>
						<dc:subject></dc:subject>
						<description>the box routine is working ok, somehow I'm limited to 127x63 size of box. still trying to find which to hack in    the font drawing is still the same.EDIT: fixed the box, parameters in hline/vline were signed char changed to int16_t, there's still problemssome pixels on the right are not drawn/erased.EDIT2: now, the box is really fixed   changed in clearfiled() CODE:const uint8_t blank&#91;&#93; =&#123; 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 &#125;; to: CODE:const uint8_t blank&#91;&#93; = &#123; 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 &#125;;the font drawing  is really tough I need help on that one, but I'm  kinda a glad I got this going</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t4144.html">
						<title>Re: Help GLCD port from 8051</title>
						<link>http://www.8051projects.net/forum-t4144.html</link>
						<dc:date>2008-12-01T23:24:36-08:00</dc:date>
						<dc:creator>Ajay</dc:creator>
						<dc:subject></dc:subject>
						<description>mhel wrote ... 7zip files is not supported , I forgot about it. lcdt.zipEdit: how do I update the attachment I want to reupload a new one???if you want then i can add 7z extention to be uploaded.. but the reason is.. its not supported by all..post a screenshot of your LCD..   wanna see the gfx</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t4144.html">
						<title>Re: Help GLCD port from 8051</title>
						<link>http://www.8051projects.net/forum-t4144.html</link>
						<dc:date>2008-12-01T23:24:36-08:00</dc:date>
						<dc:creator>mhel</dc:creator>
						<dc:subject></dc:subject>
						<description>Thanks guys, but I freaking did it   my bit rotation was wrong, I just have that cut and paste from post somewhere didn't really know it's inner working, I actually attempted it in assembly, but got lost. I still don't know where the 1024 value came from tho.Shyam: Thanks for the time, maybe you should look at this new attachment and see what I'm missing, although it seems to be working I'd like to be able to place bitmap graphic too.Ajay: I actually just found out about 7zip, it's free why not support it?I attached a screenshot.BTW, this is just a home project, I'm just a hobbyist, that's why I'm glad I found this site, with lots of good tutorials and such, not to mention the knowledgeable people that are willing to help. Thank you.	 080106lcdt.zip</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t4144.html">
						<title>Re: Help GLCD port from 8051</title>
						<link>http://www.8051projects.net/forum-t4144.html</link>
						<dc:date>2008-12-01T23:24:36-08:00</dc:date>
						<dc:creator>shyam</dc:creator>
						<dc:subject></dc:subject>
						<description>hi mhel...i understand  how excited u wud be for this project runnning in front of u...u have done  a lot of hard work....i hve been out of my office for a long time... cud not look on the code...to save time if u cud just sent us the complete application... it wud save time...cause i  dont know which machine i'll be working on....    plus i wud request ajay to put it in download section as soon as the scrolling thing is done...BTW i ve started working on menuing...wud post the tested application/code soon...</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t4144.html">
						<title>Re: Help GLCD port from 8051</title>
						<link>http://www.8051projects.net/forum-t4144.html</link>
						<dc:date>2008-12-01T23:24:36-08:00</dc:date>
						<dc:creator>shyam</dc:creator>
						<dc:subject></dc:subject>
						<description>@mhel but the original author uses 128x128 lcd, mine is 240x128well  if u talking abt the following function u r rightCODE:<br />static uint32_t current_addr_pointer &#40;void&#41;<br />/**************************************************************/<br />&#123;<br />&nbsp; return 1024 * selected_page + yStart*Nmax + xStart/8;<br />&#125;<br />&nbsp;ok see...using 5x8 pixel...  =>8 pixel y direction128  *8 = 1024=>one page = 1024now if i want to select page 2 coordinates 30,40so the function will return 1024 *2 + 30*5 + 40*8i guess that is what the function is doing...bottom line...wether it be 240x128   or 128x128...for complete page scan we need to scan 128so doesnt matter..it wud be 1024 in both the cases...not tested on board just a logical suggestion</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t4144.html">
						<title>Re: Help GLCD port from 8051</title>
						<link>http://www.8051projects.net/forum-t4144.html</link>
						<dc:date>2008-12-01T23:24:36-08:00</dc:date>
						<dc:creator>mhel</dc:creator>
						<dc:subject></dc:subject>
						<description>shyam:I'll try to clean it first then I'll upload it.thanks.</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t4144.html">
						<title>Re: Help GLCD port from 8051</title>
						<link>http://www.8051projects.net/forum-t4144.html</link>
						<dc:date>2008-12-01T23:24:36-08:00</dc:date>
						<dc:creator>mhel</dc:creator>
						<dc:subject></dc:subject>
						<description>Hi Shyam,this is the simple setup I have,  to test the lcd.pinouts are in the config.h. this is taken from WinArm samples, I use CodeBlocks asas my editor, I like it, not keil but better than programmer's notepad.	 winarm_lcdt.zip</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t4144.html">
						<title>Re: Help GLCD port from 8051</title>
						<link>http://www.8051projects.net/forum-t4144.html</link>
						<dc:date>2008-12-01T23:24:36-08:00</dc:date>
						<dc:creator>mhel</dc:creator>
						<dc:subject></dc:subject>
						<description>bottom line...wether it be 240x128 or 128x128...for complete page scan we need to scan 128so doesnt matter..it wud be 1024 in both the cases...not tested on board just a logical suggestion I have verified the above to be correct, I have changed it to 3840, and  changed it back to 1024 and the behaviour is the same. I assumed, since I was using 240x128 and fontwidth of 8 that I needed 3840 bytes according to a document I read.  Although I think my math skills   is skewed    I have 30columns by 16rows, does this mean I only need 480bytes of ram per page? or this calculation only applicable to Text mode?BTW, I attempted to to draw bitmaps, but it only draws part of the image, please tell me what I missed thanks. The structure for IMG  is defined with height, width, and the actual data. CODE:uint8_t draw_img&#40;uint8_t x1, uint8_t y1, IMG * img&#41;<br />&#123;<br />&nbsp; uint8_t x, y;<br />&nbsp; uint8_t *iptr=img->data;<br />// &nbsp;set_display(F5x8, NORMAL);<br />&nbsp; gotoxy&#40;x1,y1&#41;;<br />&nbsp; x = x1;<br />&nbsp; y = y1;<br />&nbsp; while &#40;y &lt; y1+img->height&#41;<br />&nbsp; &nbsp; &#123;<br />&nbsp; &nbsp; &nbsp; while &#40;x &lt; x1+img->width/8&#41;<br />&nbsp; &nbsp; &nbsp; &nbsp; &#123;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; framebuffer&#91;current_addr_pointer&#40;&#41;&#93;=*iptr;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; iptr++;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; x+=1;<br />&nbsp; &nbsp; &nbsp; &nbsp; &#125;<br />&nbsp; &nbsp; &nbsp; x=x1;<br />&nbsp; &nbsp; &nbsp; y+=1;<br />&nbsp; &nbsp; &nbsp; if &#40;Nmax != img->width/8&#41;//Nmax = 30<br />&nbsp; &nbsp; &nbsp; &nbsp; &#123;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; gotoxy&#40;x,y&#41;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &#125;<br /><br />&nbsp; &nbsp; &#125;<br />&nbsp; refresh_LCD&#40;0&#41;;<br />&nbsp; return x1 + img->width + 1;<br />&#125; Shyam: I appreciate your time on doing the scroll thing, I'll wait for it  'cause I doubt I'd be able to hack it. Thanks.</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t4144.html">
						<title>Re: Help GLCD port from 8051</title>
						<link>http://www.8051projects.net/forum-t4144.html</link>
						<dc:date>2008-12-01T23:24:36-08:00</dc:date>
						<dc:creator>mhel</dc:creator>
						<dc:subject></dc:subject>
						<description>I got the image drawing working, I can't believe it's this simple I had to hit my head a couple of times     CODE:uint8_t draw_img&#40;uint8_t x1, uint8_t y1, IMG * img&#41;<br />&#123;<br />&nbsp; gotoxy&#40;x1,y1&#41;;<br />&nbsp; wrbm&#40;img->width, img->height, img->data&#41;;<br />&nbsp; refresh_LCD&#40;0&#41;;<br />&nbsp; return xStart + 1;//returns next x position<br />&#125;I guess if you look at the code for a long time it will just pop up</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t4144.html">
						<title>Re: Help GLCD port from 8051</title>
						<link>http://www.8051projects.net/forum-t4144.html</link>
						<dc:date>2008-12-01T23:24:36-08:00</dc:date>
						<dc:creator>shyam</dc:creator>
						<dc:subject></dc:subject>
						<description>congratulations.. mhel!!!!... enjoy your work!!</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t4144.html">
						<title>Re: Help GLCD port from 8051</title>
						<link>http://www.8051projects.net/forum-t4144.html</link>
						<dc:date>2008-12-01T23:24:36-08:00</dc:date>
						<dc:creator>mhel</dc:creator>
						<dc:subject></dc:subject>
						<description>thnx shyam,one question, in the lcd code, what do you think would be the posible uses of the function copy_page(), right now I have it commented out since i limit my framebuffer pages to just 1.</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t4144.html">
						<title>Re: Help GLCD port from 8051</title>
						<link>http://www.8051projects.net/forum-t4144.html</link>
						<dc:date>2008-12-01T23:24:36-08:00</dc:date>
						<dc:creator>mhel</dc:creator>
						<dc:subject></dc:subject>
						<description>I managed to add blinking cursor to lcd driver: CODE:static void set_cursor&#40;uint8_t row, uint8_t col, uint8_t cursor&#41;<br />&#123;<br />&nbsp; uint16_t addr;<br />&nbsp; addr = &nbsp;GHOME + &#40;row/8&#41; &nbsp;+ &#40;col*30&#41;;<br />&nbsp; lcd_setaddr&#40;0x24, addr&#41;;<br />&nbsp; if &#40;cursor&#41;<br />&nbsp; &nbsp; lcd_sendcmd&#40;0xf8 | &#40;&#40;7-row%8&#41;&#41;&#41;;<br />&nbsp; else<br />&nbsp; &nbsp; lcd_sendcmd&#40;0xf0 | &#40;&#40;7-row%8&#41;&#41;&#41;;<br />&#125;<br /><br />void set_curpos&#40;void&#41;<br />&#123;<br />&nbsp; uint8_t i, c;<br />&nbsp; c = yStart+8;<br />&nbsp; cursortoggle ^= 1;<br />&nbsp; for &#40;i=0; i&lt;8;i++&#41;&#123;<br />// &nbsp; &nbsp;set_cursor(xStart, yStart+i, cursortoggle); /* set vertical cursor position */<br />set_cursor&#40;xStart+i, c , cursortoggle&#41;; /* set horizontal cursor position */<br />&nbsp; &#125;<br />&#125; the code above is independent of the framebuffer, It is called after the lcd is refreshed. Actually, it is called from a timer interrupt every 500ms,I place a flag in refresh_LCD() and is checked in the interrupt if the cursor is to be displayed. xStart and yStart is global and primarily used in the framebuffer. I can't remember why I had the cursortoggle global too tho. the code is basically turning on/off 8pixels following the xStart &amp; yStart.</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t4144.html">
						<title>Re: Help GLCD port from 8051</title>
						<link>http://www.8051projects.net/forum-t4144.html</link>
						<dc:date>2008-12-01T23:24:36-08:00</dc:date>
						<dc:creator>Ajay</dc:creator>
						<dc:subject></dc:subject>
						<description>great going mhel (whats your real name   )adding blinking cursor to LCD will keep controller busy, is it? coz gfx LCD has to be updated after every half sec or something.. what you say?</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t4144.html">
						<title>Re: Help GLCD port from 8051</title>
						<link>http://www.8051projects.net/forum-t4144.html</link>
						<dc:date>2008-12-01T23:24:36-08:00</dc:date>
						<dc:creator>shyam</dc:creator>
						<dc:subject></dc:subject>
						<description>he is a wise guy..  using interrupts..there are lots of interrupt sources in arm that you can use mostly IRQ  not much burden on the controller...!! ARM is supposed to handle this business @ low power</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t4144.html">
						<title>Re: Help GLCD port from 8051</title>
						<link>http://www.8051projects.net/forum-t4144.html</link>
						<dc:date>2008-12-01T23:24:36-08:00</dc:date>
						<dc:creator>mhel</dc:creator>
						<dc:subject></dc:subject>
						<description>I only needed the cursor display when I'm ask to input values via keyboard, it seems odd without the cursor, and the blinking is just aesthetic i thought it looks cool   and the interrupt seems to be a good way of doing it.</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t4144.html">
						<title>Re: Help GLCD port from 8051</title>
						<link>http://www.8051projects.net/forum-t4144.html</link>
						<dc:date>2008-12-01T23:24:36-08:00</dc:date>
						<dc:creator>Ajay</dc:creator>
						<dc:subject></dc:subject>
						<description>sounds sweet..  make a small video i wanna see scrolling thingy..</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t4144.html">
						<title>Re: Help GLCD port from 8051</title>
						<link>http://www.8051projects.net/forum-t4144.html</link>
						<dc:date>2008-12-01T23:24:36-08:00</dc:date>
						<dc:creator>mhel</dc:creator>
						<dc:subject></dc:subject>
						<description>finally figured out how to scroll   sweeet.this works for a 5x8 font, need to change the hard values to variablesto match the font size used.Note: this is for 240x128 dots LCD, 16rows 30columns 8x8dots 16*8*30=3840so you know which to change to match your's. CODE:void scroll&#40;void&#41;<br />/**************************************************************/<br />&#123;<br />&nbsp; &nbsp; uint32_t i;<br />&nbsp; &nbsp; // Row 15 is the end, this means we need to scroll up<br />&nbsp; &nbsp; if &#40;yStart >=128&#41;<br />&nbsp; &nbsp; &#123;<br />&nbsp; &nbsp; &nbsp; &nbsp; // Move the current text chunk that makes up the screen<br />&nbsp; &nbsp; &nbsp; &nbsp; // back in the buffer by a line<br />&nbsp; &nbsp; &nbsp; &nbsp; for &#40;i = 0; i &lt; 3840; i++&#41;<br />&nbsp; &nbsp; &nbsp; &nbsp; &#123;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; framebuffer&#91;i&#93; = framebuffer&#91;i+240&#93;;<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &#125;<br />&nbsp; &nbsp; &nbsp; &nbsp; // The last line should now be blank. Do this by writing 0's<br />&nbsp; &nbsp; &nbsp; &nbsp; for &#40;i = 3600; i &lt; 3840; i++&#41;//120*30<br />&nbsp; &nbsp; &nbsp; &nbsp; &#123;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; framebuffer&#91;i&#93; = 0x00;<br />&nbsp; &nbsp; &nbsp; &nbsp; &#125;<br />&nbsp; &nbsp; &nbsp; &nbsp; // The cursor should now be on the last line.<br />&nbsp; &nbsp; &nbsp; &nbsp; yStart = 120;<br /><br />&nbsp; &nbsp; &#125;<br />&#125;</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t4144.html">
						<title>Re: Help GLCD port from 8051</title>
						<link>http://www.8051projects.net/forum-t4144.html</link>
						<dc:date>2008-12-01T23:24:36-08:00</dc:date>
						<dc:creator>abbas1707</dc:creator>
						<dc:subject></dc:subject>
						<description>Ajay wrote ...sounds sweet..  make a small video i wanna see scrolling thingy..me tooooooooooo</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t4144.html">
						<title>Re: Help GLCD port from 8051</title>
						<link>http://www.8051projects.net/forum-t4144.html</link>
						<dc:date>2008-12-01T23:24:36-08:00</dc:date>
						<dc:creator>mhel</dc:creator>
						<dc:subject></dc:subject>
						<description>shyam,just curious, why is it that in glcd.h  the defines for control pins are: CODE:<br />#define LCD_CS2&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; BIT(10) &nbsp;/* Chip Select Col1-64 &nbsp; P0.10*/<br />#define LCD_CS1&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; BIT(28) &nbsp;/* Chip Select Col64-128 P0.28 */<br />#define LCD_RW&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; BIT(31) &nbsp;/* Read/Write &nbsp;P031 */<br />#define LCD_DI&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; BIT(6) &nbsp;/* Data/Instr. P0.06 */<br />#define LCD_E&nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; BIT(26) &nbsp;/* Enable P0.26 */<br />#define LCD_RST&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; BIT(27) &nbsp;/* Enable P0.27 */<br />&nbsp; but when used in control it has 'G'CODE:<br />#define LCD_CONTROL&nbsp; &nbsp; &nbsp;&#40;uint32_t&#41;&#40;GLCD_CS1|GLCD_CS2|GLCD_RW|GLCD_DI|GLCD_E|GLCD_RESET&#41;<br />&nbsp;edit:never mind I just saw the lcdinit and I guess it doesnt matter.</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t4144.html">
						<title>Re: Help GLCD port from 8051</title>
						<link>http://www.8051projects.net/forum-t4144.html</link>
						<dc:date>2008-12-01T23:24:36-08:00</dc:date>
						<dc:creator>tom_softi</dc:creator>
						<dc:subject></dc:subject>
						<description>Hi all,how have you connected your dsiplay to the LPChave you used a level shifter from 3,3 to 5V or is it connected directly to the LPC port pins.regards Tom</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t4144.html">
						<title>Re: Help GLCD port from 8051</title>
						<link>http://www.8051projects.net/forum-t4144.html</link>
						<dc:date>2008-12-01T23:24:36-08:00</dc:date>
						<dc:creator>Ajay</dc:creator>
						<dc:subject></dc:subject>
						<description>well you can do that yourself   add it.. will see u on chat and explain you how to do that</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t4144.html">
						<title>Re: Help GLCD port from 8051</title>
						<link>http://www.8051projects.net/forum-t4144.html</link>
						<dc:date>2008-12-01T23:24:36-08:00</dc:date>
						<dc:creator>shyam</dc:creator>
						<dc:subject></dc:subject>
						<description>level shifter is not required!!!..the pins (data/ctrl)  are 3v3  compattible . By the way which LCD u plan to use??</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t4144.html">
						<title>Re: Help GLCD port from 8051</title>
						<link>http://www.8051projects.net/forum-t4144.html</link>
						<dc:date>2008-12-01T23:24:36-08:00</dc:date>
						<dc:creator>mhel</dc:creator>
						<dc:subject></dc:subject>
						<description>Sorry guys for late reply, been busy.  I was not able to take video of the scrolling, with t6963c scrolling does not look good since it causes ghosting I think that's the right term. I meant because it scrolls very fast the display is not as clear compared to when you scroll in a terminal.tom_softi:yes shyam is right I didn't use any level shifter, it depends on the lcd specs I guess. usually minimum turn on is 3.2v I think, and some of the LPC pins are 5v tolerant.</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t4144.html">
						<title>Re: Help GLCD port from 8051</title>
						<link>http://www.8051projects.net/forum-t4144.html</link>
						<dc:date>2008-12-01T23:24:36-08:00</dc:date>
						<dc:creator>shyam</dc:creator>
						<dc:subject></dc:subject>
						<description>i am working on Mukund Deshmukh's code for KS0108 adapted from the 51 code.i am attaching the code .i am facing a strange problem.i can see data on only one half of the LCD.i interchanged CS1 and CS2 pins thus now i can see data on the other half..  but still unable to access both at a time.hope somebody wud help me out! grlcd.rar</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t4144.html">
						<title>Re: Help GLCD port from 8051</title>
						<link>http://www.8051projects.net/forum-t4144.html</link>
						<dc:date>2008-12-01T23:24:36-08:00</dc:date>
						<dc:creator>shyam</dc:creator>
						<dc:subject></dc:subject>
						<description>u r right mhel...but u can see in the code..LCD_CONTROL is not used  any where..  this is cause i have not started the cleaning job yet</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t4144.html">
						<title>Re: Help GLCD port from 8051</title>
						<link>http://www.8051projects.net/forum-t4144.html</link>
						<dc:date>2008-12-01T23:24:36-08:00</dc:date>
						<dc:creator>shyam</dc:creator>
						<dc:subject></dc:subject>
						<description>hello everybody!!!!as always the code was perfect somehow the PIN P0.2 was not functional dont know why...any ways i am pleased to announce that this code is working perfectly ..so we have one more code for KS0108 taht can be uploaded to the library</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t4144.html">
						<title>Re: Help GLCD port from 8051</title>
						<link>http://www.8051projects.net/forum-t4144.html</link>
						<dc:date>2008-12-01T23:24:36-08:00</dc:date>
						<dc:creator>mhel</dc:creator>
						<dc:subject></dc:subject>
						<description>could it be the pullup?  P0.2 is an i2c pin.</description>
						</item>
						<item rdf:about="http://www.8051projects.net/forum-t4144.html">
						<title>Re: Help GLCD port from 8051</title>
						<link>http://www.8051projects.net/forum-t4144.html</link>
						<dc:date>2008-12-01T23:24:36-08:00</dc:date>
						<dc:creator>shyam</dc:creator>
						<dc:subject></dc:subject>
						<description>aha!!!u got point there!!|o| how cud i have missed it???    will check that and reply!thanx Mhel</description>
						</item>
				</rdf:RDF>