• 回答数

    5

  • 浏览数

    284

小珠珠123999
首页 > 期刊论文 > 篮球比赛电子记分牌毕业论文

5个回答 默认排序
  • 默认排序
  • 按时间排序

带嘴过日子

已采纳

vhdl语言实现【篮球比赛数字记分牌】,源程序如下,仿真结果及电路连接图如图所示

--由于两个队的记分牌是一样的,所以这里只设计一个队(命名为A队)的记分牌,另一个队的记

--分牌可直接调用这个模块就可以了。

LIBRARY ieee;

use ieee.std_logic_1164.all;

use ieee.std_logic_arith.all;

use ieee.std_logic_unsigned.all;

--*-------------------------------------------------------*--

ENTITY counter_A IS

PORT(clk       : in std_logic;  --时钟

clr       : in std_logic;  --异步清零信号

score_A_2 : in std_logic;  --进球得分2分

score_A_1 : in std_logic;  --发球得分1分

error_A_2 : in std_logic;  --纠错后减掉2分

error_A_1 : in std_logic;  --纠错后减掉1分

led7_1  : out std_logic_vector(6 downto 0);--显示个位的数码管

led7_2  : out std_logic_vector(6 downto 0);--显示十位的数码管

led7_3  : out std_logic_vector(6 downto 0));--显示百位的数码管

End counter_A;

--*------------------------------------------------------*--

ARCHITECTURE arch OF counter_A IS

signal Q1 : std_logic_vector(3 downto 0); --个位计数器

signal Q2 : std_logic_vector(3 downto 0); --十位计数器

signal Q3 : std_logic_vector(3 downto 0); --百位计数器

begin

P1 : process(clk,clr)

begin

if clr='0' then     --clr=0时计数器清零;

Q1 <= "0000";

Q2 <= "0000";

Q3 <= "0000";

elsif clk'event and clk='0' then

if score_A_2 ='1' then

Q1 <= Q1+"0010";

if Q1="1000" then

Q1 <= "0000";

Q2 <= Q2+1;

if Q2="1001" then

Q2 <= "0000";

Q3 <= Q3+1;

end if;

elsif Q1="1001" then

Q1 <= "0001";

Q2 <= Q2+1;

if Q2="1001" then

Q2 <= "0000";

Q3 <= Q3+1;

end if;

end if;

elsif score_A_1 ='1' then

Q1 <= Q1 + "0001";

if Q1="1001" then

Q1 <= "0000";

Q2 <= Q2+1;

if Q2="1001" then

Q2 <= "0000";

Q3 <= Q3+1;

end if;

end if;

elsif error_A_2 ='1' then

Q1 <= Q1 - "0010";

if Q1="0001" then

Q1 <= "1001";

Q2 <= Q2-1;

elsif Q1="0000" then

Q1 <="1000";

Q2 <= Q2-1;

end if;

elsif error_A_1 ='1' then

Q1 <= Q1 - "0001";

if Q1="0000" then

Q1 <= "1001";

Q2 <= Q2-1;

end if;

end if;

end if;

end process P1;

--*------------------------------------------------------------

led1 :  process(Q1,clr) --个位数码管显示进程段

begin

if clr='0' then

led7_1 <= "0000000";

else

case Q1 is

when"0000"=>led7_1<="1111110";

when"0001"=>led7_1<="0110000";

when"0010"=>led7_1<="1101101";

when"0011"=>led7_1<="1111001";

when"0100"=>led7_1<="0110011";

when"0101"=>led7_1<="1011011";

when"0110"=>led7_1<="1011111";

when"0111"=>led7_1<="1110000";

when"1000"=>led7_1<="1111111";

when"1001"=>led7_1<="1111011";

when others=>led7_1<="0000000";

end case;

end if;

end process led1;

--*------------------------------------------------------------

led2 :  process(Q2,clr)  --十位数码管显示进程段

begin

if clr='0' then

led7_2 <= "0000000";

else

case Q2 is

when"0000"=>led7_2<="1111110";

when"0001"=>led7_2<="0110000";

when"0010"=>led7_2<="1101101";

when"0011"=>led7_2<="1111001";

when"0100"=>led7_2<="0110011";

when"0101"=>led7_2<="1011011";

when"0110"=>led7_2<="1011111";

when"0111"=>led7_2<="1110000";

when"1000"=>led7_2<="1111111";

when"1001"=>led7_2<="1111011";

when others=>led7_2<="0000000";

end case;

end if;

end process led2;

--*------------------------------------------------------------

led3 :  process(Q3,clr)   --百位数码管显示进程段

begin

if clr='0' then

led7_3 <= "0000000";

else

case Q3 is

when"0000"=>led7_3<="1111110";

