Data Sheet (ATSTK500)Table of Contents1 Introduction12 Communication interface23 Message Format24 Protocol Layer State Table25 Commands45.1 General Commands45.1.1 CMD_SIGN_ON45.1.2 CMD_SET_PARAMETER55.1.3 CMD_GET_PARAMETER55.1.4 CMD_OSCCAL65.1.5 CMD_LOAD_ADDRESS65.1.6 CMD_FIRMWARE_UPGRADE75.2 ISP Programming Commands75.2.1 CMD_ENTER_PROGMODE_ISP75.2.2 CMD_LEAVE_PROGMODE_ISP95.2.3 CMD_CHIP_ERASE_ISP95.2.4 CMD_PROGRAM_FLASH_ISP105.2.4.1 Mode byte description115.2.5 CMD_READ_FLASH_ISP125.2.6 CMD_PROGRAM_EEPROM_ISP125.2.7 CMD_READ_EEPROM_ISP125.2.8 CMD_PROGRAM_FUSE_ISP135.2.9 CMD_READ_FUSE_ISP135.2.10 CMD_PROGRAM_LOCK_ISP145.2.11 CMD_READ_LOCK_ISP145.2.12 CMD_READ_SIGNATURE_ISP145.2.13 CMD_READ_OSCCAL_ISP145.2.14 CMD_SPI_MULTI145.3 Parallel Programming Mode Commands155.3.1 CMD_ENTER_PROGMODE_PP155.3.2 CMD_LEAVE_PROGMODE_PP165.3.3 CMD_CHIP_ERASE_PP165.3.4 CMD_PROGRAM_FLASH_PP175.3.4.1 Mode byte description185.3.5 CMD_READ_FLASH_PP185.3.6 CMD_PROGRAM_EEPROM_PP195.3.7 CMD_READ_EEPROM_PP195.3.8 CMD_PROGRAM_FUSE_PP195.3.9 CMD_READ_FUSE_PP205.3.10 CMD_PROGRAM_LOCK_PP205.3.11 CMD_READ_LOCK_PP205.3.12 CMD_READ_SIGNATURE_PP205.3.13 CMD_READ_OSCCAL_PP205.3.14 CMD_SET_CONTROL_STACK215.4 High Voltage Serial Programming Commands215.4.1 CMD_ENTER_PROGMODE_HVSP215.4.2 CMD_LEAVE_PROGMODE_HVSP225.4.3 CMD_CHIP_ERASE_HVSP235.4.4 CMD_PROGRAM_FLASH_HVSP235.4.4.1 Mode byte description245.4.5 CMD_READ_FLASH_HVSP245.4.6 CMD_PROGRAM_EEPROM_HVSP255.4.7 CMD_READ_EEPROM_HVSP255.4.8 CMD_PROGRAM_FUSE_HVSP255.4.9 CMD_READ_FUSE_HVSP255.4.10 CMD_PROGRAM_LOCK_HVSP265.4.11 CMD_READ_LOCK_HVSP265.4.12 CMD_READ_SIGNATURE_HVSP265.4.13 CMD_READ_OSCCAL_HVSP265.5 Special answers275.5.1 ANSWER_CKSUM_ERROR275.6 Return values275.6.1 Success275.6.2 Warnings275.6.3 Errors275.7 Parameters285.7.1 PARAM_BUILD_NUMBER_LOW285.7.2 PARAM_BUILD_NUMBER_HIGH285.7.3 PARAM_HW_VER285.7.4 PARAM_SW_MAJOR285.7.5 PARAM_SW_MINOR285.7.6 PARAM_VTARGET295.7.7 PARAM_VADJUST295.7.8 PARAM_OSC_PSCALE295.7.9 PARAM_OSC_CMATCH305.7.10 PARAM_SCK_DURATION305.7.11 PARAM_TOPCARD_DETECT325.7.12 PARAM_DATA325.7.13 PARAM_RESET_POLARITY325.7.14 PARAM_CONTROLLER_INIT326 XML Parameter Values337 Command Sequence Example347.1 Connect347.2 Read Signature347.2.1 In System Programming347.2.2 High Voltage Programming357.3 STK500 Communication Logging35Size: 158 KBPages: 37Language: EnglishOpen manual
Data Sheet (ATSTK500)Table of ContentsIntroduction1Response Definitions2OK2Response2Failed2Response2Insync2Response2Nosync2Response2Unknown2Response2Nodevice2Response2Command Definitions3Check if Starterkit Present3Command3Command Value3Response3Get Synchronization3Command3Command Value3Response3Get Parameter Value4Command4Command Value4Response4Set Parameter Value4Command4Command Value4Response4Set Device Programming Parameters5Command5Command Value5Response5Set Extended Device Programming Parameters6Command6Command Value6Response6Enter Program Mode7Command7Command Value7Response7Leave Program Mode7Command7Command Value7Response7Chip Erase7Command7Command Value7Response7Check for Address Autoincrement8Command8Command Value8Response8Load Address8Command8Command Value8Response8Program Flash Memory8Command8Command Value8Response8Program Data Memory9Command9Command Value9Response9Program Fuse Bits9Command9Command Value9Response9Program Fuse Bits Extended10Command10Command Value10Response10Program Lock Bits10Command10Command Value10Response10Program Page11Command11Command Value11Response11Read Flash Memory11Command11Command Value11Response11Read Data Memory12Command12Command Value12Response12Read Fuse Bits12Command12Command Value12Response12Read Fuse Bits Extended13Command13Command Value13Response13Read Lock Bits13Command13Command Value13Response13Read Page14Command14Command Value14Response14Read Signature Bytes14Command14Command Value14Response14Read Oscillator Calibration Byte15Command15Command Value15Response15Read Oscillator Calibration Byte Extended15Command15Command Value15Response15Universal Command16Command16Command Value16Response16Extended Universal Command16Command16Command Value16Response16Parameter Definitions17Hardware Version17Parameter17Parameter Value17Software Version Major17Parameter17Parameter Value17Software Version Minor17Parameter17Parameter Value17Status LED18Parameter18Parameter Value18Target Voltage (VTARGET)18Parameter18Parameter Value18Adjustable Voltage (AREF)18Parameter18Parameter Value18Oscillator Timer Prescaler Value19Parameter19Parameter Value19Oscillator Timer Compare Match Value19Parameter19Parameter Value19ISP SCK Duration19Parameter19Parameter Value19Buffer Size20Parameter20Parameter Value20Topcard Detect20Parameter20Parameter Value20Appendix21Reserved Commands21Device Codes22Signature Bytes23Lock Bits24Fuse Bits, Low Byte25Fuse Bits, High Byte26Fuse Bits, Extended Byte27Devices Combining the Fuse and Lock Bits on Readback28Reading and Writing the Fuse and Lock Bits in Serial Mode28Reading the Lock Bits28Writing the Lock Bits29Reading the Fuse Bits29Writing the Fuse Bits30Size: 802 KBPages: 31Language: EnglishOpen manual
Data Sheet (ATSTK500)Table of ContentsSection 15Introduction51.1 Starter Kit Features51.2 Device Support6Section 27Getting Started72.1 Unpacking the System72.2 System Requirements72.3 Quick Start82.3.1 Connecting the Hardware92.3.2 Programming the Target AVR Device9Section 311Hardware Description113.1 Description of User LEDs113.2 Description of User Switches123.3 Connection of LEDs and Switches133.4 Port Connectors133.5 Description of User RS-232 Interface153.6 Description of DataFlash Pins163.7 Target Socket Section183.7.1 ISP Programming193.7.2 High-voltage Programming213.7.2.1 Parallel High-voltage Programming223.7.2.2 Serial High-voltage Programming243.8 Jumper Settings253.8.1 Target VCC Settings, VTARGET263.8.2 Analog Reference Voltage, AREF273.8.3 Reset Settings, RESET283.8.4 Clock Settings, XTAL1 and OSCSEL303.8.5 BSEL2 Jumper323.8.6 PJUMP Jumpers323.9 Expansion Connectors333.9.1 Signal Descriptions353.10 Prog Ctrl and Prog Data Headers353.11 Miscellaneous363.11.1 RESET Push Button363.11.2 PROGRAM Push Button373.11.3 Main Power LED373.11.4 Target Power LED373.11.5 Status LED37Section 439Installing AVR Studio39Section 541Using AVR Studio415.1 Windows Software415.2 Starting the Windows Software415.2.1 Starting STK500415.3 STK500 User Interface425.3.1 “Program” Settings425.3.1.1 Device425.3.1.2 Programming Mode425.3.1.3 Flash425.3.1.4 EEPROM435.3.2 “Fuses” Settings435.3.3 “LockBits” Settings445.3.4 “Advanced” Settings445.3.4.1 Signature Bytes445.3.4.2 Oscillator Calibration Byte455.3.4.3 Reading Oscillator Calibration Byte455.3.4.4 Writing Oscillator Calibration Byte455.3.5 “Board” Settings455.3.5.1 VTARGET465.3.5.2 AREF465.3.5.3 Oscillator475.3.6 “Auto” Settings475.3.6.1 Setting Up the System for Autoprogramming485.3.6.2 Logging the Autoprogramming to a File485.3.7 History Window485.4 Command Line Software495.5 Parameters49Section 651In-System Programming of an ExternalTarget System51Section 753Troubleshooting Guide53Section 855Technical Support55Section 957Example Applications579.1 Using LEDs and Switches57Section 1059Appendix A59Size: 2.96 MBPages: 61Language: EnglishOpen manual