实验三:LED点阵显示实验
一、实验目的:
1,利用PLD控制LED点阵显示;
2,掌握LED点阵显示的电路设计与编程;
二、实验原理
实验电路提供了16位行控制信号,16位列控制信号,分别用74LS240与7407来101**********";--“电”的第12列的行数据显示,低电平有效
elsif(addr="01100")then
data<="11101**********";--“电”的第13列的行数据显示,低电平有效
elsif(addr="01101")then
data<="11101**********";--“电”的第14列的行数据显示,低电平有效
elsif(addr="01110")then
data<="1110000000001110";--“电”的第15列的行数据显示,低电平有效
elsif(addr="01111")then
data<="11111**********";--“电”的第16列的行数据显示,低电平有效
end if;
elsif(q(3)='0')then
if(addr="00000")then
data<="01111**********";--“子”的最左边(第一列)的行显示,低电平有效
elsif(addr="00001")then
data<="01111**********";--“子”的最左边(第2列)的行显示,低电平有效
elsif(addr="00010")then
data<="01111**********";--“子”的最左边(第3列)的行显示,低电平有效
elsif(addr="00011")then
data<="01111**********";--“子”的最左边(第4列)的行显示,低电平有效
elsif(addr="00100")then
data<="01111**********";--“子”的最左边(第5列)的行显示,低电平有效
elsif(addr="00101")then
data<="01111**********";--“子”的最左边(第6列)的行显示,低电平有效
elsif(addr="00110")then
data<="01111**********";--“子”的最左边(第7列)的行显示,低电平有效
elsif(addr="00111")then
data<="01111**********";--“子”的最左边(第8列)的行显示,低电平有效
elsif(addr="01000")then
data<="01111**********";--“子”的最左边(第9列)的行显示,低电平有效
elsif(addr="01001")then
data<="01111**********";--“子”的最左边(第10列)的行显示,低电平有效
elsif(addr="01010")then
data<="0111101011111111";--“子”的最左边(第11列)的行显示,低电平有效
elsif(addr="01
LED点阵显示控制 来自淘豆网m.daumloan.com转载请标明出处.