7-Segment LED Controller ?? - PowerPoint PPT Presentation

1 / 37
About This Presentation
Title:

7-Segment LED Controller ??

Description:

Title: UART Controller Last modified by: Created Date: 7/27/1998 4:31:16 AM Document presentation format: – PowerPoint PPT presentation

Number of Views:88
Avg rating:3.0/5.0
Slides: 38
Provided by: ackr
Category:

less

Transcript and Presenter's Notes

Title: 7-Segment LED Controller ??


1
7-Segment LED Controller ??
  • Lecture 10

2
????
  • ??? ??? ?? VHDL? ????? ???
  • ???? ????? ?? ? ????? ????
  • ?? ???? ?? ??? FND(7 Segment) ? ??? ????

3
????
  • 7-Segment LED(FND) ??
  • PXA255-FPGA FND ??? ??
  • 7-Segment LED Controller ??
  • 7-Segment LED Controller ???

4
Output Device ??????(LED)
  • LED(Light Emitting Diode)
  • ??? ???? PN?? ????? ??? ??? ?? ??? ?? ???? ????
  • ?? (A)? ?? 2?? ??? ????? ? ?? ???()?? ?? ??
    ???(-)??
  • ? 2.5V??? ???? 2?? ?? ??? ??? ?? ?????, ?? ??????
    ??? 5V??? ?? (B)? ?? ??? ??? ???? ????? ????

?? (B)
?? (A)
5
Output Device 7-Segment LED (1)
  • 7-Segment LED
  • FND ??? ????, ??? ??? ????? ???? 7?? ??????(LED)?
    ??
  • ?? ???(Common Anode) ?  
  • ????? ???? ?? ??? ????
  • ??? ??? 5V? ?? ???? ? ?? ag ?? 0V? ?? ????? ???
    ??? ?? ????
  • ????? ?? ??? ?? ??? ?? ??

Common Anode ?
6
Output Device 7-Segment LED (2)
  • 7-Segment LED
  • ?? ???(Common Cathode) ?
  • ????? ???? ?? ??? ????
  • ???? ?? ???, ????? ??? ??? 5V? ?? ??? ???
  • ????? ?? ??? ?? ??? ?? ??

Common Cathode ?
7
Output Device 7-Segment LED Array (1)
  • Common Cathode ? 7-Segment LED 4 ARRAY
  • 7-Segment LED ? 4? ??? ?? ?
  • ????? ?????? com0, com1, com2, com3? 4? ???, ???
    ?? a,b,c,d,e,f,g,dp? ???? ????
  • LED? ???? ?? ?? ?? ??? ?? ? ?? ??? ??? ???? ??
    ?????

8
Output Device 7-Segment LED Array (2)
  • Common Cathode ? 7-Segment LED 4 ARRAY
  • Com00, Com1Com2Com31? ??, ?? a,b,c,d,e,f,g??
    ?? ??? 1?? ?? ??? ???? Segment LED? ????

9
Output Device 7-Segment LED Array (3)
  • Common Cathode? 7-Segment LED ? 4?? ??(Dynamic
    Display)

??? ??? ?? ????? ??? ??? LED? ?? ???? ?? ?? 1??
60? ?? ??? ?? ??? ??? ??? ??????.
1 2 3 4 1 2 3 4
Com00? ?? ? ??? 7-segment LED? ?? Com10? ?? ?
??? 7-segment LED? ?? Com20? ?? ? ??? 7-segment
LED? ?? Com30? ?? ? ??? 7-segment LED? ??
Seg_out0110000 ? a0,b1,c1,defg0? ???.
10
Output Device 7-Segment LED Array (4)
  • PXA255-FPGA Board 7-Segment LED 6 Array

11
Output Device 7-Segment LED Array (5)
  • FND? ??? ??? ?? ?

12
PXA255-FPGA FND ?? ?? (1)
13
PXA255-FPGA FND ?? ?? (2)
14
PXA255-FPGA FND ?? ?? (3)
15
PXA255-FPGA FND ?? ?? (4)
16
7-Segment LED Controller ?? (1)
  • 7-Segment LED Controller ?? ??
  • ?? ?? (FPGA Dip S/W off, on)
  • 6 ?? ?? ??? ??? ??
  • Main clock? ???? 1? ??? ????, ??? ?? ?? 6?? ??
    FND array? ?? ??
  • ?? ?? (FPGA Dip S/W on, on)
  • PXA255-Pro3 main board?? ??? I/O ??? ?? FND
    array? ??
  • FPGA Dip S/W ??? ?? ?? ??? ??

