-
A方向和B方向各设红(R)、黄(Y)、绿(G)和左拐(L)4盏灯,4种灯按合理的顺序亮灭,并将时间以倒计时的形式显示出来。同时要设置两个方向的紧急通道模式,当某...
A方向和B方向各设红(R)、黄(Y)、绿(G)和左拐(L)4盏灯,4种灯按合理的顺序亮灭,并将时间以倒计时的形式显示出来。同时要设置两个方向的紧急通道模式,当某一方向有紧急事件发生时,交警按下紧急通道按钮,该方向绿灯亮,另外一个方向红灯亮,等紧急事件解除后(假定计时10s),交通恢复原来的状态
要求在数码管上显示两个方向的灯种和计时,实现紧急情况按钮输入功能
根据交通灯控制要实现的功能,可考虑用两个并行执行的always模块(两个进程)来分别控制A和B两个方向的4盏灯。这两个always模块使用同一个时钟信号,以进行同步,也就是说,两个进程的敏感信号时同一个
每个always模块控制一个方向的4种灯按如下顺序点亮,并往复循环:绿灯-黄灯-左拐灯-黄灯-红灯,灯亮的时间由自己设定
由于板上资源有限,如觉得实现困难,可去掉左拐灯,即顺序为绿灯-黄灯-红灯。-err
- 2022-01-25 21:01:54下载
- 积分:1
-
very good procedure, I personally tested and absolutely reliable, I believe you...
非常好的程序,我亲自试用过,绝对可靠,相信对你会有很大的帮助-very good procedure, I personally tested and absolutely reliable, I believe you will be a big help
- 2023-06-26 09:35:03下载
- 积分:1
-
基于8051单片机的模拟PS/2键盘的驱动程序,使用keil c51编译。
基于8051单片机的模拟PS/2键盘的驱动程序,使用keil c51编译。-based on the simulation of 8051 PS/2 keyboard-driven procedures, the use of c51 Keil compiler.
- 2022-08-18 15:03:08下载
- 积分:1
-
步进电机的工作原理,实现正转及逆转的方法
步进电机的工作原理,实现正转及逆转的方法-The working principle of stepper motor to achieve positive change and reversal of the method
- 2022-04-09 16:05:15下载
- 积分:1
-
用周立功的easyarm615做的智能循迹小车
用周立功的easyarm615做的智能循迹小车-With weeks of easyarm615 Ligong make intelligent tracking car
- 2022-02-20 03:12:14下载
- 积分:1
-
PIC16F71 the C language sample programs ADC. A detailed description has been att...
PIC16F71 C语言的ADC示例程序。已附上详细说明。
- 2022-11-02 10:50:03下载
- 积分:1
-
用at89s52访问MAX7219(LED数码显示)
用at89s52访问MAX7219(LED数码显示)-AT89S52 visit with MAX7219 (LED digital display)
- 2022-05-20 16:45:36下载
- 积分:1
-
单片机
基于KeilC 平台的单片机源码,适用于AT89ls52,程序通过中断方式查询按键的输入,I/O口接入单独按键。-Microcontroller-based platform KeilC source for AT89ls52, procedure interrupt input query keys, I/O port access to a separate button.
- 2022-06-01 10:28:14下载
- 积分:1
-
C8051F单片机是完全集成的混合信号系统级芯片(SoC),具有与8051兼容的高速CIP...
C8051F单片机是完全集成的混合信号系统级芯片(SoC),具有与8051兼容的高速CIP-51内核,与MCS-51指令集完全兼容,片内集成了数据采集和控制系统中常用的模拟、数字外设及其他功能部件;内置FLASH程序存储器、内部RAM,大部分器件内部还有位于外部数据存储器空间的RAM,即XRAM。C8051F单片机具有片内调试电路,通过4脚的JTAG接口可以进行非侵入式、全速的在系统调试。-C8051F is a fully integrated mixed-signal system-on-chip (SoC), and 8051 compatible with the high-speed CIP-51 core, and MCS-51 compatible instruction set, on-chip integration of the data acquisition and control system used in analog and digital peripherals, and other functional components; embedded Flash program memory, internal RAM, the majority of devices located within the external data memory space of RAM, XRAM. C8051F with on-chip debug circuit, through the four legs of the JTAG interface can be non-invasive, full-speed debugging of the system.
- 2022-03-20 11:16:39下载
- 积分:1
-
AVR study experiences
AVR学习心得体会-AVR study experiences
- 2022-03-05 18:31:43下载
- 积分:1