论坛风格切换切换到宽版
发帖 回复
返回列表  提醒:不能用迅雷等P2P下载,否则下载失败标(二级)的板块,需二级才能下载,没二级不要购买,下载不了
  • 2223阅读
  • 7回复

有用过mst703驱动群创10.2寸液晶屏AT102TN03的吗? [复制链接]

上一主题 下一主题
离线a06114113
 

性别:
帅哥
发帖
8
金币
2
提示:会员销售的附件,下载积分 = 版块积分 + 销售积分       只看楼主 倒序阅读 使用道具 0楼 发表于: 2017-10-07
最近用mst703驱动群创10.2寸液晶屏AT102TN03,程序用的是mstar提供的公版maria软件。目前已经可以通过按键开关机了,但就是一直白屏。因程序里没有提供10.2寸屏的头文件,是我自己拿别的头文件改的,因此判断是屏参数配置错误。做过的帮忙看下哪里出了问题(估计是在上电时序和一堆寄存器参数那块),要是能发我一份就最好了 ^Q\O8f[u  
  1. #include "ms_reg.h"
  2. #ifndef _PNL_AT102TN03_H_
  3. #define _PNL_AT102TN03_H_
  4. #include "devvd.h"
  5. #define        PanelName        "PnlAT102TN03" //
  6. #define WidePanel                0      //
  7. #define PanelDither                    8      //
  8. #define PANEL_TTL                    1
  9. #define PANEL_DIGITAL_TCON  0
  10. #define PANEL_ANALOG_TCON        0
  11. #define PANEL_LVDS_TI_MODE    0
  12. #define PANEL_SWAP_LVDS_POL   1
  13. #define PANEL_SWAP_LVDS_CH    0
  14. #define PanelSwapRB                        (0xFF)
  15. #define PanelSwap8BitML                0//0x0F
  16. #define PanelSwap6BitML                0
  17. #define PanelDClkDelay                0
  18. #define PanelInvDE                    0
  19. #define PanelInvDClk                (0x0F)
  20. #define PanelInvHSync                0
  21. #define PanelInvVSync                0
  22. // driving current setting 0==>4mA, 1==>6mA, 2==>8mA ,3==>12mA
  23. #define PanelDCLKCurrent        0 // Dclk current
  24. #define PanelDECurrent                0 // DE signal current
  25. #define PANELHSCURRENT                   0 // HSYNC current
  26. #define PANELVSCURRENT                   0 // VSYNC current
  27. #define PANELBMCURRENT                   0 // B data High-Nibble current
  28. #define PANELBLCURRENT                   0 // B data Low-Nibble current
  29. #define PANELGMCURRENT                   0 // G data High-Nibble current
  30. #define PANELGLCURRENT                   0 // G data Low-Nibble current
  31. #define PANELRMCURRENT                   0 // R data High-Nibble current
  32. #define PANELRLCURRENT                   0 // R data Low-Nibble current
  33. #define PANELADCLKCURRENT        0 // Analog Panel DCLK current
  34. #if SYSTEM_BOOT_UP_QUICKLY_ENABLE
  35. #define PanelOnTiming1                20//20 // time between panel & data while turn on power
  36. #define PanelOnTiming2                20//20 // time between data & back light while turn on power
  37. #define PanelOffTiming1                2 // time between back light & data while turn off power
  38. #define PanelOffTiming2                2 // time between data & panel while turn off power
  39. #else
  40. #define PanelOnTiming1                100 //100 time between panel & data while turn on power
  41. #define PanelOnTiming2                100 //100 time between data & back light while turn on power
  42. #define PanelOffTiming1                20 //20 time between back light & data while turn off power
  43. #define PanelOffTiming2                20 //20 time between data & panel while turn off power
  44. #endif
  45. #define PanelHSyncWidth                40
  46. #define PanelHSyncBackPorch        44
  47. #define PanelVSyncWidth                 4
  48. #define PanelVSyncBackPorch         34
  49. #define PANEL_DE_VSTART        0
  50. #define PanelHStart                (PanelHSyncWidth+PanelHSyncBackPorch) //88
  51. #define PanelVStart                (PanelVSyncWidth+PanelVSyncBackPorch) //38
  52. #define PanelWidth                800
  53. #define PanelHeight                480
  54. #define PanelHTotal                1080
  55. #define PanelVTotal                525
  56. #define PanelVdeEnd     PanelHeight
  57. #define PanelVSiEnd     PanelHeight
  58. #define PanelMinHTotal                1080
  59. #define PanelDCLK                        (((DWORD)PanelHTotal*PanelVTotal*60)/1000000)
  60. ///////////////////////////////////////////////////////
  61. // TCON setting
  62. ///////////////////////////////////////////////////////
  63. // PTC Mode setting
  64. #define SET_PTC_MODE1                0x8C        // PTC_MODE1(0xD0)
  65. #define SET_PTC_MODE2       0x46
  66. #define SET_PTC_MODE2_NOR        0x36        // BK1_D1_PTC_MODE2(0xD1) ORG:0x18
  67. #define SET_PTC_MODE2_INV        0x31        // BK1_D1_PTC_MODE2(0xD1) ORG:0x18
  68. #define SET_PTC_MODE3                0x82        // PTC_MODE3(0xD2)
  69. // PTC Timming Setting
  70. #define SET_FRP_TRAN                0x02        // GPO_FRP_TRAN(0xDC)
  71. #define SET_STH_START                0x35        // GPO_STH_START(0xDD) ORG:0x2C
  72. #define SET_STH_WIDTH                0x01        // GPO_STH_WIDTH(0xDE)
  73. #define SET_OEH_START                0x00        // GPO_OEH_START(0xDF)
  74. #define SET_OEH_WIDTH                0x2C        // GPO_OEH_WIDTH(0xE0)
  75. #define SET_OEV_START                0x6C        // GPO_OEV_START(0xE1)
  76. #define SET_OEV_WIDTH                0x29        // GPO_OEV_WIDTH(0xE2)
  77. #define SET_CKV_START                0x2A        // GPO_CKV_START(0xE3)
  78. #define SET_CKV_START2                0x00        // GPO_CKV_START2(0xE4)
  79. #define SET_CKV_WIDTH                0x1C        // GPO_CKV_WIDTH(0xE5)
  80. #define SET_STV_LINE_TH                0x44        // GPO_STV_LINE_TH(0xE6)
  81. #define SET_STV_START                0x6F        // GPO_STV_START(0xE7)
  82. #define SET_STV_WIDTH                0x00        // GPO_STV_WIDTH(0xE8)
  83. #define SET_OEV2_START                0x00        // GPO_OEV2_START(0xE9)
  84. #define SET_OEV3_START                0x00        // GPO_OEV3_START(0xEA)
  85. #define SET_H_ST_DLY_L                0x00        // H_ST_DLY_L(0xEB)
  86. #define SET_H_ST_DLY_H                0x00        // H_ST_DLY_H(0xEC)
  87. #define SET_CLK_DLY_SYNC_OUT        0x00        // CLK_DLY_SYNC_OUT(0xED)
  88. #define SET_CKV_END2                0x00        // GPO_CKV_END2(0xEE)
  89. #define SET_Q1H                         0x00        // Q1H_SETTING(0xEF)
  90. #define SET_OEV2_WIDTH                0x54        // GPO_OEV2_WIDTH(0xCD)
  91. #define SET_OEV3_WIDTH                0x54        // GPO_OEV3_WIDTH(0xCE)
  92. #define SET_OEV_DELTA                0x54        // GPO_OEV_DELTA(0xCF)
  93. // VCOM setting
  94. #define SET_BVOM_DC                    0xA0        //DEF_VCOM_DC        // BVOM_DC(0x43)
  95. #define SET_BVOM_OUT                0xA0        //DEF_VCOM_AC        // BVOM_OUT(0x44)
  96. // DAC setting
  97. #define SET_VDAC_ADJ1                0x00        // VADC_ADJ1(0xAA)
  98. #define SET_VDAC_ADJ2                0x00        // VDAC_ADJ2(0xAB)
  99. // Video decoder
  100. #define _656_PLL_VALUE                0x83        //BK2_9D_DPL_NSPL_HIGH
  101. #define COCTRL1_VALUE                 0x20
  102. #define SVD_EN_VALUE0                0x40        //BK2_1A_SVD_EN
  103. #define BK1_7B_TERM_SEL_VALUE                0xE4
  104. #define BK1_7C_CROING_VALUE                        0x64
  105. #define PANEL_SYNC_MODE_1   0
  106. #define ENABLE_VSYNC_CTL_AUTO_H_TOTAL   0// 1
  107. #define ENABLE_CHECK_AUTO_H_TOTAL                0// 1
  108. #define ENABLE_OVER_SCAN                    1
  109. #define VD_OVER_SCAN_H                 00 // 1.0%
  110. #define VD_OVER_SCAN_V                 24 // 1.0%
  111. #define BK0_03_SYNC_Sample_Edge    0x98//0x98
  112. #define PANEL_LOCK_Y_LINE                        2
  113. #ifdef _VDCaptureSetting_
  114. code _CaptureVideoWinType tMsVDCapture[SIG_NUMS] = // For internal VD
  115. {
  116.     {0x78, 0x14, 1340,     480}, // NSTC
  117.     {0x7D, 0x0E, 1340,     576}, // PAL
  118.     {0x85, 0x1A, 1340,     576}, // SECAM
  119.     {0x85, 0x1A, 1340,     480}, // NTSC-443
  120.     {0x85, 0x1A, 1340,     480}, // PAL-60
  121.     {0x85, 0x1A, 1340,     480}, // PAL-M
  122.     {0x85, 0x1A, 1340,     576}, // PAL-Nc
  123. };
  124. code _CaptureSvideoWinStartType tSvideoCaptureStart[SIG_NUMS] = // For internal VD
  125. {
  126.     {0x4d, 0x02}, // NSTC
  127.     {0x5f, 0x0f}, // PAL
  128.     {0x5f, 0x0f}, // SECAM
  129.     {0x4d, 0x02}, // NTSC-443
  130.     {0x5f, 0x0f}, // PAL-60
  131.     {0x5f, 0x0f}, // PAL-M
  132.     {0x5f, 0x0f}, // PAL-Nc
  133. };
  134. #endif
  135. #define FreeRunHTotal                0x4A7
  136. #define PalHTotal                        0x4A7
  137. #define NtscHTotal                        0x593
  138. #ifdef EnableUseModeTbl
  139. RegUnitType code tENDModeTbl[]=
  140. {
  141. {_END_OF_TBL_,0},
  142. };
  143. RegUnitType code tNtscModeTbl[]=
  144. {//Reg     Vale
  145. {_END_OF_TBL_, 0x00},
  146. };
  147. RegUnitType code tPalModeTbl[]=
  148. {//Reg     Vale
  149. {_END_OF_TBL_, 0x00},
  150. };
  151. #if CCIR656_ENABLE
  152. RegUnitType code tCCIR656_PalModeTbl[]=
  153. {//Reg     Vale
  154. {BK0_05_SPRVST_L, 0x1e},
  155. {BK0_06_SPRVST_H, 0x00},
  156. {BK0_07_SPRHST_L, 0x45},
  157. {BK0_08_SPRHST_H, 0x01},
  158. {BK0_0B_SPRHDC_L, 0xc4},
  159. {BK0_27_OPL_SET2, 0x36},
  160. {BK0_30_SRH_L, 0x00},
  161. {BK0_31_SRH_M, 0x36},
  162. {BK0_32_SRH_H, 0xcb},
  163. {BK0_34_SRV_M, 0x78},
  164. {_END_OF_TBL_, 0x00},
  165. };
  166. RegUnitType code tCCIR656_NtscModeTbl[]=
  167. {//Reg     Vale
  168. {BK0_05_SPRVST_L, 0x1e},
  169. {BK0_06_SPRVST_H, 0x00},
  170. {BK0_07_SPRHST_L, 0x45},
  171. {BK0_08_SPRHST_H, 0x01},
  172. {BK0_0B_SPRHDC_L, 0xb1},
  173. {BK0_30_SRH_L, 0x00},
  174. {BK0_31_SRH_M, 0x20},
  175. {BK0_32_SRH_H, 0xc9},
  176. {_END_OF_TBL_, 0x00},
  177. };
  178. #endif
  179. #if VGA_ENABLE
  180. RegUnitType code t640_480_60Hz_VGA_ModeTbl[]=
  181. {//Reg     Vale
  182. {BK0_00_REGBK,REG_BANK_SCALER},
  183. {BK0_0D_LYL,0x08},
  184. {_END_OF_TBL_, 0x00},
  185. };
  186. RegUnitType code t640_480_72Hz_VGA_ModeTbl[]=
  187. {//Reg     Vale
  188. {BK0_00_REGBK,REG_BANK_SCALER},
  189. {BK0_0D_LYL,0x08},
  190. {_END_OF_TBL_, 0x00},
  191. };
  192. RegUnitType code t640_480_75Hz_VGA_ModeTbl[]=
  193. {//Reg     Vale
  194. {BK0_00_REGBK,REG_BANK_SCALER},
  195. {BK0_0D_LYL,0x08},
  196. {_END_OF_TBL_, 0x00},
  197. };
  198. RegUnitType code t800_600_56Hz_VGA_ModeTbl[]=
  199. {//Reg     Vale
  200. {BK0_00_REGBK,REG_BANK_SCALER},
  201. {BK0_0D_LYL,0x0B},
  202. {_END_OF_TBL_, 0x00},
  203. };
  204. RegUnitType code t800_600_60Hz_VGA_ModeTbl[]=
  205. {//Reg     Vale
  206. {BK0_00_REGBK,REG_BANK_SCALER},
  207. {BK0_0D_LYL,0x0B},
  208. {_END_OF_TBL_, 0x00},
  209. };
  210. RegUnitType code t800_600_72Hz_VGA_ModeTbl[]=
  211. {//Reg     Vale
  212. {BK0_00_REGBK,REG_BANK_SCALER},
  213. {BK0_0D_LYL,0x0B},
  214. {_END_OF_TBL_, 0x00},
  215. };
  216. RegUnitType code t800_600_75Hz_VGA_ModeTbl[]=
  217. {//Reg     Vale
  218. {BK0_00_REGBK,REG_BANK_SCALER},
  219. {BK0_0D_LYL,0x0B},
  220. {_END_OF_TBL_, 0x00},
  221. };
  222. RegUnitType code t1024_768_60Hz_VGA_ModeTbl[]=
  223. {//Reg     Vale
  224. {BK0_00_REGBK,REG_BANK_SCALER},
  225. {BK0_0D_LYL,0x0E},
  226. {_END_OF_TBL_, 0x00},
  227. };
  228. RegUnitType code t1024_768_70Hz_VGA_ModeTbl[]=
  229. {//Reg     Vale
  230. {BK0_00_REGBK,REG_BANK_SCALER},
  231. {BK0_0D_LYL,0x0E},
  232. {_END_OF_TBL_, 0x00},
  233. };
  234. RegUnitType code t1024_768_75Hz_VGA_ModeTbl[]=
  235. {//Reg     Vale
  236. {BK0_00_REGBK,REG_BANK_SCALER},
  237. {BK0_0D_LYL,0x0E},
  238. {BK0_00_REGBK,REG_BANK_SCALER},
  239. {_END_OF_TBL_, 0x00},
  240. };
  241. #endif
  242. #if 0//YPBPR_ENABLE
  243. RegUnitType code t576i_ModeTbl[]=
  244. {//Reg     Vale
  245. {BK0_00_REGBK,REG_BANK_SCALER},
  246. {BK0_0D_LYL,0x05},
  247. {BK0_00_REGBK,REG_BANK_SCALER},
  248. {_END_OF_TBL_, 0x00},
  249. };
  250. RegUnitType code t576p_ModeTbl[]=
  251. {//Reg     Vale
  252. {BK0_00_REGBK,REG_BANK_SCALER},
  253. {BK0_0D_LYL,0x0a},
  254. {BK0_00_REGBK,REG_BANK_SCALER},
  255. {_END_OF_TBL_, 0x00},
  256. };
  257. RegUnitType code t480i_ModeTbl[]=
  258. {//Reg     Vale
  259. {BK0_00_REGBK,REG_BANK_SCALER},
  260. {BK0_0D_LYL,0x04},
  261. {BK0_00_REGBK,REG_BANK_SCALER},
  262. {_END_OF_TBL_, 0x00},
  263. };
  264. RegUnitType code t480p_ModeTbl[]=
  265. {//Reg     Vale
  266. {BK0_00_REGBK,REG_BANK_SCALER},
  267. {BK0_0D_LYL,0x08},
  268. {BK0_00_REGBK,REG_BANK_SCALER},
  269. {_END_OF_TBL_, 0x00},
  270. };
  271. RegUnitType code t720p_50Hz_ModeTbl[]=
  272. {//Reg     Vale
  273. {BK0_00_REGBK,REG_BANK_SCALER},
  274. {BK0_0D_LYL,0x0c},
  275. {BK0_00_REGBK,REG_BANK_SCALER},
  276. {_END_OF_TBL_, 0x00},
  277. };
  278. RegUnitType code t720p_60Hz_ModeTbl[]=
  279. {//Reg     Vale
  280. {BK0_00_REGBK,REG_BANK_SCALER},
  281. {BK0_0D_LYL,0x0b},
  282. {BK0_00_REGBK,REG_BANK_SCALER},
  283. {_END_OF_TBL_, 0x00},
  284. };
  285. RegUnitType code t1080i_50Hz_ModeTbl[]=
  286. {//Reg     Vale
  287. {BK0_00_REGBK,REG_BANK_SCALER},
  288. {BK0_0D_LYL,0x06},
  289. {BK0_00_REGBK,REG_BANK_SCALER},
  290. {_END_OF_TBL_, 0x00},
  291. };
  292. RegUnitType code t1080i_60Hz_ModeTbl[]=
  293. {//Reg     Vale
  294. {BK0_00_REGBK,REG_BANK_SCALER},
  295. {BK0_0D_LYL,0x07},
  296. {BK0_00_REGBK,REG_BANK_SCALER},
  297. {_END_OF_TBL_, 0x00},
  298. };
  299. RegUnitType code t1080p_50Hz_ModeTbl[]=
  300. {//Reg     Vale
  301. {BK0_00_REGBK,REG_BANK_SCALER},
  302. {BK0_0D_LYL,0x06},
  303. {BK0_00_REGBK,REG_BANK_SCALER},
  304. {_END_OF_TBL_, 0x00},
  305. };
  306. RegUnitType code t1080p_60Hz_ModeTbl[]=
  307. {//Reg     Vale
  308. {BK0_00_REGBK,REG_BANK_SCALER},
  309. {BK0_0D_LYL,0x07},
  310. {BK0_00_REGBK,REG_BANK_SCALER},
  311. {_END_OF_TBL_, 0x00},
  312. };
  313. #endif
  314. RegUnitType code tTVSnowModeTbl[]=
  315. {//Reg     Vale
  316. /*
  317. {BK0_00_REGBK,REG_BANK_SCALER},
  318. {BK0_33_SRV_L,0x88},
  319. {BK0_34_SRV_M,0xA1},
  320. {BK0_35_SRV_H,0x88},
  321. {BK0_40_VFDEST_L,0x10},
  322. {BK0_41_VFDEST_H,0x00},
  323. {BK0_44_VFDEEND_L,0xFE},
  324. {BK0_45_VFDEEND_H,0x01},
  325. {BK0_4A_SIVEND_L,0xFE},
  326. {BK0_4B_SIVEND_H,0x01},
  327. {BK0_57_OSCTRL1,0xD6}, */
  328. {_END_OF_TBL_, 0x00},
  329. };
  330. RegUnitType code tFreeRunModeTbl[]=
  331. {//Reg     Vale
  332. /*
  333. {BK0_00_REGBK,REG_BANK_SCALER},
  334. {BK0_27_OPL_SET2, 0x23},
  335. {BK0_40_VFDEST_L,0x00},
  336. {BK0_41_VFDEST_H,0x00},
  337. {BK0_44_VFDEEND_L,0xE9},
  338. {BK0_50_VSST_L, 0xF2},  // vsync start position
  339. {BK0_51_VSST_H, 0x0A},
  340. */
  341. {_END_OF_TBL_, 0x00},
  342. };
  343. #endif
  344. //*******************************************************************
  345. //Ace setting
  346. #define CbGain        0x80
  347. #define CrGain        0x80
  348. #define RedGain                0x80//127
  349. #define GreenGain        0x80//130
  350. #define BlueGain               0x80//126
  351. #define INIT_VIDEO_CONTRAST_X0    80
  352. #define INIT_VIDEO_CONTRAST_X1    100
  353. #define INIT_VIDEO_CONTRAST_X2    140
  354. #define INIT_VIDEO_CONTRAST_X3    150
  355. #define INIT_VIDEO_CONTRAST_X4    160
  356. #define INIT_VIDEO_BRIGHTNESS_X0    0x50
  357. #define INIT_VIDEO_BRIGHTNESS_X1    0x70
  358. #define INIT_VIDEO_BRIGHTNESS_X2    0x80
  359. #define INIT_VIDEO_BRIGHTNESS_X3    0x90
  360. #define INIT_VIDEO_BRIGHTNESS_X4    0xc0
  361. #define INIT_VIDEO_SATURATION_X0    0
  362. #define INIT_VIDEO_SATURATION_X1    60
  363. #define INIT_VIDEO_SATURATION_X2    120
  364. #define INIT_VIDEO_SATURATION_X3    150
  365. #define INIT_VIDEO_SATURATION_X4    200
  366. #define INIT_SV_CONTRAST_X0    80
  367. #define INIT_SV_CONTRAST_X1    100
  368. #define INIT_SV_CONTRAST_X2    128
  369. #define INIT_SV_CONTRAST_X3    150
  370. #define INIT_SV_CONTRAST_X4    180
  371. #define INIT_SV_BRIGHTNESS_X0    0x50
  372. #define INIT_SV_BRIGHTNESS_X1    0x70
  373. #define INIT_SV_BRIGHTNESS_X2    0x80
  374. #define INIT_SV_BRIGHTNESS_X3    0x90
  375. #define INIT_SV_BRIGHTNESS_X4    0xc0
  376. #define INIT_SV_SATURATION_X0    0
  377. #define INIT_SV_SATURATION_X1    80
  378. #define INIT_SV_SATURATION_X2    168
  379. #define INIT_SV_SATURATION_X3    20
  380. #define INIT_SV_SATURATION_X4    255
  381. #define INIT_VGA_CONTRAST_X0    80
  382. #define INIT_VGA_CONTRAST_X1    100
  383. #define INIT_VGA_CONTRAST_X2    128
  384. #define INIT_VGA_CONTRAST_X3    150
  385. #define INIT_VGA_CONTRAST_X4    180
  386. #define INIT_VGA_BRIGHTNESS_X0    0x50
  387. #define INIT_VGA_BRIGHTNESS_X1    0x70
  388. #define INIT_VGA_BRIGHTNESS_X2    0x80
  389. #define INIT_VGA_BRIGHTNESS_X3    0x90
  390. #define INIT_VGA_BRIGHTNESS_X4    0xc0
  391. #define INIT_YPBPR_CONTRAST_X0    80
  392. #define INIT_YPBPR_CONTRAST_X1    100
  393. #define INIT_YPBPR_CONTRAST_X2    128
  394. #define INIT_YPBPR_CONTRAST_X3    150
  395. #define INIT_YPBPR_CONTRAST_X4    180
  396. #define INIT_YPBPR_BRIGHTNESS_X0    0x40
  397. #define INIT_YPBPR_BRIGHTNESS_X1    0x60
  398. #define INIT_YPBPR_BRIGHTNESS_X2    0x80
  399. #define INIT_YPBPR_BRIGHTNESS_X3    0xa0
  400. #define INIT_YPBPR_BRIGHTNESS_X4    0xc0
  401. #define INIT_YPBPR_SATURATION_X0    0
  402. #define INIT_YPBPR_SATURATION_X1    60
  403. #define INIT_YPBPR_SATURATION_X2    128
  404. #define INIT_YPBPR_SATURATION_X3    150
  405. #define INIT_YPBPR_SATURATION_X4    200
  406. #define INIT_MSVD_COMB_YGAIN        0x85     //BK3_13
  407. #define INIT_MSVD_COMB_CbGAIN        0x88     //BK3_14
  408. #define INIT_MSVD_COMB_CrGAIN       0x80// 0x80     //BK3_15
  409. #define INIT_MSVD_COMB_CONTRAST            0x94//0x9A  //BK3_63
  410. #define INIT_MSVD_COMB_BRIGHTNESS        0x96  //BK3_64
  411. #define INIT_MSVD_COMB_SATURATION        0x90//0xA0  //BK3_65
  412. #define INIT_MSVD_TV_BRIGHTNESS         0x0CE        // bk2_38[6] bk2_3a[7:0] MAXVALUE=0X1FF
  413. #ifdef EnableUseGammaTbl
  414. BYTE code tGammaTableNormal[3][33]=
  415. {
  416.         {
  417.                 0x00,0x03,0x07,0x0C,0x12,0x19,0x20,0x28,0x31,0x3A,0x43,
  418.                 0x4D,0x57,0x61,0x6B,0x75,0x80,0x8B,0x95,0x9F,0xA9,0xB3,
  419.                 0xBD,0xC6,0xCF,0xD7,0xDF,0xE6,0xEC,0xF2,0xF7,0xFB,0xFF,
  420.         },
  421.         {
  422.                 0x00,0x03,0x07,0x0C,0x12,0x19,0x20,0x28,0x31,0x3A,0x43,
  423.                 0x4D,0x57,0x61,0x6B,0x75,0x80,0x8B,0x95,0x9F,0xA9,0xB3,
  424.                 0xBD,0xC6,0xCF,0xD7,0xDF,0xE6,0xEC,0xF2,0xF7,0xFB,0xFF,
  425.         },
  426.         {
  427.                 0x00,0x03,0x07,0x0C,0x12,0x19,0x20,0x28,0x31,0x3A,0x43,
  428.                 0x4D,0x57,0x61,0x6B,0x75,0x80,0x8B,0x95,0x9F,0xA9,0xB3,
  429.                 0xBD,0xC6,0xCF,0xD7,0xDF,0xE6,0xEC,0xF2,0xF7,0xFB,0xFF,
  430.         },
  431. };
  432. #endif
  433. #ifdef EnableColorMatrix
  434. short code tVideoColorCorrectionMatrix[][3]=
  435. {
  436.    0x0441,-0x0041, 0x0000, 0x0030, 0x039E, 0x0032,-0x0045, 0x0092,
  437.    0x03B3,-0x0369, 0x01AB,-0x051B, 0x0012,-0x01D9, 0x0777,-0x0378,
  438.   -0x0735, 0x017A, 0x019E,-0x026E, 0x0274, 0x0687,-0x07A6, 0x0280,
  439.   -0x0831, 0x0100,-0x0001, 0x0001,-0x0001, 0x0000,-0x0064,-0x0032,
  440. };
  441. #endif
  442. #ifdef _EnableFCC_
  443. RegUnitType code tInitializeFCC[] =
  444. {
  445.     /////////////////////////////////////////////////
  446.     // Initialize MACE  table
  447.     /////////////////////////////////////////////////
  448.     {BK0_00_REGBK, REG_BANK1_ADC_ACE_MCU},
  449.     {BK1_56_FCC_CB_1T, 0x74}, // FCC_
  450.     {BK1_57_FCC_CR_1T, 0x9B}, // FCC_
  451.     {BK1_58_FCC_CB_2T, 0x6E}, // FCC_
  452.     {BK1_59_FCC_CR_2T, 0xAC}, // FCC_
  453.     {BK1_5A_FCC_CB_3T, 0xA5}, // FCC_
  454.     {BK1_5B_FCC_CR_3T, 0x69}, // FCC_
  455.     {BK1_5C_FCC_CB_4T, 0x5A}, // FCC_
  456.     {BK1_5D_FCC_CR_4T, 0x9A}, // FCC_
  457.     {BK1_5E_FCC_CB_5T, 0x5A}, // FCC_
  458.     {BK1_5F_FCC_CR_5T, 0x75}, // FCC_
  459.     {BK1_60_FCC_CB_6T, 0xB0}, // FCC_
  460.     {BK1_61_FCC_CR_6T, 0x48}, // FCC_
  461.     {BK1_62_FCC_CB_7T, 0x64}, // FCC_
  462.     {BK1_63_FCC_CR_7T, 0xD8}, // FCC_
  463.     {BK1_64_FCC_CB_8T, 0x80}, // FCC_
  464.     {BK1_65_FCC_CR_8T, 0x80}, // FCC_
  465.     {BK1_66_FCC_CB_9T, 0x80},//0x88}, // FCC_
  466.     {BK1_67_FCC_CR_9T, 0x80},// FCC_  A0
  467.     {BK1_68_FCC_WIN1, 0xA6}, // FCC_
  468.     {BK1_69_FCC_WIN2, 0xBA}, // FCC_
  469.     {BK1_6A_FCC_WIN3, 0xFB}, // FCC_
  470.     {BK1_6B_FCC_WIN4, 0x73}, // FCC_
  471.     {BK1_6C_FCC_WIN5, 0xFB}, // FCC_
  472.     {BK1_6D_FCC_WIN6, 0xFB}, // FCC_
  473.     {BK1_6E_FCC_WIN7, 0xFF}, // FCC_
  474.     {BK1_6F_FCC_WIN8, 0x6A}, // FCC_
  475.     {BK1_70_FCC_WIN9, 0x00}, // FCC_
  476.     {BK1_71_FCC_Y_TH, 0xFF}, // FCC_
  477.     {BK1_72_FCC_K1K2, 0x60}, // FCC_
  478.     {BK1_73_FCC_K3K4, 0xFE}, // FCC_
  479.     {BK1_74_FCC_K5K6, 0xCB}, // FCC_
  480.     {BK1_75_FCC_K7K8, 0x85}, // FCC_
  481. //    {BK1_76_FCC_CTRL, 0x2F}, // FCC_
  482. //    {BK1_77_APP_CTRL, 0x7E}, // FCC_
  483.     {BK1_78_PEAK_BAND1, 0x1D}, // FCC_
  484.     {BK1_79_PEAK_BAND2, 0x58}, // FCC_
  485. //    {BK1_7A_LTI, 0x98}, // FCC_
  486.     {BK1_7D_CTI,0x78},
  487.     {BK1_7E_VIP_Y_CTRL,0x00},
  488.     {BK1_7F_MAX_PIX, 0x80}, // MAX_PIX
  489.     {BK1_80_MIN_PIX, 0x40}, // MIN_PIX
  490. //    {BK1_81_EGE_BAND1_POS,0x40},
  491. //    {BK1_82_EGE_BAND1_NEG,0x60},
  492. //    {BK1_84_EGE_BAND2_NEG,0x60},
  493. //    {BK1_85_M_BRI,0x08},
  494. //    {BK1_86_EGE_LTI_POS,0x10},
  495. //    {BK1_87_EGE_LTI_NEG,0x20},
  496. //    {BK1_88_YC_LPF,        0xBC},
  497.     {BK1_89,        0x00},
  498. //    {BK1_8A,        0x23},
  499.     {BK1_8B,        0x43},
  500.     {BK1_8C, 0xFF},
  501.     {BK1_8D, 0xAE},
  502.     {BK1_8E, 0x36},
  503.     {BK1_8F, 0x01},
  504.     {BK0_00_REGBK, REG_BANK_SCALER},
  505.     {_END_OF_TBL_, 0x00}
  506. };
  507. RegUnitType code tVideoFCC[] =
  508. {
  509.     {BK0_00_REGBK, REG_BANK1_ADC_ACE_MCU},
  510.     {BK1_77_APP_CTRL, 0x00}, //7E FCC_
  511.     {BK1_85_M_BRI,0x00},
  512.     {BK1_88_YC_LPF,        0xBC},    //0xBC
  513.     {BK0_00_REGBK, REG_BANK_SCALER},
  514.     {_END_OF_TBL_, 0x00}
  515. };
  516. #if VGA_ENABLE
  517. RegUnitType code tPCFCC[] =
  518. {
  519.     {BK0_00_REGBK, REG_BANK1_ADC_ACE_MCU},
  520.     {BK1_77_APP_CTRL, 0}, // FCC_
  521.     {BK1_85_M_BRI,0},
  522.     {BK1_88_YC_LPF,        0},
  523.     {BK0_00_REGBK, REG_BANK_SCALER},
  524.     {_END_OF_TBL_, 0x00}
  525. };
  526. #endif
  527. RegUnitType code t_AVInitializeFCC[] =
  528. {
  529.     {BK0_00_REGBK, REG_BANK1_ADC_ACE_MCU},
  530.     {BK1_76_FCC_CTRL, 0x6F}, // FCC_
  531.     {BK1_7A_LTI, 0x98}, // FCC_
  532.     {BK1_7C_CROING,0x42},
  533.     {BK1_81_EGE_BAND1_POS,0x40},
  534.     {BK1_82_EGE_BAND1_NEG,0x60},
  535.     {BK1_84_EGE_BAND2_NEG,0x60},
  536.     {BK1_86_EGE_LTI_POS,0x10},
  537.     {BK1_87_EGE_LTI_NEG,0x20},
  538.     {BK1_88_YC_LPF,        0x80},
  539.     {BK1_8A,        0x23},
  540.     {BK0_00_REGBK, REG_BANK_SCALER},
  541.     {_END_OF_TBL_, 0x00},
  542. };
  543. RegUnitType code t_SVInitializeFCC[] =
  544. {
  545.     {BK0_00_REGBK, REG_BANK1_ADC_ACE_MCU},
  546.     {BK1_7A_LTI, 0x08}, // FCC_
  547.     {BK1_7C_CROING,0xFF},
  548.     {BK0_00_REGBK, REG_BANK_SCALER},
  549.     {_END_OF_TBL_, 0x00},
  550. };
  551. RegUnitType code t_TVInitializeFCC[] =
  552. {
  553.     {BK0_00_REGBK, REG_BANK1_ADC_ACE_MCU},
  554.     {BK1_76_FCC_CTRL, 0x2D},
  555.     {BK1_7A_LTI, 0x90},
  556.     {BK1_7C_CROING,0x42},
  557.     {BK1_81_EGE_BAND1_POS,0x00},
  558.     {BK1_82_EGE_BAND1_NEG,0x00},
  559.     {BK1_84_EGE_BAND2_NEG,0x00},
  560.     {BK1_86_EGE_LTI_POS,0x00},
  561.     {BK1_87_EGE_LTI_NEG,0x00},
  562.     {BK1_88_YC_LPF,        0x9C},
  563.     {BK1_8A,        0x43},
  564.     {BK0_00_REGBK, REG_BANK_SCALER},
  565.     {_END_OF_TBL_, 0x00},
  566. };
  567. #endif // _EnableFcc_
  568. #endif
/}Z0\ ,  
DNy1} 3wg  


