| สิ่งใหม SingMai Electronics | |||
Designers and Manufacturers of Development systems and FPGA/ASIC/IC IP cores and for Audio/Video and Multimedia applications |
|||
|
Driving 7-segment LEDs from an FPGA. The Cyclone II development board from Altera has two 7-segment LED displays which can be very useful for monitoring control variables. Driving the displays is straight-forward, the four bit binary data can be translated using a 'case' statement to provide the look-up table function. For example, case Hex1[3..0] is 7seg1[7..0] is declared as a NODE in the design. 7seg1[7..0] : NODE; Hex1[3..0] is the binary data you wish to display. All that remains is to map the 7seg1[7..0] to the appropriate outputs of the FPGA, (this is for the Cyclone II board). 7seg1[7] Output PIN_AC11 7seg0[7] Output PIN_U12
|
|||
Copyright © 2007-2009 SingMai.com. All rights reserved. |
|||