文件名称:EXP7
介绍说明--下载内容均来自于网络,请自行研究使用
1、带倒计时的交通灯控制:将L7、L6、L5作为南北路口的交通灯与PC7、PC6、PC5相连;L2、L1、L0作为东西路口的交通灯与PC2、PC1、PC0相连(方式0)。PA口的PA0~PA6作为输出口(方式0输出)连接7段数码管的段码,PC3、PC4连接数码管的S0,S1来选择显示的位。利用8253产生1秒的中断信号,在中断处理程序中用程序处理10秒延迟和2次黄灯闪烁的问题。
编程使六个灯按交通灯变化规律燃灭,同时数码管显示倒计时的值(10~0,4~0)。
2、带违章拍照功能的交通灯控制:将L7、L6、L5作为南北路口的交通灯与PA7、PA6、PA5相连;L2、L1、L0作为东西路口的交通灯与PA2、PA1、PA0相连。PA口工作在方式1(输出)。利用8253产生1秒的中断信号,在中断处理程序中用程序处理10秒延迟和2次黄灯闪烁的问题。利用单脉冲信号连接到PC6,作为信号输入,由8255产生中断(模拟东西方向上的汽车压黄线),该中断处理程序在东西方向为红灯的时候,令L3灯闪烁一下(周期100ms秒,利用软件延迟,用PA3控制)。编程使六个灯按交通灯变化规律燃灭,同时处理东西方向汽车压黄线问题。
-1, with a countdown traffic light control: L7, L6, L5 as connected to the North-South junction traffic lights and PC7, PC6, PC5 L2, L1, L0 as things junction traffic lights and PC2 PC1 PC0 connected (mode 0). PA0 ~ PA6 PA port as an output port (way 0 output) connected to the 7-segment LED segment code, PC3, PC4 connecting digital tube S0, S1 to select the display bit. 8253 to produce 1 second interrupt signal processing in the interrupt handler using the program for a 10-second delay and the flashing yellow light.
Programmed to six lights variation of traffic lights burning off, digital display countdown value (10 ~ 0,4 ~ 0).
2, with a traffic light violation camera functions to control: the L7, L6, L5 as a north-south junction traffic lights connected to PA7, PA6, PA5 L2, L1, L0 as things junction traffic lights and PA2, PA1, PA0 connected. PA port in Mode 1 (output). 8253 to produce 1 second interrupt signal processing in the interrupt handler using the program for a 10-second d
编程使六个灯按交通灯变化规律燃灭,同时数码管显示倒计时的值(10~0,4~0)。
2、带违章拍照功能的交通灯控制:将L7、L6、L5作为南北路口的交通灯与PA7、PA6、PA5相连;L2、L1、L0作为东西路口的交通灯与PA2、PA1、PA0相连。PA口工作在方式1(输出)。利用8253产生1秒的中断信号,在中断处理程序中用程序处理10秒延迟和2次黄灯闪烁的问题。利用单脉冲信号连接到PC6,作为信号输入,由8255产生中断(模拟东西方向上的汽车压黄线),该中断处理程序在东西方向为红灯的时候,令L3灯闪烁一下(周期100ms秒,利用软件延迟,用PA3控制)。编程使六个灯按交通灯变化规律燃灭,同时处理东西方向汽车压黄线问题。
-1, with a countdown traffic light control: L7, L6, L5 as connected to the North-South junction traffic lights and PC7, PC6, PC5 L2, L1, L0 as things junction traffic lights and PC2 PC1 PC0 connected (mode 0). PA0 ~ PA6 PA port as an output port (way 0 output) connected to the 7-segment LED segment code, PC3, PC4 connecting digital tube S0, S1 to select the display bit. 8253 to produce 1 second interrupt signal processing in the interrupt handler using the program for a 10-second delay and the flashing yellow light.
Programmed to six lights variation of traffic lights burning off, digital display countdown value (10 ~ 0,4 ~ 0).
2, with a traffic light violation camera functions to control: the L7, L6, L5 as a north-south junction traffic lights connected to PA7, PA6, PA5 L2, L1, L0 as things junction traffic lights and PA2, PA1, PA0 connected. PA port in Mode 1 (output). 8253 to produce 1 second interrupt signal processing in the interrupt handler using the program for a 10-second d
(系统自动生成,下载前可以参看下载内容)
下载文件列表
EXP7_1.CPP
EXP7_2.CPP