⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 au_7_a.c

📁 这是一个用T108加上瑞萨公司R8C2A做的一个OSD显示。希望能帮上大家。
💻 C
📖 第 1 页 / 共 2 页
字号:
/****************************************************************************
* File: AU_7_A.c                                                            *
* Description: This file includes Tcon values and ScanMode for AU 7"        * 
*	       analog panel           					    *
****************************************************************************/


REGADRVAL const stINTT10xP0[]={
    	//adr  		, value	
	0x50		, 0x06,      								//VSYNC_TIME_MEA_REG	
	0x38		, 0x50,                                 	//HSYNC_MISSCNT_L_REG	
	0x39		, 0x00,                                 	//HSYNC_MISSCNT_H_REG	
	0x3A		, 0x20,                                 	//VSYNC_DLT_REG		
	0x3B		, 0x03,                                 	//HSYNC_DLT_REG			
};

/*unsigned char const TconP1Data[]={  //20~35
0x21,TIME_PROTOCOL,0x02,0x02,0x0C,0x02,0x02,0xf2,0x01,0x29,0x00,
0x04,0x18,GATE_PREDRIVE,0x00,0x00,0x01,0xFB,0x01,0x37,0x00,0x06	
};*/
unsigned char const TconP1Data[]={  //10~35
0x21,TIME_PROTOCOL,0x2D,0x02,0x0C,0x4B,0x02,0x1C,0x02,0x29,0x00,
0x07,0x18,GATE_PREDRIVE,0x00,0x00,0x01,0xFB,0x01,0x37,0x00,0x06	
};	   	        

/*******************************************************************************
*          T10x Panel specified register settings                              *
*          (including default Brightness/Contrast/Sat                          *
*******************************************************************************/
unsigned char const ucaPanelSpecAdrP0[]={ // 
0x79, 0xc7, 0x65, 0x66
};

unsigned char const ucaPanelSpecDataP0[]={ // 
0x00, 0x05, 0x08, 0x88
};

unsigned char const ucaPanelSpecAdrP2[]={ // 
0x08, 0x09, 0x0a
};

unsigned char const ucaPanelSpecDataP2[]={ // 
//Constrast, Bright, Sat
//0x60, 0x30, 0xa0
   0x36, 0x26, 0x58		//lucy for t128 display
};

/*******************************************************************************
*          T10x Output timing Register Adress and Value for static condition   *
*******************************************************************************/
//====== Output timing Register Adress ===========//

unsigned char const ucaZoomAdrP0[]={
0x40, 0x70, 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x84, 0x85, 0x88, 0x89, 0x8a, 0x8b, 0xc8,
0xb0, 0xb2, 0xb6, 0xb8, 0xbe, 0xd8, 0xd9, 0xda, 0xdb, 0xdc, 0xdd, 0xde, 0xdf, 0x30, 0x79 , 0xe2
};
unsigned char const ucaZoomAdrP2[]={
0x2e, 0x2f, 0x30, 0x31
};


