- 博客(10)
- 收藏
- 关注
原创 第九届国赛
#include <stc15f2k60s2.h>#include <onewire.h>#include <iic.h>#define uchar unsigned charuchar 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
157
原创 第十一届省赛(7月)
#include <stc15f2k60s2.h>#include <iic.h>#define uchar unsigned charuchar 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
162
原创 串口通信
#include <stc15f2k60s2.h>#include <string.h>#define uchar unsigned charuchar 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
155
原创 DS18b20
#include<stc15f2k60s2.h>#include<intrins.h>#define uchar unsigned char#define uint unsigned intuchar 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
162
原创 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
234
原创 DS1302
#include<stc15f2k60s2.h>#include <intrins.h>#define uchar unsigned char#define uint unsigned int#ifndef __DS1302_H#define __DS1302_Hsbit 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
84
原创 超声波测距模块
#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
266
原创 NE555频率测量模块
#include<stc15f2k60s2.h>#define uchar unsigned char#define uint unsigned intchar 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
575
原创 第十届国赛
第十届国赛#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
130
原创 十一届蓝桥杯电子类单片机组赛后总结
第十一届蓝桥杯电子类单片机组赛后总结省赛十一届的省赛考了ds18b20,dac两块驱动,挺简单的,把逻辑写清楚,功能全部实现就算客观题不太好也基本上是省一了,像我在江苏赛区,竞争还比较激烈,程序题全实现,客观题错了四五个也是省一,所以省赛只要认真准备,确实付出努力了肯定会有回报。国赛今年因为疫情原因,没能去成北京,这还是挺可惜的。今年国赛的题目是真的狗,我考前把时间都花在了程序设计部分,在调试超声波,串口,频率检测啥的,结果国赛一个都没考,竟然考了一个初赛考过的ds18b20(虽然考到了小数
2020-11-16 15:08:06
1233
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人