单片机设计外文翻译.docx

上传人:b****8 文档编号:9379694 上传时间:2023-05-18 格式:DOCX 页数:27 大小:438.44KB
下载 相关 举报
单片机设计外文翻译.docx_第1页
第1页 / 共27页
单片机设计外文翻译.docx_第2页
第2页 / 共27页
单片机设计外文翻译.docx_第3页
第3页 / 共27页
单片机设计外文翻译.docx_第4页
第4页 / 共27页
单片机设计外文翻译.docx_第5页
第5页 / 共27页
单片机设计外文翻译.docx_第6页
第6页 / 共27页
单片机设计外文翻译.docx_第7页
第7页 / 共27页
单片机设计外文翻译.docx_第8页
第8页 / 共27页
单片机设计外文翻译.docx_第9页
第9页 / 共27页
单片机设计外文翻译.docx_第10页
第10页 / 共27页
单片机设计外文翻译.docx_第11页
第11页 / 共27页
单片机设计外文翻译.docx_第12页
第12页 / 共27页
单片机设计外文翻译.docx_第13页
第13页 / 共27页
单片机设计外文翻译.docx_第14页
第14页 / 共27页
单片机设计外文翻译.docx_第15页
第15页 / 共27页
单片机设计外文翻译.docx_第16页
第16页 / 共27页
单片机设计外文翻译.docx_第17页
第17页 / 共27页
单片机设计外文翻译.docx_第18页
第18页 / 共27页
单片机设计外文翻译.docx_第19页
第19页 / 共27页
单片机设计外文翻译.docx_第20页
第20页 / 共27页
亲,该文档总共27页,到这儿已超出免费预览范围,如果喜欢就下载吧!
下载资源
资源描述

单片机设计外文翻译.docx

《单片机设计外文翻译.docx》由会员分享,可在线阅读,更多相关《单片机设计外文翻译.docx(27页珍藏版)》请在冰点文库上搜索。

单片机设计外文翻译.docx

单片机设计外文翻译

附录A英文原文

1TheSerialPortInterfaceoftheLCDDriverIC

ThissectionwilldescribehowtocontroltheregistervalueoftheLCDdriverIContheLTM.

TheLCDandtouchpanelmoduleontheLTMisequippedwithaLCDdriverICtosupportthreedisplayresolutionandwithfunctionsofsourcedriver,serialportinterface,timingcontroller,andpowersupplycircuits.Tocontrolthesefunctions,userscanuseFPGAtoconfiguretheregistersintheLCDdriverICviaserialportinterface.

Also,thereisananalogtodigitalconverter(ADC)ontheLTMtoconverttheanalogX/YcoordinatesofthetouchpointtodigitaldataandoutputtoFPGAthroughtheserialportinterfaceoftheADC.BothLCDdriverICandADCserialportinterfacesareconnectedtotheFPGAviathe40-pinexpansionheaderandIDEcable.

BecauseofthelimitednumberofI/Oontheexpansionheader,theserialinterfacesoftheLCDdriverICandADCneedtosharethesameclock(ADC_DCLK)andchipenable(SCEN)signalI/Oontheexpansionheader.Toavoidboththeserialportinterfacesmayinterferewitheachotherwhensharingthesameclockandchipenablesignals,thechipenablesignal(CS),whichisinputtedintotheADCwillcomeupwithalogicinverterasshowninFigure1.1.

Figure1.1TheserialinterfaceoftheLCDtouchpanelmoduleandAD7843

Usersneedtopayattentioncontrollingthesharedsignalswhendesigningtheserialportinterfacecontroller.ThedetailedregistermapsoftheLCDdriverICarelistedinappendixchapter.ThespecificationsoftheserialportinterfaceoftheLCDdriverICaredescribedbelow.

TheLCDdriverICsupportsaclocksynchronousserialinterfaceastheinterfacetoaFPGAtoenableinstructionsetting.Pleasenoticethatinadditiontotheserialportinterfacesignals,NCLKinputshouldalsobeprovidedwhilesettingtheregisters.Figure1.2andTable1.1showtheframeformatandtimingdiagramoftheserialportinterface.TheLCDdriverICrecognizesthestartofdatatransferonthefallingedgeofSCENinputandstartsdatatransfer.Whensettinginstruction,theTPG110inputsthesettingvaluesviaSDAontherisingedgeofinputSCL.

Table1.1Thetimingparametersoftheserialportinterface

Item

Symbol

Condition

Min

Max

Unit

SDASetupTime

ts0