//====== Output timing Register Value ===========//
unsigned char const ucaZoomDataP0_NTSC[]={	
//0x40, 0x70, 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x84, 0x85, 0x88, 0x89, 0x8a, 0x8b, 0xc8,
//0xb0, 0xb2, 0xb6, 0xb8, 0xbe, 0xd8, 0xd9, 0xda, 0xdb, 0xdc, 0xdd, 0xde, 0xdf, 0x30, 0x79 , 0xe2
//full
  0x10, 0xb1, 0x66, 0x2E, 0x00, 0x20, 0x00, 0x00, 0xC7, 0x01, 0x00, 0x00, 0x00, 0x00, 0x15,
  0x3A, 0x11, 0xea, 0x68, 0x03, 0x00, 0x00, 0x00, 0x00, 0xe0, 0x01, 0xea, 0x00, 0x83, 0x00, 0x11,
//Zoom 1
  0x10, 0xb1, 0x66, 0x2E, 0x00, 0x20, 0x00, 0x82, 0xC7, 0x01, 0x00, 0x00, 0x00, 0x00, 0x15,
  0x3A, 0x11, 0xea, 0x68, 0x03, 0x00, 0x00, 0x00, 0x00, 0xe0, 0x01, 0xea, 0x00, 0x83, 0x00, 0x11,
//Zoom 2, zoom wide 1 in Himax8806A
  0x10, 0xb1, 0x66, 0x2E, 0x00, 0x20, 0x00, 0xc3, 0xC7, 0x01, 0x00, 0x00, 0x00, 0x00, 0x15,
  0x3A, 0x11, 0xea, 0x68, 0x03, 0x00, 0x00, 0x00, 0x00, 0xe0, 0x01, 0xea, 0x00, 0x83, 0x00, 0x11,
//_4:3
//0x40, 0x70, 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x84, 0x85, 0x88, 0x89, 0x8a, 0x8b, 0xc8,
//0xb0, 0xb2, 0xb6, 0xb8, 0xbe, 0xd8, 0xd9, 0xda, 0xdb, 0xdc, 0xdd, 0xde, 0xdf, 0x30, 0x79 , 0xe2
  0x0c, 0xb1, 0xdd, 0x3d, 0x00, 0x20, 0x00, 0x00, 0xec, 0x0e, 0x00, 0x00, 0x00, 0x00, 0x15,
  0x3A, 0x11, 0xea, 0x68, 0x03, 0x3c, 0x00, 0x00, 0x00, 0x68, 0x01, 0xea, 0x00, 0x83, 0x00, 0x11,
//Zoom 3, zoom 2 in Himax
  0x10, 0xb1, 0x88, 0xb8, 0x80, 0x76, 0x00, 0x00, 0x8d, 0x80, 0x00, 0x00, 0x00, 0x00, 0x15,
  0x16, 0x0f, 0xea, 0x36, 0x07, 0x00, 0x00, 0x00, 0x00, 0xe0, 0x01, 0xea, 0x00, 0x83, 0x00, 0x11,
//Zoom 4, wide in Himax 8806A
  0x10, 0xb1, 0x00, 0xbb, 0xd0, 0x7f, 0x00, 0xc8, 0x8d, 0x0f, 0x00, 0x00, 0x00, 0x00, 0x15,
  0x3A, 0x11, 0xea, 0x66, 0x03, 0x00, 0x00, 0x00, 0x00, 0xe0, 0x01, 0xea, 0x00, 0x83, 0x00, 0x11,
//Zoom5 , zoom wide 2 in Himax 8806A
  0x10, 0xb1, 0x88, 0xb8, 0x80, 0x76, 0x00, 0x84, 0x8d, 0x80, 0x00, 0x00, 0x00, 0x00, 0x15,
  0x16, 0x0f, 0xea, 0x36, 0x07, 0x00, 0x00, 0x00, 0x00, 0xe0, 0x01, 0xea, 0x00, 0x83, 0x00, 0x11,
//Zoom6, zoom 3 in Himax 8806A
  0x10, 0xb1, 0x88, 0xb8, 0x60, 0x76, 0x00, 0x00, 0x8d, 0x49, 0x00, 0x00, 0x00, 0x00, 0x15,
  0x16, 0x0f, 0xea, 0x3e, 0x05, 0x00, 0x00, 0x00, 0x00, 0xe0, 0x01, 0xea, 0x00, 0x83, 0x00, 0x11,
//Zoom7
  0x3c, 0xb1, 0xA9, 0x3A, 0x29, 0x64, 0x00, 0x00, 0x00, 0x8b, 0x00, 0x00, 0x00, 0x00, 0x17,
  0x10, 0x1f, 0xea, 0x0f, 0x03, 0x00, 0x00, 0x00, 0x00, 0xE0, 0x01, 0xEA, 0x00, 0x03, 0x20, 0x11,
};

