<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <!-- Created on March 13, 2022 by texi2html 5.0 texi2html was written by: Lionel Cons <Lionel.Cons@cern.ch> (original author) Karl Berry <karl@freefriends.org> Olaf Bachmann <obachman@mathematik.uni-kl.de> and many others. Maintained by: Many creative people. Send bugs and suggestions to <texi2html-bug@nongnu.org> --> <head> <title>AVRDUDE: 4.3 Part Definitions</title> <meta name="description" content="AVRDUDE: 4.3 Part Definitions"> <meta name="keywords" content="AVRDUDE: 4.3 Part Definitions"> <meta name="resource-type" content="document"> <meta name="distribution" content="global"> <meta name="Generator" content="texi2html 5.0"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <style type="text/css"> <!-- a.summary-letter {text-decoration: none} blockquote.smallquotation {font-size: smaller} div.display {margin-left: 3.2em} div.example {margin-left: 3.2em} div.lisp {margin-left: 3.2em} div.smalldisplay {margin-left: 3.2em} div.smallexample {margin-left: 3.2em} div.smalllisp {margin-left: 3.2em} pre.display {font-family: serif} pre.format {font-family: serif} pre.menu-comment {font-family: serif} pre.menu-preformatted {font-family: serif} pre.smalldisplay {font-family: serif; font-size: smaller} pre.smallexample {font-size: smaller} pre.smallformat {font-family: serif; font-size: smaller} pre.smalllisp {font-size: smaller} span.nocodebreak {white-space:pre} span.nolinebreak {white-space:pre} span.roman {font-family:serif; font-weight:normal} span.sansserif {font-family:sans-serif; font-weight:normal} ul.no-bullet {list-style: none} --> </style> </head> <body lang="en" bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#800080" alink="#FF0000"> <a name="Part-Definitions"></a> <table class="header" cellpadding="1" cellspacing="1" border="0"> <tr><td valign="middle" align="left">[<a href="avrdude_9.html#Configuration-File" title="Beginning of this chapter or previous chapter"> << </a>]</td> <td valign="middle" align="left">[<a href="avrdude_11.html#Programmer-Definitions" title="Previous section in reading order"> < </a>]</td> <td valign="middle" align="left">[<a href="avrdude_9.html#Configuration-File" title="Up section"> Up </a>]</td> <td valign="middle" align="left">[<a href="#Parent-Part" title="Next section in reading order"> > </a>]</td> <td valign="middle" align="left">[<a href="avrdude_14.html#Programmer-Specific-Information" title="Next chapter"> >> </a>]</td> <td valign="middle" align="left"> </td> <td valign="middle" align="left"> </td> <td valign="middle" align="left"> </td> <td valign="middle" align="left"> </td> <td valign="middle" align="left">[<a href="avrdude.html#Introduction" title="Cover (top) of document">Top</a>]</td> <td valign="middle" align="left">[<a href="avrdude_toc.html#SEC_Contents" title="Table of contents">Contents</a>]</td> <td valign="middle" align="left">[Index]</td> <td valign="middle" align="left">[<a href="avrdude_abt.html#SEC_About" title="About (help)"> ? </a>]</td> </tr></table> <a name="Part-Definitions-1"></a> <h2 class="section">4.3 Part Definitions</h2> <div class="smallexample"> <pre class="smallexample">part id = <id> ; # quoted string desc = <description> ; # quoted string family_id = <description> ; # quoted string has_jtag = <yes/no> ; # part has JTAG i/f has_debugwire = <yes/no> ; # part has debugWire i/f has_pdi = <yes/no> ; # part has PDI i/f has_updi = <yes/no> ; # part has UPDI i/f has_tpi = <yes/no> ; # part has TPI i/f devicecode = <num> ; # numeric stk500_devcode = <num> ; # numeric avr910_devcode = <num> ; # numeric signature = <num> <num> <num> ; # signature bytes usbpid = <num> ; # DFU USB PID reset = dedicated | io; retry_pulse = reset | sck; pgm_enable = <instruction format> ; chip_erase = <instruction format> ; chip_erase_delay = <num> ; # micro-seconds # STK500 parameters (parallel programming IO lines) pagel = <num> ; # pin name in hex, i.e., 0xD7 bs2 = <num> ; # pin name in hex, i.e., 0xA0 serial = <yes/no> ; # can use serial downloading parallel = <yes/no/pseudo>; # can use par. programming # STK500v2 parameters, to be taken from Atmel's XML files timeout = <num> ; stabdelay = <num> ; cmdexedelay = <num> ; synchloops = <num> ; bytedelay = <num> ; pollvalue = <num> ; pollindex = <num> ; predelay = <num> ; postdelay = <num> ; pollmethod = <num> ; mode = <num> ; delay = <num> ; blocksize = <num> ; readsize = <num> ; hvspcmdexedelay = <num> ; # STK500v2 HV programming parameters, from XML pp_controlstack = <num>, <num>, ...; # PP only hvsp_controlstack = <num>, <num>, ...; # HVSP only hventerstabdelay = <num>; progmodedelay = <num>; # PP only latchcycles = <num>; togglevtg = <num>; poweroffdelay = <num>; resetdelayms = <num>; resetdelayus = <num>; hvleavestabdelay = <num>; resetdelay = <num>; synchcycles = <num>; # HVSP only chiperasepulsewidth = <num>; # PP only chiperasepolltimeout = <num>; chiperasetime = <num>; # HVSP only programfusepulsewidth = <num>; # PP only programfusepolltimeout = <num>; programlockpulsewidth = <num>; # PP only programlockpolltimeout = <num>; # JTAG ICE mkII parameters, also from XML files allowfullpagebitstream = <yes/no> ; enablepageprogramming = <yes/no> ; idr = <num> ; # IO addr of IDR (OCD) reg. rampz = <num> ; # IO addr of RAMPZ reg. spmcr = <num> ; # mem addr of SPMC[S]R reg. eecr = <num> ; # mem addr of EECR reg. # (only when != 0x3c) is_at90s1200 = <yes/no> ; # AT90S1200 part is_avr32 = <yes/no> ; # AVR32 part memory <memtype> paged = <yes/no> ; # yes / no size = <num> ; # bytes page_size = <num> ; # bytes num_pages = <num> ; # numeric min_write_delay = <num> ; # micro-seconds max_write_delay = <num> ; # micro-seconds readback_p1 = <num> ; # byte value readback_p2 = <num> ; # byte value pwroff_after_write = <yes/no> ; # yes / no read = <instruction format> ; write = <instruction format> ; read_lo = <instruction format> ; read_hi = <instruction format> ; write_lo = <instruction format> ; write_hi = <instruction format> ; loadpage_lo = <instruction format> ; loadpage_hi = <instruction format> ; writepage = <instruction format> ; ; ; </pre></div> <table class="menu" border="0" cellspacing="0"> <tr><td align="left" valign="top"><a href="#Parent-Part">4.3.1 Parent Part</a></td><td> </td><td align="left" valign="top"> </td></tr> <tr><td align="left" valign="top"><a href="#Instruction-Format">4.3.2 Instruction Format</a></td><td> </td><td align="left" valign="top"> </td></tr> </table> <hr> <a name="Parent-Part"></a> <table class="header" cellpadding="1" cellspacing="1" border="0"> <tr><td valign="middle" align="left">[<a href="avrdude_9.html#Configuration-File" title="Beginning of this chapter or previous chapter"> << </a>]</td> <td valign="middle" align="left">[<a href="#Part-Definitions" title="Previous section in reading order"> < </a>]</td> <td valign="middle" align="left">[<a href="#Part-Definitions" title="Up section"> Up </a>]</td> <td valign="middle" align="left">[<a href="#Instruction-Format" title="Next section in reading order"> > </a>]</td> <td valign="middle" align="left">[<a href="avrdude_14.html#Programmer-Specific-Information" title="Next chapter"> >> </a>]</td> <td valign="middle" align="left"> </td> <td valign="middle" align="left"> </td> <td valign="middle" align="left"> </td> <td valign="middle" align="left"> </td> <td valign="middle" align="left">[<a href="avrdude.html#Introduction" title="Cover (top) of document">Top</a>]</td> <td valign="middle" align="left">[<a href="avrdude_toc.html#SEC_Contents" title="Table of contents">Contents</a>]</td> <td valign="middle" align="left">[Index]</td> <td valign="middle" align="left">[<a href="avrdude_abt.html#SEC_About" title="About (help)"> ? </a>]</td> </tr></table> <a name="Parent-Part-1"></a> <h3 class="subsection">4.3.1 Parent Part</h3> <p>Parts can also inherit parameters from previously defined parts using the following syntax. In this case specified integer and string values override parameter values from the parent part. New memory definitions are added to the definitions inherited from the parent. </p> <div class="smallexample"> <pre class="smallexample"> part parent <id> # quoted string id = <id> ; # quoted string <any set of other parameters from the list above> ; </pre></div> <hr> <a name="Instruction-Format"></a> <table class="header" cellpadding="1" cellspacing="1" border="0"> <tr><td valign="middle" align="left">[<a href="avrdude_9.html#Configuration-File" title="Beginning of this chapter or previous chapter"> << </a>]</td> <td valign="middle" align="left">[<a href="#Parent-Part" title="Previous section in reading order"> < </a>]</td> <td valign="middle" align="left">[<a href="#Part-Definitions" title="Up section"> Up </a>]</td> <td valign="middle" align="left">[<a href="avrdude_13.html#Other-Notes" title="Next section in reading order"> > </a>]</td> <td valign="middle" align="left">[<a href="avrdude_14.html#Programmer-Specific-Information" title="Next chapter"> >> </a>]</td> <td valign="middle" align="left"> </td> <td valign="middle" align="left"> </td> <td valign="middle" align="left"> </td> <td valign="middle" align="left"> </td> <td valign="middle" align="left">[<a href="avrdude.html#Introduction" title="Cover (top) of document">Top</a>]</td> <td valign="middle" align="left">[<a href="avrdude_toc.html#SEC_Contents" title="Table of contents">Contents</a>]</td> <td valign="middle" align="left">[Index]</td> <td valign="middle" align="left">[<a href="avrdude_abt.html#SEC_About" title="About (help)"> ? </a>]</td> </tr></table> <a name="Instruction-Format-1"></a> <h3 class="subsection">4.3.2 Instruction Format</h3> <p>Instruction formats are specified as a comma separated list of string values containing information (bit specifiers) about each of the 32 bits of the instruction. Bit specifiers may be one of the following formats: </p> <dl compact="compact"> <dt><code>1</code></dt> <dd><p>The bit is always set on input as well as output </p> </dd> <dt><code>0</code></dt> <dd><p>the bit is always clear on input as well as output </p> </dd> <dt><code>x</code></dt> <dd><p>the bit is ignored on input and output </p> </dd> <dt><code>a</code></dt> <dd><p>the bit is an address bit, the bit-number matches this bit specifier’s position within the current instruction byte </p> </dd> <dt><code>a<var>N</var></code></dt> <dd><p>the bit is the <var>N</var>th address bit, bit-number = N, i.e., <code>a12</code> is address bit 12 on input, <code>a0</code> is address bit 0. </p> </dd> <dt><code>i</code></dt> <dd><p>the bit is an input data bit </p> </dd> <dt><code>o</code></dt> <dd><p>the bit is an output data bit </p> </dd> </dl> <p>Each instruction must be composed of 32 bit specifiers. The instruction specification closely follows the instruction data provided in Atmel’s data sheets for their parts. For example, the EEPROM read and write instruction for an AT90S2313 AVR part could be encoded as: </p> <div class="smallexample"> <pre class="smallexample"> read = "1 0 1 0 0 0 0 0 x x x x x x x x", "x a6 a5 a4 a3 a2 a1 a0 o o o o o o o o"; write = "1 1 0 0 0 0 0 0 x x x x x x x x", "x a6 a5 a4 a3 a2 a1 a0 i i i i i i i i"; </pre></div> <hr> <table class="header" cellpadding="1" cellspacing="1" border="0"> <tr><td valign="middle" align="left">[<a href="avrdude_9.html#Configuration-File" title="Beginning of this chapter or previous chapter"> << </a>]</td> <td valign="middle" align="left">[<a href="#Parent-Part" title="Previous section in reading order"> < </a>]</td> <td valign="middle" align="left">[<a href="#Part-Definitions" title="Up section"> Up </a>]</td> <td valign="middle" align="left">[<a href="avrdude_13.html#Other-Notes" title="Next section in reading order"> > </a>]</td> <td valign="middle" align="left">[<a href="avrdude_14.html#Programmer-Specific-Information" title="Next chapter"> >> </a>]</td> </tr></table> <p> <font size="-1"> This document was generated on <i>March 13, 2022</i> using <a href="http://www.nongnu.org/texi2html/"><i>texi2html 5.0</i></a>. </font> <br> </p> </body> </html>