- 博客(10)
- 收藏
- 关注
原创 第九届国赛
#include <stc15f2k60s2.h> #include <onewire.h> #include <iic.h> #define uchar unsigned char uchar discode[]={0X01,0X02,0X04,0X08,0X10,0X20,0X40,0X80}; uchar tab[]={0xc0,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80,0x90,0x40,0x79,0x24,0x30,0x19
2020-11-16 16:14:42 105
原创 第十一届省赛(7月)
#include <stc15f2k60s2.h> #include <iic.h> #define uchar unsigned char uchar tab[]={0XC0,0XF9,0XA4,0XB0,0X99,0X92,0X82,0XF8,0X80,0X90,0X40,0X79,0X24,0X30,0X19,0X12,0X02,0X78,0X00,0X10,0XBF,0XFF,0Xc1,0X8C,0XC8};//22个数 tab[22]=U,tab[23]=P,tab[24]
2020-11-16 16:13:16 105
原创 串口通信
#include <stc15f2k60s2.h> #include <string.h> #define uchar unsigned char uchar tab[]={0XC0,0XF9,0XA4,0XB0,0X99,0X92,0X82,0XF8,0X80,0X90,0X40,0X79,0X24,0X30,0X19,0X12,0X02,0X78,0X00,0X10,0XBF,0XFF,0Xc1,0X8C,0XC8};//22个数 tab[22]=U,tab[23]=P,tab[
2020-11-16 16:11:46 108
原创 DS18b20
#include<stc15f2k60s2.h> #include<intrins.h> #define uchar unsigned char #define uint unsigned int uchar tab[]={0XC0,0XF9,0XA4,0XB0,0X99,0X92,0X82,0XF8,0X80,0X90,\ 0X40,0X79,0X1A,0X30,0X19,0X12,0X02,0X78,0X00,0X10,0XBF,0XFF}; int one,two
2020-11-16 16:10:10 81
原创 I2C-(PCF8591,AT24C02)
#include<stc15f2k60s2.h> #include "intrins.h" #define uchar unsigned char #define uint unsigned int #define somenop {_nop_();_nop_();_nop_();_nop_();_nop_();} #define SlaveAddrW 0xA0 #define SlaveAddrR 0xA1 #ifndef _IIC_H #define _IIC_H //函数声明 vo
2020-11-16 16:08:17 164
原创 DS1302
#include<stc15f2k60s2.h> #include <intrins.h> #define uchar unsigned char #define uint unsigned int #ifndef __DS1302_H #define __DS1302_H sbit SCK=P1^7; sbit SDA=P2^3; sbit RST = P1^3; // DS1302复位 char tab[]={0XC0,0XF9,0XA4,0XB0,0X99,0X
2020-11-16 16:06:11 51
原创 超声波测距模块
#include <stc15f2k60s2.h> #include <intrins.h> #define uchar unsigned char #define somenop{_nop_();_nop_();_nop_();_nop_();_nop_();_nop_();_nop_();_nop_();_nop_();_nop_();} sbit TX=P1^0; sbit RX=P1^1; uchar tab[]={0XC0,0XF9,0XA4,0XB0,0X99,0X92,
2020-11-16 16:04:38 224
原创 NE555频率测量模块
#include<stc15f2k60s2.h> #define uchar unsigned char #define uint unsigned int char tab[]={0XC0,0XF9,0XA4,0XB0,0X99,0X92,0X82,0XF8,0X80,0X90,0XBF,0xFF}; uchar one,two,three,four,five,six,seven,eight; int fre,di,gao,di_now,gao_now; int time,i; bit fla
2020-11-16 16:03:47 487
原创 第十届国赛
第十届国赛 #include <stc15f2k60s2.h> #include <intrins.h> #include <string.h> #include <onewire.h> #include <iic.h> #define uchar unsigned char #define somenop{_nop_();_nop_();_nop_();_nop_();_nop_();_nop_();_nop_();_nop_();_nop.
2020-11-16 15:59:38 85
原创 十一届蓝桥杯电子类单片机组赛后总结
第十一届蓝桥杯电子类单片机组赛后总结 省赛 十一届的省赛考了ds18b20,dac两块驱动,挺简单的,把逻辑写清楚,功能全部实现就算客观题不太好也基本上是省一了,像我在江苏赛区,竞争还比较激烈,程序题全实现,客观题错了四五个也是省一,所以省赛只要认真准备,确实付出努力了肯定会有回报。 国赛 今年因为疫情原因,没能去成北京,这还是挺可惜的。今年国赛的题目是真的狗,我考前把时间都花在了程序设计部分,在调试超声波,串口,频率检测啥的,结果国赛一个都没考,竟然考了一个初赛考过的ds18b20(虽然考到了小数
2020-11-16 15:08:06 1141
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人