CFAG14432A in character mode

zg4

New member
hello,
I use CFAG14432A in character mode, but on display is 16x16 characters font (2 row x 9 character)
How to initialize CFAG14432A to display 8x16 alphanumerical character. (2 row x 18 characters)

thanks
Looking for additional LCD resources? Check out our LCD blog for the latest developments in LCD technology.
 

zg4

New member
my programm

Can you send your code so that we can look into this?
Part of program:
Code:
void displ1(void)    /* power on init */
{
DISP_UN=0X30;      /* soft reset */
delay(500);         /* 6 ms       */
DISP_UN=0X30;
delay(500);
DISP_UN=0x0C;  
delay(500);
DISP_UN=0X01;       /* clear disp */
delay(500);
DISP_UN=0x06;         /* mode set */
delay(500);
}


void ispis_disp_blanc(void)    /* clear */
{

  DISP_UN=0X01;      // clear 
  delay(500);        // 6 ms
}

void print_disp(redni_d,d_ispis)     /* data on adress */
char redni_d;
char d_ispis;
{
DISP_UN=(0X80 + redni_d);       /* set adress */
delay_mk(6);

DISP_UD=d_ispis;                /* set data */
delay_mk(6);
}


void write_disp(char start_adr, char *ptr)    
{
  while(*ptr !=0)
   {
   print_disp(start_adr++,*ptr++);
   }
}

/* ----------------------------------  */

void ispis_disp(void) // test
 { 
   ispis_disp_blanc();   // clear
 
     write_disp(0,"123456789"); //1 row
    write_disp(16,"2row-test"); //2 row 
 }
 

Attachments

CF Support

Administrator
If I'm not mistaken, there is an issue with the clearing the LCD. Can you try removing the display clears and see if that effects the output?
 

zg4

New member
no diference

If I'm not mistaken, there is an issue with the clearing the LCD. Can you try removing the display clears and see if that effects the output?
I have remove display clear but no difference.

How I can chose between fonts 16x16 and 8x16????

 

Attachments

CF Support

Administrator
The initialization from our CFAH_Wintest does not yield the 16x16 text -- I'm assuming that the code you've attached is not all of the code that talks to the LCD?

Code:
void Init_LCD_8(ubyte enable)
  {
  //This sequence is from the initialization on page 45 of the HD44780U
  //data sheet.
  Sleep(40);
  Write_LCD_Control_8(0x38,enable);
  //Yes, the data sheet says write it twice.
  Sleep(5);
  Write_LCD_Control_8(0x38,enable);
  //Yes, the data sheet says write it three times.
  Sleep(125);
  Write_LCD_Control_8(0x38,enable);
  //Yes, the data sheet says write it four times, but at least this one counts.
  //038h is Function set:
  //8 bit,
  //2 line
  //F = (5x8)
  Sleep(1);
  Write_LCD_Control_8(0x38,enable);
  //"Display off"
  Sleep(2);
  Write_LCD_Control_8(0x08,enable);
  //"Display clear"
  Sleep(2);
  Write_LCD_Control_8(0x01,enable);
  //006h is Entry mode set, increment, no shift
	Sleep(2);
  Write_LCD_Control_8(0x06,enable);
  //Display on, cursor on, blinking
	Sleep(2);
  Write_LCD_Control_8(0x0F,enable);
  //Clear the display again. This seems to fix a power-up problem
  //where the display shows "{{{{{" in a couple of places.
	Sleep(2);
  Write_LCD_Control_8(0x09,enable);
  //Display on, cursor on, blinking
	Sleep(2);
  Write_LCD_Control_8(0x01,enable);
  }
 

zg4

New member
whole code is in zip file!!!!!!!

The initialization from our CFAH_Wintest does not yield the 16x16 text -- I'm assuming that the code you've attached is not all of the code that talks to the LCD?

Code:
void Init_LCD_8(ubyte enable)
  {
  //This sequence is from the initialization on page 45 of the HD44780U
  //data sheet.
  Sleep(40);
  Write_LCD_Control_8(0x38,enable);
  //Yes, the data sheet says write it twice.
  Sleep(5);
  Write_LCD_Control_8(0x38,enable);
  //Yes, the data sheet says write it three times.
  Sleep(125);
  Write_LCD_Control_8(0x38,enable);
  //Yes, the data sheet says write it four times, but at least this one counts.
  //038h is Function set:
  //8 bit,
  //2 line
  //F = (5x8)
  Sleep(1);
  Write_LCD_Control_8(0x38,enable);
  //"Display off"
  Sleep(2);
  Write_LCD_Control_8(0x08,enable);
  //"Display clear"
  Sleep(2);
  Write_LCD_Control_8(0x01,enable);
  //006h is Entry mode set, increment, no shift
	Sleep(2);
  Write_LCD_Control_8(0x06,enable);
  //Display on, cursor on, blinking
	Sleep(2);
  Write_LCD_Control_8(0x0F,enable);
  //Clear the display again. This seems to fix a power-up problem
  //where the display shows "{{{{{" in a couple of places.
	Sleep(2);
  Write_LCD_Control_8(0x09,enable);
  //Display on, cursor on, blinking
	Sleep(2);
  Write_LCD_Control_8(0x01,enable);
  }

code is in zip file included uv2
 

zg4

New member
solved

If you change your code to match ours from the CFAH_Wintest program, what do you get?
hello,
I think that I have solwed it. I have no error in code , display know only this 9 character in row.
It has 16x16 blok, character use 8x16 and 8x16 leave blank. On my picture you can see character 8x16 and space 8x16. If I turn on cursor than you can see blok 16x16... see picture!

 

Attachments

Top