SCENtoSCL

150

ns

ts1

SDAtoSCL

150

ns

SDAHoldTime

th0

SCENtoSCL

150

ns

th1

SDAtoSCL

150

ns

PulseWidth

tw1l

SCLpulsewidth

160

ns

tw1h

SCLpulsewidth

160

ns

tw2

SCENpulseidth

1.0

ns

Clockduty

40

60

%

Thefirst6bits(A5~A0)specifytheaddressoftheregister.ThenextbitmeansRead/Writecommand.“0”iswritecommand.“1”isreadcommand.Then,thenextcycleisturn-roundcycle.Finally,thelast8bitsareforDatasetting(D7~D0).TheaddressanddataaretransferredfromtheMSBtoLSBsequentially.Thedataiswrittentotheregisterofassignedaddresswhen“Endoftransfer”isdetectedafterthe16thSCLrisingcycles.Dataisnotacceptediftherearelessormorethan16cyclesforonetransaction.

Figure1.2Theframeformatandtimingdiagramoftheserialportinterface

2InputtimingoftheLCDpaneldisplayfunction

ThissectionwilldescribethetimingspecificationoftheLCDsynchronoussignalsandRGBdata.

TodeterminethesequencingandthetimingoftheimagesignalsdisplayedontheLCDpanel,thecorrespondingsynchronoussignalsfromFPGAtotheLCDpanelshouldfollowthetimingspecification.

Figure2.1LCDhorizontaltimingspecification

Figure2.1illustratesthebasictimingrequirementsforeachrow(horizontal)thatisdisplayedontheLCDpanel.Anactive-lowpulseofspecificduration(timethpwinthefigure)isappliedtothehorizontalsynchronization(HD)inputoftheLCDpanel,whichsignifiestheendofonerowofdataandthestartofthenext.Thedata(RGB)inputsontheLCDpanelarenotvalidforatimeperiodcalledthehsyncbackporch(thbp)afterthehsyncpulseoccurs,whichisfollowedbythedisplayarea(thd).DuringthedatadisplayareatheRGBdatadriveseachpixelinturnacrosstherowbeingdisplayed.Also,duringtheperiodofthedatadisplayarea,thedataenablesignal(DEN)mustbedriventologichigh.Finally,thereisatimeperiodcalledthehsyncfrontporch(thfp)wheretheRGBsignalsarenotvalidagainbeforethenexthsyncpulsecanoccur.

Thetimingoftheverticalsynchronization(VD)isthesameasshowninFigure2.2,exceptthatavsyncpulsesignifiestheendofoneframeandthestartofthenext,andthedatareferstothesetofrowsintheframe(horizontaltiming).Table2.1and2.2showfordifferentresolutions,thedurationsoftimeperiodsthpw,thbp,thd,andthfpforbothhorizontalandverticaltiming.Finally,thetimingspecificationofthesynchronoussignalsisshownintheTable2.3.

Table2.1LCDhorizontaltimingparameters

Parameter

Symbol

PanelResolution

Unit

800xRGBx480

480xRGBx272

400xRGBx240

NCLK

NCLKFrequency

FNCLK

33.2

9

8.3

NCLK

Horizontalvaliddata

thd

800

480

400

NCLK

1HorizontalLine

th

1056

525

528

NCLK

HSYNCPulseWildth

Min

thbw

1

-

-

NCLK

Typ

Max

Hsyncbackporch

thbp

216

43

108

NCLK

Hsyncfrontporch

thfp

40

2

20

NCLK

DENEnableTime

tep

800

480

400

NCLK

Figure2.2LCDverticaltimingspecification

Table2.2LCDverticaltimingparameters

Parameter

Symbol

PanelResolution

Unit

800xRGBx480

480xRGBx272

400xRGBx240

H

Verticalvaliddata

tvd

480

272

240

H

Veritialperiod

tv

525

286

262

H

Veriticalblanking

tvbp

45

14

22

H

VSYNCPulseWildth

Min

tvpw

1

-

-

H

Typ

Max

Vsyncbackporch

tvbp

35

12

20

H

Vsyncfrontporch

tvfp

10

2

2

H

DENEnableTime

Tden

480

272

240

H

Table2.3ThetimingparametersoftheLCDsynchronoussignals

Parameter

Symbol

Min

Unit

NCLKperiod

PWclk

25

ns

NCLKpulsehighperiod

PWH

10

ns

NCLKpulselowperiod

PWL

10

ns

HD,VD,DEN,datasetuptime

tds

