搜索结果

找到约 908 项符合 Max-Int 的查询结果

单片机编程 红外解码程序

/*  * _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 ...
https://www.eeworm.com/dl/509771.html
查看: 52

单片机编程 AVR单片机转速表

/****************************************************************                  外部晶振8M                  PA0~3:四位数码管的位选                  PB0~7:数码管 ...
https://www.eeworm.com/dl/509864.html
下载: 1
查看: 97

单片机编程 LED电压表源代码

#include "stm8s103f.h" #include "LEDBL.h" #include "UART1.h" #include "LCD1621.h" //#include "KEY.h" #define uchar unsigned char #define uint unsigned int _Bool KEYC @PB_IDR:4;//COPY _Bool KEYP @PC_IDR:6;//POW uint ShowMode = 1;
https://www.eeworm.com/dl/510053.html
下载: 1
查看: 30

Linux/uClinux/Unix编程 c语言程序源

#include <iostream> using namespace std; class Student { public: Student(int, int); int num; int grade; }; Student::Student(int n, int g) { num = n; grade = g; } int maxGradeIndex(Student* s) { int maxGrade, index = 0, i = 0; maxGrade = s[0].grade; for (i = 0; i<5; i++) { if (s[i].grade > maxGrade) ...
https://www.eeworm.com/dl/510573.html
下载: 1
查看: 29

单片机编程 舵机电机PID控制算法

#include <hidef.h>      /* common defines and macros */ #include "derivative.h"      /* derivative-specific definitions */ #include <mc9s12xs128.h> //定义PID参数 #define VV_KPVALUE 3       //比例 #define VV_KIVALUE 40    &nbs ...
https://www.eeworm.com/dl/510659.html
下载: 1
查看: 143

单片机编程 单片机C语言(for)延时计算

C程序中可使用不同类型的变量来进行延时设计。经实验测试,使用unsigned char类型具有比unsigned int更优化的代码,在使用时应该使用unsigned char作为延时变量。  以某晶振为12MHz的单片机为例,晶振为12MHz即一个机器周期为1us。  ...
https://www.eeworm.com/dl/510684.html
下载: 1
查看: 33

其他 2013遗传算法工具箱

% 生成训练样本集 clear all; clc; P=[110 0.807 240 0.2 15 1 18 2 1.5; 110 2.865 240 0.1 15 2 12 1 2; 110 2.59 240 0.1 12 4 24 1 1.5; 220 0.6 240 0.3 12 3 18 2 1; 220 3 240 0.3 25 3 21 1 1.5; 110 1.562 240 0.3 15 3 18 1 1.5; 110 0.547 240 0.3 15 1 9 2 1.5]; 0 1.318 ...
https://www.eeworm.com/dl/511294.html
查看: 37

教材/考试/认证 离散实验 一个包的传递 用warshall

 实验源代码 //Warshall.cpp #include<stdio.h> void warshall(int k,int n) { int i , j, t; int temp[20][20]; for(int a=0;a<k;a++) { printf("请输入矩阵第%d 行元素:",a); for(int b=0;b<n;b++) {& ...
https://www.eeworm.com/dl/512044.html
下载: 2
查看: 47

嵌入式综合 红外遥控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