评价一下你浏览此帖子的感受

精彩

感动

搞笑

开心

愤怒

一般

差劲
离线vickey168

性别:
帅哥
发帖
1624
金币
1344
提示:会员销售的附件,下载积分 = 版块积分 + 销售积分       只看该作者 1楼 发表于: 2017-10-07
    


离线irumei

性别:
美女
发帖
2785
金币
275
提示:会员销售的附件,下载积分 = 版块积分 + 销售积分       只看该作者 2楼 发表于: 2017-10-08


离线eyangbo

性别:
帅哥
发帖
1026
金币
570
提示:会员销售的附件,下载积分 = 版块积分 + 销售积分       只看该作者 3楼 发表于: 2017-10-08
没用过


离线ywzxw

性别:
帅哥
发帖
1140
金币
1172
提示:会员销售的附件,下载积分 = 版块积分 + 销售积分       只看该作者 4楼 发表于: 2017-10-08
  


离线lfc

性别:
人妖
发帖
1137
金币
632
提示:会员销售的附件,下载积分 = 版块积分 + 销售积分       只看该作者 5楼 发表于: 2017-10-09
663636363


离线myntpcb

性别:
人妖
发帖
7055
金币
10131
提示:会员销售的附件,下载积分 = 版块积分 + 销售积分       只看该作者 6楼 发表于: 2017-10-09
没有用过,只能帮楼主加人气了。


-
离线hyg_shen_hua

性别:
人妖
发帖
62
金币
18
提示:会员销售的附件,下载积分 = 版块积分 + 销售积分       只看该作者 7楼 发表于: 2017-10-09
厉害了厉害了


快速回复
限150 字节
 
上一个 下一个