i L««:a1e • m:QUt /Jl
2.3.2.5 Nhirng ket qua dd dat duac
Tir nhimg phan tich mach da thuc hien tren cac linh kien rdi rac nhu mo ta tren hinh 27 (xem chi tiet trong cac tai lieu U3] va [15]) chiing toi da thiet ke, che tao modul dien tir thuc hien viec dong bg khung anh ve tinh khi tugng GMS va MT-Sat tren chip FPGA EPF8282ALC84-4 ciia hang Altera (My). Tru6c het ta che tao mach dien tir bao gom mot chip FPGA EPF8282ALC84-4 va cac linh kien phu nhu hinh 28 dudi day.
-^mhl ^^
Hinh 28: Modul dien tu thuc hien viec dong bo khung anh ve tinh khi tuong
GMS 5, MT-Sat va giao tiep vdi may tinh.
Trong so do nay tin hieu loi vao chip EPF8282ALC84-4 gom clock va data noi tiep, loi ra gom 8 dudng data song song, 1 tin hieu clock nhjp byte va mot tin hieu bao dau dong. Cac loi ra nay duge noi vai khoi giao tiep de dua du lieu vao may tinh qua cong USB. Co 3 each de eau hinh cho chip FPGA trong sa do nay.
• Caeh 1 dung Jae JPl trong hinh 28 de nap eau hinh ciia chip FPGA tu may tinh PC qua cap nap ByteBlaster. Caeh nay eo the thay d6i cau hinh trong
>
• Caeh 2 diing mot bg nhdf EEPROM noi tiep de cau hinh cho chip FPGA. IC EPC1046 ciia hang Altera duge sir dung lu-u du lieu cau hinh cua FPGA va khi bat dien mach tu dgng nap so lieu cau hinh cho chip FPGA.
• Caeh 3 ding vi d i k khien AT89S52 de cau hinh cho FPGA. Du lieu cung duge lap trinh san cho )iC nay va mOi khi bat dien thi |iC se nap sd lieu cau hinh cho chip FPGA.
Hinh 29 la anh modun dien tii thuc hien viec dong bg khung va giao tiep v6i may tinh da duge ch6' tao.
De thiet ke chiic nang dong bg khung anh tren chip FPGA ta su dung phan mem Maxplus II ciia hang Altera bang phuang phap do hoa nhu duge mo ta trong phan 3.2. Ta't cac cac chiic nang nhu la khoi tao ma giai ngSu nhien PN, khoi nhan dang d^u khung anh khoi giai ma PN, khoi chuyen doi chu6i bit ndi tiep thanh song song nhu duge bieu hien trong hinh 29.
JMXtpm,tt:^4^Mtu\[piS^.jmffMbMtanz\dbMiUf)^ldbkhut^
•^ MAX+phjt II Fde Edt View Symbol Anlgn Utttet Options Window Halp
D(^iBa ^ k? ii^mBBS s^SiA urn
UB^ ^ •
mX I s ] ^ i r > M U C M 6 » K « ^ l « M K . ''• J " y ^ j>
•Ibt-llufUJ^i' JbiTtiufi J ifv DAUDONG X 0 7 C 0 6 < 1- 0 5 < I- 0 4 < h 0 3 < h 0 2 < h 0 1 < h OO < h T A M 1 Tt.H..j,'>-j^_i^O D A U A N H Dclk data •tfcr {» T E S T vCT^ {>-> {; ^SfS3ife3riii«^W(*«»»fc<.rii ..rt«c«*«M-*»-...
Hinh 30: So do Idi chan vao va ra cua chip EPF8282ALC84-4
Sau khi thiet ke mach dong bo khung thi cac chan vao ra duge gan chan ciia chip de phu hgp v6i phSn eiimg da thiet ke nhu hinh 29. Chan 3 eiia chip se duac gan cho tin hieu data vao, chan 7 duge gan cho chan clock vao, chan 35 duge gan cho tin hieu nhjp byte ra, chan 34 cho tin hieu dSu khung, va cac chan tir 60 den 67 duge gan la cac chan tin hieu tir DO den D7 ra song song va mot so chan phu khac.