Tema: Re: atmega16 fuses
Autorius: Laimis
Data: 2010-11-19 12:57:45
AMB rašė:
> Chip Erase tai iskart bandziau vos tik erora pamaciau, bet kaip supranti
> nesusijungia su atmega tai ir netrina.

The Chip Erase will erase the Flash and EEPROM(1) memories plus Lock 
bits. The Lock bits are not reset until the program memory has been 
completely erased. The Fuse bits are not changed. A Chip Erase must be 
performed before the Flash and/or the EEPROM are reprogrammed.
Note: 1. The EEPRPOM memory is preserved during chip erase if the EESAVE 
Fuse is programmed.
Load Command “Chip Erase”
1. Set XA1, XA0 to “10”. This enables command loading.
2. Set BS1 to “0”.
3. Set DATA to “1000 0000”. This is the command for Chip Erase.
4. Give XTAL1 a positive pulse. This loads the command.
5. Give WR a negative pulse. This starts the Chip Erase. RDY/BSY goes low.
6. Wait until RDY/BSY goes high before loading a new command.