Discussion in "ARM Development" started by    mhel    Dec 23, 2007.
Sun Dec 23 2007, 04:47 am
#1
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 WinARM

TIA.


[ Edited Sun Dec 23 2007, 04:50 am ]
Sun Dec 23 2007, 12:50 pm
#2
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......



[ Edited Sun Dec 23 2007, 12:55 pm ]
Sun Dec 23 2007, 10:35 pm
#3
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.

Sun Dec 23 2007, 11:17 pm
#4
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
Mon Dec 24 2007, 09:32 pm
#5
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.
Mon Dec 24 2007, 09:47 pm
#6
well if u really in need...
ok
i'll have it for download here.......
do u only want to show image on lcd???
Mon Dec 24 2007, 10:55 pm
#7
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.
Mon Dec 24 2007, 11:20 pm
#8
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

Mon Dec 24 2007, 11:53 pm
#9
hi mhel
u can download the library from

http://www.8051projects.net/downloads197.html
 mhel like this.
Tue Dec 25 2007, 12:22 am
#10
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.


[ Edited Tue Dec 25 2007, 04:31 am ]

Get Social

Information

Powered by e107 Forum System

Downloads

Comments

AntoniaRoons
Fri Apr 19 2024, 09:59 pm
carpinteyrowrl
Fri Apr 19 2024, 02:51 pm
DonaldJAX
Fri Apr 19 2024, 01:08 pm
Lewisuhakeply
Thu Apr 18 2024, 06:00 pm
Darrellciz
Thu Apr 18 2024, 11:07 am
Charlessber
Thu Apr 18 2024, 09:29 am
BartonSem
Thu Apr 18 2024, 04:56 am
DonaldKnown
Thu Apr 18 2024, 12:24 am