free 8051 Microcontroller Projects AVR PIC Microcontroller Projects Tutorials Ebooks Libraries, interfacing tutorials, lcd tutorial, stepper motor, dc motor 8051 assembly language programming electronics and communication ECE CSE pdf ebooks library BE final year project ideas Embedded systems

 
8051 microcontroller 8051 microcontroller
Forums

Go to page  [1] 2 3 4 5
Moderators: Ajay, Junied , abbas1707, Arun Kumar V, pdi33, Shailesh NAYAK, ۞ TPS ۞, shyam, sashijoseph
Author Post
mhel
Sat Dec 22 2007, 03:17PM
 User Offline
Registered Member #5217
Joined: Sat Dec 22 2007, 03:02PM

Posts: 36
Thanked 9 times in 9 posts
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.
8051_glcd.zip



[ Edited Sat Dec 22 2007, 03:20PM ]
Back to top


shyam
Sat Dec 22 2007, 11:20PM

 User Offline

Registered Member #2984
Joined: Mon Aug 06 2007, 11:33AM

Posts: 723
Thanked 107 times in 103 posts
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 Sat Dec 22 2007, 11:25PM ]

lProgress is not made by early risers or hard workers, but by LAZY people, trying to find easier ways to do the same........
Back to top


mhel
Sun Dec 23 2007, 09:05AM
 User Offline
Registered Member #5217
Joined: Sat Dec 22 2007, 03:02PM

Posts: 36
Thanked 9 times in 9 posts
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.

Back to top


shyam
Sun Dec 23 2007, 09:47AM

 User Offline

Registered Member #2984
Joined: Mon Aug 06 2007, 11:33AM

Posts: 723
Thanked 107 times in 103 posts
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


lProgress is not made by early risers or hard workers, but by LAZY people, trying to find easier ways to do the same........
Back to top


mhel
Mon Dec 24 2007, 08:02AM
 User Offline
Registered Member #5217
Joined: Sat Dec 22 2007, 03:02PM

Posts: 36
Thanked 9 times in 9 posts
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.
Back to top


shyam
Mon Dec 24 2007, 08:17AM

 User Offline

Registered Member #2984
Joined: Mon Aug 06 2007, 11:33AM

Posts: 723
Thanked 107 times in 103 posts
well if u really in need...
ok
i'll have it for download here.......
do u only want to show image on lcd???


lProgress is not made by early risers or hard workers, but by LAZY people, trying to find easier ways to do the same........
Back to top


mhel
Mon Dec 24 2007, 09:25AM
 User Offline
Registered Member #5217
Joined: Sat Dec 22 2007, 03:02PM

Posts: 36
Thanked 9 times in 9 posts
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.
Back to top


shyam
Mon Dec 24 2007, 09:50AM

 User Offline

Registered Member #2984
Joined: Mon Aug 06 2007, 11:33AM

Posts: 723
Thanked 107 times in 103 posts
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



lProgress is not made by early risers or hard workers, but by LAZY people, trying to find easier ways to do the same........
Back to top


shyam
Mon Dec 24 2007, 10:23AM

 User Offline

Registered Member #2984
Joined: Mon Aug 06 2007, 11:33AM

Posts: 723
Thanked 107 times in 103 posts
hi mhel
u can download the library from

http://www.8051projects.net/downloads197.html

lProgress is not made by early risers or hard workers, but by LAZY people, trying to find easier ways to do the same........
Back to top



This post has been thanked 1 time
 mhel 
mhel
Mon Dec 24 2007, 10:52AM
 User Offline
Registered Member #5217
Joined: Sat Dec 22 2007, 03:02PM

Posts: 36
Thanked 9 times in 9 posts
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 Mon Dec 24 2007, 03:01PM ]
Back to top


Go to page  [1] 2 3 4 5  

Jump:     Back to top

Syndicate this thread: rss 0.92 Syndicate this thread: rss 2.0 Syndicate this thread: RDF
Powered by e107 Forum System

8051 Microcontroller Projects 8051 AVR tutorials PIC microcontroller, 8051 assembly language programming electronics and communication ECE CSE pdf ebooks library BE final year project ideas Embedded systems