Atmel ATSTK500 500 Starter kit and development system. ATSTK500 ATSTK500 데이터 시트

제품 코드
ATSTK500
다운로드
페이지 37
 
AVR068
 
 
5
2591C-AVR-06/06 
5.1.2 CMD_SET_PARAMETER 
The host can set a multitude of parameters in the STK500. See 5.7 Parameters for a 
description of each parameter. All parameters are one-byte values. 
Table 5-4. Command format 
Field  
Size 
Values 
Description 
Command ID 
1 byte 
CMD_SET_PARAMETER 
Command id 
Parameter ID 
1 byte 
 
Which parameter to set 
Value 
1 byte 
 
The parameter’s new value 
 
Table 5-5. Answer format 
Field  
Size 
Values 
Description 
Answer ID 
1 byte 
CMD_SET_PARAMETER 
Answer id 
Status 1 
byte 
STATUS_CMD_OK or 
STATUS_CMD_FAILED 
A status value indicating the 
result of the operation 
5.1.3 CMD_GET_PARAMETER 
The host can also read different parameters from the STK500.  
Table 5-6. Command format 
Field  
Size 
Values 
Description 
Command ID 
1 byte 
CMD_GET_PARAMETER 
Command id 
Parameter ID 
1 byte 
 
Which parameter to get 
 
Table 5-7. Answer format if command succeeded 
Field  
Size 
Values 
Description 
Answer ID 
1 byte 
CMD_GET_PARAMETER 
Answer id 
Status 1 
byte 
STATUS_CMD_OK 
A status value indicating 
success 
Parameter value 
1 byte 
 
The parameter value 
 
Table 5-8. Answer format if command fails 
Field  
Size 
Values 
Description 
Answer ID 
1 byte 
CMD_GET_PARAMETER 
Answer id 
Status 
1 byte 
STATUS_CMD_ FAILED 
A status value indicating that 
the operation failed.