Datasheet

34
AVR068
2591C-AVR-06/06
7 Command Sequence Example
This chapter contains examples of how to connect to the STK500 from the PC
Frontend and how to read signature from a device.
See chapter
5 Commands for the description of the commands and parameters.
7.1 Connect
The sequence of commands and parameters sent from AvrStudio to the STK500 in
order to connect is listed below.
CMD_SIGN_ON
CMD_GET_PARAMETER, PARAM_TOPCARD_DETECT
CMD_GET_PARAMETER, PARAM_HW_VER
CMD_GET_PARAMETER, PARAM_SW_MAJOR
CMD_GET_PARAMETER, PARAM_SW_MINOR
7.2 Read Signature
7.2.1 In System Programming
The sequence of commands and parameters sent from AvrStudio to the STK500 in
order to read the device signature through ISP is listed below. Note that one already
have to be connected to do this.
CMD_GET_PARAMETER, PARAM_TOPCARD_DETECT
CMD_GET_PARAMETER, PARAM_CONTROLLER_INIT
CMD_SET_PARAMETER, PARAM_CONTROLLER_INIT
CMD_SET_PARAMETER, PARAM_RESET_POLARITY
CMD_ENTER_PROGMODE_ISP
CMD_READ_SIGNATURE_ISP
CMD_READ_SIGNATURE_ISP
CMD_READ_SIGNATURE_ISP
CMD_LEAVE_PROGMODE_ISP