- 博客(5)
- 收藏
- 关注
原创 基于单片机的温度计
#include <reg51.h>#include <intrins.h>#define uchar unsigned char#define uint unsigned int#define out P0sbit smg1=out^4;sbit smg2=out^5;sbit DQ=P3^7;void delay5(uchar);void init_ds18b20(void);uchar readbyte(void);void writebyt...
2022-06-11 00:12:48
235
原创 DAC0832电源电路
#include<reg51.h>unsigned char a[16]={0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f,0x77,0x7c,0x39,0x5e,0x79,0x71},b[4],c=0x01;sbit START=P2^4;sbit OE=P2^6;sbit EOC=P2^5;sbit add_a=P2^2;sbit add_b=P2^1;sbit add_c=P2^0;sbit led=P2^7;...
2022-06-10 23:21:59
249
转载 基于51单片机的DAC0832波形产生电路
#include "reg52.h"#include <math.h>#define ADC_PORT P2 //如图,ADC0832连接端口//5种波#define W_SINE 0#define W_SQU 1#define W_TRI 2#define W_TRA 3#define W_SAW 4#define PI 3.1415926f //圆周率//简化类型符写法typedef unsigned char u8;typedef unsigned in...
2022-05-04 00:10:14
786
原创 单片机控制ADC0809
#include <reg51.h>#define uchar unsigned char#define uint unsigned int#define LED P0#define out P1sbit start= P2^1 ;sbit OE=P2^7;sbit EOC=P2^3;sbit CLOCK= P2^0;sbit add_a= P2^4;sbit add_b= P2^5;sbit add_c= P2^6;void main( void ){...
2022-05-04 00:02:13
1388
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人