Sunday, February 18th 2018, 8:44pm UTC+1

You are not logged in.

  • Login
  • Register

Software: LDC Driver

Dear visitor, welcome to SEGGER Forum. If this is your first visit here, please read the Help. It explains how this page works. You must be registered before you can use all the page's features. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

avi_keret

Beginner

Date of registration: Nov 19th 2007

Posts: 1

1

Monday, November 19th 2007, 4:00pm

LDC Driver

Dear SEGGER help Desk

I have LCD driver writen by SEGGER. This is the driver for TOSHIBA JBT6K71-AS.

I have 15 questions after reading the data sheet that show diffrents from the recomdetion in the datasheet. AND THE LCD driver DO NOT WORK.

this is segger respones :



" The questions in your documents all refer to the initialization of the display

which is not part of SEGGER support. You may want to contact your display vendor

regarding the initialization of the display.

The initialization we sent is based on the TD020MHEA1 SW setting.pdf which we received

from your colleague Ido Nir-Shafrir on January 8th. Fine tuning the

initialization is not part of the emWin support but needs to be done by the customer."



can you kindly help me to work with my LCD

avi keret Medingo

SEGGER - Claudia

Super Moderator

Date of registration: Nov 15th 2007

Posts: 2

2

Monday, November 19th 2007, 4:58pm

Driver for TOSHIBA JBT6K71-AS

Dear Avi,


Please note that this is not a J-Link related topic.

SEGGER provided your company with a sample initialization and a picture of the running LCD (below).

SEGGER usually provides initialization samples if they are already available.

Information on how to initialize the display can be obtained from the display manufacturer.

Finetuning the hardware initialization is not part of the emWin software.

Please find below again the sample initalization shipped with the software.






C/C++ Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
/*********************************************************************
*            	SEGGER MICROCONTROLLER SYSTEME GmbH             	*
*    	Solutions for real time microcontroller applications    	*
**********************************************************************
*                                                                	*
*    	(c) 1996 - 2004  SEGGER Microcontroller Systeme GmbH    	*
*                                                                	*
*    	Internet: www.segger.com	Support:  support@segger.com	*
*                                                                	*
**********************************************************************

***** emWin - Graphical user interface for embedded applications *****
emWin is protected by international copyright laws.   Knowledge of the
source code may not be used to write a similar product.  This file may
only be used in accordance with a license and should not be re-
distributed in any way. We appreciate your understanding and fairness.
----------------------------------------------------------------------
File    	: LCDConf_66703_C16_C240x320.h
Purpose 	: Sample configuration file
----------------------------------------------------------------------
*/

#ifndef LCDCONF_H
#define LCDCONF_H

/*********************************************************************
*
*               	General configuration of LCD
*
**********************************************************************
*/

#define LCD_CONTROLLER 66703

#define LCD_XSIZE    	240
#define LCD_YSIZE    	320

#define LCD_BITSPERPIXEL  16

#define LCD_SWAP_RB    	1
#define LCD_MIRROR_X   	1

/*********************************************************************
*
*               	Simple bus configuration
*
**********************************************************************
*/

void LCD_X_WriteM01(char * pData, int NumBytes);
void LCD_X_WriteM00(char * pData, int NumBytes);
void LCD_X_ReadM01 (char * pData, int NumBytes);
#define LCD_WRITEM_A1(Byte, NumBytes) LCD_X_WriteM01(Byte, NumBytes)
#define LCD_WRITEM_A0(Byte, NumBytes) LCD_X_WriteM00(Byte, NumBytes)
#define LCD_READM_A1(Byte, NumBytes)  LCD_X_ReadM01(Byte, NumBytes)

/*********************************************************************
*
*               	Initialisation macro
*
**********************************************************************
*/

void LCD_X_Init(void);
void LCD_X_Sync(void);

#define DELAY(Cnt) { volatile U32 i; for (i = 0; i < Cnt; i++); }

