paul@35 | 1 | Introduction
|
paul@35 | 2 | ------------
|
paul@35 | 3 |
|
paul@35 | 4 | The ArduinoAm29F010 project provides software and a circuit to program
|
paul@35 | 5 | Am29F010 flash memory devices using an Arduino board (tested with the Arduino
|
paul@35 | 6 | Duemilanove, but likely to work with the Arduino Uno and directly-related
|
paul@35 | 7 | boards). In addition, guidance about the use of such flash memory devices is
|
paul@35 | 8 | provided for use with microcomputer systems, such as the Acorn Electron.
|
paul@35 | 9 |
|
paul@6 | 10 | The Am29F010-90PC product has been used to test the software and hardware
|
paul@35 | 11 | design described here. The PDIP variant of the device, as opposed to the
|
paul@35 | 12 | various other packages employed in the product range, is the variant most
|
paul@35 | 13 | suitable for use with the Arduino.
|
paul@35 | 14 |
|
paul@35 | 15 | Contact, Copyright and Licence Information
|
paul@35 | 16 | ------------------------------------------
|
paul@35 | 17 |
|
paul@35 | 18 | The author can be contacted at the following e-mail address:
|
paul@35 | 19 |
|
paul@35 | 20 | paul@boddie.org.uk
|
paul@35 | 21 |
|
paul@35 | 22 | Copyright and licence information can be found in the docs directory - see
|
paul@35 | 23 | docs/COPYING.txt and docs/gpl-3.0.txt for more information.
|
paul@35 | 24 |
|
paul@35 | 25 |
|
paul@6 | 26 |
|
paul@25 | 27 | Using the Software
|
paul@25 | 28 | ==================
|
paul@25 | 29 |
|
paul@25 | 30 | First of all, to use the Arduino-based programming solution, the Arduino needs
|
paul@25 | 31 | to have a program transferred to it. The program is compiled using the
|
paul@25 | 32 | Makefile provided, using the simple command...
|
paul@25 | 33 |
|
paul@25 | 34 | make
|
paul@25 | 35 |
|
paul@25 | 36 | To upload the program, the "upload" target is used as follows:
|
paul@25 | 37 |
|
paul@25 | 38 | make upload
|
paul@25 | 39 |
|
paul@25 | 40 | It is likely that this will fail unless appropriate permissions are available
|
paul@25 | 41 | on the device through which the Arduino is accessed on the host machine. Thus,
|
paul@25 | 42 | a privileged invocation is likely to be necessary:
|
paul@25 | 43 |
|
paul@25 | 44 | sudo make upload
|
paul@25 | 45 |
|
paul@26 | 46 | Testing the Program
|
paul@26 | 47 | -------------------
|
paul@26 | 48 |
|
paul@25 | 49 | With the program uploaded, it should now be possible to communicate with the
|
paul@25 | 50 | Arduino. Unless the programming circuit has been constructed, however, there
|
paul@25 | 51 | will not be any effect of communicating with the Arduino, other than to check
|
paul@25 | 52 | that the program is operational. Running the upload.py script as follows will
|
paul@25 | 53 | permit such a test:
|
paul@25 | 54 |
|
paul@25 | 55 | ./upload.py -i
|
paul@25 | 56 |
|
paul@25 | 57 | Again, it is likely that this will need to be run in a privileged fashion as
|
paul@25 | 58 | follows:
|
paul@25 | 59 |
|
paul@25 | 60 | sudo ./upload.py -i
|
paul@25 | 61 |
|
paul@25 | 62 | The script should act as a terminal, showing a ">" prompt that can accept
|
paul@25 | 63 | various commands. Merely getting the prompt should be enough of an indication
|
paul@25 | 64 | that the program is functioning on the device.
|
paul@25 | 65 |
|
paul@26 | 66 | Issuing read commands permits the testing of addresses in the device:
|
paul@26 | 67 |
|
paul@28 | 68 | location sector
|
paul@32 | 69 | R00000 0x0000 0 (the first location in the device)
|
paul@32 | 70 | R07fff 0x7fff 1 (the final location in sector 1)
|
paul@28 | 71 | R10000 0x10000 4 (the first location in sector 4)
|
paul@28 | 72 | R1ffff 0x1ffff 7 (the final location in the device)
|
paul@26 | 73 |
|
paul@26 | 74 | Uploading and Testing Images
|
paul@26 | 75 | ----------------------------
|
paul@26 | 76 |
|
paul@25 | 77 | Once the programming circuit has been constructed (see "Arduino Interfacing"
|
paul@25 | 78 | below), the upload.py script can be used to upload data to the Am29F010
|
paul@25 | 79 | device. For example:
|
paul@25 | 80 |
|
paul@25 | 81 | sudo ./upload.py jungle.rom
|
paul@25 | 82 |
|
paul@25 | 83 | This will take jungle.rom and write it to the first sector of the Am29F010. To
|
paul@25 | 84 | verify the operation, the following command can be used:
|
paul@25 | 85 |
|
paul@25 | 86 | sudo ./upload.py -v jungle.rom
|
paul@25 | 87 |
|
paul@25 | 88 | To write to other sectors, an option can be specified. For example:
|
paul@25 | 89 |
|
paul@25 | 90 | sudo ./upload.py -s 1 junglecode.rom
|
paul@25 | 91 |
|
paul@25 | 92 | Again, the operation can be verified as follows:
|
paul@25 | 93 |
|
paul@25 | 94 | sudo ./upload.py -s 1 -v junglecode.rom
|
paul@25 | 95 |
|
paul@25 | 96 | Note that the -s option must appear first.
|
paul@25 | 97 |
|
paul@25 | 98 | The upload.py script can accept multiple files and will write each of them to
|
paul@25 | 99 | consecutive sectors. However, it can be more prudent to write files
|
paul@25 | 100 | individually, especially if the circuit is behaving in a less than completely
|
paul@25 | 101 | reliable fashion.
|
paul@25 | 102 |
|
paul@26 | 103 | A Note on Sectors
|
paul@26 | 104 | -----------------
|
paul@26 | 105 |
|
paul@26 | 106 | Each sector is 16 kilobytes long, which corresponds to a 14-bit address range
|
paul@28 | 107 | (0x0000 to 0x3FFF). The Arduino interface described below supports 17-bit
|
paul@28 | 108 | addressing (A0...A16), permitting access to eight sectors (at 0x0000, 0x4000,
|
paul@28 | 109 | 0x8000, 0xC000, 0x10000, 0x14000, 0x18000 and 0x1C000). The simple mapping from
|
paul@28 | 110 | a ROM cartridge to the device leaves A16 grounded and thus unable to access the
|
paul@28 | 111 | upper four sectors in the device. However, A16 could be connected to VCC to
|
paul@28 | 112 | access the upper four sectors.
|
paul@26 | 113 |
|
paul@34 | 114 |
|
paul@34 | 115 |
|
paul@34 | 116 | Making a Printed Circuit Board
|
paul@34 | 117 | ==============================
|
paul@34 | 118 |
|
paul@34 | 119 | The pcb directory contains resources for making a PCB with the Fritzing
|
paul@34 | 120 | software. In order to track changes in these resources, they have been
|
paul@34 | 121 | unpacked from a file saved by Fritzing, and so must be packed together into
|
paul@34 | 122 | such a file before being given to Fritzing. This can be done using a script
|
paul@34 | 123 | provided:
|
paul@34 | 124 |
|
paul@34 | 125 | ./make_pcb.sh
|
paul@34 | 126 |
|
paul@34 | 127 | This will produce a file called ArduinoAm29F010-arduinouno.fzz containing the
|
paul@34 | 128 | resources in a zip archive as Fritzing expects.
|
paul@34 | 129 |
|
paul@35 | 130 | This PCB is featured as a project on the Fritzing Web site:
|
paul@35 | 131 |
|
paul@35 | 132 | http://fritzing.org/projects/arduino-am29f010-programming-shield
|
paul@35 | 133 |
|
paul@34 | 134 |
|
paul@34 | 135 |
|
paul@17 | 136 | Device Compatibility
|
paul@17 | 137 | ====================
|
paul@17 | 138 |
|
paul@17 | 139 | For use with an Acorn Electron ROM cartridge or other board providing a ROM
|
paul@17 | 140 | socket, the compatibility of the Am29F010 needs to be assessed in the context
|
paul@17 | 141 | of the ROM sockets likely to be provided.
|
paul@17 | 142 |
|
paul@17 | 143 | Original ROM Pinout Am29F010 Pinout
|
paul@17 | 144 | ------------------- ---------------
|
paul@17 | 145 |
|
paul@17 | 146 | 1 \/ 32 VCC
|
paul@17 | 147 | A16 2 31 WE#
|
paul@17 | 148 | 1 \/ 28 VCC A15 3 30
|
paul@17 | 149 | A12 2 27 A14 A12 4 29 A14
|
paul@17 | 150 | A7 3 26 A13 A7 5 28 A13
|
paul@17 | 151 | A6 4 25 A8 A6 6 27 A8
|
paul@17 | 152 | A5 5 24 A9 A5 7 26 A9
|
paul@17 | 153 | A4 6 23 A11 A4 8 25 A11
|
paul@17 | 154 | A3 7 22 OE# A3 9 24 OE#
|
paul@17 | 155 | A2 8 21 A10 A2 10 23 A10
|
paul@17 | 156 | A1 9 20 CS# A1 11 22 CE#
|
paul@17 | 157 | A0 10 19 D7 A0 12 21 DQ7
|
paul@17 | 158 | D0 11 18 D6 DQ0 13 20 DQ6
|
paul@17 | 159 | D1 12 17 D5 DQ1 14 19 DQ5
|
paul@17 | 160 | D2 13 16 D4 DQ2 15 18 DQ4
|
paul@17 | 161 | GND 14 15 D3 GND/VSS 16 17 DQ3
|
paul@17 | 162 |
|
paul@17 | 163 | Superimposing the Am29F010 onto a ROM socket would provide compatibility for
|
paul@17 | 164 | all pins from A12 to GND/VSS and from A14 to D3/DQ3.
|
paul@17 | 165 |
|
paul@17 | 166 | Pin 1 in a ROM socket would correspond to A15 but is not necessarily
|
paul@17 | 167 | connected, nor, perhaps, is A14 since only 14 bits are required to address 16
|
paul@17 | 168 | kilobytes, although there may be 32 kilobyte sockets connecting A14 and using
|
paul@20 | 169 | 15 bits to address 32K. A16 and A15 would probably be connected to ground to
|
paul@20 | 170 | ensure correct operation, but could also be wired to a selection mechanism so
|
paul@20 | 171 | that the entire contents of the flash memory might be exposed.
|
paul@17 | 172 |
|
paul@17 | 173 | Pin 28 is a ROM socket would provide power, but the corresponding pin 30 on an
|
paul@17 | 174 | Am29F010 is not connected. Thus pin 30 would need routing to pin 32 for the
|
paul@17 | 175 | flash device socket.
|
paul@17 | 176 |
|
paul@17 | 177 | Pin 31 for the Am29F010 would need to be asserted. Thus pin 30 might also be
|
paul@17 | 178 | routed to pin 31, so that the device would remain read-only at all times.
|
paul@17 | 179 |
|
paul@20 | 180 | Dual ROM Adapter Usage
|
paul@20 | 181 | ======================
|
paul@20 | 182 |
|
paul@20 | 183 | A single Am29F010 device could be wired to two ROM sockets in order to provide
|
paul@20 | 184 | data to both. The above wiring guide would be employed, with connections from
|
paul@20 | 185 | both sockets being connected to the Am29F010, but additional logic would be
|
paul@20 | 186 | required for the CS# signals originating from the sockets in order to expose
|
paul@20 | 187 | the appropriate region of flash memory. ROM #1 would be served by a "lower"
|
paul@20 | 188 | 16K region; ROM #2 would be served by an "upper" 16K region; A14 would be used
|
paul@20 | 189 | to switch between these regions.
|
paul@20 | 190 |
|
paul@20 | 191 | When ROM #1's CS# signal is low, an attempt to read from ROM #1 would be
|
paul@20 | 192 | occurring, and thus A14 would be held low. And when ROM #2's CS# signal is
|
paul@20 | 193 | low, an attempt to read from ROM #2 would be occurring, and thus A14 would be
|
paul@20 | 194 | held high.
|
paul@20 | 195 |
|
paul@22 | 196 | Meanwhile, the CS# signal for the two ROM sockets would need to be combined to
|
paul@22 | 197 | produce a resultant CE# signal for the Am29F010.
|
paul@22 | 198 |
|
paul@22 | 199 | ROM #1 CS# ROM #2 CS# Am29F010 A14 Am29F010 CE#
|
paul@22 | 200 | ---------- ---------- ------------ ------------
|
paul@22 | 201 | 0 0 Not defined Not defined
|
paul@22 | 202 | 0 1 0 0
|
paul@22 | 203 | 1 0 1 0
|
paul@22 | 204 | 1 1 Not defined 1
|
paul@20 | 205 |
|
paul@22 | 206 | It might therefore be possible to connect A14 to ROM #1's CS# signal. And the
|
paul@22 | 207 | resultant CE# signal could be the product of an AND gate:
|
paul@22 | 208 |
|
paul@22 | 209 | Am29F010 CE# = ROM #1 CS# AND ROM #2 CS#
|
paul@22 | 210 |
|
paul@25 | 211 | Wiring Details
|
paul@25 | 212 | --------------
|
paul@25 | 213 |
|
paul@22 | 214 | ROM #1 ROM #2 74HC08 Am29F010
|
paul@22 | 215 | ------ ------ ------ --------
|
paul@22 | 216 | CS# 1A A14
|
paul@22 | 217 | CS# 1B
|
paul@22 | 218 | 1Y CE#
|
paul@25 | 219 | OE# OE#
|
paul@0 | 220 |
|
paul@25 | 221 | ROM (Common) 74HC08 Am29F010
|
paul@25 | 222 | ------------ ------ --------
|
paul@25 | 223 | VCC VCC
|
paul@25 | 224 | GND GND
|
paul@25 | 225 | VCC VCC
|
paul@25 | 226 | VCC WE#
|
paul@25 | 227 | D0 DQ0
|
paul@25 | 228 | D1 DQ1
|
paul@25 | 229 | D2 DQ2
|
paul@25 | 230 | D3 DQ3
|
paul@25 | 231 | D4 DQ4
|
paul@25 | 232 | D5 DQ5
|
paul@25 | 233 | D6 DQ6
|
paul@25 | 234 | D7 DQ7
|
paul@25 | 235 | A0 A0
|
paul@25 | 236 | A1 A1
|
paul@25 | 237 | A2 A2
|
paul@25 | 238 | A3 A3
|
paul@25 | 239 | A4 A4
|
paul@25 | 240 | A5 A5
|
paul@25 | 241 | A6 A6
|
paul@25 | 242 | A7 A7
|
paul@25 | 243 | A8 A8
|
paul@25 | 244 | A9 A9
|
paul@25 | 245 | A10 A10
|
paul@25 | 246 | A11 A11
|
paul@25 | 247 | A12 A12
|
paul@25 | 248 | A13 A13
|
paul@25 | 249 | GND A15
|
paul@25 | 250 | GND A16
|
paul@25 | 251 | GND GND
|
paul@0 | 252 |
|
paul@26 | 253 | Note that A15 and A16 are left grounded, effectively exposing only the first
|
paul@26 | 254 | two sectors of the device. By connecting either or both of these to VCC, other
|
paul@26 | 255 | pairs of sectors can be manually selected. A mechanism could also be devised
|
paul@26 | 256 | to allow selection using logic, but this is not explored here.
|
paul@26 | 257 |
|
paul@34 | 258 |
|
paul@34 | 259 |
|
paul@0 | 260 | Arduino Interfacing
|
paul@0 | 261 | ===================
|
paul@0 | 262 |
|
paul@28 | 263 | Arduino can employ at most 14 digital pins (plus 5 switchable analogue pins),
|
paul@28 | 264 | whereas the Am29F010B requires 17 address pins, 8 data pins, plus 3 control
|
paul@28 | 265 | pins to be utilised.
|
paul@0 | 266 |
|
paul@0 | 267 | One solution is to map the 3 control pins directly to the Arduino, then to
|
paul@28 | 268 | channel address and data via 8 common pins to latches, and then employ two
|
paul@28 | 269 | remaining pins to control the latches. When neither latch is selected, the
|
paul@28 | 270 | data pins will be used to read or write data from the flash memory.
|
paul@0 | 271 |
|
paul@28 | 272 | In this scheme, A16 must be directly controlled by an additional pin, separate
|
paul@28 | 273 | from the latch-based mechanism. As a result, only 14 pins are needed on the
|
paul@28 | 274 | Arduino.
|
paul@0 | 275 |
|
paul@21 | 276 | 74HC273 Pinout
|
paul@21 | 277 | --------------
|
paul@21 | 278 |
|
paul@21 | 279 | MR# 1 \/ 20 VCC
|
paul@21 | 280 | Q0 2 19 Q7
|
paul@21 | 281 | D0 3 18 D7
|
paul@21 | 282 | D1 4 17 D6
|
paul@21 | 283 | Q1 5 16 Q6
|
paul@21 | 284 | Q2 6 15 Q5
|
paul@21 | 285 | D2 7 14 D5
|
paul@21 | 286 | D3 8 13 D4
|
paul@21 | 287 | Q3 9 12 Q4
|
paul@21 | 288 | GND 10 11 CP
|
paul@21 | 289 |
|
paul@3 | 290 | Arduino 74HC273 #1 74HC273 #2 Am29F010
|
paul@3 | 291 | ------- ---------- ---------- --------
|
paul@5 | 292 | A5 CE#
|
paul@14 | 293 | A4 OE#
|
paul@14 | 294 | A3 WE#
|
paul@14 | 295 | 2 CP
|
paul@14 | 296 | 3 CP
|
paul@27 | 297 | 4 D3 D3 DQ3
|
paul@27 | 298 | 5 D2 D2 DQ2
|
paul@27 | 299 | 6 D1 D1 DQ1
|
paul@27 | 300 | 7 D0 D0 DQ0
|
paul@17 | 301 | 8 D4 D4 DQ4
|
paul@17 | 302 | 9 D5 D5 DQ5
|
paul@17 | 303 | 10 D6 D6 DQ6
|
paul@17 | 304 | 11 D7 D7 DQ7
|
paul@2 | 305 | Q0 A0
|
paul@2 | 306 | Q1 A1
|
paul@2 | 307 | Q2 A2
|
paul@2 | 308 | Q3 A3
|
paul@2 | 309 | Q4 A4
|
paul@2 | 310 | Q5 A5
|
paul@2 | 311 | Q6 A6
|
paul@2 | 312 | Q7 A7
|
paul@2 | 313 | Q0 A8
|
paul@2 | 314 | Q1 A9
|
paul@2 | 315 | Q2 A10
|
paul@2 | 316 | Q3 A11
|
paul@2 | 317 | Q4 A12
|
paul@2 | 318 | Q5 A13
|
paul@2 | 319 | Q6 A14
|
paul@2 | 320 | Q7 A15
|
paul@28 | 321 | A2 A16
|
paul@17 | 322 | 5V MR# MR#
|
paul@2 | 323 | 5V VCC VCC VCC
|
paul@2 | 324 | GND GND GND VSS
|
paul@0 | 325 |
|
paul@0 | 326 | Set Address
|
paul@0 | 327 | -----------
|
paul@0 | 328 |
|
paul@2 | 329 | 74HC273 #1 CP = 1; 74HC273 #2 CP = 0
|
paul@2 | 330 | 74HC273 #1 D[7...0] = A[7...0]
|
paul@2 | 331 | 74HC273 #1 CP = 0; 74HC273 #2 CP = 1
|
paul@2 | 332 | 74HC273 #2 D[7...0] = A[15...8]
|
paul@28 | 333 | Am29F010 A16 = A[16]
|
paul@0 | 334 |
|
paul@0 | 335 | Write Data
|
paul@0 | 336 | ----------
|
paul@0 | 337 |
|
paul@0 | 338 | Configure pins as D[7...0]
|
paul@2 | 339 | WE# = 0
|
paul@2 | 340 | 74HC273 #1 CP = 0; 74HC273 #2 CP = 0
|
paul@2 | 341 | 74HC273 #3 D[7...0] = D[7...0]
|
paul@2 | 342 | WE# = 1
|
paul@0 | 343 |
|
paul@0 | 344 | Read Data
|
paul@0 | 345 | ---------
|
paul@0 | 346 |
|
paul@0 | 347 | Configure pins as Q[7...0]
|
paul@2 | 348 | OE# = 0
|
paul@2 | 349 | 74HC273 #1 CP = 1; 74HC273 #2 CP = 0
|
paul@2 | 350 | Q[7...0] = 74HC273 #0 Q[7...0]
|
paul@2 | 351 | OE# = 1
|
paul@25 | 352 |
|
paul@25 | 353 | Pins
|
paul@25 | 354 | ====
|
paul@25 | 355 |
|
paul@25 | 356 | A0-A16 17-bit addressing
|
paul@25 | 357 | DQ0-DQ7 8-bit data transfer
|
paul@25 | 358 | CE# chip enable
|
paul@25 | 359 | OE# output enable
|
paul@25 | 360 | WE# write enable
|
paul@25 | 361 | VCC 5V
|
paul@25 | 362 | VSS ground
|
paul@25 | 363 | NC (not connected)
|
paul@25 | 364 |
|
paul@34 | 365 |
|
paul@34 | 366 |
|
paul@34 | 367 | Technical Notes
|
paul@34 | 368 | ===============
|
paul@34 | 369 |
|
paul@25 | 370 | Low-Level Operations
|
paul@34 | 371 | --------------------
|
paul@25 | 372 |
|
paul@25 | 373 | CE# high standby
|
paul@25 | 374 | CE# low read, write or output disable
|
paul@25 | 375 |
|
paul@25 | 376 | OE# high, WE# high output disable
|
paul@25 | 377 | OE# low, WE# high read
|
paul@25 | 378 | OE# high, WE# low write
|
paul@25 | 379 |
|
paul@25 | 380 | Thus, for reading and writing:
|
paul@25 | 381 |
|
paul@25 | 382 | OE# = not WE#
|
paul@25 | 383 |
|
paul@25 | 384 | Timing
|
paul@34 | 385 | ------
|
paul@25 | 386 |
|
paul@25 | 387 | According to the datasheet, addresses are latched on the falling edge of the
|
paul@25 | 388 | latest of WE# and CE#, data is latched on the rising edge of the latest of WE#
|
paul@25 | 389 | and CE#.
|
paul@25 | 390 |
|
paul@25 | 391 | Strategy:
|
paul@25 | 392 |
|
paul@25 | 393 | 1. Start with CE#, OE#, WE# high (standby, output disable)
|
paul@25 | 394 | 2. Bring CE# low (output disable)
|
paul@25 | 395 | 3. Set addresses
|
paul@25 | 396 | 4. Bring WE# or OE# low for operation (write or read)
|
paul@25 | 397 | 5. Read or write data
|
paul@25 | 398 | 6. Bring WE# or OE# high (output disable)
|
paul@25 | 399 |
|
paul@25 | 400 | Operation Modes
|
paul@34 | 401 | ---------------
|
paul@25 | 402 |
|
paul@25 | 403 | By default, the device is in read mode, meaning that merely bringing OE# low
|
paul@25 | 404 | will produce data for the asserted address.
|
paul@25 | 405 |
|
paul@25 | 406 | To issue commands to change the mode involves write operations with specific
|
paul@25 | 407 | address and data arguments.
|
paul@25 | 408 |
|
paul@25 | 409 | Sectors
|
paul@34 | 410 | --------
|
paul@25 | 411 |
|
paul@25 | 412 | A[16...14] selects each 16KB sector and is referred to as the sector address
|
paul@25 | 413 | or SA in the documentation.
|
paul@25 | 414 |
|
paul@25 | 415 | Commands
|
paul@34 | 416 | --------
|
paul@25 | 417 |
|
paul@25 | 418 | Reset (A=$5555; D=$AA); (A=$2AAA; D=$55); (A=$5555; D=$F0)
|
paul@25 | 419 |
|
paul@25 | 420 | Autoselect (manufacturer) (A=$5555; D=$AA); (A=$2AAA; D=$55); (A=$5555; D=$90);
|
paul@25 | 421 | (A=$X00; read)
|
paul@25 | 422 | => D=$01
|
paul@25 | 423 |
|
paul@25 | 424 | Autoselect (device) (A=$5555; D=$AA); (A=$2AAA; D=$55); (A=$5555; D=$90);
|
paul@25 | 425 | (A=$X01; read)
|
paul@25 | 426 | => D=$20
|
paul@25 | 427 |
|
paul@25 | 428 | Simple reset (A=$XXXX; D=$F0)
|
paul@25 | 429 |
|
paul@25 | 430 | Sector erase (A=$5555; D=$AA); (A=$2AAA; D=$55); (A=$5555; D=$80);
|
paul@25 | 431 | (A=$5555; D=$AA); (A=$2AAA; D=$55); (A=SA; D=$30)
|
paul@25 | 432 |
|
paul@25 | 433 | Program (A=$5555; D=$AA); (A=$2AAA; D=$55); (A=$5555; D=$A0);
|
paul@25 | 434 | (A=PA; D=PD)
|
paul@25 | 435 |
|
paul@25 | 436 | Progress
|
paul@25 | 437 | --------
|
paul@25 | 438 |
|
paul@25 | 439 | Programming and erasure commands employ data pins as follows:
|
paul@25 | 440 |
|
paul@25 | 441 | Programming Erasure
|
paul@25 | 442 | DQ7 On completion: DQ7-out On completion: 1
|
paul@25 | 443 | DQ6 During: toggling value During: toggling value
|
paul@25 | 444 | DQ5 On failure: 1 On failure: 1
|
paul@25 | 445 | DQ3 Sector erase begun: 1
|
paul@25 | 446 |
|
paul@25 | 447 | A read operation is required to obtain these outputs, typically with the same
|
paul@25 | 448 | address used to initiate each operation.
|