⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 debugger.ini

📁 msc 1210 a/d口的使用
💻 INI
字号:
/*-----------------------------------------------*/
/* Analog0() simulates analog input values given */
/*  to channel-0 (AIN0) of the MSC1210 device    */
/*-----------------------------------------------*/
Signal void analog0 (float limit)  {
  float volts;

  printf ("Analog0 (%f) entered.\n", limit);
  while (1)  {          /* forever */
    volts = 0;
    while (volts <= limit)  {
      ain0 = volts;     /* analog input-0 */
      swatch (0.1);     /* 0.1 Sec */
      volts += 0.1;     /* increase voltage */
    }
    volts = limit;
    while (volts >= 0.0)  {
      ain0 = volts;
      swatch (0.1);     /* 0.1 Sec */
      volts -= 0.1;     /* decrease voltage */
    }
  }
}


// start volatage ramp on AIN0
analog0 (3.5)

// fixed volate on AIN1 .. AIN7
AIN1=3.234567
AIN2=2.555555
AIN3=4.212345
AIN4=1.112348
AIN5=2.111234
AIN6=4.987654
AIN7=0.000022



⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -