STC测试程序 #include"NEW_8051.h" #include<intrins.h> /* sfrP4=0xC0;//8bitPort4P4.7P4.6P4.5P4.4P4.3P4.2P4.1P4.01111,1111 sfrP4M0=0xB4;//0000,0000 sfrP4M1=0xB3;//0000,0000 //76543210ResetValue sfrP4SW=0xBB;//Port-4s
stc15w408as准时器0测试程序 stc15w408as准时器0测试程序 stc15w408as准时器0测试程序 #include #defineucharunsignedchar sbitLED=P1^0; sbitLED1=P1^2; sbitLED2=P1^4; uchartime; voidinitT0() { AUXR=0x7F; //准时器时钟 12T模式 TMOD=0xF0; //设置准时器模式 TH0= 0x04; //...
STC51-BMP085&BMP180测试程序 //*** //BMP085IIC测试程序 //使用单片机STC89C51 //晶振:11.0592M //显示:LCD1602 //编译环境KeiluVision2 //参考宏晶网站24c04通信程序 //时间:2011年7月1日 //QQ: //*** #include<REG51.H> #include<math.h>//Keillibrary #include<stdlib.h>//Keillibrary #...
stc15w408as定时器0测试程序stc15w408as定时器0测试程序stc15w408as定时器0测试程序xxx公司stc15w408as定时器0测试程序文件编号:文件日期:修订次数:第1.0次更改批准审核制定方案设计,管理制度#include""#define ucharunsignedcharsbitLED=P1^0;sbitLED1=P1^2;sbitLED2=P1^4;uchartime;voidinitT0(){ AUXR&=0x7F...
stc51单片机写入片内EEPROM的c语言程序 热度: 计算机知识通信软件设计方法-第二讲-LINUX下C语言程序0422170336第一期 热度: HA-VAL-311-单元测试结果报告 热度: //************************* //BMP085IIC...
stc15w408as定时器0测试程序 #include "" #define uchar unsigned char sbit LED=P1^0; sbit LED1=P1^2; sbit LED2=P1^4; uchar time; void initT0( ) { AUXR &= 0x7F; //定时器时钟12T模式 TMOD = 0xF0; //设置定时器模式 TH0 = 0x04; //设置定时初值 TL0 = 0x00; //设置定时初值 TF0...
stc12c5a60s2单片机FFT程序 STC12C5A60S2已解锁- 发送与接收程序6串行通信-STC12C5A60S2 STC12C5A60S2单片机AD转换程序 基于STC12C5A60S2的ADXL345程序 stc12C5A60S2内部AD应用 STC12C5A60S2寄存器总结 STC12C5A60S2中文资料 STC12C5A60S2系列单片机 STC12C5A60S2单片机PWM2 验证过的STC12C5A60S2单片机...
于是写了这段程序测试学习一下,程序在我的学习板上运行稳定,如里要你只要改下I/O口即可。里面注解挺详细的,愿对看文档的人有所帮助吧。 下面是主程序部份: # include <stc12c5a60s2.h> # include <intrins.h> # define uchar unsigned char # define uint unsignedint /* ---函数声明开始--- */ vo...
(STC12C5A60S2\r\nUart2 Test !\r\n); while(1); } /*--- UART2 interrupt service routine ---*/ void Uart2() interrupt 8 using 1 { if (S2CON S2RI) { S2CON = ~S2RI; //Clear receive interrupt flag P0 = S2BUF; //P0 show UART data P2 = (S2CON S2RB8); //P2.2 show...
STC15W408单片机程序-Timer0-Timer1-Timer2测试程序/C语言/timer.plg1KB2023-07-22 08:44:12 STC15W408单片机程序-Timer0-Timer1-Timer2测试程序/C语言/timer.Uv22KB2023-07-22 08:44:10 STC15W408单片机程序-Timer0-Timer1-Timer2测试程序/C语言/timer_Opt.Bak1KB2023-07-22 08:44:12 ...