TFT LCD 7寸1024*600 FPGA点亮

http://www.52rd.com/Blog/Detail_RD.Blog_whq0217_66110.html


花了一些时间去点亮7寸TFT,现在只能做自动切换画面的部分,按键切换还正在调试中。如下:

 

`timescale 1ns / 1ps

module CMO_5WVGA(CLK,DCLK,HS,UD,LR,VS,DE,LCDR,LCDG,LCDB);
input  CLK;
output DCLK;
output HS;
output VS;
output DE;
output UD;
output LR;
output [7:0] LCDR;
output [7:0] LCDG;
output [7:0] LCDB;
/*************BOE 7DD HS/VS parameter*********************
// Horizontal Signals:
parameter
thpw = 11'd20,     //HS Pulse Width,1-40 DCLK
thb  = 11'd46,    //HS Blanking 46 DCLK = HS Pulse Width + HS Back Porch
thd  = 11'd800,    //Horizontal Display Area,800 DCLK
thfp = 11'd210,    //HS Front Porch,16-210-354 DCLK
th   = (thb+thd+thfp),  //One Horizontal Line = HS Blanking (thb) + Horizontal Display Area (thd) + HS Front Porch (thfp)

// Vertical Signals:
tvpw = 11'd10,     //Vs Pulse Width 1-20 TH
tvb  = 11'd23,    //Vs Blanking 23 TH = Vs Pulse Width + VS Back Porch
tvd  = 11'd480,    //Vertical Dsiplay Area 480 TH
tvfp = 11'd22,    //Vs Front Porch 7-22-147 TH
tv   = (tvb+tvd+tvfp);  //Vs Blanking (tvb) + Vertical Dsiplay Area (tvd) + Vs Front Porch (tvfp)
*/
/******************CMO 5D WVGA parameter*******************
// Horizontal Signals:
parameter
thpw = 11'd128,     //HS Pulse Width,1-40 DCLK
thb  = 11'd216,    //HS Blanking 46 DCLK = HS Pulse Width + HS Back Porch
thd  = 11'd800,    //Horizontal Display Area,800 DCLK
thfp = 11'd88,    //HS Front Porch,16-210-354 DCLK
th   = (thb+thd+thfp),  //One Horizontal Line = HS Blanking (thb) + Horizontal Display Area (thd) + HS Front Porch (thfp)

// Vertical Signals:
tvpw = 11'd2,     //Vs Pulse Width 1-20 TH
tvb  = 11'd35,    //Vs Blanking 23 TH = Vs Pulse Width + VS Back Porch
tvd  = 11'd480,    //Vertical Dsiplay Area 480 TH
tvfp = 11'd8,    //Vs Front Porch 7-22-147 TH
tv   = (tvb+tvd+tvfp);  //Vs Blanking (tvb) + Vertical Dsiplay Area (tvd) + Vs Front Porch (tvfp)
*/
/******************CPT 7DH WSVGA parameter******************/
// Horizontal Signals:
parameter
thpw = 12'd70,     //HS Pulse Width,1-40 DCLK
thb  = 12'd160,    //HS Blanking 46 DCLK = HS Pulse Width + HS Back Porch
thd  = 12'd1024,    //Horizontal Display Area,800 DCLK
thfp = 12'd160,    //HS Front Porch,16-210-354 DCLK
th   = (thb+thd+thfp),  //One Horizontal Line = HS Blanking (thb) + Horizontal Display Area (thd) + HS Front Porch (thfp)

// Vertical Signals:
tvpw = 12'd10,     //Vs Pulse Width 1-20 TH
tvb  = 12'd23,    //Vs Blanking 23 TH = Vs Pulse Width + VS Back Porch
tvd  = 12'd600,    //Vertical Dsiplay Area 480 TH
tvfp = 12'd12,    //Vs Front Porch 7-22-147 TH
tv   = (tvb+tvd+tvfp);  //Vs Blanking (tvb) + Vertical Dsiplay Area (tvd) + Vs Front Porch (tvfp)



转载于:https://my.oschina.net/u/169988/blog/317857

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值