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

📄 programmer.cpp

📁 用于开发Atmel的AVR系列单片机的GCC集成开发环境
💻 CPP
📖 第 1 页 / 共 5 页
字号:
           FuseHBit1->Enabled = true;
           FuseHBit2->Caption = "BOOTSZ1";
           FuseHBit2->Enabled = true;
           FuseHBit3->Caption = "EESAVE";
           FuseHBit3->Enabled = true;
           FuseHBit4->Caption = "CKOPT";
           FuseHBit4->Enabled = true;
           if (PrgOpt->parprog)
           {
            FuseHBit5->Caption = "SPIEN";
            FuseHBit5->Enabled = true;
           }
           FuseHBit6->Caption = "JTAGEN";
           FuseHBit6->Enabled = true;
           FuseHBit7->Caption = "OCDEN";
           FuseHBit7->Enabled = true;
           break;
  case 22: // atmega32
           chip.flashsize = 32768;
           chip.paged = true;
           chip.pagesize = 128;
           chip.WD_Flash = 9;
           chip.eepromsize = 1024;
           chip.WD_EEPROM = 9;
           chip.signature = 0x9502;
           chip.calibbytes = 4;
           chip.lockbittype = 3;
           chip.stk500_dev = 0x91;
           chip.fusebytes = 2;
           chip.lockbytes = 1;
           chip.selftimed = 1;
           chip.parmode = 1;
           BLB01Box->Enabled = true;
           BLB02Box->Enabled = true;
           BLB11Box->Enabled = true;
           BLB12Box->Enabled = true;
           chip.fusebittype = 4;
           FuseLBit0->Caption = "CKSEL0";
           FuseLBit0->Enabled = true;
           FuseLBit1->Caption = "CKSEL1";
           FuseLBit1->Enabled = true;
           FuseLBit2->Caption = "CKSEL2";
           FuseLBit2->Enabled = true;
           FuseLBit3->Caption = "CKSEL3";
           FuseLBit3->Enabled = true;
           FuseLBit4->Caption = "SUT0";
           FuseLBit4->Enabled = true;
           FuseLBit5->Caption = "SUT1";
           FuseLBit5->Enabled = true;
           FuseLBit6->Caption = "BODEN";
           FuseLBit6->Enabled = true;
           FuseLBit7->Caption = "BODLEVEL";
           FuseLBit7->Enabled = true;
           FuseHBit0->Caption = "BOOTRST";
           FuseHBit0->Enabled = true;
           FuseHBit1->Caption = "BOOTSZ0";
           FuseHBit1->Enabled = true;
           FuseHBit2->Caption = "BOOTSZ1";
           FuseHBit2->Enabled = true;
           FuseHBit3->Caption = "EESAVE";
           FuseHBit3->Enabled = true;
           FuseHBit4->Caption = "CKOPT";
           FuseHBit4->Enabled = true;
           if (PrgOpt->parprog)
           {
            FuseHBit5->Caption = "SPIEN";
            FuseHBit5->Enabled = true;
           }
           FuseHBit6->Caption = "JTAGEN";
           FuseHBit6->Enabled = true;
           FuseHBit7->Caption = "OCDEN";
           FuseHBit7->Enabled = true;
           break;
  case 23: // atmega48
           chip.flashsize = 4096;
           chip.paged = true;
           chip.pagesize = 32;
           chip.WD_Flash = 5;
           chip.eepromsize = 256;
           chip.WD_EEPROM = 4;
           chip.signature = 0x9205;
           chip.calibbytes = 1;
           chip.lockbittype = 4;
           chip.stk500_dev = 0x59;
           chip.fusebytes = 3;
           chip.lockbytes = 1;
           chip.selftimed = 1;
           chip.parmode = 1;
           chip.fusebittype = 13;
           FuseLBit0->Caption = "CKSEL0";
           FuseLBit0->Enabled = true;
           FuseLBit1->Caption = "CKSEL1";
           FuseLBit1->Enabled = true;
           FuseLBit2->Caption = "CKSEL2";
           FuseLBit2->Enabled = true;
           FuseLBit3->Caption = "CKSEL3";
           FuseLBit3->Enabled = true;
           FuseLBit4->Caption = "SUT0";
           FuseLBit4->Enabled = true;
           FuseLBit5->Caption = "SUT1";
           FuseLBit5->Enabled = true;
           FuseLBit6->Caption = "CKOUT";
           FuseLBit6->Enabled = true;
           FuseLBit7->Caption = "CKDIV8";
           FuseLBit7->Enabled = true;
           FuseHBit0->Caption = "BODLEVEL0";
           FuseHBit0->Enabled = true;
           FuseHBit1->Caption = "BODLEVEL1";
           FuseHBit1->Enabled = true;
           FuseHBit2->Caption = "BODLEVEL2";
           FuseHBit2->Enabled = true;
           FuseHBit3->Caption = "EESAVE";
           FuseHBit3->Enabled = true;
           FuseHBit4->Caption = "WDTON";
           FuseHBit4->Enabled = true;
           if (PrgOpt->parprog)
           {
            FuseHBit5->Caption = "SPIEN";
            FuseHBit5->Enabled = true;
           }
           FuseHBit6->Caption = "DWEN";
           FuseHBit6->Enabled = true;
           FuseHBit7->Caption = "RSTDISBL";
           FuseHBit7->Enabled = true;
           FuseEBit0->Caption = "SELFPRGEN";
           FuseEBit0->Enabled = true;
           break;
  case 24: // atmega64
           chip.flashsize = 65536;
           chip.paged = true;
           chip.pagesize = 256;
           chip.WD_Flash = 5;
           chip.eepromsize = 2048;
           chip.WD_EEPROM = 9;
           chip.signature = 0x9602;
           chip.calibbytes = 4;
           chip.lockbittype = 3;
           chip.stk500_dev = 0xa0;
           chip.fusebytes = 3;
           chip.lockbytes = 1;
           chip.selftimed = 1;
           chip.parmode = 1;
           BLB01Box->Enabled = true;
           BLB02Box->Enabled = true;
           BLB11Box->Enabled = true;
           BLB12Box->Enabled = true;
           chip.fusebittype = 5;
           FuseLBit0->Caption = "CKSEL0";
           FuseLBit0->Enabled = true;
           FuseLBit1->Caption = "CKSEL1";
           FuseLBit1->Enabled = true;
           FuseLBit2->Caption = "CKSEL2";
           FuseLBit2->Enabled = true;
           FuseLBit3->Caption = "CKSEL3";
           FuseLBit3->Enabled = true;
           FuseLBit4->Caption = "SUT0";
           FuseLBit4->Enabled = true;
           FuseLBit5->Caption = "SUT1";
           FuseLBit5->Enabled = true;
           FuseLBit6->Caption = "BODEN";
           FuseLBit6->Enabled = true;
           FuseLBit7->Caption = "BODLEVEL";
           FuseLBit7->Enabled = true;
           FuseHBit0->Caption = "BOOTRST";
           FuseHBit0->Enabled = true;
           FuseHBit1->Caption = "BOOTSZ0";
           FuseHBit1->Enabled = true;
           FuseHBit2->Caption = "BOOTSZ1";
           FuseHBit2->Enabled = true;
           FuseHBit3->Caption = "EESAVE";
           FuseHBit3->Enabled = true;
           FuseHBit4->Caption = "CKOPT";
           FuseHBit4->Enabled = true;
           if (PrgOpt->parprog)
           {
            FuseHBit5->Caption = "SPIEN";
            FuseHBit5->Enabled = true;
           }
           FuseHBit6->Caption = "JTAGEN";
           FuseHBit6->Enabled = true;
           FuseHBit7->Caption = "OCDEN";
           FuseHBit7->Enabled = true;
           FuseEBit0->Caption = "WDTON";
           FuseEBit0->Enabled = true;
           FuseEBit1->Caption = "M103C";
           FuseEBit1->Enabled = true;
           break;
  case 25: // atmega88
           chip.flashsize = 8192;
           chip.paged = true;
           chip.pagesize = 32;
           chip.WD_Flash = 5;
           chip.eepromsize = 512;
           chip.WD_EEPROM = 4;
           chip.signature = 0x930A;
           chip.calibbytes = 1;
           chip.lockbittype = 3;
           chip.stk500_dev = 0x73;
           chip.fusebytes = 3;
           chip.lockbytes = 1;
           chip.selftimed = 1;
           chip.parmode = 1;
           BLB01Box->Enabled = true;
           BLB02Box->Enabled = true;
           BLB11Box->Enabled = true;
           BLB12Box->Enabled = true;
           chip.fusebittype = 17;
           FuseLBit0->Caption = "CKSEL0";
           FuseLBit0->Enabled = true;
           FuseLBit1->Caption = "CKSEL1";
           FuseLBit1->Enabled = true;
           FuseLBit2->Caption = "CKSEL2";
           FuseLBit2->Enabled = true;
           FuseLBit3->Caption = "CKSEL3";
           FuseLBit3->Enabled = true;
           FuseLBit4->Caption = "SUT0";
           FuseLBit4->Enabled = true;
           FuseLBit5->Caption = "SUT1";
           FuseLBit5->Enabled = true;
           FuseLBit6->Caption = "CKOUT";
           FuseLBit6->Enabled = true;
           FuseLBit7->Caption = "CKDIV8";
           FuseLBit7->Enabled = true;
           FuseHBit0->Caption = "BODLEVEL0";
           FuseHBit0->Enabled = true;
           FuseHBit1->Caption = "BODLEVEL1";
           FuseHBit1->Enabled = true;
           FuseHBit2->Caption = "BODLEVEL2";
           FuseHBit2->Enabled = true;
           FuseHBit3->Caption = "EESAVE";
           FuseHBit3->Enabled = true;
           FuseHBit4->Caption = "WDTON";
           FuseHBit4->Enabled = true;
           if (PrgOpt->parprog)
           {
            FuseHBit5->Caption = "SPIEN";
            FuseHBit5->Enabled = true;
           }
           FuseHBit6->Caption = "DWEN";
           FuseHBit6->Enabled = true;
           FuseHBit7->Caption = "RSTDISBL";
           FuseHBit7->Enabled = true;
           FuseEBit0->Caption = "BOOTRST";
           FuseEBit0->Enabled = true;
           FuseEBit1->Caption = "BOOTSZ0";
           FuseEBit1->Enabled = true;
           FuseEBit2->Caption = "BOOTSZ1";
           FuseEBit2->Enabled = true;
           break;
  case 26: // atmega103
           chip.flashsize = 131072;
           chip.paged = true;
           chip.pagesize = 256;
           chip.WD_Flash = 56;
           chip.eepromsize = 4096;
           chip.WD_EEPROM = 9;
           chip.signature = 0x9701;
           chip.lockbittype = 0;
           chip.fusebittype = 1;
           chip.stk500_dev = 0xB1;
           chip.fusebytes = 2;
           chip.lockbytes = 1;
           chip.selftimed = 0;
           chip.parmode = 1;
           FuseLBit0->Caption = "SUT0";
           FuseLBit0->Enabled = true;
           FuseLBit1->Caption = "SUT1";
           FuseLBit1->Enabled = true;
           FuseLBit3->Caption = "EESAVE";
           FuseLBit3->Enabled = true;
           if (PrgOpt->parprog)
           {
            FuseLBit5->Caption = "SPIEN";
            FuseLBit5->Enabled = true;
           }
           break;
  case 27: // atmega128
           chip.flashsize = 131072;
           chip.paged = true;
           chip.pagesize = 256;
           chip.WD_Flash = 9;
           chip.eepromsize = 4096;
           chip.WD_EEPROM = 9;
           chip.signature = 0x9702;
           chip.calibbytes = 4;
           chip.lockbittype = 3;
           chip.stk500_dev = 0xB2;
           chip.fusebytes = 3;
           chip.lockbytes = 1;
           chip.selftimed = 1;
           chip.parmode = 1;
           BLB01Box->Enabled = true;
           BLB02Box->Enabled = true;
           BLB11Box->Enabled = true;
           BLB12Box->Enabled = true;
           chip.fusebittype = 5;
           FuseLBit0->Caption = "CKSEL0";
           FuseLBit0->Enabled = true;
           FuseLBit1->Caption = "CKSEL1";
           FuseLBit1->Enabled = true;
           FuseLBit2->Caption = "CKSEL2";
           FuseLBit2->Enabled = true;
           FuseLBit3->Caption = "CKSEL3";
           FuseLBit3->Enabled = true;
           FuseLBit4->Caption = "SUT0";
           FuseLBit4->Enabled = true;
           FuseLBit5->Caption = "SUT1";
           FuseLBit5->Enabled = true;
           FuseLBit6->Caption = "BODEN";
           FuseLBit6->Enabled = true;
           FuseLBit7->Caption = "BODLEVEL";
           FuseLBit7->Enabled = true;
           FuseHBit0->Caption = "BOOTRST";
           FuseHBit0->Enabled = true;
           FuseHBit1->Caption = "BOOTSZ0";
           FuseHBit1->Enabled = true;
           FuseHBit2->Caption = "BOOTSZ1";
           FuseHBit2->Enabled = true;
           FuseHBit3->Caption = "EESAVE";
           FuseHBit3->Enabled = true;
           FuseHBit4->Caption = "CKOPT";
           FuseHBit4->Enabled = true;
           if (PrgOpt->parprog)
           {
            FuseHBit5->Caption = "SPIEN";
            FuseHBit5->Enabled = true;
           }
           FuseHBit6->Caption = "JTAGEN";
           FuseHBit6->Enabled = true;
           FuseHBit7->Caption = "OCDEN";
           FuseHBit7->Enabled = true;
           FuseEBit0->Caption = "WDTON";
           FuseEBit0->Enabled = true;
           FuseEBit1->Caption = "M103C";
           FuseEBit1->Enabled = true;
           break;
  case 28: // atmega161
           chip.flashsize = 16384;
           chip.paged = true;
           chip.pagesize = 128;
           chip.WD_Flash = 14;
           chip.eepromsize = 512;
           chip.WD_EEPROM = 4;
           chip.signature = 0x9401;
           chip.lockbittype = 3;
           chip.stk500_dev = 0x80;
           chip.fusebytes = 1;
           chip.lockbytes = 1;
           chip.selftimed = 1;
           chip.parmode = 1;
           BLB01Box->Enabled = true;
           BLB02Box->Enabled = true;
           BLB11Box->Enabled = true;
           BLB12Box->Enabled = true;
           chip.fusebittype = 6;
           FuseLBit0->Caption = "CKSEL0";
           FuseLBit0->Enabled = true;
           FuseLBit1->Caption = "CKSEL1";
           FuseLBit1->Enabled = true;
           FuseLBit2->Caption = "CKSEL2";
           FuseLBit2->Enabled = true;
           FuseLBit4->Caption = "SUT";
           FuseLBit4->Enabled = true;
           if (PrgOpt->parprog)
           {
            FuseLBit5->Caption = "SPIEN";
            FuseLBit5->Enabled = true;
           }
           FuseLBit6->Caption = "BOOTRST";
           FuseLBit6->Enabled = true;
           break;
  case 29: // atmega162
           chip.flashsize = 16384;
           chip.paged = true;
           chip.pagesize = 128;
           chip.WD_Flash = 5;
           chip.eepromsize = 512;
           chip.WD_EEPROM = 9;
           chip.signature = 0x9404;
           chip.calibbytes = 1;
           chip.lockbittype = 3;
           chip.stk500_dev = 0x83;
           chip.fusebytes = 3;
           chip.lockbytes = 1;
           chip.selftimed = 1;
           chip.parmode = 1;
           BLB01Box->Enabled = true;
           BLB02Box->Enabled = true;
           BLB11Box->Enabled = true;
           BLB12Box->Enabled = true;
           chip.fusebittype = 7;
           FuseLBit0->Caption = "CKSEL0";
           FuseLBit0->Enabled = true;
           FuseLBit1->Caption = "CKSEL1";
           FuseLBit1->Enabled = true;
           FuseLBit2->Caption = "CKSEL2";
           FuseLBit2->Enabled = true;
           FuseLBit3->Caption = "CKSEL3";
           FuseLBit3->Enabled = true;
           FuseLBit4->Caption = "SUT0";
           FuseLBit4->Enabled = true;
           FuseLBit5->Caption = "SUT1";
           FuseLBit5->Enabled = true;
           FuseLBit6->Caption = "CKOUT";
           FuseLBit6->Enabled = true;
           FuseLBit7->Caption = "CKDIV8";
           FuseLBit7->Enabled = true;
           FuseHBit0->Caption = "BOOTRST";
           FuseHBit0->Enabled = true;
           FuseHBit1->Caption = "BOOTSZ0";
           FuseHBit1->Enabled = true;
           FuseHBit2->Caption = "BOOTSZ1";
           FuseHBit2->Enabled = true;
           FuseHBit3->Caption = "EESAVE";
           FuseHBit3->Enabled = true;
           FuseHBit4->Caption = "WDTON";
   

⌨️ 快捷键说明

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