repository version 003:
-----------------------

Writing 8535 and m16 seems to be OK.





repository version 002:
-----------------------

1. Reading flash and eeprom with "avrdude -c butterfly" compared to sp12:

1.1  8535  ok

1.2  m16 ok

   sp12 -rpIf flash.hex -reIf ee.hex -rL -rF -rH -rX


2. Reading fuses/lock bits is difficult using avrdude (compared to sp12)

2.1 8535
     with sp12:
     11011111 are the fuse bits read from an AT90S8535
     11xccccx - no lock
     01xccccx - write protected
     00xccccx - read/write protected
     xx0ccccx - serial programming enabled
     xxxcccc0 - FSTRT reset delay, datasheet p20
     
     with avrdude (does only work with avr910, but not with butterfly):
     fuse 0x01
     lock 0xC0
     
2.1 m16
     with sp12:
     111111 are the lock bits read from an ATmega16
     xxxx11 - no lock
     xxxx10 - write protected
     xxxx00 - read/write protected
     BTLKxx - Boot lock, datasheet p254

     00011111 are the fuse bits read from an ATmega16
     0xxxxxxx - BODLEVEL 4V (default 2.7V)
     x0xxxxxx - brownout detection enabled
     xxSUxxxx - reset delay, datasheet p25
     xxxxCKSE - clock select, datasheet p23

     11010001 are the high fuse bits read from an ATmega16
     1xxxxxxx - Disable OCD (See note 4 p.260)
     x0xxxxxx - Enable JTAG
     xx0xxxxx - serial programming enabled
     xxx0xxxx - CKOPT max, datasheet p27
     xxxx0xxx - eeprom not erased
     xxxxxBZx - boot size, datasheet p252
     xxxxxxx0 - reset at boot loader, p255
     
     with avrdude (does only work with avr910, but not with butterfly):
     lfuse 0x1F
     hfuse 0xD1
     lock  0x3F
  


     
     
