搜索资源列表
jiaotongdeng
- 1). 用红、绿、黄三色发光二极管作信号灯。主干道为东西向,有红、绿、黄三个灯;支干道为南北向,也有红、绿、黄三个灯。红灯亮禁止通行;绿灯亮允许通行;黄灯亮则给行驶中的车辆有时间停靠到禁行线之外。 2).由于主干道车辆较多而支干道车辆较少,所以主干道绿灯时间较长。当主干道允许通行亮绿灯时,支干道亮红灯。而支干道允许通行亮绿灯时,主干道亮红灯,两者交替重复。主干道每次放行50秒,支干道每次放行30秒。 在每次由亮绿灯变成亮红灯的转换过程中间,需要亮5秒的黄灯作为过渡,以使行驶中的车辆有时间
chelianglicheng
- 这个程序是车辆里程表的程序。该程序通过定时器1进行定时计数,并将定时计数结果显示在七段数码管上。这个程序在PIC单片机上测试过,运行良好-This program is the vehicle odometer program. The program timer by Timer 1 to count and time count results on the seven segment. This program tested on the PIC microcontroller, runn
counter
- 停车场计数器的设计,分别计数进入停车场的车辆数目和离开停车场的车辆数目。- The design of the parking lot counter, into the parking lot were counting the number of vehicles and leaving the parking lot number of vehicles.
car_count
- car_enter,car_exit分别表示有车辆进入停车场和离开停车场。count1和count2是两个计数器,分别计数进入停车场的车辆数目和离开停车场的车辆数目。total=count1-count2, 表示停在停车场中的车辆数目。lot_full表示停车场已满,即total的大小等于预置的停车场最大停车数(例如32)。 lot_empty表示停车场车辆数目为零。-car_enter, car_exit vehicles entering the car park and leave the