Debian Codegraph @

bootloaders/gemma/avrdude.conf

raw
1 # AVRDUDE Configuration File
2 #
3 # This file contains configuration data used by AVRDUDE which describes
4 # the programming hardware pinouts and also provides part definitions.
5 # AVRDUDE's "-C" command line option specifies the location of the
6 # configuration file. The "-c" option names the programmer configuration
7 # which must match one of the entry's "id" parameter. The "-p" option
8 # identifies which part AVRDUDE is going to be programming and must match
9 # one of the parts' "id" parameter.
10 #
11 # Possible entry formats are:
12 #
13 # programmer
14 # parent <id> # optional parent
15 # id = <id1> [, <id2> [, <id3>] ...] ; # <idN> are quoted strings
16 # desc = <description> ; # quoted string
17 # type = <type>; # programmer type, quoted string
18 # # supported programmer types can be listed by "-c ?type"
19 # connection_type = parallel | serial | usb
20 # baudrate = <num> ; # baudrate for avr910-programmer
21 # vcc = <num1> [, <num2> ... ] ; # pin number(s)
22 # buff = <num1> [, <num2> ... ] ; # pin number(s)
23 # reset = <num> ; # pin number
24 # sck = <num> ; # pin number
25 # mosi = <num> ; # pin number
26 # miso = <num> ; # pin number
27 # errled = <num> ; # pin number
28 # rdyled = <num> ; # pin number
29 # pgmled = <num> ; # pin number
30 # vfyled = <num> ; # pin number
31 # usbvid = <hexnum>; # USB VID (Vendor ID)
32 # usbpid = <hexnum>; # USB PID (Product ID)
33 # usbdev = <interface>; # USB interface or other device info
34 # usbvendor = <vendorname>; # USB Vendor Name
35 # usbproduct = <productname>; # USB Product Name
36 # usbsn = <serialno>; # USB Serial Number
37 #
38 # To invert a bit, use = ~ <num>, the spaces are important.
39 # For a pin list all pins must be inverted.
40 # A single pin can be specified as usual = ~ <num>, for lists
41 # specify it as follows = ~ ( <num> [, <num2> ... ] ) .
42 # ;
43 #
44 # part
45 # id = <id> ; # quoted string
46 # desc = <description> ; # quoted string
47 # has_jtag = <yes/no> ; # part has JTAG i/f
48 # has_debugwire = <yes/no> ; # part has debugWire i/f
49 # has_pdi = <yes/no> ; # part has PDI i/f
50 # has_tpi = <yes/no> ; # part has TPI i/f
51 # devicecode = <num> ; # deprecated, use stk500_devcode
52 # stk500_devcode = <num> ; # numeric
53 # avr910_devcode = <num> ; # numeric
54 # signature = <num> <num> <num> ; # signature bytes
55 # chip_erase_delay = <num> ; # micro-seconds
56 # reset = dedicated | io;
57 # retry_pulse = reset | sck;
58 # pgm_enable = <instruction format> ;
59 # chip_erase = <instruction format> ;
60 # chip_erase_delay = <num> ; # chip erase delay (us)
61 # # STK500 parameters (parallel programming IO lines)
62 # pagel = <num> ; # pin name in hex, i.e., 0xD7
63 # bs2 = <num> ; # pin name in hex, i.e., 0xA0
64 # serial = <yes/no> ; # can use serial downloading
65 # parallel = <yes/no/pseudo>; # can use par. programming
66 # # STK500v2 parameters, to be taken from Atmel's XML files
67 # timeout = <num> ;
68 # stabdelay = <num> ;
69 # cmdexedelay = <num> ;
70 # synchloops = <num> ;
71 # bytedelay = <num> ;
72 # pollvalue = <num> ;
73 # pollindex = <num> ;
74 # predelay = <num> ;
75 # postdelay = <num> ;
76 # pollmethod = <num> ;
77 # mode = <num> ;
78 # delay = <num> ;
79 # blocksize = <num> ;
80 # readsize = <num> ;
81 # hvspcmdexedelay = <num> ;
82 # # STK500v2 HV programming parameters, from XML
83 # pp_controlstack = <num>, <num>, ...; # PP only
84 # hvsp_controlstack = <num>, <num>, ...; # HVSP only
85 # hventerstabdelay = <num>;
86 # progmodedelay = <num>; # PP only
87 # latchcycles = <num>;
88 # togglevtg = <num>;
89 # poweroffdelay = <num>;
90 # resetdelayms = <num>;
91 # resetdelayus = <num>;
92 # hvleavestabdelay = <num>;
93 # resetdelay = <num>;
94 # synchcycles = <num>; # HVSP only
95 # chiperasepulsewidth = <num>; # PP only
96 # chiperasepolltimeout = <num>;
97 # chiperasetime = <num>; # HVSP only
98 # programfusepulsewidth = <num>; # PP only
99 # programfusepolltimeout = <num>;
100 # programlockpulsewidth = <num>; # PP only
101 # programlockpolltimeout = <num>;
102 # # JTAG ICE mkII parameters, also from XML files
103 # allowfullpagebitstream = <yes/no> ;
104 # enablepageprogramming = <yes/no> ;
105 # idr = <num> ; # IO addr of IDR (OCD) reg.
106 # rampz = <num> ; # IO addr of RAMPZ reg.
107 # spmcr = <num> ; # mem addr of SPMC[S]R reg.
108 # eecr = <num> ; # mem addr of EECR reg.
109 # # (only when != 0x3c)
110 # is_at90s1200 = <yes/no> ; # AT90S1200 part
111 # is_avr32 = <yes/no> ; # AVR32 part
112 #
113 # memory <memtype>
114 # paged = <yes/no> ; # yes / no
115 # size = <num> ; # bytes
116 # page_size = <num> ; # bytes
117 # num_pages = <num> ; # numeric
118 # min_write_delay = <num> ; # micro-seconds
119 # max_write_delay = <num> ; # micro-seconds
120 # readback_p1 = <num> ; # byte value
121 # readback_p2 = <num> ; # byte value
122 # pwroff_after_write = <yes/no> ; # yes / no
123 # read = <instruction format> ;
124 # write = <instruction format> ;
125 # read_lo = <instruction format> ;
126 # read_hi = <instruction format> ;
127 # write_lo = <instruction format> ;
128 # write_hi = <instruction format> ;
129 # loadpage_lo = <instruction format> ;
130 # loadpage_hi = <instruction format> ;
131 # writepage = <instruction format> ;
132 # ;
133 # ;
134 #
135 # If any of the above parameters are not specified, the default value
136 # of 0 is used for numerics or the empty string ("") for string
137 # values. If a required parameter is left empty, AVRDUDE will
138 # complain.
139 #
140 # Parts can also inherit parameters from previously defined parts
141 # using the following syntax. In this case specified integer and
142 # string values override parameter values from the parent part. New
143 # memory definitions are added to the definitions inherited from the
144 # parent.
145 #
146 # part parent <id> # quoted string
147 # id = <id> ; # quoted string
148 # <any set of other parameters from the list above>
149 # ;
150 #
151 # NOTES:
152 # * 'devicecode' is the device code used by the STK500 (see codes
153 # listed below)
154 # * Not all memory types will implement all instructions.
155 # * AVR Fuse bits and Lock bits are implemented as a type of memory.
156 # * Example memory types are:
157 # "flash", "eeprom", "fuse", "lfuse" (low fuse), "hfuse" (high
158 # fuse), "signature", "calibration", "lock"
159 # * The memory type specified on the avrdude command line must match
160 # one of the memory types defined for the specified chip.
161 # * The pwroff_after_write flag causes avrdude to attempt to
162 # power the device off and back on after an unsuccessful write to
163 # the affected memory area if VCC programmer pins are defined. If
164 # VCC pins are not defined for the programmer, a message
165 # indicating that the device needs a power-cycle is printed out.
166 # This flag was added to work around a problem with the
167 # at90s4433/2333's; see the at90s4433 errata at:
168 #
169 # http://www.atmel.com/dyn/resources/prod_documents/doc1280.pdf
170 #
171 # INSTRUCTION FORMATS
172 #
173 # Instruction formats are specified as a comma separated list of
174 # string values containing information (bit specifiers) about each
175 # of the 32 bits of the instruction. Bit specifiers may be one of
176 # the following formats:
177 #
178 # '1' = the bit is always set on input as well as output
179 #
180 # '0' = the bit is always clear on input as well as output
181 #
182 # 'x' = the bit is ignored on input and output
183 #
184 # 'a' = the bit is an address bit, the bit-number matches this bit
185 # specifier's position within the current instruction byte
186 #
187 # 'aN' = the bit is the Nth address bit, bit-number = N, i.e., a12
188 # is address bit 12 on input, a0 is address bit 0.
189 #
190 # 'i' = the bit is an input data bit
191 #
192 # 'o' = the bit is an output data bit
193 #
194 # Each instruction must be composed of 32 bit specifiers. The
195 # instruction specification closely follows the instruction data
196 # provided in Atmel's data sheets for their parts.
197 #
198 # See below for some examples.
199 #
200 #
201 # The following are STK500 part device codes to use for the
202 # "devicecode" field of the part. These came from Atmel's software
203 # section avr061.zip which accompanies the application note
204 # AVR061 available from:
205 #
206 # http://www.atmel.com/dyn/resources/prod_documents/doc2525.pdf
207 #
208
209 #define ATTINY10 0x10 /* the _old_ one that never existed! */
210 #define ATTINY11 0x11
211 #define ATTINY12 0x12
212 #define ATTINY15 0x13
213 #define ATTINY13 0x14
214
215 #define ATTINY22 0x20
216 #define ATTINY26 0x21
217 #define ATTINY28 0x22
218 #define ATTINY2313 0x23
219
220 #define AT90S1200 0x33
221
222 #define AT90S2313 0x40
223 #define AT90S2323 0x41
224 #define AT90S2333 0x42
225 #define AT90S2343 0x43
226
227 #define AT90S4414 0x50
228 #define AT90S4433 0x51
229 #define AT90S4434 0x52
230 #define ATMEGA48 0x59
231
232 #define AT90S8515 0x60
233 #define AT90S8535 0x61
234 #define AT90C8534 0x62
235 #define ATMEGA8515 0x63
236 #define ATMEGA8535 0x64
237
238 #define ATMEGA8 0x70
239 #define ATMEGA88 0x73
240 #define ATMEGA168 0x86
241
242 #define ATMEGA161 0x80
243 #define ATMEGA163 0x81
244 #define ATMEGA16 0x82
245 #define ATMEGA162 0x83
246 #define ATMEGA169 0x84
247
248 #define ATMEGA323 0x90
249 #define ATMEGA32 0x91
250
251 #define ATMEGA64 0xA0
252
253 #define ATMEGA103 0xB1
254 #define ATMEGA128 0xB2
255 #define AT90CAN128 0xB3
256 #define AT90CAN64 0xB3
257 #define AT90CAN32 0xB3
258
259 #define AT86RF401 0xD0
260
261 #define AT89START 0xE0
262 #define AT89S51 0xE0
263 #define AT89S52 0xE1
264
265 # The following table lists the devices in the original AVR910
266 # appnote:
267 # |Device |Signature | Code |
268 # +-------+----------+------+
269 # |tiny12 | 1E 90 05 | 0x55 |
270 # |tiny15 | 1E 90 06 | 0x56 |
271 # | | | |
272 # | S1200 | 1E 90 01 | 0x13 |
273 # | | | |
274 # | S2313 | 1E 91 01 | 0x20 |
275 # | S2323 | 1E 91 02 | 0x48 |
276 # | S2333 | 1E 91 05 | 0x34 |
277 # | S2343 | 1E 91 03 | 0x4C |
278 # | | | |
279 # | S4414 | 1E 92 01 | 0x28 |
280 # | S4433 | 1E 92 03 | 0x30 |
281 # | S4434 | 1E 92 02 | 0x6C |
282 # | | | |
283 # | S8515 | 1E 93 01 | 0x38 |
284 # | S8535 | 1E 93 03 | 0x68 |
285 # | | | |
286 # |mega32 | 1E 95 01 | 0x72 |
287 # |mega83 | 1E 93 05 | 0x65 |
288 # |mega103| 1E 97 01 | 0x41 |
289 # |mega161| 1E 94 01 | 0x60 |
290 # |mega163| 1E 94 02 | 0x64 |
291
292 # Appnote AVR109 also has a table of AVR910 device codes, which
293 # lists:
294 # dev avr910 signature
295 # ATmega8 0x77 0x1E 0x93 0x07
296 # ATmega8515 0x3B 0x1E 0x93 0x06
297 # ATmega8535 0x6A 0x1E 0x93 0x08
298 # ATmega16 0x75 0x1E 0x94 0x03
299 # ATmega162 0x63 0x1E 0x94 0x04
300 # ATmega163 0x66 0x1E 0x94 0x02
301 # ATmega169 0x79 0x1E 0x94 0x05
302 # ATmega32 0x7F 0x1E 0x95 0x02
303 # ATmega323 0x73 0x1E 0x95 0x01
304 # ATmega64 0x46 0x1E 0x96 0x02
305 # ATmega128 0x44 0x1E 0x97 0x02
306 #
307 # These codes refer to "BOOT" device codes which are apparently
308 # different than standard device codes, for whatever reasons
309 # (often one above the standard code).
310
311 # There are several extended versions of AVR910 implementations around
312 # in the Internet. These add the following codes (only devices that
313 # actually exist are listed):
314
315 # ATmega8515 0x3A
316 # ATmega128 0x43
317 # ATmega64 0x45
318 # ATtiny26 0x5E
319 # ATmega8535 0x69
320 # ATmega32 0x72
321 # ATmega16 0x74
322 # ATmega8 0x76
323 # ATmega169 0x78
324
325 #
326 # Overall avrdude defaults; suitable for ~/.avrduderc
327 #
328 default_parallel = "/dev/parport0";
329 default_serial = "/dev/ttyS0";
330 # default_bitclock = 2.5;
331
332 # Turn off safemode by default
333 #default_safemode = no;
334
335
336 #
337 # PROGRAMMER DEFINITIONS
338 #
339
340 # http://wiring.org.co/
341 # Basically STK500v2 protocol, with some glue to trigger the
342 # bootloader.
343 programmer
344 id = "wiring";
345 desc = "Wiring";
346 type = "wiring";
347 connection_type = serial;
348 ;
349
350 programmer
351 id = "arduino";
352 desc = "Arduino";
353 type = "arduino";
354 connection_type = serial;
355 ;
356 # this will interface with the chips on these programmers:
357 #
358 # http://real.kiev.ua/old/avreal/en/adapters
359 # http://www.amontec.com/jtagkey.shtml, jtagkey-tiny.shtml
360 # http://www.olimex.com/dev/arm-usb-ocd.html, arm-usb-tiny.html
361 # http://www.ethernut.de/en/hardware/turtelizer/index.html
362 # http://elk.informatik.fh-augsburg.de/hhweb/doc/openocd/usbjtag/usbjtag.html
363 # http://dangerousprototypes.com/docs/FT2232_breakout_board
364 # http://www.ftdichip.com/Products/Modules/DLPModules.htm,DLP-2232*,DLP-USB1232H
365 # http://flashrom.org/FT2232SPI_Programmer
366 #
367 # The drivers will look for a specific device and use the first one found.
368 # If you have multiple devices, then look for unique information (like SN)
369 # And fill that in here.
370 #
371 # Note that the pin numbers for the main ISP signals (reset, sck,
372 # mosi, miso) are fixed and cannot be changed, since they must match
373 # the way the Multi-Protocol Synchronous Serial Engine (MPSSE) of
374 # these FTDI ICs has been designed.
375
376 programmer
377 id = "avrftdi";
378 desc = "FT2232D based generic programmer";
379 type = "avrftdi";
380 connection_type = usb;
381 usbvid = 0x0403;
382 usbpid = 0x6010;
383 usbvendor = "";
384 usbproduct = "";
385 usbdev = "A";
386 usbsn = "";
387 #ISP-signals - lower ADBUS-Nibble (default)
388 reset = 3;
389 sck = 0;
390 mosi = 1;
391 miso = 2;
392 #LED SIGNALs - higher ADBUS-Nibble
393 # errled = 4;
394 # rdyled = 5;
395 # pgmled = 6;
396 # vfyled = 7;
397 #Buffer Signal - ACBUS - Nibble
398 # buff = 8;
399 ;
400 # This is an implementation of the above with a buffer IC (74AC244) and
401 # 4 LEDs directly attached, all active low.
402 programmer
403 id = "2232HIO";
404 desc = "FT2232H based generic programmer";
405 type = "avrftdi";
406 connection_type = usb;
407 usbvid = 0x0403;
408 # Note: This PID is reserved for generic H devices and
409 # should be programmed into the EEPROM
410 # usbpid = 0x8A48;
411 usbpid = 0x6010;
412 usbdev = "A";
413 usbvendor = "";
414 usbproduct = "";
415 usbsn = "";
416 #ISP-signals
417 reset = 3;
418 sck = 0;
419 mosi = 1;
420 miso = 2;
421 buff = ~4;
422 #LED SIGNALs
423 errled = ~ 11;
424 rdyled = ~ 14;
425 pgmled = ~ 13;
426 vfyled = ~ 12;
427 ;
428
429 #The FT4232H can be treated as FT2232H, but it has a different USB
430 #device ID of 0x6011.
431 programmer parent "avrftdi"
432 id = "4232h";
433 desc = "FT4232H based generic programmer";
434 usbpid = 0x6011;
435 ;
436
437 programmer
438 id = "jtagkey";
439 desc = "Amontec JTAGKey, JTAGKey-Tiny and JTAGKey2";
440 type = "avrftdi";
441 connection_type = usb;
442 usbvid = 0x0403;
443 # Note: This PID is used in all JTAGKey variants
444 usbpid = 0xCFF8;
445 usbdev = "A";
446 usbvendor = "";
447 usbproduct = "";
448 usbsn = "";
449 #ISP-signals => 20 - Pin connector on JTAGKey
450 reset = 3; # TMS 7 violet
451 sck = 0; # TCK 9 white
452 mosi = 1; # TDI 5 green
453 miso = 2; # TDO 13 orange
454 buff = ~4;
455 # VTG VREF 1 brown with red tip
456 # GND GND 20 black
457 # The colors are on the 20 pin breakout cable
458 # from Amontec
459 ;
460
461 # On the adapter you can read "O-Link". On the PCB is printed "OpenJTAG v3.1"
462 # You can find it as "OpenJTAG ARM JTAG USB" in the internet.
463 # (But there are also several projects called Open JTAG, eg.
464 # http://www.openjtag.org, which are completely different.)
465 # http://www.100ask.net/shop/english.html (website seems to be outdated)
466 # http://item.taobao.com/item.htm?id=1559277013
467 # http://www.micro4you.com/store/openjtag-arm-jtag-usb.html (schematics!)
468 # some other sources which call it O-Link
469 # http://www.andahammer.com/olink/
470 # http://www.developmentboard.net/31-o-link-debugger.html
471 # http://armwerks.com/catalog/o-link-debugger-copy/
472 # or just have a look at ebay ...
473 # It is basically the same entry as jtagkey with different usb ids.
474 programmer parent "jtagkey"
475 id = "o-link";
476 desc = "O-Link, OpenJTAG from www.100ask.net";
477 usbvid = 0x1457;
478 usbpid = 0x5118;
479 usbvendor = "www.100ask.net";
480 usbproduct = "USB<=>JTAG&RS232";
481 ;
482
483 # http://wiki.openmoko.org/wiki/Debug_Board_v3
484 programmer
485 id = "openmoko";
486 desc = "Openmoko debug board (v3)";
487 type = "avrftdi";
488 usbvid = 0x1457;
489 usbpid = 0x5118;
490 usbdev = "A";
491 usbvendor = "";
492 usbproduct = "";
493 usbsn = "";
494 reset = 3; # TMS 7
495 sck = 0; # TCK 9
496 mosi = 1; # TDI 5
497 miso = 2; # TDO 13
498 ;
499
500 # Only Rev. A boards.
501 # Schematic and user manual: http://www.cs.put.poznan.pl/wswitala/download/pdf/811EVBK.pdf
502 programmer
503 id = "lm3s811";
504 desc = "Luminary Micro LM3S811 Eval Board (Rev. A)";
505 type = "avrftdi";
506 connection_type = usb;
507 usbvid = 0x0403;
508 usbpid = 0xbcd9;
509 usbvendor = "LMI";
510 usbproduct = "LM3S811 Evaluation Board";
511 usbdev = "A";
512 usbsn = "";
513 #ISP-signals - lower ACBUS-Nibble (default)
514 reset = 3;
515 sck = 0;
516 mosi = 1;
517 miso = 2;
518 # Enable correct buffers
519 buff = 7;
520 ;
521
522 programmer
523 id = "avrisp";
524 desc = "Atmel AVR ISP";
525 type = "stk500";
526 connection_type = serial;
527 ;
528
529 programmer
530 id = "avrispv2";
531 desc = "Atmel AVR ISP V2";
532 type = "stk500v2";
533 connection_type = serial;
534 ;
535
536 programmer
537 id = "avrispmkII";
538 desc = "Atmel AVR ISP mkII";
539 type = "stk500v2";
540 connection_type = usb;
541 ;
542
543 programmer parent "avrispmkII"
544 id = "avrisp2";
545 ;
546
547 programmer
548 id = "buspirate";
549 desc = "The Bus Pirate";
550 type = "buspirate";
551 connection_type = serial;
552 ;
553
554 programmer
555 id = "buspirate_bb";
556 desc = "The Bus Pirate (bitbang interface, supports TPI)";
557 type = "buspirate_bb";
558 connection_type = serial;
559 # pins are bits in bitbang byte (numbers are 87654321)
560 # 1|POWER|PULLUP|AUX|MOSI|CLK|MISO|CS
561 reset = 1;
562 sck = 3;
563 mosi = 4;
564 miso = 2;
565 #vcc = 7; This is internally set independent of this setting.
566 ;
567
568 # This is supposed to be the "default" STK500 entry.
569 # Attempts to select the correct firmware version
570 # by probing for it. Better use one of the entries
571 # below instead.
572 programmer
573 id = "stk500";
574 desc = "Atmel STK500";
575 type = "stk500generic";
576 connection_type = serial;
577 ;
578
579 programmer
580 id = "stk500v1";
581 desc = "Atmel STK500 Version 1.x firmware";
582 type = "stk500";
583 connection_type = serial;
584 ;
585
586 programmer
587 id = "mib510";
588 desc = "Crossbow MIB510 programming board";
589 type = "stk500";
590 connection_type = serial;
591 ;
592
593 programmer
594 id = "stk500v2";
595 desc = "Atmel STK500 Version 2.x firmware";
596 type = "stk500v2";
597 connection_type = serial;
598 ;
599
600 programmer
601 id = "stk500pp";
602 desc = "Atmel STK500 V2 in parallel programming mode";
603 type = "stk500pp";
604 connection_type = serial;
605 ;
606
607 programmer
608 id = "stk500hvsp";
609 desc = "Atmel STK500 V2 in high-voltage serial programming mode";
610 type = "stk500hvsp";
611 connection_type = serial;
612 ;
613
614 programmer
615 id = "stk600";
616 desc = "Atmel STK600";
617 type = "stk600";
618 connection_type = usb;
619 ;
620
621 programmer
622 id = "stk600pp";
623 desc = "Atmel STK600 in parallel programming mode";
624 type = "stk600pp";
625 connection_type = usb;
626 ;
627
628 programmer
629 id = "stk600hvsp";
630 desc = "Atmel STK600 in high-voltage serial programming mode";
631 type = "stk600hvsp";
632 connection_type = usb;
633 ;
634
635 programmer
636 id = "avr910";
637 desc = "Atmel Low Cost Serial Programmer";
638 type = "avr910";
639 connection_type = serial;
640 ;
641
642 programmer
643 id = "ft245r";
644 desc = "FT245R Synchronous BitBang";
645 type = "ftdi_syncbb";
646 connection_type = usb;
647 miso = 1; # D1
648 sck = 0; # D0
649 mosi = 2; # D2
650 reset = 4; # D4
651 ;
652
653 programmer
654 id = "ft232r";
655 desc = "FT232R Synchronous BitBang";
656 type = "ftdi_syncbb";
657 connection_type = usb;
658 miso = 1; # RxD
659 sck = 0; # RTS
660 mosi = 2; # TxD
661 reset = 4; # DTR
662 ;
663
664 # see http://www.bitwizard.nl/wiki/index.php/FTDI_ATmega
665 programmer
666 id = "bwmega";
667 desc = "BitWizard ftdi_atmega builtin programmer";
668 type = "ftdi_syncbb";
669 connection_type = usb;
670 miso = 5; # DSR
671 sck = 6; # DCD
672 mosi = 3; # CTS
673 reset = 7; # RI
674 ;
675
676 # see http://www.geocities.jp/arduino_diecimila/bootloader/index_en.html
677 # Note: pins are numbered from 1!
678 programmer
679 id = "arduino-ft232r";
680 desc = "Arduino: FT232R connected to ISP";
681 type = "ftdi_syncbb";
682 connection_type = usb;
683 miso = 3; # CTS X3(1)
684 sck = 5; # DSR X3(2)
685 mosi = 6; # DCD X3(3)
686 reset = 7; # RI X3(4)
687 ;
688
689 # website mentioned above uses this id
690 programmer parent "arduino-ft232r"
691 id = "diecimila";
692 desc = "alias for arduino-ft232r";
693 ;
694
695 programmer
696 id = "usbasp";
697 desc = "USBasp, http://www.fischl.de/usbasp/";
698 type = "usbasp";
699 connection_type = usb;
700 usbvid = 0x16C0; # VOTI
701 usbpid = 0x05DC; # Obdev's free shared PID
702 usbvendor = "www.fischl.de";
703 usbproduct = "USBasp";
704
705 # following variants are autodetected for id "usbasp"
706
707 # original usbasp from fischl.de
708 # see above "usbasp"
709
710 # old usbasp from fischl.de
711 #usbvid = 0x03EB; # ATMEL
712 #usbpid = 0xC7B4; # (unoffical) USBasp
713 #usbvendor = "www.fischl.de";
714 #usbproduct = "USBasp";
715
716 # NIBObee (only if -P nibobee is given on command line)
717 # see below "nibobee"
718 ;
719
720 programmer
721 id = "nibobee";
722 desc = "NIBObee";
723 type = "usbasp";
724 connection_type = usb;
725 usbvid = 0x16C0; # VOTI
726 usbpid = 0x092F; # NIBObee PID
727 usbvendor = "www.nicai-systems.com";
728 usbproduct = "NIBObee";
729 ;
730
731 programmer
732 id = "usbasp-clone";
733 desc = "Any usbasp clone with correct VID/PID";
734 type = "usbasp";
735 connection_type = usb;
736 usbvid = 0x16C0; # VOTI
737 usbpid = 0x05DC; # Obdev's free shared PID
738 #usbvendor = "";
739 #usbproduct = "";
740 ;
741
742 programmer
743 id = "usbtiny";
744 desc = "USBtiny simple USB programmer, http://www.ladyada.net/make/usbtinyisp/";
745 type = "usbtiny";
746 connection_type = usb;
747 usbvid = 0x1781;
748 usbpid = 0x0c9f;
749 ;
750
751 programmer
752 id = "arduinogemma";
753 desc = "Arduino Gemma. Based on USBtiny";
754 type = "usbtiny";
755 connection_type = usb;
756 usbvid = 0x2341;
757 usbpid = 0x0c9f;
758 ;
759
760 programmer
761 id = "arduinoisp";
762 desc = " ";
763 type = "usbtiny";
764 connection_type = usb;
765 usbvid = 0x2341;
766 usbpid = 0x0049;
767 ;
768
769 programmer
770 id = "butterfly";
771 desc = "Atmel Butterfly Development Board";
772 type = "butterfly";
773 connection_type = serial;
774 ;
775
776 programmer
777 id = "avr109";
778 desc = "Atmel AppNote AVR109 Boot Loader";
779 type = "butterfly";
780 connection_type = serial;
781 ;
782
783 programmer
784 id = "avr911";
785 desc = "Atmel AppNote AVR911 AVROSP";
786 type = "butterfly";
787 connection_type = serial;
788 ;
789
790 # suggested in http://forum.mikrokopter.de/topic-post48317.html
791 programmer
792 id = "mkbutterfly";
793 desc = "Mikrokopter.de Butterfly";
794 type = "butterfly_mk";
795 connection_type = serial;
796 ;
797
798 programmer parent "mkbutterfly"
799 id = "butterfly_mk";
800 ;
801
802 programmer
803 id = "jtagmkI";
804 desc = "Atmel JTAG ICE (mkI)";
805 baudrate = 115200; # default is 115200
806 type = "jtagmki";
807 connection_type = serial;
808 ;
809
810 # easier to type
811 programmer parent "jtagmkI"
812 id = "jtag1";
813 ;
814
815 # easier to type
816 programmer parent "jtag1"
817 id = "jtag1slow";
818 baudrate = 19200;
819 ;
820
821 # The JTAG ICE mkII has both, serial and USB connectivity. As it is
822 # mostly used through USB these days (AVR Studio 5 only supporting it
823 # that way), we make connection_type = usb the default. Users are
824 # still free to use a serial port with the -P option.
825
826 programmer
827 id = "jtagmkII";
828 desc = "Atmel JTAG ICE mkII";
829 baudrate = 19200; # default is 19200
830 type = "jtagmkii";
831 connection_type = usb;
832 ;
833
834 # easier to type
835 programmer parent "jtagmkII"
836 id = "jtag2slow";
837 ;
838
839 # JTAG ICE mkII @ 115200 Bd
840 programmer parent "jtag2slow"
841 id = "jtag2fast";
842 baudrate = 115200;
843 ;
844
845 # make the fast one the default, people will love that
846 programmer parent "jtag2fast"
847 id = "jtag2";
848 ;
849
850 # JTAG ICE mkII in ISP mode
851 programmer
852 id = "jtag2isp";
853 desc = "Atmel JTAG ICE mkII in ISP mode";
854 baudrate = 115200;
855 type = "jtagmkii_isp";
856 connection_type = usb;
857 ;
858
859 # JTAG ICE mkII in debugWire mode
860 programmer
861 id = "jtag2dw";
862 desc = "Atmel JTAG ICE mkII in debugWire mode";
863 baudrate = 115200;
864 type = "jtagmkii_dw";
865 connection_type = usb;
866 ;
867
868 # JTAG ICE mkII in AVR32 mode
869 programmer
870 id = "jtagmkII_avr32";
871 desc = "Atmel JTAG ICE mkII im AVR32 mode";
872 baudrate = 115200;
873 type = "jtagmkii_avr32";
874 connection_type = usb;
875 ;
876
877 # JTAG ICE mkII in AVR32 mode
878 programmer
879 id = "jtag2avr32";
880 desc = "Atmel JTAG ICE mkII im AVR32 mode";
881 baudrate = 115200;
882 type = "jtagmkii_avr32";
883 connection_type = usb;
884 ;
885
886 # JTAG ICE mkII in PDI mode
887 programmer
888 id = "jtag2pdi";
889 desc = "Atmel JTAG ICE mkII PDI mode";
890 baudrate = 115200;
891 type = "jtagmkii_pdi";
892 connection_type = usb;
893 ;
894
895 # AVR Dragon in JTAG mode
896 programmer
897 id = "dragon_jtag";
898 desc = "Atmel AVR Dragon in JTAG mode";
899 baudrate = 115200;
900 type = "dragon_jtag";
901 connection_type = usb;
902 ;
903
904 # AVR Dragon in ISP mode
905 programmer
906 id = "dragon_isp";
907 desc = "Atmel AVR Dragon in ISP mode";
908 baudrate = 115200;
909 type = "dragon_isp";
910 connection_type = usb;
911 ;
912
913 # AVR Dragon in PP mode
914 programmer
915 id = "dragon_pp";
916 desc = "Atmel AVR Dragon in PP mode";
917 baudrate = 115200;
918 type = "dragon_pp";
919 connection_type = usb;
920 ;
921
922 # AVR Dragon in HVSP mode
923 programmer
924 id = "dragon_hvsp";
925 desc = "Atmel AVR Dragon in HVSP mode";
926 baudrate = 115200;
927 type = "dragon_hvsp";
928 connection_type = usb;
929 ;
930
931 # AVR Dragon in debugWire mode
932 programmer
933 id = "dragon_dw";
934 desc = "Atmel AVR Dragon in debugWire mode";
935 baudrate = 115200;
936 type = "dragon_dw";
937 connection_type = usb;
938 ;
939
940 # AVR Dragon in PDI mode
941 programmer
942 id = "dragon_pdi";
943 desc = "Atmel AVR Dragon in PDI mode";
944 baudrate = 115200;
945 type = "dragon_pdi";
946 connection_type = usb;
947 ;
948
949 programmer
950 id = "jtag3";
951 desc = "Atmel AVR JTAGICE3 in JTAG mode";
952 type = "jtagice3";
953 connection_type = usb;
954 ;
955
956 programmer
957 id = "jtag3pdi";
958 desc = "Atmel AVR JTAGICE3 in PDI mode";
959 type = "jtagice3_pdi";
960 connection_type = usb;
961 ;
962
963 programmer
964 id = "jtag3dw";
965 desc = "Atmel AVR JTAGICE3 in debugWIRE mode";
966 type = "jtagice3_dw";
967 connection_type = usb;
968 ;
969
970 programmer
971 id = "jtag3isp";
972 desc = "Atmel AVR JTAGICE3 in ISP mode";
973 type = "jtagice3_isp";
974 connection_type = usb;
975 ;
976
977
978 programmer
979 id = "pavr";
980 desc = "Jason Kyle's pAVR Serial Programmer";
981 type = "avr910";
982 connection_type = serial;
983 ;
984
985 programmer
986 id = "pickit2";
987 desc = "MicroChip's PICkit2 Programmer";
988 type = "pickit2";
989 connection_type = usb;
990 ;
991
992 # Parallel port programmers.
993
994 programmer
995 id = "bsd";
996 desc = "Brian Dean's Programmer, http://www.bsdhome.com/avrdude/";
997 type = "par";
998 connection_type = parallel;
999 vcc = 2, 3, 4, 5;
1000 reset = 7;
1001 sck = 8;
1002 mosi = 9;
1003 miso = 10;
1004 ;
1005
1006 programmer
1007 id = "stk200";
1008 desc = "STK200";
1009 type = "par";
1010 connection_type = parallel;
1011 buff = 4, 5;
1012 sck = 6;
1013 mosi = 7;
1014 reset = 9;
1015 miso = 10;
1016 ;
1017
1018 # The programming dongle used by the popular Ponyprog
1019 # utility. It is almost similar to the STK200 one,
1020 # except that there is a LED indicating that the
1021 # programming is currently in progress.
1022
1023 programmer parent "stk200"
1024 id = "pony-stk200";
1025 desc = "Pony Prog STK200";
1026 pgmled = 8;
1027 ;
1028
1029 programmer
1030 id = "dt006";
1031 desc = "Dontronics DT006";
1032 type = "par";
1033 connection_type = parallel;
1034 reset = 4;
1035 sck = 5;
1036 mosi = 2;
1037 miso = 11;
1038 ;
1039
1040 programmer parent "dt006"
1041 id = "bascom";
1042 desc = "Bascom SAMPLE programming cable";
1043 ;
1044
1045 programmer
1046 id = "alf";
1047 desc = "Nightshade ALF-PgmAVR, http://nightshade.homeip.net/";
1048 type = "par";
1049 connection_type = parallel;
1050 vcc = 2, 3, 4, 5;
1051 buff = 6;
1052 reset = 7;
1053 sck = 8;
1054 mosi = 9;
1055 miso = 10;
1056 errled = 1;
1057 rdyled = 14;
1058 pgmled = 16;
1059 vfyled = 17;
1060 ;
1061
1062 programmer
1063 id = "sp12";
1064 desc = "Steve Bolt's Programmer";
1065 type = "par";
1066 connection_type = parallel;
1067 vcc = 4,5,6,7,8;
1068 reset = 3;
1069 sck = 2;
1070 mosi = 9;
1071 miso = 11;
1072 ;
1073
1074 programmer
1075 id = "picoweb";
1076 desc = "Picoweb Programming Cable, http://www.picoweb.net/";
1077 type = "par";
1078 connection_type = parallel;
1079 reset = 2;
1080 sck = 3;
1081 mosi = 4;
1082 miso = 13;
1083 ;
1084
1085 programmer
1086 id = "abcmini";
1087 desc = "ABCmini Board, aka Dick Smith HOTCHIP";
1088 type = "par";
1089 connection_type = parallel;
1090 reset = 4;
1091 sck = 3;
1092 mosi = 2;
1093 miso = 10;
1094 ;
1095
1096 programmer
1097 id = "futurlec";
1098 desc = "Futurlec.com programming cable.";
1099 type = "par";
1100 connection_type = parallel;
1101 reset = 3;
1102 sck = 2;
1103 mosi = 1;
1104 miso = 10;
1105 ;
1106
1107
1108 # From the contributor of the "xil" jtag cable:
1109 # The "vcc" definition isn't really vcc (the cable gets its power from
1110 # the programming circuit) but is necessary to switch one of the
1111 # buffer lines (trying to add it to the "buff" lines doesn't work in
1112 # avrdude versions before 5.5j).
1113 # With this, TMS connects to RESET, TDI to MOSI, TDO to MISO and TCK
1114 # to SCK (plus vcc/gnd of course)
1115 programmer
1116 id = "xil";
1117 desc = "Xilinx JTAG cable";
1118 type = "par";
1119 connection_type = parallel;
1120 mosi = 2;
1121 sck = 3;
1122 reset = 4;
1123 buff = 5;
1124 miso = 13;
1125 vcc = 6;
1126 ;
1127
1128
1129 programmer
1130 id = "dapa";
1131 desc = "Direct AVR Parallel Access cable";
1132 type = "par";
1133 connection_type = parallel;
1134 vcc = 3;
1135 reset = 16;
1136 sck = 1;
1137 mosi = 2;
1138 miso = 11;
1139 ;
1140
1141 programmer
1142 id = "atisp";
1143 desc = "AT-ISP V1.1 programming cable for AVR-SDK1 from <http://micro-research.co.th/> micro-research.co.th";
1144 type = "par";
1145 connection_type = parallel;
1146 reset = ~6;
1147 sck = ~8;
1148 mosi = ~7;
1149 miso = ~10;
1150 ;
1151
1152 programmer
1153 id = "ere-isp-avr";
1154 desc = "ERE ISP-AVR <http://www.ere.co.th/download/sch050713.pdf>";
1155 type = "par";
1156 connection_type = parallel;
1157 reset = ~4;
1158 sck = 3;
1159 mosi = 2;
1160 miso = 10;
1161 ;
1162
1163 programmer
1164 id = "blaster";
1165 desc = "Altera ByteBlaster";
1166 type = "par";
1167 connection_type = parallel;
1168 sck = 2;
1169 miso = 11;
1170 reset = 3;
1171 mosi = 8;
1172 buff = 14;
1173 ;
1174
1175 # It is almost same as pony-stk200, except vcc on pin 5 to auto
1176 # disconnect port (download on http://electropol.free.fr/spip/spip.php?article27)
1177 programmer parent "pony-stk200"
1178 id = "frank-stk200";
1179 desc = "Frank STK200";
1180 buff = ; # delete buff pin assignment
1181 vcc = 5;
1182 ;
1183
1184 # The AT98ISP Cable is a simple parallel dongle for AT89 family.
1185 # http://www.atmel.com/dyn/products/tools_card.asp?tool_id=2877
1186 programmer
1187 id = "89isp";
1188 desc = "Atmel at89isp cable";
1189 type = "par";
1190 connection_type = parallel;
1191 reset = 17;
1192 sck = 1;
1193 mosi = 2;
1194 miso = 10;
1195 ;
1196
1197
1198 #This programmer bitbangs GPIO lines using the Linux sysfs GPIO interface
1199 #
1200 #To enable it set the configuration below to match the GPIO lines connected to the
1201 #relevant ISP header pins and uncomment the entry definition. In case you don't
1202 #have the required permissions to edit this system wide config file put the
1203 #entry in a separate <your name>.conf file and use it with -C+<your name>.conf
1204 #on the command line.
1205 #
1206 #To check if your avrdude build has support for the linuxgpio programmer compiled in,
1207 #use -c?type on the command line and look for linuxgpio in the list. If it's not available
1208 #you need pass the --enable-linuxgpio=yes option to configure and recompile avrdude.
1209 #
1210 #programmer
1211 # id = "linuxgpio";
1212 # desc = "Use the Linux sysfs interface to bitbang GPIO lines";
1213 # type = "linuxgpio";
1214 # reset = ?;
1215 # sck = ?;
1216 # mosi = ?;
1217 # miso = ?;
1218 #;
1219
1220 #This programmer bitbangs GPIO lines using the Linux sysfs GPIO interface and direct
1221 #GPIO memory registers read/write.
1222 #
1223 #To enable it set the configuration below to match the GPIO lines connected to the
1224 #relevant ISP header pins and uncomment the entry definition. In case you don't
1225 #have the required permissions to edit this system wide config file put the
1226 #entry in a separate <your name>.conf file and use it with -C+<your name>.conf
1227 #on the command line.
1228 #
1229 #To check if your avrdude build has support for the arduinotre programmer compiled in,
1230 #use -c?type on the command line and look for arduinotre in the list. If it's not available
1231 #you need pass the --enable-arduinotre=yes option to configure and recompile avrdude.
1232 #
1233 #programmer
1234 # id = "arduinotre";
1235 # desc = "Arduino TRE bitbanging using GPIO registers";
1236 # type = "arduinotre";
1237 # reset = ~65;
1238 # sck = 49;
1239 # mosi = 48;
1240 # miso = 61;
1241 #;
1242
1243 # some ultra cheap programmers use bitbanging on the
1244 # serialport.
1245 #
1246 # PC - DB9 - Pins for RS232:
1247 #
1248 # GND 5 -- |O
1249 # | O| <- 9 RI
1250 # DTR 4 <- |O |
1251 # | O| <- 8 CTS
1252 # TXD 3 <- |O |
1253 # | O| -> 7 RTS
1254 # RXD 2 -> |O |
1255 # | O| <- 6 DSR
1256 # DCD 1 -> |O
1257 #
1258 # Using RXD is currently not supported.
1259 # Using RI is not supported under Win32 but is supported under Posix.
1260
1261 # serial ponyprog design (dasa2 in uisp)
1262 # reset=!txd sck=rts mosi=dtr miso=cts
1263
1264 programmer
1265 id = "ponyser";
1266 desc = "design ponyprog serial, reset=!txd sck=rts mosi=dtr miso=cts";
1267 type = "serbb";
1268 connection_type = serial;
1269 reset = ~3;
1270 sck = 7;
1271 mosi = 4;
1272 miso = 8;
1273 ;
1274
1275 # Same as above, different name
1276 # reset=!txd sck=rts mosi=dtr miso=cts
1277
1278 programmer parent "ponyser"
1279 id = "siprog";
1280 desc = "Lancos SI-Prog <http://www.lancos.com/siprogsch.html>";
1281 ;
1282
1283 # unknown (dasa in uisp)
1284 # reset=rts sck=dtr mosi=txd miso=cts
1285
1286 programmer
1287 id = "dasa";
1288 desc = "serial port banging, reset=rts sck=dtr mosi=txd miso=cts";
1289 type = "serbb";
1290 connection_type = serial;
1291 reset = 7;
1292 sck = 4;
1293 mosi = 3;
1294 miso = 8;
1295 ;
1296
1297 # unknown (dasa3 in uisp)
1298 # reset=!dtr sck=rts mosi=txd miso=cts
1299
1300 programmer
1301 id = "dasa3";
1302 desc = "serial port banging, reset=!dtr sck=rts mosi=txd miso=cts";
1303 type = "serbb";
1304 connection_type = serial;
1305 reset = ~4;
1306 sck = 7;
1307 mosi = 3;
1308 miso = 8;
1309 ;
1310
1311 # C2N232i (jumper configuration "auto")
1312 # reset=dtr sck=!rts mosi=!txd miso=!cts
1313
1314 programmer
1315 id = "c2n232i";
1316 desc = "serial port banging, reset=dtr sck=!rts mosi=!txd miso=!cts";
1317 type = "serbb";
1318 connection_type = serial;
1319 reset = 4;
1320 sck = ~7;
1321 mosi = ~3;
1322 miso = ~8;
1323 ;
1324
1325 #
1326 # PART DEFINITIONS
1327 #
1328
1329 #------------------------------------------------------------
1330 # ATtiny11
1331 #------------------------------------------------------------
1332
1333 # This is an HVSP-only device.
1334
1335 part
1336 id = "t11";
1337 desc = "ATtiny11";
1338 stk500_devcode = 0x11;
1339 signature = 0x1e 0x90 0x04;
1340 chip_erase_delay = 20000;
1341
1342 timeout = 200;
1343 hvsp_controlstack =
1344 0x4C, 0x0C, 0x1C, 0x2C, 0x3C, 0x64, 0x74, 0x00,
1345 0x68, 0x78, 0x68, 0x68, 0x00, 0x00, 0x68, 0x78,
1346 0x78, 0x00, 0x6D, 0x0C, 0x80, 0x40, 0x20, 0x10,
1347 0x11, 0x08, 0x04, 0x02, 0x03, 0x08, 0x04, 0x00;
1348 hventerstabdelay = 100;
1349 progmodedelay = 0;
1350 hvspcmdexedelay = 0;
1351 synchcycles = 6;
1352 latchcycles = 1;
1353 togglevtg = 1;
1354 poweroffdelay = 25;
1355 resetdelayms = 0;
1356 resetdelayus = 50;
1357 hvleavestabdelay = 100;
1358 resetdelay = 25;
1359 chiperasepolltimeout = 40;
1360 chiperasetime = 0;
1361 programfusepolltimeout = 25;
1362 programlockpolltimeout = 25;
1363
1364 memory "eeprom"
1365 size = 64;
1366 blocksize = 64;
1367 readsize = 256;
1368 delay = 5;
1369 ;
1370
1371 memory "flash"
1372 size = 1024;
1373 blocksize = 128;
1374 readsize = 256;
1375 delay = 3;
1376 ;
1377
1378 memory "signature"
1379 size = 3;
1380 ;
1381
1382 memory "lock"
1383 size = 1;
1384 ;
1385
1386 memory "calibration"
1387 size = 1;
1388 ;
1389
1390 memory "fuse"
1391 size = 1;
1392 ;
1393 ;
1394
1395 #------------------------------------------------------------
1396 # ATtiny12
1397 #------------------------------------------------------------
1398
1399 part
1400 id = "t12";
1401 desc = "ATtiny12";
1402 stk500_devcode = 0x12;
1403 avr910_devcode = 0x55;
1404 signature = 0x1e 0x90 0x05;
1405 chip_erase_delay = 20000;
1406 pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
1407 "x x x x x x x x x x x x x x x x";
1408
1409 chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
1410 "x x x x x x x x x x x x x x x x";
1411
1412 timeout = 200;
1413 stabdelay = 100;
1414 cmdexedelay = 25;
1415 synchloops = 32;
1416 bytedelay = 0;
1417 pollindex = 3;
1418 pollvalue = 0x53;
1419 predelay = 1;
1420 postdelay = 1;
1421 pollmethod = 0;
1422
1423 hvsp_controlstack =
1424 0x4C, 0x0C, 0x1C, 0x2C, 0x3C, 0x64, 0x74, 0x00,
1425 0x68, 0x78, 0x68, 0x68, 0x00, 0x00, 0x68, 0x78,
1426 0x78, 0x00, 0x6D, 0x0C, 0x80, 0x40, 0x20, 0x10,
1427 0x11, 0x08, 0x04, 0x02, 0x03, 0x08, 0x04, 0x00;
1428 hventerstabdelay = 100;
1429 hvspcmdexedelay = 0;
1430 synchcycles = 6;
1431 latchcycles = 1;
1432 togglevtg = 1;
1433 poweroffdelay = 25;
1434 resetdelayms = 0;
1435 resetdelayus = 50;
1436 hvleavestabdelay = 100;
1437 resetdelay = 25;
1438 chiperasepolltimeout = 40;
1439 chiperasetime = 0;
1440 programfusepolltimeout = 25;
1441 programlockpolltimeout = 25;
1442
1443 memory "eeprom"
1444 size = 64;
1445 min_write_delay = 9000;
1446 max_write_delay = 20000;
1447 readback_p1 = 0xff;
1448 readback_p2 = 0xff;
1449 read = "1 0 1 0 0 0 0 0 x x x x x x x x",
1450 "x x a5 a4 a3 a2 a1 a0 o o o o o o o o";
1451
1452 write = "1 1 0 0 0 0 0 0 x x x x x x x x",
1453 "x x a5 a4 a3 a2 a1 a0 i i i i i i i i";
1454
1455 mode = 0x04;
1456 delay = 8;
1457 blocksize = 64;
1458 readsize = 256;
1459 ;
1460
1461 memory "flash"
1462 size = 1024;
1463 min_write_delay = 4500;
1464 max_write_delay = 20000;
1465 readback_p1 = 0xff;
1466 readback_p2 = 0xff;
1467 read_lo = " 0 0 1 0 0 0 0 0",
1468 " x x x x x x x a8",
1469 " a7 a6 a5 a4 a3 a2 a1 a0",
1470 " o o o o o o o o";
1471
1472 read_hi = " 0 0 1 0 1 0 0 0",
1473 " x x x x x x x a8",
1474 " a7 a6 a5 a4 a3 a2 a1 a0",
1475 " o o o o o o o o";
1476
1477 write_lo = " 0 1 0 0 0 0 0 0",
1478 " x x x x x x x a8",
1479 " a7 a6 a5 a4 a3 a2 a1 a0",
1480 " i i i i i i i i";
1481
1482 write_hi = " 0 1 0 0 1 0 0 0",
1483 " x x x x x x x a8",
1484 " a7 a6 a5 a4 a3 a2 a1 a0",
1485 " i i i i i i i i";
1486
1487 mode = 0x04;
1488 delay = 5;
1489 blocksize = 128;
1490 readsize = 256;
1491 ;
1492
1493 memory "signature"
1494 size = 3;
1495 read = "0 0 1 1 0 0 0 0 x x x x x x x x",
1496 "0 0 0 0 0 0 a1 a0 o o o o o o o o";
1497 ;
1498
1499 memory "lock"
1500 size = 1;
1501 read = "0 1 0 1 1 0 0 0 x x x x x x x x",
1502 "x x x x x x x x x x x x x o o x";
1503
1504 write = "1 0 1 0 1 1 0 0 1 1 1 1 1 i i 1",
1505 "x x x x x x x x x x x x x x x x";
1506 min_write_delay = 9000;
1507 max_write_delay = 9000;
1508 ;
1509
1510 memory "calibration"
1511 size = 1;
1512 read = "0 0 1 1 1 0 0 0 x x x x x x x x",
1513 "0 0 0 0 0 0 0 0 o o o o o o o o";
1514 ;
1515
1516 memory "fuse"
1517 size = 1;
1518 read = "0 1 0 1 0 0 0 0 x x x x x x x x",
1519 "x x x x x x x x o o o o o o o o";
1520
1521 write = "1 0 1 0 1 1 0 0 1 0 1 x x x x x",
1522 "x x x x x x x x i i i i i i i i";
1523 min_write_delay = 9000;
1524 max_write_delay = 9000;
1525 ;
1526 ;
1527
1528 #------------------------------------------------------------
1529 # ATtiny13
1530 #------------------------------------------------------------
1531
1532 part
1533 id = "t13";
1534 desc = "ATtiny13";
1535 has_debugwire = yes;
1536 flash_instr = 0xB4, 0x0E, 0x1E;
1537 eeprom_instr = 0xBB, 0xFE, 0xBB, 0xEE, 0xBB, 0xCC, 0xB2, 0x0D,
1538 0xBC, 0x0E, 0xB4, 0x0E, 0xBA, 0x0D, 0xBB, 0xBC,
1539 0x99, 0xE1, 0xBB, 0xAC;
1540 stk500_devcode = 0x14;
1541 signature = 0x1e 0x90 0x07;
1542 chip_erase_delay = 4000;
1543 pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
1544 "x x x x x x x x x x x x x x x x";
1545
1546 chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
1547 "x x x x x x x x x x x x x x x x";
1548
1549 timeout = 200;
1550 stabdelay = 100;
1551 cmdexedelay = 25;
1552 synchloops = 32;
1553 bytedelay = 0;
1554 pollindex = 3;
1555 pollvalue = 0x53;
1556 predelay = 1;
1557 postdelay = 1;
1558 pollmethod = 1;
1559
1560 hvsp_controlstack =
1561 0x4C, 0x0C, 0x1C, 0x2C, 0x3C, 0x64, 0x74, 0x66,
1562 0x68, 0x78, 0x68, 0x68, 0x7A, 0x6A, 0x68, 0x78,
1563 0x78, 0x7D, 0x6D, 0x0C, 0x80, 0x40, 0x20, 0x10,
1564 0x11, 0x08, 0x04, 0x02, 0x03, 0x08, 0x04, 0x00;
1565 hventerstabdelay = 100;
1566 progmodedelay = 0;
1567 hvspcmdexedelay = 0;
1568 synchcycles = 6;
1569 latchcycles = 1;
1570 togglevtg = 1;
1571 poweroffdelay = 25;
1572 resetdelayms = 0;
1573 resetdelayus = 90;
1574 hvleavestabdelay = 100;
1575 resetdelay = 25;
1576 chiperasepolltimeout = 40;
1577 chiperasetime = 0;
1578 programfusepolltimeout = 25;
1579 programlockpolltimeout = 25;
1580
1581 ocdrev = 0;
1582
1583 memory "eeprom"
1584 size = 64;
1585 page_size = 4;
1586 min_write_delay = 4000;
1587 max_write_delay = 4000;
1588 readback_p1 = 0xff;
1589 readback_p2 = 0xff;
1590 read = "1 0 1 0 0 0 0 0 0 0 0 x x x x x",
1591 "x x a5 a4 a3 a2 a1 a0 o o o o o o o o";
1592
1593 write = "1 1 0 0 0 0 0 0 0 0 0 x x x x x",
1594 "x x a5 a4 a3 a2 a1 a0 i i i i i i i i";
1595
1596 loadpage_lo = " 1 1 0 0 0 0 0 1",
1597 " 0 0 0 0 0 0 0 0",
1598 " 0 0 0 0 0 0 a1 a0",
1599 " i i i i i i i i";
1600
1601 writepage = " 1 1 0 0 0 0 1 0",
1602 " 0 0 x x x x x x",
1603 " x x a5 a4 a3 a2 0 0",
1604 " x x x x x x x x";
1605
1606 mode = 0x41;
1607 delay = 5;
1608 blocksize = 4;
1609 readsize = 256;
1610 ;
1611
1612 memory "flash"
1613 paged = yes;
1614 size = 1024;
1615 page_size = 32;
1616 num_pages = 32;
1617 min_write_delay = 4500;
1618 max_write_delay = 4500;
1619 readback_p1 = 0xff;
1620 readback_p2 = 0xff;
1621 read_lo = " 0 0 1 0 0 0 0 0",
1622 " 0 0 0 0 0 0 0 a8",
1623 " a7 a6 a5 a4 a3 a2 a1 a0",
1624 " o o o o o o o o";
1625
1626 read_hi = " 0 0 1 0 1 0 0 0",
1627 " 0 0 0 0 0 0 0 a8",
1628 " a7 a6 a5 a4 a3 a2 a1 a0",
1629 " o o o o o o o o";
1630
1631 loadpage_lo = " 0 1 0 0 0 0 0 0",
1632 " 0 0 0 x x x x x",
1633 " x x x x a3 a2 a1 a0",
1634 " i i i i i i i i";
1635
1636 loadpage_hi = " 0 1 0 0 1 0 0 0",
1637 " 0 0 0 x x x x x",
1638 " x x x x a3 a2 a1 a0",
1639 " i i i i i i i i";
1640
1641 writepage = " 0 1 0 0 1 1 0 0",
1642 " 0 0 0 0 0 0 0 a8",
1643 " a7 a6 a5 a4 x x x x",
1644 " x x x x x x x x";
1645
1646 mode = 0x41;
1647 delay = 6;
1648 blocksize = 32;
1649 readsize = 256;
1650 ;
1651
1652 memory "signature"
1653 size = 3;
1654 read = "0 0 1 1 0 0 0 0 0 0 0 x x x x x",
1655 "x x x x x x a1 a0 o o o o o o o o";
1656 ;
1657
1658 memory "lock"
1659 size = 1;
1660 min_write_delay = 4500;
1661 max_write_delay = 4500;
1662
1663 read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
1664 "x x x x x x x x x x o o o o o o";
1665
1666 write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
1667 "x x x x x x x x 1 1 i i i i i i";
1668 ;
1669
1670 memory "calibration"
1671 size = 2;
1672 read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
1673 "0 0 0 0 0 0 0 a0 o o o o o o o o";
1674 ;
1675
1676 memory "lfuse"
1677 size = 1;
1678 min_write_delay = 4500;
1679 max_write_delay = 4500;
1680
1681 write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
1682 "x x x x x x x x i i i i i i i i";
1683
1684 read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
1685 "x x x x x x x x o o o o o o o o";
1686 ;
1687
1688 memory "hfuse"
1689 size = 1;
1690 min_write_delay = 4500;
1691 max_write_delay = 4500;
1692
1693 write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
1694 "x x x x x x x x i i i i i i i i";
1695
1696 read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
1697 "x x x x x x x x o o o o o o o o";
1698 ;
1699
1700 ;
1701
1702
1703 #------------------------------------------------------------
1704 # ATtiny15
1705 #------------------------------------------------------------
1706
1707 part
1708 id = "t15";
1709 desc = "ATtiny15";
1710 stk500_devcode = 0x13;
1711 avr910_devcode = 0x56;
1712 signature = 0x1e 0x90 0x06;
1713 chip_erase_delay = 8200;
1714 pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
1715 "x x x x x x x x x x x x x x x x";
1716
1717 chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
1718 "x x x x x x x x x x x x x x x x";
1719
1720 timeout = 200;
1721 stabdelay = 100;
1722 cmdexedelay = 25;
1723 synchloops = 32;
1724 bytedelay = 0;
1725 pollindex = 3;
1726 pollvalue = 0x53;
1727 predelay = 1;
1728 postdelay = 1;
1729 pollmethod = 0;
1730
1731 hvsp_controlstack =
1732 0x4C, 0x0C, 0x1C, 0x2C, 0x3C, 0x64, 0x74, 0x00,
1733 0x68, 0x78, 0x68, 0x68, 0x00, 0x00, 0x68, 0x78,
1734 0x78, 0x00, 0x6D, 0x0C, 0x80, 0x40, 0x20, 0x10,
1735 0x11, 0x08, 0x04, 0x02, 0x03, 0x08, 0x04, 0x00;
1736 hventerstabdelay = 100;
1737 hvspcmdexedelay = 5;
1738 synchcycles = 6;
1739 latchcycles = 16;
1740 togglevtg = 1;
1741 poweroffdelay = 25;
1742 resetdelayms = 0;
1743 resetdelayus = 50;
1744 hvleavestabdelay = 100;
1745 resetdelay = 25;
1746 chiperasepolltimeout = 40;
1747 chiperasetime = 0;
1748 programfusepolltimeout = 25;
1749 programlockpolltimeout = 25;
1750
1751 memory "eeprom"
1752 size = 64;
1753 min_write_delay = 8200;
1754 max_write_delay = 8200;
1755 readback_p1 = 0xff;
1756 readback_p2 = 0xff;
1757 read = "1 0 1 0 0 0 0 0 x x x x x x x x",
1758 "x x a5 a4 a3 a2 a1 a0 o o o o o o o o";
1759
1760 write = "1 1 0 0 0 0 0 0 x x x x x x x x",
1761 "x x a5 a4 a3 a2 a1 a0 i i i i i i i i";
1762
1763 mode = 0x04;
1764 delay = 10;
1765 blocksize = 64;
1766 readsize = 256;
1767 ;
1768
1769 memory "flash"
1770 size = 1024;
1771 min_write_delay = 4100;
1772 max_write_delay = 4100;
1773 readback_p1 = 0xff;
1774 readback_p2 = 0xff;
1775 read_lo = " 0 0 1 0 0 0 0 0",
1776 " x x x x x x x a8",
1777 " a7 a6 a5 a4 a3 a2 a1 a0",
1778 " o o o o o o o o";
1779
1780 read_hi = " 0 0 1 0 1 0 0 0",
1781 " x x x x x x x a8",
1782 " a7 a6 a5 a4 a3 a2 a1 a0",
1783 " o o o o o o o o";
1784
1785 write_lo = " 0 1 0 0 0 0 0 0",
1786 " x x x x x x x a8",
1787 " a7 a6 a5 a4 a3 a2 a1 a0",
1788 " i i i i i i i i";
1789
1790 write_hi = " 0 1 0 0 1 0 0 0",
1791 " x x x x x x x a8",
1792 " a7 a6 a5 a4 a3 a2 a1 a0",
1793 " i i i i i i i i";
1794
1795 mode = 0x04;
1796 delay = 5;
1797 blocksize = 128;
1798 readsize = 256;
1799 ;
1800
1801 memory "signature"
1802 size = 3;
1803 read = "0 0 1 1 0 0 0 0 x x x x x x x x",
1804 "0 0 0 0 0 0 a1 a0 o o o o o o o o";
1805 ;
1806
1807 memory "lock"
1808 size = 1;
1809 read = "0 1 0 1 1 0 0 0 x x x x x x x x",
1810 "x x x x x x x x x x x x x o o x";
1811
1812 write = "1 0 1 0 1 1 0 0 1 1 1 1 1 i i 1",
1813 "x x x x x x x x x x x x x x x x";
1814 min_write_delay = 9000;
1815 max_write_delay = 9000;
1816 ;
1817
1818 memory "calibration"
1819 size = 1;
1820 read = "0 0 1 1 1 0 0 0 x x x x x x x x",
1821 "0 0 0 0 0 0 0 0 o o o o o o o o";
1822 ;
1823
1824 memory "fuse"
1825 size = 1;
1826 read = "0 1 0 1 0 0 0 0 x x x x x x x x",
1827 "x x x x x x x x o o o o x x o o";
1828
1829 write = "1 0 1 0 1 1 0 0 1 0 1 x x x x x",
1830 "x x x x x x x x i i i i 1 1 i i";
1831 min_write_delay = 9000;
1832 max_write_delay = 9000;
1833 ;
1834 ;
1835
1836 #------------------------------------------------------------
1837 # AT90s1200
1838 #------------------------------------------------------------
1839
1840 part
1841 id = "1200";
1842 desc = "AT90S1200";
1843 is_at90s1200 = yes;
1844 stk500_devcode = 0x33;
1845 avr910_devcode = 0x13;
1846 signature = 0x1e 0x90 0x01;
1847 pagel = 0xd7;
1848 bs2 = 0xa0;
1849 chip_erase_delay = 20000;
1850 pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
1851 "x x x x x x x x x x x x x x x x";
1852
1853 chip_erase = "1 0 1 0 1 1 0 0 1 0 0 0 0 0 0 0",
1854 "x x x x x x x x x x x x x x x x";
1855
1856 timeout = 200;
1857 stabdelay = 100;
1858 cmdexedelay = 25;
1859 synchloops = 1;
1860 bytedelay = 0;
1861 pollindex = 0;
1862 pollvalue = 0xFF;
1863 predelay = 1;
1864 postdelay = 1;
1865 pollmethod = 0;
1866
1867 pp_controlstack =
1868 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
1869 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
1870 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
1871 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
1872 hventerstabdelay = 100;
1873 progmodedelay = 0;
1874 latchcycles = 0;
1875 togglevtg = 0;
1876 poweroffdelay = 0;
1877 resetdelayms = 0;
1878 resetdelayus = 0;
1879 hvleavestabdelay = 15;
1880 chiperasepulsewidth = 15;
1881 chiperasepolltimeout = 0;
1882 programfusepulsewidth = 2;
1883 programfusepolltimeout = 0;
1884 programlockpulsewidth = 0;
1885 programlockpolltimeout = 1;
1886
1887 memory "eeprom"
1888 size = 64;
1889 min_write_delay = 4000;
1890 max_write_delay = 9000;
1891 readback_p1 = 0x00;
1892 readback_p2 = 0xff;
1893 read = "1 0 1 0 0 0 0 0 x x x x x x x x",
1894 "x x a5 a4 a3 a2 a1 a0 o o o o o o o o";
1895
1896 write = "1 1 0 0 0 0 0 0 x x x x x x x x",
1897 "x x a5 a4 a3 a2 a1 a0 i i i i i i i i";
1898
1899 mode = 0x04;
1900 delay = 20;
1901 blocksize = 32;
1902 readsize = 256;
1903 ;
1904 memory "flash"
1905 size = 1024;
1906 min_write_delay = 4000;
1907 max_write_delay = 9000;
1908 readback_p1 = 0xff;
1909 readback_p2 = 0xff;
1910 read_lo = " 0 0 1 0 0 0 0 0",
1911 " x x x x x x x a8",
1912 " a7 a6 a5 a4 a3 a2 a1 a0",
1913 " o o o o o o o o";
1914
1915 read_hi = " 0 0 1 0 1 0 0 0",
1916 " x x x x x x x a8",
1917 " a7 a6 a5 a4 a3 a2 a1 a0",
1918 " o o o o o o o o";
1919
1920 write_lo = " 0 1 0 0 0 0 0 0",
1921 " x x x x x x x a8",
1922 " a7 a6 a5 a4 a3 a2 a1 a0",
1923 " i i i i i i i i";
1924
1925 write_hi = " 0 1 0 0 1 0 0 0",
1926 " x x x x x x x a8",
1927 " a7 a6 a5 a4 a3 a2 a1 a0",
1928 " i i i i i i i i";
1929
1930 mode = 0x02;
1931 delay = 15;
1932 blocksize = 128;
1933 readsize = 256;
1934 ;
1935 memory "signature"
1936 size = 3;
1937 read = "0 0 1 1 0 0 0 0 x x x x x x x x",
1938 "x x x x x x a1 a0 o o o o o o o o";
1939 ;
1940 memory "fuse"
1941 size = 1;
1942 ;
1943 memory "lock"
1944 size = 1;
1945 min_write_delay = 9000;
1946 max_write_delay = 20000;
1947 write = "1 0 1 0 1 1 0 0 1 1 1 1 1 i i 1",
1948 "x x x x x x x x x x x x x x x x";
1949 ;
1950 ;
1951
1952 #------------------------------------------------------------
1953 # AT90s4414
1954 #------------------------------------------------------------
1955
1956 part
1957 id = "4414";
1958 desc = "AT90S4414";
1959 stk500_devcode = 0x50;
1960 avr910_devcode = 0x28;
1961 signature = 0x1e 0x92 0x01;
1962 chip_erase_delay = 20000;
1963 pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
1964 "x x x x x x x x x x x x x x x x";
1965
1966 chip_erase = "1 0 1 0 1 1 0 0 1 0 0 0 0 0 0 0",
1967 "x x x x x x x x x x x x x x x x";
1968
1969 timeout = 200;
1970 stabdelay = 100;
1971 cmdexedelay = 25;
1972 synchloops = 32;
1973 bytedelay = 0;
1974 pollindex = 3;
1975 pollvalue = 0x53;
1976 predelay = 1;
1977 postdelay = 1;
1978 pollmethod = 0;
1979
1980 pp_controlstack =
1981 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
1982 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
1983 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
1984 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x01;
1985 hventerstabdelay = 100;
1986 progmodedelay = 0;
1987 latchcycles = 0;
1988 togglevtg = 0;
1989 poweroffdelay = 0;
1990 resetdelayms = 0;
1991 resetdelayus = 0;
1992 hvleavestabdelay = 15;
1993 chiperasepulsewidth = 15;
1994 chiperasepolltimeout = 0;
1995 programfusepulsewidth = 2;
1996 programfusepolltimeout = 0;
1997 programlockpulsewidth = 0;
1998 programlockpolltimeout = 1;
1999
2000 memory "eeprom"
2001 size = 256;
2002 min_write_delay = 9000;
2003 max_write_delay = 20000;
2004 readback_p1 = 0x80;
2005 readback_p2 = 0x7f;
2006 read = " 1 0 1 0 0 0 0 0 x x x x x x x a8",
2007 "a7 a6 a5 a4 a3 a2 a1 a0 o o o o o o o o";
2008
2009 write = " 1 1 0 0 0 0 0 0 x x x x x x x a8",
2010 "a7 a6 a5 a4 a3 a2 a1 a0 i i i i i i i i";
2011
2012 mode = 0x04;
2013 delay = 12;
2014 blocksize = 64;
2015 readsize = 256;
2016 ;
2017 memory "flash"
2018 size = 4096;
2019 min_write_delay = 9000;
2020 max_write_delay = 20000;
2021 readback_p1 = 0x7f;
2022 readback_p2 = 0x7f;
2023 read_lo = " 0 0 1 0 0 0 0 0",
2024 " x x x x a11 a10 a9 a8",
2025 " a7 a6 a5 a4 a3 a2 a1 a0",
2026 " o o o o o o o o";
2027
2028 read_hi = " 0 0 1 0 1 0 0 0",
2029 " x x x x a11 a10 a9 a8",
2030 " a7 a6 a5 a4 a3 a2 a1 a0",
2031 " o o o o o o o o";
2032
2033 write_lo = " 0 1 0 0 0 0 0 0",
2034 " x x x x a11 a10 a9 a8",
2035 " a7 a6 a5 a4 a3 a2 a1 a0",
2036 " i i i i i i i i";
2037
2038 write_hi = " 0 1 0 0 1 0 0 0",
2039 " x x x x a11 a10 a9 a8",
2040 " a7 a6 a5 a4 a3 a2 a1 a0",
2041 " i i i i i i i i";
2042
2043 mode = 0x04;
2044 delay = 12;
2045 blocksize = 64;
2046 readsize = 256;
2047 ;
2048 memory "signature"
2049 size = 3;
2050 read = "0 0 1 1 0 0 0 0 x x x x x x x x",
2051 "x x x x x x a1 a0 o o o o o o o o";
2052 ;
2053 memory "fuse"
2054 size = 1;
2055 ;
2056 memory "lock"
2057 size = 1;
2058 write = "1 0 1 0 1 1 0 0 1 1 1 1 1 i i 1",
2059 "x x x x x x x x x x x x x x x x";
2060 min_write_delay = 9000;
2061 max_write_delay = 9000;
2062 ;
2063 ;
2064
2065 #------------------------------------------------------------
2066 # AT90s2313
2067 #------------------------------------------------------------
2068
2069 part
2070 id = "2313";
2071 desc = "AT90S2313";
2072 stk500_devcode = 0x40;
2073 avr910_devcode = 0x20;
2074 signature = 0x1e 0x91 0x01;
2075 chip_erase_delay = 20000;
2076 pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
2077 "x x x x x x x x x x x x x x x x";
2078
2079 chip_erase = "1 0 1 0 1 1 0 0 1 0 0 0 0 0 0 0",
2080 "x x x x x x x x x x x x x x x x";
2081
2082 timeout = 200;
2083 stabdelay = 100;
2084 cmdexedelay = 25;
2085 synchloops = 32;
2086 bytedelay = 0;
2087 pollindex = 3;
2088 pollvalue = 0x53;
2089 predelay = 1;
2090 postdelay = 1;
2091 pollmethod = 0;
2092
2093 pp_controlstack =
2094 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
2095 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
2096 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
2097 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
2098 hventerstabdelay = 100;
2099 progmodedelay = 0;
2100 latchcycles = 0;
2101 togglevtg = 0;
2102 poweroffdelay = 0;
2103 resetdelayms = 0;
2104 resetdelayus = 0;
2105 hvleavestabdelay = 15;
2106 chiperasepulsewidth = 15;
2107 chiperasepolltimeout = 0;
2108 programfusepulsewidth = 2;
2109 programfusepolltimeout = 0;
2110 programlockpulsewidth = 0;
2111 programlockpolltimeout = 1;
2112
2113 memory "eeprom"
2114 size = 128;
2115 min_write_delay = 4000;
2116 max_write_delay = 9000;
2117 readback_p1 = 0x80;
2118 readback_p2 = 0x7f;
2119 read = "1 0 1 0 0 0 0 0 x x x x x x x x",
2120 "x a6 a5 a4 a3 a2 a1 a0 o o o o o o o o";
2121
2122 write = "1 1 0 0 0 0 0 0 x x x x x x x x",
2123 "x a6 a5 a4 a3 a2 a1 a0 i i i i i i i i";
2124
2125 mode = 0x04;
2126 delay = 12;
2127 blocksize = 64;
2128 readsize = 256;
2129 ;
2130 memory "flash"
2131 size = 2048;
2132 min_write_delay = 4000;
2133 max_write_delay = 9000;
2134 readback_p1 = 0x7f;
2135 readback_p2 = 0x7f;
2136 read_lo = " 0 0 1 0 0 0 0 0",
2137 " x x x x x x a9 a8",
2138 " a7 a6 a5 a4 a3 a2 a1 a0",
2139 " o o o o o o o o";
2140
2141 read_hi = " 0 0 1 0 1 0 0 0",
2142 " x x x x x x a9 a8",
2143 " a7 a6 a5 a4 a3 a2 a1 a0",
2144 " o o o o o o o o";
2145
2146 write_lo = " 0 1 0 0 0 0 0 0",
2147 " x x x x x x a9 a8",
2148 " a7 a6 a5 a4 a3 a2 a1 a0",
2149 " i i i i i i i i";
2150
2151 write_hi = " 0 1 0 0 1 0 0 0",
2152 " x x x x x x a9 a8",
2153 " a7 a6 a5 a4 a3 a2 a1 a0",
2154 " i i i i i i i i";
2155
2156 mode = 0x04;
2157 delay = 12;
2158 blocksize = 128;
2159 readsize = 256;
2160 ;
2161 memory "signature"
2162 size = 3;
2163 read = "0 0 1 1 0 0 0 0 x x x x x x x x",
2164 "x x x x x x a1 a0 o o o o o o o o";
2165 ;
2166 memory "fuse"
2167 size = 1;
2168 ;
2169 memory "lock"
2170 size = 1;
2171 write = "1 0 1 0 1 1 0 0 1 1 1 x x i i x",
2172 "x x x x x x x x x x x x x x x x";
2173 min_write_delay = 9000;
2174 max_write_delay = 9000;
2175 ;
2176 ;
2177
2178 #------------------------------------------------------------
2179 # AT90s2333
2180 #------------------------------------------------------------
2181
2182 part
2183 id = "2333";
2184 ##### WARNING: No XML file for device 'AT90S2333'! #####
2185 desc = "AT90S2333";
2186 stk500_devcode = 0x42;
2187 avr910_devcode = 0x34;
2188 signature = 0x1e 0x91 0x05;
2189 chip_erase_delay = 20000;
2190 pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
2191 "x x x x x x x x x x x x x x x x";
2192
2193 chip_erase = "1 0 1 0 1 1 0 0 1 0 0 0 0 0 0 0",
2194 "x x x x x x x x x x x x x x x x";
2195
2196 timeout = 200;
2197 stabdelay = 100;
2198 cmdexedelay = 25;
2199 synchloops = 32;
2200 bytedelay = 0;
2201 pollindex = 3;
2202 pollvalue = 0x53;
2203 predelay = 1;
2204 postdelay = 1;
2205 pollmethod = 0;
2206
2207 pp_controlstack =
2208 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
2209 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
2210 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
2211 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
2212 hventerstabdelay = 100;
2213 progmodedelay = 0;
2214 latchcycles = 0;
2215 togglevtg = 0;
2216 poweroffdelay = 0;
2217 resetdelayms = 0;
2218 resetdelayus = 0;
2219 hvleavestabdelay = 15;
2220 chiperasepulsewidth = 15;
2221 chiperasepolltimeout = 0;
2222 programfusepulsewidth = 2;
2223 programfusepolltimeout = 0;
2224 programlockpulsewidth = 0;
2225 programlockpolltimeout = 1;
2226
2227 memory "eeprom"
2228 size = 128;
2229 min_write_delay = 9000;
2230 max_write_delay = 20000;
2231 readback_p1 = 0x00;
2232 readback_p2 = 0xff;
2233 read = "1 0 1 0 0 0 0 0 x x x x x x x x",
2234 "x a6 a5 a4 a3 a2 a1 a0 o o o o o o o o";
2235
2236 write = "1 1 0 0 0 0 0 0 x x x x x x x x",
2237 "x a6 a5 a4 a3 a2 a1 a0 i i i i i i i i";
2238
2239 mode = 0x04;
2240 delay = 12;
2241 blocksize = 128;
2242 readsize = 256;
2243 ;
2244
2245 memory "flash"
2246 size = 2048;
2247 min_write_delay = 9000;
2248 max_write_delay = 20000;
2249 readback_p1 = 0xff;
2250 readback_p2 = 0xff;
2251 read_lo = " 0 0 1 0 0 0 0 0",
2252 " x x x x x x a9 a8",
2253 " a7 a6 a5 a4 a3 a2 a1 a0",
2254 " o o o o o o o o";
2255
2256 read_hi = " 0 0 1 0 1 0 0 0",
2257 " x x x x x x a9 a8",
2258 " a7 a6 a5 a4 a3 a2 a1 a0",
2259 " o o o o o o o o";
2260
2261 write_lo = " 0 1 0 0 0 0 0 0",
2262 " x x x x x x a9 a8",
2263 " a7 a6 a5 a4 a3 a2 a1 a0",
2264 " i i i i i i i i";
2265
2266 write_hi = " 0 1 0 0 1 0 0 0",
2267 " x x x x x x a9 a8",
2268 " a7 a6 a5 a4 a3 a2 a1 a0",
2269 " i i i i i i i i";
2270
2271 mode = 0x04;
2272 delay = 12;
2273 blocksize = 128;
2274 readsize = 256;
2275 ;
2276
2277 memory "signature"
2278 size = 3;
2279 read = "0 0 1 1 0 0 0 0 x x x x x x x x",
2280 "x x x x x x a1 a0 o o o o o o o o";
2281 ;
2282 memory "fuse"
2283 size = 1;
2284 min_write_delay = 9000;
2285 max_write_delay = 20000;
2286 pwroff_after_write = yes;
2287 read = "0 1 0 1 0 0 0 0 x x x x x x x x",
2288 "x x x x x x x x x x o o o o o o";
2289
2290 write = "1 0 1 0 1 1 0 0 1 0 1 i i i i i",
2291 "x x x x x x x x x x x x x x x x";
2292 ;
2293 memory "lock"
2294 size = 1;
2295 min_write_delay = 9000;
2296 max_write_delay = 20000;
2297 read = "0 1 0 1 1 0 0 0 x x x x x x x x",
2298 "x x x x x x x x x x x x x o o x";
2299
2300 write = "1 0 1 0 1 1 0 0 1 1 1 1 1 i i 1",
2301 "x x x x x x x x x x x x x x x x";
2302 ;
2303 ;
2304
2305
2306 #------------------------------------------------------------
2307 # AT90s2343 (also AT90s2323 and ATtiny22)
2308 #------------------------------------------------------------
2309
2310 part
2311 id = "2343";
2312 desc = "AT90S2343";
2313 stk500_devcode = 0x43;
2314 avr910_devcode = 0x4c;
2315 signature = 0x1e 0x91 0x03;
2316 chip_erase_delay = 18000;
2317 pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
2318 "x x x x x x x x x x x x x x x x";
2319
2320 chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
2321 "x x x x x x x x x x x x x x x x";
2322
2323 timeout = 200;
2324 stabdelay = 100;
2325 cmdexedelay = 25;
2326 synchloops = 32;
2327 bytedelay = 0;
2328 pollindex = 3;
2329 pollvalue = 0x53;
2330 predelay = 1;
2331 postdelay = 1;
2332 pollmethod = 0;
2333
2334 hvsp_controlstack =
2335 0x4C, 0x0C, 0x1C, 0x2C, 0x3C, 0x64, 0x74, 0x00,
2336 0x68, 0x78, 0x68, 0x68, 0x00, 0x00, 0x68, 0x78,
2337 0x78, 0x00, 0x6D, 0x0C, 0x80, 0x40, 0x20, 0x10,
2338 0x11, 0x08, 0x04, 0x02, 0x03, 0x08, 0x04, 0x00;
2339 hventerstabdelay = 100;
2340 hvspcmdexedelay = 0;
2341 synchcycles = 6;
2342 latchcycles = 1;
2343 togglevtg = 0;
2344 poweroffdelay = 25;
2345 resetdelayms = 0;
2346 resetdelayus = 50;
2347 hvleavestabdelay = 100;
2348 resetdelay = 25;
2349 chiperasepolltimeout = 40;
2350 chiperasetime = 0;
2351 programfusepolltimeout = 25;
2352 programlockpolltimeout = 25;
2353
2354 memory "eeprom"
2355 size = 128;
2356 min_write_delay = 9000;
2357 max_write_delay = 20000;
2358 readback_p1 = 0x00;
2359 readback_p2 = 0xff;
2360 read = "1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0",
2361 "x a6 a5 a4 a3 a2 a1 a0 o o o o o o o o";
2362
2363 write = "1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0",
2364 "x a6 a5 a4 a3 a2 a1 a0 i i i i i i i i";
2365
2366 mode = 0x04;
2367 delay = 12;
2368 blocksize = 64;
2369 readsize = 256;
2370 ;
2371 memory "flash"
2372 size = 2048;
2373 min_write_delay = 9000;
2374 max_write_delay = 20000;
2375 readback_p1 = 0xff;
2376 readback_p2 = 0xff;
2377 read_lo = " 0 0 1 0 0 0 0 0",
2378 " x x x x x x a9 a8",
2379 " a7 a6 a5 a4 a3 a2 a1 a0",
2380 " o o o o o o o o";
2381
2382 read_hi = " 0 0 1 0 1 0 0 0",
2383 " x x x x x x a9 a8",
2384 " a7 a6 a5 a4 a3 a2 a1 a0",
2385 " o o o o o o o o";
2386
2387 write_lo = " 0 1 0 0 0 0 0 0",
2388 " x x x x x x a9 a8",
2389 " a7 a6 a5 a4 a3 a2 a1 a0",
2390 " i i i i i i i i";
2391
2392 write_hi = " 0 1 0 0 1 0 0 0",
2393 " x x x x x x a9 a8",
2394 " a7 a6 a5 a4 a3 a2 a1 a0",
2395 " i i i i i i i i";
2396
2397 mode = 0x04;
2398 delay = 12;
2399 blocksize = 128;
2400 readsize = 128;
2401 ;
2402 memory "signature"
2403 size = 3;
2404 read = "0 0 1 1 0 0 0 0 x x x x x x x x",
2405 "x x x x x x a1 a0 o o o o o o o o";
2406 ;
2407 memory "fuse"
2408 size = 1;
2409 min_write_delay = 9000;
2410 max_write_delay = 20000;
2411 read = "0 1 0 1 1 0 0 0 x x x x x x x x",
2412 "x x x x x x x x o o o x x x x o";
2413
2414 write = "1 0 1 0 1 1 0 0 1 0 1 1 1 1 1 i",
2415 "x x x x x x x x x x x x x x x x";
2416 ;
2417 memory "lock"
2418 size = 1;
2419 min_write_delay = 9000;
2420 max_write_delay = 20000;
2421 read = "0 1 0 1 1 0 0 0 x x x x x x x x",
2422 "x x x x x x x x o o o x x x x o";
2423
2424 write = "1 0 1 0 1 1 0 0 1 1 1 1 1 i i 1",
2425 "x x x x x x x x x x x x x x x x";
2426 ;
2427 ;
2428
2429
2430 #------------------------------------------------------------
2431 # AT90s4433
2432 #------------------------------------------------------------
2433
2434 part
2435 id = "4433";
2436 desc = "AT90S4433";
2437 stk500_devcode = 0x51;
2438 avr910_devcode = 0x30;
2439 signature = 0x1e 0x92 0x03;
2440 chip_erase_delay = 20000;
2441 pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
2442 "x x x x x x x x x x x x x x x x";
2443
2444 chip_erase = "1 0 1 0 1 1 0 0 1 0 0 0 0 0 0 0",
2445 "x x x x x x x x x x x x x x x x";
2446
2447 timeout = 200;
2448 stabdelay = 100;
2449 cmdexedelay = 25;
2450 synchloops = 32;
2451 bytedelay = 0;
2452 pollindex = 3;
2453 pollvalue = 0x53;
2454 predelay = 1;
2455 postdelay = 1;
2456 pollmethod = 0;
2457
2458 pp_controlstack =
2459 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
2460 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
2461 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
2462 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
2463 hventerstabdelay = 100;
2464 progmodedelay = 0;
2465 latchcycles = 0;
2466 togglevtg = 0;
2467 poweroffdelay = 0;
2468 resetdelayms = 0;
2469 resetdelayus = 0;
2470 hvleavestabdelay = 15;
2471 chiperasepulsewidth = 15;
2472 chiperasepolltimeout = 0;
2473 programfusepulsewidth = 2;
2474 programfusepolltimeout = 0;
2475 programlockpulsewidth = 0;
2476 programlockpolltimeout = 1;
2477
2478 memory "eeprom"
2479 size = 256;
2480 min_write_delay = 9000;
2481 max_write_delay = 20000;
2482 readback_p1 = 0x00;
2483 readback_p2 = 0xff;
2484 read = " 1 0 1 0 0 0 0 0 x x x x x x x x",
2485 "a7 a6 a5 a4 a3 a2 a1 a0 o o o o o o o o";
2486
2487 write = " 1 1 0 0 0 0 0 0 x x x x x x x x",
2488 "a7 a6 a5 a4 a3 a2 a1 a0 i i i i i i i i";
2489
2490 mode = 0x04;
2491 delay = 12;
2492 blocksize = 128;
2493 readsize = 256;
2494 ;
2495 memory "flash"
2496 size = 4096;
2497 min_write_delay = 9000;
2498 max_write_delay = 20000;
2499 readback_p1 = 0xff;
2500 readback_p2 = 0xff;
2501 read_lo = " 0 0 1 0 0 0 0 0",
2502 " x x x x x a10 a9 a8",
2503 " a7 a6 a5 a4 a3 a2 a1 a0",
2504 " o o o o o o o o";
2505
2506 read_hi = " 0 0 1 0 1 0 0 0",
2507 " x x x x x a10 a9 a8",
2508 " a7 a6 a5 a4 a3 a2 a1 a0",
2509 " o o o o o o o o";
2510
2511 write_lo = " 0 1 0 0 0 0 0 0",
2512 " x x x x x a10 a9 a8",
2513 " a7 a6 a5 a4 a3 a2 a1 a0",
2514 " i i i i i i i i";
2515
2516 write_hi = " 0 1 0 0 1 0 0 0",
2517 " x x x x x a10 a9 a8",
2518 " a7 a6 a5 a4 a3 a2 a1 a0",
2519 " i i i i i i i i";
2520
2521 mode = 0x04;
2522 delay = 12;
2523 blocksize = 128;
2524 readsize = 256;
2525 ;
2526 memory "signature"
2527 size = 3;
2528 read = "0 0 1 1 0 0 0 0 x x x x x x x x",
2529 "x x x x x x a1 a0 o o o o o o o o";
2530 ;
2531 memory "fuse"
2532 size = 1;
2533 min_write_delay = 9000;
2534 max_write_delay = 20000;
2535 pwroff_after_write = yes;
2536 read = "0 1 0 1 0 0 0 0 x x x x x x x x",
2537 "x x x x x x x x x x o o o o o o";
2538
2539 write = "1 0 1 0 1 1 0 0 1 0 1 i i i i i",
2540 "x x x x x x x x x x x x x x x x";
2541 ;
2542 memory "lock"
2543 size = 1;
2544 min_write_delay = 9000;
2545 max_write_delay = 20000;
2546 read = "0 1 0 1 1 0 0 0 x x x x x x x x",
2547 "x x x x x x x x x x x x x o o x";
2548
2549 write = "1 0 1 0 1 1 0 0 1 1 1 1 1 i i 1",
2550 "x x x x x x x x x x x x x x x x";
2551 ;
2552 ;
2553
2554 #------------------------------------------------------------
2555 # AT90s4434
2556 #------------------------------------------------------------
2557
2558 part
2559 id = "4434";
2560 ##### WARNING: No XML file for device 'AT90S4434'! #####
2561 desc = "AT90S4434";
2562 stk500_devcode = 0x52;
2563 avr910_devcode = 0x6c;
2564 signature = 0x1e 0x92 0x02;
2565 chip_erase_delay = 20000;
2566 pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
2567 "x x x x x x x x x x x x x x x x";
2568
2569 chip_erase = "1 0 1 0 1 1 0 0 1 0 0 0 0 0 0 0",
2570 "x x x x x x x x x x x x x x x x";
2571
2572 memory "eeprom"
2573 size = 256;
2574 min_write_delay = 9000;
2575 max_write_delay = 20000;
2576 readback_p1 = 0x00;
2577 readback_p2 = 0xff;
2578 read = " 1 0 1 0 0 0 0 0 x x x x x x x x",
2579 "a7 a6 a5 a4 a3 a2 a1 a0 o o o o o o o o";
2580
2581 write = " 1 1 0 0 0 0 0 0 x x x x x x x x",
2582 "a7 a6 a5 a4 a3 a2 a1 a0 i i i i i i i i";
2583 ;
2584 memory "flash"
2585 size = 4096;
2586 min_write_delay = 9000;
2587 max_write_delay = 20000;
2588 readback_p1 = 0xff;
2589 readback_p2 = 0xff;
2590 read_lo = " 0 0 1 0 0 0 0 0",
2591 " x x x x x a10 a9 a8",
2592 " a7 a6 a5 a4 a3 a2 a1 a0",
2593 " o o o o o o o o";
2594
2595 read_hi = " 0 0 1 0 1 0 0 0",
2596 " x x x x x a10 a9 a8",
2597 " a7 a6 a5 a4 a3 a2 a1 a0",
2598 " o o o o o o o o";
2599
2600 write_lo = " 0 1 0 0 0 0 0 0",
2601 " x x x x x a10 a9 a8",
2602 " a7 a6 a5 a4 a3 a2 a1 a0",
2603 " i i i i i i i i";
2604
2605 write_hi = " 0 1 0 0 1 0 0 0",
2606 " x x x x x a10 a9 a8",
2607 " a7 a6 a5 a4 a3 a2 a1 a0",
2608 " i i i i i i i i";
2609 ;
2610 memory "signature"
2611 size = 3;
2612 read = "0 0 1 1 0 0 0 0 x x x x x x x x",
2613 "x x x x x x a1 a0 o o o o o o o o";
2614 ;
2615 memory "fuse"
2616 size = 1;
2617 min_write_delay = 9000;
2618 max_write_delay = 20000;
2619 read = "0 1 0 1 0 0 0 0 x x x x x x x x",
2620 "x x x x x x x x x x o o o o o o";
2621
2622 write = "1 0 1 0 1 1 0 0 1 0 1 i i i i i",
2623 "x x x x x x x x x x x x x x x x";
2624 ;
2625 memory "lock"
2626 size = 1;
2627 min_write_delay = 9000;
2628 max_write_delay = 20000;
2629 read = "0 1 0 1 1 0 0 0 x x x x x x x x",
2630 "x x x x x x x x x x x x x o o x";
2631
2632 write = "1 0 1 0 1 1 0 0 1 1 1 1 1 i i 1",
2633 "x x x x x x x x x x x x x x x x";
2634 ;
2635 ;
2636
2637 #------------------------------------------------------------
2638 # AT90s8515
2639 #------------------------------------------------------------
2640
2641 part
2642 id = "8515";
2643 desc = "AT90S8515";
2644 stk500_devcode = 0x60;
2645 avr910_devcode = 0x38;
2646 signature = 0x1e 0x93 0x01;
2647 chip_erase_delay = 20000;
2648 pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
2649 "x x x x x x x x x x x x x x x x";
2650
2651 chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
2652 "x x x x x x x x x x x x x x x x";
2653
2654 timeout = 200;
2655 stabdelay = 100;
2656 cmdexedelay = 25;
2657 synchloops = 32;
2658 bytedelay = 0;
2659 pollindex = 3;
2660 pollvalue = 0x53;
2661 predelay = 1;
2662 postdelay = 1;
2663 pollmethod = 0;
2664
2665 pp_controlstack =
2666 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
2667 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
2668 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
2669 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
2670 hventerstabdelay = 100;
2671 progmodedelay = 0;
2672 latchcycles = 0;
2673 togglevtg = 0;
2674 poweroffdelay = 0;
2675 resetdelayms = 0;
2676 resetdelayus = 0;
2677 hvleavestabdelay = 15;
2678 resetdelay = 15;
2679 chiperasepulsewidth = 15;
2680 chiperasepolltimeout = 0;
2681 programfusepulsewidth = 2;
2682 programfusepolltimeout = 0;
2683 programlockpulsewidth = 0;
2684 programlockpolltimeout = 1;
2685
2686 memory "eeprom"
2687 size = 512;
2688 min_write_delay = 4000;
2689 max_write_delay = 9000;
2690 readback_p1 = 0x80;
2691 readback_p2 = 0x7f;
2692 read = " 1 0 1 0 0 0 0 0 x x x x x x x a8",
2693 "a7 a6 a5 a4 a3 a2 a1 a0 o o o o o o o o";
2694
2695 write = " 1 1 0 0 0 0 0 0 x x x x x x x a8",
2696 "a7 a6 a5 a4 a3 a2 a1 a0 i i i i i i i i";
2697
2698 mode = 0x04;
2699 delay = 12;
2700 blocksize = 128;
2701 readsize = 256;
2702 ;
2703 memory "flash"
2704 size = 8192;
2705 min_write_delay = 4000;
2706 max_write_delay = 9000;
2707 readback_p1 = 0x7f;
2708 readback_p2 = 0x7f;
2709 read_lo = " 0 0 1 0 0 0 0 0",
2710 " x x x x a11 a10 a9 a8",
2711 " a7 a6 a5 a4 a3 a2 a1 a0",
2712 " o o o o o o o o";
2713
2714 read_hi = " 0 0 1 0 1 0 0 0",
2715 " x x x x a11 a10 a9 a8",
2716 " a7 a6 a5 a4 a3 a2 a1 a0",
2717 " o o o o o o o o";
2718
2719 write_lo = " 0 1 0 0 0 0 0 0",
2720 " x x x x a11 a10 a9 a8",
2721 " a7 a6 a5 a4 a3 a2 a1 a0",
2722 " i i i i i i i i";
2723
2724 write_hi = " 0 1 0 0 1 0 0 0",
2725 " x x x x a11 a10 a9 a8",
2726 " a7 a6 a5 a4 a3 a2 a1 a0",
2727 " i i i i i i i i";
2728
2729 mode = 0x04;
2730 delay = 12;
2731 blocksize = 128;
2732 readsize = 256;
2733 ;
2734 memory "signature"
2735 size = 3;
2736 read = "0 0 1 1 0 0 0 0 x x x x x x x x",
2737 "x x x x x x a1 a0 o o o o o o o o";
2738 ;
2739 memory "fuse"
2740 size = 1;
2741 ;
2742 memory "lock"
2743 size = 1;
2744 write = "1 0 1 0 1 1 0 0 1 1 1 1 1 i i 1",
2745 "x x x x x x x x x x x x x x x x";
2746 min_write_delay = 9000;
2747 max_write_delay = 9000;
2748 ;
2749 ;
2750
2751 #------------------------------------------------------------
2752 # AT90s8535
2753 #------------------------------------------------------------
2754
2755 part
2756 id = "8535";
2757 desc = "AT90S8535";
2758 stk500_devcode = 0x61;
2759 avr910_devcode = 0x68;
2760 signature = 0x1e 0x93 0x03;
2761 chip_erase_delay = 20000;
2762 pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
2763 "x x x x x x x x x x x x x x x x";
2764
2765 chip_erase = "1 0 1 0 1 1 0 0 1 0 0 0 0 0 0 0",
2766 "x x x x x x x x x x x x x x x x";
2767
2768 timeout = 200;
2769 stabdelay = 100;
2770 cmdexedelay = 25;
2771 synchloops = 32;
2772 bytedelay = 0;
2773 pollindex = 3;
2774 pollvalue = 0x53;
2775 predelay = 1;
2776 postdelay = 1;
2777 pollmethod = 0;
2778
2779 pp_controlstack =
2780 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
2781 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
2782 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
2783 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
2784 hventerstabdelay = 100;
2785 progmodedelay = 0;
2786 latchcycles = 0;
2787 togglevtg = 0;
2788 poweroffdelay = 0;
2789 resetdelayms = 0;
2790 resetdelayus = 0;
2791 hvleavestabdelay = 15;
2792 chiperasepulsewidth = 15;
2793 chiperasepolltimeout = 0;
2794 programfusepulsewidth = 2;
2795 programfusepolltimeout = 0;
2796 programlockpulsewidth = 0;
2797 programlockpolltimeout = 1;
2798
2799 memory "eeprom"
2800 size = 512;
2801 min_write_delay = 9000;
2802 max_write_delay = 20000;
2803 readback_p1 = 0x00;
2804 readback_p2 = 0xff;
2805 read = " 1 0 1 0 0 0 0 0 x x x x x x x a8",
2806 "a7 a6 a5 a4 a3 a2 a1 a0 o o o o o o o o";
2807
2808 write = " 1 1 0 0 0 0 0 0 x x x x x x x a8",
2809 "a7 a6 a5 a4 a3 a2 a1 a0 i i i i i i i i";
2810
2811 mode = 0x04;
2812 delay = 12;
2813 blocksize = 128;
2814 readsize = 256;
2815 ;
2816 memory "flash"
2817 size = 8192;
2818 min_write_delay = 9000;
2819 max_write_delay = 20000;
2820 readback_p1 = 0xff;
2821 readback_p2 = 0xff;
2822 read_lo = " 0 0 1 0 0 0 0 0",
2823 " x x x x a11 a10 a9 a8",
2824 " a7 a6 a5 a4 a3 a2 a1 a0",
2825 " o o o o o o o o";
2826
2827 read_hi = " 0 0 1 0 1 0 0 0",
2828 " x x x x a11 a10 a9 a8",
2829 " a7 a6 a5 a4 a3 a2 a1 a0",
2830 " o o o o o o o o";
2831
2832 write_lo = " 0 1 0 0 0 0 0 0",
2833 " x x x x a11 a10 a9 a8",
2834 " a7 a6 a5 a4 a3 a2 a1 a0",
2835 " i i i i i i i i";
2836
2837 write_hi = " 0 1 0 0 1 0 0 0",
2838 " x x x x a11 a10 a9 a8",
2839 " a7 a6 a5 a4 a3 a2 a1 a0",
2840 " i i i i i i i i";
2841
2842 mode = 0x04;
2843 delay = 12;
2844 blocksize = 128;
2845 readsize = 256;
2846 ;
2847 memory "signature"
2848 size = 3;
2849 read = "0 0 1 1 0 0 0 0 x x x x x x x x",
2850 "x x x x x x a1 a0 o o o o o o o o";
2851 ;
2852 memory "fuse"
2853 size = 1;
2854 read = "0 1 0 1 1 0 0 0 x x x x x x x x",
2855 "x x x x x x x x x x x x x x x o";
2856 write = "1 0 1 0 1 1 0 0 1 0 1 1 1 1 1 i",
2857 "x x x x x x x x x x x x x x x x";
2858 min_write_delay = 9000;
2859 max_write_delay = 9000;
2860 ;
2861 memory "lock"
2862 size = 1;
2863 read = "0 1 0 1 1 0 0 0 x x x x x x x x",
2864 "x x x x x x x x o o x x x x x x";
2865 write = "1 0 1 0 1 1 0 0 1 1 1 1 1 i i 1",
2866 "x x x x x x x x x x x x x x x x";
2867 min_write_delay = 9000;
2868 max_write_delay = 9000;
2869 ;
2870 ;
2871
2872 #------------------------------------------------------------
2873 # ATmega103
2874 #------------------------------------------------------------
2875
2876 part
2877 id = "m103";
2878 desc = "ATmega103";
2879 stk500_devcode = 0xB1;
2880 avr910_devcode = 0x41;
2881 signature = 0x1e 0x97 0x01;
2882 chip_erase_delay = 112000;
2883 pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
2884 "x x x x x x x x x x x x x x x x";
2885
2886 chip_erase = "1 0 1 0 1 1 0 0 1 0 0 0 0 0 0 0",
2887 "x x x x x x x x x x x x x x x x";
2888
2889 timeout = 200;
2890 stabdelay = 100;
2891 cmdexedelay = 25;
2892 synchloops = 32;
2893 bytedelay = 0;
2894 pollindex = 3;
2895 pollvalue = 0x53;
2896 predelay = 1;
2897 postdelay = 1;
2898 pollmethod = 0;
2899
2900 pp_controlstack =
2901 0x0E, 0x1E, 0x8E, 0x9E, 0x2E, 0x3E, 0xAE, 0xBE,
2902 0x4E, 0x5E, 0xCE, 0xDE, 0x6E, 0x7E, 0xEE, 0xDE,
2903 0x66, 0x76, 0xE6, 0xF6, 0x6A, 0x7A, 0xEA, 0x7A,
2904 0x7F, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
2905 hventerstabdelay = 100;
2906 progmodedelay = 0;
2907 latchcycles = 0;
2908 togglevtg = 0;
2909 poweroffdelay = 0;
2910 resetdelayms = 0;
2911 resetdelayus = 0;
2912 hvleavestabdelay = 15;
2913 chiperasepulsewidth = 15;
2914 chiperasepolltimeout = 0;
2915 programfusepulsewidth = 2;
2916 programfusepolltimeout = 0;
2917 programlockpulsewidth = 0;
2918 programlockpolltimeout = 10;
2919
2920 memory "eeprom"
2921 size = 4096;
2922 min_write_delay = 4000;
2923 max_write_delay = 9000;
2924 readback_p1 = 0x80;
2925 readback_p2 = 0x7f;
2926 read = " 1 0 1 0 0 0 0 0",
2927 " x x x x a11 a10 a9 a8",
2928 " a7 a6 a5 a4 a3 a2 a1 a0",
2929 " o o o o o o o o";
2930
2931 write = " 1 1 0 0 0 0 0 0",
2932 " x x x x a11 a10 a9 a8",
2933 " a7 a6 a5 a4 a3 a2 a1 a0",
2934 " i i i i i i i i";
2935
2936 mode = 0x04;
2937 delay = 12;
2938 blocksize = 64;
2939 readsize = 256;
2940 ;
2941
2942 memory "flash"
2943 paged = yes;
2944 size = 131072;
2945 page_size = 256;
2946 num_pages = 512;
2947 min_write_delay = 22000;
2948 max_write_delay = 56000;
2949 readback_p1 = 0xff;
2950 readback_p2 = 0xff;
2951 read_lo = " 0 0 1 0 0 0 0 0",
2952 "a15 a14 a13 a12 a11 a10 a9 a8",
2953 " a7 a6 a5 a4 a3 a2 a1 a0",
2954 " o o o o o o o o";
2955
2956 read_hi = " 0 0 1 0 1 0 0 0",
2957 "a15 a14 a13 a12 a11 a10 a9 a8",
2958 " a7 a6 a5 a4 a3 a2 a1 a0",
2959 " o o o o o o o o";
2960
2961 loadpage_lo = " 0 1 0 0 0 0 0 0",
2962 " x x x x x x x x",
2963 " x a6 a5 a4 a3 a2 a1 a0",
2964 " i i i i i i i i";
2965
2966 loadpage_hi = " 0 1 0 0 1 0 0 0",
2967 " x x x x x x x x",
2968 " x a6 a5 a4 a3 a2 a1 a0",
2969 " i i i i i i i i";
2970
2971 writepage = " 0 1 0 0 1 1 0 0",
2972 "a15 a14 a13 a12 a11 a10 a9 a8",
2973 " a7 x x x x x x x",
2974 " x x x x x x x x";
2975
2976 mode = 0x11;
2977 delay = 70;
2978 blocksize = 256;
2979 readsize = 256;
2980 ;
2981
2982 memory "fuse"
2983 size = 1;
2984 read = "0 1 0 1 0 0 0 0 x x x x x x x x",
2985 "x x x x x x x x x x o x o 1 o o";
2986
2987 write = "1 0 1 0 1 1 0 0 1 0 1 1 i 1 i i",
2988 "x x x x x x x x x x x x x x x x";
2989 min_write_delay = 9000;
2990 max_write_delay = 9000;
2991 ;
2992
2993 memory "lock"
2994 size = 1;
2995 read = "0 1 0 1 1 0 0 0 x x x x x x x x",
2996 "x x x x x x x x x x x x x o o x";
2997
2998 write = "1 0 1 0 1 1 0 0 1 1 1 1 1 i i 1",
2999 "x x x x x x x x x x x x x x x x";
3000 min_write_delay = 9000;
3001 max_write_delay = 9000;
3002 ;
3003
3004 memory "signature"
3005 size = 3;
3006 read = "0 0 1 1 0 0 0 0 x x x x x x x x",
3007 "x x x x x x a1 a0 o o o o o o o o";
3008 ;
3009 ;
3010
3011
3012 #------------------------------------------------------------
3013 # ATmega64
3014 #------------------------------------------------------------
3015
3016 part
3017 id = "m64";
3018 desc = "ATmega64";
3019 has_jtag = yes;
3020 stk500_devcode = 0xA0;
3021 avr910_devcode = 0x45;
3022 signature = 0x1e 0x96 0x02;
3023 chip_erase_delay = 9000;
3024 pagel = 0xD7;
3025 bs2 = 0xA0;
3026 reset = dedicated;
3027 pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
3028 "x x x x x x x x x x x x x x x x";
3029
3030 chip_erase = "1 0 1 0 1 1 0 0 1 0 0 0 0 0 0 0",
3031 "x x x x x x x x x x x x x x x x";
3032
3033 timeout = 200;
3034 stabdelay = 100;
3035 cmdexedelay = 25;
3036 synchloops = 32;
3037 bytedelay = 0;
3038 pollindex = 3;
3039 pollvalue = 0x53;
3040 predelay = 1;
3041 postdelay = 1;
3042 pollmethod = 0;
3043
3044 pp_controlstack =
3045 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
3046 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
3047 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
3048 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
3049 hventerstabdelay = 100;
3050 progmodedelay = 0;
3051 latchcycles = 6;
3052 togglevtg = 0;
3053 poweroffdelay = 0;
3054 resetdelayms = 0;
3055 resetdelayus = 0;
3056 hvleavestabdelay = 15;
3057 chiperasepulsewidth = 0;
3058 chiperasepolltimeout = 10;
3059 programfusepulsewidth = 0;
3060 programfusepolltimeout = 5;
3061 programlockpulsewidth = 0;
3062 programlockpolltimeout = 5;
3063
3064 idr = 0x22;
3065 spmcr = 0x68;
3066 allowfullpagebitstream = yes;
3067
3068 ocdrev = 2;
3069
3070 memory "eeprom"
3071 paged = no; /* leave this "no" */
3072 page_size = 8; /* for parallel programming */
3073 size = 2048;
3074 min_write_delay = 9000;
3075 max_write_delay = 9000;
3076 readback_p1 = 0xff;
3077 readback_p2 = 0xff;
3078 read = " 1 0 1 0 0 0 0 0",
3079 " x x x x a11 a10 a9 a8",
3080 " a7 a6 a5 a4 a3 a2 a1 a0",
3081 " o o o o o o o o";
3082
3083 write = " 1 1 0 0 0 0 0 0",
3084 " x x x x a11 a10 a9 a8",
3085 " a7 a6 a5 a4 a3 a2 a1 a0",
3086 " i i i i i i i i";
3087
3088 mode = 0x04;
3089 delay = 20;
3090 blocksize = 64;
3091 readsize = 256;
3092 ;
3093
3094 memory "flash"
3095 paged = yes;
3096 size = 65536;
3097 page_size = 256;
3098 num_pages = 256;
3099 min_write_delay = 4500;
3100 max_write_delay = 4500;
3101 readback_p1 = 0xff;
3102 readback_p2 = 0xff;
3103 read_lo = " 0 0 1 0 0 0 0 0",
3104 " x a14 a13 a12 a11 a10 a9 a8",
3105 " a7 a6 a5 a4 a3 a2 a1 a0",
3106 " o o o o o o o o";
3107
3108 read_hi = " 0 0 1 0 1 0 0 0",
3109 " x a14 a13 a12 a11 a10 a9 a8",
3110 " a7 a6 a5 a4 a3 a2 a1 a0",
3111 " o o o o o o o o";
3112
3113
3114 loadpage_lo = " 0 1 0 0 0 0 0 0",
3115 " x x x x x x x x",
3116 " x a6 a5 a4 a3 a2 a1 a0",
3117 " i i i i i i i i";
3118
3119 loadpage_hi = " 0 1 0 0 1 0 0 0",
3120 " x x x x x x x x",
3121 " x a6 a5 a4 a3 a2 a1 a0",
3122 " i i i i i i i i";
3123
3124 writepage = " 0 1 0 0 1 1 0 0",
3125 " x a14 a13 a12 a11 a10 a9 a8",
3126 " a7 x x x x x x x",
3127 " x x x x x x x x";
3128
3129 mode = 0x21;
3130 delay = 6;
3131 blocksize = 128;
3132 readsize = 256;
3133 ;
3134
3135 memory "lfuse"
3136 size = 1;
3137 write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
3138 "x x x x x x x x i i i i i i i i";
3139
3140 read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
3141 "x x x x x x x x o o o o o o o o";
3142 min_write_delay = 9000;
3143 max_write_delay = 9000;
3144 ;
3145
3146 memory "hfuse"
3147 size = 1;
3148 write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
3149 "x x x x x x x x i i i i i i i i";
3150
3151 read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
3152 "x x x x x x x x o o o o o o o o";
3153 min_write_delay = 9000;
3154 max_write_delay = 9000;
3155 ;
3156
3157 memory "efuse"
3158 size = 1;
3159 write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
3160 "x x x x x x x x x x x x x x i i";
3161
3162 read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
3163 "x x x x x x x x o o o o o o o o";
3164 min_write_delay = 9000;
3165 max_write_delay = 9000;
3166 ;
3167
3168 memory "lock"
3169 size = 1;
3170 read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
3171 "x x x x x x x x x x o o o o o o";
3172
3173 write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
3174 "x x x x x x x x 1 1 i i i i i i";
3175 min_write_delay = 9000;
3176 max_write_delay = 9000;
3177 ;
3178
3179 memory "calibration"
3180 size = 4;
3181 read = "0 0 1 1 1 0 0 0 x x x x x x x x",
3182 "0 0 0 0 0 0 a1 a0 o o o o o o o o";
3183 ;
3184
3185 memory "signature"
3186 size = 3;
3187 read = "0 0 1 1 0 0 0 0 x x x x x x x x",
3188 "x x x x x x a1 a0 o o o o o o o o";
3189 ;
3190 ;
3191
3192
3193
3194
3195 #------------------------------------------------------------
3196 # ATmega128
3197 #------------------------------------------------------------
3198
3199 part
3200 id = "m128";
3201 desc = "ATmega128";
3202 has_jtag = yes;
3203 stk500_devcode = 0xB2;
3204 avr910_devcode = 0x43;
3205 signature = 0x1e 0x97 0x02;
3206 chip_erase_delay = 9000;
3207 pagel = 0xD7;
3208 bs2 = 0xA0;
3209 reset = dedicated;
3210 pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
3211 "x x x x x x x x x x x x x x x x";
3212
3213 chip_erase = "1 0 1 0 1 1 0 0 1 0 0 0 0 0 0 0",
3214 "x x x x x x x x x x x x x x x x";
3215
3216 timeout = 200;
3217 stabdelay = 100;
3218 cmdexedelay = 25;
3219 synchloops = 32;
3220 bytedelay = 0;
3221 pollindex = 3;
3222 pollvalue = 0x53;
3223 predelay = 1;
3224 postdelay = 1;
3225 pollmethod = 0;
3226
3227 pp_controlstack =
3228 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
3229 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
3230 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
3231 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
3232 hventerstabdelay = 100;
3233 progmodedelay = 0;
3234 latchcycles = 6;
3235 togglevtg = 0;
3236 poweroffdelay = 0;
3237 resetdelayms = 0;
3238 resetdelayus = 0;
3239 hvleavestabdelay = 15;
3240 chiperasepulsewidth = 0;
3241 chiperasepolltimeout = 10;
3242 programfusepulsewidth = 0;
3243 programfusepolltimeout = 5;
3244 programlockpulsewidth = 0;
3245 programlockpolltimeout = 5;
3246
3247 idr = 0x22;
3248 spmcr = 0x68;
3249 rampz = 0x3b;
3250 allowfullpagebitstream = yes;
3251
3252 ocdrev = 1;
3253
3254 memory "eeprom"
3255 paged = no; /* leave this "no" */
3256 page_size = 8; /* for parallel programming */
3257 size = 4096;
3258 min_write_delay = 9000;
3259 max_write_delay = 9000;
3260 readback_p1 = 0xff;
3261 readback_p2 = 0xff;
3262 read = " 1 0 1 0 0 0 0 0",
3263 " x x x x a11 a10 a9 a8",
3264 " a7 a6 a5 a4 a3 a2 a1 a0",
3265 " o o o o o o o o";
3266
3267 write = " 1 1 0 0 0 0 0 0",
3268 " x x x x a11 a10 a9 a8",
3269 " a7 a6 a5 a4 a3 a2 a1 a0",
3270 " i i i i i i i i";
3271
3272 mode = 0x04;
3273 delay = 12;
3274 blocksize = 64;
3275 readsize = 256;
3276 ;
3277
3278 memory "flash"
3279 paged = yes;
3280 size = 131072;
3281 page_size = 256;
3282 num_pages = 512;
3283 min_write_delay = 4500;
3284 max_write_delay = 4500;
3285 readback_p1 = 0xff;
3286 readback_p2 = 0xff;
3287 read_lo = " 0 0 1 0 0 0 0 0",
3288 "a15 a14 a13 a12 a11 a10 a9 a8",
3289 " a7 a6 a5 a4 a3 a2 a1 a0",
3290 " o o o o o o o o";
3291
3292 read_hi = " 0 0 1 0 1 0 0 0",
3293 "a15 a14 a13 a12 a11 a10 a9 a8",
3294 " a7 a6 a5 a4 a3 a2 a1 a0",
3295 " o o o o o o o o";
3296
3297 loadpage_lo = " 0 1 0 0 0 0 0 0",
3298 " x x x x x x x x",
3299 " x a6 a5 a4 a3 a2 a1 a0",
3300 " i i i i i i i i";
3301
3302 loadpage_hi = " 0 1 0 0 1 0 0 0",
3303 " x x x x x x x x",
3304 " x a6 a5 a4 a3 a2 a1 a0",
3305 " i i i i i i i i";
3306
3307 writepage = " 0 1 0 0 1 1 0 0",
3308 "a15 a14 a13 a12 a11 a10 a9 a8",
3309 " a7 x x x x x x x",
3310 " x x x x x x x x";
3311
3312 mode = 0x21;
3313 delay = 6;
3314 blocksize = 128;
3315 readsize = 256;
3316 ;
3317
3318 memory "lfuse"
3319 size = 1;
3320 write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
3321 "x x x x x x x x i i i i i i i i";
3322
3323 read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
3324 "x x x x x x x x o o o o o o o o";
3325 min_write_delay = 9000;
3326 max_write_delay = 9000;
3327 ;
3328
3329 memory "hfuse"
3330 size = 1;
3331 write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
3332 "x x x x x x x x i i i i i i i i";
3333
3334 read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
3335 "x x x x x x x x o o o o o o o o";
3336 min_write_delay = 9000;
3337 max_write_delay = 9000;
3338 ;
3339
3340 memory "efuse"
3341 size = 1;
3342 write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
3343 "x x x x x x x x x x x x x x i i";
3344
3345 read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
3346 "x x x x x x x x o o o o o o o o";
3347 min_write_delay = 9000;
3348 max_write_delay = 9000;
3349 ;
3350
3351 memory "lock"
3352 size = 1;
3353 read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
3354 "x x x x x x x x x x o o o o o o";
3355
3356 write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
3357 "x x x x x x x x 1 1 i i i i i i";
3358 min_write_delay = 9000;
3359 max_write_delay = 9000;
3360 ;
3361
3362 memory "calibration"
3363 size = 4;
3364 read = "0 0 1 1 1 0 0 0 x x x x x x x x",
3365 "0 0 0 0 0 0 a1 a0 o o o o o o o o";
3366 ;
3367
3368 memory "signature"
3369 size = 3;
3370 read = "0 0 1 1 0 0 0 0 x x x x x x x x",
3371 "x x x x x x a1 a0 o o o o o o o o";
3372 ;
3373 ;
3374
3375 #------------------------------------------------------------
3376 # AT90CAN128
3377 #------------------------------------------------------------
3378
3379 part
3380 id = "c128";
3381 desc = "AT90CAN128";
3382 has_jtag = yes;
3383 stk500_devcode = 0xB3;
3384 # avr910_devcode = 0x43;
3385 signature = 0x1e 0x97 0x81;
3386 chip_erase_delay = 9000;
3387 pagel = 0xD7;
3388 bs2 = 0xA0;
3389 reset = dedicated;
3390 pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
3391 "x x x x x x x x x x x x x x x x";
3392
3393 chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
3394 "x x x x x x x x x x x x x x x x";
3395
3396 timeout = 200;
3397 stabdelay = 100;
3398 cmdexedelay = 25;
3399 synchloops = 32;
3400 bytedelay = 0;
3401 pollindex = 3;
3402 pollvalue = 0x53;
3403 predelay = 1;
3404 postdelay = 1;
3405 pollmethod = 1;
3406
3407 pp_controlstack =
3408 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
3409 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
3410 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
3411 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x01;
3412 hventerstabdelay = 100;
3413 progmodedelay = 0;
3414 latchcycles = 6;
3415 togglevtg = 0;
3416 poweroffdelay = 0;
3417 resetdelayms = 0;
3418 resetdelayus = 0;
3419 hvleavestabdelay = 15;
3420 chiperasepulsewidth = 0;
3421 chiperasepolltimeout = 10;
3422 programfusepulsewidth = 0;
3423 programfusepolltimeout = 5;
3424 programlockpulsewidth = 0;
3425 programlockpolltimeout = 5;
3426
3427 idr = 0x31;
3428 spmcr = 0x57;
3429 rampz = 0x3b;
3430 eecr = 0x3f;
3431 allowfullpagebitstream = no;
3432
3433 ocdrev = 3;
3434
3435 memory "eeprom"
3436 paged = no; /* leave this "no" */
3437 page_size = 8; /* for parallel programming */
3438 size = 4096;
3439 min_write_delay = 9000;
3440 max_write_delay = 9000;
3441 readback_p1 = 0xff;
3442 readback_p2 = 0xff;
3443 read = " 1 0 1 0 0 0 0 0",
3444 " 0 0 0 x a11 a10 a9 a8",
3445 " a7 a6 a5 a4 a3 a2 a1 a0",
3446 " o o o o o o o o";
3447
3448 write = " 1 1 0 0 0 0 0 0",
3449 " 0 0 0 x a11 a10 a9 a8",
3450 " a7 a6 a5 a4 a3 a2 a1 a0",
3451 " i i i i i i i i";
3452
3453 loadpage_lo = " 1 1 0 0 0 0 0 1",
3454 " 0 0 0 0 0 0 0 0",
3455 " 0 0 0 0 0 a2 a1 a0",
3456 " i i i i i i i i";
3457
3458 writepage = " 1 1 0 0 0 0 1 0",
3459 " 0 0 x x a11 a10 a9 a8",
3460 " a7 a6 a5 a4 a3 0 0 0",
3461 " x x x x x x x x";
3462
3463
3464 mode = 0x41;
3465 delay = 20;
3466 blocksize = 8;
3467 readsize = 256;
3468 ;
3469
3470 memory "flash"
3471 paged = yes;
3472 size = 131072;
3473 page_size = 256;
3474 num_pages = 512;
3475 min_write_delay = 4500;
3476 max_write_delay = 4500;
3477 readback_p1 = 0xff;
3478 readback_p2 = 0xff;
3479 read_lo = " 0 0 1 0 0 0 0 0",
3480 "a15 a14 a13 a12 a11 a10 a9 a8",
3481 " a7 a6 a5 a4 a3 a2 a1 a0",
3482 " o o o o o o o o";
3483
3484 read_hi = " 0 0 1 0 1 0 0 0",
3485 "a15 a14 a13 a12 a11 a10 a9 a8",
3486 " a7 a6 a5 a4 a3 a2 a1 a0",
3487 " o o o o o o o o";
3488
3489 loadpage_lo = " 0 1 0 0 0 0 0 0",
3490 " 0 0 0 x x x x x",
3491 " x a6 a5 a4 a3 a2 a1 a0",
3492 " i i i i i i i i";
3493
3494 loadpage_hi = " 0 1 0 0 1 0 0 0",
3495 " 0 0 0 x x x x x",
3496 " x a6 a5 a4 a3 a2 a1 a0",
3497 " i i i i i i i i";
3498
3499 writepage = " 0 1 0 0 1 1 0 0",
3500 "a15 a14 a13 a12 a11 a10 a9 a8",
3501 " a7 x x x x x x x",
3502 " x x x x x x x x";
3503
3504 mode = 0x41;
3505 delay = 6;
3506 blocksize = 256;
3507 readsize = 256;
3508 ;
3509
3510 memory "lfuse"
3511 size = 1;
3512 write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
3513 "x x x x x x x x i i i i i i i i";
3514
3515 read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
3516 "x x x x x x x x o o o o o o o o";
3517 min_write_delay = 9000;
3518 max_write_delay = 9000;
3519 ;
3520
3521 memory "hfuse"
3522 size = 1;
3523 write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
3524 "x x x x x x x x i i i i i i i i";
3525
3526 read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
3527 "x x x x x x x x o o o o o o o o";
3528 min_write_delay = 9000;
3529 max_write_delay = 9000;
3530 ;
3531
3532 memory "efuse"
3533 size = 1;
3534 write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
3535 "x x x x x x x x x x x x i i i i";
3536
3537 read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
3538 "x x x x x x x x o o o o o o o o";
3539 min_write_delay = 9000;
3540 max_write_delay = 9000;
3541 ;
3542
3543 memory "lock"
3544 size = 1;
3545 read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
3546 "x x x x x x x x x x o o o o o o";
3547
3548 write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
3549 "x x x x x x x x 1 1 i i i i i i";
3550 min_write_delay = 9000;
3551 max_write_delay = 9000;
3552 ;
3553
3554 memory "calibration"
3555 size = 1;
3556 read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
3557 "0 0 0 0 0 0 0 0 o o o o o o o o";
3558 ;
3559
3560 memory "signature"
3561 size = 3;
3562 read = "0 0 1 1 0 0 0 0 x x x x x x x x",
3563 "x x x x x x a1 a0 o o o o o o o o";
3564 ;
3565 ;
3566
3567 #------------------------------------------------------------
3568 # AT90CAN64
3569 #------------------------------------------------------------
3570
3571 part
3572 id = "c64";
3573 desc = "AT90CAN64";
3574 has_jtag = yes;
3575 stk500_devcode = 0xB3;
3576 # avr910_devcode = 0x43;
3577 signature = 0x1e 0x96 0x81;
3578 chip_erase_delay = 9000;
3579 pagel = 0xD7;
3580 bs2 = 0xA0;
3581 reset = dedicated;
3582 pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
3583 "x x x x x x x x x x x x x x x x";
3584
3585 chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
3586 "x x x x x x x x x x x x x x x x";
3587
3588 timeout = 200;
3589 stabdelay = 100;
3590 cmdexedelay = 25;
3591 synchloops = 32;
3592 bytedelay = 0;
3593 pollindex = 3;
3594 pollvalue = 0x53;
3595 predelay = 1;
3596 postdelay = 1;
3597 pollmethod = 1;
3598
3599 pp_controlstack =
3600 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
3601 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
3602 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
3603 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x01;
3604 hventerstabdelay = 100;
3605 progmodedelay = 0;
3606 latchcycles = 6;
3607 togglevtg = 0;
3608 poweroffdelay = 0;
3609 resetdelayms = 0;
3610 resetdelayus = 0;
3611 hvleavestabdelay = 15;
3612 chiperasepulsewidth = 0;
3613 chiperasepolltimeout = 10;
3614 programfusepulsewidth = 0;
3615 programfusepolltimeout = 5;
3616 programlockpulsewidth = 0;
3617 programlockpolltimeout = 5;
3618
3619 idr = 0x31;
3620 spmcr = 0x57;
3621 rampz = 0x3b;
3622 eecr = 0x3f;
3623 allowfullpagebitstream = no;
3624
3625 ocdrev = 3;
3626
3627 memory "eeprom"
3628 paged = no; /* leave this "no" */
3629 page_size = 8; /* for parallel programming */
3630 size = 2048;
3631 min_write_delay = 9000;
3632 max_write_delay = 9000;
3633 readback_p1 = 0xff;
3634 readback_p2 = 0xff;
3635 read = " 1 0 1 0 0 0 0 0",
3636 " 0 0 0 x x a10 a9 a8",
3637 " a7 a6 a5 a4 a3 a2 a1 a0",
3638 " o o o o o o o o";
3639
3640 write = " 1 1 0 0 0 0 0 0",
3641 " 0 0 0 x x a10 a9 a8",
3642 " a7 a6 a5 a4 a3 a2 a1 a0",
3643 " i i i i i i i i";
3644
3645 loadpage_lo = " 1 1 0 0 0 0 0 1",
3646 " 0 0 0 0 0 0 0 0",
3647 " 0 0 0 0 0 a2 a1 a0",
3648 " i i i i i i i i";
3649
3650 writepage = " 1 1 0 0 0 0 1 0",
3651 " 0 0 x x x a10 a9 a8",
3652 " a7 a6 a5 a4 a3 0 0 0",
3653 " x x x x x x x x";
3654
3655
3656 mode = 0x41;
3657 delay = 20;
3658 blocksize = 8;
3659 readsize = 256;
3660 ;
3661
3662 memory "flash"
3663 paged = yes;
3664 size = 65536;
3665 page_size = 256;
3666 num_pages = 256;
3667 min_write_delay = 4500;
3668 max_write_delay = 4500;
3669 readback_p1 = 0xff;
3670 readback_p2 = 0xff;
3671 read_lo = " 0 0 1 0 0 0 0 0",
3672 "a15 a14 a13 a12 a11 a10 a9 a8",
3673 " a7 a6 a5 a4 a3 a2 a1 a0",
3674 " o o o o o o o o";
3675
3676 read_hi = " 0 0 1 0 1 0 0 0",
3677 "a15 a14 a13 a12 a11 a10 a9 a8",
3678 " a7 a6 a5 a4 a3 a2 a1 a0",
3679 " o o o o o o o o";
3680
3681 loadpage_lo = " 0 1 0 0 0 0 0 0",
3682 " 0 0 0 x x x x x",
3683 " x a6 a5 a4 a3 a2 a1 a0",
3684 " i i i i i i i i";
3685
3686 loadpage_hi = " 0 1 0 0 1 0 0 0",
3687 " 0 0 0 x x x x x",
3688 " x a6 a5 a4 a3 a2 a1 a0",
3689 " i i i i i i i i";
3690
3691 writepage = " 0 1 0 0 1 1 0 0",
3692 "a15 a14 a13 a12 a11 a10 a9 a8",
3693 " a7 x x x x x x x",
3694 " x x x x x x x x";
3695
3696 mode = 0x41;
3697 delay = 6;
3698 blocksize = 256;
3699 readsize = 256;
3700 ;
3701
3702 memory "lfuse"
3703 size = 1;
3704 write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
3705 "x x x x x x x x i i i i i i i i";
3706
3707 read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
3708 "x x x x x x x x o o o o o o o o";
3709 min_write_delay = 9000;
3710 max_write_delay = 9000;
3711 ;
3712
3713 memory "hfuse"
3714 size = 1;
3715 write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
3716 "x x x x x x x x i i i i i i i i";
3717
3718 read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
3719 "x x x x x x x x o o o o o o o o";
3720 min_write_delay = 9000;
3721 max_write_delay = 9000;
3722 ;
3723
3724 memory "efuse"
3725 size = 1;
3726 write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
3727 "x x x x x x x x x x x x i i i i";
3728
3729 read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
3730 "x x x x x x x x o o o o o o o o";
3731 min_write_delay = 9000;
3732 max_write_delay = 9000;
3733 ;
3734
3735 memory "lock"
3736 size = 1;
3737 read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
3738 "x x x x x x x x x x o o o o o o";
3739
3740 write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
3741 "x x x x x x x x 1 1 i i i i i i";
3742 min_write_delay = 9000;
3743 max_write_delay = 9000;
3744 ;
3745
3746 memory "calibration"
3747 size = 1;
3748 read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
3749 "0 0 0 0 0 0 0 0 o o o o o o o o";
3750 ;
3751
3752 memory "signature"
3753 size = 3;
3754 read = "0 0 1 1 0 0 0 0 x x x x x x x x",
3755 "x x x x x x a1 a0 o o o o o o o o";
3756 ;
3757 ;
3758
3759 #------------------------------------------------------------
3760 # AT90CAN32
3761 #------------------------------------------------------------
3762
3763 part
3764 id = "c32";
3765 desc = "AT90CAN32";
3766 has_jtag = yes;
3767 stk500_devcode = 0xB3;
3768 # avr910_devcode = 0x43;
3769 signature = 0x1e 0x95 0x81;
3770 chip_erase_delay = 9000;
3771 pagel = 0xD7;
3772 bs2 = 0xA0;
3773 reset = dedicated;
3774 pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
3775 "x x x x x x x x x x x x x x x x";
3776
3777 chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
3778 "x x x x x x x x x x x x x x x x";
3779
3780 timeout = 200;
3781 stabdelay = 100;
3782 cmdexedelay = 25;
3783 synchloops = 32;
3784 bytedelay = 0;
3785 pollindex = 3;
3786 pollvalue = 0x53;
3787 predelay = 1;
3788 postdelay = 1;
3789 pollmethod = 1;
3790
3791 pp_controlstack =
3792 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
3793 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
3794 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
3795 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x01;
3796 hventerstabdelay = 100;
3797 progmodedelay = 0;
3798 latchcycles = 6;
3799 togglevtg = 0;
3800 poweroffdelay = 0;
3801 resetdelayms = 0;
3802 resetdelayus = 0;
3803 hvleavestabdelay = 15;
3804 chiperasepulsewidth = 0;
3805 chiperasepolltimeout = 10;
3806 programfusepulsewidth = 0;
3807 programfusepolltimeout = 5;
3808 programlockpulsewidth = 0;
3809 programlockpolltimeout = 5;
3810
3811 idr = 0x31;
3812 spmcr = 0x57;
3813 rampz = 0x3b;
3814 eecr = 0x3f;
3815 allowfullpagebitstream = no;
3816
3817 ocdrev = 3;
3818
3819 memory "eeprom"
3820 paged = no; /* leave this "no" */
3821 page_size = 8; /* for parallel programming */
3822 size = 1024;
3823 min_write_delay = 9000;
3824 max_write_delay = 9000;
3825 readback_p1 = 0xff;
3826 readback_p2 = 0xff;
3827 read = " 1 0 1 0 0 0 0 0",
3828 " 0 0 0 x x x a9 a8",
3829 " a7 a6 a5 a4 a3 a2 a1 a0",
3830 " o o o o o o o o";
3831
3832 write = " 1 1 0 0 0 0 0 0",
3833 " 0 0 0 x x x a9 a8",
3834 " a7 a6 a5 a4 a3 a2 a1 a0",
3835 " i i i i i i i i";
3836
3837 loadpage_lo = " 1 1 0 0 0 0 0 1",
3838 " 0 0 0 0 0 0 0 0",
3839 " 0 0 0 0 0 a2 a1 a0",
3840 " i i i i i i i i";
3841
3842 writepage = " 1 1 0 0 0 0 1 0",
3843 " 0 0 x x x x a9 a8",
3844 " a7 a6 a5 a4 a3 0 0 0",
3845 " x x x x x x x x";
3846
3847
3848 mode = 0x41;
3849 delay = 20;
3850 blocksize = 8;
3851 readsize = 256;
3852 ;
3853
3854 memory "flash"
3855 paged = yes;
3856 size = 32768;
3857 page_size = 256;
3858 num_pages = 128;
3859 min_write_delay = 4500;
3860 max_write_delay = 4500;
3861 readback_p1 = 0xff;
3862 readback_p2 = 0xff;
3863 read_lo = " 0 0 1 0 0 0 0 0",
3864 "a15 a14 a13 a12 a11 a10 a9 a8",
3865 " a7 a6 a5 a4 a3 a2 a1 a0",
3866 " o o o o o o o o";
3867
3868 read_hi = " 0 0 1 0 1 0 0 0",
3869 "a15 a14 a13 a12 a11 a10 a9 a8",
3870 " a7 a6 a5 a4 a3 a2 a1 a0",
3871 " o o o o o o o o";
3872
3873 loadpage_lo = " 0 1 0 0 0 0 0 0",
3874 " 0 0 0 x x x x x",
3875 " x a6 a5 a4 a3 a2 a1 a0",
3876 " i i i i i i i i";
3877
3878 loadpage_hi = " 0 1 0 0 1 0 0 0",
3879 " 0 0 0 x x x x x",
3880 " x a6 a5 a4 a3 a2 a1 a0",
3881 " i i i i i i i i";
3882
3883 writepage = " 0 1 0 0 1 1 0 0",
3884 "a15 a14 a13 a12 a11 a10 a9 a8",
3885 " a7 x x x x x x x",
3886 " x x x x x x x x";
3887
3888 mode = 0x41;
3889 delay = 6;
3890 blocksize = 256;
3891 readsize = 256;
3892 ;
3893
3894 memory "lfuse"
3895 size = 1;
3896 write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
3897 "x x x x x x x x i i i i i i i i";
3898
3899 read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
3900 "x x x x x x x x o o o o o o o o";
3901 min_write_delay = 9000;
3902 max_write_delay = 9000;
3903 ;
3904
3905 memory "hfuse"
3906 size = 1;
3907 write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
3908 "x x x x x x x x i i i i i i i i";
3909
3910 read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
3911 "x x x x x x x x o o o o o o o o";
3912 min_write_delay = 9000;
3913 max_write_delay = 9000;
3914 ;
3915
3916 memory "efuse"
3917 size = 1;
3918 write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
3919 "x x x x x x x x x x x x i i i i";
3920
3921 read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
3922 "x x x x x x x x o o o o o o o o";
3923 min_write_delay = 9000;
3924 max_write_delay = 9000;
3925 ;
3926
3927 memory "lock"
3928 size = 1;
3929 read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
3930 "x x x x x x x x x x o o o o o o";
3931
3932 write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
3933 "x x x x x x x x 1 1 i i i i i i";
3934 min_write_delay = 9000;
3935 max_write_delay = 9000;
3936 ;
3937
3938 memory "calibration"
3939 size = 1;
3940 read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
3941 "0 0 0 0 0 0 0 0 o o o o o o o o";
3942 ;
3943
3944 memory "signature"
3945 size = 3;
3946 read = "0 0 1 1 0 0 0 0 x x x x x x x x",
3947 "x x x x x x a1 a0 o o o o o o o o";
3948 ;
3949 ;
3950
3951
3952 #------------------------------------------------------------
3953 # ATmega16
3954 #------------------------------------------------------------
3955
3956 part
3957 id = "m16";
3958 desc = "ATmega16";
3959 has_jtag = yes;
3960 stk500_devcode = 0x82;
3961 avr910_devcode = 0x74;
3962 signature = 0x1e 0x94 0x03;
3963 pagel = 0xd7;
3964 bs2 = 0xa0;
3965 chip_erase_delay = 9000;
3966 pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
3967 "x x x x x x x x x x x x x x x x";
3968
3969 chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
3970 "x x x x x x x x x x x x x x x x";
3971
3972 timeout = 200;
3973 stabdelay = 100;
3974 cmdexedelay = 25;
3975 synchloops = 32;
3976 bytedelay = 0;
3977 pollindex = 3;
3978 pollvalue = 0x53;
3979 predelay = 1;
3980 postdelay = 1;
3981 pollmethod = 0;
3982
3983 pp_controlstack =
3984 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
3985 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
3986 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
3987 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
3988 hventerstabdelay = 100;
3989 progmodedelay = 100;
3990 latchcycles = 6;
3991 togglevtg = 0;
3992 poweroffdelay = 0;
3993 resetdelayms = 0;
3994 resetdelayus = 0;
3995 hvleavestabdelay = 15;
3996 resetdelay = 15;
3997 chiperasepulsewidth = 0;
3998 chiperasepolltimeout = 10;
3999 programfusepulsewidth = 0;
4000 programfusepolltimeout = 5;
4001 programlockpulsewidth = 0;
4002 programlockpolltimeout = 5;
4003
4004 idr = 0x31;
4005 spmcr = 0x57;
4006 allowfullpagebitstream = yes;
4007
4008 ocdrev = 2;
4009
4010 memory "eeprom"
4011 paged = no; /* leave this "no" */
4012 page_size = 4; /* for parallel programming */
4013 size = 512;
4014 min_write_delay = 9000;
4015 max_write_delay = 9000;
4016 readback_p1 = 0xff;
4017 readback_p2 = 0xff;
4018 read = " 1 0 1 0 0 0 0 0",
4019 " 0 0 x x x x a9 a8",
4020 " a7 a6 a5 a4 a3 a2 a1 a0",
4021 " o o o o o o o o";
4022
4023 write = " 1 1 0 0 0 0 0 0",
4024 " 0 0 x x x x a9 a8",
4025 " a7 a6 a5 a4 a3 a2 a1 a0",
4026 " i i i i i i i i";
4027
4028 loadpage_lo = " 1 1 0 0 0 0 0 1",
4029 " 0 0 0 0 0 0 0 0",
4030 " 0 0 0 0 0 0 a1 a0",
4031 " i i i i i i i i";
4032
4033 writepage = " 1 1 0 0 0 0 1 0",
4034 " 0 0 x x x x a9 a8",
4035 " a7 a6 a5 a4 a3 a2 0 0",
4036 " x x x x x x x x";
4037
4038 mode = 0x04;
4039 delay = 10;
4040 blocksize = 128;
4041 readsize = 256;
4042 ;
4043
4044 memory "flash"
4045 paged = yes;
4046 size = 16384;
4047 page_size = 128;
4048 num_pages = 128;
4049 min_write_delay = 4500;
4050 max_write_delay = 4500;
4051 readback_p1 = 0xff;
4052 readback_p2 = 0xff;
4053 read_lo = " 0 0 1 0 0 0 0 0",
4054 " 0 0 a13 a12 a11 a10 a9 a8",
4055 " a7 a6 a5 a4 a3 a2 a1 a0",
4056 " o o o o o o o o";
4057
4058 read_hi = " 0 0 1 0 1 0 0 0",
4059 " 0 0 a13 a12 a11 a10 a9 a8",
4060 " a7 a6 a5 a4 a3 a2 a1 a0",
4061 " o o o o o o o o";
4062
4063 loadpage_lo = " 0 1 0 0 0 0 0 0",
4064 " 0 0 x x x x x x",
4065 " x x a5 a4 a3 a2 a1 a0",
4066 " i i i i i i i i";
4067
4068 loadpage_hi = " 0 1 0 0 1 0 0 0",
4069 " 0 0 x x x x x x",
4070 " x x a5 a4 a3 a2 a1 a0",
4071 " i i i i i i i i";
4072
4073 writepage = " 0 1 0 0 1 1 0 0",
4074 " 0 0 a13 a12 a11 a10 a9 a8",
4075 " a7 a6 x x x x x x",
4076 " x x x x x x x x";
4077
4078 mode = 0x21;
4079 delay = 6;
4080 blocksize = 128;
4081 readsize = 256;
4082 ;
4083
4084 memory "lock"
4085 size = 1;
4086 read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
4087 "x x x x x x x x x x o o o o o o";
4088
4089 write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
4090 "x x x x x x x x 1 1 i i i i i i";
4091 min_write_delay = 9000;
4092 max_write_delay = 9000;
4093 ;
4094
4095 memory "lfuse"
4096 size = 1;
4097 read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
4098 "x x x x x x x x o o o o o o o o";
4099
4100 write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
4101 "x x x x x x x x i i i i i i i i";
4102 min_write_delay = 9000;
4103 max_write_delay = 9000;
4104 ;
4105
4106 memory "hfuse"
4107 size = 1;
4108 read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
4109 "x x x x x x x x o o o o o o o o";
4110
4111 write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
4112 "x x x x x x x x i i i i i i i i";
4113 min_write_delay = 9000;
4114 max_write_delay = 9000;
4115 ;
4116 memory "signature"
4117 size = 3;
4118 read = "0 0 1 1 0 0 0 0 x x x x x x x x",
4119 "x x x x x x a1 a0 o o o o o o o o";
4120 ;
4121 memory "calibration"
4122 size = 4;
4123
4124 read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
4125 "0 0 0 0 0 0 a1 a0 o o o o o o o o";
4126 ;
4127 ;
4128
4129
4130 #------------------------------------------------------------
4131 # ATmega164P
4132 #------------------------------------------------------------
4133
4134 # close to ATmega16
4135
4136 part parent "m16"
4137 id = "m164p";
4138 desc = "ATmega164P";
4139 signature = 0x1e 0x94 0x0a;
4140
4141 progmodedelay = 0;
4142 latchcycles = 5;
4143 togglevtg = 1;
4144 poweroffdelay = 15;
4145 resetdelayms = 1;
4146 allowfullpagebitstream = no;
4147 chip_erase_delay = 55000;
4148
4149 ocdrev = 3;
4150 ;
4151
4152
4153 #------------------------------------------------------------
4154 # ATmega324P
4155 #------------------------------------------------------------
4156
4157 # similar to ATmega164P
4158
4159 part
4160 id = "m324p";
4161 desc = "ATmega324P";
4162 has_jtag = yes;
4163 stk500_devcode = 0x82; # no STK500v1 support, use the ATmega16 one
4164 avr910_devcode = 0x74;
4165 signature = 0x1e 0x95 0x08;
4166 pagel = 0xd7;
4167 bs2 = 0xa0;
4168 chip_erase_delay = 55000;
4169 pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
4170 "x x x x x x x x x x x x x x x x";
4171
4172 chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
4173 "x x x x x x x x x x x x x x x x";
4174
4175 timeout = 200;
4176 stabdelay = 100;
4177 cmdexedelay = 25;
4178 synchloops = 32;
4179 bytedelay = 0;
4180 pollindex = 3;
4181 pollvalue = 0x53;
4182 predelay = 1;
4183 postdelay = 1;
4184 pollmethod = 0;
4185
4186 pp_controlstack =
4187 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
4188 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
4189 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
4190 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
4191 hventerstabdelay = 100;
4192 progmodedelay = 0;
4193 latchcycles = 5;
4194 togglevtg = 1;
4195 poweroffdelay = 15;
4196 resetdelayms = 1;
4197 resetdelayus = 0;
4198 hvleavestabdelay = 15;
4199 chiperasepulsewidth = 0;
4200 chiperasepolltimeout = 10;
4201 programfusepulsewidth = 0;
4202 programfusepolltimeout = 5;
4203 programlockpulsewidth = 0;
4204 programlockpolltimeout = 5;
4205
4206 idr = 0x31;
4207 spmcr = 0x57;
4208 allowfullpagebitstream = no;
4209
4210 ocdrev = 3;
4211
4212 memory "eeprom"
4213 paged = no; /* leave this "no" */
4214 page_size = 4; /* for parallel programming */
4215 size = 1024;
4216 min_write_delay = 9000;
4217 max_write_delay = 9000;
4218 readback_p1 = 0xff;
4219 readback_p2 = 0xff;
4220 read = " 1 0 1 0 0 0 0 0",
4221 " 0 0 x x x a10 a9 a8",
4222 " a7 a6 a5 a4 a3 a2 a1 a0",
4223 " o o o o o o o o";
4224
4225 write = " 1 1 0 0 0 0 0 0",
4226 " 0 0 x x x a10 a9 a8",
4227 " a7 a6 a5 a4 a3 a2 a1 a0",
4228 " i i i i i i i i";
4229
4230 loadpage_lo = " 1 1 0 0 0 0 0 1",
4231 " 0 0 0 0 0 0 0 0",
4232 " 0 0 0 0 0 0 a1 a0",
4233 " i i i i i i i i";
4234
4235 writepage = " 1 1 0 0 0 0 1 0",
4236 " 0 0 x x x a10 a9 a8",
4237 " a7 a6 a5 a4 a3 a2 0 0",
4238 " x x x x x x x x";
4239
4240 mode = 0x41;
4241 delay = 10;
4242 blocksize = 128;
4243 readsize = 256;
4244 ;
4245
4246 memory "flash"
4247 paged = yes;
4248 size = 32768;
4249 page_size = 128;
4250 num_pages = 256;
4251 min_write_delay = 4500;
4252 max_write_delay = 4500;
4253 readback_p1 = 0xff;
4254 readback_p2 = 0xff;
4255 read_lo = " 0 0 1 0 0 0 0 0",
4256 " 0 a14 a13 a12 a11 a10 a9 a8",
4257 " a7 a6 a5 a4 a3 a2 a1 a0",
4258 " o o o o o o o o";
4259
4260 read_hi = " 0 0 1 0 1 0 0 0",
4261 " 0 a14 a13 a12 a11 a10 a9 a8",
4262 " a7 a6 a5 a4 a3 a2 a1 a0",
4263 " o o o o o o o o";
4264
4265 loadpage_lo = " 0 1 0 0 0 0 0 0",
4266 " 0 0 x x x x x x",
4267 " x x a5 a4 a3 a2 a1 a0",
4268 " i i i i i i i i";
4269
4270 loadpage_hi = " 0 1 0 0 1 0 0 0",
4271 " 0 0 x x x x x x",
4272 " x x a5 a4 a3 a2 a1 a0",
4273 " i i i i i i i i";
4274
4275 writepage = " 0 1 0 0 1 1 0 0",
4276 " 0 a14 a13 a12 a11 a10 a9 a8",
4277 " a7 a6 x x x x x x",
4278 " x x x x x x x x";
4279
4280 mode = 0x21;
4281 delay = 6;
4282 blocksize = 256;
4283 readsize = 256;
4284 ;
4285
4286 memory "lock"
4287 size = 1;
4288 read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
4289 "x x x x x x x x x x o o o o o o";
4290
4291 write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
4292 "x x x x x x x x 1 1 i i i i i i";
4293 min_write_delay = 9000;
4294 max_write_delay = 9000;
4295 ;
4296
4297 memory "lfuse"
4298 size = 1;
4299 read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
4300 "x x x x x x x x o o o o o o o o";
4301
4302 write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
4303 "x x x x x x x x i i i i i i i i";
4304 min_write_delay = 9000;
4305 max_write_delay = 9000;
4306 ;
4307
4308 memory "hfuse"
4309 size = 1;
4310 read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
4311 "x x x x x x x x o o o o o o o o";
4312
4313 write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
4314 "x x x x x x x x i i i i i i i i";
4315 min_write_delay = 9000;
4316 max_write_delay = 9000;
4317 ;
4318
4319 memory "efuse"
4320 size = 1;
4321
4322 read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
4323 "x x x x x x x x o o o o o o o o";
4324
4325 write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
4326 "x x x x x x x x 1 1 1 1 1 i i i";
4327 min_write_delay = 9000;
4328 max_write_delay = 9000;
4329 ;
4330
4331 memory "signature"
4332 size = 3;
4333 read = "0 0 1 1 0 0 0 0 x x x x x x x x",
4334 "x x x x x x a1 a0 o o o o o o o o";
4335 ;
4336
4337 memory "calibration"
4338 size = 1;
4339
4340 read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
4341 "0 0 0 0 0 0 0 0 o o o o o o o o";
4342 ;
4343 ;
4344
4345
4346 #------------------------------------------------------------
4347 # ATmega324PA
4348 #------------------------------------------------------------
4349
4350 # similar to ATmega324P
4351
4352 part parent "m324p"
4353 id = "m324pa";
4354 desc = "ATmega324PA";
4355 signature = 0x1e 0x95 0x11;
4356
4357 ocdrev = 3;
4358 ;
4359
4360
4361 #------------------------------------------------------------
4362 # ATmega644
4363 #------------------------------------------------------------
4364
4365 # similar to ATmega164
4366
4367 part
4368 id = "m644";
4369 desc = "ATmega644";
4370 has_jtag = yes;
4371 stk500_devcode = 0x82; # no STK500v1 support, use the ATmega16 one
4372 avr910_devcode = 0x74;
4373 signature = 0x1e 0x96 0x09;
4374 pagel = 0xd7;
4375 bs2 = 0xa0;
4376 chip_erase_delay = 55000;
4377 pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
4378 "x x x x x x x x x x x x x x x x";
4379
4380 chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
4381 "x x x x x x x x x x x x x x x x";
4382
4383 timeout = 200;
4384 stabdelay = 100;
4385 cmdexedelay = 25;
4386 synchloops = 32;
4387 bytedelay = 0;
4388 pollindex = 3;
4389 pollvalue = 0x53;
4390 predelay = 1;
4391 postdelay = 1;
4392 pollmethod = 0;
4393
4394 pp_controlstack =
4395 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
4396 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
4397 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
4398 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x02;
4399 hventerstabdelay = 100;
4400 progmodedelay = 0;
4401 latchcycles = 6;
4402 togglevtg = 0;
4403 poweroffdelay = 0;
4404 resetdelayms = 0;
4405 resetdelayus = 0;
4406 hvleavestabdelay = 15;
4407 chiperasepulsewidth = 0;
4408 chiperasepolltimeout = 10;
4409 programfusepulsewidth = 0;
4410 programfusepolltimeout = 5;
4411 programlockpulsewidth = 0;
4412 programlockpolltimeout = 5;
4413
4414 idr = 0x31;
4415 spmcr = 0x57;
4416 allowfullpagebitstream = no;
4417
4418 ocdrev = 3;
4419
4420 memory "eeprom"
4421 paged = no; /* leave this "no" */
4422 page_size = 8; /* for parallel programming */
4423 size = 2048;
4424 min_write_delay = 9000;
4425 max_write_delay = 9000;
4426 readback_p1 = 0xff;
4427 readback_p2 = 0xff;
4428 read = " 1 0 1 0 0 0 0 0",
4429 " 0 0 x x a11 a10 a9 a8",
4430 " a7 a6 a5 a4 a3 a2 a1 a0",
4431 " o o o o o o o o";
4432
4433 write = " 1 1 0 0 0 0 0 0",
4434 " 0 0 x x a11 a10 a9 a8",
4435 " a7 a6 a5 a4 a3 a2 a1 a0",
4436 " i i i i i i i i";
4437
4438 loadpage_lo = " 1 1 0 0 0 0 0 1",
4439 " 0 0 0 0 0 0 0 0",
4440 " 0 0 0 0 0 a2 a1 a0",
4441 " i i i i i i i i";
4442
4443 writepage = " 1 1 0 0 0 0 1 0",
4444 " 0 0 x x a11 a10 a9 a8",
4445 " a7 a6 a5 a4 a3 0 0 0",
4446 " x x x x x x x x";
4447
4448 mode = 0x41;
4449 delay = 10;
4450 blocksize = 128;
4451 readsize = 256;
4452 ;
4453
4454 memory "flash"
4455 paged = yes;
4456 size = 65536;
4457 page_size = 256;
4458 num_pages = 256;
4459 min_write_delay = 4500;
4460 max_write_delay = 4500;
4461 readback_p1 = 0xff;
4462 readback_p2 = 0xff;
4463 read_lo = " 0 0 1 0 0 0 0 0",
4464 "a15 a14 a13 a12 a11 a10 a9 a8",
4465 " a7 a6 a5 a4 a3 a2 a1 a0",
4466 " o o o o o o o o";
4467
4468 read_hi = " 0 0 1 0 1 0 0 0",
4469 "a15 a14 a13 a12 a11 a10 a9 a8",
4470 " a7 a6 a5 a4 a3 a2 a1 a0",
4471 " o o o o o o o o";
4472
4473 loadpage_lo = " 0 1 0 0 0 0 0 0",
4474 " 0 0 x x x x x x",
4475 " x a6 a5 a4 a3 a2 a1 a0",
4476 " i i i i i i i i";
4477
4478 loadpage_hi = " 0 1 0 0 1 0 0 0",
4479 " 0 0 x x x x x x",
4480 " x a6 a5 a4 a3 a2 a1 a0",
4481 " i i i i i i i i";
4482
4483 writepage = " 0 1 0 0 1 1 0 0",
4484 "a15 a14 a13 a12 a11 a10 a9 a8",
4485 " a7 x x x x x x x",
4486 " x x x x x x x x";
4487
4488 mode = 0x21;
4489 delay = 6;
4490 blocksize = 256;
4491 readsize = 256;
4492 ;
4493
4494 memory "lock"
4495 size = 1;
4496 read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
4497 "x x x x x x x x x x o o o o o o";
4498
4499 write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
4500 "x x x x x x x x 1 1 i i i i i i";
4501 min_write_delay = 9000;
4502 max_write_delay = 9000;
4503 ;
4504
4505 memory "lfuse"
4506 size = 1;
4507 read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
4508 "x x x x x x x x o o o o o o o o";
4509
4510 write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
4511 "x x x x x x x x i i i i i i i i";
4512 min_write_delay = 9000;
4513 max_write_delay = 9000;
4514 ;
4515
4516 memory "hfuse"
4517 size = 1;
4518 read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
4519 "x x x x x x x x o o o o o o o o";
4520
4521 write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
4522 "x x x x x x x x i i i i i i i i";
4523 min_write_delay = 9000;
4524 max_write_delay = 9000;
4525 ;
4526
4527 memory "efuse"
4528 size = 1;
4529
4530 read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
4531 "x x x x x x x x o o o o o o o o";
4532
4533 write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
4534 "x x x x x x x x 1 1 1 1 1 i i i";
4535 min_write_delay = 9000;
4536 max_write_delay = 9000;
4537 ;
4538
4539 memory "signature"
4540 size = 3;
4541 read = "0 0 1 1 0 0 0 0 x x x x x x x x",
4542 "x x x x x x a1 a0 o o o o o o o o";
4543 ;
4544
4545 memory "calibration"
4546 size = 1;
4547
4548 read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
4549 "0 0 0 0 0 0 0 0 o o o o o o o o";
4550 ;
4551 ;
4552
4553 #------------------------------------------------------------
4554 # ATmega644P
4555 #------------------------------------------------------------
4556
4557 # similar to ATmega164p
4558
4559 part parent "m644"
4560 id = "m644p";
4561 desc = "ATmega644P";
4562 signature = 0x1e 0x96 0x0a;
4563
4564 ocdrev = 3;
4565 ;
4566
4567
4568
4569 #------------------------------------------------------------
4570 # ATmega1284P
4571 #------------------------------------------------------------
4572
4573 # similar to ATmega164p
4574
4575 part
4576 id = "m1284p";
4577 desc = "ATmega1284P";
4578 has_jtag = yes;
4579 stk500_devcode = 0x82; # no STK500v1 support, use the ATmega16 one
4580 avr910_devcode = 0x74;
4581 signature = 0x1e 0x97 0x05;
4582 pagel = 0xd7;
4583 bs2 = 0xa0;
4584 chip_erase_delay = 55000;
4585 pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
4586 "x x x x x x x x x x x x x x x x";
4587
4588 chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
4589 "x x x x x x x x x x x x x x x x";
4590
4591 timeout = 200;
4592 stabdelay = 100;
4593 cmdexedelay = 25;
4594 synchloops = 32;
4595 bytedelay = 0;
4596 pollindex = 3;
4597 pollvalue = 0x53;
4598 predelay = 1;
4599 postdelay = 1;
4600 pollmethod = 1;
4601
4602 pp_controlstack =
4603 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
4604 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
4605 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
4606 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x02;
4607 hventerstabdelay = 100;
4608 progmodedelay = 0;
4609 latchcycles = 6;
4610 togglevtg = 1;
4611 poweroffdelay = 15;
4612 resetdelayms = 1;
4613 resetdelayus = 0;
4614 hvleavestabdelay = 15;
4615 chiperasepulsewidth = 0;
4616 chiperasepolltimeout = 10;
4617 programfusepulsewidth = 0;
4618 programfusepolltimeout = 5;
4619 programlockpulsewidth = 0;
4620 programlockpolltimeout = 5;
4621
4622 idr = 0x31;
4623 spmcr = 0x57;
4624 allowfullpagebitstream = no;
4625
4626 ocdrev = 3;
4627
4628 memory "eeprom"
4629 paged = no; /* leave this "no" */
4630 page_size = 8; /* for parallel programming */
4631 size = 4096;
4632 min_write_delay = 9000;
4633 max_write_delay = 9000;
4634 readback_p1 = 0xff;
4635 readback_p2 = 0xff;
4636 read = " 1 0 1 0 0 0 0 0",
4637 " 0 0 x x a11 a10 a9 a8",
4638 " a7 a6 a5 a4 a3 a2 a1 a0",
4639 " o o o o o o o o";
4640
4641 write = " 1 1 0 0 0 0 0 0",
4642 " 0 0 x x a11 a10 a9 a8",
4643 " a7 a6 a5 a4 a3 a2 a1 a0",
4644 " i i i i i i i i";
4645
4646 loadpage_lo = " 1 1 0 0 0 0 0 1",
4647 " 0 0 0 0 0 0 0 0",
4648 " 0 0 0 0 0 a2 a1 a0",
4649 " i i i i i i i i";
4650
4651 writepage = " 1 1 0 0 0 0 1 0",
4652 " 0 0 x x a11 a10 a9 a8",
4653 " a7 a6 a5 a4 a3 0 0 0",
4654 " x x x x x x x x";
4655
4656 mode = 0x41;
4657 delay = 10;
4658 blocksize = 128;
4659 readsize = 256;
4660 ;
4661
4662 memory "flash"
4663 paged = yes;
4664 size = 131072;
4665 page_size = 256;
4666 num_pages = 512;
4667 min_write_delay = 4500;
4668 max_write_delay = 4500;
4669 readback_p1 = 0xff;
4670 readback_p2 = 0xff;
4671 read_lo = " 0 0 1 0 0 0 0 0",
4672 "a15 a14 a13 a12 a11 a10 a9 a8",
4673 " a7 a6 a5 a4 a3 a2 a1 a0",
4674 " o o o o o o o o";
4675
4676 read_hi = " 0 0 1 0 1 0 0 0",
4677 "a15 a14 a13 a12 a11 a10 a9 a8",
4678 " a7 a6 a5 a4 a3 a2 a1 a0",
4679 " o o o o o o o o";
4680
4681 loadpage_lo = " 0 1 0 0 0 0 0 0",
4682 " 0 0 x x x x x x",
4683 " x a6 a5 a4 a3 a2 a1 a0",
4684 " i i i i i i i i";
4685
4686 loadpage_hi = " 0 1 0 0 1 0 0 0",
4687 " 0 0 x x x x x x",
4688 " x a6 a5 a4 a3 a2 a1 a0",
4689 " i i i i i i i i";
4690
4691 writepage = " 0 1 0 0 1 1 0 0",
4692 "a15 a14 a13 a12 a11 a10 a9 a8",
4693 " a7 x x x x x x x",
4694 " x x x x x x x x";
4695
4696 mode = 0x41;
4697 delay = 10;
4698 blocksize = 256;
4699 readsize = 256;
4700 ;
4701
4702 memory "lock"
4703 size = 1;
4704 read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
4705 "x x x x x x x x x x o o o o o o";
4706
4707 write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
4708 "x x x x x x x x 1 1 i i i i i i";
4709 min_write_delay = 9000;
4710 max_write_delay = 9000;
4711 ;
4712
4713 memory "lfuse"
4714 size = 1;
4715 read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
4716 "x x x x x x x x o o o o o o o o";
4717
4718 write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
4719 "x x x x x x x x i i i i i i i i";
4720 min_write_delay = 9000;
4721 max_write_delay = 9000;
4722 ;
4723
4724 memory "hfuse"
4725 size = 1;
4726 read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
4727 "x x x x x x x x o o o o o o o o";
4728
4729 write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
4730 "x x x x x x x x i i i i i i i i";
4731 min_write_delay = 9000;
4732 max_write_delay = 9000;
4733 ;
4734
4735 memory "efuse"
4736 size = 1;
4737
4738 read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
4739 "x x x x x x x x o o o o o o o o";
4740
4741 write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
4742 "x x x x x x x x 1 1 1 1 1 i i i";
4743 min_write_delay = 9000;
4744 max_write_delay = 9000;
4745 ;
4746
4747 memory "signature"
4748 size = 3;
4749 read = "0 0 1 1 0 0 0 0 x x x x x x x x",
4750 "x x x x x x a1 a0 o o o o o o o o";
4751 ;
4752
4753 memory "calibration"
4754 size = 1;
4755
4756 read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
4757 "0 0 0 0 0 0 0 0 o o o o o o o o";
4758 ;
4759 ;
4760
4761
4762
4763 #------------------------------------------------------------
4764 # ATmega162
4765 #------------------------------------------------------------
4766
4767 part
4768 id = "m162";
4769 desc = "ATmega162";
4770 has_jtag = yes;
4771 stk500_devcode = 0x83;
4772 avr910_devcode = 0x63;
4773 signature = 0x1e 0x94 0x04;
4774 chip_erase_delay = 9000;
4775 pagel = 0xd7;
4776 bs2 = 0xa0;
4777
4778 idr = 0x04;
4779 spmcr = 0x57;
4780 allowfullpagebitstream = yes;
4781
4782 pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
4783 "x x x x x x x x x x x x x x x x";
4784
4785 chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
4786 "x x x x x x x x x x x x x x x x";
4787
4788 ocdrev = 2;
4789
4790 memory "flash"
4791 paged = yes;
4792 size = 16384;
4793 page_size = 128;
4794 num_pages = 128;
4795 min_write_delay = 4500;
4796 max_write_delay = 4500;
4797 readback_p1 = 0xff;
4798 readback_p2 = 0xff;
4799
4800 read_lo = " 0 0 1 0 0 0 0 0",
4801 " 0 0 a13 a12 a11 a10 a9 a8",
4802 " a7 a6 a5 a4 a3 a2 a1 a0",
4803 " o o o o o o o o";
4804
4805 read_hi = " 0 0 1 0 1 0 0 0",
4806 " 0 0 a13 a12 a11 a10 a9 a8",
4807 " a7 a6 a5 a4 a3 a2 a1 a0",
4808 " o o o o o o o o";
4809
4810 loadpage_lo = " 0 1 0 0 0 0 0 0",
4811 " 0 0 x x x x x x",
4812 " x x a5 a4 a3 a2 a1 a0",
4813 " i i i i i i i i";
4814
4815 loadpage_hi = " 0 1 0 0 1 0 0 0",
4816 " 0 0 x x x x x x",
4817 " x x a5 a4 a3 a2 a1 a0",
4818 " i i i i i i i i";
4819
4820 writepage = " 0 1 0 0 1 1 0 0",
4821 " 0 0 a13 a12 a11 a10 a9 a8",
4822 " a7 a6 x x x x x x",
4823 " x x x x x x x x";
4824 mode = 0x41;
4825 delay = 10;
4826 blocksize = 128;
4827 readsize = 256;
4828
4829 ;
4830
4831 timeout = 200;
4832 stabdelay = 100;
4833 cmdexedelay = 25;
4834 synchloops = 32;
4835 bytedelay = 0;
4836 pollindex = 3;
4837 pollvalue = 0x53;
4838 predelay = 1;
4839 postdelay = 1;
4840 pollmethod = 0;
4841
4842 pp_controlstack =
4843 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
4844 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
4845 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
4846 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
4847 hventerstabdelay = 100;
4848 progmodedelay = 0;
4849 latchcycles = 6;
4850 togglevtg = 0;
4851 poweroffdelay = 0;
4852 resetdelayms = 0;
4853 resetdelayus = 0;
4854 hvleavestabdelay = 15;
4855 chiperasepulsewidth = 0;
4856 chiperasepolltimeout = 10;
4857 programfusepulsewidth = 0;
4858 programfusepolltimeout = 5;
4859 programlockpulsewidth = 0;
4860 programlockpolltimeout = 5;
4861
4862 memory "eeprom"
4863 paged = no; /* leave this "no" */
4864 page_size = 4; /* for parallel programming */
4865 size = 512;
4866 min_write_delay = 9000;
4867 max_write_delay = 9000;
4868 readback_p1 = 0xff;
4869 readback_p2 = 0xff;
4870
4871 read = " 1 0 1 0 0 0 0 0",
4872 " 0 0 x x x x a9 a8",
4873 " a7 a6 a5 a4 a3 a2 a1 a0",
4874 " o o o o o o o o";
4875
4876 write = " 1 1 0 0 0 0 0 0",
4877 " 0 0 x x x x a9 a8",
4878 " a7 a6 a5 a4 a3 a2 a1 a0",
4879 " i i i i i i i i";
4880
4881 loadpage_lo = " 1 1 0 0 0 0 0 1",
4882 " 0 0 0 0 0 0 0 0",
4883 " 0 0 0 0 0 0 a1 a0",
4884 " i i i i i i i i";
4885
4886 writepage = " 1 1 0 0 0 0 1 0",
4887 " 0 0 x x x x a9 a8",
4888 " a7 a6 a5 a4 a3 a2 0 0",
4889 " x x x x x x x x";
4890
4891 mode = 0x41;
4892 delay = 20;
4893 blocksize = 4;
4894 readsize = 256;
4895 ;
4896
4897 memory "lfuse"
4898 size = 1;
4899 min_write_delay = 16000;
4900 max_write_delay = 16000;
4901 read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
4902 "x x x x x x x x o o o o o o o o";
4903
4904 write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
4905 "x x x x x x x x i i i i i i i i";
4906 ;
4907
4908 memory "hfuse"
4909 size = 1;
4910 min_write_delay = 16000;
4911 max_write_delay = 16000;
4912
4913 read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
4914 "x x x x x x x x o o o o o o o o";
4915
4916 write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
4917 "x x x x x x x x i i i i i i i i";
4918 ;
4919
4920 memory "efuse"
4921 size = 1;
4922 min_write_delay = 16000;
4923 max_write_delay = 16000;
4924
4925 read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
4926 "x x x x x x x x o o o o o o o o";
4927
4928 write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
4929 "x x x x x x x x 1 1 1 1 1 i i i";
4930 ;
4931
4932 memory "lock"
4933 size = 1;
4934 min_write_delay = 16000;
4935 max_write_delay = 16000;
4936
4937 read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
4938 "x x x x x x x x x x o o o o o o";
4939
4940 write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
4941 "x x x x x x x x 1 1 i i i i i i";
4942 ;
4943
4944 memory "signature"
4945 size = 3;
4946
4947 read = "0 0 1 1 0 0 0 0 0 0 x x x x x x",
4948 "x x x x x x a1 a0 o o o o o o o o";
4949 ;
4950
4951 memory "calibration"
4952 size = 1;
4953
4954 read = "0 0 1 1 1 0 0 0 0 0 x x x x x x",
4955 "0 0 0 0 0 0 0 0 o o o o o o o o";
4956 ;
4957 ;
4958
4959
4960
4961 #------------------------------------------------------------
4962 # ATmega163
4963 #------------------------------------------------------------
4964
4965 part
4966 id = "m163";
4967 desc = "ATmega163";
4968 stk500_devcode = 0x81;
4969 avr910_devcode = 0x64;
4970 signature = 0x1e 0x94 0x02;
4971 chip_erase_delay = 32000;
4972 pagel = 0xd7;
4973 bs2 = 0xa0;
4974 pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
4975 "x x x x x x x x x x x x x x x x";
4976
4977 chip_erase = "1 0 1 0 1 1 0 0 1 0 0 0 0 0 0 0",
4978 "x x x x x x x x x x x x x x x x";
4979
4980 timeout = 200;
4981 stabdelay = 100;
4982 cmdexedelay = 25;
4983 synchloops = 32;
4984 bytedelay = 0;
4985 pollindex = 3;
4986 pollvalue = 0x53;
4987 predelay = 1;
4988 postdelay = 1;
4989 pollmethod = 0;
4990
4991 pp_controlstack =
4992 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
4993 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
4994 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
4995 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
4996 hventerstabdelay = 100;
4997 progmodedelay = 0;
4998 latchcycles = 0;
4999 togglevtg = 0;
5000 poweroffdelay = 0;
5001 resetdelayms = 0;
5002 resetdelayus = 0;
5003 hvleavestabdelay = 15;
5004 chiperasepulsewidth = 0;
5005 chiperasepolltimeout = 30;
5006 programfusepulsewidth = 0;
5007 programfusepolltimeout = 2;
5008 programlockpulsewidth = 0;
5009 programlockpolltimeout = 2;
5010
5011
5012 memory "eeprom"
5013 size = 512;
5014 min_write_delay = 4000;
5015 max_write_delay = 4000;
5016 readback_p1 = 0xff;
5017 readback_p2 = 0xff;
5018 read = " 1 0 1 0 0 0 0 0",
5019 " x x x x x x x a8",
5020 " a7 a6 a5 a4 a3 a2 a1 a0",
5021 " o o o o o o o o";
5022
5023 write = " 1 1 0 0 0 0 0 0",
5024 " x x x x x x x a8",
5025 " a7 a6 a5 a4 a3 a2 a1 a0",
5026 " i i i i i i i i";
5027 mode = 0x41;
5028 delay = 20;
5029 blocksize = 4;
5030 readsize = 256;
5031 ;
5032
5033 memory "flash"
5034 paged = yes;
5035 size = 16384;
5036 page_size = 128;
5037 num_pages = 128;
5038 min_write_delay = 16000;
5039 max_write_delay = 16000;
5040 readback_p1 = 0xff;
5041 readback_p2 = 0xff;
5042 read_lo = " 0 0 1 0 0 0 0 0",
5043 " x x x a12 a11 a10 a9 a8",
5044 " a7 a6 a5 a4 a3 a2 a1 a0",
5045 " o o o o o o o o";
5046
5047 read_hi = " 0 0 1 0 1 0 0 0",
5048 " x x x a12 a11 a10 a9 a8",
5049 " a7 a6 a5 a4 a3 a2 a1 a0",
5050 " o o o o o o o o";
5051
5052 loadpage_lo = " 0 1 0 0 0 0 0 0",
5053 " x x x x x x x x",
5054 " x x a5 a4 a3 a2 a1 a0",
5055 " i i i i i i i i";
5056
5057 loadpage_hi = " 0 1 0 0 1 0 0 0",
5058 " x x x x x x x x",
5059 " x x a5 a4 a3 a2 a1 a0",
5060 " i i i i i i i i";
5061
5062 writepage = " 0 1 0 0 1 1 0 0",
5063 " x x x a12 a11 a10 a9 a8",
5064 " a7 a6 x x x x x x",
5065 " x x x x x x x x";
5066
5067 mode = 0x11;
5068 delay = 20;
5069 blocksize = 128;
5070 readsize = 256;
5071 ;
5072
5073 memory "lfuse"
5074 size = 1;
5075 min_write_delay = 2000;
5076 max_write_delay = 2000;
5077 read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
5078 "x x x x x x x x o o x x o o o o";
5079
5080 write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
5081 "x x x x x x x x i i 1 1 i i i i";
5082 ;
5083
5084 memory "hfuse"
5085 size = 1;
5086 min_write_delay = 2000;
5087 max_write_delay = 2000;
5088 read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
5089 "x x x x x x x x x x x x 1 o o o";
5090
5091 write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
5092 "x x x x x x x x 1 1 1 1 1 i i i";
5093 ;
5094
5095 memory "lock"
5096 size = 1;
5097 min_write_delay = 2000;
5098 max_write_delay = 2000;
5099 read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
5100 "x x x x 0 x x x x x o o o o o o";
5101
5102 write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
5103 "x x x x x x x x 1 1 i i i i i i";
5104 ;
5105
5106 memory "signature"
5107 size = 3;
5108 read = "0 0 1 1 0 0 0 0 x x x x x x x x",
5109 "x x x x x x a1 a0 o o o o o o o o";
5110 ;
5111
5112 memory "calibration"
5113 size = 1;
5114 read = "0 0 1 1 1 0 0 0 x x x x x x x x",
5115 "0 0 0 0 0 0 0 0 o o o o o o o o";
5116 ;
5117 ;
5118
5119 #------------------------------------------------------------
5120 # ATmega169
5121 #------------------------------------------------------------
5122
5123 part
5124 id = "m169";
5125 desc = "ATmega169";
5126 has_jtag = yes;
5127 stk500_devcode = 0x85;
5128 avr910_devcode = 0x78;
5129 signature = 0x1e 0x94 0x05;
5130 chip_erase_delay = 9000;
5131 pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
5132 "x x x x x x x x x x x x x x x x";
5133
5134 chip_erase = "1 0 1 0 1 1 0 0 1 0 0 0 0 0 0 0",
5135 "x x x x x x x x x x x x x x x x";
5136 timeout = 200;
5137 stabdelay = 100;
5138 cmdexedelay = 25;
5139 synchloops = 32;
5140 bytedelay = 0;
5141 pollindex = 3;
5142 pollvalue = 0x53;
5143 predelay = 1;
5144 postdelay = 1;
5145 pollmethod = 1;
5146
5147 pp_controlstack =
5148 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
5149 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
5150 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
5151 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
5152 hventerstabdelay = 100;
5153 progmodedelay = 0;
5154 latchcycles = 5;
5155 togglevtg = 1;
5156 poweroffdelay = 15;
5157 resetdelayms = 1;
5158 resetdelayus = 0;
5159 hvleavestabdelay = 15;
5160 chiperasepulsewidth = 0;
5161 chiperasepolltimeout = 10;
5162 programfusepulsewidth = 0;
5163 programfusepolltimeout = 5;
5164 programlockpulsewidth = 0;
5165 programlockpolltimeout = 5;
5166
5167 idr = 0x31;
5168 spmcr = 0x57;
5169
5170 ocdrev = 2;
5171
5172 memory "eeprom"
5173 paged = no; /* leave this "no" */
5174 page_size = 4; /* for parallel programming */
5175 size = 512;
5176 min_write_delay = 9000;
5177 max_write_delay = 9000;
5178 readback_p1 = 0xff;
5179 readback_p2 = 0xff;
5180 read = " 1 0 1 0 0 0 0 0",
5181 " x x x x x x x a8",
5182 " a7 a6 a5 a4 a3 a2 a1 a0",
5183 " o o o o o o o o";
5184
5185 write = " 1 1 0 0 0 0 0 0",
5186 " x x x x x x x a8",
5187 " a7 a6 a5 a4 a3 a2 a1 a0",
5188 " i i i i i i i i";
5189
5190 loadpage_lo = " 1 1 0 0 0 0 0 1",
5191 " 0 0 0 0 0 0 0 0",
5192 " 0 0 0 0 0 0 a1 a0",
5193 " i i i i i i i i";
5194
5195 writepage = " 1 1 0 0 0 0 1 0",
5196 " 0 0 x x x x x a8",
5197 " a7 a6 a5 a4 a3 a2 0 0",
5198 " x x x x x x x x";
5199
5200 mode = 0x41;
5201 delay = 20;
5202 blocksize = 4;
5203 readsize = 256;
5204 ;
5205
5206 memory "flash"
5207 paged = yes;
5208 size = 16384;
5209 page_size = 128;
5210 num_pages = 128;
5211 min_write_delay = 4500;
5212 max_write_delay = 4500;
5213 readback_p1 = 0xff;
5214 readback_p2 = 0xff;
5215 read_lo = " 0 0 1 0 0 0 0 0",
5216 " x x x a12 a11 a10 a9 a8",
5217 " a7 a6 a5 a4 a3 a2 a1 a0",
5218 " o o o o o o o o";
5219
5220 read_hi = " 0 0 1 0 1 0 0 0",
5221 " x x x a12 a11 a10 a9 a8",
5222 " a7 a6 a5 a4 a3 a2 a1 a0",
5223 " o o o o o o o o";
5224
5225 loadpage_lo = " 0 1 0 0 0 0 0 0",
5226 " x x x x x x x x",
5227 " x x a5 a4 a3 a2 a1 a0",
5228 " i i i i i i i i";
5229
5230 loadpage_hi = " 0 1 0 0 1 0 0 0",
5231 " x x x x x x x x",
5232 " x x a5 a4 a3 a2 a1 a0",
5233 " i i i i i i i i";
5234
5235 writepage = " 0 1 0 0 1 1 0 0",
5236 " x x x a12 a11 a10 a9 a8",
5237 " a7 a6 x x x x x x",
5238 " x x x x x x x x";
5239
5240 mode = 0x41;
5241 delay = 6;
5242 blocksize = 128;
5243 readsize = 256;
5244 ;
5245
5246 memory "lfuse"
5247 size = 1;
5248 min_write_delay = 2000;
5249 max_write_delay = 2000;
5250 read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
5251 "x x x x x x x x o o o o o o o o";
5252
5253 write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
5254 "x x x x x x x x i i i i i i i i";
5255 ;
5256
5257 memory "hfuse"
5258 size = 1;
5259 min_write_delay = 2000;
5260 max_write_delay = 2000;
5261 read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
5262 "x x x x x x x x o o o o o o o o";
5263
5264 write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
5265 "x x x x x x x x i i i i i i i i";
5266 ;
5267
5268 memory "efuse"
5269 size = 1;
5270 write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
5271 "x x x x x x x x x x x x i i i i";
5272
5273 read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
5274 "x x x x x x x x o o o o o o o o";
5275 ;
5276
5277 memory "lock"
5278 size = 1;
5279 min_write_delay = 2000;
5280 max_write_delay = 2000;
5281 read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
5282 "x x x x x x x x x x o o o o o o";
5283
5284 write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
5285 "x x x x x x x x 1 1 i i i i i i";
5286 ;
5287
5288 memory "signature"
5289 size = 3;
5290 read = "0 0 1 1 0 0 0 0 0 0 0 x x x x x",
5291 "x x x x x x a1 a0 o o o o o o o o";
5292 ;
5293
5294 memory "calibration"
5295 size = 1;
5296 read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
5297 "0 0 0 0 0 0 0 0 o o o o o o o o";
5298 ;
5299 ;
5300
5301 #------------------------------------------------------------
5302 # ATmega329
5303 #------------------------------------------------------------
5304
5305 part
5306 id = "m329";
5307 desc = "ATmega329";
5308 has_jtag = yes;
5309 # stk500_devcode = 0x85; # no STK500 support, only STK500v2
5310 # avr910_devcode = 0x?; # try the ATmega169 one:
5311 avr910_devcode = 0x75;
5312 signature = 0x1e 0x95 0x03;
5313 chip_erase_delay = 9000;
5314 pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
5315 "x x x x x x x x x x x x x x x x";
5316
5317 chip_erase = "1 0 1 0 1 1 0 0 1 0 0 0 0 0 0 0",
5318 "x x x x x x x x x x x x x x x x";
5319 timeout = 200;
5320 stabdelay = 100;
5321 cmdexedelay = 25;
5322 synchloops = 32;
5323 bytedelay = 0;
5324 pollindex = 3;
5325 pollvalue = 0x53;
5326 predelay = 1;
5327 postdelay = 1;
5328 pollmethod = 1;
5329
5330 pp_controlstack =
5331 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
5332 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
5333 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
5334 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
5335 hventerstabdelay = 100;
5336 progmodedelay = 0;
5337 latchcycles = 5;
5338 togglevtg = 1;
5339 poweroffdelay = 15;
5340 resetdelayms = 1;
5341 resetdelayus = 0;
5342 hvleavestabdelay = 15;
5343 chiperasepulsewidth = 0;
5344 chiperasepolltimeout = 10;
5345 programfusepulsewidth = 0;
5346 programfusepolltimeout = 5;
5347 programlockpulsewidth = 0;
5348 programlockpolltimeout = 5;
5349
5350 idr = 0x31;
5351 spmcr = 0x57;
5352
5353 ocdrev = 3;
5354
5355 memory "eeprom"
5356 paged = no; /* leave this "no" */
5357 page_size = 4; /* for parallel programming */
5358 size = 1024;
5359 min_write_delay = 9000;
5360 max_write_delay = 9000;
5361 readback_p1 = 0xff;
5362 readback_p2 = 0xff;
5363 read = " 1 0 1 0 0 0 0 0",
5364 " x x x x x x a9 a8",
5365 " a7 a6 a5 a4 a3 a2 a1 a0",
5366 " o o o o o o o o";
5367
5368 write = " 1 1 0 0 0 0 0 0",
5369 " x x x x x x a9 a8",
5370 " a7 a6 a5 a4 a3 a2 a1 a0",
5371 " i i i i i i i i";
5372
5373 loadpage_lo = " 1 1 0 0 0 0 0 1",
5374 " 0 0 0 0 0 0 0 0",
5375 " 0 0 0 0 0 0 a1 a0",
5376 " i i i i i i i i";
5377
5378 writepage = " 1 1 0 0 0 0 1 0",
5379 " 0 0 x x x x a9 a8",
5380 " a7 a6 a5 a4 a3 a2 0 0",
5381 " x x x x x x x x";
5382
5383 mode = 0x41;
5384 delay = 20;
5385 blocksize = 8;
5386 readsize = 256;
5387 ;
5388
5389 memory "flash"
5390 paged = yes;
5391 size = 32768;
5392 page_size = 128;
5393 num_pages = 256;
5394 min_write_delay = 4500;
5395 max_write_delay = 4500;
5396 readback_p1 = 0xff;
5397 readback_p2 = 0xff;
5398 read_lo = " 0 0 1 0 0 0 0 0",
5399 " x a14 a13 a12 a11 a10 a9 a8",
5400 " a7 a6 a5 a4 a3 a2 a1 a0",
5401 " o o o o o o o o";
5402
5403 read_hi = " 0 0 1 0 1 0 0 0",
5404 " x a14 a13 a12 a11 a10 a9 a8",
5405 " a7 a6 a5 a4 a3 a2 a1 a0",
5406 " o o o o o o o o";
5407
5408 loadpage_lo = " 0 1 0 0 0 0 0 0",
5409 " x x x x x x x x",
5410 " x x a5 a4 a3 a2 a1 a0",
5411 " i i i i i i i i";
5412
5413 loadpage_hi = " 0 1 0 0 1 0 0 0",
5414 " x x x x x x x x",
5415 " x x a5 a4 a3 a2 a1 a0",
5416 " i i i i i i i i";
5417
5418 writepage = " 0 1 0 0 1 1 0 0",
5419 " x x x a12 a11 a10 a9 a8",
5420 " a7 a6 x x x x x x",
5421 " x x x x x x x x";
5422
5423 mode = 0x41;
5424 delay = 6;
5425 blocksize = 256;
5426 readsize = 256;
5427 ;
5428
5429 memory "lfuse"
5430 size = 1;
5431 min_write_delay = 4500;
5432 max_write_delay = 4500;
5433 read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
5434 "x x x x x x x x o o o o o o o o";
5435
5436 write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
5437 "x x x x x x x x i i i i i i i i";
5438 ;
5439
5440 memory "hfuse"
5441 size = 1;
5442 min_write_delay = 4500;
5443 max_write_delay = 4500;
5444 read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
5445 "x x x x x x x x o o o o o o o o";
5446
5447 write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
5448 "x x x x x x x x i i i i i i i i";
5449 ;
5450
5451 memory "efuse"
5452 size = 1;
5453 min_write_delay = 4500;
5454 max_write_delay = 4500;
5455 read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
5456 "x x x x x x x x o o o o o o o o";
5457
5458 write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
5459 "x x x x x x x x x x x x x i i i";
5460 ;
5461
5462 memory "lock"
5463 size = 1;
5464 min_write_delay = 4500;
5465 max_write_delay = 4500;
5466 read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
5467 "x x x x x x x x x x o o o o o o";
5468
5469 write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
5470 "x x x x x x x x 1 1 i i i i i i";
5471 ;
5472
5473 memory "signature"
5474 size = 3;
5475 read = "0 0 1 1 0 0 0 0 0 0 0 x x x x x",
5476 "x x x x x x a1 a0 o o o o o o o o";
5477 ;
5478
5479 memory "calibration"
5480 size = 1;
5481 read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
5482 "0 0 0 0 0 0 0 0 o o o o o o o o";
5483 ;
5484 ;
5485
5486 #------------------------------------------------------------
5487 # ATmega329P
5488 #------------------------------------------------------------
5489 # Identical to ATmega329 except of the signature
5490
5491 part parent "m329"
5492 id = "m329p";
5493 desc = "ATmega329P";
5494 signature = 0x1e 0x95 0x0b;
5495
5496 ocdrev = 3;
5497 ;
5498
5499 #------------------------------------------------------------
5500 # ATmega3290
5501 #------------------------------------------------------------
5502
5503 # identical to ATmega329
5504
5505 part parent "m329"
5506 id = "m3290";
5507 desc = "ATmega3290";
5508 signature = 0x1e 0x95 0x04;
5509
5510 ocdrev = 3;
5511 ;
5512
5513 #------------------------------------------------------------
5514 # ATmega3290P
5515 #------------------------------------------------------------
5516
5517 # identical to ATmega3290 except of the signature
5518
5519 part parent "m3290"
5520 id = "m3290p";
5521 desc = "ATmega3290P";
5522 signature = 0x1e 0x95 0x0c;
5523
5524 ocdrev = 3;
5525 ;
5526
5527 #------------------------------------------------------------
5528 # ATmega649
5529 #------------------------------------------------------------
5530
5531 part
5532 id = "m649";
5533 desc = "ATmega649";
5534 has_jtag = yes;
5535 # stk500_devcode = 0x85; # no STK500 support, only STK500v2
5536 # avr910_devcode = 0x?; # try the ATmega169 one:
5537 avr910_devcode = 0x75;
5538 signature = 0x1e 0x96 0x03;
5539 chip_erase_delay = 9000;
5540 pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
5541 "x x x x x x x x x x x x x x x x";
5542
5543 chip_erase = "1 0 1 0 1 1 0 0 1 0 0 0 0 0 0 0",
5544 "x x x x x x x x x x x x x x x x";
5545 timeout = 200;
5546 stabdelay = 100;
5547 cmdexedelay = 25;
5548 synchloops = 32;
5549 bytedelay = 0;
5550 pollindex = 3;
5551 pollvalue = 0x53;
5552 predelay = 1;
5553 postdelay = 1;
5554 pollmethod = 1;
5555
5556 pp_controlstack =
5557 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
5558 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
5559 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
5560 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
5561 hventerstabdelay = 100;
5562 progmodedelay = 0;
5563 latchcycles = 5;
5564 togglevtg = 1;
5565 poweroffdelay = 15;
5566 resetdelayms = 1;
5567 resetdelayus = 0;
5568 hvleavestabdelay = 15;
5569 chiperasepulsewidth = 0;
5570 chiperasepolltimeout = 10;
5571 programfusepulsewidth = 0;
5572 programfusepolltimeout = 5;
5573 programlockpulsewidth = 0;
5574 programlockpolltimeout = 5;
5575
5576 idr = 0x31;
5577 spmcr = 0x57;
5578
5579 ocdrev = 3;
5580
5581 memory "eeprom"
5582 paged = no; /* leave this "no" */
5583 page_size = 8; /* for parallel programming */
5584 size = 2048;
5585 min_write_delay = 9000;
5586 max_write_delay = 9000;
5587 readback_p1 = 0xff;
5588 readback_p2 = 0xff;
5589 read = " 1 0 1 0 0 0 0 0",
5590 " x x x x x a10 a9 a8",
5591 " a7 a6 a5 a4 a3 a2 a1 a0",
5592 " o o o o o o o o";
5593
5594 write = " 1 1 0 0 0 0 0 0",
5595 " x x x x x a10 a9 a8",
5596 " a7 a6 a5 a4 a3 a2 a1 a0",
5597 " i i i i i i i i";
5598
5599 loadpage_lo = " 1 1 0 0 0 0 0 1",
5600 " 0 0 0 0 0 0 0 0",
5601 " 0 0 0 0 0 a2 a1 a0",
5602 " i i i i i i i i";
5603
5604 writepage = " 1 1 0 0 0 0 1 0",
5605 " 0 0 x x x a10 a9 a8",
5606 " a7 a6 a5 a4 a3 0 0 0",
5607 " x x x x x x x x";
5608
5609 mode = 0x41;
5610 delay = 20;
5611 blocksize = 8;
5612 readsize = 256;
5613 ;
5614
5615 memory "flash"
5616 paged = yes;
5617 size = 65536;
5618 page_size = 256;
5619 num_pages = 256;
5620 min_write_delay = 4500;
5621 max_write_delay = 4500;
5622 readback_p1 = 0xff;
5623 readback_p2 = 0xff;
5624 read_lo = " 0 0 1 0 0 0 0 0",
5625 "a15 a14 a13 a12 a11 a10 a9 a8",
5626 " a7 a6 a5 a4 a3 a2 a1 a0",
5627 " o o o o o o o o";
5628
5629 read_hi = " 0 0 1 0 1 0 0 0",
5630 "a15 a14 a13 a12 a11 a10 a9 a8",
5631 " a7 a6 a5 a4 a3 a2 a1 a0",
5632 " o o o o o o o o";
5633
5634 loadpage_lo = " 0 1 0 0 0 0 0 0",
5635 " x x x x x x x x",
5636 " x a6 a5 a4 a3 a2 a1 a0",
5637 " i i i i i i i i";
5638
5639 loadpage_hi = " 0 1 0 0 1 0 0 0",
5640 " x x x x x x x x",
5641 " x a6 a5 a4 a3 a2 a1 a0",
5642 " i i i i i i i i";
5643
5644 writepage = " 0 1 0 0 1 1 0 0",
5645 " x x x a12 a11 a10 a9 a8",
5646 " a7 x x x x x x x",
5647 " x x x x x x x x";
5648
5649 mode = 0x41;
5650 delay = 6;
5651 blocksize = 256;
5652 readsize = 256;
5653 ;
5654
5655 memory "lfuse"
5656 size = 1;
5657 min_write_delay = 4500;
5658 max_write_delay = 4500;
5659 read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
5660 "x x x x x x x x o o o o o o o o";
5661
5662 write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
5663 "x x x x x x x x i i i i i i i i";
5664 ;
5665
5666 memory "hfuse"
5667 size = 1;
5668 min_write_delay = 4500;
5669 max_write_delay = 4500;
5670 read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
5671 "x x x x x x x x o o o o o o o o";
5672
5673 write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
5674 "x x x x x x x x i i i i i i i i";
5675 ;
5676
5677 memory "efuse"
5678 size = 1;
5679 min_write_delay = 4500;
5680 max_write_delay = 4500;
5681 read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
5682 "x x x x x x x x o o o o o o o o";
5683
5684 write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
5685 "x x x x x x x x x x x x x i i i";
5686 ;
5687
5688 memory "lock"
5689 size = 1;
5690 min_write_delay = 4500;
5691 max_write_delay = 4500;
5692 read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
5693 "x x x x x x x x x x o o o o o o";
5694
5695 write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
5696 "x x x x x x x x 1 1 i i i i i i";
5697 ;
5698
5699 memory "signature"
5700 size = 3;
5701 read = "0 0 1 1 0 0 0 0 0 0 0 x x x x x",
5702 "x x x x x x a1 a0 o o o o o o o o";
5703 ;
5704
5705 memory "calibration"
5706 size = 1;
5707 read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
5708 "0 0 0 0 0 0 0 0 o o o o o o o o";
5709 ;
5710 ;
5711
5712 #------------------------------------------------------------
5713 # ATmega6490
5714 #------------------------------------------------------------
5715
5716 # identical to ATmega649
5717
5718 part parent "m649"
5719 id = "m6490";
5720 desc = "ATmega6490";
5721 signature = 0x1e 0x96 0x04;
5722
5723 ocdrev = 3;
5724 ;
5725
5726 #------------------------------------------------------------
5727 # ATmega32
5728 #------------------------------------------------------------
5729
5730 part
5731 id = "m32";
5732 desc = "ATmega32";
5733 has_jtag = yes;
5734 stk500_devcode = 0x91;
5735 avr910_devcode = 0x72;
5736 signature = 0x1e 0x95 0x02;
5737 chip_erase_delay = 9000;
5738 pagel = 0xd7;
5739 bs2 = 0xa0;
5740 reset = dedicated;
5741 pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
5742 "x x x x x x x x x x x x x x x x";
5743
5744 chip_erase = "1 0 1 0 1 1 0 0 1 0 0 0 0 0 0 0",
5745 "x x x x x x x x x x x x x x x x";
5746 timeout = 200;
5747 stabdelay = 100;
5748 cmdexedelay = 25;
5749 synchloops = 32;
5750 bytedelay = 0;
5751 pollindex = 3;
5752 pollvalue = 0x53;
5753 predelay = 1;
5754 postdelay = 1;
5755 pollmethod = 0;
5756
5757 pp_controlstack =
5758 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
5759 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
5760 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
5761 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
5762 hventerstabdelay = 100;
5763 progmodedelay = 0;
5764 latchcycles = 6;
5765 togglevtg = 0;
5766 poweroffdelay = 0;
5767 resetdelayms = 0;
5768 resetdelayus = 0;
5769 hvleavestabdelay = 15;
5770 chiperasepulsewidth = 0;
5771 chiperasepolltimeout = 10;
5772 programfusepulsewidth = 0;
5773 programfusepolltimeout = 5;
5774 programlockpulsewidth = 0;
5775 programlockpolltimeout = 5;
5776
5777 idr = 0x31;
5778 spmcr = 0x57;
5779 allowfullpagebitstream = yes;
5780
5781 ocdrev = 2;
5782
5783 memory "eeprom"
5784 paged = no; /* leave this "no" */
5785 page_size = 4; /* for parallel programming */
5786 size = 1024;
5787 min_write_delay = 9000;
5788 max_write_delay = 9000;
5789 readback_p1 = 0xff;
5790 readback_p2 = 0xff;
5791 read = " 1 0 1 0 0 0 0 0",
5792 " 0 0 x x x x a9 a8",
5793 " a7 a6 a5 a4 a3 a2 a1 a0",
5794 " o o o o o o o o";
5795
5796 write = " 1 1 0 0 0 0 0 0",
5797 " 0 0 x x x x a9 a8",
5798 " a7 a6 a5 a4 a3 a2 a1 a0",
5799 " i i i i i i i i";
5800
5801 loadpage_lo = " 1 1 0 0 0 0 0 1",
5802 " 0 0 0 0 0 0 0 0",
5803 " 0 0 0 0 0 0 a1 a0",
5804 " i i i i i i i i";
5805
5806 writepage = " 1 1 0 0 0 0 1 0",
5807 " 0 0 x x x x a9 a8",
5808 " a7 a6 a5 a4 a3 a2 0 0",
5809 " x x x x x x x x";
5810
5811 mode = 0x04;
5812 delay = 10;
5813 blocksize = 64;
5814 readsize = 256;
5815 ;
5816
5817 memory "flash"
5818 paged = yes;
5819 size = 32768;
5820 page_size = 128;
5821 num_pages = 256;
5822 min_write_delay = 4500;
5823 max_write_delay = 4500;
5824 readback_p1 = 0xff;
5825 readback_p2 = 0xff;
5826 read_lo = " 0 0 1 0 0 0 0 0",
5827 " 0 0 a13 a12 a11 a10 a9 a8",
5828 " a7 a6 a5 a4 a3 a2 a1 a0",
5829 " o o o o o o o o";
5830
5831 read_hi = " 0 0 1 0 1 0 0 0",
5832 " 0 0 a13 a12 a11 a10 a9 a8",
5833 " a7 a6 a5 a4 a3 a2 a1 a0",
5834 " o o o o o o o o";
5835
5836 loadpage_lo = " 0 1 0 0 0 0 0 0",
5837 " 0 0 x x x x x x",
5838 " x x a5 a4 a3 a2 a1 a0",
5839 " i i i i i i i i";
5840
5841 loadpage_hi = " 0 1 0 0 1 0 0 0",
5842 " 0 0 x x x x x x",
5843 " x x a5 a4 a3 a2 a1 a0",
5844 " i i i i i i i i";
5845
5846 writepage = " 0 1 0 0 1 1 0 0",
5847 " 0 0 a13 a12 a11 a10 a9 a8",
5848 " a7 a6 x x x x x x",
5849 " x x x x x x x x";
5850
5851 mode = 0x21;
5852 delay = 6;
5853 blocksize = 64;
5854 readsize = 256;
5855 ;
5856
5857 memory "lfuse"
5858 size = 1;
5859 min_write_delay = 2000;
5860 max_write_delay = 2000;
5861 read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
5862 "x x x x x x x x o o o o o o o o";
5863
5864 write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
5865 "x x x x x x x x i i i i i i i i";
5866 ;
5867
5868 memory "hfuse"
5869 size = 1;
5870 min_write_delay = 2000;
5871 max_write_delay = 2000;
5872 read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
5873 "x x x x x x x x o o o o o o o o";
5874
5875 write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
5876 "x x x x x x x x i i i i i i i i";
5877 ;
5878
5879 memory "lock"
5880 size = 1;
5881 min_write_delay = 2000;
5882 max_write_delay = 2000;
5883 read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
5884 "x x x x x x x x x x o o o o o o";
5885
5886 write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
5887 "x x x x x x x x 1 1 i i i i i i";
5888 ;
5889
5890 memory "signature"
5891 size = 3;
5892 read = "0 0 1 1 0 0 0 0 x x x x x x x x",
5893 "x x x x x x a1 a0 o o o o o o o o";
5894 ;
5895
5896 memory "calibration"
5897 size = 4;
5898 read = "0 0 1 1 1 0 0 0 0 0 x x x x x x",
5899 "0 0 0 0 0 0 a1 a0 o o o o o o o o";
5900 ;
5901 ;
5902
5903 #------------------------------------------------------------
5904 # ATmega161
5905 #------------------------------------------------------------
5906
5907 part
5908 id = "m161";
5909 desc = "ATmega161";
5910 stk500_devcode = 0x80;
5911 avr910_devcode = 0x60;
5912 signature = 0x1e 0x94 0x01;
5913 chip_erase_delay = 28000;
5914 pagel = 0xd7;
5915 bs2 = 0xa0;
5916 pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
5917 "x x x x x x x x x x x x x x x x";
5918
5919 chip_erase = "1 0 1 0 1 1 0 0 1 0 0 0 0 0 0 0",
5920 "x x x x x x x x x x x x x x x x";
5921 timeout = 200;
5922 stabdelay = 100;
5923 cmdexedelay = 25;
5924 synchloops = 32;
5925 bytedelay = 0;
5926 pollindex = 3;
5927 pollvalue = 0x53;
5928 predelay = 1;
5929 postdelay = 1;
5930 pollmethod = 0;
5931
5932 pp_controlstack =
5933 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
5934 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
5935 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
5936 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
5937 hventerstabdelay = 100;
5938 progmodedelay = 0;
5939 latchcycles = 0;
5940 togglevtg = 0;
5941 poweroffdelay = 0;
5942 resetdelayms = 0;
5943 resetdelayus = 0;
5944 hvleavestabdelay = 15;
5945 chiperasepulsewidth = 0;
5946 chiperasepolltimeout = 30;
5947 programfusepulsewidth = 0;
5948 programfusepolltimeout = 2;
5949 programlockpulsewidth = 0;
5950 programlockpolltimeout = 2;
5951
5952 memory "eeprom"
5953 size = 512;
5954 min_write_delay = 3400;
5955 max_write_delay = 3400;
5956 readback_p1 = 0xff;
5957 readback_p2 = 0xff;
5958 read = " 1 0 1 0 0 0 0 0",
5959 " x x x x x x x a8",
5960 " a7 a6 a5 a4 a3 a2 a1 a0",
5961 " o o o o o o o o";
5962
5963 write = " 1 1 0 0 0 0 0 0",
5964 " x x x x x x x a8",
5965 " a7 a6 a5 a4 a3 a2 a1 a0",
5966 " i i i i i i i i";
5967
5968 mode = 0x04;
5969 delay = 5;
5970 blocksize = 128;
5971 readsize = 256;
5972 ;
5973
5974 memory "flash"
5975 paged = yes;
5976 size = 16384;
5977 page_size = 128;
5978 num_pages = 128;
5979 min_write_delay = 14000;
5980 max_write_delay = 14000;
5981 readback_p1 = 0xff;
5982 readback_p2 = 0xff;
5983 read_lo = " 0 0 1 0 0 0 0 0",
5984 " x x x a12 a11 a10 a9 a8",
5985 " a7 a6 a5 a4 a3 a2 a1 a0",
5986 " o o o o o o o o";
5987
5988 read_hi = " 0 0 1 0 1 0 0 0",
5989 " x x x a12 a11 a10 a9 a8",
5990 " a7 a6 a5 a4 a3 a2 a1 a0",
5991 " o o o o o o o o";
5992
5993 loadpage_lo = " 0 1 0 0 0 0 0 0",
5994 " x x x x x x x x",
5995 " x x a5 a4 a3 a2 a1 a0",
5996 " i i i i i i i i";
5997
5998 loadpage_hi = " 0 1 0 0 1 0 0 0",
5999 " x x x x x x x x",
6000 " x x a5 a4 a3 a2 a1 a0",
6001 " i i i i i i i i";
6002
6003 writepage = " 0 1 0 0 1 1 0 0",
6004 " x x x a12 a11 a10 a9 a8",
6005 " a7 a6 x x x x x x",
6006 " x x x x x x x x";
6007
6008 mode = 0x21;
6009 delay = 16;
6010 blocksize = 128;
6011 readsize = 256;
6012 ;
6013
6014 memory "fuse"
6015 size = 1;
6016 min_write_delay = 2000;
6017 max_write_delay = 2000;
6018 read = "0 1 0 1 0 0 0 0 x x x x x x x x",
6019 "x x x x x x x x x o x o o o o o";
6020
6021 write = "1 0 1 0 1 1 0 0 1 0 1 x x x x x",
6022 "x x x x x x x x 1 i 1 i i i i i";
6023 ;
6024
6025 memory "lock"
6026 size = 1;
6027 min_write_delay = 2000;
6028 max_write_delay = 2000;
6029 read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
6030 "x x x x x x x x x x o o o o o o";
6031
6032 write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
6033 "x x x x x x x x 1 1 i i i i i i";
6034 ;
6035 memory "signature"
6036 size = 3;
6037 read = "0 0 1 1 0 0 0 0 x x x x x x x x",
6038 "x x x x x x a1 a0 o o o o o o o o";
6039 ;
6040 ;
6041
6042
6043 #------------------------------------------------------------
6044 # ATmega8
6045 #------------------------------------------------------------
6046
6047 part
6048 id = "m8";
6049 desc = "ATmega8";
6050 stk500_devcode = 0x70;
6051 avr910_devcode = 0x76;
6052 signature = 0x1e 0x93 0x07;
6053 pagel = 0xd7;
6054 bs2 = 0xc2;
6055 chip_erase_delay = 10000;
6056 pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
6057 "x x x x x x x x x x x x x x x x";
6058
6059 chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
6060 "x x x x x x x x x x x x x x x x";
6061
6062 timeout = 200;
6063 stabdelay = 100;
6064 cmdexedelay = 25;
6065 synchloops = 32;
6066 bytedelay = 0;
6067 pollindex = 3;
6068 pollvalue = 0x53;
6069 predelay = 1;
6070 postdelay = 1;
6071 pollmethod = 0;
6072
6073 pp_controlstack =
6074 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
6075 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
6076 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
6077 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
6078 hventerstabdelay = 100;
6079 progmodedelay = 0;
6080 latchcycles = 5;
6081 togglevtg = 1;
6082 poweroffdelay = 15;
6083 resetdelayms = 2;
6084 resetdelayus = 0;
6085 hvleavestabdelay = 15;
6086 resetdelay = 15;
6087 chiperasepulsewidth = 0;
6088 chiperasepolltimeout = 10;
6089 programfusepulsewidth = 0;
6090 programfusepolltimeout = 5;
6091 programlockpulsewidth = 0;
6092 programlockpolltimeout = 5;
6093
6094 memory "eeprom"
6095 size = 512;
6096 page_size = 4;
6097 min_write_delay = 9000;
6098 max_write_delay = 9000;
6099 readback_p1 = 0xff;
6100 readback_p2 = 0xff;
6101 read = " 1 0 1 0 0 0 0 0",
6102 " 0 0 x x x x x a8",
6103 " a7 a6 a5 a4 a3 a2 a1 a0",
6104 " o o o o o o o o";
6105
6106 write = " 1 1 0 0 0 0 0 0",
6107 " 0 0 x x x x x a8",
6108 " a7 a6 a5 a4 a3 a2 a1 a0",
6109 " i i i i i i i i";
6110
6111 mode = 0x04;
6112 delay = 20;
6113 blocksize = 128;
6114 readsize = 256;
6115 ;
6116 memory "flash"
6117 paged = yes;
6118 size = 8192;
6119 page_size = 64;
6120 num_pages = 128;
6121 min_write_delay = 4500;
6122 max_write_delay = 4500;
6123 readback_p1 = 0xff;
6124 readback_p2 = 0x00;
6125 read_lo = " 0 0 1 0 0 0 0 0",
6126 " 0 0 0 0 a11 a10 a9 a8",
6127 " a7 a6 a5 a4 a3 a2 a1 a0",
6128 " o o o o o o o o";
6129
6130 read_hi = " 0 0 1 0 1 0 0 0",
6131 " 0 0 0 0 a11 a10 a9 a8",
6132 " a7 a6 a5 a4 a3 a2 a1 a0",
6133 " o o o o o o o o";
6134
6135 loadpage_lo = " 0 1 0 0 0 0 0 0",
6136 " 0 0 0 0 x x x x",
6137 " x x x a4 a3 a2 a1 a0",
6138 " i i i i i i i i";
6139
6140 loadpage_hi = " 0 1 0 0 1 0 0 0",
6141 " 0 0 0 0 x x x x",
6142 " x x x a4 a3 a2 a1 a0",
6143 " i i i i i i i i";
6144
6145 writepage = " 0 1 0 0 1 1 0 0",
6146 " 0 0 0 0 a11 a10 a9 a8",
6147 " a7 a6 a5 x x x x x",
6148 " x x x x x x x x";
6149
6150 mode = 0x21;
6151 delay = 10;
6152 blocksize = 64;
6153 readsize = 256;
6154 ;
6155
6156 memory "lfuse"
6157 size = 1;
6158 min_write_delay = 2000;
6159 max_write_delay = 2000;
6160 read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
6161 "x x x x x x x x o o o o o o o o";
6162
6163 write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
6164 "x x x x x x x x i i i i i i i i";
6165 ;
6166
6167 memory "hfuse"
6168 size = 1;
6169 min_write_delay = 2000;
6170 max_write_delay = 2000;
6171 read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
6172 "x x x x x x x x o o o o o o o o";
6173
6174 write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
6175 "x x x x x x x x i i i i i i i i";
6176 ;
6177
6178 memory "lock"
6179 size = 1;
6180 min_write_delay = 2000;
6181 max_write_delay = 2000;
6182 read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
6183 "x x x x x x x x x x o o o o o o";
6184
6185 write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
6186 "x x x x x x x x 1 1 i i i i i i";
6187 ;
6188
6189 memory "calibration"
6190 size = 4;
6191 read = "0 0 1 1 1 0 0 0 0 0 x x x x x x",
6192 "0 0 0 0 0 0 a1 a0 o o o o o o o o";
6193 ;
6194
6195 memory "signature"
6196 size = 3;
6197 read = "0 0 1 1 0 0 0 0 x x x x x x x x",
6198 "x x x x x x a1 a0 o o o o o o o o";
6199 ;
6200 ;
6201
6202
6203
6204 #------------------------------------------------------------
6205 # ATmega8515
6206 #------------------------------------------------------------
6207
6208 part
6209 id = "m8515";
6210 desc = "ATmega8515";
6211 stk500_devcode = 0x63;
6212 avr910_devcode = 0x3A;
6213 signature = 0x1e 0x93 0x06;
6214 chip_erase_delay = 9000;
6215 pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
6216 "x x x x x x x x x x x x x x x x";
6217
6218 chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
6219 "x x x x x x x x x x x x x x x x";
6220
6221 timeout = 200;
6222 stabdelay = 100;
6223 cmdexedelay = 25;
6224 synchloops = 32;
6225 bytedelay = 0;
6226 pollindex = 3;
6227 pollvalue = 0x53;
6228 predelay = 1;
6229 postdelay = 1;
6230 pollmethod = 0;
6231
6232 pp_controlstack =
6233 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
6234 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
6235 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
6236 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
6237 hventerstabdelay = 100;
6238 progmodedelay = 0;
6239 latchcycles = 6;
6240 togglevtg = 0;
6241 poweroffdelay = 0;
6242 resetdelayms = 0;
6243 resetdelayus = 0;
6244 hvleavestabdelay = 15;
6245 chiperasepulsewidth = 0;
6246 chiperasepolltimeout = 10;
6247 programfusepulsewidth = 0;
6248 programfusepolltimeout = 5;
6249 programlockpulsewidth = 0;
6250 programlockpolltimeout = 5;
6251
6252 memory "eeprom"
6253 size = 512;
6254 min_write_delay = 9000;
6255 max_write_delay = 9000;
6256 readback_p1 = 0xff;
6257 readback_p2 = 0xff;
6258 read = " 1 0 1 0 0 0 0 0",
6259 " 0 0 x x x x x a8",
6260 " a7 a6 a5 a4 a3 a2 a1 a0",
6261 " o o o o o o o o";
6262
6263 write = " 1 1 0 0 0 0 0 0",
6264 " 0 0 x x x x x a8",
6265 " a7 a6 a5 a4 a3 a2 a1 a0",
6266 " i i i i i i i i";
6267
6268 mode = 0x04;
6269 delay = 20;
6270 blocksize = 128;
6271 readsize = 256;
6272 ;
6273 memory "flash"
6274 paged = yes;
6275 size = 8192;
6276 page_size = 64;
6277 num_pages = 128;
6278 min_write_delay = 4500;
6279 max_write_delay = 4500;
6280 readback_p1 = 0xff;
6281 readback_p2 = 0xff;
6282 read_lo = " 0 0 1 0 0 0 0 0",
6283 " 0 0 0 0 a11 a10 a9 a8",
6284 " a7 a6 a5 a4 a3 a2 a1 a0",
6285 " o o o o o o o o";
6286
6287 read_hi = " 0 0 1 0 1 0 0 0",
6288 " 0 0 0 0 a11 a10 a9 a8",
6289 " a7 a6 a5 a4 a3 a2 a1 a0",
6290 " o o o o o o o o";
6291
6292 loadpage_lo = " 0 1 0 0 0 0 0 0",
6293 " 0 0 0 0 x x x x",
6294 " x x x a4 a3 a2 a1 a0",
6295 " i i i i i i i i";
6296
6297 loadpage_hi = " 0 1 0 0 1 0 0 0",
6298 " 0 0 0 0 x x x x",
6299 " x x x a4 a3 a2 a1 a0",
6300 " i i i i i i i i";
6301
6302 writepage = " 0 1 0 0 1 1 0 0",
6303 " 0 0 0 0 a11 a10 a9 a8",
6304 " a7 a6 a5 x x x x x",
6305 " x x x x x x x x";
6306
6307 mode = 0x21;
6308 delay = 6;
6309 blocksize = 64;
6310 readsize = 256;
6311 ;
6312
6313 memory "lfuse"
6314 size = 1;
6315 min_write_delay = 4500;
6316 max_write_delay = 4500;
6317 read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
6318 "x x x x x x x x o o o o o o o o";
6319
6320 write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
6321 "x x x x x x x x i i i i i i i i";
6322 ;
6323
6324 memory "hfuse"
6325 size = 1;
6326 min_write_delay = 4500;
6327 max_write_delay = 4500;
6328 read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
6329 "x x x x x x x x o o o o o o o o";
6330
6331 write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
6332 "x x x x x x x x i i i i i i i i";
6333 ;
6334
6335 memory "lock"
6336 size = 1;
6337 min_write_delay = 4500;
6338 max_write_delay = 4500;
6339 read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
6340 "x x x x x x x x x x o o o o o o";
6341
6342 write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
6343 "x x x x x x x x 1 1 i i i i i i";
6344 ;
6345
6346 memory "calibration"
6347 size = 4;
6348 read = "0 0 1 1 1 0 0 0 0 0 x x x x x x",
6349 "0 0 0 0 0 0 a1 a0 o o o o o o o o";
6350 ;
6351
6352 memory "signature"
6353 size = 3;
6354 read = "0 0 1 1 0 0 0 0 x x x x x x x x",
6355 "x x x x x x a1 a0 o o o o o o o o";
6356 ;
6357 ;
6358
6359
6360
6361
6362 #------------------------------------------------------------
6363 # ATmega8535
6364 #------------------------------------------------------------
6365
6366 part
6367 id = "m8535";
6368 desc = "ATmega8535";
6369 stk500_devcode = 0x64;
6370 avr910_devcode = 0x69;
6371 signature = 0x1e 0x93 0x08;
6372 pagel = 0xd7;
6373 bs2 = 0xa0;
6374 chip_erase_delay = 9000;
6375 pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
6376 "x x x x x x x x x x x x x x x x";
6377
6378 chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
6379 "x x x x x x x x x x x x x x x x";
6380
6381 timeout = 200;
6382 stabdelay = 100;
6383 cmdexedelay = 25;
6384 synchloops = 32;
6385 bytedelay = 0;
6386 pollindex = 3;
6387 pollvalue = 0x53;
6388 predelay = 1;
6389 postdelay = 1;
6390 pollmethod = 0;
6391
6392 pp_controlstack =
6393 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
6394 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
6395 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
6396 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
6397 hventerstabdelay = 100;
6398 progmodedelay = 0;
6399 latchcycles = 6;
6400 togglevtg = 0;
6401 poweroffdelay = 0;
6402 resetdelayms = 0;
6403 resetdelayus = 0;
6404 hvleavestabdelay = 15;
6405 chiperasepulsewidth = 0;
6406 chiperasepolltimeout = 10;
6407 programfusepulsewidth = 0;
6408 programfusepolltimeout = 5;
6409 programlockpulsewidth = 0;
6410 programlockpolltimeout = 5;
6411
6412 memory "eeprom"
6413 size = 512;
6414 min_write_delay = 9000;
6415 max_write_delay = 9000;
6416 readback_p1 = 0xff;
6417 readback_p2 = 0xff;
6418 read = " 1 0 1 0 0 0 0 0",
6419 " 0 0 x x x x x a8",
6420 " a7 a6 a5 a4 a3 a2 a1 a0",
6421 " o o o o o o o o";
6422
6423 write = " 1 1 0 0 0 0 0 0",
6424 " 0 0 x x x x x a8",
6425 " a7 a6 a5 a4 a3 a2 a1 a0",
6426 " i i i i i i i i";
6427
6428 mode = 0x04;
6429 delay = 20;
6430 blocksize = 128;
6431 readsize = 256;
6432 ;
6433 memory "flash"
6434 paged = yes;
6435 size = 8192;
6436 page_size = 64;
6437 num_pages = 128;
6438 min_write_delay = 4500;
6439 max_write_delay = 4500;
6440 readback_p1 = 0xff;
6441 readback_p2 = 0xff;
6442 read_lo = " 0 0 1 0 0 0 0 0",
6443 " 0 0 0 0 a11 a10 a9 a8",
6444 " a7 a6 a5 a4 a3 a2 a1 a0",
6445 " o o o o o o o o";
6446
6447 read_hi = " 0 0 1 0 1 0 0 0",
6448 " 0 0 0 0 a11 a10 a9 a8",
6449 " a7 a6 a5 a4 a3 a2 a1 a0",
6450 " o o o o o o o o";
6451
6452 loadpage_lo = " 0 1 0 0 0 0 0 0",
6453 " 0 0 0 0 x x x x",
6454 " x x x a4 a3 a2 a1 a0",
6455 " i i i i i i i i";
6456
6457 loadpage_hi = " 0 1 0 0 1 0 0 0",
6458 " 0 0 0 0 x x x x",
6459 " x x x a4 a3 a2 a1 a0",
6460 " i i i i i i i i";
6461
6462 writepage = " 0 1 0 0 1 1 0 0",
6463 " 0 0 0 0 a11 a10 a9 a8",
6464 " a7 a6 a5 x x x x x",
6465 " x x x x x x x x";
6466
6467 mode = 0x21;
6468 delay = 6;
6469 blocksize = 64;
6470 readsize = 256;
6471 ;
6472
6473 memory "lfuse"
6474 size = 1;
6475 min_write_delay = 2000;
6476 max_write_delay = 2000;
6477 read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
6478 "x x x x x x x x o o o o o o o o";
6479
6480 write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
6481 "x x x x x x x x i i i i i i i i";
6482 ;
6483
6484 memory "hfuse"
6485 size = 1;
6486 min_write_delay = 2000;
6487 max_write_delay = 2000;
6488 read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
6489 "x x x x x x x x o o o o o o o o";
6490
6491 write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
6492 "x x x x x x x x i i i i i i i i";
6493 ;
6494
6495 memory "lock"
6496 size = 1;
6497 min_write_delay = 2000;
6498 max_write_delay = 2000;
6499 read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
6500 "x x x x x x x x x x o o o o o o";
6501
6502 write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
6503 "x x x x x x x x 1 1 i i i i i i";
6504 ;
6505
6506 memory "calibration"
6507 size = 4;
6508 read = "0 0 1 1 1 0 0 0 0 0 x x x x x x",
6509 "0 0 0 0 0 0 a1 a0 o o o o o o o o";
6510 ;
6511
6512 memory "signature"
6513 size = 3;
6514 read = "0 0 1 1 0 0 0 0 x x x x x x x x",
6515 "x x x x x x a1 a0 o o o o o o o o";
6516 ;
6517 ;
6518
6519
6520 #------------------------------------------------------------
6521 # ATtiny26
6522 #------------------------------------------------------------
6523
6524 part
6525 id = "t26";
6526 desc = "ATtiny26";
6527 stk500_devcode = 0x21;
6528 avr910_devcode = 0x5e;
6529 signature = 0x1e 0x91 0x09;
6530 pagel = 0xb3;
6531 bs2 = 0xb2;
6532 chip_erase_delay = 9000;
6533 pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
6534 "x x x x x x x x x x x x x x x x";
6535
6536 chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
6537 "x x x x x x x x x x x x x x x x";
6538
6539 timeout = 200;
6540 stabdelay = 100;
6541 cmdexedelay = 25;
6542 synchloops = 32;
6543 bytedelay = 0;
6544 pollindex = 3;
6545 pollvalue = 0x53;
6546 predelay = 1;
6547 postdelay = 1;
6548 pollmethod = 0;
6549
6550 pp_controlstack =
6551 0xC4, 0xE4, 0xC4, 0xE4, 0xCC, 0xEC, 0xCC, 0xEC,
6552 0xD4, 0xF4, 0xD4, 0xF4, 0xDC, 0xFC, 0xDC, 0xFC,
6553 0xC8, 0xE8, 0xD8, 0xF8, 0x4C, 0x6C, 0x5C, 0x7C,
6554 0xEC, 0xBC, 0x00, 0x06, 0x00, 0x00, 0x00, 0x00;
6555 hventerstabdelay = 100;
6556 progmodedelay = 0;
6557 latchcycles = 5;
6558 togglevtg = 1;
6559 poweroffdelay = 15;
6560 resetdelayms = 2;
6561 resetdelayus = 0;
6562 hvleavestabdelay = 15;
6563 chiperasepulsewidth = 0;
6564 chiperasepolltimeout = 10;
6565 programfusepulsewidth = 0;
6566 programfusepolltimeout = 5;
6567 programlockpulsewidth = 0;
6568 programlockpolltimeout = 5;
6569
6570 memory "eeprom"
6571 size = 128;
6572 min_write_delay = 9000;
6573 max_write_delay = 9000;
6574 readback_p1 = 0xff;
6575 readback_p2 = 0xff;
6576 read = "1 0 1 0 0 0 0 0 x x x x x x x x",
6577 "x a6 a5 a4 a3 a2 a1 a0 o o o o o o o o";
6578
6579 write = "1 1 0 0 0 0 0 0 x x x x x x x x",
6580 "x a6 a5 a4 a3 a2 a1 a0 i i i i i i i i";
6581
6582 mode = 0x04;
6583 delay = 10;
6584 blocksize = 64;
6585 readsize = 256;
6586 ;
6587
6588 memory "flash"
6589 paged = yes;
6590 size = 2048;
6591 page_size = 32;
6592 num_pages = 64;
6593 min_write_delay = 4500;
6594 max_write_delay = 4500;
6595 readback_p1 = 0xff;
6596 readback_p2 = 0xff;
6597 read_lo = " 0 0 1 0 0 0 0 0",
6598 " x x x x x x a9 a8",
6599 " a7 a6 a5 a4 a3 a2 a1 a0",
6600 " o o o o o o o o";
6601
6602 read_hi = " 0 0 1 0 1 0 0 0",
6603 " x x x x x x a9 a8",
6604 " a7 a6 a5 a4 a3 a2 a1 a0",
6605 " o o o o o o o o";
6606
6607 loadpage_lo = " 0 1 0 0 0 0 0 0",
6608 " x x x x x x x x",
6609 " x x x x a3 a2 a1 a0",
6610 " i i i i i i i i";
6611
6612 loadpage_hi = " 0 1 0 0 1 0 0 0",
6613 " x x x x x x x x",
6614 " x x x x a3 a2 a1 a0",
6615 " i i i i i i i i";
6616
6617 writepage = " 0 1 0 0 1 1 0 0",
6618 " x x x x x x a9 a8",
6619 " a7 a6 a5 a4 x x x x",
6620 " x x x x x x x x";
6621
6622 mode = 0x21;
6623 delay = 6;
6624 blocksize = 16;
6625 readsize = 256;
6626 ;
6627
6628 memory "signature"
6629 size = 3;
6630 read = "0 0 1 1 0 0 0 0 x x x x x x x x",
6631 "0 0 0 0 0 0 a1 a0 o o o o o o o o";
6632 ;
6633
6634 memory "lock"
6635 size = 1;
6636 read = "0 1 0 1 1 0 0 0 x x x x x x x x",
6637 "x x x x x x x x x x x x x x o o";
6638
6639 write = "1 0 1 0 1 1 0 0 1 1 1 1 1 1 i i",
6640 "x x x x x x x x x x x x x x x x";
6641 min_write_delay = 9000;
6642 max_write_delay = 9000;
6643 ;
6644
6645 memory "lfuse"
6646 size = 1;
6647 write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
6648 "x x x x x x x x i i i i i i i i";
6649
6650 read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
6651 "x x x x x x x x o o o o o o o o";
6652 min_write_delay = 9000;
6653 max_write_delay = 9000;
6654 ;
6655
6656 memory "hfuse"
6657 size = 1;
6658 write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
6659 "x x x x x x x x x x x i i i i i";
6660
6661 read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
6662 "x x x x x x x x x x x o o o o o";
6663 min_write_delay = 9000;
6664 max_write_delay = 9000;
6665 ;
6666
6667 memory "calibration"
6668 size = 4;
6669 read = "0 0 1 1 1 0 0 0 x x x x x x x x",
6670 "0 0 0 0 0 0 a1 a0 o o o o o o o o";
6671 ;
6672
6673 ;
6674
6675
6676 #------------------------------------------------------------
6677 # ATtiny261
6678 #------------------------------------------------------------
6679 # Close to ATtiny26
6680
6681 part
6682 id = "t261";
6683 desc = "ATtiny261";
6684 has_debugwire = yes;
6685 flash_instr = 0xB4, 0x00, 0x10;
6686 eeprom_instr = 0xBB, 0xFF, 0xBB, 0xEE, 0xBB, 0xCC, 0xB2, 0x0D,
6687 0xBC, 0x00, 0xB4, 0x00, 0xBA, 0x0D, 0xBB, 0xBC,
6688 0x99, 0xE1, 0xBB, 0xAC;
6689 # stk500_devcode = 0x21;
6690 # avr910_devcode = 0x5e;
6691 signature = 0x1e 0x91 0x0c;
6692 pagel = 0xb3;
6693 bs2 = 0xb2;
6694 chip_erase_delay = 4000;
6695
6696 pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
6697 "x x x x x x x x x x x x x x x x";
6698
6699 chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
6700 "x x x x x x x x x x x x x x x x";
6701
6702 timeout = 200;
6703 stabdelay = 100;
6704 cmdexedelay = 25;
6705 synchloops = 32;
6706 bytedelay = 0;
6707 pollindex = 3;
6708 pollvalue = 0x53;
6709 predelay = 1;
6710 postdelay = 1;
6711 pollmethod = 0;
6712
6713 pp_controlstack =
6714 0xC4, 0xE4, 0xC4, 0xE4, 0xCC, 0xEC, 0xCC, 0xEC,
6715 0xD4, 0xF4, 0xD4, 0xF4, 0xDC, 0xFC, 0xDC, 0xFC,
6716 0xC8, 0xE8, 0xD8, 0xF8, 0x4C, 0x6C, 0x5C, 0x7C,
6717 0xEC, 0xBC, 0x00, 0x06, 0x00, 0x00, 0x00, 0x00;
6718 hventerstabdelay = 100;
6719 progmodedelay = 0;
6720 latchcycles = 5;
6721 togglevtg = 1;
6722 poweroffdelay = 15;
6723 resetdelayms = 2;
6724 resetdelayus = 0;
6725 hvleavestabdelay = 15;
6726 chiperasepulsewidth = 0;
6727 chiperasepolltimeout = 10;
6728 programfusepulsewidth = 0;
6729 programfusepolltimeout = 5;
6730 programlockpulsewidth = 0;
6731 programlockpolltimeout = 5;
6732
6733 ocdrev = 1;
6734
6735 memory "eeprom"
6736 paged = no;
6737 size = 128;
6738 page_size = 4;
6739 num_pages = 32;
6740 min_write_delay = 4000;
6741 max_write_delay = 4000;
6742 readback_p1 = 0xff;
6743 readback_p2 = 0xff;
6744
6745 read = "1 0 1 0 0 0 0 0 x x x x x x x x",
6746 "x a6 a5 a4 a3 a2 a1 a0 o o o o o o o o";
6747
6748 write = "1 1 0 0 0 0 0 0 x x x x x x x x",
6749 "x a6 a5 a4 a3 a2 a1 a0 i i i i i i i i";
6750
6751 loadpage_lo = " 1 1 0 0 0 0 0 1",
6752 " 0 0 0 0 0 0 0 0",
6753 " 0 0 0 0 0 0 a1 a0",
6754 " i i i i i i i i";
6755
6756 writepage = " 1 1 0 0 0 0 1 0",
6757 " 0 0 x x x x x x",
6758 " x a6 a5 a4 a3 a2 0 0",
6759 " x x x x x x x x";
6760
6761 mode = 0x41;
6762 delay = 10;
6763 blocksize = 4;
6764 readsize = 256;
6765 ;
6766
6767 memory "flash"
6768 paged = yes;
6769 size = 2048;
6770 page_size = 32;
6771 num_pages = 64;
6772 min_write_delay = 4500;
6773 max_write_delay = 4500;
6774 readback_p1 = 0xff;
6775 readback_p2 = 0xff;
6776
6777 read_lo = " 0 0 1 0 0 0 0 0",
6778 " x x x x x x a9 a8",
6779 " a7 a6 a5 a4 a3 a2 a1 a0",
6780 " o o o o o o o o";
6781
6782 read_hi = " 0 0 1 0 1 0 0 0",
6783 " x x x x x x a9 a8",
6784 " a7 a6 a5 a4 a3 a2 a1 a0",
6785 " o o o o o o o o";
6786
6787 loadpage_lo = " 0 1 0 0 0 0 0 0",
6788 " x x x x x x x x",
6789 " x x x x a3 a2 a1 a0",
6790 " i i i i i i i i";
6791
6792 loadpage_hi = " 0 1 0 0 1 0 0 0",
6793 " x x x x x x x x",
6794 " x x x x a3 a2 a1 a0",
6795 " i i i i i i i i";
6796
6797 writepage = " 0 1 0 0 1 1 0 0",
6798 " x x x x x x a9 a8",
6799 " a7 a6 a5 a4 x x x x",
6800 " x x x x x x x x";
6801
6802 mode = 0x41;
6803 delay = 6;
6804 blocksize = 32;
6805 readsize = 256;
6806 ;
6807
6808 memory "signature"
6809 size = 3;
6810 read = "0 0 1 1 0 0 0 0 x x x x x x x x",
6811 "0 0 0 0 0 0 a1 a0 o o o o o o o o";
6812 ;
6813
6814 memory "lock"
6815 size = 1;
6816 read = "0 1 0 1 1 0 0 0 x x x x x x x x",
6817 "x x x x x x x x x x x x x x o o";
6818
6819 write = "1 0 1 0 1 1 0 0 1 1 1 1 1 1 i i",
6820 "x x x x x x x x x x x x x x x x";
6821 min_write_delay = 4500;
6822 max_write_delay = 4500;
6823 ;
6824
6825 memory "lfuse"
6826 size = 1;
6827 write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
6828 "x x x x x x x x i i i i i i i i";
6829
6830 read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
6831 "x x x x x x x x o o o o o o o o";
6832 min_write_delay = 4500;
6833 max_write_delay = 4500;
6834 ;
6835
6836 memory "hfuse"
6837 size = 1;
6838 write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
6839 "x x x x x x x x i i i i i i i i";
6840
6841 read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
6842 "x x x x x x x x o o o o o o o o";
6843 min_write_delay = 4500;
6844 max_write_delay = 4500;
6845 ;
6846
6847 memory "efuse"
6848 size = 1;
6849 write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
6850 "x x x x x x x x x x x x x x x i";
6851
6852 read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
6853 "x x x x x x x x x x x x x x x o";
6854 min_write_delay = 4500;
6855 max_write_delay = 4500;
6856 ;
6857
6858 memory "calibration"
6859 size = 1;
6860 read = "0 0 1 1 1 0 0 0 x x x x x x x x",
6861 "0 0 0 0 0 0 0 0 o o o o o o o o";
6862 ;
6863
6864 ;
6865
6866
6867 #------------------------------------------------------------
6868 # ATtiny461
6869 #------------------------------------------------------------
6870 # Close to ATtiny261
6871
6872 part
6873 id = "t461";
6874 desc = "ATtiny461";
6875 has_debugwire = yes;
6876 flash_instr = 0xB4, 0x00, 0x10;
6877 eeprom_instr = 0xBB, 0xFF, 0xBB, 0xEE, 0xBB, 0xCC, 0xB2, 0x0D,
6878 0xBC, 0x00, 0xB4, 0x00, 0xBA, 0x0D, 0xBB, 0xBC,
6879 0x99, 0xE1, 0xBB, 0xAC;
6880 # stk500_devcode = 0x21;
6881 # avr910_devcode = 0x5e;
6882 signature = 0x1e 0x92 0x08;
6883 pagel = 0xb3;
6884 bs2 = 0xb2;
6885 chip_erase_delay = 4000;
6886
6887 pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
6888 "x x x x x x x x x x x x x x x x";
6889
6890 chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
6891 "x x x x x x x x x x x x x x x x";
6892
6893 timeout = 200;
6894 stabdelay = 100;
6895 cmdexedelay = 25;
6896 synchloops = 32;
6897 bytedelay = 0;
6898 pollindex = 3;
6899 pollvalue = 0x53;
6900 predelay = 1;
6901 postdelay = 1;
6902 pollmethod = 0;
6903
6904 pp_controlstack =
6905 0xC4, 0xE4, 0xC4, 0xE4, 0xCC, 0xEC, 0xCC, 0xEC,
6906 0xD4, 0xF4, 0xD4, 0xF4, 0xDC, 0xFC, 0xDC, 0xFC,
6907 0xC8, 0xE8, 0xD8, 0xF8, 0x4C, 0x6C, 0x5C, 0x7C,
6908 0xEC, 0xBC, 0x00, 0x06, 0x00, 0x00, 0x00, 0x00;
6909 hventerstabdelay = 100;
6910 progmodedelay = 0;
6911 latchcycles = 5;
6912 togglevtg = 1;
6913 poweroffdelay = 15;
6914 resetdelayms = 2;
6915 resetdelayus = 0;
6916 hvleavestabdelay = 15;
6917 chiperasepulsewidth = 0;
6918 chiperasepolltimeout = 10;
6919 programfusepulsewidth = 0;
6920 programfusepolltimeout = 5;
6921 programlockpulsewidth = 0;
6922 programlockpolltimeout = 5;
6923
6924 ocdrev = 1;
6925
6926 memory "eeprom"
6927 paged = no;
6928 size = 256;
6929 page_size = 4;
6930 num_pages = 64;
6931 min_write_delay = 4000;
6932 max_write_delay = 4000;
6933 readback_p1 = 0xff;
6934 readback_p2 = 0xff;
6935
6936 read = " 1 0 1 0 0 0 0 0 x x x x x x x x",
6937 "a7 a6 a5 a4 a3 a2 a1 a0 o o o o o o o o";
6938
6939 write = " 1 1 0 0 0 0 0 0 x x x x x x x x",
6940 "a7 a6 a5 a4 a3 a2 a1 a0 i i i i i i i i";
6941
6942 loadpage_lo = " 1 1 0 0 0 0 0 1",
6943 " 0 0 0 0 0 0 0 0",
6944 " 0 0 0 0 0 0 a1 a0",
6945 " i i i i i i i i";
6946
6947 writepage = " 1 1 0 0 0 0 1 0",
6948 " 0 0 x x x x x x",
6949 " a7 a6 a5 a4 a3 a2 0 0",
6950 " x x x x x x x x";
6951
6952 mode = 0x41;
6953 delay = 10;
6954 blocksize = 4;
6955 readsize = 256;
6956 ;
6957
6958 memory "flash"
6959 paged = yes;
6960 size = 4096;
6961 page_size = 64;
6962 num_pages = 64;
6963 min_write_delay = 4500;
6964 max_write_delay = 4500;
6965 readback_p1 = 0xff;
6966 readback_p2 = 0xff;
6967
6968 read_lo = " 0 0 1 0 0 0 0 0",
6969 " x x x x x a10 a9 a8",
6970 " a7 a6 a5 a4 a3 a2 a1 a0",
6971 " o o o o o o o o";
6972
6973 read_hi = " 0 0 1 0 1 0 0 0",
6974 " x x x x x a10 a9 a8",
6975 " a7 a6 a5 a4 a3 a2 a1 a0",
6976 " o o o o o o o o";
6977
6978 loadpage_lo = " 0 1 0 0 0 0 0 0",
6979 " x x x x x x x x",
6980 " x x x a4 a3 a2 a1 a0",
6981 " i i i i i i i i";
6982
6983 loadpage_hi = " 0 1 0 0 1 0 0 0",
6984 " x x x x x x x x",
6985 " x x x a4 a3 a2 a1 a0",
6986 " i i i i i i i i";
6987
6988 writepage = " 0 1 0 0 1 1 0 0",
6989 " x x x x x a10 a9 a8",
6990 " a7 a6 a5 x x x x x",
6991 " x x x x x x x x";
6992
6993 mode = 0x41;
6994 delay = 6;
6995 blocksize = 64;
6996 readsize = 256;
6997 ;
6998
6999 memory "signature"
7000 size = 3;
7001 read = "0 0 1 1 0 0 0 0 x x x x x x x x",
7002 "0 0 0 0 0 0 a1 a0 o o o o o o o o";
7003 ;
7004
7005 memory "lock"
7006 size = 1;
7007 read = "0 1 0 1 1 0 0 0 x x x x x x x x",
7008 "x x x x x x x x x x x x x x o o";
7009
7010 write = "1 0 1 0 1 1 0 0 1 1 1 1 1 1 i i",
7011 "x x x x x x x x x x x x x x x x";
7012 min_write_delay = 4500;
7013 max_write_delay = 4500;
7014 ;
7015
7016 memory "lfuse"
7017 size = 1;
7018 write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
7019 "x x x x x x x x i i i i i i i i";
7020
7021 read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
7022 "x x x x x x x x o o o o o o o o";
7023 min_write_delay = 4500;
7024 max_write_delay = 4500;
7025 ;
7026
7027 memory "hfuse"
7028 size = 1;
7029 write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
7030 "x x x x x x x x i i i i i i i i";
7031
7032 read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
7033 "x x x x x x x x o o o o o o o o";
7034 min_write_delay = 4500;
7035 max_write_delay = 4500;
7036 ;
7037
7038 memory "efuse"
7039 size = 1;
7040 write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
7041 "x x x x x x x x x x x x x x x i";
7042
7043 read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
7044 "x x x x x x x x x x x x x x x o";
7045 min_write_delay = 4500;
7046 max_write_delay = 4500;
7047 ;
7048
7049 memory "calibration"
7050 size = 1;
7051 read = "0 0 1 1 1 0 0 0 x x x x x x x x",
7052 "0 0 0 0 0 0 0 0 o o o o o o o o";
7053 ;
7054
7055 ;
7056
7057
7058 #------------------------------------------------------------
7059 # ATtiny861
7060 #------------------------------------------------------------
7061 # Close to ATtiny461
7062
7063 part
7064 id = "t861";
7065 desc = "ATtiny861";
7066 has_debugwire = yes;
7067 flash_instr = 0xB4, 0x00, 0x10;
7068 eeprom_instr = 0xBB, 0xFF, 0xBB, 0xEE, 0xBB, 0xCC, 0xB2, 0x0D,
7069 0xBC, 0x00, 0xB4, 0x00, 0xBA, 0x0D, 0xBB, 0xBC,
7070 0x99, 0xE1, 0xBB, 0xAC;
7071 # stk500_devcode = 0x21;
7072 # avr910_devcode = 0x5e;
7073 signature = 0x1e 0x93 0x0d;
7074 pagel = 0xb3;
7075 bs2 = 0xb2;
7076 chip_erase_delay = 4000;
7077
7078 pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
7079 "x x x x x x x x x x x x x x x x";
7080
7081 chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
7082 "x x x x x x x x x x x x x x x x";
7083
7084 timeout = 200;
7085 stabdelay = 100;
7086 cmdexedelay = 25;
7087 synchloops = 32;
7088 bytedelay = 0;
7089 pollindex = 3;
7090 pollvalue = 0x53;
7091 predelay = 1;
7092 postdelay = 1;
7093 pollmethod = 0;
7094
7095 pp_controlstack =
7096 0xC4, 0xE4, 0xC4, 0xE4, 0xCC, 0xEC, 0xCC, 0xEC,
7097 0xD4, 0xF4, 0xD4, 0xF4, 0xDC, 0xFC, 0xDC, 0xFC,
7098 0xC8, 0xE8, 0xD8, 0xF8, 0x4C, 0x6C, 0x5C, 0x7C,
7099 0xEC, 0xBC, 0x00, 0x06, 0x00, 0x00, 0x00, 0x00;
7100 hventerstabdelay = 100;
7101 progmodedelay = 0;
7102 latchcycles = 5;
7103 togglevtg = 1;
7104 poweroffdelay = 15;
7105 resetdelayms = 2;
7106 resetdelayus = 0;
7107 hvleavestabdelay = 15;
7108 chiperasepulsewidth = 0;
7109 chiperasepolltimeout = 10;
7110 programfusepulsewidth = 0;
7111 programfusepolltimeout = 5;
7112 programlockpulsewidth = 0;
7113 programlockpolltimeout = 5;
7114
7115 ocdrev = 1;
7116
7117 memory "eeprom"
7118 paged = no;
7119 size = 512;
7120 num_pages = 128;
7121 page_size = 4;
7122 min_write_delay = 4000;
7123 max_write_delay = 4000;
7124 readback_p1 = 0xff;
7125 readback_p2 = 0xff;
7126
7127 read = " 1 0 1 0 0 0 0 0 x x x x x x x a8",
7128 "a7 a6 a5 a4 a3 a2 a1 a0 o o o o o o o o";
7129
7130 write = " 1 1 0 0 0 0 0 0 x x x x x x x a8",
7131 "a7 a6 a5 a4 a3 a2 a1 a0 i i i i i i i i";
7132
7133 loadpage_lo = " 1 1 0 0 0 0 0 1",
7134 " 0 0 0 0 0 0 0 0",
7135 " 0 0 0 0 0 0 a1 a0",
7136 " i i i i i i i i";
7137
7138 writepage = " 1 1 0 0 0 0 1 0",
7139 " 0 0 x x x x x a8",
7140 " a7 a6 a5 a4 a3 a2 0 0",
7141 " x x x x x x x x";
7142
7143 mode = 0x41;
7144 delay = 10;
7145 blocksize = 4;
7146 readsize = 256;
7147 ;
7148
7149 memory "flash"
7150 paged = yes;
7151 size = 8192;
7152 page_size = 64;
7153 num_pages = 128;
7154 min_write_delay = 4500;
7155 max_write_delay = 4500;
7156 readback_p1 = 0xff;
7157 readback_p2 = 0xff;
7158
7159 read_lo = " 0 0 1 0 0 0 0 0",
7160 " x x x x a11 a10 a9 a8",
7161 " a7 a6 a5 a4 a3 a2 a1 a0",
7162 " o o o o o o o o";
7163
7164 read_hi = " 0 0 1 0 1 0 0 0",
7165 " x x x x a11 a10 a9 a8",
7166 " a7 a6 a5 a4 a3 a2 a1 a0",
7167 " o o o o o o o o";
7168
7169 loadpage_lo = " 0 1 0 0 0 0 0 0",
7170 " x x x x x x x x",
7171 " x x x a4 a3 a2 a1 a0",
7172 " i i i i i i i i";
7173
7174 loadpage_hi = " 0 1 0 0 1 0 0 0",
7175 " x x x x x x x x",
7176 " x x x a4 a3 a2 a1 a0",
7177 " i i i i i i i i";
7178
7179 writepage = " 0 1 0 0 1 1 0 0",
7180 " x x x x a11 a10 a9 a8",
7181 " a7 a6 a5 x x x x x",
7182 " x x x x x x x x";
7183
7184 mode = 0x41;
7185 delay = 6;
7186 blocksize = 64;
7187 readsize = 256;
7188 ;
7189
7190 memory "signature"
7191 size = 3;
7192 read = "0 0 1 1 0 0 0 0 x x x x x x x x",
7193 "0 0 0 0 0 0 a1 a0 o o o o o o o o";
7194 ;
7195
7196 memory "lock"
7197 size = 1;
7198 read = "0 1 0 1 1 0 0 0 x x x x x x x x",
7199 "x x x x x x x x x x x x x x o o";
7200
7201 write = "1 0 1 0 1 1 0 0 1 1 1 1 1 1 i i",
7202 "x x x x x x x x x x x x x x x x";
7203 min_write_delay = 4500;
7204 max_write_delay = 4500;
7205 ;
7206
7207 memory "lfuse"
7208 size = 1;
7209 write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
7210 "x x x x x x x x i i i i i i i i";
7211
7212 read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
7213 "x x x x x x x x o o o o o o o o";
7214 min_write_delay = 4500;
7215 max_write_delay = 4500;
7216 ;
7217
7218 memory "hfuse"
7219 size = 1;
7220 write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
7221 "x x x x x x x x i i i i i i i i";
7222
7223 read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
7224 "x x x x x x x x o o o o o o o o";
7225 min_write_delay = 4500;
7226 max_write_delay = 4500;
7227 ;
7228
7229 memory "efuse"
7230 size = 1;
7231 write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
7232 "x x x x x x x x x x x x x x x i";
7233
7234 read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
7235 "x x x x x x x x x x x x x x x o";
7236 min_write_delay = 4500;
7237 max_write_delay = 4500;
7238 ;
7239
7240 memory "calibration"
7241 size = 1;
7242 read = "0 0 1 1 1 0 0 0 x x x x x x x x",
7243 "0 0 0 0 0 0 0 0 o o o o o o o o";
7244 ;
7245
7246 ;
7247
7248
7249 #------------------------------------------------------------
7250 # ATmega48
7251 #------------------------------------------------------------
7252
7253 part
7254 id = "m48";
7255 desc = "ATmega48";
7256 has_debugwire = yes;
7257 flash_instr = 0xB6, 0x01, 0x11;
7258 eeprom_instr = 0xBD, 0xF2, 0xBD, 0xE1, 0xBB, 0xCF, 0xB4, 0x00,
7259 0xBE, 0x01, 0xB6, 0x01, 0xBC, 0x00, 0xBB, 0xBF,
7260 0x99, 0xF9, 0xBB, 0xAF;
7261 stk500_devcode = 0x59;
7262 # avr910_devcode = 0x;
7263 signature = 0x1e 0x92 0x05;
7264 pagel = 0xd7;
7265 bs2 = 0xc2;
7266 chip_erase_delay = 45000;
7267 pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
7268 "x x x x x x x x x x x x x x x x";
7269
7270 chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
7271 "x x x x x x x x x x x x x x x x";
7272
7273 timeout = 200;
7274 stabdelay = 100;
7275 cmdexedelay = 25;
7276 synchloops = 32;
7277 bytedelay = 0;
7278 pollindex = 3;
7279 pollvalue = 0x53;
7280 predelay = 1;
7281 postdelay = 1;
7282 pollmethod = 1;
7283
7284 pp_controlstack =
7285 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
7286 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
7287 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
7288 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
7289 hventerstabdelay = 100;
7290 progmodedelay = 0;
7291 latchcycles = 5;
7292 togglevtg = 1;
7293 poweroffdelay = 15;
7294 resetdelayms = 1;
7295 resetdelayus = 0;
7296 hvleavestabdelay = 15;
7297 resetdelay = 15;
7298 chiperasepulsewidth = 0;
7299 chiperasepolltimeout = 10;
7300 programfusepulsewidth = 0;
7301 programfusepolltimeout = 5;
7302 programlockpulsewidth = 0;
7303 programlockpolltimeout = 5;
7304
7305 ocdrev = 1;
7306
7307 memory "eeprom"
7308 paged = no;
7309 page_size = 4;
7310 size = 256;
7311 min_write_delay = 3600;
7312 max_write_delay = 3600;
7313 readback_p1 = 0xff;
7314 readback_p2 = 0xff;
7315 read = " 1 0 1 0 0 0 0 0",
7316 " 0 0 0 x x x x x",
7317 " a7 a6 a5 a4 a3 a2 a1 a0",
7318 " o o o o o o o o";
7319
7320 write = " 1 1 0 0 0 0 0 0",
7321 " 0 0 0 x x x x x",
7322 " a7 a6 a5 a4 a3 a2 a1 a0",
7323 " i i i i i i i i";
7324
7325 loadpage_lo = " 1 1 0 0 0 0 0 1",
7326 " 0 0 0 0 0 0 0 0",
7327 " 0 0 0 0 0 0 a1 a0",
7328 " i i i i i i i i";
7329
7330 writepage = " 1 1 0 0 0 0 1 0",
7331 " 0 0 x x x x x x",
7332 " a7 a6 a5 a4 a3 a2 0 0",
7333 " x x x x x x x x";
7334
7335 mode = 0x41;
7336 delay = 20;
7337 blocksize = 4;
7338 readsize = 256;
7339 ;
7340 memory "flash"
7341 paged = yes;
7342 size = 4096;
7343 page_size = 64;
7344 num_pages = 64;
7345 min_write_delay = 4500;
7346 max_write_delay = 4500;
7347 readback_p1 = 0x00;
7348 readback_p2 = 0x00;
7349 read_lo = " 0 0 1 0 0 0 0 0",
7350 " 0 0 0 0 0 a10 a9 a8",
7351 " a7 a6 a5 a4 a3 a2 a1 a0",
7352 " o o o o o o o o";
7353
7354 read_hi = " 0 0 1 0 1 0 0 0",
7355 " 0 0 0 0 0 a10 a9 a8",
7356 " a7 a6 a5 a4 a3 a2 a1 a0",
7357 " o o o o o o o o";
7358
7359 loadpage_lo = " 0 1 0 0 0 0 0 0",
7360 " 0 0 0 x x x x x",
7361 " x x x a4 a3 a2 a1 a0",
7362 " i i i i i i i i";
7363
7364 loadpage_hi = " 0 1 0 0 1 0 0 0",
7365 " 0 0 0 x x x x x",
7366 " x x x a4 a3 a2 a1 a0",
7367 " i i i i i i i i";
7368
7369 writepage = " 0 1 0 0 1 1 0 0",
7370 " 0 0 0 0 0 a10 a9 a8",
7371 " a7 a6 a5 x x x x x",
7372 " x x x x x x x x";
7373
7374 mode = 0x41;
7375 delay = 6;
7376 blocksize = 64;
7377 readsize = 256;
7378 ;
7379
7380 memory "lfuse"
7381 size = 1;
7382 min_write_delay = 4500;
7383 max_write_delay = 4500;
7384 read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
7385 "x x x x x x x x o o o o o o o o";
7386
7387 write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
7388 "x x x x x x x x i i i i i i i i";
7389 ;
7390
7391 memory "hfuse"
7392 size = 1;
7393 min_write_delay = 4500;
7394 max_write_delay = 4500;
7395 read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
7396 "x x x x x x x x o o o o o o o o";
7397
7398 write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
7399 "x x x x x x x x i i i i i i i i";
7400 ;
7401
7402 memory "efuse"
7403 size = 1;
7404 min_write_delay = 4500;
7405 max_write_delay = 4500;
7406 read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
7407 "x x x x x x x x x x x x x x x o";
7408
7409 write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
7410 "x x x x x x x x x x x x x x x i";
7411 ;
7412
7413 memory "lock"
7414 size = 1;
7415 min_write_delay = 4500;
7416 max_write_delay = 4500;
7417 read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
7418 "x x x x x x x x x x o o o o o o";
7419
7420 write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
7421 "x x x x x x x x 1 1 i i i i i i";
7422 ;
7423
7424 memory "calibration"
7425 size = 1;
7426 read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
7427 "0 0 0 0 0 0 0 0 o o o o o o o o";
7428 ;
7429
7430 memory "signature"
7431 size = 3;
7432 read = "0 0 1 1 0 0 0 0 0 0 0 x x x x x",
7433 "x x x x x x a1 a0 o o o o o o o o";
7434 ;
7435 ;
7436
7437 #------------------------------------------------------------
7438 # ATmega48P
7439 #------------------------------------------------------------
7440
7441 part parent "m48"
7442 id = "m48p";
7443 desc = "ATmega48P";
7444 signature = 0x1e 0x92 0x0a;
7445
7446 ocdrev = 1;
7447 ;
7448
7449 #------------------------------------------------------------
7450 # ATmega88
7451 #------------------------------------------------------------
7452
7453 part
7454 id = "m88";
7455 desc = "ATmega88";
7456 has_debugwire = yes;
7457 flash_instr = 0xB6, 0x01, 0x11;
7458 eeprom_instr = 0xBD, 0xF2, 0xBD, 0xE1, 0xBB, 0xCF, 0xB4, 0x00,
7459 0xBE, 0x01, 0xB6, 0x01, 0xBC, 0x00, 0xBB, 0xBF,
7460 0x99, 0xF9, 0xBB, 0xAF;
7461 stk500_devcode = 0x73;
7462 # avr910_devcode = 0x;
7463 signature = 0x1e 0x93 0x0a;
7464 pagel = 0xd7;
7465 bs2 = 0xc2;
7466 chip_erase_delay = 9000;
7467 pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
7468 "x x x x x x x x x x x x x x x x";
7469
7470 chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
7471 "x x x x x x x x x x x x x x x x";
7472
7473 timeout = 200;
7474 stabdelay = 100;
7475 cmdexedelay = 25;
7476 synchloops = 32;
7477 bytedelay = 0;
7478 pollindex = 3;
7479 pollvalue = 0x53;
7480 predelay = 1;
7481 postdelay = 1;
7482 pollmethod = 1;
7483
7484 pp_controlstack =
7485 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
7486 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
7487 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
7488 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
7489 hventerstabdelay = 100;
7490 progmodedelay = 0;
7491 latchcycles = 5;
7492 togglevtg = 1;
7493 poweroffdelay = 15;
7494 resetdelayms = 1;
7495 resetdelayus = 0;
7496 hvleavestabdelay = 15;
7497 resetdelay = 15;
7498 chiperasepulsewidth = 0;
7499 chiperasepolltimeout = 10;
7500 programfusepulsewidth = 0;
7501 programfusepolltimeout = 5;
7502 programlockpulsewidth = 0;
7503 programlockpolltimeout = 5;
7504
7505 ocdrev = 1;
7506
7507 memory "eeprom"
7508 paged = no;
7509 page_size = 4;
7510 size = 512;
7511 min_write_delay = 3600;
7512 max_write_delay = 3600;
7513 readback_p1 = 0xff;
7514 readback_p2 = 0xff;
7515 read = " 1 0 1 0 0 0 0 0",
7516 " 0 0 0 x x x x a8",
7517 " a7 a6 a5 a4 a3 a2 a1 a0",
7518 " o o o o o o o o";
7519
7520 write = " 1 1 0 0 0 0 0 0",
7521 " 0 0 0 x x x x a8",
7522 " a7 a6 a5 a4 a3 a2 a1 a0",
7523 " i i i i i i i i";
7524
7525 loadpage_lo = " 1 1 0 0 0 0 0 1",
7526 " 0 0 0 0 0 0 0 0",
7527 " 0 0 0 0 0 0 a1 a0",
7528 " i i i i i i i i";
7529
7530 writepage = " 1 1 0 0 0 0 1 0",
7531 " 0 0 x x x x x a8",
7532 " a7 a6 a5 a4 a3 a2 0 0",
7533 " x x x x x x x x";
7534
7535 mode = 0x41;
7536 delay = 20;
7537 blocksize = 4;
7538 readsize = 256;
7539 ;
7540 memory "flash"
7541 paged = yes;
7542 size = 8192;
7543 page_size = 64;
7544 num_pages = 128;
7545 min_write_delay = 4500;
7546 max_write_delay = 4500;
7547 readback_p1 = 0xff;
7548 readback_p2 = 0xff;
7549 read_lo = " 0 0 1 0 0 0 0 0",
7550 " 0 0 0 0 a11 a10 a9 a8",
7551 " a7 a6 a5 a4 a3 a2 a1 a0",
7552 " o o o o o o o o";
7553
7554 read_hi = " 0 0 1 0 1 0 0 0",
7555 " 0 0 0 0 a11 a10 a9 a8",
7556 " a7 a6 a5 a4 a3 a2 a1 a0",
7557 " o o o o o o o o";
7558
7559 loadpage_lo = " 0 1 0 0 0 0 0 0",
7560 " 0 0 0 x x x x x",
7561 " x x x a4 a3 a2 a1 a0",
7562 " i i i i i i i i";
7563
7564 loadpage_hi = " 0 1 0 0 1 0 0 0",
7565 " 0 0 0 x x x x x",
7566 " x x x a4 a3 a2 a1 a0",
7567 " i i i i i i i i";
7568
7569 writepage = " 0 1 0 0 1 1 0 0",
7570 " 0 0 0 0 a11 a10 a9 a8",
7571 " a7 a6 a5 x x x x x",
7572 " x x x x x x x x";
7573
7574 mode = 0x41;
7575 delay = 6;
7576 blocksize = 64;
7577 readsize = 256;
7578 ;
7579
7580 memory "lfuse"
7581 size = 1;
7582 min_write_delay = 4500;
7583 max_write_delay = 4500;
7584 read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
7585 "x x x x x x x x o o o o o o o o";
7586
7587 write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
7588 "x x x x x x x x i i i i i i i i";
7589 ;
7590
7591 memory "hfuse"
7592 size = 1;
7593 min_write_delay = 4500;
7594 max_write_delay = 4500;
7595 read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
7596 "x x x x x x x x o o o o o o o o";
7597
7598 write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
7599 "x x x x x x x x i i i i i i i i";
7600 ;
7601
7602 memory "efuse"
7603 size = 1;
7604 min_write_delay = 4500;
7605 max_write_delay = 4500;
7606 read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
7607 "x x x x x x x x x x x x x o o o";
7608
7609 write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
7610 "x x x x x x x x x x x x x i i i";
7611 ;
7612
7613 memory "lock"
7614 size = 1;
7615 min_write_delay = 4500;
7616 max_write_delay = 4500;
7617 read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
7618 "x x x x x x x x x x o o o o o o";
7619
7620 write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
7621 "x x x x x x x x 1 1 i i i i i i";
7622 ;
7623
7624 memory "calibration"
7625 size = 1;
7626 read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
7627 "0 0 0 0 0 0 0 0 o o o o o o o o";
7628 ;
7629
7630 memory "signature"
7631 size = 3;
7632 read = "0 0 1 1 0 0 0 0 0 0 0 x x x x x",
7633 "x x x x x x a1 a0 o o o o o o o o";
7634 ;
7635 ;
7636
7637 #------------------------------------------------------------
7638 # ATmega88P
7639 #------------------------------------------------------------
7640
7641 part parent "m88"
7642 id = "m88p";
7643 desc = "ATmega88P";
7644 signature = 0x1e 0x93 0x0f;
7645
7646 ocdrev = 1;
7647 ;
7648
7649 #------------------------------------------------------------
7650 # ATmega168
7651 #------------------------------------------------------------
7652
7653 part
7654 id = "m168";
7655 desc = "ATmega168";
7656 has_debugwire = yes;
7657 flash_instr = 0xB6, 0x01, 0x11;
7658 eeprom_instr = 0xBD, 0xF2, 0xBD, 0xE1, 0xBB, 0xCF, 0xB4, 0x00,
7659 0xBE, 0x01, 0xB6, 0x01, 0xBC, 0x00, 0xBB, 0xBF,
7660 0x99, 0xF9, 0xBB, 0xAF;
7661 stk500_devcode = 0x86;
7662 # avr910_devcode = 0x;
7663 signature = 0x1e 0x94 0x06;
7664 pagel = 0xd7;
7665 bs2 = 0xc2;
7666 chip_erase_delay = 9000;
7667 pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
7668 "x x x x x x x x x x x x x x x x";
7669
7670 chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
7671 "x x x x x x x x x x x x x x x x";
7672
7673 timeout = 200;
7674 stabdelay = 100;
7675 cmdexedelay = 25;
7676 synchloops = 32;
7677 bytedelay = 0;
7678 pollindex = 3;
7679 pollvalue = 0x53;
7680 predelay = 1;
7681 postdelay = 1;
7682 pollmethod = 1;
7683
7684 pp_controlstack =
7685 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
7686 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
7687 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
7688 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
7689 hventerstabdelay = 100;
7690 progmodedelay = 0;
7691 latchcycles = 5;
7692 togglevtg = 1;
7693 poweroffdelay = 15;
7694 resetdelayms = 1;
7695 resetdelayus = 0;
7696 hvleavestabdelay = 15;
7697 resetdelay = 15;
7698 chiperasepulsewidth = 0;
7699 chiperasepolltimeout = 10;
7700 programfusepulsewidth = 0;
7701 programfusepolltimeout = 5;
7702 programlockpulsewidth = 0;
7703 programlockpolltimeout = 5;
7704
7705 ocdrev = 1;
7706
7707 memory "eeprom"
7708 paged = no;
7709 page_size = 4;
7710 size = 512;
7711 min_write_delay = 3600;
7712 max_write_delay = 3600;
7713 readback_p1 = 0xff;
7714 readback_p2 = 0xff;
7715 read = " 1 0 1 0 0 0 0 0",
7716 " 0 0 0 x x x x a8",
7717 " a7 a6 a5 a4 a3 a2 a1 a0",
7718 " o o o o o o o o";
7719
7720 write = " 1 1 0 0 0 0 0 0",
7721 " 0 0 0 x x x x a8",
7722 " a7 a6 a5 a4 a3 a2 a1 a0",
7723 " i i i i i i i i";
7724
7725 loadpage_lo = " 1 1 0 0 0 0 0 1",
7726 " 0 0 0 0 0 0 0 0",
7727 " 0 0 0 0 0 0 a1 a0",
7728 " i i i i i i i i";
7729
7730 writepage = " 1 1 0 0 0 0 1 0",
7731 " 0 0 x x x x x a8",
7732 " a7 a6 a5 a4 a3 a2 0 0",
7733 " x x x x x x x x";
7734
7735 mode = 0x41;
7736 delay = 20;
7737 blocksize = 4;
7738 readsize = 256;
7739 ;
7740
7741 memory "flash"
7742 paged = yes;
7743 size = 16384;
7744 page_size = 128;
7745 num_pages = 128;
7746 min_write_delay = 4500;
7747 max_write_delay = 4500;
7748 readback_p1 = 0xff;
7749 readback_p2 = 0xff;
7750 read_lo = " 0 0 1 0 0 0 0 0",
7751 " 0 0 0 a12 a11 a10 a9 a8",
7752 " a7 a6 a5 a4 a3 a2 a1 a0",
7753 " o o o o o o o o";
7754
7755 read_hi = " 0 0 1 0 1 0 0 0",
7756 " 0 0 0 a12 a11 a10 a9 a8",
7757 " a7 a6 a5 a4 a3 a2 a1 a0",
7758 " o o o o o o o o";
7759
7760 loadpage_lo = " 0 1 0 0 0 0 0 0",
7761 " 0 0 0 x x x x x",
7762 " x x a5 a4 a3 a2 a1 a0",
7763 " i i i i i i i i";
7764
7765 loadpage_hi = " 0 1 0 0 1 0 0 0",
7766 " 0 0 0 x x x x x",
7767 " x x a5 a4 a3 a2 a1 a0",
7768 " i i i i i i i i";
7769
7770 writepage = " 0 1 0 0 1 1 0 0",
7771 " 0 0 0 a12 a11 a10 a9 a8",
7772 " a7 a6 x x x x x x",
7773 " x x x x x x x x";
7774
7775 mode = 0x41;
7776 delay = 6;
7777 blocksize = 128;
7778 readsize = 256;
7779
7780 ;
7781
7782 memory "lfuse"
7783 size = 1;
7784 min_write_delay = 4500;
7785 max_write_delay = 4500;
7786 read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
7787 "x x x x x x x x o o o o o o o o";
7788
7789 write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
7790 "x x x x x x x x i i i i i i i i";
7791 ;
7792
7793 memory "hfuse"
7794 size = 1;
7795 min_write_delay = 4500;
7796 max_write_delay = 4500;
7797 read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
7798 "x x x x x x x x o o o o o o o o";
7799
7800 write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
7801 "x x x x x x x x i i i i i i i i";
7802 ;
7803
7804 memory "efuse"
7805 size = 1;
7806 min_write_delay = 4500;
7807 max_write_delay = 4500;
7808 read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
7809 "x x x x x x x x x x x x x o o o";
7810
7811 write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
7812 "x x x x x x x x x x x x x i i i";
7813 ;
7814
7815 memory "lock"
7816 size = 1;
7817 min_write_delay = 4500;
7818 max_write_delay = 4500;
7819 read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
7820 "x x x x x x x x x x o o o o o o";
7821
7822 write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
7823 "x x x x x x x x 1 1 i i i i i i";
7824 ;
7825
7826 memory "calibration"
7827 size = 1;
7828 read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
7829 "0 0 0 0 0 0 0 0 o o o o o o o o";
7830 ;
7831
7832 memory "signature"
7833 size = 3;
7834 read = "0 0 1 1 0 0 0 0 0 0 0 x x x x x",
7835 "x x x x x x a1 a0 o o o o o o o o";
7836 ;
7837 ;
7838
7839 #------------------------------------------------------------
7840 # ATmega168P
7841 #------------------------------------------------------------
7842
7843 part parent "m168"
7844 id = "m168p";
7845 desc = "ATmega168P";
7846 signature = 0x1e 0x94 0x0b;
7847
7848 ocdrev = 1;
7849 ;
7850
7851 #------------------------------------------------------------
7852 # ATtiny88
7853 #------------------------------------------------------------
7854
7855 part
7856 id = "t88";
7857 desc = "ATtiny88";
7858 has_debugwire = yes;
7859 flash_instr = 0xB6, 0x01, 0x11;
7860 eeprom_instr = 0xBD, 0xF2, 0xBD, 0xE1, 0xBB, 0xCF, 0xB4, 0x00,
7861 0xBE, 0x01, 0xB6, 0x01, 0xBC, 0x00, 0xBB, 0xBF,
7862 0x99, 0xF9, 0xBB, 0xAF;
7863 stk500_devcode = 0x73;
7864 # avr910_devcode = 0x;
7865 signature = 0x1e 0x93 0x11;
7866 pagel = 0xd7;
7867 bs2 = 0xc2;
7868 chip_erase_delay = 9000;
7869 pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
7870 "x x x x x x x x x x x x x x x x";
7871
7872 chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
7873 "x x x x x x x x x x x x x x x x";
7874
7875 timeout = 200;
7876 stabdelay = 100;
7877 cmdexedelay = 25;
7878 synchloops = 32;
7879 bytedelay = 0;
7880 pollindex = 3;
7881 pollvalue = 0x53;
7882 predelay = 1;
7883 postdelay = 1;
7884 pollmethod = 1;
7885
7886 pp_controlstack =
7887 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
7888 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
7889 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
7890 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
7891 hventerstabdelay = 100;
7892 progmodedelay = 0;
7893 latchcycles = 5;
7894 togglevtg = 1;
7895 poweroffdelay = 15;
7896 resetdelayms = 1;
7897 resetdelayus = 0;
7898 hvleavestabdelay = 15;
7899 resetdelay = 15;
7900 chiperasepulsewidth = 0;
7901 chiperasepolltimeout = 10;
7902 programfusepulsewidth = 0;
7903 programfusepolltimeout = 5;
7904 programlockpulsewidth = 0;
7905 programlockpolltimeout = 5;
7906
7907 ocdrev = 1;
7908
7909 memory "eeprom"
7910 paged = no;
7911 page_size = 4;
7912 size = 64;
7913 min_write_delay = 3600;
7914 max_write_delay = 3600;
7915 readback_p1 = 0xff;
7916 readback_p2 = 0xff;
7917 read = " 1 0 1 0 0 0 0 0",
7918 " 0 0 0 x x x x x",
7919 " x a6 a5 a4 a3 a2 a1 a0",
7920 " o o o o o o o o";
7921
7922 write = " 1 1 0 0 0 0 0 0",
7923 " 0 0 0 x x x x x",
7924 " x a6 a5 a4 a3 a2 a1 a0",
7925 " i i i i i i i i";
7926
7927 loadpage_lo = " 1 1 0 0 0 0 0 1",
7928 " 0 0 0 0 0 0 0 0",
7929 " 0 0 0 0 0 0 a1 a0",
7930 " i i i i i i i i";
7931
7932 writepage = " 1 1 0 0 0 0 1 0",
7933 " 0 0 x x x x x x",
7934 " x a6 a5 a4 a3 a2 0 0",
7935 " x x x x x x x x";
7936
7937 mode = 0x41;
7938 delay = 20;
7939 blocksize = 4;
7940 readsize = 64;
7941 ;
7942 memory "flash"
7943 paged = yes;
7944 size = 8192;
7945 page_size = 64;
7946 num_pages = 128;
7947 min_write_delay = 4500;
7948 max_write_delay = 4500;
7949 readback_p1 = 0xff;
7950 readback_p2 = 0xff;
7951 read_lo = " 0 0 1 0 0 0 0 0",
7952 " 0 0 0 0 a11 a10 a9 a8",
7953 " a7 a6 a5 a4 a3 a2 a1 a0",
7954 " o o o o o o o o";
7955
7956 read_hi = " 0 0 1 0 1 0 0 0",
7957 " 0 0 0 0 a11 a10 a9 a8",
7958 " a7 a6 a5 a4 a3 a2 a1 a0",
7959 " o o o o o o o o";
7960
7961 loadpage_lo = " 0 1 0 0 0 0 0 0",
7962 " 0 0 0 x x x x x",
7963 " x x x a4 a3 a2 a1 a0",
7964 " i i i i i i i i";
7965
7966 loadpage_hi = " 0 1 0 0 1 0 0 0",
7967 " 0 0 0 x x x x x",
7968 " x x x a4 a3 a2 a1 a0",
7969 " i i i i i i i i";
7970
7971 writepage = " 0 1 0 0 1 1 0 0",
7972 " 0 0 0 0 a11 a10 a9 a8",
7973 " a7 a6 a5 x x x x x",
7974 " x x x x x x x x";
7975
7976 mode = 0x41;
7977 delay = 6;
7978 blocksize = 64;
7979 readsize = 256;
7980 ;
7981
7982 memory "lfuse"
7983 size = 1;
7984 min_write_delay = 4500;
7985 max_write_delay = 4500;
7986 read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
7987 "x x x x x x x x o o o o o o o o";
7988
7989 write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
7990 "x x x x x x x x i i i i i i i i";
7991 ;
7992
7993 memory "hfuse"
7994 size = 1;
7995 min_write_delay = 4500;
7996 max_write_delay = 4500;
7997 read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
7998 "x x x x x x x x o o o o o o o o";
7999
8000 write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
8001 "x x x x x x x x i i i i i i i i";
8002 ;
8003
8004 memory "efuse"
8005 size = 1;
8006 min_write_delay = 4500;
8007 max_write_delay = 4500;
8008 read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
8009 "x x x x x x x x x x x x x o o o";
8010
8011 write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
8012 "x x x x x x x x x x x x x x x i";
8013 ;
8014
8015 memory "lock"
8016 size = 1;
8017 min_write_delay = 4500;
8018 max_write_delay = 4500;
8019 read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
8020 "x x x x x x x x x x o o o o o o";
8021
8022 write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
8023 "x x x x x x x x 1 1 i i i i i i";
8024 ;
8025
8026 memory "calibration"
8027 size = 1;
8028 read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
8029 "0 0 0 0 0 0 0 0 o o o o o o o o";
8030 ;
8031
8032 memory "signature"
8033 size = 3;
8034 read = "0 0 1 1 0 0 0 0 0 0 0 x x x x x",
8035 "x x x x x x a1 a0 o o o o o o o o";
8036 ;
8037 ;
8038
8039 #------------------------------------------------------------
8040 # ATmega328
8041 #------------------------------------------------------------
8042
8043 part
8044 id = "m328";
8045 desc = "ATmega328";
8046 has_debugwire = yes;
8047 flash_instr = 0xB6, 0x01, 0x11;
8048 eeprom_instr = 0xBD, 0xF2, 0xBD, 0xE1, 0xBB, 0xCF, 0xB4, 0x00,
8049 0xBE, 0x01, 0xB6, 0x01, 0xBC, 0x00, 0xBB, 0xBF,
8050 0x99, 0xF9, 0xBB, 0xAF;
8051 stk500_devcode = 0x86;
8052 # avr910_devcode = 0x;
8053 signature = 0x1e 0x95 0x14;
8054 pagel = 0xd7;
8055 bs2 = 0xc2;
8056 chip_erase_delay = 9000;
8057 pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
8058 "x x x x x x x x x x x x x x x x";
8059
8060 chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
8061 "x x x x x x x x x x x x x x x x";
8062
8063 timeout = 200;
8064 stabdelay = 100;
8065 cmdexedelay = 25;
8066 synchloops = 32;
8067 bytedelay = 0;
8068 pollindex = 3;
8069 pollvalue = 0x53;
8070 predelay = 1;
8071 postdelay = 1;
8072 pollmethod = 1;
8073
8074 pp_controlstack =
8075 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
8076 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
8077 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
8078 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
8079 hventerstabdelay = 100;
8080 progmodedelay = 0;
8081 latchcycles = 5;
8082 togglevtg = 1;
8083 poweroffdelay = 15;
8084 resetdelayms = 1;
8085 resetdelayus = 0;
8086 hvleavestabdelay = 15;
8087 resetdelay = 15;
8088 chiperasepulsewidth = 0;
8089 chiperasepolltimeout = 10;
8090 programfusepulsewidth = 0;
8091 programfusepolltimeout = 5;
8092 programlockpulsewidth = 0;
8093 programlockpolltimeout = 5;
8094
8095 ocdrev = 1;
8096
8097 memory "eeprom"
8098 paged = no;
8099 page_size = 4;
8100 size = 1024;
8101 min_write_delay = 3600;
8102 max_write_delay = 3600;
8103 readback_p1 = 0xff;
8104 readback_p2 = 0xff;
8105 read = " 1 0 1 0 0 0 0 0",
8106 " 0 0 0 x x x a9 a8",
8107 " a7 a6 a5 a4 a3 a2 a1 a0",
8108 " o o o o o o o o";
8109
8110 write = " 1 1 0 0 0 0 0 0",
8111 " 0 0 0 x x x a9 a8",
8112 " a7 a6 a5 a4 a3 a2 a1 a0",
8113 " i i i i i i i i";
8114
8115 loadpage_lo = " 1 1 0 0 0 0 0 1",
8116 " 0 0 0 0 0 0 0 0",
8117 " 0 0 0 0 0 0 a1 a0",
8118 " i i i i i i i i";
8119
8120 writepage = " 1 1 0 0 0 0 1 0",
8121 " 0 0 x x x x a9 a8",
8122 " a7 a6 a5 a4 a3 a2 0 0",
8123 " x x x x x x x x";
8124
8125 mode = 0x41;
8126 delay = 20;
8127 blocksize = 4;
8128 readsize = 256;
8129 ;
8130
8131 memory "flash"
8132 paged = yes;
8133 size = 32768;
8134 page_size = 128;
8135 num_pages = 256;
8136 min_write_delay = 4500;
8137 max_write_delay = 4500;
8138 readback_p1 = 0xff;
8139 readback_p2 = 0xff;
8140 read_lo = " 0 0 1 0 0 0 0 0",
8141 " 0 0 a13 a12 a11 a10 a9 a8",
8142 " a7 a6 a5 a4 a3 a2 a1 a0",
8143 " o o o o o o o o";
8144
8145 read_hi = " 0 0 1 0 1 0 0 0",
8146 " 0 0 a13 a12 a11 a10 a9 a8",
8147 " a7 a6 a5 a4 a3 a2 a1 a0",
8148 " o o o o o o o o";
8149
8150 loadpage_lo = " 0 1 0 0 0 0 0 0",
8151 " 0 0 0 x x x x x",
8152 " x x a5 a4 a3 a2 a1 a0",
8153 " i i i i i i i i";
8154
8155 loadpage_hi = " 0 1 0 0 1 0 0 0",
8156 " 0 0 0 x x x x x",
8157 " x x a5 a4 a3 a2 a1 a0",
8158 " i i i i i i i i";
8159
8160 writepage = " 0 1 0 0 1 1 0 0",
8161 " 0 0 a13 a12 a11 a10 a9 a8",
8162 " a7 a6 x x x x x x",
8163 " x x x x x x x x";
8164
8165 mode = 0x41;
8166 delay = 6;
8167 blocksize = 128;
8168 readsize = 256;
8169
8170 ;
8171
8172 memory "lfuse"
8173 size = 1;
8174 min_write_delay = 4500;
8175 max_write_delay = 4500;
8176 read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
8177 "x x x x x x x x o o o o o o o o";
8178
8179 write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
8180 "x x x x x x x x i i i i i i i i";
8181 ;
8182
8183 memory "hfuse"
8184 size = 1;
8185 min_write_delay = 4500;
8186 max_write_delay = 4500;
8187 read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
8188 "x x x x x x x x o o o o o o o o";
8189
8190 write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
8191 "x x x x x x x x i i i i i i i i";
8192 ;
8193
8194 memory "efuse"
8195 size = 1;
8196 min_write_delay = 4500;
8197 max_write_delay = 4500;
8198 read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
8199 "x x x x x x x x x x x x x o o o";
8200
8201 write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
8202 "x x x x x x x x x x x x x i i i";
8203 ;
8204
8205 memory "lock"
8206 size = 1;
8207 min_write_delay = 4500;
8208 max_write_delay = 4500;
8209 read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
8210 "x x x x x x x x x x o o o o o o";
8211
8212 write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
8213 "x x x x x x x x 1 1 i i i i i i";
8214 ;
8215
8216 memory "calibration"
8217 size = 1;
8218 read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
8219 "0 0 0 0 0 0 0 0 o o o o o o o o";
8220 ;
8221
8222 memory "signature"
8223 size = 3;
8224 read = "0 0 1 1 0 0 0 0 0 0 0 x x x x x",
8225 "x x x x x x a1 a0 o o o o o o o o";
8226 ;
8227 ;
8228
8229 part parent "m328"
8230 id = "m328p";
8231 desc = "ATmega328P";
8232 signature = 0x1e 0x95 0x0F;
8233
8234 ocdrev = 1;
8235 ;
8236
8237 #------------------------------------------------------------
8238 # ATtiny2313
8239 #------------------------------------------------------------
8240
8241 part
8242 id = "t2313";
8243 desc = "ATtiny2313";
8244 has_debugwire = yes;
8245 flash_instr = 0xB2, 0x0F, 0x1F;
8246 eeprom_instr = 0xBB, 0xFE, 0xBB, 0xEE, 0xBB, 0xCC, 0xB2, 0x0D,
8247 0xBA, 0x0F, 0xB2, 0x0F, 0xBA, 0x0D, 0xBB, 0xBC,
8248 0x99, 0xE1, 0xBB, 0xAC;
8249 stk500_devcode = 0x23;
8250 ## Use the ATtiny26 devcode:
8251 avr910_devcode = 0x5e;
8252 signature = 0x1e 0x91 0x0a;
8253 pagel = 0xD4;
8254 bs2 = 0xD6;
8255 reset = io;
8256 chip_erase_delay = 9000;
8257
8258 pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
8259 "x x x x x x x x x x x x x x x x";
8260
8261 chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
8262 "x x x x x x x x x x x x x x x x";
8263
8264 timeout = 200;
8265 stabdelay = 100;
8266 cmdexedelay = 25;
8267 synchloops = 32;
8268 bytedelay = 0;
8269 pollindex = 3;
8270 pollvalue = 0x53;
8271 predelay = 1;
8272 postdelay = 1;
8273 pollmethod = 1;
8274
8275 pp_controlstack =
8276 0x0E, 0x1E, 0x0E, 0x1E, 0x2E, 0x3E, 0x2E, 0x3E,
8277 0x4E, 0x5E, 0x4E, 0x5E, 0x6E, 0x7E, 0x6E, 0x7E,
8278 0x26, 0x36, 0x66, 0x76, 0x2A, 0x3A, 0x6A, 0x7A,
8279 0x2E, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
8280 hventerstabdelay = 100;
8281 progmodedelay = 0;
8282 latchcycles = 5;
8283 togglevtg = 1;
8284 poweroffdelay = 15;
8285 resetdelayms = 1;
8286 resetdelayus = 0;
8287 hvleavestabdelay = 15;
8288 chiperasepulsewidth = 0;
8289 chiperasepolltimeout = 10;
8290 programfusepulsewidth = 0;
8291 programfusepolltimeout = 5;
8292 programlockpulsewidth = 0;
8293 programlockpolltimeout = 5;
8294
8295 ocdrev = 0;
8296
8297 memory "eeprom"
8298 size = 128;
8299 paged = no;
8300 page_size = 4;
8301 min_write_delay = 4000;
8302 max_write_delay = 4500;
8303 readback_p1 = 0xff;
8304 readback_p2 = 0xff;
8305 read = "1 0 1 0 0 0 0 0 0 0 0 x x x x x",
8306 "x a6 a5 a4 a3 a2 a1 a0 o o o o o o o o";
8307
8308 write = "1 1 0 0 0 0 0 0 0 0 0 x x x x x",
8309 "x a6 a5 a4 a3 a2 a1 a0 i i i i i i i i";
8310
8311 loadpage_lo = " 1 1 0 0 0 0 0 1",
8312 " 0 0 0 0 0 0 0 0",
8313 " 0 0 0 0 0 0 a1 a0",
8314 " i i i i i i i i";
8315
8316 writepage = " 1 1 0 0 0 0 1 0",
8317 " 0 0 x x x x x x",
8318 " x a6 a5 a4 a3 a2 0 0",
8319 " x x x x x x x x";
8320
8321 mode = 0x41;
8322 delay = 6;
8323 blocksize = 4;
8324 readsize = 256;
8325 ;
8326 memory "flash"
8327 paged = yes;
8328 size = 2048;
8329 page_size = 32;
8330 num_pages = 64;
8331 min_write_delay = 4500;
8332 max_write_delay = 4500;
8333 readback_p1 = 0xff;
8334 readback_p2 = 0xff;
8335 read_lo = " 0 0 1 0 0 0 0 0",
8336 " 0 0 0 0 0 0 a9 a8",
8337 " a7 a6 a5 a4 a3 a2 a1 a0",
8338 " o o o o o o o o";
8339
8340 read_hi = " 0 0 1 0 1 0 0 0",
8341 " 0 0 0 0 0 0 a9 a8",
8342 " a7 a6 a5 a4 a3 a2 a1 a0",
8343 " o o o o o o o o";
8344
8345 # The information in the data sheet of April/2004 is wrong, this works:
8346 loadpage_lo = " 0 1 0 0 0 0 0 0",
8347 " 0 0 0 x x x x x",
8348 " x x x x a3 a2 a1 a0",
8349 " i i i i i i i i";
8350
8351 # The information in the data sheet of April/2004 is wrong, this works:
8352 loadpage_hi = " 0 1 0 0 1 0 0 0",
8353 " 0 0 0 x x x x x",
8354 " x x x x a3 a2 a1 a0",
8355 " i i i i i i i i";
8356
8357 # The information in the data sheet of April/2004 is wrong, this works:
8358 writepage = " 0 1 0 0 1 1 0 0",
8359 " 0 0 0 0 0 0 a9 a8",
8360 " a7 a6 a5 a4 x x x x",
8361 " x x x x x x x x";
8362
8363 mode = 0x41;
8364 delay = 6;
8365 blocksize = 32;
8366 readsize = 256;
8367 ;
8368 # ATtiny2313 has Signature Bytes: 0x1E 0x91 0x0A.
8369 memory "signature"
8370 size = 3;
8371 read = "0 0 1 1 0 0 0 0 0 0 0 x x x x x",
8372 "x x x x x x a1 a0 o o o o o o o o";
8373 ;
8374 memory "lock"
8375 size = 1;
8376 write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
8377 "x x x x x x x x 1 1 i i i i i i";
8378 read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
8379 "x x x x x x x x x x o o o o o o";
8380 min_write_delay = 9000;
8381 max_write_delay = 9000;
8382 ;
8383
8384 memory "lfuse"
8385 size = 1;
8386 write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
8387 "x x x x x x x x i i i i i i i i";
8388
8389 read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
8390 "x x x x x x x x o o o o o o o o";
8391 min_write_delay = 9000;
8392 max_write_delay = 9000;
8393 ;
8394
8395 memory "hfuse"
8396 size = 1;
8397 write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
8398 "x x x x x x x x i i i i i i i i";
8399
8400 read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
8401 "x x x x x x x x o o o o o o o o";
8402 min_write_delay = 9000;
8403 max_write_delay = 9000;
8404 ;
8405
8406 memory "efuse"
8407 size = 1;
8408 write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
8409 "x x x x x x x x x x x x x x x i";
8410
8411 read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
8412 "x x x x x x x x o o o o o o o o";
8413 min_write_delay = 9000;
8414 max_write_delay = 9000;
8415 ;
8416 # The Tiny2313 has calibration data for both 4 MHz and 8 MHz.
8417 # The information in the data sheet of April/2004 is wrong, this works:
8418
8419 memory "calibration"
8420 size = 2;
8421 read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
8422 "0 0 0 0 0 0 0 a0 o o o o o o o o";
8423 ;
8424 ;
8425
8426 #------------------------------------------------------------
8427 # ATtiny4313
8428 #------------------------------------------------------------
8429
8430 part
8431 id = "t4313";
8432 desc = "ATtiny4313";
8433 has_debugwire = yes;
8434 flash_instr = 0xB2, 0x0F, 0x1F;
8435 eeprom_instr = 0xBB, 0xFE, 0xBB, 0xEE, 0xBB, 0xCC, 0xB2, 0x0D,
8436 0xBA, 0x0F, 0xB2, 0x0F, 0xBA, 0x0D, 0xBB, 0xBC,
8437 0x99, 0xE1, 0xBB, 0xAC;
8438 stk500_devcode = 0x23;
8439 ## Use the ATtiny26 devcode:
8440 avr910_devcode = 0x5e;
8441 signature = 0x1e 0x92 0x0d;
8442 pagel = 0xD4;
8443 bs2 = 0xD6;
8444 reset = io;
8445 chip_erase_delay = 9000;
8446
8447 pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
8448 "x x x x x x x x x x x x x x x x";
8449
8450 chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
8451 "x x x x x x x x x x x x x x x x";
8452
8453 timeout = 200;
8454 stabdelay = 100;
8455 cmdexedelay = 25;
8456 synchloops = 32;
8457 bytedelay = 0;
8458 pollindex = 3;
8459 pollvalue = 0x53;
8460 predelay = 1;
8461 postdelay = 1;
8462 pollmethod = 1;
8463
8464 pp_controlstack =
8465 0x0E, 0x1E, 0x0E, 0x1E, 0x2E, 0x3E, 0x2E, 0x3E,
8466 0x4E, 0x5E, 0x4E, 0x5E, 0x6E, 0x7E, 0x6E, 0x7E,
8467 0x26, 0x36, 0x66, 0x76, 0x2A, 0x3A, 0x6A, 0x7A,
8468 0x2E, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
8469 hventerstabdelay = 100;
8470 progmodedelay = 0;
8471 latchcycles = 5;
8472 togglevtg = 1;
8473 poweroffdelay = 15;
8474 resetdelayms = 1;
8475 resetdelayus = 0;
8476 hvleavestabdelay = 15;
8477 chiperasepulsewidth = 0;
8478 chiperasepolltimeout = 10;
8479 programfusepulsewidth = 0;
8480 programfusepolltimeout = 5;
8481 programlockpulsewidth = 0;
8482 programlockpolltimeout = 5;
8483
8484 ocdrev = 0;
8485
8486 memory "eeprom"
8487 size = 256;
8488 paged = no;
8489 page_size = 4;
8490 min_write_delay = 4000;
8491 max_write_delay = 4500;
8492 readback_p1 = 0xff;
8493 readback_p2 = 0xff;
8494 read = "1 0 1 0 0 0 0 0 0 0 0 x x x x x",
8495 "a7 a6 a5 a4 a3 a2 a1 a0 o o o o o o o o";
8496
8497 write = "1 1 0 0 0 0 0 0 0 0 0 x x x x x",
8498 "a7 a6 a5 a4 a3 a2 a1 a0 i i i i i i i i";
8499
8500 loadpage_lo = " 1 1 0 0 0 0 0 1",
8501 " 0 0 0 0 0 0 0 0",
8502 " 0 0 0 0 0 0 a1 a0",
8503 " i i i i i i i i";
8504
8505 writepage = " 1 1 0 0 0 0 1 0",
8506 " 0 0 x x x x x x",
8507 " a7 a6 a5 a4 a3 a2 0 0",
8508 " x x x x x x x x";
8509
8510 mode = 0x41;
8511 delay = 6;
8512 blocksize = 4;
8513 readsize = 256;
8514 ;
8515 memory "flash"
8516 paged = yes;
8517 size = 4096;
8518 page_size = 64;
8519 num_pages = 64;
8520 min_write_delay = 4500;
8521 max_write_delay = 4500;
8522 readback_p1 = 0xff;
8523 readback_p2 = 0xff;
8524 read_lo = " 0 0 1 0 0 0 0 0",
8525 " 0 0 0 0 0 a10 a9 a8",
8526 " a7 a6 a5 a4 a3 a2 a1 a0",
8527 " o o o o o o o o";
8528
8529 read_hi = " 0 0 1 0 1 0 0 0",
8530 " 0 0 0 0 0 a10 a9 a8",
8531 " a7 a6 a5 a4 a3 a2 a1 a0",
8532 " o o o o o o o o";
8533
8534 loadpage_lo = " 0 1 0 0 0 0 0 0",
8535 " 0 0 0 x x x x x",
8536 " x x x a4 a3 a2 a1 a0",
8537 " i i i i i i i i";
8538
8539 loadpage_hi = " 0 1 0 0 1 0 0 0",
8540 " 0 0 0 x x x x x",
8541 " x x x a4 a3 a2 a1 a0",
8542 " i i i i i i i i";
8543
8544 writepage = " 0 1 0 0 1 1 0 0",
8545 " 0 0 0 0 0 a10 a9 a8",
8546 " a7 a6 a5 x x x x x",
8547 " x x x x x x x x";
8548
8549 mode = 0x41;
8550 delay = 6;
8551 blocksize = 32;
8552 readsize = 256;
8553 ;
8554 # ATtiny4313 has Signature Bytes: 0x1E 0x92 0x0D.
8555 memory "signature"
8556 size = 3;
8557 read = "0 0 1 1 0 0 0 0 0 0 0 x x x x x",
8558 "x x x x x x a1 a0 o o o o o o o o";
8559 ;
8560 memory "lock"
8561 size = 1;
8562 write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
8563 "x x x x x x x x 1 1 i i i i i i";
8564 read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
8565 "x x x x x x x x x x o o o o o o";
8566 min_write_delay = 9000;
8567 max_write_delay = 9000;
8568 ;
8569
8570 memory "lfuse"
8571 size = 1;
8572 write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
8573 "x x x x x x x x i i i i i i i i";
8574
8575 read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
8576 "x x x x x x x x o o o o o o o o";
8577 min_write_delay = 9000;
8578 max_write_delay = 9000;
8579 ;
8580
8581 memory "hfuse"
8582 size = 1;
8583 write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
8584 "x x x x x x x x i i i i i i i i";
8585
8586 read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
8587 "x x x x x x x x o o o o o o o o";
8588 min_write_delay = 9000;
8589 max_write_delay = 9000;
8590 ;
8591
8592 memory "efuse"
8593 size = 1;
8594 write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
8595 "x x x x x x x x x x x x x x x i";
8596
8597 read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
8598 "x x x x x x x x o o o o o o o o";
8599 min_write_delay = 9000;
8600 max_write_delay = 9000;
8601 ;
8602
8603 memory "calibration"
8604 size = 2;
8605 read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
8606 "0 0 0 0 0 0 0 a0 o o o o o o o o";
8607 ;
8608 ;
8609
8610 #------------------------------------------------------------
8611 # AT90PWM2
8612 #------------------------------------------------------------
8613
8614 part
8615 id = "pwm2";
8616 desc = "AT90PWM2";
8617 has_debugwire = yes;
8618 flash_instr = 0xB6, 0x01, 0x11;
8619 eeprom_instr = 0xBD, 0xF2, 0xBD, 0xE1, 0xBB, 0xCF, 0xB4, 0x00,
8620 0xBE, 0x01, 0xB6, 0x01, 0xBC, 0x00, 0xBB, 0xBF,
8621 0x99, 0xF9, 0xBB, 0xAF;
8622 stk500_devcode = 0x65;
8623 ## avr910_devcode = ?;
8624 signature = 0x1e 0x93 0x81;
8625 pagel = 0xD8;
8626 bs2 = 0xE2;
8627 reset = io;
8628 chip_erase_delay = 9000;
8629
8630 pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
8631 "x x x x x x x x x x x x x x x x";
8632
8633 chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
8634 "x x x x x x x x x x x x x x x x";
8635
8636 timeout = 200;
8637 stabdelay = 100;
8638 cmdexedelay = 25;
8639 synchloops = 32;
8640 bytedelay = 0;
8641 pollindex = 3;
8642 pollvalue = 0x53;
8643 predelay = 1;
8644 postdelay = 1;
8645 pollmethod = 1;
8646
8647 pp_controlstack =
8648 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
8649 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
8650 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
8651 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
8652 hventerstabdelay = 100;
8653 progmodedelay = 0;
8654 latchcycles = 5;
8655 togglevtg = 1;
8656 poweroffdelay = 15;
8657 resetdelayms = 1;
8658 resetdelayus = 0;
8659 hvleavestabdelay = 15;
8660 chiperasepulsewidth = 0;
8661 chiperasepolltimeout = 10;
8662 programfusepulsewidth = 0;
8663 programfusepolltimeout = 5;
8664 programlockpulsewidth = 0;
8665 programlockpolltimeout = 5;
8666
8667 memory "eeprom"
8668 size = 512;
8669 paged = no;
8670 page_size = 4;
8671 min_write_delay = 4000;
8672 max_write_delay = 4500;
8673 readback_p1 = 0xff;
8674 readback_p2 = 0xff;
8675 read = "1 0 1 0 0 0 0 0 0 0 0 x x x x a8",
8676 "a7 a6 a5 a4 a3 a2 a1 a0 o o o o o o o o";
8677
8678 write = "1 1 0 0 0 0 0 0 0 0 0 x x x x a8",
8679 "a7 a6 a5 a4 a3 a2 a1 a0 i i i i i i i i";
8680
8681 loadpage_lo = " 1 1 0 0 0 0 0 1",
8682 " 0 0 0 0 0 0 0 0",
8683 " 0 0 0 0 0 0 a1 a0",
8684 " i i i i i i i i";
8685
8686 writepage = " 1 1 0 0 0 0 1 0",
8687 " 0 0 x x x x x x",
8688 " a7 a6 a5 a4 a3 a2 0 0",
8689 " x x x x x x x x";
8690
8691 mode = 0x41;
8692 delay = 6;
8693 blocksize = 4;
8694 readsize = 256;
8695 ;
8696 memory "flash"
8697 paged = yes;
8698 size = 8192;
8699 page_size = 64;
8700 num_pages = 128;
8701 min_write_delay = 4500;
8702 max_write_delay = 4500;
8703 readback_p1 = 0xff;
8704 readback_p2 = 0xff;
8705 read_lo = " 0 0 1 0 0 0 0 0",
8706 " 0 0 0 0 a11 a10 a9 a8",
8707 " a7 a6 a5 a4 a3 a2 a1 a0",
8708 " o o o o o o o o";
8709
8710 read_hi = " 0 0 1 0 1 0 0 0",
8711 " 0 0 0 0 a11 a10 a9 a8",
8712 " a7 a6 a5 a4 a3 a2 a1 a0",
8713 " o o o o o o o o";
8714
8715 loadpage_lo = " 0 1 0 0 0 0 0 0",
8716 " 0 0 0 x x x x x",
8717 " x x x a4 a3 a2 a1 a0",
8718 " i i i i i i i i";
8719
8720 loadpage_hi = " 0 1 0 0 1 0 0 0",
8721 " 0 0 0 x x x x x",
8722 " x x x a4 a3 a2 a1 a0",
8723 " i i i i i i i i";
8724
8725 writepage = " 0 1 0 0 1 1 0 0",
8726 " 0 0 0 0 a11 a10 a9 a8",
8727 " a7 a6 a5 x x x x x",
8728 " x x x x x x x x";
8729
8730 mode = 0x41;
8731 delay = 6;
8732 blocksize = 64;
8733 readsize = 256;
8734 ;
8735 # AT90PWM2 has Signature Bytes: 0x1E 0x93 0x81.
8736 memory "signature"
8737 size = 3;
8738 read = "0 0 1 1 0 0 0 0 0 0 x x x x x x",
8739 "x x x x x x a1 a0 o o o o o o o o";
8740 ;
8741 memory "lock"
8742 size = 1;
8743 write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
8744 "x x x x x x x x 1 1 i i i i i i";
8745
8746 read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
8747 "x x x x x x x x x x o o o o o o";
8748 min_write_delay = 9000;
8749 max_write_delay = 9000;
8750 ;
8751
8752 memory "lfuse"
8753 size = 1;
8754 write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
8755 "x x x x x x x x i i i i i i i i";
8756
8757 read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
8758 "x x x x x x x x o o o o o o o o";
8759 min_write_delay = 9000;
8760 max_write_delay = 9000;
8761 ;
8762
8763 memory "hfuse"
8764 size = 1;
8765 write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
8766 "x x x x x x x x i i i i i i i i";
8767
8768 read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
8769 "x x x x x x x x o o o o o o o o";
8770 min_write_delay = 9000;
8771 max_write_delay = 9000;
8772 ;
8773
8774 memory "efuse"
8775 size = 1;
8776 write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
8777 "x x x x x x x x i i i i i i i i";
8778
8779 read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
8780 "x x x x x x x x o o o o o o o o";
8781 min_write_delay = 9000;
8782 max_write_delay = 9000;
8783 ;
8784
8785 memory "calibration"
8786 size = 1;
8787 read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
8788 "0 0 0 0 0 0 0 0 o o o o o o o o";
8789 ;
8790 ;
8791
8792 #------------------------------------------------------------
8793 # AT90PWM3
8794 #------------------------------------------------------------
8795
8796 # Completely identical to AT90PWM2 (including the signature!)
8797
8798 part parent "pwm2"
8799 id = "pwm3";
8800 desc = "AT90PWM3";
8801 ;
8802
8803 #------------------------------------------------------------
8804 # AT90PWM2B
8805 #------------------------------------------------------------
8806 # Same as AT90PWM2 but different signature.
8807
8808 part parent "pwm2"
8809 id = "pwm2b";
8810 desc = "AT90PWM2B";
8811 signature = 0x1e 0x93 0x83;
8812
8813 ocdrev = 1;
8814 ;
8815
8816 #------------------------------------------------------------
8817 # AT90PWM3B
8818 #------------------------------------------------------------
8819
8820 # Completely identical to AT90PWM2B (including the signature!)
8821
8822 part parent "pwm2b"
8823 id = "pwm3b";
8824 desc = "AT90PWM3B";
8825
8826 ocdrev = 1;
8827 ;
8828
8829 #------------------------------------------------------------
8830 # AT90PWM316
8831 #------------------------------------------------------------
8832
8833 # Similar to AT90PWM3B, but with 16 kiB flash, 512 B EEPROM, and 1024 B SRAM.
8834
8835 part parent "pwm3b"
8836 id = "pwm316";
8837 desc = "AT90PWM316";
8838 signature = 0x1e 0x94 0x83;
8839
8840 ocdrev = 1;
8841
8842 memory "flash"
8843 paged = yes;
8844 size = 16384;
8845 page_size = 128;
8846 num_pages = 128;
8847 min_write_delay = 4500;
8848 max_write_delay = 4500;
8849 readback_p1 = 0xff;
8850 readback_p2 = 0xff;
8851 read_lo = " 0 0 1 0 0 0 0 0",
8852 " 0 0 a13 a12 a11 a10 a9 a8",
8853 " a7 a6 a5 a4 a3 a2 a1 a0",
8854 " o o o o o o o o";
8855
8856 read_hi = " 0 0 1 0 1 0 0 0",
8857 " 0 0 a13 a12 a11 a10 a9 a8",
8858 " a7 a6 a5 a4 a3 a2 a1 a0",
8859 " o o o o o o o o";
8860
8861 loadpage_lo = " 0 1 0 0 0 0 0 0",
8862 " 0 0 x x x x x x",
8863 " x x a5 a4 a3 a2 a1 a0",
8864 " i i i i i i i i";
8865
8866 loadpage_hi = " 0 1 0 0 1 0 0 0",
8867 " 0 0 x x x x x x",
8868 " x x a5 a4 a3 a2 a1 a0",
8869 " i i i i i i i i";
8870
8871 writepage = " 0 1 0 0 1 1 0 0",
8872 " 0 0 a13 a12 a11 a10 a9 a8",
8873 " a7 a6 x x x x x x",
8874 " x x x x x x x x";
8875
8876 mode = 0x21;
8877 delay = 6;
8878 blocksize = 128;
8879 readsize = 256;
8880 ;
8881 ;
8882
8883 #------------------------------------------------------------
8884 # ATtiny25
8885 #------------------------------------------------------------
8886
8887 part
8888 id = "t25";
8889 desc = "ATtiny25";
8890 has_debugwire = yes;
8891 flash_instr = 0xB4, 0x02, 0x12;
8892 eeprom_instr = 0xBB, 0xFF, 0xBB, 0xEE, 0xBB, 0xCC, 0xB2, 0x0D,
8893 0xBC, 0x02, 0xB4, 0x02, 0xBA, 0x0D, 0xBB, 0xBC,
8894 0x99, 0xE1, 0xBB, 0xAC;
8895 ## no STK500 devcode in XML file, use the ATtiny45 one
8896 stk500_devcode = 0x14;
8897 ## avr910_devcode = ?;
8898 ## Try the AT90S2313 devcode:
8899 avr910_devcode = 0x20;
8900 signature = 0x1e 0x91 0x08;
8901 reset = io;
8902 chip_erase_delay = 4500;
8903
8904 pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
8905 "x x x x x x x x x x x x x x x x";
8906
8907 chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
8908 "x x x x x x x x x x x x x x x x";
8909
8910 timeout = 200;
8911 stabdelay = 100;
8912 cmdexedelay = 25;
8913 synchloops = 32;
8914 bytedelay = 0;
8915 pollindex = 3;
8916 pollvalue = 0x53;
8917 predelay = 1;
8918 postdelay = 1;
8919 pollmethod = 1;
8920
8921 hvsp_controlstack =
8922 0x4C, 0x0C, 0x1C, 0x2C, 0x3C, 0x64, 0x74, 0x66,
8923 0x68, 0x78, 0x68, 0x68, 0x7A, 0x6A, 0x68, 0x78,
8924 0x78, 0x7D, 0x6D, 0x0C, 0x80, 0x40, 0x20, 0x10,
8925 0x11, 0x08, 0x04, 0x02, 0x03, 0x08, 0x04, 0x00;
8926 hventerstabdelay = 100;
8927 hvspcmdexedelay = 0;
8928 synchcycles = 6;
8929 latchcycles = 1;
8930 togglevtg = 1;
8931 poweroffdelay = 25;
8932 resetdelayms = 1;
8933 resetdelayus = 0;
8934 hvleavestabdelay = 100;
8935 resetdelay = 25;
8936 chiperasepolltimeout = 40;
8937 chiperasetime = 0;
8938 programfusepolltimeout = 25;
8939 programlockpolltimeout = 25;
8940
8941 ocdrev = 1;
8942
8943 memory "eeprom"
8944 size = 128;
8945 paged = no;
8946 page_size = 4;
8947 min_write_delay = 4000;
8948 max_write_delay = 4500;
8949 readback_p1 = 0xff;
8950 readback_p2 = 0xff;
8951 read = "1 0 1 0 0 0 0 0 0 0 0 x x x x x",
8952 "x a6 a5 a4 a3 a2 a1 a0 o o o o o o o o";
8953
8954 write = "1 1 0 0 0 0 0 0 0 0 0 x x x x x",
8955 "x a6 a5 a4 a3 a2 a1 a0 i i i i i i i i";
8956
8957 loadpage_lo = " 1 1 0 0 0 0 0 1",
8958 " 0 0 0 0 0 0 0 0",
8959 " 0 0 0 0 0 0 a1 a0",
8960 " i i i i i i i i";
8961
8962 writepage = " 1 1 0 0 0 0 1 0",
8963 " 0 0 x x x x x x",
8964 " x a6 a5 a4 a3 a2 0 0",
8965 " x x x x x x x x";
8966
8967 mode = 0x41;
8968 delay = 6;
8969 blocksize = 4;
8970 readsize = 256;
8971 ;
8972 memory "flash"
8973 paged = yes;
8974 size = 2048;
8975 page_size = 32;
8976 num_pages = 64;
8977 min_write_delay = 4500;
8978 max_write_delay = 4500;
8979 readback_p1 = 0xff;
8980 readback_p2 = 0xff;
8981 read_lo = " 0 0 1 0 0 0 0 0",
8982 " 0 0 0 0 0 0 a9 a8",
8983 " a7 a6 a5 a4 a3 a2 a1 a0",
8984 " o o o o o o o o";
8985
8986 read_hi = " 0 0 1 0 1 0 0 0",
8987 " 0 0 0 0 0 0 a9 a8",
8988 " a7 a6 a5 a4 a3 a2 a1 a0",
8989 " o o o o o o o o";
8990
8991 loadpage_lo = " 0 1 0 0 0 0 0 0",
8992 " 0 0 0 x x x x x",
8993 " x x x x a3 a2 a1 a0",
8994 " i i i i i i i i";
8995
8996 loadpage_hi = " 0 1 0 0 1 0 0 0",
8997 " 0 0 0 x x x x x",
8998 " x x x x a3 a2 a1 a0",
8999 " i i i i i i i i";
9000
9001 writepage = " 0 1 0 0 1 1 0 0",
9002 " 0 0 0 0 0 0 a9 a8",
9003 " a7 a6 a5 a4 x x x x",
9004 " x x x x x x x x";
9005
9006 mode = 0x41;
9007 delay = 6;
9008 blocksize = 32;
9009 readsize = 256;
9010 ;
9011 # ATtiny25 has Signature Bytes: 0x1E 0x91 0x08.
9012 memory "signature"
9013 size = 3;
9014 read = "0 0 1 1 0 0 0 0 0 0 0 x x x x x",
9015 "x x x x x x a1 a0 o o o o o o o o";
9016 ;
9017 memory "lock"
9018 size = 1;
9019 write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
9020 "x x x x x x x x 1 1 i i i i i i";
9021 min_write_delay = 9000;
9022 max_write_delay = 9000;
9023 ;
9024
9025 memory "lfuse"
9026 size = 1;
9027 write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
9028 "x x x x x x x x i i i i i i i i";
9029
9030 read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
9031 "x x x x x x x x o o o o o o o o";
9032 min_write_delay = 9000;
9033 max_write_delay = 9000;
9034 ;
9035
9036 memory "hfuse"
9037 size = 1;
9038 write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
9039 "x x x x x x x x i i i i i i i i";
9040
9041 read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
9042 "x x x x x x x x o o o o o o o o";
9043 min_write_delay = 9000;
9044 max_write_delay = 9000;
9045 ;
9046
9047 memory "efuse"
9048 size = 1;
9049 write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
9050 "x x x x x x x x x x x x x x x i";
9051
9052 read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
9053 "x x x x x x x x o o o o o o o o";
9054 min_write_delay = 9000;
9055 max_write_delay = 9000;
9056 ;
9057
9058 memory "calibration"
9059 size = 2;
9060 read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
9061 "0 0 0 0 0 0 0 a0 o o o o o o o o";
9062 ;
9063 ;
9064
9065 #------------------------------------------------------------
9066 # ATtiny45
9067 #------------------------------------------------------------
9068
9069 part
9070 id = "t45";
9071 desc = "ATtiny45";
9072 has_debugwire = yes;
9073 flash_instr = 0xB4, 0x02, 0x12;
9074 eeprom_instr = 0xBB, 0xFF, 0xBB, 0xEE, 0xBB, 0xCC, 0xB2, 0x0D,
9075 0xBC, 0x02, 0xB4, 0x02, 0xBA, 0x0D, 0xBB, 0xBC,
9076 0x99, 0xE1, 0xBB, 0xAC;
9077 stk500_devcode = 0x14;
9078 ## avr910_devcode = ?;
9079 ## Try the AT90S2313 devcode:
9080 avr910_devcode = 0x20;
9081 signature = 0x1e 0x92 0x06;
9082 reset = io;
9083 chip_erase_delay = 4500;
9084
9085 pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
9086 "x x x x x x x x x x x x x x x x";
9087
9088 chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
9089 "x x x x x x x x x x x x x x x x";
9090
9091 timeout = 200;
9092 stabdelay = 100;
9093 cmdexedelay = 25;
9094 synchloops = 32;
9095 bytedelay = 0;
9096 pollindex = 3;
9097 pollvalue = 0x53;
9098 predelay = 1;
9099 postdelay = 1;
9100 pollmethod = 1;
9101
9102 hvsp_controlstack =
9103 0x4C, 0x0C, 0x1C, 0x2C, 0x3C, 0x64, 0x74, 0x66,
9104 0x68, 0x78, 0x68, 0x68, 0x7A, 0x6A, 0x68, 0x78,
9105 0x78, 0x7D, 0x6D, 0x0C, 0x80, 0x40, 0x20, 0x10,
9106 0x11, 0x08, 0x04, 0x02, 0x03, 0x08, 0x04, 0x00;
9107 hventerstabdelay = 100;
9108 progmodedelay = 0;
9109 hvspcmdexedelay = 0;
9110 synchcycles = 6;
9111 latchcycles = 1;
9112 togglevtg = 1;
9113 poweroffdelay = 25;
9114 resetdelayms = 1;
9115 resetdelayus = 0;
9116 hvleavestabdelay = 100;
9117 resetdelay = 25;
9118 chiperasepolltimeout = 40;
9119 chiperasetime = 0;
9120 programfusepolltimeout = 25;
9121 programlockpolltimeout = 25;
9122
9123 ocdrev = 1;
9124
9125 memory "eeprom"
9126 size = 256;
9127 page_size = 4;
9128 min_write_delay = 4000;
9129 max_write_delay = 4500;
9130 readback_p1 = 0xff;
9131 readback_p2 = 0xff;
9132 read = "1 0 1 0 0 0 0 0 0 0 0 x x x x x",
9133 "a7 a6 a5 a4 a3 a2 a1 a0 o o o o o o o o";
9134
9135 write = "1 1 0 0 0 0 0 0 0 0 0 x x x x x",
9136 "a7 a6 a5 a4 a3 a2 a1 a0 i i i i i i i i";
9137
9138 loadpage_lo = " 1 1 0 0 0 0 0 1",
9139 " 0 0 0 0 0 0 0 0",
9140 " 0 0 0 0 0 0 a1 a0",
9141 " i i i i i i i i";
9142
9143 writepage = " 1 1 0 0 0 0 1 0",
9144 " 0 0 x x x x x x",
9145 " a7 a6 a5 a4 a3 a2 0 0",
9146 " x x x x x x x x";
9147
9148 mode = 0x41;
9149 delay = 6;
9150 blocksize = 4;
9151 readsize = 256;
9152 ;
9153 memory "flash"
9154 paged = yes;
9155 size = 4096;
9156 page_size = 64;
9157 num_pages = 64;
9158 min_write_delay = 4500;
9159 max_write_delay = 4500;
9160 readback_p1 = 0xff;
9161 readback_p2 = 0xff;
9162 read_lo = " 0 0 1 0 0 0 0 0",
9163 " 0 0 0 0 0 a10 a9 a8",
9164 " a7 a6 a5 a4 a3 a2 a1 a0",
9165 " o o o o o o o o";
9166
9167 read_hi = " 0 0 1 0 1 0 0 0",
9168 " 0 0 0 0 0 a10 a9 a8",
9169 " a7 a6 a5 a4 a3 a2 a1 a0",
9170 " o o o o o o o o";
9171
9172 loadpage_lo = " 0 1 0 0 0 0 0 0",
9173 " 0 0 0 x x x x x",
9174 " x x x a4 a3 a2 a1 a0",
9175 " i i i i i i i i";
9176
9177 loadpage_hi = " 0 1 0 0 1 0 0 0",
9178 " 0 0 0 x x x x x",
9179 " x x x a4 a3 a2 a1 a0",
9180 " i i i i i i i i";
9181
9182 writepage = " 0 1 0 0 1 1 0 0",
9183 " 0 0 0 0 0 a10 a9 a8",
9184 " a7 a6 a5 x x x x x",
9185 " x x x x x x x x";
9186
9187 mode = 0x41;
9188 delay = 6;
9189 blocksize = 32;
9190 readsize = 256;
9191 ;
9192 # ATtiny45 has Signature Bytes: 0x1E 0x92 0x08. (Data sheet 2586C-AVR-06/05 (doc2586.pdf) indicates otherwise!)
9193 memory "signature"
9194 size = 3;
9195 read = "0 0 1 1 0 0 0 0 0 0 0 x x x x x",
9196 "x x x x x x a1 a0 o o o o o o o o";
9197 ;
9198 memory "lock"
9199 size = 1;
9200 write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
9201 "x x x x x x x x 1 1 i i i i i i";
9202 min_write_delay = 9000;
9203 max_write_delay = 9000;
9204 ;
9205
9206 memory "lfuse"
9207 size = 1;
9208 write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
9209 "x x x x x x x x i i i i i i i i";
9210
9211 read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
9212 "x x x x x x x x o o o o o o o o";
9213 min_write_delay = 9000;
9214 max_write_delay = 9000;
9215 ;
9216
9217 memory "hfuse"
9218 size = 1;
9219 write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
9220 "x x x x x x x x i i i i i i i i";
9221
9222 read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
9223 "x x x x x x x x o o o o o o o o";
9224 min_write_delay = 9000;
9225 max_write_delay = 9000;
9226 ;
9227
9228 memory "efuse"
9229 size = 1;
9230 write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
9231 "x x x x x x x x x x x x x x x i";
9232
9233 read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
9234 "x x x x x x x x o o o o o o o o";
9235 min_write_delay = 9000;
9236 max_write_delay = 9000;
9237 ;
9238
9239 memory "calibration"
9240 size = 2;
9241 read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
9242 "0 0 0 0 0 0 0 a0 o o o o o o o o";
9243 ;
9244 ;
9245
9246 #------------------------------------------------------------
9247 # ATtiny85
9248 #------------------------------------------------------------
9249
9250 part
9251 id = "t85";
9252 desc = "ATtiny85";
9253 has_debugwire = yes;
9254 flash_instr = 0xB4, 0x02, 0x12;
9255 eeprom_instr = 0xBB, 0xFF, 0xBB, 0xEE, 0xBB, 0xCC, 0xB2, 0x0D,
9256 0xBC, 0x02, 0xB4, 0x02, 0xBA, 0x0D, 0xBB, 0xBC,
9257 0x99, 0xE1, 0xBB, 0xAC;
9258 ## no STK500 devcode in XML file, use the ATtiny45 one
9259 stk500_devcode = 0x14;
9260 ## avr910_devcode = ?;
9261 ## Try the AT90S2313 devcode:
9262 avr910_devcode = 0x20;
9263 signature = 0x1e 0x93 0x0b;
9264 reset = io;
9265 chip_erase_delay = 400000;
9266
9267 pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
9268 "x x x x x x x x x x x x x x x x";
9269
9270 chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
9271 "x x x x x x x x x x x x x x x x";
9272
9273 timeout = 200;
9274 stabdelay = 100;
9275 cmdexedelay = 25;
9276 synchloops = 32;
9277 bytedelay = 0;
9278 pollindex = 3;
9279 pollvalue = 0x53;
9280 predelay = 1;
9281 postdelay = 1;
9282 pollmethod = 1;
9283
9284 hvsp_controlstack =
9285 0x4C, 0x0C, 0x1C, 0x2C, 0x3C, 0x64, 0x74, 0x66,
9286 0x68, 0x78, 0x68, 0x68, 0x7A, 0x6A, 0x68, 0x78,
9287 0x78, 0x7D, 0x6D, 0x0C, 0x80, 0x40, 0x20, 0x10,
9288 0x11, 0x08, 0x04, 0x02, 0x03, 0x08, 0x04, 0x00;
9289 hventerstabdelay = 100;
9290 hvspcmdexedelay = 0;
9291 synchcycles = 6;
9292 latchcycles = 1;
9293 togglevtg = 1;
9294 poweroffdelay = 25;
9295 resetdelayms = 1;
9296 resetdelayus = 0;
9297 hvleavestabdelay = 100;
9298 resetdelay = 25;
9299 chiperasepolltimeout = 40;
9300 chiperasetime = 0;
9301 programfusepolltimeout = 25;
9302 programlockpolltimeout = 25;
9303
9304 ocdrev = 1;
9305
9306 memory "eeprom"
9307 size = 512;
9308 paged = no;
9309 page_size = 4;
9310 min_write_delay = 4000;
9311 max_write_delay = 4500;
9312 readback_p1 = 0xff;
9313 readback_p2 = 0xff;
9314 read = "1 0 1 0 0 0 0 0 0 0 0 x x x x a8",
9315 "a7 a6 a5 a4 a3 a2 a1 a0 o o o o o o o o";
9316
9317 write = "1 1 0 0 0 0 0 0 0 0 0 x x x x a8",
9318 "a7 a6 a5 a4 a3 a2 a1 a0 i i i i i i i i";
9319
9320 loadpage_lo = " 1 1 0 0 0 0 0 1",
9321 " 0 0 0 0 0 0 0 0",
9322 " 0 0 0 0 0 0 a1 a0",
9323 " i i i i i i i i";
9324
9325 writepage = " 1 1 0 0 0 0 1 0",
9326 " 0 0 x x x x x a8",
9327 " a7 a6 a5 a4 a3 a2 0 0",
9328 " x x x x x x x x";
9329
9330 mode = 0x41;
9331 delay = 12;
9332 blocksize = 4;
9333 readsize = 256;
9334 ;
9335 memory "flash"
9336 paged = yes;
9337 size = 8192;
9338 page_size = 64;
9339 num_pages = 128;
9340 min_write_delay = 30000;
9341 max_write_delay = 30000;
9342 readback_p1 = 0xff;
9343 readback_p2 = 0xff;
9344 read_lo = " 0 0 1 0 0 0 0 0",
9345 " 0 0 0 0 a11 a10 a9 a8",
9346 " a7 a6 a5 a4 a3 a2 a1 a0",
9347 " o o o o o o o o";
9348
9349 read_hi = " 0 0 1 0 1 0 0 0",
9350 " 0 0 0 0 a11 a10 a9 a8",
9351 " a7 a6 a5 a4 a3 a2 a1 a0",
9352 " o o o o o o o o";
9353
9354 loadpage_lo = " 0 1 0 0 0 0 0 0",
9355 " 0 0 0 x x x x x",
9356 " x x x a4 a3 a2 a1 a0",
9357 " i i i i i i i i";
9358
9359 loadpage_hi = " 0 1 0 0 1 0 0 0",
9360 " 0 0 0 x x x x x",
9361 " x x x a4 a3 a2 a1 a0",
9362 " i i i i i i i i";
9363
9364 writepage = " 0 1 0 0 1 1 0 0",
9365 " 0 0 0 0 a11 a10 a9 a8",
9366 " a7 a6 a5 x x x x x",
9367 " x x x x x x x x";
9368
9369 mode = 0x41;
9370 delay = 6;
9371 blocksize = 32;
9372 readsize = 256;
9373 ;
9374 # ATtiny85 has Signature Bytes: 0x1E 0x93 0x08.
9375 memory "signature"
9376 size = 3;
9377 read = "0 0 1 1 0 0 0 0 0 0 0 x x x x x",
9378 "x x x x x x a1 a0 o o o o o o o o";
9379 ;
9380 memory "lock"
9381 size = 1;
9382 write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
9383 "x x x x x x x x 1 1 i i i i i i";
9384 min_write_delay = 9000;
9385 max_write_delay = 9000;
9386 ;
9387
9388 memory "lfuse"
9389 size = 1;
9390 write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
9391 "x x x x x x x x i i i i i i i i";
9392
9393 read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
9394 "x x x x x x x x o o o o o o o o";
9395 min_write_delay = 9000;
9396 max_write_delay = 9000;
9397 ;
9398
9399 memory "hfuse"
9400 size = 1;
9401 write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
9402 "x x x x x x x x i i i i i i i i";
9403
9404 read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
9405 "x x x x x x x x o o o o o o o o";
9406 min_write_delay = 9000;
9407 max_write_delay = 9000;
9408 ;
9409
9410 memory "efuse"
9411 size = 1;
9412 write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
9413 "x x x x x x x x x x x x x x x i";
9414
9415 read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
9416 "x x x x x x x x o o o o o o o o";
9417 min_write_delay = 9000;
9418 max_write_delay = 9000;
9419 ;
9420
9421 memory "calibration"
9422 size = 2;
9423 read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
9424 "0 0 0 0 0 0 0 a0 o o o o o o o o";
9425 ;
9426 ;
9427
9428 #------------------------------------------------------------
9429 # ATmega640
9430 #------------------------------------------------------------
9431 # Almost same as ATmega1280, except for different memory sizes
9432
9433 part
9434 id = "m640";
9435 desc = "ATmega640";
9436 signature = 0x1e 0x96 0x08;
9437 has_jtag = yes;
9438 # stk500_devcode = 0xB2;
9439 # avr910_devcode = 0x43;
9440 chip_erase_delay = 9000;
9441 pagel = 0xD7;
9442 bs2 = 0xA0;
9443 reset = dedicated;
9444 pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
9445 "x x x x x x x x x x x x x x x x";
9446
9447 chip_erase = "1 0 1 0 1 1 0 0 1 0 0 0 0 0 0 0",
9448 "x x x x x x x x x x x x x x x x";
9449
9450 timeout = 200;
9451 stabdelay = 100;
9452 cmdexedelay = 25;
9453 synchloops = 32;
9454 bytedelay = 0;
9455 pollindex = 3;
9456 pollvalue = 0x53;
9457 predelay = 1;
9458 postdelay = 1;
9459 pollmethod = 1;
9460
9461 pp_controlstack =
9462 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
9463 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
9464 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
9465 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
9466 hventerstabdelay = 100;
9467 progmodedelay = 0;
9468 latchcycles = 5;
9469 togglevtg = 1;
9470 poweroffdelay = 15;
9471 resetdelayms = 1;
9472 resetdelayus = 0;
9473 hvleavestabdelay = 15;
9474 chiperasepulsewidth = 0;
9475 chiperasepolltimeout = 10;
9476 programfusepulsewidth = 0;
9477 programfusepolltimeout = 5;
9478 programlockpulsewidth = 0;
9479 programlockpolltimeout = 5;
9480
9481 idr = 0x31;
9482 spmcr = 0x57;
9483 rampz = 0x3b;
9484 allowfullpagebitstream = no;
9485
9486 ocdrev = 3;
9487
9488 memory "eeprom"
9489 paged = no; /* leave this "no" */
9490 page_size = 8; /* for parallel programming */
9491 size = 4096;
9492 min_write_delay = 9000;
9493 max_write_delay = 9000;
9494 readback_p1 = 0x00;
9495 readback_p2 = 0x00;
9496 read = " 1 0 1 0 0 0 0 0",
9497 " x x x x a11 a10 a9 a8",
9498 " a7 a6 a5 a4 a3 a2 a1 a0",
9499 " o o o o o o o o";
9500
9501 write = " 1 1 0 0 0 0 0 0",
9502 " x x x x a11 a10 a9 a8",
9503 " a7 a6 a5 a4 a3 a2 a1 a0",
9504 " i i i i i i i i";
9505
9506 loadpage_lo = " 1 1 0 0 0 0 0 1",
9507 " 0 0 0 0 0 0 0 0",
9508 " 0 0 0 0 0 a2 a1 a0",
9509 " i i i i i i i i";
9510
9511 writepage = " 1 1 0 0 0 0 1 0",
9512 " 0 0 x x a11 a10 a9 a8",
9513 " a7 a6 a5 a4 a3 0 0 0",
9514 " x x x x x x x x";
9515
9516 mode = 0x41;
9517 delay = 10;
9518 blocksize = 8;
9519 readsize = 256;
9520 ;
9521
9522 memory "flash"
9523 paged = yes;
9524 size = 65536;
9525 page_size = 256;
9526 num_pages = 256;
9527 min_write_delay = 4500;
9528 max_write_delay = 4500;
9529 readback_p1 = 0x00;
9530 readback_p2 = 0x00;
9531 read_lo = " 0 0 1 0 0 0 0 0",
9532 " 0 a14 a13 a12 a11 a10 a9 a8",
9533 " a7 a6 a5 a4 a3 a2 a1 a0",
9534 " o o o o o o o o";
9535
9536 read_hi = " 0 0 1 0 1 0 0 0",
9537 " 0 a14 a13 a12 a11 a10 a9 a8",
9538 " a7 a6 a5 a4 a3 a2 a1 a0",
9539 " o o o o o o o o";
9540
9541 loadpage_lo = " 0 1 0 0 0 0 0 0",
9542 " x x x x x x x x",
9543 " x a6 a5 a4 a3 a2 a1 a0",
9544 " i i i i i i i i";
9545
9546 loadpage_hi = " 0 1 0 0 1 0 0 0",
9547 " x x x x x x x x",
9548 " x a6 a5 a4 a3 a2 a1 a0",
9549 " i i i i i i i i";
9550
9551 writepage = " 0 1 0 0 1 1 0 0",
9552 " 0 a14 a13 a12 a11 a10 a9 a8",
9553 " a7 x x x x x x x",
9554 " x x x x x x x x";
9555
9556 mode = 0x41;
9557 delay = 10;
9558 blocksize = 256;
9559 readsize = 256;
9560 ;
9561
9562 memory "lfuse"
9563 size = 1;
9564 write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
9565 "x x x x x x x x i i i i i i i i";
9566
9567 read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
9568 "x x x x x x x x o o o o o o o o";
9569 min_write_delay = 9000;
9570 max_write_delay = 9000;
9571 ;
9572
9573 memory "hfuse"
9574 size = 1;
9575 write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
9576 "x x x x x x x x i i i i i i i i";
9577
9578 read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
9579 "x x x x x x x x o o o o o o o o";
9580 min_write_delay = 9000;
9581 max_write_delay = 9000;
9582 ;
9583
9584 memory "efuse"
9585 size = 1;
9586 write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
9587 "x x x x x x x x x x x x x i i i";
9588
9589 read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
9590 "x x x x x x x x o o o o o o o o";
9591 min_write_delay = 9000;
9592 max_write_delay = 9000;
9593 ;
9594
9595 memory "lock"
9596 size = 1;
9597 read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
9598 "x x x x x x x x x x o o o o o o";
9599
9600 write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
9601 "x x x x x x x x 1 1 i i i i i i";
9602 min_write_delay = 9000;
9603 max_write_delay = 9000;
9604 ;
9605
9606 memory "calibration"
9607 size = 1;
9608 read = "0 0 1 1 1 0 0 0 x x x x x x x x",
9609 "0 0 0 0 0 0 0 0 o o o o o o o o";
9610 ;
9611
9612 memory "signature"
9613 size = 3;
9614 read = "0 0 1 1 0 0 0 0 x x x x x x x x",
9615 "x x x x x x a1 a0 o o o o o o o o";
9616 ;
9617 ;
9618
9619 #------------------------------------------------------------
9620 # ATmega1280
9621 #------------------------------------------------------------
9622
9623 part
9624 id = "m1280";
9625 desc = "ATmega1280";
9626 signature = 0x1e 0x97 0x03;
9627 has_jtag = yes;
9628 # stk500_devcode = 0xB2;
9629 # avr910_devcode = 0x43;
9630 chip_erase_delay = 9000;
9631 pagel = 0xD7;
9632 bs2 = 0xA0;
9633 reset = dedicated;
9634 pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
9635 "x x x x x x x x x x x x x x x x";
9636
9637 chip_erase = "1 0 1 0 1 1 0 0 1 0 0 0 0 0 0 0",
9638 "x x x x x x x x x x x x x x x x";
9639
9640 timeout = 200;
9641 stabdelay = 100;
9642 cmdexedelay = 25;
9643 synchloops = 32;
9644 bytedelay = 0;
9645 pollindex = 3;
9646 pollvalue = 0x53;
9647 predelay = 1;
9648 postdelay = 1;
9649 pollmethod = 1;
9650
9651 pp_controlstack =
9652 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
9653 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
9654 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
9655 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
9656 hventerstabdelay = 100;
9657 progmodedelay = 0;
9658 latchcycles = 5;
9659 togglevtg = 1;
9660 poweroffdelay = 15;
9661 resetdelayms = 1;
9662 resetdelayus = 0;
9663 hvleavestabdelay = 15;
9664 chiperasepulsewidth = 0;
9665 chiperasepolltimeout = 10;
9666 programfusepulsewidth = 0;
9667 programfusepolltimeout = 5;
9668 programlockpulsewidth = 0;
9669 programlockpolltimeout = 5;
9670
9671 idr = 0x31;
9672 spmcr = 0x57;
9673 rampz = 0x3b;
9674 allowfullpagebitstream = no;
9675
9676 ocdrev = 3;
9677
9678 memory "eeprom"
9679 paged = no; /* leave this "no" */
9680 page_size = 8; /* for parallel programming */
9681 size = 4096;
9682 min_write_delay = 9000;
9683 max_write_delay = 9000;
9684 readback_p1 = 0x00;
9685 readback_p2 = 0x00;
9686 read = " 1 0 1 0 0 0 0 0",
9687 " x x x x a11 a10 a9 a8",
9688 " a7 a6 a5 a4 a3 a2 a1 a0",
9689 " o o o o o o o o";
9690
9691 write = " 1 1 0 0 0 0 0 0",
9692 " x x x x a11 a10 a9 a8",
9693 " a7 a6 a5 a4 a3 a2 a1 a0",
9694 " i i i i i i i i";
9695
9696 loadpage_lo = " 1 1 0 0 0 0 0 1",
9697 " 0 0 0 0 0 0 0 0",
9698 " 0 0 0 0 0 a2 a1 a0",
9699 " i i i i i i i i";
9700
9701 writepage = " 1 1 0 0 0 0 1 0",
9702 " 0 0 x x a11 a10 a9 a8",
9703 " a7 a6 a5 a4 a3 0 0 0",
9704 " x x x x x x x x";
9705
9706 mode = 0x41;
9707 delay = 10;
9708 blocksize = 8;
9709 readsize = 256;
9710 ;
9711
9712 memory "flash"
9713 paged = yes;
9714 size = 131072;
9715 page_size = 256;
9716 num_pages = 512;
9717 min_write_delay = 4500;
9718 max_write_delay = 4500;
9719 readback_p1 = 0x00;
9720 readback_p2 = 0x00;
9721 read_lo = " 0 0 1 0 0 0 0 0",
9722 "a15 a14 a13 a12 a11 a10 a9 a8",
9723 " a7 a6 a5 a4 a3 a2 a1 a0",
9724 " o o o o o o o o";
9725
9726 read_hi = " 0 0 1 0 1 0 0 0",
9727 "a15 a14 a13 a12 a11 a10 a9 a8",
9728 " a7 a6 a5 a4 a3 a2 a1 a0",
9729 " o o o o o o o o";
9730
9731 loadpage_lo = " 0 1 0 0 0 0 0 0",
9732 " x x x x x x x x",
9733 " x a6 a5 a4 a3 a2 a1 a0",
9734 " i i i i i i i i";
9735
9736 loadpage_hi = " 0 1 0 0 1 0 0 0",
9737 " x x x x x x x x",
9738 " x a6 a5 a4 a3 a2 a1 a0",
9739 " i i i i i i i i";
9740
9741 writepage = " 0 1 0 0 1 1 0 0",
9742 "a15 a14 a13 a12 a11 a10 a9 a8",
9743 " a7 x x x x x x x",
9744 " x x x x x x x x";
9745
9746 mode = 0x41;
9747 delay = 10;
9748 blocksize = 256;
9749 readsize = 256;
9750 ;
9751
9752 memory "lfuse"
9753 size = 1;
9754 write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
9755 "x x x x x x x x i i i i i i i i";
9756
9757 read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
9758 "x x x x x x x x o o o o o o o o";
9759 min_write_delay = 9000;
9760 max_write_delay = 9000;
9761 ;
9762
9763 memory "hfuse"
9764 size = 1;
9765 write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
9766 "x x x x x x x x i i i i i i i i";
9767
9768 read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
9769 "x x x x x x x x o o o o o o o o";
9770 min_write_delay = 9000;
9771 max_write_delay = 9000;
9772 ;
9773
9774 memory "efuse"
9775 size = 1;
9776 write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
9777 "x x x x x x x x x x x x x i i i";
9778
9779 read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
9780 "x x x x x x x x o o o o o o o o";
9781 min_write_delay = 9000;
9782 max_write_delay = 9000;
9783 ;
9784
9785 memory "lock"
9786 size = 1;
9787 read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
9788 "x x x x x x x x x x o o o o o o";
9789
9790 write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
9791 "x x x x x x x x 1 1 i i i i i i";
9792 min_write_delay = 9000;
9793 max_write_delay = 9000;
9794 ;
9795
9796 memory "calibration"
9797 size = 1;
9798 read = "0 0 1 1 1 0 0 0 x x x x x x x x",
9799 "0 0 0 0 0 0 0 0 o o o o o o o o";
9800 ;
9801
9802 memory "signature"
9803 size = 3;
9804 read = "0 0 1 1 0 0 0 0 x x x x x x x x",
9805 "x x x x x x a1 a0 o o o o o o o o";
9806 ;
9807 ;
9808
9809 #------------------------------------------------------------
9810 # ATmega1281
9811 #------------------------------------------------------------
9812 # Identical to ATmega1280
9813
9814 part parent "m1280"
9815 id = "m1281";
9816 desc = "ATmega1281";
9817 signature = 0x1e 0x97 0x04;
9818
9819 ocdrev = 3;
9820 ;
9821
9822 #------------------------------------------------------------
9823 # ATmega2560
9824 #------------------------------------------------------------
9825
9826 part
9827 id = "m2560";
9828 desc = "ATmega2560";
9829 signature = 0x1e 0x98 0x01;
9830 has_jtag = yes;
9831 # stk500_devcode = 0xB2;
9832 # avr910_devcode = 0x43;
9833 chip_erase_delay = 9000;
9834 pagel = 0xD7;
9835 bs2 = 0xA0;
9836 reset = dedicated;
9837 pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
9838 "x x x x x x x x x x x x x x x x";
9839
9840 chip_erase = "1 0 1 0 1 1 0 0 1 0 0 0 0 0 0 0",
9841 "x x x x x x x x x x x x x x x x";
9842
9843 timeout = 200;
9844 stabdelay = 100;
9845 cmdexedelay = 25;
9846 synchloops = 32;
9847 bytedelay = 0;
9848 pollindex = 3;
9849 pollvalue = 0x53;
9850 predelay = 1;
9851 postdelay = 1;
9852 pollmethod = 1;
9853
9854 pp_controlstack =
9855 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
9856 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
9857 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
9858 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x02;
9859 hventerstabdelay = 100;
9860 progmodedelay = 0;
9861 latchcycles = 5;
9862 togglevtg = 1;
9863 poweroffdelay = 15;
9864 resetdelayms = 1;
9865 resetdelayus = 0;
9866 hvleavestabdelay = 15;
9867 chiperasepulsewidth = 0;
9868 chiperasepolltimeout = 10;
9869 programfusepulsewidth = 0;
9870 programfusepolltimeout = 5;
9871 programlockpulsewidth = 0;
9872 programlockpolltimeout = 5;
9873
9874 idr = 0x31;
9875 spmcr = 0x57;
9876 rampz = 0x3b;
9877 allowfullpagebitstream = no;
9878
9879 ocdrev = 4;
9880
9881 memory "eeprom"
9882 paged = no; /* leave this "no" */
9883 page_size = 8; /* for parallel programming */
9884 size = 4096;
9885 min_write_delay = 9000;
9886 max_write_delay = 9000;
9887 readback_p1 = 0x00;
9888 readback_p2 = 0x00;
9889 read = " 1 0 1 0 0 0 0 0",
9890 " x x x x a11 a10 a9 a8",
9891 " a7 a6 a5 a4 a3 a2 a1 a0",
9892 " o o o o o o o o";
9893
9894 write = " 1 1 0 0 0 0 0 0",
9895 " x x x x a11 a10 a9 a8",
9896 " a7 a6 a5 a4 a3 a2 a1 a0",
9897 " i i i i i i i i";
9898
9899 loadpage_lo = " 1 1 0 0 0 0 0 1",
9900 " 0 0 0 0 0 0 0 0",
9901 " 0 0 0 0 0 a2 a1 a0",
9902 " i i i i i i i i";
9903
9904 writepage = " 1 1 0 0 0 0 1 0",
9905 " 0 0 x x a11 a10 a9 a8",
9906 " a7 a6 a5 a4 a3 0 0 0",
9907 " x x x x x x x x";
9908
9909 mode = 0x41;
9910 delay = 10;
9911 blocksize = 8;
9912 readsize = 256;
9913 ;
9914
9915 memory "flash"
9916 paged = yes;
9917 size = 262144;
9918 page_size = 256;
9919 num_pages = 1024;
9920 min_write_delay = 4500;
9921 max_write_delay = 4500;
9922 readback_p1 = 0x00;
9923 readback_p2 = 0x00;
9924 read_lo = " 0 0 1 0 0 0 0 0",
9925 "a15 a14 a13 a12 a11 a10 a9 a8",
9926 " a7 a6 a5 a4 a3 a2 a1 a0",
9927 " o o o o o o o o";
9928
9929 read_hi = " 0 0 1 0 1 0 0 0",
9930 "a15 a14 a13 a12 a11 a10 a9 a8",
9931 " a7 a6 a5 a4 a3 a2 a1 a0",
9932 " o o o o o o o o";
9933
9934 loadpage_lo = " 0 1 0 0 0 0 0 0",
9935 " x x x x x x x x",
9936 " x a6 a5 a4 a3 a2 a1 a0",
9937 " i i i i i i i i";
9938
9939 loadpage_hi = " 0 1 0 0 1 0 0 0",
9940 " x x x x x x x x",
9941 " x a6 a5 a4 a3 a2 a1 a0",
9942 " i i i i i i i i";
9943
9944 writepage = " 0 1 0 0 1 1 0 0",
9945 "a15 a14 a13 a12 a11 a10 a9 a8",
9946 " a7 x x x x x x x",
9947 " x x x x x x x x";
9948
9949 load_ext_addr = " 0 1 0 0 1 1 0 1",
9950 " 0 0 0 0 0 0 0 0",
9951 " 0 0 0 0 0 0 0 a16",
9952 " 0 0 0 0 0 0 0 0";
9953
9954 mode = 0x41;
9955 delay = 10;
9956 blocksize = 256;
9957 readsize = 256;
9958 ;
9959
9960 memory "lfuse"
9961 size = 1;
9962 write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
9963 "x x x x x x x x i i i i i i i i";
9964
9965 read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
9966 "x x x x x x x x o o o o o o o o";
9967 min_write_delay = 9000;
9968 max_write_delay = 9000;
9969 ;
9970
9971 memory "hfuse"
9972 size = 1;
9973 write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
9974 "x x x x x x x x i i i i i i i i";
9975
9976 read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
9977 "x x x x x x x x o o o o o o o o";
9978 min_write_delay = 9000;
9979 max_write_delay = 9000;
9980 ;
9981
9982 memory "efuse"
9983 size = 1;
9984 write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
9985 "x x x x x x x x x x x x x i i i";
9986
9987 read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
9988 "x x x x x x x x o o o o o o o o";
9989 min_write_delay = 9000;
9990 max_write_delay = 9000;
9991 ;
9992
9993 memory "lock"
9994 size = 1;
9995 read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
9996 "x x x x x x x x x x o o o o o o";
9997
9998 write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
9999 "x x x x x x x x 1 1 i i i i i i";
10000 min_write_delay = 9000;
10001 max_write_delay = 9000;
10002 ;
10003
10004 memory "calibration"
10005 size = 1;
10006 read = "0 0 1 1 1 0 0 0 x x x x x x x x",
10007 "0 0 0 0 0 0 0 0 o o o o o o o o";
10008 ;
10009
10010 memory "signature"
10011 size = 3;
10012 read = "0 0 1 1 0 0 0 0 x x x x x x x x",
10013 "x x x x x x a1 a0 o o o o o o o o";
10014 ;
10015 ;
10016
10017 #------------------------------------------------------------
10018 # ATmega2561
10019 #------------------------------------------------------------
10020
10021 part parent "m2560"
10022 id = "m2561";
10023 desc = "ATmega2561";
10024 signature = 0x1e 0x98 0x02;
10025
10026 ocdrev = 4;
10027 ;
10028
10029 #------------------------------------------------------------
10030 # ATmega128RFA1
10031 #------------------------------------------------------------
10032 # Identical to ATmega2561 but half the ROM
10033
10034 part parent "m2561"
10035 id = "m128rfa1";
10036 desc = "ATmega128RFA1";
10037 signature = 0x1e 0xa7 0x01;
10038 chip_erase_delay = 55000;
10039 bs2 = 0xE2;
10040
10041 ocdrev = 3;
10042
10043 memory "flash"
10044 paged = yes;
10045 size = 131072;
10046 page_size = 256;
10047 num_pages = 512;
10048 min_write_delay = 50000;
10049 max_write_delay = 50000;
10050 readback_p1 = 0x00;
10051 readback_p2 = 0x00;
10052 read_lo = " 0 0 1 0 0 0 0 0",
10053 "a15 a14 a13 a12 a11 a10 a9 a8",
10054 " a7 a6 a5 a4 a3 a2 a1 a0",
10055 " o o o o o o o o";
10056
10057 read_hi = " 0 0 1 0 1 0 0 0",
10058 "a15 a14 a13 a12 a11 a10 a9 a8",
10059 " a7 a6 a5 a4 a3 a2 a1 a0",
10060 " o o o o o o o o";
10061
10062 loadpage_lo = " 0 1 0 0 0 0 0 0",
10063 " x x x x x x x x",
10064 " x a6 a5 a4 a3 a2 a1 a0",
10065 " i i i i i i i i";
10066
10067 loadpage_hi = " 0 1 0 0 1 0 0 0",
10068 " x x x x x x x x",
10069 " x a6 a5 a4 a3 a2 a1 a0",
10070 " i i i i i i i i";
10071
10072 writepage = " 0 1 0 0 1 1 0 0",
10073 "a15 a14 a13 a12 a11 a10 a9 a8",
10074 " a7 x x x x x x x",
10075 " x x x x x x x x";
10076
10077 mode = 0x41;
10078 delay = 20;
10079 blocksize = 256;
10080 readsize = 256;
10081 ;
10082 ;
10083
10084 #------------------------------------------------------------
10085 # ATmega256RFR2
10086 #------------------------------------------------------------
10087
10088 part parent "m2561"
10089 id = "m256rfr2";
10090 desc = "ATmega256RFR2";
10091 signature = 0x1e 0xa8 0x02;
10092 chip_erase_delay = 55000;
10093 bs2 = 0xE2;
10094
10095
10096 ocdrev = 4;
10097 ;
10098
10099 #------------------------------------------------------------
10100 # ATmega128RFR2
10101 #------------------------------------------------------------
10102
10103 part parent "m128rfa1"
10104 id = "m128rfr2";
10105 desc = "ATmega128RFR2";
10106 signature = 0x1e 0xa7 0x02;
10107
10108
10109 ocdrev = 3;
10110 ;
10111
10112 #------------------------------------------------------------
10113 # ATmega64RFR2
10114 #------------------------------------------------------------
10115
10116 part parent "m128rfa1"
10117 id = "m64rfr2";
10118 desc = "ATmega64RFR2";
10119 signature = 0x1e 0xa6 0x02;
10120
10121
10122 ocdrev = 3;
10123
10124 memory "flash"
10125 paged = yes;
10126 size = 65536;
10127 page_size = 256;
10128 num_pages = 256;
10129 min_write_delay = 50000;
10130 max_write_delay = 50000;
10131 readback_p1 = 0x00;
10132 readback_p2 = 0x00;
10133 read_lo = " 0 0 1 0 0 0 0 0",
10134 " 0 a14 a13 a12 a11 a10 a9 a8",
10135 " a7 a6 a5 a4 a3 a2 a1 a0",
10136 " o o o o o o o o";
10137
10138 read_hi = " 0 0 1 0 1 0 0 0",
10139 " 0 a14 a13 a12 a11 a10 a9 a8",
10140 " a7 a6 a5 a4 a3 a2 a1 a0",
10141 " o o o o o o o o";
10142
10143 loadpage_lo = " 0 1 0 0 0 0 0 0",
10144 " x x x x x x x x",
10145 " x a6 a5 a4 a3 a2 a1 a0",
10146 " i i i i i i i i";
10147
10148 loadpage_hi = " 0 1 0 0 1 0 0 0",
10149 " x x x x x x x x",
10150 " x a6 a5 a4 a3 a2 a1 a0",
10151 " i i i i i i i i";
10152
10153 writepage = " 0 1 0 0 1 1 0 0",
10154 " 0 a14 a13 a12 a11 a10 a9 a8",
10155 " a7 x x x x x x x",
10156 " x x x x x x x x";
10157
10158 mode = 0x41;
10159 delay = 20;
10160 blocksize = 256;
10161 readsize = 256;
10162 ;
10163 ;
10164
10165 #------------------------------------------------------------
10166 # ATmega2564RFR2
10167 #------------------------------------------------------------
10168
10169 part parent "m256rfr2"
10170 id = "m2564rfr2";
10171 desc = "ATmega2564RFR2";
10172 signature = 0x1e 0xa8 0x03;
10173 ;
10174
10175 #------------------------------------------------------------
10176 # ATmega1284RFR2
10177 #------------------------------------------------------------
10178
10179 part parent "m128rfr2"
10180 id = "m1284rfr2";
10181 desc = "ATmega1284RFR2";
10182 signature = 0x1e 0xa7 0x03;
10183 ;
10184
10185 #------------------------------------------------------------
10186 # ATmega644RFR2
10187 #------------------------------------------------------------
10188
10189 part parent "m64rfr2"
10190 id = "m644rfr2";
10191 desc = "ATmega644RFR2";
10192 signature = 0x1e 0xa6 0x03;
10193 ;
10194
10195 #------------------------------------------------------------
10196 # ATtiny24
10197 #------------------------------------------------------------
10198
10199 part
10200 id = "t24";
10201 desc = "ATtiny24";
10202 has_debugwire = yes;
10203 flash_instr = 0xB4, 0x07, 0x17;
10204 eeprom_instr = 0xBB, 0xFF, 0xBB, 0xEE, 0xBB, 0xCC, 0xB2, 0x0D,
10205 0xBC, 0x07, 0xB4, 0x07, 0xBA, 0x0D, 0xBB, 0xBC,
10206 0x99, 0xE1, 0xBB, 0xAC;
10207 ## no STK500 devcode in XML file, use the ATtiny45 one
10208 stk500_devcode = 0x14;
10209 ## avr910_devcode = ?;
10210 ## Try the AT90S2313 devcode:
10211 avr910_devcode = 0x20;
10212 signature = 0x1e 0x91 0x0b;
10213 reset = io;
10214 chip_erase_delay = 4500;
10215
10216 pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
10217 "x x x x x x x x x x x x x x x x";
10218
10219 chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
10220 "x x x x x x x x x x x x x x x x";
10221
10222 timeout = 200;
10223 stabdelay = 100;
10224 cmdexedelay = 25;
10225 synchloops = 32;
10226 bytedelay = 0;
10227 pollindex = 3;
10228 pollvalue = 0x53;
10229 predelay = 1;
10230 postdelay = 1;
10231 pollmethod = 1;
10232
10233 hvsp_controlstack =
10234 0x4C, 0x0C, 0x1C, 0x2C, 0x3C, 0x64, 0x74, 0x66,
10235 0x68, 0x78, 0x68, 0x68, 0x7A, 0x6A, 0x68, 0x78,
10236 0x78, 0x7D, 0x6D, 0x0C, 0x80, 0x40, 0x20, 0x10,
10237 0x11, 0x08, 0x04, 0x02, 0x03, 0x08, 0x04, 0x0F;
10238 hventerstabdelay = 100;
10239 hvspcmdexedelay = 0;
10240 synchcycles = 6;
10241 latchcycles = 1;
10242 togglevtg = 1;
10243 poweroffdelay = 25;
10244 resetdelayms = 0;
10245 resetdelayus = 70;
10246 hvleavestabdelay = 100;
10247 resetdelay = 25;
10248 chiperasepolltimeout = 40;
10249 chiperasetime = 0;
10250 programfusepolltimeout = 25;
10251 programlockpolltimeout = 25;
10252
10253 ocdrev = 1;
10254
10255 memory "eeprom"
10256 size = 128;
10257 paged = no;
10258 page_size = 4;
10259 min_write_delay = 4000;
10260 max_write_delay = 4500;
10261 readback_p1 = 0xff;
10262 readback_p2 = 0xff;
10263 read = "1 0 1 0 0 0 0 0 0 0 0 x x x x x",
10264 "x a6 a5 a4 a3 a2 a1 a0 o o o o o o o o";
10265
10266 write = "1 1 0 0 0 0 0 0 0 0 0 x x x x x",
10267 "x a6 a5 a4 a3 a2 a1 a0 i i i i i i i i";
10268
10269 loadpage_lo = " 1 1 0 0 0 0 0 1",
10270 " 0 0 0 0 0 0 0 0",
10271 " 0 0 0 0 0 0 a1 a0",
10272 " i i i i i i i i";
10273
10274 writepage = " 1 1 0 0 0 0 1 0",
10275 " 0 0 x x x x x x",
10276 " x a6 a5 a4 a3 a2 0 0",
10277 " x x x x x x x x";
10278
10279 mode = 0x41;
10280 delay = 6;
10281 blocksize = 4;
10282 readsize = 256;
10283 ;
10284 memory "flash"
10285 paged = yes;
10286 size = 2048;
10287 page_size = 32;
10288 num_pages = 64;
10289 min_write_delay = 4500;
10290 max_write_delay = 4500;
10291 readback_p1 = 0xff;
10292 readback_p2 = 0xff;
10293 read_lo = " 0 0 1 0 0 0 0 0",
10294 " 0 0 0 0 0 0 a9 a8",
10295 " a7 a6 a5 a4 a3 a2 a1 a0",
10296 " o o o o o o o o";
10297
10298 read_hi = " 0 0 1 0 1 0 0 0",
10299 " 0 0 0 0 0 0 a9 a8",
10300 " a7 a6 a5 a4 a3 a2 a1 a0",
10301 " o o o o o o o o";
10302
10303 loadpage_lo = " 0 1 0 0 0 0 0 0",
10304 " 0 0 0 x x x x x",
10305 " x x x x a3 a2 a1 a0",
10306 " i i i i i i i i";
10307
10308 loadpage_hi = " 0 1 0 0 1 0 0 0",
10309 " 0 0 0 x x x x x",
10310 " x x x x a3 a2 a1 a0",
10311 " i i i i i i i i";
10312
10313 writepage = " 0 1 0 0 1 1 0 0",
10314 " 0 0 0 0 0 0 a9 a8",
10315 " a7 a6 a5 a4 x x x x",
10316 " x x x x x x x x";
10317
10318 mode = 0x41;
10319 delay = 6;
10320 blocksize = 32;
10321 readsize = 256;
10322 ;
10323 # ATtiny24 has Signature Bytes: 0x1E 0x91 0x0B.
10324 memory "signature"
10325 size = 3;
10326 read = "0 0 1 1 0 0 0 0 0 0 0 x x x x x",
10327 "x x x x x x a1 a0 o o o o o o o o";
10328 ;
10329 memory "lock"
10330 size = 1;
10331 write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
10332 "x x x x x x x x x x x x x x i i";
10333 read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
10334 "0 0 0 0 0 0 0 0 o o o o o o o o";
10335 min_write_delay = 9000;
10336 max_write_delay = 9000;
10337 ;
10338
10339 memory "lfuse"
10340 size = 1;
10341 write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
10342 "x x x x x x x x i i i i i i i i";
10343
10344 read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
10345 "x x x x x x x x o o o o o o o o";
10346 min_write_delay = 9000;
10347 max_write_delay = 9000;
10348 ;
10349
10350 memory "hfuse"
10351 size = 1;
10352 write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
10353 "x x x x x x x x i i i i i i i i";
10354
10355 read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
10356 "x x x x x x x x o o o o o o o o";
10357 min_write_delay = 9000;
10358 max_write_delay = 9000;
10359 ;
10360
10361 memory "efuse"
10362 size = 1;
10363 write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
10364 "x x x x x x x x x x x x x x x i";
10365
10366 read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
10367 "x x x x x x x x o o o o o o o o";
10368 min_write_delay = 9000;
10369 max_write_delay = 9000;
10370 ;
10371
10372 memory "calibration"
10373 size = 1;
10374 read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
10375 "0 0 0 0 0 0 0 a0 o o o o o o o o";
10376 ;
10377 ;
10378
10379 #------------------------------------------------------------
10380 # ATtiny44
10381 #------------------------------------------------------------
10382
10383 part
10384 id = "t44";
10385 desc = "ATtiny44";
10386 has_debugwire = yes;
10387 flash_instr = 0xB4, 0x07, 0x17;
10388 eeprom_instr = 0xBB, 0xFF, 0xBB, 0xEE, 0xBB, 0xCC, 0xB2, 0x0D,
10389 0xBC, 0x07, 0xB4, 0x07, 0xBA, 0x0D, 0xBB, 0xBC,
10390 0x99, 0xE1, 0xBB, 0xAC;
10391 ## no STK500 devcode in XML file, use the ATtiny45 one
10392 stk500_devcode = 0x14;
10393 ## avr910_devcode = ?;
10394 ## Try the AT90S2313 devcode:
10395 avr910_devcode = 0x20;
10396 signature = 0x1e 0x92 0x07;
10397 reset = io;
10398 chip_erase_delay = 4500;
10399
10400 pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
10401 "x x x x x x x x x x x x x x x x";
10402
10403 chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
10404 "x x x x x x x x x x x x x x x x";
10405
10406 timeout = 200;
10407 stabdelay = 100;
10408 cmdexedelay = 25;
10409 synchloops = 32;
10410 bytedelay = 0;
10411 pollindex = 3;
10412 pollvalue = 0x53;
10413 predelay = 1;
10414 postdelay = 1;
10415 pollmethod = 1;
10416
10417 hvsp_controlstack =
10418 0x4C, 0x0C, 0x1C, 0x2C, 0x3C, 0x64, 0x74, 0x66,
10419 0x68, 0x78, 0x68, 0x68, 0x7A, 0x6A, 0x68, 0x78,
10420 0x78, 0x7D, 0x6D, 0x0C, 0x80, 0x40, 0x20, 0x10,
10421 0x11, 0x08, 0x04, 0x02, 0x03, 0x08, 0x04, 0x0F;
10422 hventerstabdelay = 100;
10423 hvspcmdexedelay = 0;
10424 synchcycles = 6;
10425 latchcycles = 1;
10426 togglevtg = 1;
10427 poweroffdelay = 25;
10428 resetdelayms = 0;
10429 resetdelayus = 70;
10430 hvleavestabdelay = 100;
10431 resetdelay = 25;
10432 chiperasepolltimeout = 40;
10433 chiperasetime = 0;
10434 programfusepolltimeout = 25;
10435 programlockpolltimeout = 25;
10436
10437 ocdrev = 1;
10438
10439 memory "eeprom"
10440 size = 256;
10441 paged = no;
10442 page_size = 4;
10443 min_write_delay = 4000;
10444 max_write_delay = 4500;
10445 readback_p1 = 0xff;
10446 readback_p2 = 0xff;
10447 read = "1 0 1 0 0 0 0 0 0 0 0 x x x x x",
10448 "a7 a6 a5 a4 a3 a2 a1 a0 o o o o o o o o";
10449
10450 write = "1 1 0 0 0 0 0 0 0 0 0 x x x x x",
10451 "a7 a6 a5 a4 a3 a2 a1 a0 i i i i i i i i";
10452
10453 loadpage_lo = " 1 1 0 0 0 0 0 1",
10454 " 0 0 0 0 0 0 0 0",
10455 " 0 0 0 0 0 0 a1 a0",
10456 " i i i i i i i i";
10457
10458 writepage = " 1 1 0 0 0 0 1 0",
10459 " 0 0 x x x x x x",
10460 " x a6 a5 a4 a3 a2 0 0",
10461 " x x x x x x x x";
10462
10463 mode = 0x41;
10464 delay = 6;
10465 blocksize = 4;
10466 readsize = 256;
10467 ;
10468 memory "flash"
10469 paged = yes;
10470 size = 4096;
10471 page_size = 64;
10472 num_pages = 64;
10473 min_write_delay = 4500;
10474 max_write_delay = 4500;
10475 readback_p1 = 0xff;
10476 readback_p2 = 0xff;
10477 read_lo = " 0 0 1 0 0 0 0 0",
10478 " 0 0 0 0 0 a10 a9 a8",
10479 " a7 a6 a5 a4 a3 a2 a1 a0",
10480 " o o o o o o o o";
10481
10482 read_hi = " 0 0 1 0 1 0 0 0",
10483 " 0 0 0 0 0 a10 a9 a8",
10484 " a7 a6 a5 a4 a3 a2 a1 a0",
10485 " o o o o o o o o";
10486
10487 loadpage_lo = " 0 1 0 0 0 0 0 0",
10488 " 0 0 0 x x x x x",
10489 " x x x a4 a3 a2 a1 a0",
10490 " i i i i i i i i";
10491
10492 loadpage_hi = " 0 1 0 0 1 0 0 0",
10493 " 0 0 0 x x x x x",
10494 " x x x a4 a3 a2 a1 a0",
10495 " i i i i i i i i";
10496
10497 writepage = " 0 1 0 0 1 1 0 0",
10498 " 0 0 0 0 0 a10 a9 a8",
10499 " a7 a6 a5 x x x x x",
10500 " x x x x x x x x";
10501
10502 mode = 0x41;
10503 delay = 6;
10504 blocksize = 32;
10505 readsize = 256;
10506 ;
10507 # ATtiny44 has Signature Bytes: 0x1E 0x92 0x07.
10508 memory "signature"
10509 size = 3;
10510 read = "0 0 1 1 0 0 0 0 0 0 0 x x x x x",
10511 "x x x x x x a1 a0 o o o o o o o o";
10512 ;
10513 memory "lock"
10514 size = 1;
10515 write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
10516 "x x x x x x x x x x x x x x i i";
10517 read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
10518 "0 0 0 0 0 0 0 0 o o o o o o o o";
10519 min_write_delay = 9000;
10520 max_write_delay = 9000;
10521 ;
10522
10523 memory "lfuse"
10524 size = 1;
10525 write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
10526 "x x x x x x x x i i i i i i i i";
10527
10528 read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
10529 "x x x x x x x x o o o o o o o o";
10530 min_write_delay = 9000;
10531 max_write_delay = 9000;
10532 ;
10533
10534 memory "hfuse"
10535 size = 1;
10536 write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
10537 "x x x x x x x x i i i i i i i i";
10538
10539 read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
10540 "x x x x x x x x o o o o o o o o";
10541 min_write_delay = 9000;
10542 max_write_delay = 9000;
10543 ;
10544
10545 memory "efuse"
10546 size = 1;
10547 write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
10548 "x x x x x x x x x x x x x x x i";
10549
10550 read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
10551 "x x x x x x x x o o o o o o o o";
10552 min_write_delay = 9000;
10553 max_write_delay = 9000;
10554 ;
10555
10556 memory "calibration"
10557 size = 1;
10558 read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
10559 "0 0 0 0 0 0 0 a0 o o o o o o o o";
10560 ;
10561 ;
10562
10563 #------------------------------------------------------------
10564 # ATtiny84
10565 #------------------------------------------------------------
10566
10567 part
10568 id = "t84";
10569 desc = "ATtiny84";
10570 has_debugwire = yes;
10571 flash_instr = 0xB4, 0x07, 0x17;
10572 eeprom_instr = 0xBB, 0xFF, 0xBB, 0xEE, 0xBB, 0xCC, 0xB2, 0x0D,
10573 0xBC, 0x07, 0xB4, 0x07, 0xBA, 0x0D, 0xBB, 0xBC,
10574 0x99, 0xE1, 0xBB, 0xAC;
10575 ## no STK500 devcode in XML file, use the ATtiny45 one
10576 stk500_devcode = 0x14;
10577 ## avr910_devcode = ?;
10578 ## Try the AT90S2313 devcode:
10579 avr910_devcode = 0x20;
10580 signature = 0x1e 0x93 0x0c;
10581 reset = io;
10582 chip_erase_delay = 4500;
10583
10584 pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
10585 "x x x x x x x x x x x x x x x x";
10586
10587 chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
10588 "x x x x x x x x x x x x x x x x";
10589
10590 timeout = 200;
10591 stabdelay = 100;
10592 cmdexedelay = 25;
10593 synchloops = 32;
10594 bytedelay = 0;
10595 pollindex = 3;
10596 pollvalue = 0x53;
10597 predelay = 1;
10598 postdelay = 1;
10599 pollmethod = 1;
10600
10601 hvsp_controlstack =
10602 0x4C, 0x0C, 0x1C, 0x2C, 0x3C, 0x64, 0x74, 0x66,
10603 0x68, 0x78, 0x68, 0x68, 0x7A, 0x6A, 0x68, 0x78,
10604 0x78, 0x7D, 0x6D, 0x0C, 0x80, 0x40, 0x20, 0x10,
10605 0x11, 0x08, 0x04, 0x02, 0x03, 0x08, 0x04, 0x0F;
10606 hventerstabdelay = 100;
10607 hvspcmdexedelay = 0;
10608 synchcycles = 6;
10609 latchcycles = 1;
10610 togglevtg = 1;
10611 poweroffdelay = 25;
10612 resetdelayms = 0;
10613 resetdelayus = 70;
10614 hvleavestabdelay = 100;
10615 resetdelay = 25;
10616 chiperasepolltimeout = 40;
10617 chiperasetime = 0;
10618 programfusepolltimeout = 25;
10619 programlockpolltimeout = 25;
10620
10621 ocdrev = 1;
10622
10623 memory "eeprom"
10624 size = 512;
10625 paged = no;
10626 page_size = 4;
10627 min_write_delay = 4000;
10628 max_write_delay = 4500;
10629 readback_p1 = 0xff;
10630 readback_p2 = 0xff;
10631 read = "1 0 1 0 0 0 0 0 0 0 0 x x x x a8",
10632 "a7 a6 a5 a4 a3 a2 a1 a0 o o o o o o o o";
10633
10634 write = "1 1 0 0 0 0 0 0 0 0 0 x x x x a8",
10635 "a7 a6 a5 a4 a3 a2 a1 a0 i i i i i i i i";
10636
10637 loadpage_lo = " 1 1 0 0 0 0 0 1",
10638 " 0 0 0 0 0 0 0 0",
10639 " 0 0 0 0 0 0 a1 a0",
10640 " i i i i i i i i";
10641
10642 writepage = " 1 1 0 0 0 0 1 0",
10643 " 0 0 x x x x x x",
10644 " x a6 a5 a4 a3 a2 0 0",
10645 " x x x x x x x x";
10646
10647 mode = 0x41;
10648 delay = 6;
10649 blocksize = 4;
10650 readsize = 256;
10651 ;
10652 memory "flash"
10653 paged = yes;
10654 size = 8192;
10655 page_size = 64;
10656 num_pages = 128;
10657 min_write_delay = 4500;
10658 max_write_delay = 4500;
10659 readback_p1 = 0xff;
10660 readback_p2 = 0xff;
10661 read_lo = " 0 0 1 0 0 0 0 0",
10662 " 0 0 0 0 a11 a10 a9 a8",
10663 " a7 a6 a5 a4 a3 a2 a1 a0",
10664 " o o o o o o o o";
10665
10666 read_hi = " 0 0 1 0 1 0 0 0",
10667 " 0 0 0 0 a11 a10 a9 a8",
10668 " a7 a6 a5 a4 a3 a2 a1 a0",
10669 " o o o o o o o o";
10670
10671 loadpage_lo = " 0 1 0 0 0 0 0 0",
10672 " 0 0 0 x x x x x",
10673 " x x x a4 a3 a2 a1 a0",
10674 " i i i i i i i i";
10675
10676 loadpage_hi = " 0 1 0 0 1 0 0 0",
10677 " 0 0 0 x x x x x",
10678 " x x x a4 a3 a2 a1 a0",
10679 " i i i i i i i i";
10680
10681 writepage = " 0 1 0 0 1 1 0 0",
10682 " 0 0 0 0 a11 a10 a9 a8",
10683 " a7 a6 a5 x x x x x",
10684 " x x x x x x x x";
10685
10686 mode = 0x41;
10687 delay = 6;
10688 blocksize = 32;
10689 readsize = 256;
10690 ;
10691 # ATtiny84 has Signature Bytes: 0x1E 0x93 0x0C.
10692 memory "signature"
10693 size = 3;
10694 read = "0 0 1 1 0 0 0 0 0 0 0 x x x x x",
10695 "x x x x x x a1 a0 o o o o o o o o";
10696 ;
10697
10698 memory "lock"
10699 size = 1;
10700 write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
10701 "x x x x x x x x x x x x x x i i";
10702 read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
10703 "0 0 0 0 0 0 0 0 o o o o o o o o";
10704 min_write_delay = 9000;
10705 max_write_delay = 9000;
10706 ;
10707
10708 memory "lfuse"
10709 size = 1;
10710 write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
10711 "x x x x x x x x i i i i i i i i";
10712
10713 read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
10714 "x x x x x x x x o o o o o o o o";
10715 min_write_delay = 9000;
10716 max_write_delay = 9000;
10717 ;
10718
10719 memory "hfuse"
10720 size = 1;
10721 write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
10722 "x x x x x x x x i i i i i i i i";
10723
10724 read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
10725 "x x x x x x x x o o o o o o o o";
10726 min_write_delay = 9000;
10727 max_write_delay = 9000;
10728 ;
10729
10730 memory "efuse"
10731 size = 1;
10732 write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
10733 "x x x x x x x x x x x x x x x i";
10734
10735 read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
10736 "x x x x x x x x o o o o o o o o";
10737 min_write_delay = 9000;
10738 max_write_delay = 9000;
10739 ;
10740
10741 memory "calibration"
10742 size = 1;
10743 read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
10744 "0 0 0 0 0 0 0 a0 o o o o o o o o";
10745 ;
10746 ;
10747
10748 #------------------------------------------------------------
10749 # ATtiny43U
10750 #------------------------------------------------------------
10751
10752 part
10753 id = "t43u";
10754 desc = "ATtiny43u";
10755 has_debugwire = yes;
10756 flash_instr = 0xB4, 0x07, 0x17;
10757 eeprom_instr = 0xBB, 0xFF, 0xBB, 0xEE, 0xBB, 0xCC, 0xB2, 0x0D,
10758 0xBC, 0x07, 0xB4, 0x07, 0xBA, 0x0D, 0xBB, 0xBC,
10759 0x99, 0xE1, 0xBB, 0xAC;
10760 stk500_devcode = 0x14;
10761 ## avr910_devcode = ?;
10762 ## Try the AT90S2313 devcode:
10763 avr910_devcode = 0x20;
10764 signature = 0x1e 0x92 0x0C;
10765 reset = io;
10766 chip_erase_delay = 1000;
10767
10768 pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
10769 "x x x x x x x x x x x x x x x x";
10770
10771 chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
10772 "x x x x x x x x x x x x x x x x";
10773
10774 timeout = 200;
10775 stabdelay = 100;
10776 cmdexedelay = 25;
10777 synchloops = 32;
10778 bytedelay = 0;
10779 pollindex = 3;
10780 pollvalue = 0x53;
10781 predelay = 1;
10782 postdelay = 1;
10783 pollmethod = 1;
10784 pp_controlstack = 0x0E, 0x1E, 0x0E, 0x1E, 0x2E, 0x3E, 0x2E, 0x3E, 0x4E, 0x5E,
10785 0x4E, 0x5E, 0x6E, 0x7E, 0x6E, 0x7E, 0x06, 0x16, 0x46, 0x56,
10786 0x0A, 0x1A, 0x4A, 0x5A, 0x1E, 0x7C, 0x00, 0x01, 0x00, 0x00,
10787 0x00, 0x00;
10788 hventerstabdelay = 100;
10789 progmodedelay = 0;
10790 hvspcmdexedelay = 0;
10791 latchcycles = 5;
10792 togglevtg = 1;
10793 poweroffdelay = 20;
10794 resetdelayms = 1;
10795 resetdelayus = 0;
10796 hvleavestabdelay = 15;
10797 resetdelay = 15;
10798 chiperasepulsewidth = 0;
10799 chiperasepolltimeout = 10;
10800 programfusepulsewidth = 0;
10801 programfusepolltimeout = 5;
10802 programlockpulsewidth = 0;
10803 programlockpolltimeout = 5;
10804 memory "eeprom"
10805 size = 64;
10806 paged = yes;
10807 page_size = 4;
10808 num_pages = 16;
10809 min_write_delay = 4000;
10810 max_write_delay = 4500;
10811 readback_p1 = 0xff;
10812 readback_p2 = 0xff;
10813 read = "1 0 1 0 0 0 0 0 0 0 0 x x x x x",
10814 "0 0 a4 a3 a2 a1 a0 o o o o o o o o";
10815
10816 write = "1 1 0 0 0 0 0 0 0 0 0 x x x x x",
10817 "0 0 a5 a4 a3 a2 a1 a0 i i i i i i i i";
10818
10819 loadpage_lo = " 1 1 0 0 0 0 0 1",
10820 " 0 0 0 0 0 0 0 0",
10821 " 0 0 0 0 0 0 a1 a0",
10822 " i i i i i i i i";
10823
10824 writepage = " 1 1 0 0 0 0 1 0",
10825 " 0 0 x x x x x x",
10826 " 0 0 a5 a4 a3 a2 0 0",
10827 " x x x x x x x x";
10828
10829 mode = 0x41;
10830 delay = 5;
10831 blocksize = 4;
10832 readsize = 256;
10833 ;
10834 memory "flash"
10835 paged = yes;
10836 size = 4096;
10837 page_size = 64;
10838 num_pages = 64;
10839 min_write_delay = 4500;
10840 max_write_delay = 4500;
10841 readback_p1 = 0xff;
10842 readback_p2 = 0xff;
10843
10844 read_lo = " 0 0 1 0 0 0 0 0",
10845 " 0 0 0 0 0 a10 a9 a8",
10846 " a7 a6 a5 a4 a3 a2 a1 a0",
10847 " o o o o o o o o";
10848
10849 read_hi = " 0 0 1 0 1 0 0 0",
10850 " 0 0 0 0 0 a10 a9 a8",
10851 " a7 a6 a5 a4 a3 a2 a1 a0",
10852 " o o o o o o o o";
10853
10854 loadpage_lo = " 0 1 0 0 0 0 0 0",
10855 " 0 0 0 x x x x x",
10856 " x x x a4 a3 a2 a1 a0",
10857 " i i i i i i i i";
10858
10859 loadpage_hi = " 0 1 0 0 1 0 0 0",
10860 " 0 0 0 x x x x x",
10861 " x x x a4 a3 a2 a1 a0",
10862 " i i i i i i i i";
10863
10864 writepage = " 0 1 0 0 1 1 0 0",
10865 " 0 0 0 0 0 a10 a9 a8",
10866 " a7 a6 a5 x x x x x",
10867 " x x x x x x x x";
10868
10869 mode = 0x41;
10870 delay = 10;
10871 blocksize = 64;
10872 readsize = 256;
10873 ;
10874 memory "signature"
10875 size = 3;
10876 read = "0 0 1 1 0 0 0 0 0 0 0 x x x x x",
10877 "x x x x x x a1 a0 o o o o o o o o";
10878 ;
10879 memory "lock"
10880 size = 1;
10881 write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
10882 "x x x x x x x x 1 1 i i i i i i";
10883 min_write_delay = 4500;
10884 max_write_delay = 4500;
10885 ;
10886
10887 memory "lfuse"
10888 size = 1;
10889 write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
10890 "x x x x x x x x i i i i i i i i";
10891
10892 read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
10893 "x x x x x x x x o o o o o o o o";
10894 min_write_delay = 4500;
10895 max_write_delay = 4500;
10896 ;
10897
10898 memory "hfuse"
10899 size = 1;
10900 write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
10901 "x x x x x x x x i i i i i i i i";
10902
10903 read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
10904 "x x x x x x x x o o o o o o o o";
10905 min_write_delay = 4500;
10906 max_write_delay = 4500;
10907 ;
10908
10909 memory "efuse"
10910 size = 1;
10911 write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
10912 "x x x x x x x x x x x x x x x i";
10913
10914 read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
10915 "x x x x x x x x o o o o o o o o";
10916 min_write_delay = 4500;
10917 max_write_delay = 4500;
10918 ;
10919
10920 memory "calibration"
10921 size = 2;
10922 read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
10923 "0 0 0 0 0 0 0 a0 o o o o o o o o";
10924 ;
10925 ;
10926
10927 #------------------------------------------------------------
10928 # ATmega32u4
10929 #------------------------------------------------------------
10930
10931 part
10932 id = "m32u4";
10933 desc = "ATmega32U4";
10934 signature = 0x1e 0x95 0x87;
10935 has_jtag = yes;
10936 # stk500_devcode = 0xB2;
10937 # avr910_devcode = 0x43;
10938 chip_erase_delay = 9000;
10939 pagel = 0xD7;
10940 bs2 = 0xA0;
10941 reset = dedicated;
10942 pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
10943 "x x x x x x x x x x x x x x x x";
10944
10945 chip_erase = "1 0 1 0 1 1 0 0 1 0 0 0 0 0 0 0",
10946 "x x x x x x x x x x x x x x x x";
10947
10948 timeout = 200;
10949 stabdelay = 100;
10950 cmdexedelay = 25;
10951 synchloops = 32;
10952 bytedelay = 0;
10953 pollindex = 3;
10954 pollvalue = 0x53;
10955 predelay = 1;
10956 postdelay = 1;
10957 pollmethod = 1;
10958
10959 pp_controlstack =
10960 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
10961 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
10962 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
10963 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
10964 hventerstabdelay = 100;
10965 progmodedelay = 0;
10966 latchcycles = 5;
10967 togglevtg = 1;
10968 poweroffdelay = 15;
10969 resetdelayms = 1;
10970 resetdelayus = 0;
10971 hvleavestabdelay = 15;
10972 chiperasepulsewidth = 0;
10973 chiperasepolltimeout = 10;
10974 programfusepulsewidth = 0;
10975 programfusepolltimeout = 5;
10976 programlockpulsewidth = 0;
10977 programlockpolltimeout = 5;
10978
10979 idr = 0x31;
10980 spmcr = 0x57;
10981 rampz = 0x3b;
10982 allowfullpagebitstream = no;
10983
10984 ocdrev = 3;
10985
10986 memory "eeprom"
10987 paged = no; /* leave this "no" */
10988 page_size = 4; /* for parallel programming */
10989 size = 1024;
10990 min_write_delay = 9000;
10991 max_write_delay = 9000;
10992 readback_p1 = 0x00;
10993 readback_p2 = 0x00;
10994 read = " 1 0 1 0 0 0 0 0",
10995 " x x x x x a10 a9 a8",
10996 " a7 a6 a5 a4 a3 a2 a1 a0",
10997 " o o o o o o o o";
10998
10999 write = " 1 1 0 0 0 0 0 0",
11000 " x x x x x a10 a9 a8",
11001 " a7 a6 a5 a4 a3 a2 a1 a0",
11002 " i i i i i i i i";
11003
11004 loadpage_lo = " 1 1 0 0 0 0 0 1",
11005 " 0 0 0 0 0 0 0 0",
11006 " 0 0 0 0 0 a2 a1 a0",
11007 " i i i i i i i i";
11008
11009 writepage = " 1 1 0 0 0 0 1 0",
11010 " 0 0 x x x a10 a9 a8",
11011 " a7 a6 a5 a4 a3 0 0 0",
11012 " x x x x x x x x";
11013
11014 mode = 0x41;
11015 delay = 20;
11016 blocksize = 4;
11017 readsize = 256;
11018 ;
11019
11020 memory "flash"
11021 paged = yes;
11022 size = 32768;
11023 page_size = 128;
11024 num_pages = 256;
11025 min_write_delay = 4500;
11026 max_write_delay = 4500;
11027 readback_p1 = 0x00;
11028 readback_p2 = 0x00;
11029 read_lo = " 0 0 1 0 0 0 0 0",
11030 " 0 a14 a13 a12 a11 a10 a9 a8",
11031 " a7 a6 a5 a4 a3 a2 a1 a0",
11032 " o o o o o o o o";
11033
11034 read_hi = " 0 0 1 0 1 0 0 0",
11035 " 0 a14 a13 a12 a11 a10 a9 a8",
11036 " a7 a6 a5 a4 a3 a2 a1 a0",
11037 " o o o o o o o o";
11038
11039 loadpage_lo = " 0 1 0 0 0 0 0 0",
11040 " x x x x x x x x",
11041 " x x a5 a4 a3 a2 a1 a0",
11042 " i i i i i i i i";
11043
11044 loadpage_hi = " 0 1 0 0 1 0 0 0",
11045 " x x x x x x x x",
11046 " x x a5 a4 a3 a2 a1 a0",
11047 " i i i i i i i i";
11048
11049 writepage = " 0 1 0 0 1 1 0 0",
11050 " a15 a14 a13 a12 a11 a10 a9 a8",
11051 " a7 a6 x x x x x x",
11052 " x x x x x x x x";
11053
11054 mode = 0x41;
11055 delay = 6;
11056 blocksize = 128;
11057 readsize = 256;
11058 ;
11059
11060 memory "lfuse"
11061 size = 1;
11062 write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
11063 "x x x x x x x x i i i i i i i i";
11064
11065 read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
11066 "x x x x x x x x o o o o o o o o";
11067 min_write_delay = 9000;
11068 max_write_delay = 9000;
11069 ;
11070
11071 memory "hfuse"
11072 size = 1;
11073 write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
11074 "x x x x x x x x i i i i i i i i";
11075
11076 read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
11077 "x x x x x x x x o o o o o o o o";
11078 min_write_delay = 9000;
11079 max_write_delay = 9000;
11080 ;
11081
11082 memory "efuse"
11083 size = 1;
11084 write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
11085 "x x x x x x x x x x x x i i i i";
11086
11087 read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
11088 "x x x x x x x x o o o o o o o o";
11089 min_write_delay = 9000;
11090 max_write_delay = 9000;
11091 ;
11092
11093 memory "lock"
11094 size = 1;
11095 read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
11096 "x x x x x x x x x x o o o o o o";
11097
11098 write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
11099 "x x x x x x x x 1 1 i i i i i i";
11100 min_write_delay = 9000;
11101 max_write_delay = 9000;
11102 ;
11103
11104 memory "calibration"
11105 size = 1;
11106 read = "0 0 1 1 1 0 0 0 x x x x x x x x",
11107 "0 0 0 0 0 0 0 0 o o o o o o o o";
11108 ;
11109
11110 memory "signature"
11111 size = 3;
11112 read = "0 0 1 1 0 0 0 0 x x x x x x x x",
11113 "x x x x x x a1 a0 o o o o o o o o";
11114 ;
11115 ;
11116
11117 #------------------------------------------------------------
11118 # AT90USB646
11119 #------------------------------------------------------------
11120
11121 part
11122 id = "usb646";
11123 desc = "AT90USB646";
11124 signature = 0x1e 0x96 0x82;
11125 has_jtag = yes;
11126 # stk500_devcode = 0xB2;
11127 # avr910_devcode = 0x43;
11128 chip_erase_delay = 9000;
11129 pagel = 0xD7;
11130 bs2 = 0xA0;
11131 reset = dedicated;
11132 pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
11133 "x x x x x x x x x x x x x x x x";
11134
11135 chip_erase = "1 0 1 0 1 1 0 0 1 0 0 0 0 0 0 0",
11136 "x x x x x x x x x x x x x x x x";
11137
11138 timeout = 200;
11139 stabdelay = 100;
11140 cmdexedelay = 25;
11141 synchloops = 32;
11142 bytedelay = 0;
11143 pollindex = 3;
11144 pollvalue = 0x53;
11145 predelay = 1;
11146 postdelay = 1;
11147 pollmethod = 1;
11148
11149 pp_controlstack =
11150 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
11151 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
11152 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
11153 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
11154 hventerstabdelay = 100;
11155 progmodedelay = 0;
11156 latchcycles = 5;
11157 togglevtg = 1;
11158 poweroffdelay = 15;
11159 resetdelayms = 1;
11160 resetdelayus = 0;
11161 hvleavestabdelay = 15;
11162 chiperasepulsewidth = 0;
11163 chiperasepolltimeout = 10;
11164 programfusepulsewidth = 0;
11165 programfusepolltimeout = 5;
11166 programlockpulsewidth = 0;
11167 programlockpolltimeout = 5;
11168
11169 idr = 0x31;
11170 spmcr = 0x57;
11171 rampz = 0x3b;
11172 allowfullpagebitstream = no;
11173
11174 ocdrev = 3;
11175
11176 memory "eeprom"
11177 paged = no; /* leave this "no" */
11178 page_size = 8; /* for parallel programming */
11179 size = 2048;
11180 min_write_delay = 9000;
11181 max_write_delay = 9000;
11182 readback_p1 = 0x00;
11183 readback_p2 = 0x00;
11184 read = " 1 0 1 0 0 0 0 0",
11185 " x x x x x a10 a9 a8",
11186 " a7 a6 a5 a4 a3 a2 a1 a0",
11187 " o o o o o o o o";
11188
11189 write = " 1 1 0 0 0 0 0 0",
11190 " x x x x x a10 a9 a8",
11191 " a7 a6 a5 a4 a3 a2 a1 a0",
11192 " i i i i i i i i";
11193
11194 loadpage_lo = " 1 1 0 0 0 0 0 1",
11195 " 0 0 0 0 0 0 0 0",
11196 " 0 0 0 0 0 a2 a1 a0",
11197 " i i i i i i i i";
11198
11199 writepage = " 1 1 0 0 0 0 1 0",
11200 " 0 0 x x x a10 a9 a8",
11201 " a7 a6 a5 a4 a3 0 0 0",
11202 " x x x x x x x x";
11203
11204 mode = 0x41;
11205 delay = 10;
11206 blocksize = 8;
11207 readsize = 256;
11208 ;
11209
11210 memory "flash"
11211 paged = yes;
11212 size = 65536;
11213 page_size = 256;
11214 num_pages = 256;
11215 min_write_delay = 4500;
11216 max_write_delay = 4500;
11217 readback_p1 = 0x00;
11218 readback_p2 = 0x00;
11219 read_lo = " 0 0 1 0 0 0 0 0",
11220 " 0 a14 a13 a12 a11 a10 a9 a8",
11221 " a7 a6 a5 a4 a3 a2 a1 a0",
11222 " o o o o o o o o";
11223
11224 read_hi = " 0 0 1 0 1 0 0 0",
11225 " 0 a14 a13 a12 a11 a10 a9 a8",
11226 " a7 a6 a5 a4 a3 a2 a1 a0",
11227 " o o o o o o o o";
11228
11229 loadpage_lo = " 0 1 0 0 0 0 0 0",
11230 " x x x x x x x x",
11231 " x a6 a5 a4 a3 a2 a1 a0",
11232 " i i i i i i i i";
11233
11234 loadpage_hi = " 0 1 0 0 1 0 0 0",
11235 " x x x x x x x x",
11236 " x a6 a5 a4 a3 a2 a1 a0",
11237 " i i i i i i i i";
11238
11239 writepage = " 0 1 0 0 1 1 0 0",
11240 " 0 a14 a13 a12 a11 a10 a9 a8",
11241 " a7 x x x x x x x",
11242 " x x x x x x x x";
11243
11244 mode = 0x41;
11245 delay = 6;
11246 blocksize = 256;
11247 readsize = 256;
11248 ;
11249
11250 memory "lfuse"
11251 size = 1;
11252 write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
11253 "x x x x x x x x i i i i i i i i";
11254
11255 read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
11256 "x x x x x x x x o o o o o o o o";
11257 min_write_delay = 9000;
11258 max_write_delay = 9000;
11259 ;
11260
11261 memory "hfuse"
11262 size = 1;
11263 write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
11264 "x x x x x x x x i i i i i i i i";
11265
11266 read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
11267 "x x x x x x x x o o o o o o o o";
11268 min_write_delay = 9000;
11269 max_write_delay = 9000;
11270 ;
11271
11272 memory "efuse"
11273 size = 1;
11274 write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
11275 "x x x x x x x x x x x x i i i i";
11276
11277 read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
11278 "x x x x x x x x o o o o o o o o";
11279 min_write_delay = 9000;
11280 max_write_delay = 9000;
11281 ;
11282
11283 memory "lock"
11284 size = 1;
11285 read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
11286 "x x x x x x x x x x o o o o o o";
11287
11288 write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
11289 "x x x x x x x x 1 1 i i i i i i";
11290 min_write_delay = 9000;
11291 max_write_delay = 9000;
11292 ;
11293
11294 memory "calibration"
11295 size = 1;
11296 read = "0 0 1 1 1 0 0 0 x x x x x x x x",
11297 "0 0 0 0 0 0 0 0 o o o o o o o o";
11298 ;
11299
11300 memory "signature"
11301 size = 3;
11302 read = "0 0 1 1 0 0 0 0 x x x x x x x x",
11303 "x x x x x x a1 a0 o o o o o o o o";
11304 ;
11305 ;
11306
11307 #------------------------------------------------------------
11308 # AT90USB647
11309 #------------------------------------------------------------
11310 # identical to AT90USB646
11311
11312 part parent "usb646"
11313 id = "usb647";
11314 desc = "AT90USB647";
11315 signature = 0x1e 0x96 0x82;
11316
11317 ocdrev = 3;
11318 ;
11319
11320 #------------------------------------------------------------
11321 # AT90USB1286
11322 #------------------------------------------------------------
11323
11324 part
11325 id = "usb1286";
11326 desc = "AT90USB1286";
11327 signature = 0x1e 0x97 0x82;
11328 has_jtag = yes;
11329 # stk500_devcode = 0xB2;
11330 # avr910_devcode = 0x43;
11331 chip_erase_delay = 9000;
11332 pagel = 0xD7;
11333 bs2 = 0xA0;
11334 reset = dedicated;
11335 pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
11336 "x x x x x x x x x x x x x x x x";
11337
11338 chip_erase = "1 0 1 0 1 1 0 0 1 0 0 0 0 0 0 0",
11339 "x x x x x x x x x x x x x x x x";
11340
11341 timeout = 200;
11342 stabdelay = 100;
11343 cmdexedelay = 25;
11344 synchloops = 32;
11345 bytedelay = 0;
11346 pollindex = 3;
11347 pollvalue = 0x53;
11348 predelay = 1;
11349 postdelay = 1;
11350 pollmethod = 1;
11351
11352 pp_controlstack =
11353 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
11354 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
11355 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
11356 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
11357 hventerstabdelay = 100;
11358 progmodedelay = 0;
11359 latchcycles = 5;
11360 togglevtg = 1;
11361 poweroffdelay = 15;
11362 resetdelayms = 1;
11363 resetdelayus = 0;
11364 hvleavestabdelay = 15;
11365 chiperasepulsewidth = 0;
11366 chiperasepolltimeout = 10;
11367 programfusepulsewidth = 0;
11368 programfusepolltimeout = 5;
11369 programlockpulsewidth = 0;
11370 programlockpolltimeout = 5;
11371
11372 idr = 0x31;
11373 spmcr = 0x57;
11374 rampz = 0x3b;
11375 allowfullpagebitstream = no;
11376
11377 ocdrev = 3;
11378
11379 memory "eeprom"
11380 paged = no; /* leave this "no" */
11381 page_size = 8; /* for parallel programming */
11382 size = 4096;
11383 min_write_delay = 9000;
11384 max_write_delay = 9000;
11385 readback_p1 = 0x00;
11386 readback_p2 = 0x00;
11387 read = " 1 0 1 0 0 0 0 0",
11388 " x x x x a11 a10 a9 a8",
11389 " a7 a6 a5 a4 a3 a2 a1 a0",
11390 " o o o o o o o o";
11391
11392 write = " 1 1 0 0 0 0 0 0",
11393 " x x x x a11 a10 a9 a8",
11394 " a7 a6 a5 a4 a3 a2 a1 a0",
11395 " i i i i i i i i";
11396
11397 loadpage_lo = " 1 1 0 0 0 0 0 1",
11398 " 0 0 0 0 0 0 0 0",
11399 " 0 0 0 0 0 a2 a1 a0",
11400 " i i i i i i i i";
11401
11402 writepage = " 1 1 0 0 0 0 1 0",
11403 " 0 0 x x x a10 a9 a8",
11404 " a7 a6 a5 a4 a3 0 0 0",
11405 " x x x x x x x x";
11406
11407 mode = 0x41;
11408 delay = 10;
11409 blocksize = 8;
11410 readsize = 256;
11411 ;
11412
11413 memory "flash"
11414 paged = yes;
11415 size = 131072;
11416 page_size = 256;
11417 num_pages = 512;
11418 min_write_delay = 4500;
11419 max_write_delay = 4500;
11420 readback_p1 = 0x00;
11421 readback_p2 = 0x00;
11422 read_lo = " 0 0 1 0 0 0 0 0",
11423 "a15 a14 a13 a12 a11 a10 a9 a8",
11424 " a7 a6 a5 a4 a3 a2 a1 a0",
11425 " o o o o o o o o";
11426
11427 read_hi = " 0 0 1 0 1 0 0 0",
11428 "a15 a14 a13 a12 a11 a10 a9 a8",
11429 " a7 a6 a5 a4 a3 a2 a1 a0",
11430 " o o o o o o o o";
11431
11432 loadpage_lo = " 0 1 0 0 0 0 0 0",
11433 " x x x x x x x x",
11434 " x a6 a5 a4 a3 a2 a1 a0",
11435 " i i i i i i i i";
11436
11437 loadpage_hi = " 0 1 0 0 1 0 0 0",
11438 " x x x x x x x x",
11439 " x a6 a5 a4 a3 a2 a1 a0",
11440 " i i i i i i i i";
11441
11442 writepage = " 0 1 0 0 1 1 0 0",
11443 "a15 a14 a13 a12 a11 a10 a9 a8",
11444 " a7 x x x x x x x",
11445 " x x x x x x x x";
11446
11447 mode = 0x41;
11448 delay = 6;
11449 blocksize = 256;
11450 readsize = 256;
11451 ;
11452
11453 memory "lfuse"
11454 size = 1;
11455 write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
11456 "x x x x x x x x i i i i i i i i";
11457
11458 read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
11459 "x x x x x x x x o o o o o o o o";
11460 min_write_delay = 9000;
11461 max_write_delay = 9000;
11462 ;
11463
11464 memory "hfuse"
11465 size = 1;
11466 write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
11467 "x x x x x x x x i i i i i i i i";
11468
11469 read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
11470 "x x x x x x x x o o o o o o o o";
11471 min_write_delay = 9000;
11472 max_write_delay = 9000;
11473 ;
11474
11475 memory "efuse"
11476 size = 1;
11477 write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
11478 "x x x x x x x x x x x x i i i i";
11479
11480 read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
11481 "x x x x x x x x o o o o o o o o";
11482 min_write_delay = 9000;
11483 max_write_delay = 9000;
11484 ;
11485
11486 memory "lock"
11487 size = 1;
11488 read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
11489 "x x x x x x x x x x o o o o o o";
11490
11491 write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
11492 "x x x x x x x x 1 1 i i i i i i";
11493 min_write_delay = 9000;
11494 max_write_delay = 9000;
11495 ;
11496
11497 memory "calibration"
11498 size = 1;
11499 read = "0 0 1 1 1 0 0 0 x x x x x x x x",
11500 "0 0 0 0 0 0 0 0 o o o o o o o o";
11501 ;
11502
11503 memory "signature"
11504 size = 3;
11505 read = "0 0 1 1 0 0 0 0 x x x x x x x x",
11506 "x x x x x x a1 a0 o o o o o o o o";
11507 ;
11508 ;
11509
11510 #------------------------------------------------------------
11511 # AT90USB1287
11512 #------------------------------------------------------------
11513 # identical to AT90USB1286
11514
11515 part parent "usb1286"
11516 id = "usb1287";
11517 desc = "AT90USB1287";
11518 signature = 0x1e 0x97 0x82;
11519
11520 ocdrev = 3;
11521 ;
11522
11523 #------------------------------------------------------------
11524 # AT90USB162
11525 #------------------------------------------------------------
11526
11527 part
11528 id = "usb162";
11529 desc = "AT90USB162";
11530 has_jtag = no;
11531 has_debugwire = yes;
11532 signature = 0x1e 0x94 0x82;
11533 chip_erase_delay = 9000;
11534 reset = io;
11535 pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
11536 "x x x x x x x x x x x x x x x x";
11537 chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
11538 "x x x x x x x x x x x x x x x x";
11539 pagel = 0xD7;
11540 bs2 = 0xC6;
11541
11542 timeout = 200;
11543 stabdelay = 100;
11544 cmdexedelay = 25;
11545 synchloops = 32;
11546 bytedelay = 0;
11547 pollindex = 3;
11548 pollvalue = 0x53;
11549 predelay = 1;
11550 postdelay = 1;
11551 pollmethod = 1;
11552 pp_controlstack =
11553 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
11554 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
11555 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
11556 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
11557 hventerstabdelay = 100;
11558 progmodedelay = 0;
11559 latchcycles = 5;
11560 togglevtg = 1;
11561 poweroffdelay = 15;
11562 resetdelayms = 1;
11563 resetdelayus = 0;
11564 hvleavestabdelay = 15;
11565 chiperasepulsewidth = 0;
11566 chiperasepolltimeout = 10;
11567 programfusepulsewidth = 0;
11568 programfusepolltimeout = 5;
11569 programlockpulsewidth = 0;
11570 programlockpolltimeout = 5;
11571
11572 ocdrev = 1;
11573
11574 memory "eeprom"
11575 paged = no; /* leave this "no" */
11576 page_size = 4; /* for parallel programming */
11577 size = 512;
11578 num_pages = 128;
11579 min_write_delay = 9000;
11580 max_write_delay = 9000;
11581 readback_p1 = 0x00;
11582 readback_p2 = 0x00;
11583 read = " 1 0 1 0 0 0 0 0",
11584 " 0 0 0 0 a11 a10 a9 a8",
11585 " a7 a6 a5 a4 a3 a2 a1 a0",
11586 " o o o o o o o o";
11587
11588 write = " 1 1 0 0 0 0 0 0",
11589 " 0 0 0 0 a11 a10 a9 a8",
11590 " a7 a6 a5 a4 a3 a2 a1 a0",
11591 " i i i i i i i i";
11592
11593 loadpage_lo = " 1 1 0 0 0 0 0 1",
11594 " 0 0 0 0 0 0 0 0",
11595 " 0 0 0 0 0 0 a1 a0",
11596 " i i i i i i i i";
11597
11598 writepage = " 1 1 0 0 0 0 1 0",
11599 " 0 0 0 0 a11 a10 a9 a8",
11600 " a7 a6 a5 a4 a3 a2 0 0",
11601 " x x x x x x x x";
11602
11603 mode = 0x41;
11604 delay = 20;
11605 blocksize = 4;
11606 readsize = 256;
11607 ;
11608
11609 memory "flash"
11610 paged = yes;
11611 size = 16384;
11612 page_size = 128;
11613 num_pages = 128;
11614 min_write_delay = 4500;
11615 max_write_delay = 4500;
11616 readback_p1 = 0x00;
11617 readback_p2 = 0x00;
11618 read_lo = " 0 0 1 0 0 0 0 0",
11619 "a15 a14 a13 a12 a11 a10 a9 a8",
11620 " a7 a6 a5 a4 a3 a2 a1 a0",
11621 " o o o o o o o o";
11622
11623 read_hi = " 0 0 1 0 1 0 0 0",
11624 "a15 a14 a13 a12 a11 a10 a9 a8",
11625 " a7 a6 a5 a4 a3 a2 a1 a0",
11626 " o o o o o o o o";
11627
11628 loadpage_lo = " 0 1 0 0 0 0 0 0",
11629 " x x x x x x x x",
11630 " x x a5 a4 a3 a2 a1 a0",
11631 " i i i i i i i i";
11632
11633 loadpage_hi = " 0 1 0 0 1 0 0 0",
11634 " x x x x x x x x",
11635 " x x a5 a4 a3 a2 a1 a0",
11636 " i i i i i i i i";
11637
11638 writepage = " 0 1 0 0 1 1 0 0",
11639 "a15 a14 a13 a12 a11 a10 a9 a8",
11640 " a7 a6 x x x x x x",
11641 " x x x x x x x x";
11642
11643 mode = 0x41;
11644 delay = 6;
11645 blocksize = 128;
11646 readsize = 256;
11647 ;
11648
11649 memory "lfuse"
11650 size = 1;
11651 write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
11652 "x x x x x x x x i i i i i i i i";
11653
11654 read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
11655 "x x x x x x x x o o o o o o o o";
11656 min_write_delay = 9000;
11657 max_write_delay = 9000;
11658 ;
11659
11660 memory "hfuse"
11661 size = 1;
11662 write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
11663 "x x x x x x x x i i i i i i i i";
11664
11665 read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
11666 "x x x x x x x x o o o o o o o o";
11667 min_write_delay = 9000;
11668 max_write_delay = 9000;
11669 ;
11670
11671 memory "efuse"
11672 size = 1;
11673 write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
11674 "x x x x x x x x i i i i i i i i";
11675
11676 read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
11677 "x x x x x x x x o o o o o o o o";
11678 min_write_delay = 9000;
11679 max_write_delay = 9000;
11680 ;
11681
11682 memory "lock"
11683 size = 1;
11684 read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
11685 "x x x x x x x x x x o o o o o o";
11686
11687 write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
11688 "x x x x x x x x 1 1 i i i i i i";
11689 min_write_delay = 9000;
11690 max_write_delay = 9000;
11691 ;
11692
11693 memory "calibration"
11694 size = 1;
11695 read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
11696 "0 0 0 0 0 0 0 0 o o o o o o o o";
11697 ;
11698 memory "signature"
11699 size = 3;
11700 read = "0 0 1 1 0 0 0 0 0 0 0 x x x x x",
11701 "x x x x x x a1 a0 o o o o o o o o";
11702 ;
11703 ;
11704
11705 #------------------------------------------------------------
11706 # AT90USB82
11707 #------------------------------------------------------------
11708 # Changes against AT90USB162 (beside IDs)
11709 # memory "flash"
11710 # size = 8192;
11711 # num_pages = 64;
11712
11713 part
11714 id = "usb82";
11715 desc = "AT90USB82";
11716 has_jtag = no;
11717 has_debugwire = yes;
11718 signature = 0x1e 0x93 0x82;
11719 chip_erase_delay = 9000;
11720 reset = io;
11721 pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
11722 "x x x x x x x x x x x x x x x x";
11723 chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
11724 "x x x x x x x x x x x x x x x x";
11725 pagel = 0xD7;
11726 bs2 = 0xC6;
11727
11728 timeout = 200;
11729 stabdelay = 100;
11730 cmdexedelay = 25;
11731 synchloops = 32;
11732 bytedelay = 0;
11733 pollindex = 3;
11734 pollvalue = 0x53;
11735 predelay = 1;
11736 postdelay = 1;
11737 pollmethod = 1;
11738 pp_controlstack =
11739 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
11740 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
11741 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
11742 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
11743 hventerstabdelay = 100;
11744 progmodedelay = 0;
11745 latchcycles = 5;
11746 togglevtg = 1;
11747 poweroffdelay = 15;
11748 resetdelayms = 1;
11749 resetdelayus = 0;
11750 hvleavestabdelay = 15;
11751 chiperasepulsewidth = 0;
11752 chiperasepolltimeout = 10;
11753 programfusepulsewidth = 0;
11754 programfusepolltimeout = 5;
11755 programlockpulsewidth = 0;
11756 programlockpolltimeout = 5;
11757
11758 ocdrev = 1;
11759
11760 memory "eeprom"
11761 paged = no; /* leave this "no" */
11762 page_size = 4; /* for parallel programming */
11763 size = 512;
11764 num_pages = 128;
11765 min_write_delay = 9000;
11766 max_write_delay = 9000;
11767 readback_p1 = 0x00;
11768 readback_p2 = 0x00;
11769 read = " 1 0 1 0 0 0 0 0",
11770 " 0 0 0 0 a11 a10 a9 a8",
11771 " a7 a6 a5 a4 a3 a2 a1 a0",
11772 " o o o o o o o o";
11773
11774 write = " 1 1 0 0 0 0 0 0",
11775 " 0 0 0 0 a11 a10 a9 a8",
11776 " a7 a6 a5 a4 a3 a2 a1 a0",
11777 " i i i i i i i i";
11778
11779 loadpage_lo = " 1 1 0 0 0 0 0 1",
11780 " 0 0 0 0 0 0 0 0",
11781 " 0 0 0 0 0 0 a1 a0",
11782 " i i i i i i i i";
11783
11784 writepage = " 1 1 0 0 0 0 1 0",
11785 " 0 0 0 0 a11 a10 a9 a8",
11786 " a7 a6 a5 a4 a3 a2 0 0",
11787 " x x x x x x x x";
11788
11789 mode = 0x41;
11790 delay = 20;
11791 blocksize = 4;
11792 readsize = 256;
11793 ;
11794
11795 memory "flash"
11796 paged = yes;
11797 size = 8192;
11798 page_size = 128;
11799 num_pages = 64;
11800 min_write_delay = 4500;
11801 max_write_delay = 4500;
11802 readback_p1 = 0x00;
11803 readback_p2 = 0x00;
11804 read_lo = " 0 0 1 0 0 0 0 0",
11805 "a15 a14 a13 a12 a11 a10 a9 a8",
11806 " a7 a6 a5 a4 a3 a2 a1 a0",
11807 " o o o o o o o o";
11808
11809 read_hi = " 0 0 1 0 1 0 0 0",
11810 "a15 a14 a13 a12 a11 a10 a9 a8",
11811 " a7 a6 a5 a4 a3 a2 a1 a0",
11812 " o o o o o o o o";
11813
11814 loadpage_lo = " 0 1 0 0 0 0 0 0",
11815 " x x x x x x x x",
11816 " x x a5 a4 a3 a2 a1 a0",
11817 " i i i i i i i i";
11818
11819 loadpage_hi = " 0 1 0 0 1 0 0 0",
11820 " x x x x x x x x",
11821 " x x a5 a4 a3 a2 a1 a0",
11822 " i i i i i i i i";
11823
11824 writepage = " 0 1 0 0 1 1 0 0",
11825 "a15 a14 a13 a12 a11 a10 a9 a8",
11826 " a7 a6 x x x x x x",
11827 " x x x x x x x x";
11828
11829 mode = 0x41;
11830 delay = 6;
11831 blocksize = 128;
11832 readsize = 256;
11833 ;
11834
11835 memory "lfuse"
11836 size = 1;
11837 write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
11838 "x x x x x x x x i i i i i i i i";
11839
11840 read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
11841 "x x x x x x x x o o o o o o o o";
11842 min_write_delay = 9000;
11843 max_write_delay = 9000;
11844 ;
11845
11846 memory "hfuse"
11847 size = 1;
11848 write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
11849 "x x x x x x x x i i i i i i i i";
11850
11851 read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
11852 "x x x x x x x x o o o o o o o o";
11853 min_write_delay = 9000;
11854 max_write_delay = 9000;
11855 ;
11856
11857 memory "efuse"
11858 size = 1;
11859 write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
11860 "x x x x x x x x i i i i i i i i";
11861
11862 read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
11863 "x x x x x x x x o o o o o o o o";
11864 min_write_delay = 9000;
11865 max_write_delay = 9000;
11866 ;
11867
11868 memory "lock"
11869 size = 1;
11870 read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
11871 "x x x x x x x x x x o o o o o o";
11872
11873 write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
11874 "x x x x x x x x 1 1 i i i i i i";
11875 min_write_delay = 9000;
11876 max_write_delay = 9000;
11877 ;
11878
11879 memory "calibration"
11880 size = 1;
11881 read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
11882 "0 0 0 0 0 0 0 0 o o o o o o o o";
11883 ;
11884 memory "signature"
11885 size = 3;
11886 read = "0 0 1 1 0 0 0 0 0 0 0 x x x x x",
11887 "x x x x x x a1 a0 o o o o o o o o";
11888 ;
11889 ;
11890
11891 #------------------------------------------------------------
11892 # ATmega32U2
11893 #------------------------------------------------------------
11894 # Changes against AT90USB162 (beside IDs)
11895 # memory "flash"
11896 # size = 32768;
11897 # num_pages = 256;
11898 # memory "eeprom"
11899 # size = 1024;
11900 # num_pages = 256;
11901 part
11902 id = "m32u2";
11903 desc = "ATmega32U2";
11904 has_jtag = no;
11905 has_debugwire = yes;
11906 signature = 0x1e 0x95 0x8a;
11907 chip_erase_delay = 9000;
11908 reset = io;
11909 pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
11910 "x x x x x x x x x x x x x x x x";
11911 chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
11912 "x x x x x x x x x x x x x x x x";
11913 pagel = 0xD7;
11914 bs2 = 0xC6;
11915
11916 timeout = 200;
11917 stabdelay = 100;
11918 cmdexedelay = 25;
11919 synchloops = 32;
11920 bytedelay = 0;
11921 pollindex = 3;
11922 pollvalue = 0x53;
11923 predelay = 1;
11924 postdelay = 1;
11925 pollmethod = 1;
11926 pp_controlstack =
11927 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
11928 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
11929 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
11930 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
11931 hventerstabdelay = 100;
11932 progmodedelay = 0;
11933 latchcycles = 5;
11934 togglevtg = 1;
11935 poweroffdelay = 15;
11936 resetdelayms = 1;
11937 resetdelayus = 0;
11938 hvleavestabdelay = 15;
11939 chiperasepulsewidth = 0;
11940 chiperasepolltimeout = 10;
11941 programfusepulsewidth = 0;
11942 programfusepolltimeout = 5;
11943 programlockpulsewidth = 0;
11944 programlockpolltimeout = 5;
11945
11946 ocdrev = 1;
11947
11948 memory "eeprom"
11949 paged = no; /* leave this "no" */
11950 page_size = 4; /* for parallel programming */
11951 size = 1024;
11952 num_pages = 256;
11953 min_write_delay = 9000;
11954 max_write_delay = 9000;
11955 readback_p1 = 0x00;
11956 readback_p2 = 0x00;
11957 read = " 1 0 1 0 0 0 0 0",
11958 " 0 0 0 0 a11 a10 a9 a8",
11959 " a7 a6 a5 a4 a3 a2 a1 a0",
11960 " o o o o o o o o";
11961
11962 write = " 1 1 0 0 0 0 0 0",
11963 " 0 0 0 0 a11 a10 a9 a8",
11964 " a7 a6 a5 a4 a3 a2 a1 a0",
11965 " i i i i i i i i";
11966
11967 loadpage_lo = " 1 1 0 0 0 0 0 1",
11968 " 0 0 0 0 0 0 0 0",
11969 " 0 0 0 0 0 0 a1 a0",
11970 " i i i i i i i i";
11971
11972 writepage = " 1 1 0 0 0 0 1 0",
11973 " 0 0 0 0 a11 a10 a9 a8",
11974 " a7 a6 a5 a4 a3 a2 0 0",
11975 " x x x x x x x x";
11976
11977 mode = 0x41;
11978 delay = 20;
11979 blocksize = 4;
11980 readsize = 256;
11981 ;
11982
11983 memory "flash"
11984 paged = yes;
11985 size = 32768;
11986 page_size = 128;
11987 num_pages = 256;
11988 min_write_delay = 4500;
11989 max_write_delay = 4500;
11990 readback_p1 = 0x00;
11991 readback_p2 = 0x00;
11992 read_lo = " 0 0 1 0 0 0 0 0",
11993 "a15 a14 a13 a12 a11 a10 a9 a8",
11994 " a7 a6 a5 a4 a3 a2 a1 a0",
11995 " o o o o o o o o";
11996
11997 read_hi = " 0 0 1 0 1 0 0 0",
11998 "a15 a14 a13 a12 a11 a10 a9 a8",
11999 " a7 a6 a5 a4 a3 a2 a1 a0",
12000 " o o o o o o o o";
12001
12002 loadpage_lo = " 0 1 0 0 0 0 0 0",
12003 " x x x x x x x x",
12004 " x x a5 a4 a3 a2 a1 a0",
12005 " i i i i i i i i";
12006
12007 loadpage_hi = " 0 1 0 0 1 0 0 0",
12008 " x x x x x x x x",
12009 " x x a5 a4 a3 a2 a1 a0",
12010 " i i i i i i i i";
12011
12012 writepage = " 0 1 0 0 1 1 0 0",
12013 "a15 a14 a13 a12 a11 a10 a9 a8",
12014 " a7 a6 x x x x x x",
12015 " x x x x x x x x";
12016
12017 mode = 0x41;
12018 delay = 6;
12019 blocksize = 128;
12020 readsize = 256;
12021 ;
12022
12023 memory "lfuse"
12024 size = 1;
12025 write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
12026 "x x x x x x x x i i i i i i i i";
12027
12028 read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
12029 "x x x x x x x x o o o o o o o o";
12030 min_write_delay = 9000;
12031 max_write_delay = 9000;
12032 ;
12033
12034 memory "hfuse"
12035 size = 1;
12036 write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
12037 "x x x x x x x x i i i i i i i i";
12038
12039 read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
12040 "x x x x x x x x o o o o o o o o";
12041 min_write_delay = 9000;
12042 max_write_delay = 9000;
12043 ;
12044
12045 memory "efuse"
12046 size = 1;
12047 write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
12048 "x x x x x x x x i i i i i i i i";
12049
12050 read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
12051 "x x x x x x x x o o o o o o o o";
12052 min_write_delay = 9000;
12053 max_write_delay = 9000;
12054 ;
12055
12056 memory "lock"
12057 size = 1;
12058 read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
12059 "x x x x x x x x x x o o o o o o";
12060
12061 write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
12062 "x x x x x x x x 1 1 i i i i i i";
12063 min_write_delay = 9000;
12064 max_write_delay = 9000;
12065 ;
12066
12067 memory "calibration"
12068 size = 1;
12069 read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
12070 "0 0 0 0 0 0 0 0 o o o o o o o o";
12071 ;
12072 memory "signature"
12073 size = 3;
12074 read = "0 0 1 1 0 0 0 0 0 0 0 x x x x x",
12075 "x x x x x x a1 a0 o o o o o o o o";
12076 ;
12077 ;
12078 #------------------------------------------------------------
12079 # ATmega16U2
12080 #------------------------------------------------------------
12081 # Changes against ATmega32U2 (beside IDs)
12082 # memory "flash"
12083 # size = 16384;
12084 # num_pages = 128;
12085 # memory "eeprom"
12086 # size = 512;
12087 # num_pages = 128;
12088 part
12089 id = "m16u2";
12090 desc = "ATmega16U2";
12091 has_jtag = no;
12092 has_debugwire = yes;
12093 signature = 0x1e 0x94 0x89;
12094 chip_erase_delay = 9000;
12095 reset = io;
12096 pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
12097 "x x x x x x x x x x x x x x x x";
12098 chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
12099 "x x x x x x x x x x x x x x x x";
12100 pagel = 0xD7;
12101 bs2 = 0xC6;
12102
12103 timeout = 200;
12104 stabdelay = 100;
12105 cmdexedelay = 25;
12106 synchloops = 32;
12107 bytedelay = 0;
12108 pollindex = 3;
12109 pollvalue = 0x53;
12110 predelay = 1;
12111 postdelay = 1;
12112 pollmethod = 1;
12113 pp_controlstack =
12114 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
12115 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
12116 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
12117 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
12118 hventerstabdelay = 100;
12119 progmodedelay = 0;
12120 latchcycles = 5;
12121 togglevtg = 1;
12122 poweroffdelay = 15;
12123 resetdelayms = 1;
12124 resetdelayus = 0;
12125 hvleavestabdelay = 15;
12126 chiperasepulsewidth = 0;
12127 chiperasepolltimeout = 10;
12128 programfusepulsewidth = 0;
12129 programfusepolltimeout = 5;
12130 programlockpulsewidth = 0;
12131 programlockpolltimeout = 5;
12132
12133 ocdrev = 1;
12134
12135 memory "eeprom"
12136 paged = no; /* leave this "no" */
12137 page_size = 4; /* for parallel programming */
12138 size = 512;
12139 num_pages = 128;
12140 min_write_delay = 9000;
12141 max_write_delay = 9000;
12142 readback_p1 = 0x00;
12143 readback_p2 = 0x00;
12144 read = " 1 0 1 0 0 0 0 0",
12145 " 0 0 0 0 a11 a10 a9 a8",
12146 " a7 a6 a5 a4 a3 a2 a1 a0",
12147 " o o o o o o o o";
12148
12149 write = " 1 1 0 0 0 0 0 0",
12150 " 0 0 0 0 a11 a10 a9 a8",
12151 " a7 a6 a5 a4 a3 a2 a1 a0",
12152 " i i i i i i i i";
12153
12154 loadpage_lo = " 1 1 0 0 0 0 0 1",
12155 " 0 0 0 0 0 0 0 0",
12156 " 0 0 0 0 0 0 a1 a0",
12157 " i i i i i i i i";
12158
12159 writepage = " 1 1 0 0 0 0 1 0",
12160 " 0 0 0 0 a11 a10 a9 a8",
12161 " a7 a6 a5 a4 a3 a2 0 0",
12162 " x x x x x x x x";
12163
12164 mode = 0x41;
12165 delay = 20;
12166 blocksize = 4;
12167 readsize = 256;
12168 ;
12169
12170 memory "flash"
12171 paged = yes;
12172 size = 16384;
12173 page_size = 128;
12174 num_pages = 128;
12175 min_write_delay = 4500;
12176 max_write_delay = 4500;
12177 readback_p1 = 0x00;
12178 readback_p2 = 0x00;
12179 read_lo = " 0 0 1 0 0 0 0 0",
12180 "a15 a14 a13 a12 a11 a10 a9 a8",
12181 " a7 a6 a5 a4 a3 a2 a1 a0",
12182 " o o o o o o o o";
12183
12184 read_hi = " 0 0 1 0 1 0 0 0",
12185 "a15 a14 a13 a12 a11 a10 a9 a8",
12186 " a7 a6 a5 a4 a3 a2 a1 a0",
12187 " o o o o o o o o";
12188
12189 loadpage_lo = " 0 1 0 0 0 0 0 0",
12190 " x x x x x x x x",
12191 " x x a5 a4 a3 a2 a1 a0",
12192 " i i i i i i i i";
12193
12194 loadpage_hi = " 0 1 0 0 1 0 0 0",
12195 " x x x x x x x x",
12196 " x x a5 a4 a3 a2 a1 a0",
12197 " i i i i i i i i";
12198
12199 writepage = " 0 1 0 0 1 1 0 0",
12200 "a15 a14 a13 a12 a11 a10 a9 a8",
12201 " a7 a6 x x x x x x",
12202 " x x x x x x x x";
12203
12204 mode = 0x41;
12205 delay = 6;
12206 blocksize = 128;
12207 readsize = 256;
12208 ;
12209
12210 memory "lfuse"
12211 size = 1;
12212 write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
12213 "x x x x x x x x i i i i i i i i";
12214
12215 read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
12216 "x x x x x x x x o o o o o o o o";
12217 min_write_delay = 9000;
12218 max_write_delay = 9000;
12219 ;
12220
12221 memory "hfuse"
12222 size = 1;
12223 write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
12224 "x x x x x x x x i i i i i i i i";
12225
12226 read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
12227 "x x x x x x x x o o o o o o o o";
12228 min_write_delay = 9000;
12229 max_write_delay = 9000;
12230 ;
12231
12232 memory "efuse"
12233 size = 1;
12234 write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
12235 "x x x x x x x x i i i i i i i i";
12236
12237 read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
12238 "x x x x x x x x o o o o o o o o";
12239 min_write_delay = 9000;
12240 max_write_delay = 9000;
12241 ;
12242
12243 memory "lock"
12244 size = 1;
12245 read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
12246 "x x x x x x x x x x o o o o o o";
12247
12248 write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
12249 "x x x x x x x x 1 1 i i i i i i";
12250 min_write_delay = 9000;
12251 max_write_delay = 9000;
12252 ;
12253
12254 memory "calibration"
12255 size = 1;
12256 read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
12257 "0 0 0 0 0 0 0 0 o o o o o o o o";
12258 ;
12259 memory "signature"
12260 size = 3;
12261 read = "0 0 1 1 0 0 0 0 0 0 0 x x x x x",
12262 "x x x x x x a1 a0 o o o o o o o o";
12263 ;
12264 ;
12265
12266 #------------------------------------------------------------
12267 # ATmega8U2
12268 #------------------------------------------------------------
12269 # Changes against ATmega16U2 (beside IDs)
12270 # memory "flash"
12271 # size = 8192;
12272 # page_size = 64;
12273 # blocksize = 64;
12274
12275 part
12276 id = "m8u2";
12277 desc = "ATmega8U2";
12278 has_jtag = no;
12279 has_debugwire = yes;
12280 signature = 0x1e 0x93 0x89;
12281 chip_erase_delay = 9000;
12282 reset = io;
12283 pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
12284 "x x x x x x x x x x x x x x x x";
12285 chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
12286 "x x x x x x x x x x x x x x x x";
12287 pagel = 0xD7;
12288 bs2 = 0xC6;
12289
12290 timeout = 200;
12291 stabdelay = 100;
12292 cmdexedelay = 25;
12293 synchloops = 32;
12294 bytedelay = 0;
12295 pollindex = 3;
12296 pollvalue = 0x53;
12297 predelay = 1;
12298 postdelay = 1;
12299 pollmethod = 1;
12300 pp_controlstack =
12301 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
12302 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
12303 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
12304 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
12305 hventerstabdelay = 100;
12306 progmodedelay = 0;
12307 latchcycles = 5;
12308 togglevtg = 1;
12309 poweroffdelay = 15;
12310 resetdelayms = 1;
12311 resetdelayus = 0;
12312 hvleavestabdelay = 15;
12313 chiperasepulsewidth = 0;
12314 chiperasepolltimeout = 10;
12315 programfusepulsewidth = 0;
12316 programfusepolltimeout = 5;
12317 programlockpulsewidth = 0;
12318 programlockpolltimeout = 5;
12319
12320 ocdrev = 1;
12321
12322 memory "eeprom"
12323 paged = no; /* leave this "no" */
12324 page_size = 4; /* for parallel programming */
12325 size = 512;
12326 num_pages = 128;
12327 min_write_delay = 9000;
12328 max_write_delay = 9000;
12329 readback_p1 = 0x00;
12330 readback_p2 = 0x00;
12331 read = " 1 0 1 0 0 0 0 0",
12332 " 0 0 0 0 a11 a10 a9 a8",
12333 " a7 a6 a5 a4 a3 a2 a1 a0",
12334 " o o o o o o o o";
12335
12336 write = " 1 1 0 0 0 0 0 0",
12337 " 0 0 0 0 a11 a10 a9 a8",
12338 " a7 a6 a5 a4 a3 a2 a1 a0",
12339 " i i i i i i i i";
12340
12341 loadpage_lo = " 1 1 0 0 0 0 0 1",
12342 " 0 0 0 0 0 0 0 0",
12343 " 0 0 0 0 0 0 a1 a0",
12344 " i i i i i i i i";
12345
12346 writepage = " 1 1 0 0 0 0 1 0",
12347 " 0 0 0 0 a11 a10 a9 a8",
12348 " a7 a6 a5 a4 a3 a2 0 0",
12349 " x x x x x x x x";
12350
12351 mode = 0x41;
12352 delay = 20;
12353 blocksize = 4;
12354 readsize = 256;
12355 ;
12356
12357 memory "flash"
12358 paged = yes;
12359 size = 8192;
12360 page_size = 64;
12361 num_pages = 128;
12362 min_write_delay = 4500;
12363 max_write_delay = 4500;
12364 readback_p1 = 0x00;
12365 readback_p2 = 0x00;
12366 read_lo = " 0 0 1 0 0 0 0 0",
12367 "a15 a14 a13 a12 a11 a10 a9 a8",
12368 " a7 a6 a5 a4 a3 a2 a1 a0",
12369 " o o o o o o o o";
12370
12371 read_hi = " 0 0 1 0 1 0 0 0",
12372 "a15 a14 a13 a12 a11 a10 a9 a8",
12373 " a7 a6 a5 a4 a3 a2 a1 a0",
12374 " o o o o o o o o";
12375
12376 loadpage_lo = " 0 1 0 0 0 0 0 0",
12377 " x x x x x x x x",
12378 " x x a5 a4 a3 a2 a1 a0",
12379 " i i i i i i i i";
12380
12381 loadpage_hi = " 0 1 0 0 1 0 0 0",
12382 " x x x x x x x x",
12383 " x x a5 a4 a3 a2 a1 a0",
12384 " i i i i i i i i";
12385
12386 writepage = " 0 1 0 0 1 1 0 0",
12387 "a15 a14 a13 a12 a11 a10 a9 a8",
12388 " a7 a6 x x x x x x",
12389 " x x x x x x x x";
12390
12391 mode = 0x41;
12392 delay = 6;
12393 blocksize = 64;
12394 readsize = 256;
12395 ;
12396
12397 memory "lfuse"
12398 size = 1;
12399 write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
12400 "x x x x x x x x i i i i i i i i";
12401
12402 read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
12403 "x x x x x x x x o o o o o o o o";
12404 min_write_delay = 9000;
12405 max_write_delay = 9000;
12406 ;
12407
12408 memory "hfuse"
12409 size = 1;
12410 write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
12411 "x x x x x x x x i i i i i i i i";
12412
12413 read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
12414 "x x x x x x x x o o o o o o o o";
12415 min_write_delay = 9000;
12416 max_write_delay = 9000;
12417 ;
12418
12419 memory "efuse"
12420 size = 1;
12421 write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
12422 "x x x x x x x x i i i i i i i i";
12423
12424 read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
12425 "x x x x x x x x o o o o o o o o";
12426 min_write_delay = 9000;
12427 max_write_delay = 9000;
12428 ;
12429
12430 memory "lock"
12431 size = 1;
12432 read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
12433 "x x x x x x x x x x o o o o o o";
12434
12435 write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
12436 "x x x x x x x x 1 1 i i i i i i";
12437 min_write_delay = 9000;
12438 max_write_delay = 9000;
12439 ;
12440
12441 memory "calibration"
12442 size = 1;
12443 read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
12444 "0 0 0 0 0 0 0 0 o o o o o o o o";
12445 ;
12446 memory "signature"
12447 size = 3;
12448 read = "0 0 1 1 0 0 0 0 0 0 0 x x x x x",
12449 "x x x x x x a1 a0 o o o o o o o o";
12450 ;
12451 ;
12452 #------------------------------------------------------------
12453 # ATmega325
12454 #------------------------------------------------------------
12455
12456 part
12457 id = "m325";
12458 desc = "ATmega325";
12459 signature = 0x1e 0x95 0x05;
12460 has_jtag = yes;
12461 # stk500_devcode = 0x??; # No STK500v1 support?
12462 # avr910_devcode = 0x??; # Try the ATmega16 one
12463 avr910_devcode = 0x74;
12464 pagel = 0xd7;
12465 bs2 = 0xa0;
12466 chip_erase_delay = 9000;
12467 pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
12468 "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0";
12469
12470 chip_erase = "1 0 1 0 1 1 0 0 1 0 0 0 0 0 0 0",
12471 "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0";
12472
12473 timeout = 200;
12474 stabdelay = 100;
12475 cmdexedelay = 25;
12476 synchloops = 32;
12477 bytedelay = 0;
12478 pollindex = 3;
12479 pollvalue = 0x53;
12480 predelay = 1;
12481 postdelay = 1;
12482 pollmethod = 1;
12483
12484 pp_controlstack =
12485 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
12486 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
12487 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
12488 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
12489 hventerstabdelay = 100;
12490 progmodedelay = 0;
12491 latchcycles = 5;
12492 togglevtg = 1;
12493 poweroffdelay = 15;
12494 resetdelayms = 1;
12495 resetdelayus = 0;
12496 hvleavestabdelay = 15;
12497 chiperasepulsewidth = 0;
12498 chiperasepolltimeout = 10;
12499 programfusepulsewidth = 0;
12500 programfusepolltimeout = 5;
12501 programlockpulsewidth = 0;
12502 programlockpolltimeout = 5;
12503
12504 idr = 0x31;
12505 spmcr = 0x57;
12506 allowfullpagebitstream = no;
12507
12508 ocdrev = 3;
12509
12510 memory "eeprom"
12511 paged = no; /* leave this "no" */
12512 page_size = 4; /* for parallel programming */
12513 size = 1024;
12514 min_write_delay = 9000;
12515 max_write_delay = 9000;
12516 readback_p1 = 0xff;
12517 readback_p2 = 0xff;
12518 read = " 1 0 1 0 0 0 0 0",
12519 " 0 0 0 0 0 0 a9 a8",
12520 " a7 a6 a5 a4 a3 a2 a1 a0",
12521 " o o o o o o o o";
12522
12523 write = " 1 1 0 0 0 0 0 0",
12524 " 0 0 0 0 0 0 a9 a8",
12525 " a7 a6 a5 a4 a3 a2 a1 a0",
12526 " i i i i i i i i";
12527
12528 loadpage_lo = " 1 1 0 0 0 0 0 1",
12529 " 0 0 0 0 0 0 0 0",
12530 " 0 0 0 0 0 0 a1 a0",
12531 " i i i i i i i i";
12532
12533 writepage = " 1 1 0 0 0 0 1 0",
12534 " 0 0 0 0 0 0 a9 a8",
12535 " a7 a6 a5 a4 a3 a2 0 0",
12536 " x x x x x x x x";
12537
12538 mode = 0x41;
12539 delay = 10;
12540 blocksize = 4;
12541 readsize = 256;
12542 ;
12543
12544 memory "flash"
12545 paged = yes;
12546 size = 32768;
12547 page_size = 128;
12548 num_pages = 256;
12549 min_write_delay = 4500;
12550 max_write_delay = 4500;
12551 readback_p1 = 0xff;
12552 readback_p2 = 0xff;
12553 read_lo = " 0 0 1 0 0 0 0 0",
12554 " 0 a14 a13 a12 a11 a10 a9 a8",
12555 " a7 a6 a5 a4 a3 a2 a1 a0",
12556 " o o o o o o o o";
12557
12558 read_hi = " 0 0 1 0 1 0 0 0",
12559 " 0 a14 a13 a12 a11 a10 a9 a8",
12560 " a7 a6 a5 a4 a3 a2 a1 a0",
12561 " o o o o o o o o";
12562
12563 loadpage_lo = " 0 1 0 0 0 0 0 0",
12564 " 0 0 0 0 0 0 0 0",
12565 " a7 a6 a5 a4 a3 a2 a1 a0",
12566 " i i i i i i i i";
12567
12568 loadpage_hi = " 0 1 0 0 1 0 0 0",
12569 " 0 0 0 0 0 0 0 0",
12570 " a7 a6 a5 a4 a3 a2 a1 a0",
12571 " i i i i i i i i";
12572
12573 writepage = " 0 1 0 0 1 1 0 0",
12574 " 0 a14 a13 a12 a11 a10 a9 a8",
12575 " a7 a6 a5 a4 a3 a2 a1 a0",
12576 " x x x x x x x x";
12577
12578 mode = 0x41;
12579 delay = 10;
12580 blocksize = 128;
12581 readsize = 256;
12582 ;
12583
12584 memory "lock"
12585 size = 1;
12586 read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
12587 "x x x x x x x x x x o o o o o o";
12588
12589 write = "1 0 1 0 1 1 0 0 1 1 1 0 0 0 0 0",
12590 "0 0 0 0 0 0 0 0 1 1 i i i i i i";
12591 min_write_delay = 9000;
12592 max_write_delay = 9000;
12593 ;
12594
12595 memory "lfuse"
12596 size = 1;
12597 read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
12598 "0 0 0 0 0 0 0 0 o o o o o o o o";
12599
12600 write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
12601 "0 0 0 0 0 0 0 0 i i i i i i i i";
12602 min_write_delay = 9000;
12603 max_write_delay = 9000;
12604 ;
12605
12606 memory "hfuse"
12607 size = 1;
12608 read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
12609 "0 0 0 0 0 0 0 0 o o o o o o o o";
12610
12611 write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
12612 "0 0 0 0 0 0 0 0 i i i i i i i i";
12613 min_write_delay = 9000;
12614 max_write_delay = 9000;
12615 ;
12616
12617 memory "efuse"
12618 size = 1;
12619
12620 read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
12621 "0 0 0 0 0 0 0 0 o o o o o o o o";
12622
12623 write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
12624 "0 0 0 0 0 0 0 0 1 1 1 1 1 i i i";
12625 min_write_delay = 9000;
12626 max_write_delay = 9000;
12627 ;
12628
12629 memory "signature"
12630 size = 3;
12631 read = "0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0",
12632 "0 0 0 0 0 0 a1 a0 o o o o o o o o";
12633 ;
12634
12635 memory "calibration"
12636 size = 1;
12637
12638 read = "0 0 1 1 1 0 0 0 0 0 0 0 0 0 0 0",
12639 "0 0 0 0 0 0 0 0 o o o o o o o o";
12640 ;
12641 ;
12642
12643 #------------------------------------------------------------
12644 # ATmega645
12645 #------------------------------------------------------------
12646
12647 part
12648 id = "m645";
12649 desc = "ATmega645";
12650 signature = 0x1E 0x96 0x05;
12651 has_jtag = yes;
12652 # stk500_devcode = 0x??; # No STK500v1 support?
12653 # avr910_devcode = 0x??; # Try the ATmega16 one
12654 avr910_devcode = 0x74;
12655 pagel = 0xd7;
12656 bs2 = 0xa0;
12657 chip_erase_delay = 9000;
12658 pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
12659 "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0";
12660
12661 chip_erase = "1 0 1 0 1 1 0 0 1 0 0 0 0 0 0 0",
12662 "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0";
12663
12664 timeout = 200;
12665 stabdelay = 100;
12666 cmdexedelay = 25;
12667 synchloops = 32;
12668 bytedelay = 0;
12669 pollindex = 3;
12670 pollvalue = 0x53;
12671 predelay = 1;
12672 postdelay = 1;
12673 pollmethod = 1;
12674
12675 pp_controlstack =
12676 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
12677 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
12678 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
12679 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
12680 hventerstabdelay = 100;
12681 progmodedelay = 0;
12682 latchcycles = 5;
12683 togglevtg = 1;
12684 poweroffdelay = 15;
12685 resetdelayms = 1;
12686 resetdelayus = 0;
12687 hvleavestabdelay = 15;
12688 chiperasepulsewidth = 0;
12689 chiperasepolltimeout = 10;
12690 programfusepulsewidth = 0;
12691 programfusepolltimeout = 5;
12692 programlockpulsewidth = 0;
12693 programlockpolltimeout = 5;
12694
12695 idr = 0x31;
12696 spmcr = 0x57;
12697 allowfullpagebitstream = no;
12698
12699 ocdrev = 3;
12700
12701 memory "eeprom"
12702 paged = no; /* leave this "no" */
12703 page_size = 8; /* for parallel programming */
12704 size = 2048;
12705 min_write_delay = 9000;
12706 max_write_delay = 9000;
12707 readback_p1 = 0xff;
12708 readback_p2 = 0xff;
12709 read = " 1 0 1 0 0 0 0 0",
12710 " 0 0 0 0 0 a10 a9 a8",
12711 " a7 a6 a5 a4 a3 a2 a1 a0",
12712 " o o o o o o o o";
12713
12714 write = " 1 1 0 0 0 0 0 0",
12715 " 0 0 0 0 0 a10 a9 a8",
12716 " a7 a6 a5 a4 a3 a2 a1 a0",
12717 " i i i i i i i i";
12718
12719 loadpage_lo = " 1 1 0 0 0 0 0 1",
12720 " 0 0 0 0 0 0 0 0",
12721 " 0 0 0 0 0 a2 a1 a0",
12722 " i i i i i i i i";
12723
12724 writepage = " 1 1 0 0 0 0 1 0",
12725 " 0 0 0 0 0 a10 a9 a8",
12726 " a7 a6 a5 a4 a3 0 0 0",
12727 " x x x x x x x x";
12728
12729 mode = 0x41;
12730 delay = 10;
12731 blocksize = 8;
12732 readsize = 256;
12733 ;
12734
12735 memory "flash"
12736 paged = yes;
12737 size = 65536;
12738 page_size = 256;
12739 num_pages = 256;
12740 min_write_delay = 4500;
12741 max_write_delay = 4500;
12742 readback_p1 = 0xff;
12743 readback_p2 = 0xff;
12744 read_lo = " 0 0 1 0 0 0 0 0",
12745 " a15 a14 a13 a12 a11 a10 a9 a8",
12746 " a7 a6 a5 a4 a3 a2 a1 a0",
12747 " o o o o o o o o";
12748
12749 read_hi = " 0 0 1 0 1 0 0 0",
12750 " a15 a14 a13 a12 a11 a10 a9 a8",
12751 " a7 a6 a5 a4 a3 a2 a1 a0",
12752 " o o o o o o o o";
12753
12754 loadpage_lo = " 0 1 0 0 0 0 0 0",
12755 " 0 0 0 0 0 0 0 0",
12756 " a7 a6 a5 a4 a3 a2 a1 a0",
12757 " i i i i i i i i";
12758
12759 loadpage_hi = " 0 1 0 0 1 0 0 0",
12760 " 0 0 0 0 0 0 0 0",
12761 " a7 a6 a5 a4 a3 a2 a1 a0",
12762 " i i i i i i i i";
12763
12764 writepage = " 0 1 0 0 1 1 0 0",
12765 " a15 a14 a13 a12 a11 a10 a9 a8",
12766 " a7 a6 a5 a4 a3 a2 a1 a0",
12767 " 0 0 0 0 0 0 0 0";
12768
12769 mode = 0x41;
12770 delay = 10;
12771 blocksize = 128;
12772 readsize = 256;
12773 ;
12774
12775 memory "lock"
12776 size = 1;
12777 read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
12778 "x x x x x x x x x x o o o o o o";
12779
12780 write = "1 0 1 0 1 1 0 0 1 1 1 0 0 0 0 0",
12781 "0 0 0 0 0 0 0 0 1 1 i i i i i i";
12782 min_write_delay = 9000;
12783 max_write_delay = 9000;
12784 ;
12785
12786 memory "lfuse"
12787 size = 1;
12788 read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
12789 "0 0 0 0 0 0 0 0 o o o o o o o o";
12790
12791 write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
12792 "0 0 0 0 0 0 0 0 i i i i i i i i";
12793 min_write_delay = 9000;
12794 max_write_delay = 9000;
12795 ;
12796
12797 memory "hfuse"
12798 size = 1;
12799 read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
12800 "0 0 0 0 0 0 0 0 o o o o o o o o";
12801
12802 write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
12803 "0 0 0 0 0 0 0 0 i i i i i i i i";
12804 min_write_delay = 9000;
12805 max_write_delay = 9000;
12806 ;
12807
12808 memory "efuse"
12809 size = 1;
12810
12811 read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
12812 "0 0 0 0 0 0 0 0 o o o o o o o o";
12813
12814 write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
12815 "0 0 0 0 0 0 0 0 1 1 1 1 1 i i i";
12816 min_write_delay = 9000;
12817 max_write_delay = 9000;
12818 ;
12819
12820 memory "signature"
12821 size = 3;
12822 read = "0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0",
12823 "0 0 0 0 0 0 a1 a0 o o o o o o o o";
12824 ;
12825
12826 memory "calibration"
12827 size = 1;
12828
12829 read = "0 0 1 1 1 0 0 0 0 0 0 0 0 0 0 0",
12830 "0 0 0 0 0 0 0 0 o o o o o o o o";
12831 ;
12832 ;
12833
12834 #------------------------------------------------------------
12835 # ATmega3250
12836 #------------------------------------------------------------
12837
12838 part parent "m325"
12839 id = "m3250";
12840 desc = "ATmega3250";
12841 signature = 0x1E 0x95 0x06;
12842
12843 ocdrev = 3;
12844 ;
12845
12846 #------------------------------------------------------------
12847 # ATmega6450
12848 #------------------------------------------------------------
12849
12850 part parent "m645"
12851 id = "m6450";
12852 desc = "ATmega6450";
12853 signature = 0x1E 0x96 0x06;
12854
12855 ocdrev = 3;
12856 ;
12857
12858 #------------------------------------------------------------
12859 # AVR XMEGA family common values
12860 #------------------------------------------------------------
12861
12862 part
12863 id = ".xmega";
12864 desc = "AVR XMEGA family common values";
12865 has_pdi = yes;
12866 nvm_base = 0x01c0;
12867 mcu_base = 0x0090;
12868
12869 memory "signature"
12870 size = 3;
12871 offset = 0x1000090;
12872 ;
12873
12874 memory "prodsig"
12875 size = 0x32;
12876 offset = 0x8e0200;
12877 page_size = 0x32;
12878 readsize = 0x32;
12879 ;
12880
12881 memory "fuse1"
12882 size = 1;
12883 offset = 0x8f0021;
12884 ;
12885
12886 memory "fuse2"
12887 size = 1;
12888 offset = 0x8f0022;
12889 ;
12890
12891 memory "fuse4"
12892 size = 1;
12893 offset = 0x8f0024;
12894 ;
12895
12896 memory "fuse5"
12897 size = 1;
12898 offset = 0x8f0025;
12899 ;
12900
12901 memory "lock"
12902 size = 1;
12903 offset = 0x8f0027;
12904 ;
12905
12906 memory "data"
12907 # SRAM, only used to supply the offset
12908 offset = 0x1000000;
12909 ;
12910 ;
12911
12912 #------------------------------------------------------------
12913 # ATxmega16A4U
12914 #------------------------------------------------------------
12915
12916 part parent ".xmega"
12917 id = "x16a4u";
12918 desc = "ATxmega16A4U";
12919 signature = 0x1e 0x94 0x41;
12920
12921 memory "eeprom"
12922 size = 0x400;
12923 offset = 0x8c0000;
12924 page_size = 0x20;
12925 readsize = 0x100;
12926 ;
12927
12928 memory "application"
12929 size = 0x4000;
12930 offset = 0x800000;
12931 page_size = 0x100;
12932 readsize = 0x100;
12933 ;
12934
12935 memory "apptable"
12936 size = 0x1000;
12937 offset = 0x803000;
12938 page_size = 0x100;
12939 readsize = 0x100;
12940 ;
12941
12942 memory "boot"
12943 size = 0x1000;
12944 offset = 0x804000;
12945 page_size = 0x100;
12946 readsize = 0x100;
12947 ;
12948
12949 memory "flash"
12950 size = 0x5000;
12951 offset = 0x800000;
12952 page_size = 0x100;
12953 readsize = 0x100;
12954 ;
12955
12956 memory "usersig"
12957 size = 0x100;
12958 offset = 0x8e0400;
12959 page_size = 0x100;
12960 readsize = 0x100;
12961 ;
12962 ;
12963
12964 #------------------------------------------------------------
12965 # ATxmega16C4
12966 #------------------------------------------------------------
12967
12968 part parent "x16a4u"
12969 id = "x16c4";
12970 desc = "ATxmega16C4";
12971 signature = 0x1e 0x95 0x44;
12972 ;
12973
12974 #------------------------------------------------------------
12975 # ATxmega16D4
12976 #------------------------------------------------------------
12977
12978 part parent "x16a4u"
12979 id = "x16d4";
12980 desc = "ATxmega16D4";
12981 signature = 0x1e 0x94 0x42;
12982 ;
12983
12984 #------------------------------------------------------------
12985 # ATxmega16A4
12986 #------------------------------------------------------------
12987
12988 part parent "x16a4u"
12989 id = "x16a4";
12990 desc = "ATxmega16A4";
12991 signature = 0x1e 0x94 0x41;
12992 has_jtag = yes;
12993
12994 memory "fuse0"
12995 size = 1;
12996 offset = 0x8f0020;
12997 ;
12998 ;
12999
13000 #------------------------------------------------------------
13001 # ATxmega32A4U
13002 #------------------------------------------------------------
13003
13004 part parent ".xmega"
13005 id = "x32a4u";
13006 desc = "ATxmega32A4U";
13007 signature = 0x1e 0x95 0x41;
13008
13009 memory "eeprom"
13010 size = 0x400;
13011 offset = 0x8c0000;
13012 page_size = 0x20;
13013 readsize = 0x100;
13014 ;
13015
13016 memory "application"
13017 size = 0x8000;
13018 offset = 0x800000;
13019 page_size = 0x100;
13020 readsize = 0x100;
13021 ;
13022
13023 memory "apptable"
13024 size = 0x1000;
13025 offset = 0x807000;
13026 page_size = 0x100;
13027 readsize = 0x100;
13028 ;
13029
13030 memory "boot"
13031 size = 0x1000;
13032 offset = 0x808000;
13033 page_size = 0x100;
13034 readsize = 0x100;
13035 ;
13036
13037 memory "flash"
13038 size = 0x9000;
13039 offset = 0x800000;
13040 page_size = 0x100;
13041 readsize = 0x100;
13042 ;
13043
13044 memory "usersig"
13045 size = 0x100;
13046 offset = 0x8e0400;
13047 page_size = 0x100;
13048 readsize = 0x100;
13049 ;
13050 ;
13051
13052 #------------------------------------------------------------
13053 # ATxmega32C4
13054 #------------------------------------------------------------
13055
13056 part parent "x32a4u"
13057 id = "x32c4";
13058 desc = "ATxmega32C4";
13059 signature = 0x1e 0x94 0x43;
13060 ;
13061
13062 #------------------------------------------------------------
13063 # ATxmega32D4
13064 #------------------------------------------------------------
13065
13066 part parent "x32a4u"
13067 id = "x32d4";
13068 desc = "ATxmega32D4";
13069 signature = 0x1e 0x95 0x42;
13070 ;
13071
13072 #------------------------------------------------------------
13073 # ATxmega32A4
13074 #------------------------------------------------------------
13075
13076 part parent "x32a4u"
13077 id = "x32a4";
13078 desc = "ATxmega32A4";
13079 signature = 0x1e 0x95 0x41;
13080 has_jtag = yes;
13081
13082 memory "fuse0"
13083 size = 1;
13084 offset = 0x8f0020;
13085 ;
13086 ;
13087
13088 #------------------------------------------------------------
13089 # ATxmega64A4U
13090 #------------------------------------------------------------
13091
13092 part parent ".xmega"
13093 id = "x64a4u";
13094 desc = "ATxmega64A4U";
13095 signature = 0x1e 0x96 0x46;
13096
13097 memory "eeprom"
13098 size = 0x800;
13099 offset = 0x8c0000;
13100 page_size = 0x20;
13101 readsize = 0x100;
13102 ;
13103
13104 memory "application"
13105 size = 0x10000;
13106 offset = 0x800000;
13107 page_size = 0x100;
13108 readsize = 0x100;
13109 ;
13110
13111 memory "apptable"
13112 size = 0x1000;
13113 offset = 0x80f000;
13114 page_size = 0x100;
13115 readsize = 0x100;
13116 ;
13117
13118 memory "boot"
13119 size = 0x1000;
13120 offset = 0x810000;
13121 page_size = 0x100;
13122 readsize = 0x100;
13123 ;
13124
13125 memory "flash"
13126 size = 0x11000;
13127 offset = 0x800000;
13128 page_size = 0x100;
13129 readsize = 0x100;
13130 ;
13131
13132 memory "usersig"
13133 size = 0x100;
13134 offset = 0x8e0400;
13135 page_size = 0x100;
13136 readsize = 0x100;
13137 ;
13138 ;
13139
13140 #------------------------------------------------------------
13141 # ATxmega64C3
13142 #------------------------------------------------------------
13143
13144 part parent "x64a4u"
13145 id = "x64c3";
13146 desc = "ATxmega64C3";
13147 signature = 0x1e 0x96 0x49;
13148 ;
13149
13150 #------------------------------------------------------------
13151 # ATxmega64D3
13152 #------------------------------------------------------------
13153
13154 part parent "x64a4u"
13155 id = "x64d3";
13156 desc = "ATxmega64D3";
13157 signature = 0x1e 0x96 0x4a;
13158 ;
13159
13160 #------------------------------------------------------------
13161 # ATxmega64D4
13162 #------------------------------------------------------------
13163
13164 part parent "x64a4u"
13165 id = "x64d4";
13166 desc = "ATxmega64D4";
13167 signature = 0x1e 0x96 0x47;
13168 ;
13169
13170 #------------------------------------------------------------
13171 # ATxmega64A1
13172 #------------------------------------------------------------
13173
13174 part parent "x64a4u"
13175 id = "x64a1";
13176 desc = "ATxmega64A1";
13177 signature = 0x1e 0x96 0x4e;
13178 has_jtag = yes;
13179
13180 memory "fuse0"
13181 size = 1;
13182 offset = 0x8f0020;
13183 ;
13184 ;
13185
13186 #------------------------------------------------------------
13187 # ATxmega64A1U
13188 #------------------------------------------------------------
13189
13190 part parent "x64a1"
13191 id = "x64a1u";
13192 desc = "ATxmega64A1U";
13193 signature = 0x1e 0x96 0x4e;
13194 ;
13195
13196 #------------------------------------------------------------
13197 # ATxmega64A3
13198 #------------------------------------------------------------
13199
13200 part parent "x64a1"
13201 id = "x64a3";
13202 desc = "ATxmega64A3";
13203 signature = 0x1e 0x96 0x42;
13204 ;
13205
13206 #------------------------------------------------------------
13207 # ATxmega64A3U
13208 #------------------------------------------------------------
13209
13210 part parent "x64a1"
13211 id = "x64a3u";
13212 desc = "ATxmega64A3U";
13213 signature = 0x1e 0x96 0x42;
13214 ;
13215
13216 #------------------------------------------------------------
13217 # ATxmega64A4
13218 #------------------------------------------------------------
13219
13220 part parent "x64a1"
13221 id = "x64a4";
13222 desc = "ATxmega64A4";
13223 signature = 0x1e 0x96 0x46;
13224 ;
13225
13226 #------------------------------------------------------------
13227 # ATxmega64B1
13228 #------------------------------------------------------------
13229
13230 part parent "x64a1"
13231 id = "x64b1";
13232 desc = "ATxmega64B1";
13233 signature = 0x1e 0x96 0x52;
13234 ;
13235
13236 #------------------------------------------------------------
13237 # ATxmega64B3
13238 #------------------------------------------------------------
13239
13240 part parent "x64a1"
13241 id = "x64b3";
13242 desc = "ATxmega64B3";
13243 signature = 0x1e 0x96 0x51;
13244 ;
13245
13246 #------------------------------------------------------------
13247 # ATxmega128C3
13248 #------------------------------------------------------------
13249
13250 part parent ".xmega"
13251 id = "x128c3";
13252 desc = "ATxmega128C3";
13253 signature = 0x1e 0x97 0x52;
13254
13255 memory "eeprom"
13256 size = 0x800;
13257 offset = 0x8c0000;
13258 page_size = 0x20;
13259 readsize = 0x100;
13260 ;
13261
13262 memory "application"
13263 size = 0x20000;
13264 offset = 0x800000;
13265 page_size = 0x200;
13266 readsize = 0x100;
13267 ;
13268
13269 memory "apptable"
13270 size = 0x2000;
13271 offset = 0x81e000;
13272 page_size = 0x200;
13273 readsize = 0x100;
13274 ;
13275
13276 memory "boot"
13277 size = 0x2000;
13278 offset = 0x820000;
13279 page_size = 0x200;
13280 readsize = 0x100;
13281 ;
13282
13283 memory "flash"
13284 size = 0x22000;
13285 offset = 0x800000;
13286 page_size = 0x200;
13287 readsize = 0x100;
13288 ;
13289
13290 memory "usersig"
13291 size = 0x200;
13292 offset = 0x8e0400;
13293 page_size = 0x200;
13294 readsize = 0x100;
13295 ;
13296 ;
13297
13298 #------------------------------------------------------------
13299 # ATxmega128D3
13300 #------------------------------------------------------------
13301
13302 part parent "x128c3"
13303 id = "x128d3";
13304 desc = "ATxmega128D3";
13305 signature = 0x1e 0x97 0x48;
13306 ;
13307
13308 #------------------------------------------------------------
13309 # ATxmega128D4
13310 #------------------------------------------------------------
13311
13312 part parent "x128c3"
13313 id = "x128d4";
13314 desc = "ATxmega128D4";
13315 signature = 0x1e 0x97 0x47;
13316 ;
13317
13318 #------------------------------------------------------------
13319 # ATxmega128A1
13320 #------------------------------------------------------------
13321
13322 part parent "x128c3"
13323 id = "x128a1";
13324 desc = "ATxmega128A1";
13325 signature = 0x1e 0x97 0x4c;
13326 has_jtag = yes;
13327
13328 memory "fuse0"
13329 size = 1;
13330 offset = 0x8f0020;
13331 ;
13332 ;
13333
13334 #------------------------------------------------------------
13335 # ATxmega128A1 revision D
13336 #------------------------------------------------------------
13337
13338 part parent "x128a1"
13339 id = "x128a1d";
13340 desc = "ATxmega128A1revD";
13341 signature = 0x1e 0x97 0x41;
13342 ;
13343
13344 #------------------------------------------------------------
13345 # ATxmega128A1U
13346 #------------------------------------------------------------
13347
13348 part parent "x128a1"
13349 id = "x128a1u";
13350 desc = "ATxmega128A1U";
13351 signature = 0x1e 0x97 0x4c;
13352 ;
13353
13354 #------------------------------------------------------------
13355 # ATxmega128A3
13356 #------------------------------------------------------------
13357
13358 part parent "x128a1"
13359 id = "x128a3";
13360 desc = "ATxmega128A3";
13361 signature = 0x1e 0x97 0x42;
13362 ;
13363
13364 #------------------------------------------------------------
13365 # ATxmega128A3U
13366 #------------------------------------------------------------
13367
13368 part parent "x128a1"
13369 id = "x128a3u";
13370 desc = "ATxmega128A3U";
13371 signature = 0x1e 0x97 0x42;
13372 ;
13373
13374 #------------------------------------------------------------
13375 # ATxmega128A4
13376 #------------------------------------------------------------
13377
13378 part parent ".xmega"
13379 id = "x128a4";
13380 desc = "ATxmega128A4";
13381 signature = 0x1e 0x97 0x46;
13382 has_jtag = yes;
13383
13384 memory "eeprom"
13385 size = 0x800;
13386 offset = 0x8c0000;
13387 page_size = 0x20;
13388 readsize = 0x100;
13389 ;
13390
13391 memory "application"
13392 size = 0x20000;
13393 offset = 0x800000;
13394 page_size = 0x200;
13395 readsize = 0x100;
13396 ;
13397
13398 memory "apptable"
13399 size = 0x1000;
13400 offset = 0x81f000;
13401 page_size = 0x200;
13402 readsize = 0x100;
13403 ;
13404
13405 memory "boot"
13406 size = 0x2000;
13407 offset = 0x820000;
13408 page_size = 0x200;
13409 readsize = 0x100;
13410 ;
13411
13412 memory "flash"
13413 size = 0x22000;
13414 offset = 0x800000;
13415 page_size = 0x200;
13416 readsize = 0x100;
13417 ;
13418
13419 memory "usersig"
13420 size = 0x200;
13421 offset = 0x8e0400;
13422 page_size = 0x200;
13423 readsize = 0x100;
13424 ;
13425
13426 memory "fuse0"
13427 size = 1;
13428 offset = 0x8f0020;
13429 ;
13430 ;
13431
13432 #------------------------------------------------------------
13433 # ATxmega128A4U
13434 #------------------------------------------------------------
13435
13436 part parent ".xmega"
13437 id = "x128a4u";
13438 desc = "ATxmega128A4U";
13439 signature = 0x1e 0x97 0x46;
13440
13441 memory "eeprom"
13442 size = 0x800;
13443 offset = 0x8c0000;
13444 page_size = 0x20;
13445 readsize = 0x100;
13446 ;
13447
13448 memory "application"
13449 size = 0x20000;
13450 offset = 0x800000;
13451 page_size = 0x100;
13452 readsize = 0x100;
13453 ;
13454
13455 memory "apptable"
13456 size = 0x1000;
13457 offset = 0x81f000;
13458 page_size = 0x100;
13459 readsize = 0x100;
13460 ;
13461
13462 memory "boot"
13463 size = 0x2000;
13464 offset = 0x820000;
13465 page_size = 0x100;
13466 readsize = 0x100;
13467 ;
13468
13469 memory "flash"
13470 size = 0x22000;
13471 offset = 0x800000;
13472 page_size = 0x100;
13473 readsize = 0x100;
13474 ;
13475
13476 memory "usersig"
13477 size = 0x100;
13478 offset = 0x8e0400;
13479 page_size = 0x100;
13480 readsize = 0x100;
13481 ;
13482 ;
13483
13484 #------------------------------------------------------------
13485 # ATxmega128B1
13486 #------------------------------------------------------------
13487
13488 part parent ".xmega"
13489 id = "x128b1";
13490 desc = "ATxmega128B1";
13491 signature = 0x1e 0x97 0x4d;
13492 has_jtag = yes;
13493
13494 memory "eeprom"
13495 size = 0x800;
13496 offset = 0x8c0000;
13497 page_size = 0x20;
13498 readsize = 0x100;
13499 ;
13500
13501 memory "application"
13502 size = 0x20000;
13503 offset = 0x800000;
13504 page_size = 0x100;
13505 readsize = 0x100;
13506 ;
13507
13508 memory "apptable"
13509 size = 0x2000;
13510 offset = 0x81e000;
13511 page_size = 0x100;
13512 readsize = 0x100;
13513 ;
13514
13515 memory "boot"
13516 size = 0x2000;
13517 offset = 0x820000;
13518 page_size = 0x100;
13519 readsize = 0x100;
13520 ;
13521
13522 memory "flash"
13523 size = 0x22000;
13524 offset = 0x800000;
13525 page_size = 0x100;
13526 readsize = 0x100;
13527 ;
13528
13529 memory "usersig"
13530 size = 0x100;
13531 offset = 0x8e0400;
13532 page_size = 0x100;
13533 readsize = 0x100;
13534 ;
13535
13536 memory "fuse0"
13537 size = 1;
13538 offset = 0x8f0020;
13539 ;
13540 ;
13541
13542 #------------------------------------------------------------
13543 # ATxmega128B3
13544 #------------------------------------------------------------
13545
13546 part parent "x128b1"
13547 id = "x128b3";
13548 desc = "ATxmega128B3";
13549 signature = 0x1e 0x97 0x4b;
13550 ;
13551
13552 #------------------------------------------------------------
13553 # ATxmega192C3
13554 #------------------------------------------------------------
13555
13556 part parent ".xmega"
13557 id = "x192c3";
13558 desc = "ATxmega192C3";
13559 signature = 0x1e 0x97 0x51;
13560
13561 memory "eeprom"
13562 size = 0x800;
13563 offset = 0x8c0000;
13564 page_size = 0x20;
13565 readsize = 0x100;
13566 ;
13567
13568 memory "application"
13569 size = 0x30000;
13570 offset = 0x800000;
13571 page_size = 0x200;
13572 readsize = 0x100;
13573 ;
13574
13575 memory "apptable"
13576 size = 0x2000;
13577 offset = 0x82e000;
13578 page_size = 0x200;
13579 readsize = 0x100;
13580 ;
13581
13582 memory "boot"
13583 size = 0x2000;
13584 offset = 0x830000;
13585 page_size = 0x200;
13586 readsize = 0x100;
13587 ;
13588
13589 memory "flash"
13590 size = 0x32000;
13591 offset = 0x800000;
13592 page_size = 0x200;
13593 readsize = 0x100;
13594 ;
13595
13596 memory "usersig"
13597 size = 0x200;
13598 offset = 0x8e0400;
13599 page_size = 0x200;
13600 readsize = 0x100;
13601 ;
13602 ;
13603
13604 #------------------------------------------------------------
13605 # ATxmega192D3
13606 #------------------------------------------------------------
13607
13608 part parent "x192c3"
13609 id = "x192d3";
13610 desc = "ATxmega192D3";
13611 signature = 0x1e 0x97 0x49;
13612 ;
13613
13614 #------------------------------------------------------------
13615 # ATxmega192A1
13616 #------------------------------------------------------------
13617
13618 part parent "x192c3"
13619 id = "x192a1";
13620 desc = "ATxmega192A1";
13621 signature = 0x1e 0x97 0x4e;
13622 has_jtag = yes;
13623
13624 memory "fuse0"
13625 size = 1;
13626 offset = 0x8f0020;
13627 ;
13628 ;
13629
13630 #------------------------------------------------------------
13631 # ATxmega192A3
13632 #------------------------------------------------------------
13633
13634 part parent "x192a1"
13635 id = "x192a3";
13636 desc = "ATxmega192A3";
13637 signature = 0x1e 0x97 0x44;
13638 ;
13639
13640 #------------------------------------------------------------
13641 # ATxmega192A3U
13642 #------------------------------------------------------------
13643
13644 part parent "x192a1"
13645 id = "x192a3u";
13646 desc = "ATxmega192A3U";
13647 signature = 0x1e 0x97 0x44;
13648 ;
13649
13650 #------------------------------------------------------------
13651 # ATxmega256C3
13652 #------------------------------------------------------------
13653
13654 part parent ".xmega"
13655 id = "x256c3";
13656 desc = "ATxmega256C3";
13657 signature = 0x1e 0x98 0x46;
13658
13659 memory "eeprom"
13660 size = 0x1000;
13661 offset = 0x8c0000;
13662 page_size = 0x20;
13663 readsize = 0x100;
13664 ;
13665
13666 memory "application"
13667 size = 0x40000;
13668 offset = 0x800000;
13669 page_size = 0x200;
13670 readsize = 0x100;
13671 ;
13672
13673 memory "apptable"
13674 size = 0x2000;
13675 offset = 0x83e000;
13676 page_size = 0x200;
13677 readsize = 0x100;
13678 ;
13679
13680 memory "boot"
13681 size = 0x2000;
13682 offset = 0x840000;
13683 page_size = 0x200;
13684 readsize = 0x100;
13685 ;
13686
13687 memory "flash"
13688 size = 0x42000;
13689 offset = 0x800000;
13690 page_size = 0x200;
13691 readsize = 0x100;
13692 ;
13693
13694 memory "usersig"
13695 size = 0x200;
13696 offset = 0x8e0400;
13697 page_size = 0x200;
13698 readsize = 0x100;
13699 ;
13700 ;
13701
13702 #------------------------------------------------------------
13703 # ATxmega256D3
13704 #------------------------------------------------------------
13705
13706 part parent "x256c3"
13707 id = "x256d3";
13708 desc = "ATxmega256D3";
13709 signature = 0x1e 0x98 0x44;
13710 ;
13711
13712 #------------------------------------------------------------
13713 # ATxmega256A1
13714 #------------------------------------------------------------
13715
13716 part parent "x256c3"
13717 id = "x256a1";
13718 desc = "ATxmega256A1";
13719 signature = 0x1e 0x98 0x46;
13720 has_jtag = yes;
13721
13722 memory "fuse0"
13723 size = 1;
13724 offset = 0x8f0020;
13725 ;
13726 ;
13727
13728 #------------------------------------------------------------
13729 # ATxmega256A3
13730 #------------------------------------------------------------
13731
13732 part parent "x256a1"
13733 id = "x256a3";
13734 desc = "ATxmega256A3";
13735 signature = 0x1e 0x98 0x42;
13736 ;
13737
13738 #------------------------------------------------------------
13739 # ATxmega256A3U
13740 #------------------------------------------------------------
13741
13742 part parent "x256a1"
13743 id = "x256a3u";
13744 desc = "ATxmega256A3U";
13745 signature = 0x1e 0x98 0x42;
13746 ;
13747
13748 #------------------------------------------------------------
13749 # ATxmega256A3B
13750 #------------------------------------------------------------
13751
13752 part parent "x256a1"
13753 id = "x256a3b";
13754 desc = "ATxmega256A3B";
13755 signature = 0x1e 0x98 0x43;
13756 ;
13757
13758 #------------------------------------------------------------
13759 # ATxmega256A3BU
13760 #------------------------------------------------------------
13761
13762 part parent "x256a1"
13763 id = "x256a3bu";
13764 desc = "ATxmega256A3BU";
13765 signature = 0x1e 0x98 0x43;
13766 ;
13767
13768 #------------------------------------------------------------
13769 # ATxmega384C3
13770 #------------------------------------------------------------
13771
13772 part parent ".xmega"
13773 id = "x384c3";
13774 desc = "ATxmega384C3";
13775 signature = 0x1e 0x98 0x45;
13776
13777 memory "eeprom"
13778 size = 0x1000;
13779 offset = 0x8c0000;
13780 page_size = 0x20;
13781 readsize = 0x100;
13782 ;
13783
13784 memory "application"
13785 size = 0x60000;
13786 offset = 0x800000;
13787 page_size = 0x200;
13788 readsize = 0x100;
13789 ;
13790
13791 memory "apptable"
13792 size = 0x2000;
13793 offset = 0x85e000;
13794 page_size = 0x200;
13795 readsize = 0x100;
13796 ;
13797
13798 memory "boot"
13799 size = 0x2000;
13800 offset = 0x860000;
13801 page_size = 0x200;
13802 readsize = 0x100;
13803 ;
13804
13805 memory "flash"
13806 size = 0x62000;
13807 offset = 0x800000;
13808 page_size = 0x200;
13809 readsize = 0x100;
13810 ;
13811
13812 memory "usersig"
13813 size = 0x200;
13814 offset = 0x8e0400;
13815 page_size = 0x200;
13816 readsize = 0x100;
13817 ;
13818 ;
13819
13820 #------------------------------------------------------------
13821 # ATxmega384D3
13822 #------------------------------------------------------------
13823
13824 part parent "x384c3"
13825 id = "x384d3";
13826 desc = "ATxmega384D3";
13827 signature = 0x1e 0x98 0x47;
13828 ;
13829
13830 #------------------------------------------------------------
13831 # ATxmega8E5
13832 #------------------------------------------------------------
13833
13834 part parent ".xmega"
13835 id = "x8e5";
13836 desc = "ATxmega8E5";
13837 signature = 0x1e 0x93 0x41;
13838
13839 memory "eeprom"
13840 size = 0x0200;
13841 offset = 0x08c0000;
13842 page_size = 0x20;
13843 readsize = 0x100;
13844 ;
13845
13846 memory "application"
13847 size = 0x2000;
13848 offset = 0x0800000;
13849 page_size = 0x80;
13850 readsize = 0x100;
13851 ;
13852
13853 memory "apptable"
13854 size = 0x800;
13855 offset = 0x00801800;
13856 page_size = 0x80;
13857 readsize = 0x100;
13858 ;
13859
13860 memory "boot"
13861 size = 0x800;
13862 offset = 0x00804000;
13863 page_size = 0x80;
13864 readsize = 0x100;
13865 ;
13866
13867 memory "flash"
13868 size = 0x2800;
13869 offset = 0x0800000;
13870 page_size = 0x80;
13871 readsize = 0x100;
13872 ;
13873
13874 memory "usersig"
13875 size = 0x80;
13876 offset = 0x8e0400;
13877 page_size = 0x80;
13878 readsize = 0x100;
13879 ;
13880 ;
13881
13882 #------------------------------------------------------------
13883 # ATxmega16E5
13884 #------------------------------------------------------------
13885
13886 part parent ".xmega"
13887 id = "x16e5";
13888 desc = "ATxmega16E5";
13889 signature = 0x1e 0x94 0x45;
13890
13891 memory "eeprom"
13892 size = 0x0200;
13893 offset = 0x08c0000;
13894 page_size = 0x20;
13895 readsize = 0x100;
13896 ;
13897
13898 memory "application"
13899 size = 0x4000;
13900 offset = 0x0800000;
13901 page_size = 0x80;
13902 readsize = 0x100;
13903 ;
13904
13905 memory "apptable"
13906 size = 0x1000;
13907 offset = 0x00803000;
13908 page_size = 0x80;
13909 readsize = 0x100;
13910 ;
13911
13912 memory "boot"
13913 size = 0x1000;
13914 offset = 0x00804000;
13915 page_size = 0x80;
13916 readsize = 0x100;
13917 ;
13918
13919 memory "flash"
13920 size = 0x5000;
13921 offset = 0x0800000;
13922 page_size = 0x80;
13923 readsize = 0x100;
13924 ;
13925
13926 memory "usersig"
13927 size = 0x80;
13928 offset = 0x8e0400;
13929 page_size = 0x80;
13930 readsize = 0x100;
13931 ;
13932 ;
13933
13934 #------------------------------------------------------------
13935 # ATxmega32E5
13936 #------------------------------------------------------------
13937
13938 part parent ".xmega"
13939 id = "x32e5";
13940 desc = "ATxmega32E5";
13941 signature = 0x1e 0x95 0x4c;
13942
13943 memory "eeprom"
13944 size = 0x0400;
13945 offset = 0x08c0000;
13946 page_size = 0x20;
13947 readsize = 0x100;
13948 ;
13949
13950 memory "application"
13951 size = 0x8000;
13952 offset = 0x0800000;
13953 page_size = 0x80;
13954 readsize = 0x100;
13955 ;
13956
13957 memory "apptable"
13958 size = 0x1000;
13959 offset = 0x00807000;
13960 page_size = 0x80;
13961 readsize = 0x100;
13962 ;
13963
13964 memory "boot"
13965 size = 0x1000;
13966 offset = 0x00804000;
13967 page_size = 0x80;
13968 readsize = 0x100;
13969 ;
13970
13971 memory "flash"
13972 size = 0x9000;
13973 offset = 0x0800000;
13974 page_size = 0x80;
13975 readsize = 0x100;
13976 ;
13977
13978 memory "usersig"
13979 size = 0x80;
13980 offset = 0x8e0400;
13981 page_size = 0x80;
13982 readsize = 0x100;
13983 ;
13984 ;
13985
13986 #------------------------------------------------------------
13987 # AVR32UC3A0512
13988 #------------------------------------------------------------
13989
13990 part
13991 id = "uc3a0512";
13992 desc = "AT32UC3A0512";
13993 signature = 0xED 0xC0 0x3F;
13994 has_jtag = yes;
13995 is_avr32 = yes;
13996
13997 memory "flash"
13998 paged = yes;
13999 page_size = 512; # bytes
14000 readsize = 512; # bytes
14001 num_pages = 1024; # could be set dynamicly
14002 size = 0x00080000; # could be set dynamicly
14003 offset = 0x80000000;
14004 ;
14005 ;
14006
14007 part parent "uc3a0512"
14008 id = "ucr2";
14009 desc = "deprecated, use 'uc3a0512'";
14010 ;
14011
14012 #------------------------------------------------------------
14013 # ATtiny1634.
14014 #------------------------------------------------------------
14015
14016 part
14017 id = "t1634";
14018 desc = "ATtiny1634";
14019 has_debugwire = yes;
14020 flash_instr = 0xB6, 0x01, 0x11;
14021 eeprom_instr = 0xBD, 0xF2, 0xBD, 0xE1, 0xBB, 0xCF, 0xB4, 0x00,
14022 0xBE, 0x01, 0xB6, 0x01, 0xBC, 0x00, 0xBB, 0xBF,
14023 0x99, 0xF9, 0xBB, 0xAF;
14024 stk500_devcode = 0x86;
14025 # avr910_devcode = 0x;
14026 signature = 0x1e 0x94 0x12;
14027 pagel = 0xB3;
14028 bs2 = 0xB1;
14029 reset = io;
14030 chip_erase_delay = 9000;
14031 pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
14032 "x x x x x x x x x x x x x x x x";
14033
14034 chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
14035 "x x x x x x x x x x x x x x x x";
14036
14037 timeout = 200;
14038 stabdelay = 100;
14039 cmdexedelay = 25;
14040 synchloops = 32;
14041 bytedelay = 0;
14042 pollindex = 3;
14043 pollvalue = 0x53;
14044 predelay = 1;
14045 postdelay = 1;
14046 pollmethod = 1;
14047
14048 pp_controlstack =
14049 0x0E, 0x1E, 0x0E, 0x1E, 0x2E, 0x3E, 0x2E, 0x3E,
14050 0x4E, 0x5E, 0x4E, 0x5E, 0x6E, 0x7E, 0x6E, 0x7E,
14051 0x26, 0x36, 0x66, 0x76, 0x2A, 0x3A, 0x6A, 0x7A,
14052 0x2E, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
14053 hventerstabdelay = 100;
14054 progmodedelay = 0;
14055 latchcycles = 0;
14056 togglevtg = 1;
14057 poweroffdelay = 15;
14058 resetdelayms = 1;
14059 resetdelayus = 0;
14060 hvleavestabdelay = 15;
14061 resetdelay = 15;
14062 chiperasepulsewidth = 0;
14063 chiperasepolltimeout = 10;
14064 programfusepulsewidth = 0;
14065 programfusepolltimeout = 5;
14066 programlockpulsewidth = 0;
14067 programlockpolltimeout = 5;
14068
14069 memory "eeprom"
14070 paged = no;
14071 page_size = 4;
14072 size = 256;
14073 min_write_delay = 3600;
14074 max_write_delay = 3600;
14075 readback_p1 = 0xff;
14076 readback_p2 = 0xff;
14077 read = " 1 0 1 0 0 0 0 0",
14078 " 0 0 0 x x x x a8",
14079 " a7 a6 a5 a4 a3 a2 a1 a0",
14080 " o o o o o o o o";
14081
14082 write = " 1 1 0 0 0 0 0 0",
14083 " 0 0 0 x x x x a8",
14084 " a7 a6 a5 a4 a3 a2 a1 a0",
14085 " i i i i i i i i";
14086
14087 loadpage_lo = " 1 1 0 0 0 0 0 1",
14088 " 0 0 0 0 0 0 0 0",
14089 " 0 0 0 0 0 0 a1 a0",
14090 " i i i i i i i i";
14091
14092 writepage = " 1 1 0 0 0 0 1 0",
14093 " 0 0 x x x x x a8",
14094 " a7 a6 a5 a4 a3 a2 0 0",
14095 " x x x x x x x x";
14096
14097 mode = 0x41;
14098 delay = 5;
14099 blocksize = 4;
14100 readsize = 256;
14101 ;
14102
14103 memory "flash"
14104 paged = yes;
14105 size = 16384;
14106 page_size = 32;
14107 num_pages = 512;
14108 min_write_delay = 4500;
14109 max_write_delay = 4500;
14110 readback_p1 = 0xff;
14111 readback_p2 = 0xff;
14112 read_lo = " 0 0 1 0 0 0 0 0",
14113 " 0 0 0 a12 a11 a10 a9 a8",
14114 " a7 a6 a5 a4 a3 a2 a1 a0",
14115 " o o o o o o o o";
14116
14117 read_hi = " 0 0 1 0 1 0 0 0",
14118 " 0 0 0 a12 a11 a10 a9 a8",
14119 " a7 a6 a5 a4 a3 a2 a1 a0",
14120 " o o o o o o o o";
14121
14122 loadpage_lo = " 0 1 0 0 0 0 0 0",
14123 " 0 0 0 x x x x x",
14124 " x x a5 a4 a3 a2 a1 a0",
14125 " i i i i i i i i";
14126
14127 loadpage_hi = " 0 1 0 0 1 0 0 0",
14128 " 0 0 0 x x x x x",
14129 " x x a5 a4 a3 a2 a1 a0",
14130 " i i i i i i i i";
14131
14132 writepage = " 0 1 0 0 1 1 0 0",
14133 " 0 0 0 a12 a11 a10 a9 a8",
14134 " a7 a6 x x x x x x",
14135 " x x x x x x x x";
14136
14137 mode = 0x41;
14138 delay = 6;
14139 blocksize = 128;
14140 readsize = 256;
14141
14142 ;
14143
14144 memory "lfuse"
14145 size = 1;
14146 min_write_delay = 4500;
14147 max_write_delay = 4500;
14148 read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
14149 "x x x x x x x x o o o o o o o o";
14150
14151 write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
14152 "x x x x x x x x i i i i i i i i";
14153 ;
14154
14155 memory "hfuse"
14156 size = 1;
14157 min_write_delay = 4500;
14158 max_write_delay = 4500;
14159 read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
14160 "x x x x x x x x o o o o o o o o";
14161
14162 write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
14163 "x x x x x x x x i i i i i i i i";
14164 ;
14165
14166 memory "efuse"
14167 size = 1;
14168 min_write_delay = 4500;
14169 max_write_delay = 4500;
14170 read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
14171 "x x x x x x x x x x x o o o o o";
14172
14173 write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
14174 "x x x x x x x x x x x i i i i i";
14175 ;
14176
14177 memory "lock"
14178 size = 1;
14179 min_write_delay = 4500;
14180 max_write_delay = 4500;
14181 read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
14182 "x x x x x x x x x x x x x x o o";
14183
14184 write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
14185 "x x x x x x x x 1 1 1 1 1 1 i i";
14186 ;
14187
14188 memory "calibration"
14189 size = 1;
14190 read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
14191 "0 0 0 0 0 0 0 0 o o o o o o o o";
14192 ;
14193
14194 memory "signature"
14195 size = 3;
14196 read = "0 0 1 1 0 0 0 0 0 0 0 x x x x x",
14197 "x x x x x x a1 a0 o o o o o o o o";
14198 ;
14199 ;
14200
14201 #------------------------------------------------------------
14202 # Common values for reduced core tinys (4/5/9/10/20/40)
14203 #------------------------------------------------------------
14204
14205 part
14206 id = ".reduced_core_tiny";
14207 desc = "Common values for reduced core tinys";
14208 has_tpi = yes;
14209
14210 memory "signature"
14211 size = 3;
14212 offset = 0x3fc0;
14213 page_size = 16;
14214 ;
14215
14216 memory "fuse"
14217 size = 1;
14218 offset = 0x3f40;
14219 page_size = 16;
14220 blocksize = 4;
14221 ;
14222
14223 memory "calibration"
14224 size = 1;
14225 offset = 0x3f80;
14226 page_size = 16;
14227 ;
14228
14229 memory "lockbits"
14230 size = 1;
14231 offset = 0x3f00;
14232 page_size = 16;
14233 ;
14234 ;
14235
14236 #------------------------------------------------------------
14237 # ATtiny4
14238 #------------------------------------------------------------
14239
14240 part parent ".reduced_core_tiny"
14241 id = "t4";
14242 desc = "ATtiny4";
14243 signature = 0x1e 0x8f 0x0a;
14244
14245 memory "flash"
14246 size = 512;
14247 offset = 0x4000;
14248 page_size = 16;
14249 blocksize = 128;
14250 ;
14251 ;
14252
14253 #------------------------------------------------------------
14254 # ATtiny5
14255 #------------------------------------------------------------
14256
14257 part parent "t4"
14258 id = "t5";
14259 desc = "ATtiny5";
14260 signature = 0x1e 0x8f 0x09;
14261 ;
14262
14263 #------------------------------------------------------------
14264 # ATtiny9
14265 #------------------------------------------------------------
14266
14267 part parent ".reduced_core_tiny"
14268 id = "t9";
14269 desc = "ATtiny9";
14270 signature = 0x1e 0x90 0x08;
14271
14272 memory "flash"
14273 size = 1024;
14274 offset = 0x4000;
14275 page_size = 16;
14276 blocksize = 128;
14277 ;
14278 ;
14279
14280 #------------------------------------------------------------
14281 # ATtiny10
14282 #------------------------------------------------------------
14283
14284 part parent "t9"
14285 id = "t10";
14286 desc = "ATtiny10";
14287 signature = 0x1e 0x90 0x03;
14288 ;
14289
14290 #------------------------------------------------------------
14291 # ATtiny20
14292 #------------------------------------------------------------
14293
14294 part parent ".reduced_core_tiny"
14295 id = "t20";
14296 desc = "ATtiny20";
14297 signature = 0x1e 0x91 0x0F;
14298
14299 memory "flash"
14300 size = 2048;
14301 offset = 0x4000;
14302 page_size = 16;
14303 blocksize = 128;
14304 ;
14305 ;
14306
14307 #------------------------------------------------------------
14308 # ATtiny40
14309 #------------------------------------------------------------
14310
14311 part parent ".reduced_core_tiny"
14312 id = "t40";
14313 desc = "ATtiny40";
14314 signature = 0x1e 0x92 0x0E;
14315
14316 memory "flash"
14317 size = 4096;
14318 offset = 0x4000;
14319 page_size = 64;
14320 blocksize = 128;
14321 ;
14322 ;
14323
14324 #------------------------------------------------------------
14325 # ATmega406
14326 #------------------------------------------------------------
14327
14328 part
14329 id = "m406";
14330 desc = "ATMEGA406";
14331 has_jtag = yes;
14332 signature = 0x1e 0x95 0x07;
14333
14334 # STK500 parameters (parallel programming IO lines)
14335 pagel = 0xa7;
14336 bs2 = 0xa0;
14337 serial = no;
14338 parallel = yes;
14339
14340 # STK500v2 HV programming parameters, from XML
14341 pp_controlstack = 0x0e, 0x1e, 0x0f, 0x1f, 0x2e, 0x3e, 0x2f, 0x3f,
14342 0x4e, 0x5e, 0x4f, 0x5f, 0x6e, 0x7e, 0x6f, 0x7f,
14343 0x66, 0x76, 0x67, 0x77, 0x6a, 0x7a, 0x6b, 0x7b,
14344 0xbe, 0xfd, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
14345
14346 # JTAG ICE mkII parameters, also from XML files
14347 allowfullpagebitstream = no;
14348 enablepageprogramming = yes;
14349 idr = 0x51;
14350 rampz = 0x00;
14351 spmcr = 0x57;
14352 eecr = 0x3f;
14353
14354 memory "eeprom"
14355 paged = no;
14356 size = 512;
14357 page_size = 4;
14358 blocksize = 4;
14359 readsize = 4;
14360 num_pages = 128;
14361 ;
14362
14363 memory "flash"
14364 paged = yes;
14365 size = 40960;
14366 page_size = 128;
14367 blocksize = 128;
14368 readsize = 128;
14369 num_pages = 320;
14370 ;
14371
14372 memory "hfuse"
14373 size = 1;
14374 ;
14375
14376 memory "lfuse"
14377 size = 1;
14378 ;
14379
14380 memory "lockbits"
14381 size = 1;
14382 ;
14383
14384 memory "signature"
14385 size = 3;
14386 ;
14387 ;
14388
14389