• 大小: 0.26M
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-03-27
  • 语言: 其他
  • 标签: 其他  

资源简介


用VC编的基于51单片机的包含proteus原理图和源代码,简单虚拟示波器。

资源截图

代码片段和文件信息

#include “selfdf.h“
#include 
#include 
#define adaddr XBYTE[0x8000] 
uchar cnt12us;
uchar cnt1200us;
uchar adr[50];
uchar adresult;
uchar padr=0;
uchar adst=1;
void delay(int i);
main()
{
adst=1;
TMOD=0x21;
SCON=0x50; //10位异步,串口接收允许
PCON=0x80; //SMOD=1,Baudrate= fosc/(16*12*(256-TH1)) 
TH0=0xFF;
TL0=0xff; //(10000-ffd8)*12/11.0592=
TH1=255;
TL1=255; //11.0592/(16*12*(256-255) =57600
ES=1; //Uart中断使能
TI=1;
ET0=1; //timer0中断使能
TR0=1; //设置Timer0开始计数
ET1=1; //timer1中断使能
TR1=1; //设置Timer1开始计数
IP=0x10; //中断优先级
EA=1;

while(1)
{

// P17=!P17;
//if (ES==0)

//delay(1);

//if (padr==50) {padr=0;adst=0;ES=1;} //Uart中断使能
}

}
void timer0_isp() interrupt timer0_vec 
{
ET0=0;
TL0+=0x00;
TH0+=0xFF;
/*
cnt12us++;
if (cnt12us==100)
{
cnt12us=0;
cnt1200us++;
}
*/

ET0=1;
}
void Serial(void) interrupt 4 using 1
{

ES=0; 
    if (TI)
    {
        TI = 0;

P12=0;
P10=1;
_nop_();
P10=0;
_nop_();

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件     101321  2009-01-04 15:09  LTC1099串口示波器(MCU+串口+VC)\1099ad.DSN

     文件        792  2009-01-04 15:11  LTC1099串口示波器(MCU+串口+VC)\1099ad.PWI

     文件       5915  2008-12-31 16:02  LTC1099串口示波器(MCU+串口+VC)\1234

     文件       4334  2008-12-31 16:02  LTC1099串口示波器(MCU+串口+VC)\1234.hex

     文件         57  2008-12-31 16:02  LTC1099串口示波器(MCU+串口+VC)\1234.lnp

     文件       8031  2008-12-31 16:02  LTC1099串口示波器(MCU+串口+VC)\1234.M51

     文件       1025  2009-01-04 16:30  LTC1099串口示波器(MCU+串口+VC)\1234.Opt

     文件        202  2009-01-04 16:30  LTC1099串口示波器(MCU+串口+VC)\1234.plg

     文件       2152  2008-12-31 16:06  LTC1099串口示波器(MCU+串口+VC)\1234.Uv2

    .......      1026  2008-12-31 16:06  LTC1099串口示波器(MCU+串口+VC)\1234_Opt.Bak

    .......         0  2008-12-31 15:53  LTC1099串口示波器(MCU+串口+VC)\1234_Uv2.Bak

     文件      59328  2007-08-02 22:14  LTC1099串口示波器(MCU+串口+VC)\DDW\DDW\DDW.APS

     文件       1611  2007-07-15 10:17  LTC1099串口示波器(MCU+串口+VC)\DDW\DDW\DDW.cpp

     文件        444  2007-07-15 09:55  LTC1099串口示波器(MCU+串口+VC)\DDW\DDW\DDW.h

     文件       6092  2007-08-02 22:14  LTC1099串口示波器(MCU+串口+VC)\DDW\DDW\DDW.rc

     文件       5557  2007-08-02 22:38  LTC1099串口示波器(MCU+串口+VC)\DDW\DDW\DDW.vcproj

     文件       1427  2007-08-02 22:39  LTC1099串口示波器(MCU+串口+VC)\DDW\DDW\DDW.vcproj.WWW-60A5C327E47.Administrator.user

     文件      13518  2007-08-02 22:38  LTC1099串口示波器(MCU+串口+VC)\DDW\DDW\DDWDlg.cpp

     文件       1826  2007-07-29 16:31  LTC1099串口示波器(MCU+串口+VC)\DDW\DDW\DDWDlg.h

     文件       9790  2007-08-02 21:51  LTC1099串口示波器(MCU+串口+VC)\DDW\DDW\DrawWnd.cpp

     文件       1231  2007-07-29 18:02  LTC1099串口示波器(MCU+串口+VC)\DDW\DDW\DrawWnd.h

     文件       2691  2007-07-15 08:16  LTC1099串口示波器(MCU+串口+VC)\DDW\DDW\ReadMe.txt

     文件      21630  2005-12-08 14:56  LTC1099串口示波器(MCU+串口+VC)\DDW\DDW\res\DDW.ico

     文件        359  2007-07-15 08:16  LTC1099串口示波器(MCU+串口+VC)\DDW\DDW\res\DDW.rc2

     文件       1089  2007-07-29 16:13  LTC1099串口示波器(MCU+串口+VC)\DDW\DDW\Resource.h

     文件        134  2007-07-15 08:16  LTC1099串口示波器(MCU+串口+VC)\DDW\DDW\stdafx.cpp

     文件       2489  2007-07-15 08:16  LTC1099串口示波器(MCU+串口+VC)\DDW\DDW\stdafx.h

     文件     327680  2007-08-02 22:38  LTC1099串口示波器(MCU+串口+VC)\DDW\DDW.exe

     文件        874  2007-07-15 08:16  LTC1099串口示波器(MCU+串口+VC)\DDW\DDW.sln

    ..A..H.     41984  2007-08-02 22:39  LTC1099串口示波器(MCU+串口+VC)\DDW\DDW.suo

............此处省略28个文件信息

评论

共有 条评论