找回密码
 立即注册

QQ登录

只需一步,快速开始

帖子
查看: 3964|回复: 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();
      }
   }
}
回复

举报

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

本版积分规则

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

Powered by 单片机教程网

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