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
Tue Feb 05 2008, 11:05AM
 User Offline
Registered Member #5217
Joined: Sat Dec 22 2007, 03:02PM

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





[ Edited Wed Feb 13 2008, 09:04PM ]
Back to top


mhel
Wed Feb 13 2008, 06:47PM
 User Offline
Registered Member #5217
Joined: Sat Dec 22 2007, 03:02PM

Posts: 36
Thanked 9 times in 9 posts
finally figured out how to scroll sweeet.
this works for a 5x8 font, need to change the hard values to variables
to match the font size used.

Note: this is for 240x128 dots LCD, 16rows 30columns 8x8dots 16*8*30=3840
so you know which to change to match your's.
CODE:
void scroll(void)
/**************************************************************/
{
    uint32_t i;
    // Row 15 is the end, this means we need to scroll up
    if (yStart >=128)
    {
        // Move the current text chunk that makes up the screen
        // back in the buffer by a line
        for (i = 0; i < 3840; i++)
        {
                framebuffer[i] = framebuffer[i+240];

        }
        // The last line should now be blank. Do this by writing 0's
        for (i = 3600; i < 3840; i++)//120*30
        {
            framebuffer[i] = 0x00;
        }
        // The cursor should now be on the last line.
        yStart = 120;

    }
}
Back to top


Ajay
Wed Feb 13 2008, 09:59PM
Rickey's World Admin

 User Offline

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

Posts: 3533
Thanked 646 times in 610 posts
sounds sweet..

make a small video i wanna see scrolling thingy..

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


abbas1707
Thu Feb 14 2008, 06:13AM

 User Offline
Registered Member #383
Joined: Thu Jan 25 2007, 08:07AM

Posts: 414
Thanked 65 times in 52 posts
Ajay wrote ...

sounds sweet..

make a small video i wanna see scrolling thingy..

me tooooooooooo


A Thousand Miles Journey Starts With a Single Step.
Back to top


tom_softi
Thu Apr 17 2008, 05:32PM
 User Offline
Registered Member #7292
Joined: Thu Apr 17 2008, 05:26PM

Posts: 1
Thanked 0 times in 0 post
Hi all,
how have you connected your dsiplay to the LPC
have you used a level shifter from 3,3 to 5V or is it connected directly to the LPC port pins.

regards Tom
Back to top


shyam
Thu Apr 17 2008, 09:14PM

 User Offline

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

Posts: 710
Thanked 104 times in 100 posts
level shifter is not required!!!..

the pins (data/ctrl) are 3v3 compattible . By the way which LCD u plan to use??



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
Fri Apr 18 2008, 12:50AM
 User Offline
Registered Member #5217
Joined: Sat Dec 22 2007, 03:02PM

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




Back to top


shyam
Fri Apr 18 2008, 06:23AM

 User Offline

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

Posts: 710
Thanked 104 times in 100 posts
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

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
Fri Apr 18 2008, 10:03AM
 User Offline
Registered Member #5217
Joined: Sat Dec 22 2007, 03:02PM

Posts: 36
Thanked 9 times in 9 posts
shyam,
just curious, why is it that in glcd.h the defines for control pins are:
CODE:

#define LCD_CS2         BIT(10)  /* Chip Select Col1-64   P0.10*/
#define LCD_CS1         BIT(28)  /* Chip Select Col64-128 P0.28 */
#define LCD_RW                  BIT(31)  /* Read/Write  P031 */
#define LCD_DI                  BIT(6)  /* Data/Instr. P0.06 */
#define LCD_E                   BIT(26)  /* Enable P0.26 */
#define LCD_RST         BIT(27)  /* Enable P0.27 */
 


but when used in control it has 'G'
CODE:

#define LCD_CONTROL     (uint32_t)(GLCD_CS1|GLCD_CS2|GLCD_RW|GLCD_DI|GLCD_E|GLCD_RESET)
 


edit:
never mind I just saw the lcdinit and I guess it doesnt matter.

[ Edited Fri Apr 18 2008, 10:04AM ]
Back to top


shyam
Fri Apr 18 2008, 03:10PM

 User Offline

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

Posts: 710
Thanked 104 times in 100 posts
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

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