8-bit AVR Microcontrollers

Reading the Flash

The algorithm for reading the Flash memory is as follows (refer to Programming the Flash in this chapter for details on Command and Address loading):

  1. 1.Step A: Load Command “0000 0010”.
  2. 2.Step G: Load Address High Byte (0x00 - 0xFF).
  3. 3.Step B: Load Address Low Byte (0x00 - 0xFF).
  4. 4.Set OE to “0”, and BS1 to “0”. The Flash word low byte can now be read at DATA.
  5. 5.Set BS1 to “1”. The Flash word high byte can now be read at DATA.
  6. 6.Set OE to “1”.