ATMega8515 : module {
	IspEnterProgMode : adt {
		timeout : con 200;
		stabDelay : con 100;
	};

	IspLeaveProgMode : adt {
		preDelay : con 1;
	};
}


<STK500_2>
<IspEnterProgMode>
<timeout>
200</timeout>
<stabDelay>
100</stabDelay>
<cmdexeDelay>
25</cmdexeDelay>
<synchLoops>
32</synchLoops>
<byteDelay>
0</byteDelay>
<pollIndex>
3</pollIndex>
<pollValue>
0x53</pollValue>
</IspEnterProgMode>
<IspLeaveProgMode>
<preDelay>
1</preDelay>
<postDelay>
1</postDelay>
</IspLeaveProgMode>
<IspChipErase>
<eraseDelay>
10</eraseDelay>
<pollMethod>
0</pollMethod>
</IspChipErase>
<IspProgramFlash>
<mode>
0x21</mode>
<blockSize>
64</blockSize>
<delay>
10</delay>
<cmd1>
0x40</cmd1>
<cmd2>
0x4C</cmd2>
<cmd3>
0x20</cmd3>
<pollVal1>
0xFF</pollVal1>
<pollVal2>
0x00</pollVal2>
</IspProgramFlash>
<IspProgramEeprom>
<mode>
0x04</mode>
<blockSize>
128</blockSize>
<delay>
10</delay>
<cmd1>
0xC0</cmd1>
<cmd2>
0x00</cmd2>
<cmd3>
0xA0</cmd3>
<pollVal1>
0xFF</pollVal1>
<pollVal2>
0xFF</pollVal2>
</IspProgramEeprom>
<IspReadFlash>
<blockSize>
256</blockSize>
</IspReadFlash>
<IspReadEeprom>
<blockSize>
256</blockSize>
</IspReadEeprom>
<IspReadFuse>
<pollIndex>
4</pollIndex>
</IspReadFuse>
<IspReadLock>
<pollIndex>
4</pollIndex>
</IspReadLock>
<IspReadSign>
<pollIndex>
4</pollIndex>
</IspReadSign>
<IspReadOsccal>
<pollIndex>
4</pollIndex>
</IspReadOsccal>
<PPControlStack>
0x0E 0x1E 0x0F 0x1F 0x2E 0x3E 0x2F 0x3F 0x4E 0x5E 0x4F 0x5F 0x6E 0x7E 0x6F 0x7F
0x66 0x76 0x67 0x77 0x6A 0x7A 0x6B 0x7B 0xBE 0xFD 0x00 0x01 0x00 0x00 0x00
0x00</PPControlStack>
<PpEnterProgMode>
<stabDelay>
100</stabDelay>
<progModeDelay>
0</progModeDelay>
<latchCycles>
6</latchCycles>
<toggleVtg>
0</toggleVtg>
<powerOffDelay>
0</powerOffDelay>
<resetDelayMs>
0</resetDelayMs>
<resetDelayUs>
0</resetDelayUs>
</PpEnterProgMode>
<PpLeaveProgMode>
<stabDelay>
15</stabDelay>
<resetDelay>
15</resetDelay>
</PpLeaveProgMode>
<PpChipErase>
<pulseWidth>
0</pulseWidth>
<pollTimeout>
10</pollTimeout>
</PpChipErase>
<PpProgramFlash>
<pollTimeout>
5</pollTimeout>
<mode>
0x0D</mode>
<blockSize>
256</blockSize>
</PpProgramFlash>
<PpReadFlash>
<blockSize>
256</blockSize>
</PpReadFlash>
<PpProgramEeprom>
<pollTimeout>
5</pollTimeout>
<mode>
0x05</mode>
<blockSize>
256</blockSize>
</PpProgramEeprom>
<PpReadEeprom>
<blockSize>
256</blockSize>
</PpReadEeprom>
<PpProgramFuse>
<pulseWidth>
0</pulseWidth>
<pollTimeout>
5</pollTimeout>
</PpProgramFuse>
<PpProgramLock>
<pulseWidth>
0</pulseWidth>
<pollTimeout>
5</pollTimeout>
</PpProgramLock>
</STK500_2>
<AVRISPmkII/>