#define LCD_INIT_CONTROLLER()                                                        	\
  LCD_X_Init();                                                                      	\
  /* Deep standby out */                                                             	\
  _WriteU16_A0(0x000);                                                               	\
  DELAY(100);                                                                        	\
  _WriteU16_A0(0x000);                                                               	\
  DELAY(100);                                                                        	\
  _WriteU16_A0(0x000);                                                               	\
  DELAY(100);                                                                        	\
  /* Standby out */                                                                  	\
  _WriteU16_A0(0x5ff); _WriteU16_A1(0x0000); /* NOP */                               	\
  LCD_X_Sync();                                                                      	\
  _WriteU16_A0(0x01d); _WriteU16_A1(0x0005); /* Mode setting */                      	\
  DELAY(100);                                                                        	\
  /* Initialization */                                                               	\
  _WriteU16_A0(0x000); _WriteU16_A1(0x0001); /* Oscillator on */                     	\
  /* Display control */                                                              	\
  _WriteU16_A0(0x001); _WriteU16_A1(0x0027); /* Display size 320 lines */            	\
  _WriteU16_A0(0x002); _WriteU16_A1(0x0200); /* AC conversion */                     	\
  _WriteU16_A0(0x007); _WriteU16_A1(0x4004); /* Display mode */                      	\
  _WriteU16_A0(0x00d); _WriteU16_A1(0x0011); /* FR period adjustment setting */      	\
  _WriteU16_A0(0x00f); _WriteU16_A1(0x0000); /* External display signal setting (3) */   \
  /* LTPS control settings */                                                        	\
  _WriteU16_A0(0x012); _WriteU16_A1(0x0303); /* LTPS control setting (1) */          	\
  _WriteU16_A0(0x013); _WriteU16_A1(0x0102); /* LTPS control setting (2) */          	\
  _WriteU16_A0(0x01c); _WriteU16_A1(0x0000); /* Amplifier capability setting */      	\
  /* Power settings */                                                               	\
  _WriteU16_A0(0x102); _WriteU16_A1(0x00f6); /* Power supply control (1) */          	\
  _WriteU16_A0(0x103); _WriteU16_A1(0x0007); /* Power Supply Control (2) */          	\
  _WriteU16_A0(0x105); _WriteU16_A1(0x0111); /* Power supply control (4) */          	\
  /* Gray scale settings (gamma corrections for 2.2) */                              	\
  _WriteU16_A0(0x300); _WriteU16_A1(0x0200); /* Gray scale setting */                	\
  _WriteU16_A0(0x301); _WriteU16_A1(0x0002); /* Gray scale setting */                	\
  _WriteU16_A0(0x302); _WriteU16_A1(0x0000); /* Gray scale setting */                	\
  _WriteU16_A0(0x303); _WriteU16_A1(0x0300); /* Gray scale setting */                	\
  _WriteU16_A0(0x304); _WriteU16_A1(0x0700); /* Gray scale setting */                	\
  _WriteU16_A0(0x305); _WriteU16_A1(0x0070); /* Setting for Gray scale offset amounts */ \
  /* RAM access settings */                                                          	\
  _WriteU16_A0(0x402); _WriteU16_A1(0x0000); /* First screen drive position (1) */   	\
  _WriteU16_A0(0x403); _WriteU16_A1(0x013f); /* First screen drive position (2) */   	\
  _WriteU16_A0(0x406); _WriteU16_A1(0x0000); /* Horizontal RAM address location (1) */   \
  _WriteU16_A0(0x407); _WriteU16_A1(0x00ef); /* Horizontal RAM address location (2) */   \
  _WriteU16_A0(0x408); _WriteU16_A1(0x0000); /* Vertical RAM address location (1) */ 	\
  _WriteU16_A0(0x409); _WriteU16_A1(0x013f); /* Vertical RAM address location (2) */ 	\
  _WriteU16_A0(0x200); _WriteU16_A1(0x00ef); /* RAM address setting (1) */           	\
  _WriteU16_A0(0x201); _WriteU16_A1(0x0000); /* RAM address setting (2) */           	\
  _WriteU16_A0(0x202); _WriteU16_A1(0x0000);                                         	\
  /* Display on */                                                                   	\
  _WriteU16_A0(0x100); _WriteU16_A1(0xc010); /* Display Control */                   	\
  DELAY(100000);                                                                     	\
  _WriteU16_A0(0x101); _WriteU16_A1(0x0001); /* Auto sequence Control */             	\
  _WriteU16_A0(0x100); _WriteU16_A1(0xf7fe); /* Display Control */                   	\
  DELAY(100000)

#endif /* LCDCONF_H */




We hope this helps!



Claudia

Pete

Beginner

Date of registration: Nov 19th 2007

Posts: 6

3

Monday, November 19th 2007, 11:39pm

What does this have to do with J-Link ???

Maybe the segger staff should try to have a separate division for GUI product ?

bobsanjose

Beginner

Date of registration: Nov 19th 2007

Posts: 6

4

Monday, November 19th 2007, 11:45pm

Hi Pete,

you are right, little (none?) relationship to J-Link. Guess the Segger staff wanted to be nice. I would second your proposal to add another forum for GUI or whatever it might be called.

Cheers, Bob

SEGGER - Til

Super Moderator

Date of registration: Nov 14th 2007

Posts: 264

5

Wednesday, November 21st 2007, 3:18pm

I moved this thread to the emWin section, I think that matches the topic better.