AT90S8515

Manufacturer Part NumberAT90S8515
Description8-bit microcontroller with 8K bytes in-system programmable flash, 2.7-6.0V
ManufacturerATMEL Corporation
AT90S8515 datasheet
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
Page 81
82
Page 82
83
Page 83
84
Page 84
85
Page 85
86
Page 86
87
Page 87
88
Page 88
89
Page 89
90
Page 90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
Page 87/112:

Data Polling EEPROM

Download datasheet (3Mb)Embed
PrevNext

Data Polling EEPROM

Data Polling Flash
0841G–09/01
ing the third byte of the Programming Enable instruction. Whether the echo is
correct or not, all four bytes of the instruction must be transmitted. If the $53 did
not echo back, give SCK a positive pulse and issue a new Programming Enable
instruction. If the $53 is not seen within 32 attempts, there is no functional device
connected.
4. If a Chip Erase is performed (must be done to erase the Flash), wait t
after the instruction, give RESET a positive pulse and start over from step 2. See
Table 34 on page 89 for t
WD_ERASE
5. The Flash or EEPROM array is programmed one byte at a time by supplying the
address and data together with the appropriate Write instruction. An EEPROM
memory location is first automatically erased before new data is written. Use
Data Polling to detect when the next byte in the Flash or EEPROM can be writ-
ten. If polling is not used, wait t
See Table 35 on page 89 for t
data file(s) need to be programmed.
6. Any memory location can be verified by using the Read instruction that returns
the content at the selected address at the serial output MISO (PB6) pin.
7. At the end of the programming session, RESET can be set high to commence
normal operation.
8. Power-off sequence (if needed):
Set XTAL1 to “0” (if a crystal is not used).
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. See Table 31 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
WD_PROG
34 for t
value. As a chip-erased device contains $FF in all locations, program-
WD_PROG
ming 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 31. Read Back Value during EEPROM Polling
Part
AT90S8515
When a byte is being programmed into the Flash, reading the address location being
programmed will give the value $7F. 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 $7F, 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.
AT90S8515
value.
before transmitting the next instruction.
WD_PROG
value. In an erased device, no $FFs in the
WD_PROG
before programming the next byte. See Table
P1
$80
before programming the next byte. As a chip-
WD_PROG
WD_ERASE
P2
$7F
87