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

제품 코드
ATSTK500
다운로드
페이지 31
30
AVR061 
2525B–AVR–04/03
Writing the Fuse Bits
if (number of fuse bytes >= 1)
{
// Devices with selftimed SPI have another Programming 
// format for low fuses than those without
if (device supports self-timing programming)
UniversalCommand(0xAC, 0xA0, 0, &low_fuse_byte);
else
UniversalCommand(0xAC, (low_fuse_byte & 0x1F) | 0xA0, 0, &low_fuse_byte);
Sleep(50); // Wait for fuse write operation in device to complete
}
if (number of fuse bytes >= 2)
{
UniversalCommandNew(0xAC, 0xA8, 0, &high_fuse_byte);
Sleep(50); // Wait for fuse write operation in device to complete
}