when"0001"=>led7_3<="0110000";

when"0010"=>led7_3<="1101101";

when"0011"=>led7_3<="1111001";

when"0100"=>led7_3<="0110011";

when"0101"=>led7_3<="1011011";

when"0110"=>led7_3<="1011111";

when"0111"=>led7_3<="1110000";

when"1000"=>led7_3<="1111111";

when"1001"=>led7_3<="1111011";

when others=>led7_3<="0000000";

end case;

end if;

end process led3;

end arch;

--*-------------------------------------------------------*--

274 评论

难般聊聊

篮球的发展史,还有现代篮球的意义,此项运动的真谛,给人们带来了什么

317 评论

木易洛洛

以NBA及格经典的战役为例,也可以用“亮剑”的战斗精神来作为论文的开题。我们国家队就应该用亮剑的精神征服美国队。 2008年北京奥运会主场,这种精神就打得美国队一身冷汗,可直接作为论文的案例

137 评论

我是不是很S

甲队 进球 20次 6个罚球 乙队 进球 21次 2个罚球

303 评论

lulu酱求好运

篮球赛计时记分器 论文编号:JD805 论文字数:10012,页数:24 篮球赛计时记分器 摘要:本文介绍一种由AT89C51编程控制LED七段数码管作显示的球赛计时记分系统。本系统具有赛程定时设置、赛程时间暂停、及时刷新甲、乙俩队双方的成绩以及赛后成绩暂存等功能。他具有价格低廉、性能稳定、操作方便且易携带等特点。广泛适合各类学校和小团体作为赛程计时记分。 关键词:AT89C51 ;LED七段数码管;CD4094;记分电路;计时电路 Timing and Scoring Device of Basketball Match Abstract:This design introduces a kind of game timing and scoring system which is displayed by LED Seven-Segmert digital tube controled and programmed by AT89C51 .This system has many functions: regularly set schedule,schedule time to pause,refresh the points of both A and B teams in time and temporarily memorizing the achievement after match. The system has characteristics of low price,stable function,easy to operate and carry and so on . It widely fits for types of schools and tiny groups as timing and scoring of match. Key Words:AT89C51;LED Seven-Segment digital tube;CD4094;Scoring circuit;timing circuit 目录 摘要I Abstract I 1 引言 1 2 系统设计方案 1 2.1 系统构成框图 1 2.2器件选择 2 3.基本功能介绍 2 3.1赛程时间设置 2 3.2赛程时间启/停设置 2 3.3比分交换控制 2 3.4比分刷新控制 2 3.5 记分计时显示 3 3.6赛程结束报警 3 4.系统硬件电路的组成 3 4.1 计时电路 3 4.1.1显示器及其接口 3 4.2 报警器 5 4.3计时电路原理图 5 4.4计时电路的工作原理 5 4.5 计分电路 5 4.5.1串行接口 6 4.5.2 计分电路原理图 9 4.5.3计分电路的工作原理 10 5.球赛计时记分器的工作过程 11 6.单片机软件设计 11 6.1 篮球赛计时记分器程序流程图 11 5参考文献 12 6结论: 13 谢辞14 附录一:电路原理图 15 附录二:篮球赛计时记分器程序源代码 16 以上回答来自:

165 评论

相关问答

  • 实验研究尝试比赛训练法篮球论文

    篮球运动论文体育运动论文:论篮球运动中技战术摘要:技战术意识是篮球运动员在从事篮球运动实践活动中,它能使运动员通过思维活动及时采取相应的,恰如其份的对策。合理运

    小泥格格 4人参与回答 2023-12-08
  • 篮球赛论文开题报告

    新世纪世界篮球运动发展的总趋势 21世纪世界篮球运动作为一种全球性社会文化和人文景观将进一步在世界广阔范围内更迅速普及发展提高,反映在以下几个方面: (一)大众

    jiujieayiyua 3人参与回答 2023-12-12
  • 篮球比赛计时计分器毕业论文

    参考牛论文面致谢 O(∩_∩)O哈哈~

    可可京99 4人参与回答 2023-12-06
  • 篮球比赛电子记分牌毕业论文

    vhdl语言实现【篮球比赛数字记分牌】,源程序如下,仿真结果及电路连接图如图所示 --由于两个队的记分牌是一样的,所以这里只设计一个队(命名为A队)的记分牌,另

    小珠珠123999 5人参与回答 2023-12-08
  • 足球比赛论文范文

    在平平淡淡的学习、工作、生活中,许多人都写过作文吧,作文一定要做到主题集中,围绕同一主题作深入阐述,切忌东拉西扯,主题涣散甚至无主题。相信很多朋友都对写作文感到

    sally7juicy 2人参与回答 2023-12-08