Help GLCD port from 8051
Sun Dec 23 2007, 04:47 am
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.
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
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......
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
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.
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
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
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
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.
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
well if u really in need...
ok
i'll have it for download here.......
do u only want to show image on lcd???
ok
i'll have it for download here.......
do u only want to show image on lcd???
Mon Dec 24 2007, 10:55 pm
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.
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
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
watch out here i'll let u know as soon as the code is uploaded
Tue Dec 25 2007, 12:22 am
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.
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 ]
Powered by e107 Forum System