-
基于stm32的ucosII程序实现4x2键盘检测
基于keil开发平台,在stm32板子上实现4x2键盘检测。程序完全正确能够完美实现功能。
部分代码摘录:
void Task1(void *pdata)
{
u8 key;
while(1)
{
key=KEY_Scan();
if(key==1)
{
digitalToggle(GPIOD,GPIO_Pin_7); //D4亮
OSTimeDlyHMSM(0,0,1,0);
}
if(key==2)
{
digitalToggle(GPIOD,GPIO_Pin_6); //D5亮
OSTimeDlyHMSM(0,0,1,0);
}
if(key==3)
{
digitalToggle(GPIOD,GPIO_Pin_5); //D6亮
OSTimeDlyHMSM(0,0,1,0);
}
if(key==4)
{
&n
- 2022-08-12 16:41:51下载
- 积分:1
-
两片74hc165级联的驱动,用protues 7.1仿真 c语言
两片74hc165级联的驱动,用protues 7.1仿真 c语言-two 74hc165 cascade driven by protues 7.1 simulation language c
- 2022-02-09 13:18:14下载
- 积分:1
-
stm32 ENC28J60网络与服务器通信
应用背景我们将使用stm32 实现网络模块和uIP 1.0 实现:TCP服务器 TCP 客服端以及 客服端WEBWEB 服务器等关键技术ENC28J60 是带有行业标准串外设接口( 是带有行业标准串外设接口)的独立以太网 )的独立以太网 控制器。它可作为任何配备有,SPI通信进行以太网数据传输。
- 2022-07-24 05:52:28下载
- 积分:1
-
51 Single
51单片机的串行通信仿真例子,送给大家-51 Single-chip serial communication simulation example, to the U.S.
- 2022-11-29 18:35:04下载
- 积分:1
-
CMD测试-TCP IP
1.序列COM通讯的源代码。2.TCP/ IP通信的源代码。通过实施VC6.0
- 2022-03-21 12:07:12下载
- 积分:1
-
交通灯: 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
-
AT91RM9200的USB host和USB device的代码ADS1.2.
USB
AT91RM9200的USB host和USB device的代码ADS1.2.
USB-Device测试程序:
因为程序运行在SDRAM中,所以要先初始化SDRAM(可用basic boot程序初始,之后不能复位或断电),再运行此程序,程序运行后连接USB端口,计算机会提示检测到新硬件,安装硬件驱动程序atmusb6119.inf
后计算机会把USB端口虚拟为一个串行的端口使用-AT91RM9200 the USB host and USB device code ADS1.2.USB-Device test procedure: Because the procedure is running in SDRAM, and so we have to initialize SDRAM (available for the initial basic boot procedure, followed by Can not reset or power off), then Run this program, the program to run after connecting USB port, the computer will be prompted to detect the new hardware, installing hardware drivers after the computer will atmusb6119.inf virtual USB port to a serial port to use
- 2022-01-30 16:36:24下载
- 积分:1
-
RM9200 processor based on the ATMEL spi Driver
基于ATMEL RM9200处理机的spi驱动程序-RM9200 processor based on the ATMEL spi Driver
- 2022-03-20 14:53:08下载
- 积分:1
-
On the nucleus of the tutorial system documentation, and related source
关于nucleus系统的教程文档,以及相关源码-On the nucleus of the tutorial system documentation, and related source
- 2022-12-04 14:30:03下载
- 积分:1
-
ii2c司机uClinux
II2c driver for uclinux
- 2022-03-23 15:25:07下载
- 积分:1