-
交通灯: 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
-
STM32数据通过USB HID CCD芯片
这段代码使使用STM32F103的USB HID包括从CCD 1024pixel获取数据的过程。
- 2022-09-14 05:10:03下载
- 积分:1
-
CCITT
A CCITT-16 CRC calculator. The source contains both the calculated (smaller but slower) version, and the table driven (faster but larger) version.
- 2022-02-20 02:39:26下载
- 积分:1
-
CAN总线 C源码
对于CAN总线C语言的编写,简单易懂,A开发板发送数据,B开发板接收数据,并把接收到的数据通过串口上传到计算机显示;A 请点击左侧文件开始预览 !预览只提供20%的代码片段,完整代码需下载后查看 加载中 侵权举报
- 2022-07-21 00:15:47下载
- 积分:1
-
EEPROM driver for SPI EEPROMs. Bitbanged on MSP430 processor.
Written in Quadr...
EEPROM driver for SPI EEPROMs. Bitbanged on MSP430 processor.
Written in Quadravox compiler.
- 2022-09-05 12:00:02下载
- 积分:1
-
SOCKET programming done using a process access to html source code, there is no...
利用SOCKET编程做的一个获取html源码的程序,没有请求网页上的资源。用c语言写的。-SOCKET programming done using a process access to html source code, there is no request for the resources page. Written by c language.
- 2022-02-18 16:54:42下载
- 积分:1
-
Atmel MCU 下开发 USB 鼠标
Atmel MCU 下开发 USB 鼠标-USB Mouse for Atmel MCU
- 2022-02-14 23:04:20下载
- 积分:1
-
at88sc102,at88sc1604读写卡程序,请修改后使用
at88sc102,at88sc1604读写卡程序,请修改后使用-at88sc102, at88sc1604 card reader procedures, the use of the revised
- 2022-09-07 00:30:03下载
- 积分:1
-
关于嵌入式开发的状态机思路,使软件编程效率更高
关于嵌入式开发的状态机思路,使软件编程效率更高-With regard to the state machine embedded development ideas, to make more efficient software programming
- 2022-03-10 16:13:56下载
- 积分:1
-
color TFT LCD demo
这是本人从其他网站下载的供MCS51单片机运行的color TFT LCD 应用程序。-color TFT LCD demo
- 2023-04-03 02:20:04下载
- 积分:1