Professional Documents
Culture Documents
Hoang Nguyen
1. Gii thiu:
Ngy ny, cc thit b LCD hin din trong hu ht cc sn phm t dn dng cho ti
qun s bi v kh nng hin th nhiu thng tin, giao din p bt mt v giao tip vi
ngi dng hiu qu. s dng c LCD,h thng cn cc b iu khin hin th
(LCD controller) , n chu trch nhim ly d liu , nh dng v xut ra LCD cng cc
tn hiu iu khin tng ng. B iu khin LCD s gip cc MCU tp trung vo cc
cng vic x l khc. Hin nay nhiu MCU ) , n chu trch nhim ly d liu , nh
dng v xut ra LCD cng cc tn hiu iu khin tng ng. B iu khin LCD s gip
cc MCU tp trung vo cc cng vic x l khc. Hin nay nhiu MCU tch hp sn
cc b iu khin LCD bn trong chip nh Motorola MC9328MX1, TI OMAP ,
StrongARM , Freescale iMX
Trong ti liu ny, chng ta s xem xt thit k mt LCD Controller IP trn chip
FPGA s dng ngn ng verilog. Thit k s dng Kit FPGA Leopard I ca Titans
technology th nghim trn thc t.
bit thm chi tit , chc nng v hng dn s dng kit FPGA Leopard I, vui lng
tham kho ti y:
http://titans.com.vn/index.php?page=shop.product_details&product_id=70&option=co
m_virtuemart
2. Nguyn l hot ng :
Hnh sau th hin h thng thng thng c tch hp b LCD controller.
HFAR04
HFAR04
STM32F103RCT
o ARM 32-bit Cortex-M3 CPU
o 72 MHz maximum frequency, 1.25 DMIPS/MHz (Dhrystone 2.1)
o 512 Kbytes of Flash memory
o 64 Kbytes of SRAM
o 3 12-bit, 1 s A/D converters (up to 21 channels)
o 2 12-bit D/A converters
o DMA: 12-channel DMA controller
o Debug Serial wire debug (SWD) & JTAG interfaces
o Up to 11 timers
2
o Up to 2 I C interfaces (SMBus/PMBus)
o Up to 5 USARTs (ISO 7816 interface, LIN, IrDA capability, modem control)
2
o Up to 3 SPIs (18 Mbit/s), 2 with I S interface multiplexed
o USB 2.0 full speed interface
o CRC calculation unit, 96-bit unique ID
bit thm chi tit , chc nng v hng dn s dng kit FPGA Leopard I, vui lng
tham kho ti y:
http://titans.com.vn/index.php?page=shop.product_details&product_id=70&option=com_virtuemart.
HFAR04
Module LCD ny tng thch vi Kit FPGA Leopard I, LCD c phn gii 480x272 ,
Kch thc mn hnh 4.3Inch (16:9) , h tr Touch Screen , chun giao tip song song .
Chi tit v sn phm, xem y :
http://www.titans.com.vn/index.php?option=com_virtuemart&page=shop.product_details
&flypage=flypage.tpl&product_id=128
3. Kin trc :
3.1. S khi ca LCD Controller IP Core:
Trc tin Hnh sau m t s khi chc nng ca LCD IP Core.Core ny c hai
port d liu. Mt port DMA read master v mt port configuration slave. D liu video
c c t b nh h thng bng port DMA read master v c lu vo b RBG FIFO.
Sau d liu c c ra khi FIFO v c a ra LCD bi khi Timing Control. Port
configuration Slave dng cu hnh cc thanh ghi hot ng ca LCD Controller Core.
HFAR04
HFAR04
c thi gian chnh xc ca thpw ,thbp , thfp , tvpw ,tvbp , tvfp , tham kho LCD
Module tng ng.
HFAR04
f.
Bit
0
2:1
T vit tt
EN_DMA
VDM
VSD
IE
BL
PS
M t
Cho php DMA hot ng
Video Display Mode
0 : RGB666
1 : RGB565
2 : RGB8bit
0 : hng bnh thng
1: o hng
0 : DMA Interrupt Disable
1 : DMA Interrupt Enable
0 : LCD Backlight OFF
1 : LCD Backlight ON
0 : LCD Power Supply OFF
1 : LCD Power Supply ON
HFAR04
T vit tt
EOF
--
M t
Tch cc khi hin th n cui Frame
Khng s dng
T vit tt
NBAR
M t
Ch nh a ch ca video buffer k tip
Thanh ghi ny cho trng thi ca ngt nu cho php ngt. Ngt xy ra khi kt thc
mt frame, tn hiu ny gip CPU ng b qu trnh x l d liu vi qu trnh hin
th trn mn hnh.
Next Buffer Address Register
Bit
31:0
T vit tt
ISR
M t
1 : c ngt xy ra
0 : Khng c ngt xy ra
c tn hiu ny s t ng xa ngt hin ti.
HFAR04
HFAR04
5. Table of Contents
Application Report............................................................................................ 0
Thit k b iu khin cho TFT LCD trn Kit FPGA Leopard I .............................................. 0
1.
Gii thiu:........................................................................................................................................ 0
2.
3.
3.2.
a.
b.
c.
d.
e.
3.3.
f.
g.
h.
i.
3.4.
4.
5.
Table of Contents........................................................................................................................... 10
5.1.
6.
Reference............................................................................................................................... 11
10
HFAR04
5.1. Reference
tt_nios2_hardware_tutorial
Wikipedia.com
Websites from Internet
http://www.altera.com
HFAR04