搜索结果
找到约 819 项符合
J-LINK 的查询结果
单片机编程 红外解码程序
/*
 * _168ZHONGDUAN2.c
 *
 * Created: 2014/11/2 15:12:45
 *  Author: lenovo
 */ 
#include <avr/io.h>
#include <avr/iom168pa.h>
#include <avr/interrupt.h>
#include <util/delay.h>
#include <avr/eeprom.h>
//#include <util/delay_basic.h>
//unsigned char const SEGtabl ...
单片机编程 AVR单片机转速表
/****************************************************************&nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 外部晶振8M&nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; PA0~3:四位数码管的位选&nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; PB0~7:数码管 ...
Matlab 遗传算法GA
遗传算法(Genetic&nbsp;Algorithm)是一类借鉴生物界的进化规律(适者生存,优胜劣汰遗传机制)演化而来的随机化搜索方法。它是由美国的J.Holland教授1975年首先提出,其主要特点是直接对结构对象进行操作,不存在求导和函数连续性的限定;具有内在的隐并行性和更好的全局寻优能力;采用概率化的寻优方法,能自动获取和指 ...
仿真技术 matlab-均值滤波.中值滤波
I=imread('fig1.jpg');%从D盘名为myimages的文件夹中读取。格式为jpg的图像文件chost
J=imnoise(I,'salt & pepper',0.02);%给图像加入均值为0,方差为0.02的淑盐噪声
subplot(2,4,1);
imshow(I);
title('原始图像');
subplot(2,4,2);
imshow(J);
title('加入椒盐噪声之后的图像');
%h=ones(3,3)/ ...
教材/考试/认证 离散实验 一个包的传递 用warshall
&nbsp;实验源代码
//Warshall.cpp&nbsp;#include<stdio.h>&nbsp;void&nbsp;warshall(int&nbsp;k,int&nbsp;n)&nbsp;{&nbsp;int&nbsp;i&nbsp;,&nbsp;j,&nbsp;t;&nbsp;int&nbsp;temp[20][20];&nbsp;for(int&nbsp;a=0;a<k;a++)&nbsp;{&nbsp;printf("请输入矩阵第%d&nbsp;行元素:",a);&nbsp;for(int&nbsp;b=0;b<n;b++)&nbsp;{& ...
嵌入式综合 红外遥控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 ; ...
源码 1602数字时钟
# include < reg52.h >
# include < 24C02.h>
# define uint unsigned int
# define uchar unsigned char
&nbsp;
sbit rs = P3^5; &nbsp;//定义lcd1602的rs端
sbit lcden = P3^4;//定义lcd1602的lcden端口
sbit s1 = P3^0;//定义功能键s1
sbit s2 = P3^1;//定义功能键s2
sbit s3 = P3^2;//定 ...
源码 计算声学响度
Computation of loudness (Zwicker model) according to ISO 532B / DIN 45631 norms.&nbsp;
This model is valid for steady sounds.
Code based on BASIC program published in the following article:
Program for calculating loudness according to DIN 45 631 (ISO 532B)",
E.Zwicker and H.Fastl, J.A.S.J (E) 12, 1 ...
源码 多项式计算代码
void DFS(MGraph G, int i)
{
&nbsp; &nbsp; int j;
&nbsp; &nbsp; visited[i] = TRUE;
&nbsp; &nbsp; printf("%c ", &nbsp; &nbsp;G.vexs[i]);
&nbsp; &nbsp; for (j=0; j<G.numVertexes; ++j)
&nbsp; &nbsp; {
&nbsp; &nbsp; &nbsp; &nbsp; if (G.arc[i][j]!=INFINITY &nbsp;&& &nbsp;!visited[j])
&nbsp; &nbsp; &nbsp; ...