📄 programmer.cpp
字号:
{
FuseHBit5->Caption = "SPIEN";
FuseHBit5->Enabled = true;
}
FuseHBit6->Caption = "EESAVE";
FuseHBit6->Enabled = true;
FuseHBit7->Caption = "DWEN";
FuseHBit7->Enabled = true;
FuseEBit0->Caption = "SPMEN";
FuseEBit0->Enabled = true;
break;
case 8: // at90s1200
chip.flashsize = 1024;
chip.paged = false;
chip.WD_Flash = 20;
chip.eepromsize = 64;
chip.WD_EEPROM = 20;
chip.signature = 0x9001;
chip.lockbittype = 2;
chip.fusebittype = 16;
chip.stk500_dev = 0x33;
chip.fusebytes = 1;
chip.lockbytes = 1;
chip.selftimed = 0;
chip.parmode = 1;
if (PrgOpt->parprog)
{
FuseLBit0->Caption = "RCEN";
FuseLBit0->Enabled = true;
FuseLBit5->Caption = "SPIEN";
FuseLBit5->Enabled = true;
}
break;
case 9: // at90s2313
chip.flashsize = 2048;
chip.paged = false;
chip.WD_Flash = 9;
chip.eepromsize = 128;
chip.WD_EEPROM = 9;
chip.signature = 0x9101;
chip.lockbittype = 2;
chip.fusebittype = 16;
chip.stk500_dev = 0x40;
chip.fusebytes = 1;
chip.lockbytes = 1;
chip.selftimed = 0;
chip.parmode = 1;
if (PrgOpt->parprog)
{
FuseLBit0->Caption = "FSTRT";
FuseLBit0->Enabled = true;
FuseLBit5->Caption = "SPIEN";
FuseLBit5->Enabled = true;
}
break;
case 10: // at90s2323
chip.flashsize = 2048;
chip.paged = false;
chip.WD_Flash = 20;
chip.eepromsize = 128;
chip.WD_EEPROM = 20;
chip.signature = 0x9102;
chip.lockbittype = 1;
chip.fusebittype = 2;
chip.stk500_dev = 0x41;
chip.fusebytes = 1;
chip.lockbytes = 1;
chip.selftimed = 0;
chip.hvserial = true;
FuseLBit0->Caption = "FSTRT";
FuseLBit0->Enabled = true;
if (PrgOpt->parprog)
{
FuseLBit5->Caption = "SPIEN";
FuseLBit5->Enabled = true;
}
break;
case 11: // at90s2333
chip.flashsize = 2048;
chip.paged = false;
chip.WD_Flash = 20;
chip.eepromsize = 128;
chip.WD_EEPROM = 20;
chip.signature = 0x9105;
chip.lockbittype = 0;
chip.fusebittype = 3;
chip.stk500_dev = 0x42;
chip.fusebytes = 1;
chip.lockbytes = 1;
chip.selftimed = 0;
chip.parmode = 1;
FuseLBit0->Caption = "CKSEL0";
FuseLBit0->Enabled = true;
FuseLBit1->Caption = "CKSEL1";
FuseLBit1->Enabled = true;
FuseLBit2->Caption = "CKSEL2";
FuseLBit2->Enabled = true;
FuseLBit3->Caption = "BODEN";
FuseLBit3->Enabled = true;
FuseLBit4->Caption = "BODLEVEL";
FuseLBit4->Enabled = true;
if (PrgOpt->parprog)
{
FuseLBit5->Caption = "SPIEN";
FuseLBit5->Enabled = true;
}
break;
case 12: // at90s2343
chip.flashsize = 2048;
chip.paged = false;
chip.WD_Flash = 20;
chip.eepromsize = 128;
chip.WD_EEPROM = 20;
chip.signature = 0x9103;
chip.lockbittype = 1;
chip.fusebittype = 2;
chip.stk500_dev = 0x43;
chip.fusebytes = 1;
chip.lockbytes = 1;
chip.selftimed = 0;
chip.hvserial = true;
FuseLBit0->Caption = "RCEN";
FuseLBit0->Enabled = true;
if (PrgOpt->parprog)
{
FuseLBit5->Caption = "SPIEN";
FuseLBit5->Enabled = true;
}
break;
case 13: // at90s4414
chip.flashsize = 4096;
chip.paged = false;
chip.WD_Flash = 20;
chip.eepromsize = 256;
chip.WD_EEPROM = 20;
chip.signature = 0x9201;
chip.lockbittype = 2;
chip.fusebittype = 16;
chip.stk500_dev = 0x50;
chip.fusebytes = 1;
chip.lockbytes = 1;
chip.selftimed = 0;
chip.parmode = 1;
if (PrgOpt->parprog)
{
FuseLBit0->Caption = "FSTRT";
FuseLBit0->Enabled = true;
FuseLBit5->Caption = "SPIEN";
FuseLBit5->Enabled = true;
}
break;
case 14: // at90s4433
chip.flashsize = 4096;
chip.paged = false;
chip.WD_Flash = 20;
chip.eepromsize = 256;
chip.WD_EEPROM = 20;
chip.signature = 0x9203;
chip.lockbittype = 0;
chip.fusebittype = 3;
chip.stk500_dev = 0x51;
chip.fusebytes = 1;
chip.lockbytes = 1;
chip.selftimed = 0;
chip.parmode = 1;
FuseLBit0->Caption = "CKSEL0";
FuseLBit0->Enabled = true;
FuseLBit1->Caption = "CKSEL1";
FuseLBit1->Enabled = true;
FuseLBit2->Caption = "CKSEL2";
FuseLBit2->Enabled = true;
FuseLBit3->Caption = "BODEN";
FuseLBit3->Enabled = true;
FuseLBit4->Caption = "BODLEVEL";
FuseLBit4->Enabled = true;
if (PrgOpt->parprog)
{
FuseLBit5->Caption = "SPIEN";
FuseLBit5->Enabled = true;
}
break;
case 15: // at90s4434
chip.flashsize = 4096;
chip.paged = false;
chip.WD_Flash = 20;
chip.eepromsize = 256;
chip.WD_EEPROM = 20;
chip.signature = 0x9202;
chip.lockbittype = 1;
chip.fusebittype = 2;
chip.stk500_dev = 0x52;
chip.fusebytes = 1;
chip.lockbytes = 1;
chip.selftimed = 0;
chip.parmode = 1;
FuseLBit0->Caption = "FSTRT";
FuseLBit0->Enabled = true;
if (PrgOpt->parprog)
{
FuseLBit5->Caption = "SPIEN";
FuseLBit5->Enabled = true;
}
break;
case 16: // at90s8515
chip.flashsize = 8192;
chip.paged = false;
chip.WD_Flash = 20;
chip.eepromsize = 512;
chip.WD_EEPROM = 20;
chip.signature = 0x9301;
chip.lockbittype = 2;
chip.fusebittype = 16;
chip.stk500_dev = 0x60;
chip.fusebytes = 1;
chip.lockbytes = 1;
chip.selftimed = 0;
chip.parmode = 1;
if (PrgOpt->parprog)
{
FuseLBit0->Caption = "FSTRT";
FuseLBit0->Enabled = true;
FuseLBit5->Caption = "SPIEN";
FuseLBit5->Enabled = true;
}
break;
case 17: // at90s8534 (just parallel programmable)
chip.flashsize = 8192;
chip.paged = false;
chip.WD_Flash = 20;
chip.eepromsize = 512;
chip.WD_EEPROM = 20;
chip.signature = 0x9304;
chip.lockbittype = 1;
chip.fusebittype = 0; // at90s8534 has no Fuse bits
chip.stk500_dev = 0x62;
chip.fusebytes = 0;
chip.lockbytes = 1;
chip.selftimed = 0;
chip.parmode = 1;
chip.progtype = CHIP_PROGHV;
break;
case 18: // at90s8535
chip.flashsize = 8192;
chip.paged = false;
chip.WD_Flash = 20;
chip.eepromsize = 512;
chip.WD_EEPROM = 20;
chip.signature = 0x9303;
chip.lockbittype = 1;
chip.fusebittype = 2;
chip.stk500_dev = 0x61;
chip.fusebytes = 1;
chip.lockbytes = 1;
chip.selftimed = 0;
chip.parmode = 1;
FuseLBit0->Caption = "FSTRT";
FuseLBit0->Enabled = true;
if (PrgOpt->parprog)
{
FuseLBit5->Caption = "SPIEN";
FuseLBit5->Enabled = true;
}
break;
case 19: // at90can128
chip.flashsize = 131072;
chip.paged = true;
chip.pagesize = 256;
chip.WD_Flash = 5;
chip.eepromsize = 4096;
chip.WD_EEPROM = 9;
chip.signature = 0x9781;
chip.calibbytes = 1;
chip.lockbittype = 3;
chip.stk500_dev = 0xB3;
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 = 9;
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";
FuseHBit4->Enabled = true;
if (PrgOpt->parprog)
{
FuseHBit5->Caption = "SPIEN";
FuseHBit5->Enabled = true;
}
FuseHBit6->Caption = "JTAGEN";
FuseHBit6->Enabled = true;
FuseHBit7->Caption = "OCDEN";
FuseHBit7->Enabled = true;
FuseEBit1->Caption = "BODLEVEL0";
FuseEBit1->Enabled = true;
FuseEBit2->Caption = "BODLEVEL1";
FuseEBit2->Enabled = true;
FuseEBit3->Caption = "BODLEVEL2";
FuseEBit3->Enabled = true;
break;
case 20: // atmega8
chip.flashsize = 8192;
chip.paged = true;
chip.pagesize = 64;
chip.WD_Flash = 9;
chip.eepromsize = 512;
chip.WD_EEPROM = 9;
chip.signature = 0x9307;
chip.calibbytes = 4;
chip.lockbittype = 3;
chip.stk500_dev = 0x70;
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 = "WDTON";
FuseHBit6->Enabled = true;
FuseHBit7->Caption = "RSTDISBL";
FuseHBit7->Enabled = true;
break;
case 21: // atmega16
chip.flashsize = 16384;
chip.paged = true;
chip.pagesize = 128;
chip.WD_Flash = 9;
chip.eepromsize = 512;
chip.WD_EEPROM = 9;
chip.signature = 0x9403;
chip.calibbytes = 1;
chip.lockbittype = 3;
chip.stk500_dev = 0x82;
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";
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -