-
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
-
这是从网上找来的一个比较典型的PID处理程序,在使用单片机作为控制cpu时,请稍作简化,具体的PID
参数必须由具体对象通过实验确定。...
这是从网上找来的一个比较典型的PID处理程序,在使用单片机作为控制cpu时,请稍作简化,具体的PID
参数必须由具体对象通过实验确定。-It is found from the Internet a more typical PID process, as a control in the use of single-chip cpu, please make some simplification, the specific parameters of the PID must be determined through experiments at specific audiences.
- 2022-07-08 22:39:16下载
- 积分:1
-
上载/下载日志
实现小车的自动寻迹小车,且速度较快并且很稳定 2. XUNJI.C.rar,1KB,下载 3 次,小车的寻迹程序,根据车两边的灯的亮灭判断来...
上载/下载日志
实现小车的自动寻迹小车,且速度较快并且很稳定 2. XUNJI.C.rar,1KB,下载 3 次,小车的寻迹程序,根据车两边的灯的亮灭判断来执行电机的动作 3. Programm.zip,23KB,下载 6 次,控制智能车寻黑线运动,可以转向和前进,能够采集前方信息...
www.programsalon.com/upload_log.asp?e=ani ... 5K 2008-9-30 - 百度快照
-Upload/download log to achieve automatic tracing trolley car, and faster and very stable 2. XUNJI.C.rar, 1KB, downloaded 3 times, the car tracing procedures, in accordance with cars on both sides of the bright lights to carry out to determine motor movements 3. Programm.zip, 23KB, downloaded 6 times, control the smart car look black line movement, can shift and move forward to collect the information in front of ... www.programsalon.com/upload_log.asp?e=ani .. . 5K 2008-9-30- Baidu Snapshot
- 2023-04-03 19:25:04下载
- 积分:1
-
easyarm1138用c语言开发的液晶lcd12864并行口显示
easyarm1138用c语言开发的液晶lcd12864并行口显示-easyarm1138 c lcd12864
- 2023-05-30 18:25:03下载
- 积分:1
-
这是一个用汇编,和vc编写的劲乐团游戏,需下载到51/52单片机上使用...
这是一个用汇编,和vc编写的劲乐团游戏,需下载到51/52单片机上使用-This is a compilation of use, and the preparation of fresh vc Orchestra games, the need to download 51/52 on the use of SCM
- 2023-09-05 21:45:03下载
- 积分:1
-
随着精准农业的发展,农业种植和农业研究人员需要一种手持式NDVI测量仪,以便对农作物长势进行定量测量。本文讨论了一种手持式NDVI测量仪的完整设计过程,详细论述...
随着精准农业的发展,农业种植和农业研究人员需要一种手持式NDVI测量仪,以便对农作物长势进行定量测量。本文讨论了一种手持式NDVI测量仪的完整设计过程,详细论述了设计原理,并给出了详尽的单片机程序、设计电路原理图及PCB图。该NDVI测量仪采用太阳光作为光源,光电探测器采用滤光片和光敏二极管实现,用AT89C51单片机控制。其具有结构简单、成本低、轻便、低功耗的特点。-With the development of precision agriculture and farming, and agricultural researchers need a handheld NDVI measuring instrument, in order to crop growth for quantitative measurement. This paper discusses a handheld meter NDVI the integrity of the design process, discussed in detail the design principles, and gives a detailed SCM procedures, circuit schematics and PCB plans. The NDVI measuring instrument used sunlight as a light source, photodetector using filters and photodiode realized, with AT89C51 control. Its structure is simple, low cost, lightweight, low-power characteristics.
- 2022-01-25 19:26:40下载
- 积分:1
-
用MSP430单片机编写的程序,可显示4行汉字
用MSP430单片机编写的程序,可显示4行汉字-with MSP430 prepared by the procedure will show that four Chinese firms
- 2022-03-24 07:19:24下载
- 积分:1
-
一个针对320240液晶的ZLG/GUI移植,没有使用液晶控制器,利用LPC2103端口直接控制,屏幕会稍有闪烁...
一个针对320240液晶的ZLG/GUI移植,没有使用液晶控制器,利用LPC2103端口直接控制,屏幕会稍有闪烁-A target of 320,240 LCD ZLG/GUI transplantation, did not use the LCD controller, using LPC2103 port direct control, the screen will flicker a little
- 2023-07-11 23:00:02下载
- 积分:1
-
这是一个比较典型的PID处理程序,在使用单片机作为控制cpu时,请稍作简化,具体的PID 参数必须由具体对象通过实验确定。由于单片机的处理速度和ram资源的限制...
这是一个比较典型的PID处理程序,在使用单片机作为控制cpu时,请稍作简化,具体的PID 参数必须由具体对象通过实验确定。由于单片机的处理速度和ram资源的限制,一般不采用浮点数运算,而将所有参数全部用整数,运算 到最后再除以一个2的N次方数据(相当于移位),作类似定点数运算,可大大提高运算速度,根据控制精度的不同要求,当精度要求很 高时,注意保留移位引起的“余数”,做好余数补偿。这个程序只是一般常用pid算法的基本架构,没有包含输入输出处理部分。-This is a typical PID process, as in the use of SCM control cpu, please slightly simplified, specific PID parameters to be specific targets identified by experiments. As SCM processing speed and ram resource constraints, generally do not use floating-point operations, and will use all the parameters of all integers, and the final calculations to divide one of the Nth 2 data (the equivalent displacement), will count for a similar operation, it will greatly increase the computing speed, control Accuracy of different requirements and high precision, displacement caused reservations to the attention of the "I", which I do several compensation. This procedure is commonly used algorithm pid the basic structure does not include input and output processing.
- 2022-03-19 08:10:44下载
- 积分:1
-
U2270B, on U2270B chip described in detail.
U2270B,对U2270B芯片进行了详细介绍。-U2270B, on U2270B chip described in detail.
- 2022-01-21 22:29:56下载
- 积分:1