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
shyam
Tue Dec 25 2007, 09:44PM

 User Offline

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

Posts: 662
Thanked 91 times in 88 posts
hmm ,,
well then i m gonna convert that 51 code that too as early as possible... just be with me....



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
Wed Dec 26 2007, 09:18AM

 User Offline

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

Posts: 662
Thanked 91 times in 88 posts
hi mhel,
cudnt find the following definitions....
CODE:

byte_basso(dato);
 byte_alto(dato);


plz.. check if u have them n which file.....

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
Wed Dec 26 2007, 09:52AM
 User Offline
Registered Member #5217
Joined: Sat Dec 22 2007, 03:02PM

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


mhel
Sat Jan 05 2008, 04:02PM
 User Offline
Registered Member #5217
Joined: Sat Dec 22 2007, 03:02PM

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

  do
    {
      i = 0;
      do
        {
          gotoxy(i, i);
          box(239-4*i, 127-4*i);
          refresh_LCD(0);                                               //refresh for each box
          pause(QUARTER_SEC);
        }while (i++ < 16);
      set_display(F5x8, (flag) ? NORMAL : REVERSE);
      flag = !flag;
    }while (flag);
   
        pause(FIVE_SEC);

        //clearlcd (ALL);

        // test fonts
        set_display(F5x8, NORMAL);
        gotoxy(2,2); wrstr("5/8 FONT");

refresh_LCD(0);
 


Thanks.
Back to top


mhel
Sat Jan 05 2008, 04:05PM
 User Offline
Registered Member #5217
Joined: Sat Dec 22 2007, 03:02PM

Posts: 36
Thanked 9 times in 9 posts
7zip files is not supported , I forgot about it.
lcdt.zip

Edit: how do I update the attachment I want to reupload a new one???

[ Edited Sat Jan 05 2008, 06:04PM ]
Back to top



This post has been thanked 1 time
 shyam 
mhel
Sat Jan 05 2008, 05:41PM
 User Offline
Registered Member #5217
Joined: Sat Dec 22 2007, 03:02PM

Posts: 36
Thanked 9 times in 9 posts
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 problems
some pixels on the right are not drawn/erased.
EDIT2: now, the box is really fixed
changed in clearfiled()
CODE:
const uint8_t blank[] ={ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 };

to:
CODE:
const uint8_t blank[] = { 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 };


the font drawing is really tough I need help on that one, but I'm kinda a glad I got this going

[ Edited Sat Jan 05 2008, 06:01PM ]
Back to top


shyam
Sun Jan 06 2008, 05:42AM

 User Offline

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

Posts: 662
Thanked 91 times in 88 posts
hi mhel got this attatchment....
will lokk on to it....

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


Ajay
Sun Jan 06 2008, 05:58AM
Rickey's World Admin

 User Offline

Registered Member #1
Joined: Fri Feb 24 2006, 04:56AM

Posts: 3252
Thanked 602 times in 569 posts
mhel wrote ...

7zip files is not supported , I forgot about it.
lcdt.zip

Edit: 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

www.rickeyworld.info
If you feel satisfied with the user's forum reply please click on the thank button.

Obey forum rules!
Respect others!
Back to top


mhel
Sun Jan 06 2008, 08:18AM
 User Offline
Registered Member #5217
Joined: Sat Dec 22 2007, 03:02PM

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


shyam
Sun Jan 06 2008, 10:18AM

 User Offline

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

Posts: 662
Thanked 91 times in 88 posts
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...


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


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