5

ns

HD,VD,DEN,dataholdtime

tdh

5

ns

 

3TheserialinterfaceoftheADconverter

ThissectionwilldescribehowtoobtaintheX/YcoordinatesofthetouchpointfromtheADconverter.

TheLTMalsoequippedwithanAnalogDevicesAD7843touchscreendigitizerchip.TheAD7843isa12-bitanalogtodigitalconverter(ADC)fordigitizingxandycoordinatesoftouchpointsappliedtothetouchscreen.ThecoordinatesofthetouchpointstoredintheAD7843canbeobtainedbytheserialportinterface.

ToobtainthecoordinatefromtheADC,thefirstthingusersneedtodoismonitortheinterruptsignalADC_PENIRQ_noutputtedfromtheADC.Byconnectingapullhighresistor,theADC_PENIRQ_noutputremainshighnormally.WhenthetouchscreenconnectedtotheADCistouchedviaapenorfinger,theADC_PENIRQ_noutputgoeslow,initiatinganinterrupttoaFPGAthatcantheninstructacontrolwordtobewrittentotheADCviatheserialportinterface.

ThecontrolwordprovidedtotheADCviatheDINpinisshowninFigure3.1.Thisprovidestheconversionstart,channeladdressing,ADCconversionresolution,configuration,andpower-downoftheADC.ThedetailedinformationontheorderanddescriptionofthesecontrolbitscanbefoundfromthedatasheetoftheADCintheDATASHEETfolderontheLTMSystemCD-ROM.

Figure3.1Controlregisterbitfunctiondescription

Figure3.2showsthetypicaloperationoftheserialinterfaceoftheADC.TheserialclockprovidestheconversionclockandalsocontrolsthetransferofinformationtoandfromtheADC.Onecompleteconversioncanbeachievedwith24ADC_DCLKcycles.ThedetailedbehavioroftheserialportinterfacecanbefoundinthedatasheetoftheADC.Notethattheclock(ADC_DCLK)andchipenablesignals(SCEN)oftheserialportinterfaceSHRAEthesamesignalI/OwithLCDdriverIC.UsersshouldavoidcontrollingtheLCDdriverICandADCatthesametimewhendesigningtheserialportinterfacecontroller.Also,becausethechipenablesignal(SCEN)inputtedtotheADCcomesupwithalogicinverter,thelogicleveloftheSCENshouldbeinversewhenitisusedtocontroltheADC.

Figure3.2Conversiontimingoftheserialportinterface

4BlockDiagramoftheEphotoDesign

ThissectionwilldescribetheblockdiagramoftheEphotodemonstrationtohelpusersinreadingthecodeprovided.

Figure4.1showstheblockdiagramoftheEPhotodemonstration.AssoonasthebitstreamisdownloadedintotheFPGA,theregistervaluesoftheLCDdriverICusingtocontroltheLCDdisplayfunctionwillbeconfiguredbytheLCD_SPI_Controllerblock,whichusestheserialportinterfacetocommunicatewiththeLCDdriverIC.Meanwhile,theFlash_to_SDRAM_ControllerblockwillreadtheRGBdataofonepicturestoredintheFlash,andthenwritethedataintoSDRAMbuffer.Accordingly,boththesynchronouscontrolsignalsandthepicturedatastoredintheSDRAMbufferwillbesenttotheLTMviatheLCD_Timing_Controllerblock.

WhenuserstouchLTMscreens,thexandycoordinatesofthetouchpointwillbeobtainedbytheADC_SPI_ControllerblockthroughtheADCserialportinterface.ThentheTouch_Point_Detectorblockwilldeterminewhetherthesecoordinatesareinaspecificrange.Ifthecoordinatesfittherange,theTouch_Point_DetectorblockwillcontroltheFlash_to_SDRAM_Controllerblocktoreadthenextorpreviouspicture'sdatafromtheFlashandrepeatthestepsasmentionedbeforetocommandtheLTMtodisplaythenextorpreviouspicture.

Figure4.1TheblockdiagramoftheEphotodemonstration

4SDRAMControllerSimulationModel

TheSDRAMcontrollerdesignfilesgeneratedbySOPCBuilderaresuitableforbothsynthesisandsimulation.Somesimulationfeaturesareimplementedinthe

展开阅读全文
相关资源
猜你喜欢
相关搜索
资源标签

当前位置:首页 > 自然科学 > 物理

copyright@ 2008-2023 冰点文库 网站版权所有

经营许可证编号:鄂ICP备19020893号-2