Help GLCD port from 8051
Wed Feb 06 2008, 12:35 am
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 Thu Feb 14 2008, 10:34 am ]
Thu Feb 14 2008, 08:17 am
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.
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.
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; } }
Thu Feb 14 2008, 07:43 pm
sounds sweet..
make a small video i wanna see scrolling thingy..Ajay
me tooooooooooo
Fri Apr 18 2008, 06:02 am
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
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
Fri Apr 18 2008, 09:44 am
level shifter is not required!!!..
the pins (data/ctrl) are 3v3 compattible . By the way which LCD u plan to use??
:bye
the pins (data/ctrl) are 3v3 compattible . By the way which LCD u plan to use??
:bye
Fri Apr 18 2008, 01:20 pm
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.
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.
Fri Apr 18 2008, 06:53 pm
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!
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!
Fri Apr 18 2008, 10:33 pm
shyam,
just curious, why is it that in glcd.h the defines for control pins are:
but when used in control it has 'G'
edit:
never mind I just saw the lcdinit and I guess it doesnt matter.
just curious, why is it that in glcd.h the defines for control pins are:
#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'
#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:34 pm ]
Sat Apr 19 2008, 03:40 am
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
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
Powered by e107 Forum System