-
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
-
本实验实现PS/2接口与RS
本实验实现PS/2接口与RS-232接口的数据传输,
PS/2键盘上按下按键,可以通过RS-232自动传送到主机的串口调试终端上(sscom32.exe);
并在数据接收区显示接收到的字符。
串口调试终端的设置:波特率115200,一个停止位,无校验位。
-Realize this experiment, PS/2 interface with RS-232 data interface, PS/2 keyboard to press the button, through RS-232 automatic transmission to the host serial debug terminal (sscom32.exe) and data receiving display received characters. Serial debug terminal settings: 115200 baud rate, one stop bit, no parity bit.
- 2022-10-12 11:00:03下载
- 积分:1
-
AVR单片机实现脉冲采集
AVR单片机实现脉冲采集-AVR MCU Pulse Acquisition
- 2022-03-22 01:50:52下载
- 积分:1
-
GUI快速生成,12864LCD,支持多级菜单,支持Mega系列单片机
GUI快速生成,12864LCD,支持多级菜单,支持Mega系列单片机-Express GUI generation, 12864LCD, support multi-level menu, support Mega Series MCU
- 2022-03-22 10:08:22下载
- 积分:1
-
文件列表:
Motor._c
Motor. cof
Motor.dbg
Motor.dp2
Motor.hex
Motor...
文件列表:
Motor._c
Motor. cof
Motor.dbg
Motor.dp2
Motor.hex
Motor.lis
Motor.lk
Motor.lst
Motor.mak
Motor.mp
Motor.o
Motor.prj
Motor.s
Motor.src-documents list : Motor._c Motor.c Motor.cof Motor.dbg Motor.d p2 Motor.hex Motor.lis Motor.lk Motor.lst Mot or.mak Motor.mp Motor.o Motor.prj Motor.s Mot or.src
- 2023-02-24 09:20:04下载
- 积分:1
-
MSP430 MCU serial communication baud rate calculation tool
MSP430系列单片机串口通讯波特率计算工具-MSP430 MCU serial communication baud rate calculation tool
- 2022-03-18 23:57:39下载
- 积分:1
-
用ATMega单片机做的跑马灯的程序代码
用ATMega单片机做的跑马灯的程序代码-MCU to do with the ATMega Marquee program code
- 2022-05-30 15:55:26下载
- 积分:1
-
mega32+ N298 motor control chip, by controlling the motor IN1 and IN2 to change...
mega32+N298电机控制芯片,
通过控制电机的IN1和IN2改变方向,
pwm控制速度。
IN1和IN2不同时,电机转动
IN1和IN2相同时,电机急停。
-mega32+ N298 motor control chip, by controlling the motor IN1 and IN2 to change direction, pwm control speed. IN1 and IN2 are not the same time, motor rotation IN1 and IN2 are the same, the electrical emergency stop.
- 2022-02-04 12:13:45下载
- 积分:1
-
TI的高性能单片机MSP430+网络控制芯片CS8900A实现数据网络传输
TI的高性能单片机MSP430+网络控制芯片CS8900A实现数据网络传输-TI"s high-performance network control MSP430 microcontroller chip CS8900A data transmission network
- 2022-08-23 11:16:32下载
- 积分:1
-
x5045的程序,可以在keil c51上运行,希望能给大家带来帮助
x5045的程序,可以在keil c51上运行,希望能给大家带来帮助-X5045 procedures keil c51 can run, I hope everyone can help
- 2023-01-20 16:20:03下载
- 积分:1