Download Print this page

Atmel AVR AT90S2323 Manual page 44

8-bit microcontroller with 2k bytes of in-system programmable flash

Advertisement

Data Polling EEPROM
Data Polling Flash
AT90S/LS2323/2343
44
7. At the end of the programming session, RESET can be set high to commence
normal operation.
8. Power-off sequence (if needed):
Set CLOCK/XTAL1 to "0".
Set RESET to "1".
Turn V
power off.
CC
When a byte is being programmed into the EEPROM, reading the address location
being programmed will give the value P1 until the auto-erase is finished, and then the
value P2 will be given. See Table 18 for P1 and P2 values.
At the time the device is ready for a new EEPROM byte, the programmed value will read
correctly. This is used to determine when the next byte can be written. This will not work
for the values P1 and P2, so when programming these values, the user will have to wait
for at least the prescribed time t
for t
value. As a chip-erased device contains $FF in all locations, programming
WD_PROG
of addresses that are meant to contain $FF can be skipped. This does not apply if the
EEPROM is reprogrammed without first chip-erasing the device.
Table 18. Read Back Value during EEPROM Polling
Part
AT90S2323
AT90S2343
When a byte is being programmed into the Flash, reading the address location being
programmed will give the value $FF. At the time the device is ready for a new byte, the
programmed value will read correctly. This is used to determine when the next byte can
be written. This will not work for the value $FF, so when programming this value, the
user will have to wait for at least t
erased device contains $FF in all locations, programming of addresses that are meant
to contain $FF can be skipped.
Figure 36. Low-voltage Serial Downloading Waveforms
SERIAL DATA INPUT
PB0(MOSI)
SERIAL DATA OUTPUT
PB1(MISO)
SERIAL CLOCK INPUT
PB2(SCK)
before programming the next byte. See Table 22
WD_PROG
P1
$00
$00
before programming the next byte. As a chip-
WD_PROG
MSB
MSB
P2
$FF
$FF
LSB
LSB
1004D–09/01

Advertisement

loading

This manual is also suitable for:

Avr at90ls2323Avr at90ls2343Avr at90ss2343At90s2323At90ls2323At90s2343 ... Show all