Single-chip
verybing
风雨过后会见彩虹!
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
基于80c52的时钟程序
#include#define uchar unsigned char#define uint unsigned intuchar code table[]={0xC0,0xF9,0xA4,0xB0,0x99,0x92,0x82,0xF8,0x80,0x90,0X7F,0xff};uchar code aa[]={0xfe,0xfd,0XF3,0xfb,0xf7};sbit p2_0=P2^0;s原创 2008-12-14 11:04:00 · 1341 阅读 · 0 评论 -
没用延时函数,只用中断的计算器程序
#include#define uchar unsigned char#define uint unsigned intuchar code table[]={0xc0,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x00,0x90,0xbf,0xff};//段选uchar code wei[]={0x01,0x02,0x04,0x08,0x10,0x20,0x40,0x原创 2008-12-27 16:29:00 · 1095 阅读 · 0 评论 -
双动力船模模块
一.遥控电路部分1. 遥控电路规划图: MCURF收发模块A/D转向控制模块液晶显示模块键盘控制模块2. 各模块说明Rf收发模块:Rf收发芯片采用全原创 2009-03-20 21:14:00 · 2102 阅读 · 1 评论 -
pca测速
/*pca测速中断服务子程序*/void pca_isp() interrupt 6 using 1//interrupt sevice routine{ static bit flag_pca3=0; static bit flag_pca4=0; static unsigned long idata temp1_pca3=0x00; static unsigned long idata t原创 2009-07-28 16:16:00 · 809 阅读 · 0 评论 -
模糊pid算法控制速度
typedef struct{ int et;//当前状态的误差 int pre_et;//前一状态的误差 int for_et; uchar output;} PID; uchar pid(uint set_speed,uint real_speed,PID my){ char data ec; uchar idata kp,ki,kd; uchar out; int temp;原创 2009-07-28 16:06:00 · 4880 阅读 · 2 评论 -
超声波测距
/*********************************************************超声波测距程序***********************说明:t0定时中断控制t2产生40khz的方波,方波从p1.0口输出;由外部中断p3.3检测反射波;t1用于发射到接收的计时*****************************张传兵制作于2009年8月14号*****原创 2009-08-14 18:13:00 · 1229 阅读 · 2 评论
分享