-
交通灯: 1. 因为本设计是交通灯的控制,所以要先了解实际交通灯的变化规律。假设一个十字路口为东西南北走向。初始状态0为东西红灯,南北红灯。然后转状态1南北绿灯...
交通灯: 1. 因为本设计是交通灯的控制,所以要先了解实际交通灯的变化规律。假设一个十字路口为东西南北走向。初始状态0为东西红灯,南北红灯。然后转状态1南北绿灯通车,东西红灯。过一段时间转状态2,南北绿灯闪几次转亮黄灯,延时几秒,东西仍然红灯。再转状态3,东西绿灯通车,南北红灯。过一段时间转状态4,东西绿灯闪几次转亮黄灯,延时几秒,南北依然红灯。最后循环至状态1。 2. 双色LED是由一个红色LED管芯和一个绿色管芯封装在一起,公用负端。当红色正端加高电平,绿色正端加低电平,红灯亮;红色正端加低电平,绿色正端加高电平,绿灯亮;两端都加高电平,黄灯亮。 急救车和交通灯: 中断服务程序的关键是:1. 保护进入中断时的状态,并在推出中断之前恢复进入时的状态;2. 必须在中断程序中设定是否允许中断重入,即设置EX0位。 本设计使用了INT0中断,一般中断程序进入时应保护 PSW,ACC以及中断程序使用但非其专用的寄存器。本设计中的INT0程序保护了PSW,ACC,2等三个寄存器并且在退出前恢复了这三个寄存器。另外中断程序中涉及到关键数据的设置时应关中断,及设置时不允许重入。本设计中没有涉及这种情况。 name:trled1.asm trled2.asm-traffic lights : 1. Because of the design of the traffic lights, so there must first understand the traffic lights change. Assuming a crossroads for the east-west north-south. Initial state of things 0 red light, red light north-south. Then the state opening of a north-south green, red things. For a period of time to state 2-green flashing yellow light switch several times, a few seconds delay, things are still red. Three sub-state, opening things green, red ligh
- 2022-04-29 18:17:53下载
- 积分:1
-
工业蓝牙控制器主板,protel版的电路图
工业蓝牙控制器主板,protel版的电路图-Industrial Bluetooth controller motherboard, protel version of the circuit diagram
- 2022-01-31 11:58:25下载
- 积分:1
-
基于ARM9嵌入式开发板LINUX环境下的程序代码
基于ARM9嵌入式开发板LINUX环境下的程序代码-linux udp,是大家常用的程序,代码中有详细的注释,方便移植!-ARM9-based embedded Linux development environment board procedures under the code- linux udp everyone is commonly used procedures, a detailed code of the Notes to facilitate transplant!
- 2022-03-23 23:36:38下载
- 积分:1
-
Use protel99se developed microcontroller circuit boards, circuit board you wish...
使用protel99se开发的单片机电路板,希望有助于各位电路板开发设计的学习-Use protel99se developed microcontroller circuit boards, circuit board you wish to contribute to development and design of learning
- 2022-04-30 09:52:06下载
- 积分:1
-
S3C2440 USB驱动
三星ARM9 S3C2440 CPU,基于ADS1.2和UCOS-II的工程,包含USBH和USBD两部分驱动程序。
- 2022-07-24 10:48:56下载
- 积分:1
-
4第四章 M文件和程序设计。让你学会如何编写MS程序。
4第四章 M文件和程序设计。让你学会如何编写MS程序。-chapter 4 could tell you how to use M file and program it.
- 2022-04-18 11:53:37下载
- 积分:1
-
这是一个为ov5测试程序
This is a test program for the OV5
- 2022-05-23 19:32:14下载
- 积分:1
-
Design s3c44b0 examples of serial communication. have to send receive function
s3c44b0的串口通信设计例子.有发送接收功能-Design s3c44b0 examples of serial communication. have to send receive function
- 2022-03-26 08:43:52下载
- 积分:1
-
Unipolar Stepper Motor - Full step drive (one phase on)
这个项目涉及一个完整的单极步进电机驱动器(单相,波驱动)。代码是用C语言编写的
- 2022-11-04 06:55:03下载
- 积分:1
-
嵌入式linux下关于mtd层源代码分析
嵌入式linux下关于mtd层源代码分析-Embedded linux on the MTD layer under the source code analysis
- 2022-02-01 11:23:29下载
- 积分:1