-
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
-
Bicycle odometer, using c language, 51 single
自行车里程表,采用c语言编制,51单片机系统,能测量显示自行车的里程。-Bicycle odometer, using c language, 51 single-chip system capable of measuring the mileage of a bike show.
- 2022-01-26 03:13:58下载
- 积分:1
-
SED1335驱动程序(LCD320*240)含GUI
SED1335驱动程序(LCD320*240)含GUI-SED1335 Driver (LCD320* 240) with GUI
- 2023-06-06 23:20:02下载
- 积分:1
-
本例采用89C52, 晶振为11.0592MHZ,关于如何编制音乐代码, 其实十分简单,各位可以看以下代码.频率常数即音乐术语中的音调,而节拍常数即音乐术语中的
本例采用89C52, 晶振为11.0592MHZ,关于如何编制音乐代码, 其实十分简单,各位可以看以下代码.频率常数即音乐术语中的音调,而节拍常数即音乐术语中的多少拍 所以拿出谱子, 试探编吧!-Example use of the 89C52, crystal for 11.0592MHZ, on how to prepare music code, is actually very simple, you can see the following code. Frequency that is constant in terms of tonal music, and the constant beat of music terminology that is how much of the shoot so come up with music score , test made it!
- 2022-07-03 07:48:51下载
- 积分:1
-
The use of MCU timer timing, so that the crossroads at the traffic lights turn o...
利用单片机的定时器定时,令十字路口的红绿灯交替点亮和熄灭,实现主支路路口的交通信号灯控制(尽可能保持主线的畅通,即在通常情况下,保持主线的放行,只有在支线到达时,才放行支线),同时采用LCD显示倒计时时间及当前灯的状态-The use of MCU timer timing, so that the crossroads at the traffic lights turn out light and to achieve the main slip road junction traffic lights control (as far as possible the smooth flow of the main line, that is, under normal circumstances, to maintain the release of the main line, and only arrived at the branch only when the release branch), while using LCD display countdown time and the current state of light
- 2022-04-21 01:59:35下载
- 积分:1
-
这是一个关于PWM调光的程序,二极管等渐灭和渐亮
这是一个关于PWM调光的程序,二极管等渐灭和渐亮-This is a program on the PWM dimming, diodes, etc., and getting brighter gradually eliminate
- 2022-07-05 10:42:36下载
- 积分:1
-
51单片机,精确延时小函数.提供500ms,200ms,10ms,1s的精确延时,直接调用即可....
51单片机,精确延时小函数.提供500ms,200ms,10ms,1s的精确延时,直接调用即可.-51 microcontroller, small precision delay function. For 500ms, 200ms, 10ms, the precise 1s delay, can be called directly.
- 2022-01-25 19:06:50下载
- 积分:1
-
PWM输出源程序,飞思卡尔单片机实现,以SR12为例
PWM输出源程序,飞思卡尔单片机实现,以SR12为例-PWM source, Freescale"s MCU to SR12 example
- 2022-06-16 06:45:00下载
- 积分:1
-
77E516 dual serial Demonstration Program, the same applies to 77E58. Dual Serial...
77E516的双串口演示程序,同样适用于77E58.双串口最佳示例代码-77E516 dual serial Demonstration Program, the same applies to 77E58. Dual Serial best sample code
- 2022-04-23 17:39:23下载
- 积分:1
-
基于PSoC+CY8C24533+的电动自行车控制器的设计.rar
基于PSoC+CY8C24533+的电动自行车控制器的设计.rar-Based on PSoC+ CY8C24533+ electric bicycle controller design. Rar
- 2023-05-11 16:30:03下载
- 积分:1