17
7-Segment LED Controller ?? (2)
  • 7-Segment LED Controller ???? ??
  • fnd_6digit.vhd ?? ?? ??? ??? VHDL ??
  • iom_mode.vhd ?? ?? ??? ??? VHDL ??
  • mux_iom.vhd FPGA Dip S/W ??? ?? I/O? ????
    multiplexing ??? ??? VHDL ??
  • ??? VHDL ?? ??? ??? ??? ??

18
7-Segment LED Controller ?? (3)
  • 7-Segment LED Controller ??
  • io_top.bdf - top-level block diagram file

19
Quartus II Project ?? ?? (1)
  • New Project Wizard? ?? Quartus II Project ????
  • File ???? New Project Wizard? ???? ??? ????? ??

20
Quartus II Project ?? ?? (2)
  • New Project Wizard ?
  • Project? ??? ?? ? ????? ??? top-level entity ???
    ??

21
Quartus II Project ?? ?? (3)
  • New Project Wizard ?
  • ???? ??? ?? ??? ??? ??? ??? ?? ?? ??
  • ??? ??? ???? ????? ??? ADD ALL ??? ???? ?? ??
  • ... ??? ???? ??? ?? 4??  ??? ??
  • Next??? ?? ?? ???? ??

22
Quartus II Project ?? ?? (4)
  • New Project Wizard ?
  • EDA Tool ? ?? ??? ?? ??
  • Thirth party EDA tool? ????? ????, ???? ????
    Next??? ?? ?? ???? ??

23
Quartus II Project ?? ?? (5)
  • New Project Wizard ?
  • Device Family? ???? ??
  • PXA255-FPGA??? Cyclone? ??

24
Quartus II Project ?? ?? (6)
  • New Project Wizard ?
  • PXA255-FPGA?? EP1C12Q240C8? ???? ???? ?? Device?
    ??
  • ??? ??? Filter?? ?? ?? ??? ? ??

25
Quartus II Project ?? ?? (7)
  • New Project Wizard ?
  • ???? ??? ???? ??
  • ??????? ???? ??, top-level design entity ??, ???
    ??? ??? ??

26
Quartus II Project ?? ?? (8)
  • Project ??

27
Quartus II Project ?? ?? (9)
  • Pin Assignment
  • Pin assignment ??? ???? pin ?? ??
  • Pin Assign File ?? - io_top.qps ??? ??? ? ??? ???
    ??? ???? ? ??? ?? ??? ??

28
Quartus II Project ?? ?? (10)
29
Quartus II Project ?? ?? (11)
  • ???? ?? ??? ?? ??
  • Device ?? ??? Device Pin Options? ??

30
Quartus II Project ?? ?? (12)
  • Unused Pin? ?? ??
  • Reserve all unused pins?? As Input, tri stated?
    ??
  • ??? ??? ??? ?? ?? ??

31
Quartus II Project ?? ?? (13)
  • Configuration? ?? ??
  • ??? ?? Configuration scheme? device? ??

32
Quartus II Project ?? ?? (14)
  • ?? ??
  • General ???  Auto-restart configuration after
    error? ??
  • FPGA?? ??? ???? ???? ?? Configuration?? ??

33
Quartus II Project ?? ?? (15)
  • Compilation
  • ????? ??? ????? ?????? Processing ???? Start
    Compilation? ??
  • ???? ???? Full compilation was successful ???
    ???? ???? ???? ??? ??

34
Quartus II Project ?? ?? (16)
  • Configuration
  • ????? ??? ?? ???? FPGA? Configuration? ??? ??
  • Programmer ?? - EPC2? ???? ??? FPGA?
    Configuration ?? ??? Programmer? ??

35
Quartus II Project ?? ?? (17)
  • Configuration ?? ????
  • Byteblaster ???? JTAG ??? ??? ???? Auto Detect
    ? ?? EPC2? EP1C6 ? ?? ??? ??
  • ltnonegt? ?? ???? EPC2?? io_top.pof ???, EP1C6??
    io_top.sof??? ????

36
Quartus II Project ?? ?? (18)
  • Configuration
  • Program/Configure? ?? ??? ??? ??
  • Start??? ???? ??? ??? ???? Download ?
    Configuration? ????
  • Start??? ???? ????

37
7-Segment LED Controller ???
  • ???? ???? ?? ? ??? ???? ??
  • FPGA Dip S/W? (on, on)?? ???? ?? ?? ??
  • ???? ????? ??? ????? ?? ??? ?????? ?????
  • mknod /dev/FNDS c 241 0
  • insmod fnd_driver.o
  • chmod 777 test_fnd
  • ./test_fnd ltinput datagt
Write a Comment
User Comments (0)
About PowerShow.com