找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
查看: 3934|回复: 0
打印 上一主题 下一主题
收起左侧

Proteus仿真错误[SPICE] TRAN: Timestep too small; timestep = 1.25e-019: troub...

[复制链接]
跳转到指定楼层
楼主
ID:983169 发表于 2021-11-21 17:23 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
下面的编译成功了 但是仿真的时候遇到fatal simulation error encountered跳转之后就这个问题   想知道哪里有问题怎么解决
[SPICE] TRAN:  Timestep too small; timestep = 1.25e-019: trouble with node #00046.

单片机源程序如下:
#include <reg51.h>
#define uchar unsigned char
#define uint unsigned int
#define ulong unsigned long

xdata uchar GPS_Buffer[500]  _at_  0X0000;

xdata uchar GPRS_Buffer[500]  _at_  0X01F4;
sbit YCIN_Flag = 0xD5;
sbit Alarm_EN= P2^0;
sbit GPRS_EN= P2^1;
void EX_lnit()
{
   EX0=1;
   IT0=1;
   PX0 = 1;
   EX1=1;
   IT1=0;
}
void UART_lnit()
{
   ;
}
void delay()
{
   ;
}
void GPS_Rec()
{
   ;
}
void GPRS_Rec()
{
   ;
}
void GPRS_Dec()
{
   ;
}
void GPRS_Comm()
{
   ;
}
void EX0_int( ) interrupt 0 using 1
{
   GPRS_EN = 1;
   delay( );
   GPRS_Rec();
   GPRS_Dec();
   GPRS_Comm();
}
void EX1_int( ) interrupt 2 using 2
{
   if( Alarm_EN == 0)
   {
      Alarm_EN = 1;
   }
   GPRS_EN = 0;
   GPS_Rec();
}
void main(void)
{
    SP=0X50;
    YCIN_Flag = 0;
    GPRS_EN = 0;
    EX_lnit();
    UART_lnit();
    EA=1;
   // Write your code here
   while (1)
   {
      if(YCIN_Flag)
      {
         if(Alarm_EN ==0)
         {
            Alarm_EN = 1;
         }
         GPRS_EN = 0;
         GPS_Rec();
      }
   }
}
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 分享淘帖 顶 踩
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|51黑电子论坛 |51黑电子论坛6群 QQ 管理员QQ:125739409;技术交流QQ群281945664

Powered by 单片机教程网

快速回复 返回顶部 返回列表