ic卡的設計與實現(xiàn)論文_第1頁
已閱讀1頁,還剩30頁未讀, 繼續(xù)免費閱讀

下載本文檔

版權說明:本文檔由用戶提供并上傳,收益歸屬內容提供方,若內容存在侵權,請進行舉報或認領

文檔簡介

1、目錄摘要................................................................................................................................................................1Abstract ..............................................

2、............................................................................................................1第 1 章 緒論.......................................................................................................

3、...........................................21.1 研究背景.........................................................................................................................................21.2 設計的意義和目的..................

4、.......................................................................................................21.3 系統(tǒng)設計總體要求........................................................................................................

5、..................31.4 系統(tǒng)設計的方案選擇......................................................................................................................31.4.1 IC 卡的選擇........................................................

6、..................................................................31.4.2 用戶信息的存儲...................................................................................................................31.4.3 程序編寫..............

7、.................................................................................................................4第 2 章 軟件的總體設計.............................................................................................

8、.................................42.1 系統(tǒng)軟件設計思想..........................................................................................................................42.2 系統(tǒng)軟件邏輯組成.......................................

9、...................................................................................42.3 系統(tǒng)流程圖...............................................................................................................................

10、.......5第三章 軟件各個模塊的設計......................................................................................................................53.1 主程序.........................................................................

11、....................................................................53.2 rc522.c 程序..................................................................................................................................63.2.1

12、 SPI 相關操作: ....................................................................................................................63.2.2 讀 RC632 寄存器 ReadRaw(add)..............................................................

13、..........................83.2.3 寫 RC632 寄存器 Write(add,data) .....................................................................................93.2.4 清除 RC632 寄存器 ClearBitMask(reg,mask)................................

14、....................................93.2.5 設置 RC632 寄存器 SetBitMask(reg,mask) ......................................................................93.2.6 通訊 PcdComMF522()..................................................

15、........................................................93.2.7 尋卡 PcdRuquest(reg,*pTagType)........................................................................................93.2.8 放沖撞 PcdAnticoll(*psnr) ...........

16、........................................................................................93.2.9 Mc522 復位 PcdReset().....................................................................................................103.2

17、.10 開啟天線 PcdAntennaOn()...............................................................................................103.2.11 關閉天線 PcdAntennaOff() ........................................................................

18、......................103.2.12 端口的初始化 init_port_rc522() .....................................................................................103.3 LCD.c ...................................................................

19、........................................................113.3.1 LCD12864 寫數(shù)據(jù)(write_com(cmd))..............................................................................113.3.2 LCD12864 寫數(shù)據(jù)(write_data(dat))...........

20、................................................................113.3.3 LCD12864 定位顯示數(shù)據(jù) write_lcd(line,row,* str, len)................................................113.3.4 LCD12863 定位顯示數(shù)據(jù)以 l6 進制形式顯示主要用于顯示卡號 write_lcd

21、_hex( line,row,*Buf,Len ) ......................................................................................................................123.3.5 清屏 LCD12864(clr_screen())...........................................

22、...........................................123.3.6 LCD12864 初始化(init_lcd)...............................................................................................123.4 bell.c(蜂鳴器) ..................................

23、.........................................................................................123.4.1 初始化蜂鳴器(init_bell()) ..................................................................................................133.4

24、.2 蜂鳴器響(bell_poll()) ........................................................................................................13摘要隨著城市規(guī)模的擴大,交通已經(jīng)成為城市發(fā)展的一個重要因素。公交車射頻卡可以提供更為方便、快捷的服務。面向開放式公交系統(tǒng)的乘客下車站臺刷卡系統(tǒng)及數(shù)據(jù)傳輸技術的改善,充分運用了交通,電路即

25、傳輸?shù)葘I(yè)的知識。本文對公交射頻刷卡器的系統(tǒng)設計進行了研究。采用美國 ATMEL 公司的 ATmega16單片機位控制核心,應用 PHILIPS 公司的 MIFARE 射頻技術實現(xiàn)設計。本設計主要是系統(tǒng)軟件設計。這部分描述了所應用的各部分的程序原理和代碼,運用模塊化結構,使程序設計的邏輯關系更加簡潔明了;采用軟件 AVR studio4 軟件進行編程,sscom 串口調試助手以及 AVR fighter 程序燒錄軟件進行燒錄。Abstr

26、actAlong with the extension of the city scale, the transportation has already become an important factor of the city development.The bus radio frequency card can provide more convenience and faster servance.Passengers to

27、 get off the site credit card system for open bus system development is the improvement of existing public transport circuit and transmission technology .This text carry on a research to the system design of the bus radi

28、o frequency card machine,It adopted single chip microcomputer of the ATmega16 of the American ATMEL company as the control core and applied the MIFARE radio frequency technique of the PHILIPS company to realize the desig

29、n,This design of the system include two parts:the hardware design and the software design.The hardware design part described the hardware circuits and the principle of each part,mainly include:display circuits, The watch

30、dog circuit,the 93C46 serial EEPROM,the buffer circuit and read card machine.Also,it gave the system hardware of the integral design principle diagram.A adopting assemble language to edit the software,using blocking stru

31、cture and giving the flow chart of each block make the logical Relation of the program design more simply and directly to understand.It adopted AVR studio4 to debug the program.Moreover,this text also gave detailed progr

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
  • 4. 未經(jīng)權益所有人同意不得將文件中的內容挪作商業(yè)或盈利用途。
  • 5. 眾賞文庫僅提供信息存儲空間,僅對用戶上傳內容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內容本身不做任何修改或編輯,并不能對任何下載內容負責。
  • 6. 下載文件中如有侵權或不適當內容,請與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

評論

0/150

提交評論