unsigned char const ucaZoomDataP0_PAL[]={
//0x40, 0x70, 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x84, 0x85, 0x88, 0x89, 0x8a, 0x8b, 0xc8,
//0xb0, 0xb2, 0xb6, 0xb8, 0xbe, 0xd8, 0xd9, 0xda, 0xdb, 0xdc, 0xdd, 0xde, 0xdf, 0x30, 0x79 , 0xe2
//full
  0x0C, 0xb1, 0x66, 0x2E, 0x4A, 0x26, 0x00, 0x00, 0xC7, 0x0e, 0x00, 0x00, 0x00, 0x00, 0x15,
  0x79, 0x10, 0xEA, 0xE7, 0x03, 0x00, 0x00, 0x00, 0x00, 0xe0, 0x01, 0xea, 0x00, 0x83, 0x00, 0x11,                 
//Zoom 1        
  0x0C, 0xb1, 0x66, 0x2E, 0x4A, 0x26, 0x00, 0x82, 0xC7, 0x0e, 0x00, 0x00, 0x00, 0x00, 0x15,
  0x79, 0x10, 0xEA, 0xE7, 0x03, 0x00, 0x00, 0x00, 0x00, 0xe0, 0x01, 0xea, 0x00, 0x83, 0x00, 0x11,                      
//Zoom 2, zoom wide 1 in Himax8806A                                                              
  0x0C, 0xb1, 0x66, 0x2E, 0x4A, 0x26, 0x00, 0xC3, 0xC7, 0x0e, 0x00, 0x00, 0x00, 0x00, 0x15,
  0x79, 0x10, 0xEA, 0xE7, 0x03, 0x00, 0x00, 0x00, 0x00, 0xe0, 0x01, 0xea, 0x00, 0x83, 0x00, 0x11,                   
//_4:3                                                                                        
  0x0C, 0xb1, 0xDD, 0x3D, 0x4A, 0x26, 0x00, 0x00, 0xB3, 0x11, 0x00, 0x00, 0x00, 0x00, 0x15,
  0x79, 0x11, 0xEA, 0xE5, 0x03, 0x3c, 0x00, 0x00, 0x00, 0x68, 0x01, 0xEA, 0x00, 0x83, 0x00, 0x11,                  
//Zoom 3, zoom 2 in Himax                                                                        
  0x0c, 0xb1, 0x99, 0xB9, 0x29, 0x8D, 0x00, 0x00, 0xDD, 0x12, 0x00, 0x00, 0x00, 0x00, 0x15,
  0x79, 0x23, 0xEA, 0xB3, 0x03, 0x00, 0x00, 0x00, 0x00, 0xE0, 0x01, 0xEA, 0x00, 0x83, 0x00, 0x11,                  
//Zoom 4, wide in Himax 8806A                                                                    
  0x0c, 0xb1, 0x99, 0xB9, 0x29, 0x99, 0x00, 0xCA, 0xDD, 0x0f, 0x00, 0x00, 0x00, 0x00, 0x15,
  0x79, 0x11, 0xEA, 0xE3, 0x03, 0x00, 0x00, 0x00, 0x00, 0xe0, 0x01, 0xea, 0x00, 0x83, 0x00, 0x11,                  
//Zoom5 , zoom wide 2 in Himax 8806A                                                             
  0x0c, 0xb1, 0x99, 0xB9, 0x29, 0x8D, 0x00, 0xCA, 0xDD, 0x12, 0x00, 0x00, 0x00, 0x00, 0x15,
  0x79, 0x23, 0xEA, 0xB3, 0x03, 0x00, 0x00, 0x00, 0x00, 0xE0, 0x01, 0xEA, 0x00, 0x83, 0x00, 0x11,                  
//Zoom6, zoom 3 in Himax 8806A                                                                   
  0x0c, 0xb1, 0x99, 0xB9, 0x29, 0x8D, 0x00, 0x00, 0xDD, 0x04, 0x00, 0x00, 0x00, 0x00, 0x15,
  0x79, 0x22, 0xEA, 0xA7, 0x03, 0x00, 0x00, 0x00, 0x00, 0xE0, 0x01, 0xEA, 0x00, 0x83, 0x00, 0x11,                   
//Zoom7                                                                                      
  0x16, 0xb1, 0xA9, 0x3A, 0x29, 0x76, 0x00, 0x00, 0xDD, 0x9f, 0x00, 0x00, 0x00, 0x00, 0x16,
  0x10, 0x23, 0xea, 0x55, 0x03, 0x00, 0x00, 0x00, 0x00, 0xE0, 0x01, 0xEA, 0x00, 0x03, 0x20, 0x11,  
/*   bigger size
  0x3c, 0xA9, 0x3A, 0x29, 0x64, 0x00, 0x00, 0xDD, 0x92, 0x00, 0x00, 0x00, 0x00, 0x17,
  0x10, 0x37, 0xea, 0x0f, 0x03, 0x00, 0x00, 0x00, 0x00, 0xE0, 0x01, 0xEA, 0x00, 0x03, 0x20,
*/
};

unsigned char const ucaZoomDataP2_NTSC[]={
//full
  0x88, 0x50, 0x26, 0x69, 
// Zoom 1
  0x88, 0x50, 0x26, 0x69, 
// Zoom 2
  0x88, 0x50, 0x26, 0x69, 
//_4:3
  0x82, 0x50, 0x26, 0x69,
// Zoom 3, Zoom2 in Himax
  0x88, 0x50, 0x20, 0x69,
// Zoom 4
  0x88, 0x50, 0x26, 0x69,
// Zoom 5, zoom wide 2 in Himax 8806A
  0x88, 0x50, 0x20, 0x69,
// Zoom 6, zoom 3 in Himax 8806A
  0x88, 0x50, 0x38, 0x69,
// Zoom 7
  0xD8, 0x00, 0x5A, 0x61  
};

unsigned char const ucaZoomDataP2_PAL[]={
//full
  0x88, 0x50, 0x2E, 0xC1,
// Zoom 1
  0x88, 0x50, 0x2E, 0xC1,
// Zoom 2
  0x88, 0x50, 0x2E, 0xC1,
//_4:3
  0x82, 0x50, 0x2E, 0xC1,
// Zoom 3, Zoom2 in Himax
  0x88, 0x50, 0x58, 0x95,
// Zoom 4
  0x88, 0x50, 0x2E, 0xC1, 
// Zoom 5, zoom wide 2 in Himax 8806A
  0x88, 0x50, 0x58, 0x95,
// Zoom 6, zoom 3 in Himax 8806A
  0x88, 0x50, 0x4C, 0xA2,
// Zoom 7
//0xD8, 0x00, 0x8A, 0x31  //bigger size
  0xb0, 0x28, 0x38, 0x71  
};


/****************************************************************************
*  		     Rotate Constant Definition                             		*
****************************************************************************/
unsigned char const ScanMode[]={
//TopLeft,TopRight,BottomRight,BottomLeft
    0xf4 ,   0xe0 ,    0xa8   ,    0xbc   };

#ifndef ANALOG_PANEL
unsigned char const DigiPanlScanMode[]={
//TopLeft,TopRight,BottomRight,BottomLeft

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -