搜索结果

找到约 466 项符合 p1 的查询结果

单片机编程 msp430测信号频率代码

msp430代码,精确测量信号频率 程序描述:利用Timer_A捕获脉冲宽度  利用MSP430单片机定时器A和捕获/比较功能模块结合使用,实现脉冲宽度的测量 程序用到了定时器A的CCI1A端口(MSP430F14X的P1.2引脚)作捕获外部输入 的脉冲电平跳变,start,end,两个个变量来计算脉冲宽度 ...
https://www.eeworm.com/dl/506439.html
下载: 2
查看: 86

Matlab Matlab 画三维立体图形

Matlab 画三维立体图形 The aim of geom3d library is to handle and visualize 3D geometric primitives such as points, lines, planes, polyhedra... It provides low-level functions for manipulating 3D geometric primitives, making easier the development of more complex geometric algorithms.  &nbs ...
https://www.eeworm.com/dl/508022.html
查看: 65

嵌入式综合 红外遥控RGB

#include "STC90.h" #include < intrins.h > #define uchar unsigned char #define uint unsigned int #define led_port P1 sbit IR_RE = P3^2; sbit led_r = P1^3; sbit led_g = P1^4; sbit led_b = P1^5; sbit led_wd = P1^7; sbit K1 =P3^0 ; //增加键 sbit K2 =P3^1 ; ...
https://www.eeworm.com/dl/512141.html
下载: 1
查看: 113

嵌入式综合 调光C程序

/*#include<reg52.h> #define uint unsigned int #define uchar unsigned char #define uchar unsigned char sbit K1=P3^4; sbit K2=P3^5; sbit ledr=P1^0; sbit ledg=P1^1; sbit ledb=P1^2; bit LEDDirection=0;//LED控制方向0:渐亮1:渐灭 char  pwm=0; char  pwmr=0; char  scw=0;//中断记数 char &nbsp ...
https://www.eeworm.com/dl/512142.html
下载: 3
查看: 132

技术资料 基于8051+Proteus仿真案例

基础程序设计 01 闪烁的LED  /*  名称闪烁的LED   说明LED按设定的时间间隔闪烁 */  #include<reg51.h>  #define uchar unsigned char  #define uint unsigned int  sbit LED=P1^0;  //延时  void DelayMS(uint x)  {   uchar i;   whil ...
https://www.eeworm.com/dl/513041.html
下载: 2
查看: 33

技术资料 51单片机C语言程序设计Proteus仿真实训

基础程序设计 01 闪烁的LED  /*  名称闪烁的LED   说明LED按设定的时间间隔闪烁  */  #include<reg51.h>  #define uchar unsigned char  #define uint unsigned int  sbit LED=P1^0;  //延时  void DelayMS(uint x) {   uchar i;   w ...
https://www.eeworm.com/dl/513042.html
下载: 2
查看: 31

源码 点亮P10单元板单片机源程序

/*================================================================= 4扫16*16下入上出C语言程序, 低位起笔,数据反相。 预定义 **************************************************************/ #include #include //可使用其中定义的宏来访问绝对地址? bit ture=1; // 使能正反相位选择 bit false=0; / ...
https://www.eeworm.com/dl/514939.html
下载: 1
查看: 20

源码 基于遗传算法的机器人路径规划MATLAB源代码

取各障碍物顶点连线的中点为路径点,相互连接各路径点,将机器人移动的起点和终点限制在各路径点上,利用最短路径算法来求网络图的最短路径,找到从起点P1到终点Pn的最短路径。上述算法使用了连接线中点的条件,因此不是整个规划空间的最优路径,然后利用遗传算法对找到的最短路径各个路径点Pi (i=1,2,…n)调整,让各路径 ...
https://www.eeworm.com/dl/514941.html
下载: 3
查看: 16

源码 12345

/****************temic*********t5557***********************************/    #include   <at892051.h>     #include   <string.h>    #include   <intrins.h>     #include   <stdio.h>     #define    uchar    unsign ...
https://www.eeworm.com/dl/515933.html
下载: 1
查看: 115

笔记 一个按键控制的 10 级变速跑马灯试验

在本课中,我们要用一个按键来实现跑马灯的 10 级调速。这又会涉及到键的去抖的问 题。  本课的试验结果是,每按一次按键,跑马速度就降低一级,共 10 级。  这里我们又增加了一个变量 speedlever,来保存当前的速度档次。  在按键里的处理中,多了当前档次的延时值的设置。  请看程序:  ―― ...
https://www.eeworm.com/dl/516025.html
下载: 1
查看: 60