- 博客(9)
- 资源 (11)
- 收藏
- 关注
原创 arm之LCD(键盘输入)
#include <stdio.h>#include <sys/types.h>#include <sys/stat.h>#include <fcntl.h>#include <unistd.h>#include <sys/mman.h>#include<string.h>int *plcd = NULL;char numprint[4][175];char number2[4];
2017-06-21 16:26:11 987
原创 arm之LCD
#include <stdio.h>#include <sys/types.h>#include <sys/stat.h>#include <fcntl.h>#include <unistd.h>#include <sys/mman.h>int *plcd = NULL;/********************************************************
2017-06-20 17:24:47 696
原创 经典C语言例题之Linux
#include<stdio.h>/***********************************************不使用中间变量,将两个整数的值交换* int a b;* a=a+b;* b=a-b;* a=a-b;*此答案未考虑到溢出的问题**********************************************int 正数的最大值
2017-06-19 15:45:48 408
原创 89C52单片机之串口
#include <reg52.h>#include <stdio.h>#define uint unsigned int#define uchar unsigned charuchar flag = 0;uchar buf = 0x55; //uvoid init_T1(); //定时器1void uart_init();
2017-06-16 14:16:26 2899
原创 52单片机之寄存器
定时器/计数器工作方式寄存器 TMOD(47页) 位序号 D7 D6 D5 D4 D4 D4 D4 D4 位符号 GATE C/T M1 M0 GATE C/T M1 M0 GATE—-门控制位; GATE=0,定时器启动与停止仅受 TCON 寄存器中 TRX(X=0,1)来控制; GATE=1,定时器启动与停止受 TCON 寄存器中 TRX(X=0
2017-06-15 20:10:31 1773
原创 52单片机之定时器0
#include <reg52.h>#include <intrins.h>#define uint unsigned int#define uchar unsigned charvoid Delay_ms(int);void Display_show();void Int_Init();void KEY3_add();void KEY4_min();sbit LED1 = P0^7;
2017-06-15 20:08:45 1061
原创 89C52单片机之数码管中断
数码管倒计时显示,当显示000时,蜂鸣器响3次。 按键1按下时暂停 按键3按下时加10 按键4按下时减10#include <reg52.h>#include <intrins.h>typedef unsigned char uchar;typedef unsigned int uint;void Delay_ms(int);void DigitronShow();void Int_
2017-06-15 11:29:37 1387 2
原创 89C52单片机之流水灯中断
#include<reg52.h>#include<intrins.h>#define uint unsigned int#define uchar unsigned charsbit KEY1=P3^3; //按键1sbit KEY2=P3^4; //按键2sbit KEY3=P3^6; //按键3sbit KEY4=P3^7; //按键4sbit LED1=P1
2017-06-15 11:25:31 3012
原创 89C52单片机之数码管
数码管倒计时及蜂鸣器报警#include<reg52.h>#define uint unsigned int#define uchar unsigned charsbit bell= P0^7;//unsigned char dofly_table[]={0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f};
2017-06-15 11:22:11 1631
Java常用工具类
2017-03-05
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人