

下載本文檔
版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報或認(rèn)領(lǐng)
文檔簡介
1、FPGA Hardware LED Chaser 10 Module 軟件設(shè)計 第一部分原理圖1.1 FPGA_LED_Chasser_IO_Module.SchDocVCCU3TCK TMS TDI TDO TRSTJT AG JT AG JT AG JT AGJT AGJT AG.Q15.OD15.0L CE CCLR SLI LEFT SRI U4SR16CLEDB Q15.0D15.0L CE CCLR SLI LEFT SRI U5SR16CLEDB Q15.0D15.0L CE CCLR SLI LEFT SRI U7A7.0SR16CLEDB Q15.OD15.0L CE CCL
2、RSLI LEFT SRI U8SR16CLEDB Q15.OQ31.16Q63.48Q47.32D15.0D31.16D63.48D47.32VCCVCC VCC VCC Q16Q32Q48Q64Q15.0Q16.31Q48.63Q47.32Q71Q15Q31Q47 1 Ch x 8 Bit Digital IOAIN7.OAOUT7.0CTRL IOB_1X8AOB15.OA1D15.OD31.16D63.48D47.32A15.OB15.OY15.0S0U9M16_B2B1A15.OB15.OY15.OSOU1OM16_B2B1A15.OB15.OY15.OSOU11M16_B2B1A1
3、5.OY15.0S0U6M16_B2B1GNDGNDGNDA2U120R3S LOADDIRMANUALQ7.0D7.0L CE CCLR SLI LEFT SRI U1SR8CLEDBQ71.64D71.64VCC Q0Q63GNDGNDGNDU13GNDGND D71.64A7.OB7.O丫7.0SOU2M8_B2B1GNDDIVN. = 1000000C D QU19FDU17C D QU18FDVCC SHIFTGNDVCCDigital I/O LED ChaserU14/ NCNTL31.OLOADU15CDIVN_32/ 5U16CDIV54 Ch x 16 Bit Digita
4、l IO AIN15.0BIN15.0CIN15.0DIN15.0AOUT15.0BOUT15.0COUT15.0DOUT15.0DIGIOIOB_4X16CLK_BRD PXXTEST_BUTTONPXX JTAG_NEXUS_TMSPXXJTAG_NEXUS_TCK PXX JTAG_NEXUS_TDO PXX JTAG_NEXUS_TDI PXX Thisexample impleme nts a 72 bit shift register to chase LEDs around a 4x16 Digital I/Omodule.The speed is k ept down to 1
5、0Hz to allow the I/O module to k eep up.You will n eed to up the refresh speed on the I/O module to 100ms (Opti ons butt onon the in strume nt.The 1x8 module con trols extra fun cti ons.Bit 0 (toggle high the low will load the chaser with the sett in gs en tered into the4x16.The 4x16 in puts are use
6、d to display the state of the chaser - this is the display.The 4x16 output bits are used to con trol the value that will be loaded into the chaserwhe n operat ing in Ma nual ModePower- On LoadHolds Load high for two shift clock cycles to force a load on startup.Relies on the factthat the DFFs will c
7、ome up with zero loaded.Load from three sources.1. Startup Load2. Test butt on Load3. Toggle Bit 0 of CTRL from in strume nt display.1.2FPGA_LED_Chasser.PAS. ProcedureUnRouteNet(Board : IPCB_Board; Net : IPCB_Net;VarIterator : IPCB_GroupIterator;Prim : IPCB_Prim;KillList : TList;i : In teger;Beg inI
8、terator := Net.Grouplterator_Create;Prim := Iterator.FirstPCBObject;KillList := TList.Create;While Prim NIl DoBeg inIf Prim.I sFreePrimitive The nKillList.Add(Prim;Prim := Iterator.NextPCBObject;End;For i := 0 TO KillList.Cou nt - 1 DoBoard. RemovePCBObject(KillListi;KillList.Free;End; . ProcedureUn
9、 routeClass(Board : IPCB_BOARD; NetClass : IPCB_OBjectClass;VarIterator : IPCB_Boardlterator;net : IPCB_Net;Beg inIterator := Board.BoardIterator_Create;lterator.SetState_FilterAII;lterator.AddFilter_ObjectSet(MkSet(eNetObject;Net := Iterator.FirstPCBObject;While Net NIl DoBeg inIf NetClass.lsMember
10、(Net.Name The nUn routeNet(Board, Net;Net := Iterator.NextPCBObject;En d;Board.ViewMa nager_FullUpdate;End; . ProcedureUn RouteSelectedClasses(Board : I_PCBBoard;Vari : In teger;Beg inFor i := 0 To GetNetClass.Classes.ltems.Count - 1 DoIf GetNetClass.Classes.Selectedi The nUnrouteClass(Board, GetNet
11、Class.Classes.ltems.Objectsi;End; . Fun cti onChooseNetCLass(Dummy : In teger = 0 : Boolea n;Beg inResult := GetNetClass.showmodal = mrOK;En d;. ProcedureFillNetClassList(Board : IPCB_Board;VarIterator : IPCB_Boardlterator;c : IPCB_ObjectClass;Beg inIterator := Board.BoardIterator_Create;lterator.Se
12、tState_FilterAII;lterator.AddFilter_ObjectSet(MkSet(eClassObject;c := Iterator.FirstPCBObject;While c NIl DoBeg inIf c.MemberKi nd = eClassMemberKi nd_Net The nGetNetClass.Classes.ltems.AddObject(c.Name, C;c := Iterator.NextPCBObject;En d;End; . ProcedureUn RouteNetClass;VarClassToU nroute : IPCB_OBjectClass;Board : IPCB_Board;Beg inPcbserver.PreProcess;TryBoard := PCBServer.GetCurre ntPCBBoard;If Not Assig ned(Board The nBeg inShowMessage(The Curre nt Docume nt is not a Protel PCB Docume nt.;Exit;En d;Fil
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 2025年度食堂工作人員健康體檢及福利聘用合同
- 二零二五年度汽修廠與汽車維修配件研發(fā)中心合作協(xié)議
- 二零二五年度養(yǎng)老公寓入住與子女共同維護(hù)社區(qū)和諧協(xié)議
- 二零二五年度游艇俱樂部個人保潔合同
- 二零二五年度房地產(chǎn)項目銷售代理及客戶關(guān)系維護(hù)合同
- 綠茶茶園承包經(jīng)營合同(2025年度)含茶文化體驗項目
- 二零二五年度個人車輛抵押保險理賠合同
- 二零二五實習(xí)律師實習(xí)合同(反壟斷與反不正當(dāng)競爭)
- 2025年度藝人經(jīng)紀(jì)違約金及違約行為處理合同
- 二零二五年度房產(chǎn)交易傭金糾紛解決合同
- 智慧農(nóng)業(yè)的智能農(nóng)機與裝備
- 并聯(lián)有源電力濾波器工程應(yīng)用關(guān)鍵技術(shù)的研究的開題報告
- 跨文化語境下的國家形象塑造與傳播以中國《國家形象》宣傳片為例
- 志愿服務(wù)與志愿者精神知識考試題庫大全(含答案)
- 工業(yè)機器人應(yīng)用基礎(chǔ) 教案(教學(xué)設(shè)計) 模塊二-任務(wù)二-ABB工業(yè)機器人編程基礎(chǔ)
- 文創(chuàng)產(chǎn)品設(shè)計:文創(chuàng)產(chǎn)品設(shè)計與創(chuàng)新
- 麻醉復(fù)蘇護(hù)理進(jìn)修匯報
- 企業(yè)安全與風(fēng)險管控課件
- 小學(xué)語文《文學(xué)閱讀與創(chuàng)意表達(dá)》
- 醫(yī)保定點納入預(yù)測性研究的報告
- 手術(shù)講解模板單側(cè)腎切除術(shù)
評論
0/150
提交評論