avrdude.conf 453 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389
  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 seperated 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. #define ATTINY10 0x10 /* the _old_ one that never existed! */
  209. #define ATTINY11 0x11
  210. #define ATTINY12 0x12
  211. #define ATTINY15 0x13
  212. #define ATTINY13 0x14
  213. #define ATTINY22 0x20
  214. #define ATTINY26 0x21
  215. #define ATTINY28 0x22
  216. #define ATTINY2313 0x23
  217. #define AT90S1200 0x33
  218. #define AT90S2313 0x40
  219. #define AT90S2323 0x41
  220. #define AT90S2333 0x42
  221. #define AT90S2343 0x43
  222. #define AT90S4414 0x50
  223. #define AT90S4433 0x51
  224. #define AT90S4434 0x52
  225. #define ATMEGA48 0x59
  226. #define AT90S8515 0x60
  227. #define AT90S8535 0x61
  228. #define AT90C8534 0x62
  229. #define ATMEGA8515 0x63
  230. #define ATMEGA8535 0x64
  231. #define ATMEGA8 0x70
  232. #define ATMEGA88 0x73
  233. #define ATMEGA168 0x86
  234. #define ATMEGA161 0x80
  235. #define ATMEGA163 0x81
  236. #define ATMEGA16 0x82
  237. #define ATMEGA162 0x83
  238. #define ATMEGA169 0x84
  239. #define ATMEGA323 0x90
  240. #define ATMEGA32 0x91
  241. #define ATMEGA64 0xA0
  242. #define ATMEGA103 0xB1
  243. #define ATMEGA128 0xB2
  244. #define AT90CAN128 0xB3
  245. #define AT90CAN64 0xB3
  246. #define AT90CAN32 0xB3
  247. #define AT86RF401 0xD0
  248. #define AT89START 0xE0
  249. #define AT89S51 0xE0
  250. #define AT89S52 0xE1
  251. # The following table lists the devices in the original AVR910
  252. # appnote:
  253. # |Device |Signature | Code |
  254. # +-------+----------+------+
  255. # |tiny12 | 1E 90 05 | 0x55 |
  256. # |tiny15 | 1E 90 06 | 0x56 |
  257. # | | | |
  258. # | S1200 | 1E 90 01 | 0x13 |
  259. # | | | |
  260. # | S2313 | 1E 91 01 | 0x20 |
  261. # | S2323 | 1E 91 02 | 0x48 |
  262. # | S2333 | 1E 91 05 | 0x34 |
  263. # | S2343 | 1E 91 03 | 0x4C |
  264. # | | | |
  265. # | S4414 | 1E 92 01 | 0x28 |
  266. # | S4433 | 1E 92 03 | 0x30 |
  267. # | S4434 | 1E 92 02 | 0x6C |
  268. # | | | |
  269. # | S8515 | 1E 93 01 | 0x38 |
  270. # | S8535 | 1E 93 03 | 0x68 |
  271. # | | | |
  272. # |mega32 | 1E 95 01 | 0x72 |
  273. # |mega83 | 1E 93 05 | 0x65 |
  274. # |mega103| 1E 97 01 | 0x41 |
  275. # |mega161| 1E 94 01 | 0x60 |
  276. # |mega163| 1E 94 02 | 0x64 |
  277. # Appnote AVR109 also has a table of AVR910 device codes, which
  278. # lists:
  279. # dev avr910 signature
  280. # ATmega8 0x77 0x1E 0x93 0x07
  281. # ATmega8515 0x3B 0x1E 0x93 0x06
  282. # ATmega8535 0x6A 0x1E 0x93 0x08
  283. # ATmega16 0x75 0x1E 0x94 0x03
  284. # ATmega162 0x63 0x1E 0x94 0x04
  285. # ATmega163 0x66 0x1E 0x94 0x02
  286. # ATmega169 0x79 0x1E 0x94 0x05
  287. # ATmega32 0x7F 0x1E 0x95 0x02
  288. # ATmega323 0x73 0x1E 0x95 0x01
  289. # ATmega64 0x46 0x1E 0x96 0x02
  290. # ATmega128 0x44 0x1E 0x97 0x02
  291. #
  292. # These codes refer to "BOOT" device codes which are apparently
  293. # different than standard device codes, for whatever reasons
  294. # (often one above the standard code).
  295. # There are several extended versions of AVR910 implementations around
  296. # in the Internet. These add the following codes (only devices that
  297. # actually exist are listed):
  298. # ATmega8515 0x3A
  299. # ATmega128 0x43
  300. # ATmega64 0x45
  301. # ATtiny26 0x5E
  302. # ATmega8535 0x69
  303. # ATmega32 0x72
  304. # ATmega16 0x74
  305. # ATmega8 0x76
  306. # ATmega169 0x78
  307. #
  308. # Overall avrdude defaults; suitable for ~/.avrduderc
  309. #
  310. default_parallel = "/dev/parport0";
  311. default_serial = "/dev/ttyS0";
  312. # default_bitclock = 2.5;
  313. # Turn off safemode by default
  314. #default_safemode = no;
  315. #
  316. # PROGRAMMER DEFINITIONS
  317. #
  318. # http://wiring.org.co/
  319. # Basically STK500v2 protocol, with some glue to trigger the
  320. # bootloader.
  321. programmer
  322. id = "wiring";
  323. desc = "Wiring";
  324. type = "wiring";
  325. connection_type = serial;
  326. ;
  327. programmer
  328. id = "arduino";
  329. desc = "Arduino";
  330. type = "arduino";
  331. connection_type = serial;
  332. ;
  333. # this will interface with the chips on these programmers:
  334. #
  335. # http://real.kiev.ua/old/avreal/en/adapters
  336. # http://www.amontec.com/jtagkey.shtml, jtagkey-tiny.shtml
  337. # http://www.olimex.com/dev/arm-usb-ocd.html, arm-usb-tiny.html
  338. # http://www.ethernut.de/en/hardware/turtelizer/index.html
  339. # http://elk.informatik.fh-augsburg.de/hhweb/doc/openocd/usbjtag/usbjtag.html
  340. # http://dangerousprototypes.com/docs/FT2232_breakout_board
  341. # http://www.ftdichip.com/Products/Modules/DLPModules.htm,DLP-2232*,DLP-USB1232H
  342. # http://flashrom.org/FT2232SPI_Programmer
  343. #
  344. # The drivers will look for a specific device and use the first one found.
  345. # If you have mulitple devices, then look for unique information (like SN)
  346. # And fill that in here.
  347. #
  348. # Note that the pin numbers for the main ISP signals (reset, sck,
  349. # mosi, miso) are fixed and cannot be changed, since they must match
  350. # the way the Multi-Protocol Synchronous Serial Engine (MPSSE) of
  351. # these FTDI ICs has been designed.
  352. programmer
  353. id = "avrftdi";
  354. desc = "FT2232D based generic programmer";
  355. type = "avrftdi";
  356. connection_type = usb;
  357. usbvid = 0x0403;
  358. usbpid = 0x6010;
  359. usbvendor = "";
  360. usbproduct = "";
  361. usbdev = "A";
  362. usbsn = "";
  363. #ISP-signals - lower ADBUS-Nibble (default)
  364. reset = 3;
  365. sck = 0;
  366. mosi = 1;
  367. miso = 2;
  368. #LED SIGNALs - higher ADBUS-Nibble
  369. # errled = 4;
  370. # rdyled = 5;
  371. # pgmled = 6;
  372. # vfyled = 7;
  373. #Buffer Signal - ACBUS - Nibble
  374. # buff = 8;
  375. ;
  376. # This is an implementation of the above with a buffer IC (74AC244) and
  377. # 4 LEDs directly attached, all active low.
  378. programmer
  379. id = "2232HIO";
  380. desc = "FT2232H based generic programmer";
  381. type = "avrftdi";
  382. connection_type = usb;
  383. usbvid = 0x0403;
  384. # Note: This PID is reserved for generic H devices and
  385. # should be programmed into the EEPROM
  386. # usbpid = 0x8A48;
  387. usbpid = 0x6010;
  388. usbdev = "A";
  389. usbvendor = "";
  390. usbproduct = "";
  391. usbsn = "";
  392. #ISP-signals
  393. reset = 3;
  394. sck = 0;
  395. mosi = 1;
  396. miso = 2;
  397. buff = ~4;
  398. #LED SIGNALs
  399. errled = ~ 11;
  400. rdyled = ~ 14;
  401. pgmled = ~ 13;
  402. vfyled = ~ 12;
  403. ;
  404. #The FT4232H can be treated as FT2232H, but it has a different USB
  405. #device ID of 0x6011.
  406. programmer parent "avrftdi"
  407. id = "4232h";
  408. desc = "FT4232H based generic programmer";
  409. usbpid = 0x6011;
  410. ;
  411. programmer
  412. id = "jtagkey";
  413. desc = "Amontec JTAGKey, JTAGKey-Tiny and JTAGKey2";
  414. type = "avrftdi";
  415. connection_type = usb;
  416. usbvid = 0x0403;
  417. # Note: This PID is used in all JTAGKey variants
  418. usbpid = 0xCFF8;
  419. usbdev = "A";
  420. usbvendor = "";
  421. usbproduct = "";
  422. usbsn = "";
  423. #ISP-signals => 20 - Pin connector on JTAGKey
  424. reset = 3; # TMS 7 violet
  425. sck = 0; # TCK 9 white
  426. mosi = 1; # TDI 5 green
  427. miso = 2; # TDO 13 orange
  428. buff = ~4;
  429. # VTG VREF 1 brown with red tip
  430. # GND GND 20 black
  431. # The colors are on the 20 pin breakout cable
  432. # from Amontec
  433. ;
  434. # On the adapter you can read "O-Link". On the PCB is printed "OpenJTAG v3.1"
  435. # You can find it as "OpenJTAG ARM JTAG USB" in the internet.
  436. # (But there are also several projects called Open JTAG, eg.
  437. # http://www.openjtag.org, which are completely different.)
  438. # http://www.100ask.net/shop/english.html (website seems to be outdated)
  439. # http://item.taobao.com/item.htm?id=1559277013
  440. # http://www.micro4you.com/store/openjtag-arm-jtag-usb.html (schematics!)
  441. # some other sources which call it O-Link
  442. # http://www.andahammer.com/olink/
  443. # http://www.developmentboard.net/31-o-link-debugger.html
  444. # http://armwerks.com/catalog/o-link-debugger-copy/
  445. # or just have a look at ebay ...
  446. # It is basically the same entry as jtagkey with different usb ids.
  447. programmer parent "jtagkey"
  448. id = "o-link";
  449. desc = "O-Link, OpenJTAG from www.100ask.net";
  450. usbvid = 0x1457;
  451. usbpid = 0x5118;
  452. usbvendor = "www.100ask.net";
  453. usbproduct = "USB<=>JTAG&RS232";
  454. ;
  455. # http://wiki.openmoko.org/wiki/Debug_Board_v3
  456. programmer
  457. id = "openmoko";
  458. desc = "Openmoko debug board (v3)";
  459. type = "avrftdi";
  460. usbvid = 0x1457;
  461. usbpid = 0x5118;
  462. usbdev = "A";
  463. usbvendor = "";
  464. usbproduct = "";
  465. usbsn = "";
  466. reset = 3; # TMS 7
  467. sck = 0; # TCK 9
  468. mosi = 1; # TDI 5
  469. miso = 2; # TDO 13
  470. ;
  471. # Only Rev. A boards.
  472. # Schematic and user manual: http://www.cs.put.poznan.pl/wswitala/download/pdf/811EVBK.pdf
  473. programmer
  474. id = "lm3s811";
  475. desc = "Luminary Micro LM3S811 Eval Board (Rev. A)";
  476. type = "avrftdi";
  477. connection_type = usb;
  478. usbvid = 0x0403;
  479. usbpid = 0xbcd9;
  480. usbvendor = "LMI";
  481. usbproduct = "LM3S811 Evaluation Board";
  482. usbdev = "A";
  483. usbsn = "";
  484. #ISP-signals - lower ACBUS-Nibble (default)
  485. reset = 3;
  486. sck = 0;
  487. mosi = 1;
  488. miso = 2;
  489. # Enable correct buffers
  490. buff = 7;
  491. ;
  492. programmer
  493. id = "avrisp";
  494. desc = "Atmel AVR ISP";
  495. type = "stk500";
  496. connection_type = serial;
  497. ;
  498. programmer
  499. id = "avrispv2";
  500. desc = "Atmel AVR ISP V2";
  501. type = "stk500v2";
  502. connection_type = serial;
  503. ;
  504. programmer
  505. id = "avrispmkII";
  506. desc = "Atmel AVR ISP mkII";
  507. type = "stk500v2";
  508. connection_type = usb;
  509. ;
  510. programmer parent "avrispmkII"
  511. id = "avrisp2";
  512. ;
  513. programmer
  514. id = "buspirate";
  515. desc = "The Bus Pirate";
  516. type = "buspirate";
  517. connection_type = serial;
  518. ;
  519. programmer
  520. id = "buspirate_bb";
  521. desc = "The Bus Pirate (bitbang interface, supports TPI)";
  522. type = "buspirate_bb";
  523. connection_type = serial;
  524. # pins are bits in bitbang byte (numbers are 87654321)
  525. # 1|POWER|PULLUP|AUX|MOSI|CLK|MISO|CS
  526. reset = 1;
  527. sck = 3;
  528. mosi = 4;
  529. miso = 2;
  530. #vcc = 7; This is internally set independent of this setting.
  531. ;
  532. # This is supposed to be the "default" STK500 entry.
  533. # Attempts to select the correct firmware version
  534. # by probing for it. Better use one of the entries
  535. # below instead.
  536. programmer
  537. id = "stk500";
  538. desc = "Atmel STK500";
  539. type = "stk500generic";
  540. connection_type = serial;
  541. ;
  542. programmer
  543. id = "stk500v1";
  544. desc = "Atmel STK500 Version 1.x firmware";
  545. type = "stk500";
  546. connection_type = serial;
  547. ;
  548. programmer
  549. id = "mib510";
  550. desc = "Crossbow MIB510 programming board";
  551. type = "stk500";
  552. connection_type = serial;
  553. ;
  554. programmer
  555. id = "stk500v2";
  556. desc = "Atmel STK500 Version 2.x firmware";
  557. type = "stk500v2";
  558. connection_type = serial;
  559. ;
  560. programmer
  561. id = "stk500pp";
  562. desc = "Atmel STK500 V2 in parallel programming mode";
  563. type = "stk500pp";
  564. connection_type = serial;
  565. ;
  566. programmer
  567. id = "stk500hvsp";
  568. desc = "Atmel STK500 V2 in high-voltage serial programming mode";
  569. type = "stk500hvsp";
  570. connection_type = serial;
  571. ;
  572. programmer
  573. id = "stk600";
  574. desc = "Atmel STK600";
  575. type = "stk600";
  576. connection_type = usb;
  577. ;
  578. programmer
  579. id = "stk600pp";
  580. desc = "Atmel STK600 in parallel programming mode";
  581. type = "stk600pp";
  582. connection_type = usb;
  583. ;
  584. programmer
  585. id = "stk600hvsp";
  586. desc = "Atmel STK600 in high-voltage serial programming mode";
  587. type = "stk600hvsp";
  588. connection_type = usb;
  589. ;
  590. programmer
  591. id = "avr910";
  592. desc = "Atmel Low Cost Serial Programmer";
  593. type = "avr910";
  594. connection_type = serial;
  595. ;
  596. programmer
  597. id = "ft245r";
  598. desc = "FT245R Synchronous BitBang";
  599. type = "ftdi_syncbb";
  600. connection_type = usb;
  601. miso = 1; # D1
  602. sck = 0; # D0
  603. mosi = 2; # D2
  604. reset = 4; # D4
  605. ;
  606. programmer
  607. id = "ft232r";
  608. desc = "FT232R Synchronous BitBang";
  609. type = "ftdi_syncbb";
  610. connection_type = usb;
  611. miso = 1; # RxD
  612. sck = 0; # RTS
  613. mosi = 2; # TxD
  614. reset = 4; # DTR
  615. ;
  616. # see http://www.bitwizard.nl/wiki/index.php/FTDI_ATmega
  617. programmer
  618. id = "bwmega";
  619. desc = "BitWizard ftdi_atmega builtin programmer";
  620. type = "ftdi_syncbb";
  621. connection_type = usb;
  622. miso = 5; # DSR
  623. sck = 6; # DCD
  624. mosi = 3; # CTS
  625. reset = 7; # RI
  626. ;
  627. # see http://www.geocities.jp/arduino_diecimila/bootloader/index_en.html
  628. # Note: pins are numbered from 1!
  629. programmer
  630. id = "arduino-ft232r";
  631. desc = "Arduino: FT232R connected to ISP";
  632. type = "ftdi_syncbb";
  633. connection_type = usb;
  634. miso = 3; # CTS X3(1)
  635. sck = 5; # DSR X3(2)
  636. mosi = 6; # DCD X3(3)
  637. reset = 7; # RI X3(4)
  638. ;
  639. # website mentioned above uses this id
  640. programmer parent "arduino-ft232r"
  641. id = "diecimila";
  642. desc = "alias for arduino-ft232r";
  643. ;
  644. programmer
  645. id = "usbasp";
  646. desc = "USBasp, http://www.fischl.de/usbasp/";
  647. type = "usbasp";
  648. connection_type = usb;
  649. usbvid = 0x16C0; # VOTI
  650. usbpid = 0x05DC; # Obdev's free shared PID
  651. usbvendor = "www.fischl.de";
  652. usbproduct = "USBasp";
  653. # following variants are autodetected for id "usbasp"
  654. # original usbasp from fischl.de
  655. # see above "usbasp"
  656. # old usbasp from fischl.de
  657. #usbvid = 0x03EB; # ATMEL
  658. #usbpid = 0xC7B4; # (unoffical) USBasp
  659. #usbvendor = "www.fischl.de";
  660. #usbproduct = "USBasp";
  661. # NIBObee (only if -P nibobee is given on command line)
  662. # see below "nibobee"
  663. ;
  664. programmer
  665. id = "nibobee";
  666. desc = "NIBObee";
  667. type = "usbasp";
  668. connection_type = usb;
  669. usbvid = 0x16C0; # VOTI
  670. usbpid = 0x092F; # NIBObee PID
  671. usbvendor = "www.nicai-systems.com";
  672. usbproduct = "NIBObee";
  673. ;
  674. programmer
  675. id = "usbasp-clone";
  676. desc = "Any usbasp clone with correct VID/PID";
  677. type = "usbasp";
  678. connection_type = usb;
  679. usbvid = 0x16C0; # VOTI
  680. usbpid = 0x05DC; # Obdev's free shared PID
  681. #usbvendor = "";
  682. #usbproduct = "";
  683. ;
  684. programmer
  685. id = "usbtiny";
  686. desc = "USBtiny simple USB programmer, http://www.ladyada.net/make/usbtinyisp/";
  687. type = "usbtiny";
  688. connection_type = usb;
  689. usbvid = 0x1781;
  690. usbpid = 0x0c9f;
  691. ;
  692. programmer
  693. id = "arduinogemma";
  694. desc = "Arduino Gemma. Based on USBtiny";
  695. type = "usbtiny";
  696. connection_type = usb;
  697. usbvid = 0x2341;
  698. usbpid = 0x0c9f;
  699. ;
  700. programmer
  701. id = "arduinoisp";
  702. desc = " ";
  703. type = "usbtiny";
  704. connection_type = usb;
  705. usbvid = 0x2341;
  706. usbpid = 0x0049;
  707. ;
  708. programmer
  709. id = "butterfly";
  710. desc = "Atmel Butterfly Development Board";
  711. type = "butterfly";
  712. connection_type = serial;
  713. ;
  714. programmer
  715. id = "avr109";
  716. desc = "Atmel AppNote AVR109 Boot Loader";
  717. type = "butterfly";
  718. connection_type = serial;
  719. ;
  720. programmer
  721. id = "avr911";
  722. desc = "Atmel AppNote AVR911 AVROSP";
  723. type = "butterfly";
  724. connection_type = serial;
  725. ;
  726. # suggested in http://forum.mikrokopter.de/topic-post48317.html
  727. programmer
  728. id = "mkbutterfly";
  729. desc = "Mikrokopter.de Butterfly";
  730. type = "butterfly_mk";
  731. connection_type = serial;
  732. ;
  733. programmer parent "mkbutterfly"
  734. id = "butterfly_mk";
  735. ;
  736. programmer
  737. id = "jtagmkI";
  738. desc = "Atmel JTAG ICE (mkI)";
  739. baudrate = 115200; # default is 115200
  740. type = "jtagmki";
  741. connection_type = serial;
  742. ;
  743. # easier to type
  744. programmer parent "jtagmkI"
  745. id = "jtag1";
  746. ;
  747. # easier to type
  748. programmer parent "jtag1"
  749. id = "jtag1slow";
  750. baudrate = 19200;
  751. ;
  752. # The JTAG ICE mkII has both, serial and USB connectivity. As it is
  753. # mostly used through USB these days (AVR Studio 5 only supporting it
  754. # that way), we make connection_type = usb the default. Users are
  755. # still free to use a serial port with the -P option.
  756. programmer
  757. id = "jtagmkII";
  758. desc = "Atmel JTAG ICE mkII";
  759. baudrate = 19200; # default is 19200
  760. type = "jtagmkii";
  761. connection_type = usb;
  762. ;
  763. # easier to type
  764. programmer parent "jtagmkII"
  765. id = "jtag2slow";
  766. ;
  767. # JTAG ICE mkII @ 115200 Bd
  768. programmer parent "jtag2slow"
  769. id = "jtag2fast";
  770. baudrate = 115200;
  771. ;
  772. # make the fast one the default, people will love that
  773. programmer parent "jtag2fast"
  774. id = "jtag2";
  775. ;
  776. # JTAG ICE mkII in ISP mode
  777. programmer
  778. id = "jtag2isp";
  779. desc = "Atmel JTAG ICE mkII in ISP mode";
  780. baudrate = 115200;
  781. type = "jtagmkii_isp";
  782. connection_type = usb;
  783. ;
  784. # JTAG ICE mkII in debugWire mode
  785. programmer
  786. id = "jtag2dw";
  787. desc = "Atmel JTAG ICE mkII in debugWire mode";
  788. baudrate = 115200;
  789. type = "jtagmkii_dw";
  790. connection_type = usb;
  791. ;
  792. # JTAG ICE mkII in AVR32 mode
  793. programmer
  794. id = "jtagmkII_avr32";
  795. desc = "Atmel JTAG ICE mkII im AVR32 mode";
  796. baudrate = 115200;
  797. type = "jtagmkii_avr32";
  798. connection_type = usb;
  799. ;
  800. # JTAG ICE mkII in AVR32 mode
  801. programmer
  802. id = "jtag2avr32";
  803. desc = "Atmel JTAG ICE mkII im AVR32 mode";
  804. baudrate = 115200;
  805. type = "jtagmkii_avr32";
  806. connection_type = usb;
  807. ;
  808. # JTAG ICE mkII in PDI mode
  809. programmer
  810. id = "jtag2pdi";
  811. desc = "Atmel JTAG ICE mkII PDI mode";
  812. baudrate = 115200;
  813. type = "jtagmkii_pdi";
  814. connection_type = usb;
  815. ;
  816. # AVR Dragon in JTAG mode
  817. programmer
  818. id = "dragon_jtag";
  819. desc = "Atmel AVR Dragon in JTAG mode";
  820. baudrate = 115200;
  821. type = "dragon_jtag";
  822. connection_type = usb;
  823. ;
  824. # AVR Dragon in ISP mode
  825. programmer
  826. id = "dragon_isp";
  827. desc = "Atmel AVR Dragon in ISP mode";
  828. baudrate = 115200;
  829. type = "dragon_isp";
  830. connection_type = usb;
  831. ;
  832. # AVR Dragon in PP mode
  833. programmer
  834. id = "dragon_pp";
  835. desc = "Atmel AVR Dragon in PP mode";
  836. baudrate = 115200;
  837. type = "dragon_pp";
  838. connection_type = usb;
  839. ;
  840. # AVR Dragon in HVSP mode
  841. programmer
  842. id = "dragon_hvsp";
  843. desc = "Atmel AVR Dragon in HVSP mode";
  844. baudrate = 115200;
  845. type = "dragon_hvsp";
  846. connection_type = usb;
  847. ;
  848. # AVR Dragon in debugWire mode
  849. programmer
  850. id = "dragon_dw";
  851. desc = "Atmel AVR Dragon in debugWire mode";
  852. baudrate = 115200;
  853. type = "dragon_dw";
  854. connection_type = usb;
  855. ;
  856. # AVR Dragon in PDI mode
  857. programmer
  858. id = "dragon_pdi";
  859. desc = "Atmel AVR Dragon in PDI mode";
  860. baudrate = 115200;
  861. type = "dragon_pdi";
  862. connection_type = usb;
  863. ;
  864. programmer
  865. id = "jtag3";
  866. desc = "Atmel AVR JTAGICE3 in JTAG mode";
  867. type = "jtagice3";
  868. connection_type = usb;
  869. ;
  870. programmer
  871. id = "jtag3pdi";
  872. desc = "Atmel AVR JTAGICE3 in PDI mode";
  873. type = "jtagice3_pdi";
  874. connection_type = usb;
  875. ;
  876. programmer
  877. id = "jtag3dw";
  878. desc = "Atmel AVR JTAGICE3 in debugWIRE mode";
  879. type = "jtagice3_dw";
  880. connection_type = usb;
  881. ;
  882. programmer
  883. id = "jtag3isp";
  884. desc = "Atmel AVR JTAGICE3 in ISP mode";
  885. type = "jtagice3_isp";
  886. connection_type = usb;
  887. ;
  888. programmer
  889. id = "pavr";
  890. desc = "Jason Kyle's pAVR Serial Programmer";
  891. type = "avr910";
  892. connection_type = serial;
  893. ;
  894. programmer
  895. id = "pickit2";
  896. desc = "MicroChip's PICkit2 Programmer";
  897. type = "pickit2";
  898. connection_type = usb;
  899. ;
  900. # Parallel port programmers.
  901. programmer
  902. id = "bsd";
  903. desc = "Brian Dean's Programmer, http://www.bsdhome.com/avrdude/";
  904. type = "par";
  905. connection_type = parallel;
  906. vcc = 2, 3, 4, 5;
  907. reset = 7;
  908. sck = 8;
  909. mosi = 9;
  910. miso = 10;
  911. ;
  912. programmer
  913. id = "stk200";
  914. desc = "STK200";
  915. type = "par";
  916. connection_type = parallel;
  917. buff = 4, 5;
  918. sck = 6;
  919. mosi = 7;
  920. reset = 9;
  921. miso = 10;
  922. ;
  923. # The programming dongle used by the popular Ponyprog
  924. # utility. It is almost similar to the STK200 one,
  925. # except that there is a LED indicating that the
  926. # programming is currently in progress.
  927. programmer parent "stk200"
  928. id = "pony-stk200";
  929. desc = "Pony Prog STK200";
  930. pgmled = 8;
  931. ;
  932. programmer
  933. id = "dt006";
  934. desc = "Dontronics DT006";
  935. type = "par";
  936. connection_type = parallel;
  937. reset = 4;
  938. sck = 5;
  939. mosi = 2;
  940. miso = 11;
  941. ;
  942. programmer parent "dt006"
  943. id = "bascom";
  944. desc = "Bascom SAMPLE programming cable";
  945. ;
  946. programmer
  947. id = "alf";
  948. desc = "Nightshade ALF-PgmAVR, http://nightshade.homeip.net/";
  949. type = "par";
  950. connection_type = parallel;
  951. vcc = 2, 3, 4, 5;
  952. buff = 6;
  953. reset = 7;
  954. sck = 8;
  955. mosi = 9;
  956. miso = 10;
  957. errled = 1;
  958. rdyled = 14;
  959. pgmled = 16;
  960. vfyled = 17;
  961. ;
  962. programmer
  963. id = "sp12";
  964. desc = "Steve Bolt's Programmer";
  965. type = "par";
  966. connection_type = parallel;
  967. vcc = 4,5,6,7,8;
  968. reset = 3;
  969. sck = 2;
  970. mosi = 9;
  971. miso = 11;
  972. ;
  973. programmer
  974. id = "picoweb";
  975. desc = "Picoweb Programming Cable, http://www.picoweb.net/";
  976. type = "par";
  977. connection_type = parallel;
  978. reset = 2;
  979. sck = 3;
  980. mosi = 4;
  981. miso = 13;
  982. ;
  983. programmer
  984. id = "abcmini";
  985. desc = "ABCmini Board, aka Dick Smith HOTCHIP";
  986. type = "par";
  987. connection_type = parallel;
  988. reset = 4;
  989. sck = 3;
  990. mosi = 2;
  991. miso = 10;
  992. ;
  993. programmer
  994. id = "futurlec";
  995. desc = "Futurlec.com programming cable.";
  996. type = "par";
  997. connection_type = parallel;
  998. reset = 3;
  999. sck = 2;
  1000. mosi = 1;
  1001. miso = 10;
  1002. ;
  1003. # From the contributor of the "xil" jtag cable:
  1004. # The "vcc" definition isn't really vcc (the cable gets its power from
  1005. # the programming circuit) but is necessary to switch one of the
  1006. # buffer lines (trying to add it to the "buff" lines doesn't work in
  1007. # avrdude versions before 5.5j).
  1008. # With this, TMS connects to RESET, TDI to MOSI, TDO to MISO and TCK
  1009. # to SCK (plus vcc/gnd of course)
  1010. programmer
  1011. id = "xil";
  1012. desc = "Xilinx JTAG cable";
  1013. type = "par";
  1014. connection_type = parallel;
  1015. mosi = 2;
  1016. sck = 3;
  1017. reset = 4;
  1018. buff = 5;
  1019. miso = 13;
  1020. vcc = 6;
  1021. ;
  1022. programmer
  1023. id = "dapa";
  1024. desc = "Direct AVR Parallel Access cable";
  1025. type = "par";
  1026. connection_type = parallel;
  1027. vcc = 3;
  1028. reset = 16;
  1029. sck = 1;
  1030. mosi = 2;
  1031. miso = 11;
  1032. ;
  1033. programmer
  1034. id = "atisp";
  1035. desc = "AT-ISP V1.1 programming cable for AVR-SDK1 from <http://micro-research.co.th/> micro-research.co.th";
  1036. type = "par";
  1037. connection_type = parallel;
  1038. reset = ~6;
  1039. sck = ~8;
  1040. mosi = ~7;
  1041. miso = ~10;
  1042. ;
  1043. programmer
  1044. id = "ere-isp-avr";
  1045. desc = "ERE ISP-AVR <http://www.ere.co.th/download/sch050713.pdf>";
  1046. type = "par";
  1047. connection_type = parallel;
  1048. reset = ~4;
  1049. sck = 3;
  1050. mosi = 2;
  1051. miso = 10;
  1052. ;
  1053. programmer
  1054. id = "blaster";
  1055. desc = "Altera ByteBlaster";
  1056. type = "par";
  1057. connection_type = parallel;
  1058. sck = 2;
  1059. miso = 11;
  1060. reset = 3;
  1061. mosi = 8;
  1062. buff = 14;
  1063. ;
  1064. # It is almost same as pony-stk200, except vcc on pin 5 to auto
  1065. # disconnect port (download on http://electropol.free.fr/spip/spip.php?article27)
  1066. programmer parent "pony-stk200"
  1067. id = "frank-stk200";
  1068. desc = "Frank STK200";
  1069. buff = ; # delete buff pin assignment
  1070. vcc = 5;
  1071. ;
  1072. # The AT98ISP Cable is a simple parallel dongle for AT89 family.
  1073. # http://www.atmel.com/dyn/products/tools_card.asp?tool_id=2877
  1074. programmer
  1075. id = "89isp";
  1076. desc = "Atmel at89isp cable";
  1077. type = "par";
  1078. connection_type = parallel;
  1079. reset = 17;
  1080. sck = 1;
  1081. mosi = 2;
  1082. miso = 10;
  1083. ;
  1084. #This programmer bitbangs GPIO lines using the Linux sysfs GPIO interface
  1085. #
  1086. #To enable it set the configuration below to match the GPIO lines connected to the
  1087. #relevant ISP header pins and uncomment the entry definition. In case you don't
  1088. #have the required permissions to edit this system wide config file put the
  1089. #entry in a separate <your name>.conf file and use it with -C+<your name>.conf
  1090. #on the command line.
  1091. #
  1092. #To check if your avrdude build has support for the linuxgpio programmer compiled in,
  1093. #use -c?type on the command line and look for linuxgpio in the list. If it's not available
  1094. #you need pass the --enable-linuxgpio=yes option to configure and recompile avrdude.
  1095. #
  1096. #programmer
  1097. # id = "linuxgpio";
  1098. # desc = "Use the Linux sysfs interface to bitbang GPIO lines";
  1099. # type = "linuxgpio";
  1100. # reset = ?;
  1101. # sck = ?;
  1102. # mosi = ?;
  1103. # miso = ?;
  1104. #;
  1105. #This programmer bitbangs GPIO lines using the Linux sysfs GPIO interface and direct
  1106. #GPIO memory registers read/write.
  1107. #
  1108. #To enable it set the configuration below to match the GPIO lines connected to the
  1109. #relevant ISP header pins and uncomment the entry definition. In case you don't
  1110. #have the required permissions to edit this system wide config file put the
  1111. #entry in a separate <your name>.conf file and use it with -C+<your name>.conf
  1112. #on the command line.
  1113. #
  1114. #To check if your avrdude build has support for the arduinotre programmer compiled in,
  1115. #use -c?type on the command line and look for arduinotre in the list. If it's not available
  1116. #you need pass the --enable-arduinotre=yes option to configure and recompile avrdude.
  1117. #
  1118. #programmer
  1119. # id = "arduinotre";
  1120. # desc = "Arduino TRE bitbanging using GPIO registers";
  1121. # type = "arduinotre";
  1122. # reset = ~65;
  1123. # sck = 49;
  1124. # mosi = 48;
  1125. # miso = 61;
  1126. #;
  1127. # some ultra cheap programmers use bitbanging on the
  1128. # serialport.
  1129. #
  1130. # PC - DB9 - Pins for RS232:
  1131. #
  1132. # GND 5 -- |O
  1133. # | O| <- 9 RI
  1134. # DTR 4 <- |O |
  1135. # | O| <- 8 CTS
  1136. # TXD 3 <- |O |
  1137. # | O| -> 7 RTS
  1138. # RXD 2 -> |O |
  1139. # | O| <- 6 DSR
  1140. # DCD 1 -> |O
  1141. #
  1142. # Using RXD is currently not supported.
  1143. # Using RI is not supported under Win32 but is supported under Posix.
  1144. # serial ponyprog design (dasa2 in uisp)
  1145. # reset=!txd sck=rts mosi=dtr miso=cts
  1146. programmer
  1147. id = "ponyser";
  1148. desc = "design ponyprog serial, reset=!txd sck=rts mosi=dtr miso=cts";
  1149. type = "serbb";
  1150. connection_type = serial;
  1151. reset = ~3;
  1152. sck = 7;
  1153. mosi = 4;
  1154. miso = 8;
  1155. ;
  1156. # Same as above, different name
  1157. # reset=!txd sck=rts mosi=dtr miso=cts
  1158. programmer parent "ponyser"
  1159. id = "siprog";
  1160. desc = "Lancos SI-Prog <http://www.lancos.com/siprogsch.html>";
  1161. ;
  1162. # unknown (dasa in uisp)
  1163. # reset=rts sck=dtr mosi=txd miso=cts
  1164. programmer
  1165. id = "dasa";
  1166. desc = "serial port banging, reset=rts sck=dtr mosi=txd miso=cts";
  1167. type = "serbb";
  1168. connection_type = serial;
  1169. reset = 7;
  1170. sck = 4;
  1171. mosi = 3;
  1172. miso = 8;
  1173. ;
  1174. # unknown (dasa3 in uisp)
  1175. # reset=!dtr sck=rts mosi=txd miso=cts
  1176. programmer
  1177. id = "dasa3";
  1178. desc = "serial port banging, reset=!dtr sck=rts mosi=txd miso=cts";
  1179. type = "serbb";
  1180. connection_type = serial;
  1181. reset = ~4;
  1182. sck = 7;
  1183. mosi = 3;
  1184. miso = 8;
  1185. ;
  1186. # C2N232i (jumper configuration "auto")
  1187. # reset=dtr sck=!rts mosi=!txd miso=!cts
  1188. programmer
  1189. id = "c2n232i";
  1190. desc = "serial port banging, reset=dtr sck=!rts mosi=!txd miso=!cts";
  1191. type = "serbb";
  1192. connection_type = serial;
  1193. reset = 4;
  1194. sck = ~7;
  1195. mosi = ~3;
  1196. miso = ~8;
  1197. ;
  1198. #
  1199. # PART DEFINITIONS
  1200. #
  1201. #------------------------------------------------------------
  1202. # ATtiny11
  1203. #------------------------------------------------------------
  1204. # This is an HVSP-only device.
  1205. part
  1206. id = "t11";
  1207. desc = "ATtiny11";
  1208. stk500_devcode = 0x11;
  1209. signature = 0x1e 0x90 0x04;
  1210. chip_erase_delay = 20000;
  1211. timeout = 200;
  1212. hvsp_controlstack =
  1213. 0x4C, 0x0C, 0x1C, 0x2C, 0x3C, 0x64, 0x74, 0x00,
  1214. 0x68, 0x78, 0x68, 0x68, 0x00, 0x00, 0x68, 0x78,
  1215. 0x78, 0x00, 0x6D, 0x0C, 0x80, 0x40, 0x20, 0x10,
  1216. 0x11, 0x08, 0x04, 0x02, 0x03, 0x08, 0x04, 0x00;
  1217. hventerstabdelay = 100;
  1218. progmodedelay = 0;
  1219. hvspcmdexedelay = 0;
  1220. synchcycles = 6;
  1221. latchcycles = 1;
  1222. togglevtg = 1;
  1223. poweroffdelay = 25;
  1224. resetdelayms = 0;
  1225. resetdelayus = 50;
  1226. hvleavestabdelay = 100;
  1227. resetdelay = 25;
  1228. chiperasepolltimeout = 40;
  1229. chiperasetime = 0;
  1230. programfusepolltimeout = 25;
  1231. programlockpolltimeout = 25;
  1232. memory "eeprom"
  1233. size = 64;
  1234. blocksize = 64;
  1235. readsize = 256;
  1236. delay = 5;
  1237. ;
  1238. memory "flash"
  1239. size = 1024;
  1240. blocksize = 128;
  1241. readsize = 256;
  1242. delay = 3;
  1243. ;
  1244. memory "signature"
  1245. size = 3;
  1246. ;
  1247. memory "lock"
  1248. size = 1;
  1249. ;
  1250. memory "calibration"
  1251. size = 1;
  1252. ;
  1253. memory "fuse"
  1254. size = 1;
  1255. ;
  1256. ;
  1257. #------------------------------------------------------------
  1258. # ATtiny12
  1259. #------------------------------------------------------------
  1260. part
  1261. id = "t12";
  1262. desc = "ATtiny12";
  1263. stk500_devcode = 0x12;
  1264. avr910_devcode = 0x55;
  1265. signature = 0x1e 0x90 0x05;
  1266. chip_erase_delay = 20000;
  1267. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  1268. "x x x x x x x x x x x x x x x x";
  1269. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
  1270. "x x x x x x x x x x x x x x x x";
  1271. timeout = 200;
  1272. stabdelay = 100;
  1273. cmdexedelay = 25;
  1274. synchloops = 32;
  1275. bytedelay = 0;
  1276. pollindex = 3;
  1277. pollvalue = 0x53;
  1278. predelay = 1;
  1279. postdelay = 1;
  1280. pollmethod = 0;
  1281. hvsp_controlstack =
  1282. 0x4C, 0x0C, 0x1C, 0x2C, 0x3C, 0x64, 0x74, 0x00,
  1283. 0x68, 0x78, 0x68, 0x68, 0x00, 0x00, 0x68, 0x78,
  1284. 0x78, 0x00, 0x6D, 0x0C, 0x80, 0x40, 0x20, 0x10,
  1285. 0x11, 0x08, 0x04, 0x02, 0x03, 0x08, 0x04, 0x00;
  1286. hventerstabdelay = 100;
  1287. hvspcmdexedelay = 0;
  1288. synchcycles = 6;
  1289. latchcycles = 1;
  1290. togglevtg = 1;
  1291. poweroffdelay = 25;
  1292. resetdelayms = 0;
  1293. resetdelayus = 50;
  1294. hvleavestabdelay = 100;
  1295. resetdelay = 25;
  1296. chiperasepolltimeout = 40;
  1297. chiperasetime = 0;
  1298. programfusepolltimeout = 25;
  1299. programlockpolltimeout = 25;
  1300. memory "eeprom"
  1301. size = 64;
  1302. min_write_delay = 9000;
  1303. max_write_delay = 20000;
  1304. readback_p1 = 0xff;
  1305. readback_p2 = 0xff;
  1306. read = "1 0 1 0 0 0 0 0 x x x x x x x x",
  1307. "x x a5 a4 a3 a2 a1 a0 o o o o o o o o";
  1308. write = "1 1 0 0 0 0 0 0 x x x x x x x x",
  1309. "x x a5 a4 a3 a2 a1 a0 i i i i i i i i";
  1310. mode = 0x04;
  1311. delay = 8;
  1312. blocksize = 64;
  1313. readsize = 256;
  1314. ;
  1315. memory "flash"
  1316. size = 1024;
  1317. min_write_delay = 4500;
  1318. max_write_delay = 20000;
  1319. readback_p1 = 0xff;
  1320. readback_p2 = 0xff;
  1321. read_lo = " 0 0 1 0 0 0 0 0",
  1322. " x x x x x x x a8",
  1323. " a7 a6 a5 a4 a3 a2 a1 a0",
  1324. " o o o o o o o o";
  1325. read_hi = " 0 0 1 0 1 0 0 0",
  1326. " x x x x x x x a8",
  1327. " a7 a6 a5 a4 a3 a2 a1 a0",
  1328. " o o o o o o o o";
  1329. write_lo = " 0 1 0 0 0 0 0 0",
  1330. " x x x x x x x a8",
  1331. " a7 a6 a5 a4 a3 a2 a1 a0",
  1332. " i i i i i i i i";
  1333. write_hi = " 0 1 0 0 1 0 0 0",
  1334. " x x x x x x x a8",
  1335. " a7 a6 a5 a4 a3 a2 a1 a0",
  1336. " i i i i i i i i";
  1337. mode = 0x04;
  1338. delay = 5;
  1339. blocksize = 128;
  1340. readsize = 256;
  1341. ;
  1342. memory "signature"
  1343. size = 3;
  1344. read = "0 0 1 1 0 0 0 0 x x x x x x x x",
  1345. "0 0 0 0 0 0 a1 a0 o o o o o o o o";
  1346. ;
  1347. memory "lock"
  1348. size = 1;
  1349. read = "0 1 0 1 1 0 0 0 x x x x x x x x",
  1350. "x x x x x x x x x x x x x o o x";
  1351. write = "1 0 1 0 1 1 0 0 1 1 1 1 1 i i 1",
  1352. "x x x x x x x x x x x x x x x x";
  1353. min_write_delay = 9000;
  1354. max_write_delay = 9000;
  1355. ;
  1356. memory "calibration"
  1357. size = 1;
  1358. read = "0 0 1 1 1 0 0 0 x x x x x x x x",
  1359. "0 0 0 0 0 0 0 0 o o o o o o o o";
  1360. ;
  1361. memory "fuse"
  1362. size = 1;
  1363. read = "0 1 0 1 0 0 0 0 x x x x x x x x",
  1364. "x x x x x x x x o o o o o o o o";
  1365. write = "1 0 1 0 1 1 0 0 1 0 1 x x x x x",
  1366. "x x x x x x x x i i i i i i i i";
  1367. min_write_delay = 9000;
  1368. max_write_delay = 9000;
  1369. ;
  1370. ;
  1371. #------------------------------------------------------------
  1372. # ATtiny13
  1373. #------------------------------------------------------------
  1374. part
  1375. id = "t13";
  1376. desc = "ATtiny13";
  1377. has_debugwire = yes;
  1378. flash_instr = 0xB4, 0x0E, 0x1E;
  1379. eeprom_instr = 0xBB, 0xFE, 0xBB, 0xEE, 0xBB, 0xCC, 0xB2, 0x0D,
  1380. 0xBC, 0x0E, 0xB4, 0x0E, 0xBA, 0x0D, 0xBB, 0xBC,
  1381. 0x99, 0xE1, 0xBB, 0xAC;
  1382. stk500_devcode = 0x14;
  1383. signature = 0x1e 0x90 0x07;
  1384. chip_erase_delay = 4000;
  1385. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  1386. "x x x x x x x x x x x x x x x x";
  1387. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
  1388. "x x x x x x x x x x x x x x x x";
  1389. timeout = 200;
  1390. stabdelay = 100;
  1391. cmdexedelay = 25;
  1392. synchloops = 32;
  1393. bytedelay = 0;
  1394. pollindex = 3;
  1395. pollvalue = 0x53;
  1396. predelay = 1;
  1397. postdelay = 1;
  1398. pollmethod = 1;
  1399. hvsp_controlstack =
  1400. 0x4C, 0x0C, 0x1C, 0x2C, 0x3C, 0x64, 0x74, 0x66,
  1401. 0x68, 0x78, 0x68, 0x68, 0x7A, 0x6A, 0x68, 0x78,
  1402. 0x78, 0x7D, 0x6D, 0x0C, 0x80, 0x40, 0x20, 0x10,
  1403. 0x11, 0x08, 0x04, 0x02, 0x03, 0x08, 0x04, 0x00;
  1404. hventerstabdelay = 100;
  1405. progmodedelay = 0;
  1406. hvspcmdexedelay = 0;
  1407. synchcycles = 6;
  1408. latchcycles = 1;
  1409. togglevtg = 1;
  1410. poweroffdelay = 25;
  1411. resetdelayms = 0;
  1412. resetdelayus = 90;
  1413. hvleavestabdelay = 100;
  1414. resetdelay = 25;
  1415. chiperasepolltimeout = 40;
  1416. chiperasetime = 0;
  1417. programfusepolltimeout = 25;
  1418. programlockpolltimeout = 25;
  1419. ocdrev = 0;
  1420. memory "eeprom"
  1421. size = 64;
  1422. page_size = 4;
  1423. min_write_delay = 4000;
  1424. max_write_delay = 4000;
  1425. readback_p1 = 0xff;
  1426. readback_p2 = 0xff;
  1427. read = "1 0 1 0 0 0 0 0 0 0 0 x x x x x",
  1428. "x x a5 a4 a3 a2 a1 a0 o o o o o o o o";
  1429. write = "1 1 0 0 0 0 0 0 0 0 0 x x x x x",
  1430. "x x a5 a4 a3 a2 a1 a0 i i i i i i i i";
  1431. loadpage_lo = " 1 1 0 0 0 0 0 1",
  1432. " 0 0 0 0 0 0 0 0",
  1433. " 0 0 0 0 0 0 a1 a0",
  1434. " i i i i i i i i";
  1435. writepage = " 1 1 0 0 0 0 1 0",
  1436. " 0 0 x x x x x x",
  1437. " x x a5 a4 a3 a2 0 0",
  1438. " x x x x x x x x";
  1439. mode = 0x41;
  1440. delay = 5;
  1441. blocksize = 4;
  1442. readsize = 256;
  1443. ;
  1444. memory "flash"
  1445. paged = yes;
  1446. size = 1024;
  1447. page_size = 32;
  1448. num_pages = 32;
  1449. min_write_delay = 4500;
  1450. max_write_delay = 4500;
  1451. readback_p1 = 0xff;
  1452. readback_p2 = 0xff;
  1453. read_lo = " 0 0 1 0 0 0 0 0",
  1454. " 0 0 0 0 0 0 0 a8",
  1455. " a7 a6 a5 a4 a3 a2 a1 a0",
  1456. " o o o o o o o o";
  1457. read_hi = " 0 0 1 0 1 0 0 0",
  1458. " 0 0 0 0 0 0 0 a8",
  1459. " a7 a6 a5 a4 a3 a2 a1 a0",
  1460. " o o o o o o o o";
  1461. loadpage_lo = " 0 1 0 0 0 0 0 0",
  1462. " 0 0 0 x x x x x",
  1463. " x x x x a3 a2 a1 a0",
  1464. " i i i i i i i i";
  1465. loadpage_hi = " 0 1 0 0 1 0 0 0",
  1466. " 0 0 0 x x x x x",
  1467. " x x x x a3 a2 a1 a0",
  1468. " i i i i i i i i";
  1469. writepage = " 0 1 0 0 1 1 0 0",
  1470. " 0 0 0 0 0 0 0 a8",
  1471. " a7 a6 a5 a4 x x x x",
  1472. " x x x x x x x x";
  1473. mode = 0x41;
  1474. delay = 6;
  1475. blocksize = 32;
  1476. readsize = 256;
  1477. ;
  1478. memory "signature"
  1479. size = 3;
  1480. read = "0 0 1 1 0 0 0 0 0 0 0 x x x x x",
  1481. "x x x x x x a1 a0 o o o o o o o o";
  1482. ;
  1483. memory "lock"
  1484. size = 1;
  1485. min_write_delay = 4500;
  1486. max_write_delay = 4500;
  1487. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  1488. "x x x x x x x x x x o o o o o o";
  1489. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  1490. "x x x x x x x x 1 1 i i i i i i";
  1491. ;
  1492. memory "calibration"
  1493. size = 2;
  1494. read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
  1495. "0 0 0 0 0 0 0 a0 o o o o o o o o";
  1496. ;
  1497. memory "lfuse"
  1498. size = 1;
  1499. min_write_delay = 4500;
  1500. max_write_delay = 4500;
  1501. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  1502. "x x x x x x x x i i i i i i i i";
  1503. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  1504. "x x x x x x x x o o o o o o o o";
  1505. ;
  1506. memory "hfuse"
  1507. size = 1;
  1508. min_write_delay = 4500;
  1509. max_write_delay = 4500;
  1510. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  1511. "x x x x x x x x i i i i i i i i";
  1512. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  1513. "x x x x x x x x o o o o o o o o";
  1514. ;
  1515. ;
  1516. #------------------------------------------------------------
  1517. # ATtiny15
  1518. #------------------------------------------------------------
  1519. part
  1520. id = "t15";
  1521. desc = "ATtiny15";
  1522. stk500_devcode = 0x13;
  1523. avr910_devcode = 0x56;
  1524. signature = 0x1e 0x90 0x06;
  1525. chip_erase_delay = 8200;
  1526. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  1527. "x x x x x x x x x x x x x x x x";
  1528. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
  1529. "x x x x x x x x x x x x x x x x";
  1530. timeout = 200;
  1531. stabdelay = 100;
  1532. cmdexedelay = 25;
  1533. synchloops = 32;
  1534. bytedelay = 0;
  1535. pollindex = 3;
  1536. pollvalue = 0x53;
  1537. predelay = 1;
  1538. postdelay = 1;
  1539. pollmethod = 0;
  1540. hvsp_controlstack =
  1541. 0x4C, 0x0C, 0x1C, 0x2C, 0x3C, 0x64, 0x74, 0x00,
  1542. 0x68, 0x78, 0x68, 0x68, 0x00, 0x00, 0x68, 0x78,
  1543. 0x78, 0x00, 0x6D, 0x0C, 0x80, 0x40, 0x20, 0x10,
  1544. 0x11, 0x08, 0x04, 0x02, 0x03, 0x08, 0x04, 0x00;
  1545. hventerstabdelay = 100;
  1546. hvspcmdexedelay = 5;
  1547. synchcycles = 6;
  1548. latchcycles = 16;
  1549. togglevtg = 1;
  1550. poweroffdelay = 25;
  1551. resetdelayms = 0;
  1552. resetdelayus = 50;
  1553. hvleavestabdelay = 100;
  1554. resetdelay = 25;
  1555. chiperasepolltimeout = 40;
  1556. chiperasetime = 0;
  1557. programfusepolltimeout = 25;
  1558. programlockpolltimeout = 25;
  1559. memory "eeprom"
  1560. size = 64;
  1561. min_write_delay = 8200;
  1562. max_write_delay = 8200;
  1563. readback_p1 = 0xff;
  1564. readback_p2 = 0xff;
  1565. read = "1 0 1 0 0 0 0 0 x x x x x x x x",
  1566. "x x a5 a4 a3 a2 a1 a0 o o o o o o o o";
  1567. write = "1 1 0 0 0 0 0 0 x x x x x x x x",
  1568. "x x a5 a4 a3 a2 a1 a0 i i i i i i i i";
  1569. mode = 0x04;
  1570. delay = 10;
  1571. blocksize = 64;
  1572. readsize = 256;
  1573. ;
  1574. memory "flash"
  1575. size = 1024;
  1576. min_write_delay = 4100;
  1577. max_write_delay = 4100;
  1578. readback_p1 = 0xff;
  1579. readback_p2 = 0xff;
  1580. read_lo = " 0 0 1 0 0 0 0 0",
  1581. " x x x x x x x a8",
  1582. " a7 a6 a5 a4 a3 a2 a1 a0",
  1583. " o o o o o o o o";
  1584. read_hi = " 0 0 1 0 1 0 0 0",
  1585. " x x x x x x x a8",
  1586. " a7 a6 a5 a4 a3 a2 a1 a0",
  1587. " o o o o o o o o";
  1588. write_lo = " 0 1 0 0 0 0 0 0",
  1589. " x x x x x x x a8",
  1590. " a7 a6 a5 a4 a3 a2 a1 a0",
  1591. " i i i i i i i i";
  1592. write_hi = " 0 1 0 0 1 0 0 0",
  1593. " x x x x x x x a8",
  1594. " a7 a6 a5 a4 a3 a2 a1 a0",
  1595. " i i i i i i i i";
  1596. mode = 0x04;
  1597. delay = 5;
  1598. blocksize = 128;
  1599. readsize = 256;
  1600. ;
  1601. memory "signature"
  1602. size = 3;
  1603. read = "0 0 1 1 0 0 0 0 x x x x x x x x",
  1604. "0 0 0 0 0 0 a1 a0 o o o o o o o o";
  1605. ;
  1606. memory "lock"
  1607. size = 1;
  1608. read = "0 1 0 1 1 0 0 0 x x x x x x x x",
  1609. "x x x x x x x x x x x x x o o x";
  1610. write = "1 0 1 0 1 1 0 0 1 1 1 1 1 i i 1",
  1611. "x x x x x x x x x x x x x x x x";
  1612. min_write_delay = 9000;
  1613. max_write_delay = 9000;
  1614. ;
  1615. memory "calibration"
  1616. size = 1;
  1617. read = "0 0 1 1 1 0 0 0 x x x x x x x x",
  1618. "0 0 0 0 0 0 0 0 o o o o o o o o";
  1619. ;
  1620. memory "fuse"
  1621. size = 1;
  1622. read = "0 1 0 1 0 0 0 0 x x x x x x x x",
  1623. "x x x x x x x x o o o o x x o o";
  1624. write = "1 0 1 0 1 1 0 0 1 0 1 x x x x x",
  1625. "x x x x x x x x i i i i 1 1 i i";
  1626. min_write_delay = 9000;
  1627. max_write_delay = 9000;
  1628. ;
  1629. ;
  1630. #------------------------------------------------------------
  1631. # AT90s1200
  1632. #------------------------------------------------------------
  1633. part
  1634. id = "1200";
  1635. desc = "AT90S1200";
  1636. is_at90s1200 = yes;
  1637. stk500_devcode = 0x33;
  1638. avr910_devcode = 0x13;
  1639. signature = 0x1e 0x90 0x01;
  1640. pagel = 0xd7;
  1641. bs2 = 0xa0;
  1642. chip_erase_delay = 20000;
  1643. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  1644. "x x x x x x x x x x x x x x x x";
  1645. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 0 0 0 0 0",
  1646. "x x x x x x x x x x x x x x x x";
  1647. timeout = 200;
  1648. stabdelay = 100;
  1649. cmdexedelay = 25;
  1650. synchloops = 1;
  1651. bytedelay = 0;
  1652. pollindex = 0;
  1653. pollvalue = 0xFF;
  1654. predelay = 1;
  1655. postdelay = 1;
  1656. pollmethod = 0;
  1657. pp_controlstack =
  1658. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  1659. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  1660. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  1661. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  1662. hventerstabdelay = 100;
  1663. progmodedelay = 0;
  1664. latchcycles = 0;
  1665. togglevtg = 0;
  1666. poweroffdelay = 0;
  1667. resetdelayms = 0;
  1668. resetdelayus = 0;
  1669. hvleavestabdelay = 15;
  1670. chiperasepulsewidth = 15;
  1671. chiperasepolltimeout = 0;
  1672. programfusepulsewidth = 2;
  1673. programfusepolltimeout = 0;
  1674. programlockpulsewidth = 0;
  1675. programlockpolltimeout = 1;
  1676. memory "eeprom"
  1677. size = 64;
  1678. min_write_delay = 4000;
  1679. max_write_delay = 9000;
  1680. readback_p1 = 0x00;
  1681. readback_p2 = 0xff;
  1682. read = "1 0 1 0 0 0 0 0 x x x x x x x x",
  1683. "x x a5 a4 a3 a2 a1 a0 o o o o o o o o";
  1684. write = "1 1 0 0 0 0 0 0 x x x x x x x x",
  1685. "x x a5 a4 a3 a2 a1 a0 i i i i i i i i";
  1686. mode = 0x04;
  1687. delay = 20;
  1688. blocksize = 32;
  1689. readsize = 256;
  1690. ;
  1691. memory "flash"
  1692. size = 1024;
  1693. min_write_delay = 4000;
  1694. max_write_delay = 9000;
  1695. readback_p1 = 0xff;
  1696. readback_p2 = 0xff;
  1697. read_lo = " 0 0 1 0 0 0 0 0",
  1698. " x x x x x x x a8",
  1699. " a7 a6 a5 a4 a3 a2 a1 a0",
  1700. " o o o o o o o o";
  1701. read_hi = " 0 0 1 0 1 0 0 0",
  1702. " x x x x x x x a8",
  1703. " a7 a6 a5 a4 a3 a2 a1 a0",
  1704. " o o o o o o o o";
  1705. write_lo = " 0 1 0 0 0 0 0 0",
  1706. " x x x x x x x a8",
  1707. " a7 a6 a5 a4 a3 a2 a1 a0",
  1708. " i i i i i i i i";
  1709. write_hi = " 0 1 0 0 1 0 0 0",
  1710. " x x x x x x x a8",
  1711. " a7 a6 a5 a4 a3 a2 a1 a0",
  1712. " i i i i i i i i";
  1713. mode = 0x02;
  1714. delay = 15;
  1715. blocksize = 128;
  1716. readsize = 256;
  1717. ;
  1718. memory "signature"
  1719. size = 3;
  1720. read = "0 0 1 1 0 0 0 0 x x x x x x x x",
  1721. "x x x x x x a1 a0 o o o o o o o o";
  1722. ;
  1723. memory "fuse"
  1724. size = 1;
  1725. ;
  1726. memory "lock"
  1727. size = 1;
  1728. min_write_delay = 9000;
  1729. max_write_delay = 20000;
  1730. write = "1 0 1 0 1 1 0 0 1 1 1 1 1 i i 1",
  1731. "x x x x x x x x x x x x x x x x";
  1732. ;
  1733. ;
  1734. #------------------------------------------------------------
  1735. # AT90s4414
  1736. #------------------------------------------------------------
  1737. part
  1738. id = "4414";
  1739. desc = "AT90S4414";
  1740. stk500_devcode = 0x50;
  1741. avr910_devcode = 0x28;
  1742. signature = 0x1e 0x92 0x01;
  1743. chip_erase_delay = 20000;
  1744. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  1745. "x x x x x x x x x x x x x x x x";
  1746. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 0 0 0 0 0",
  1747. "x x x x x x x x x x x x x x x x";
  1748. timeout = 200;
  1749. stabdelay = 100;
  1750. cmdexedelay = 25;
  1751. synchloops = 32;
  1752. bytedelay = 0;
  1753. pollindex = 3;
  1754. pollvalue = 0x53;
  1755. predelay = 1;
  1756. postdelay = 1;
  1757. pollmethod = 0;
  1758. pp_controlstack =
  1759. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  1760. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  1761. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  1762. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x01;
  1763. hventerstabdelay = 100;
  1764. progmodedelay = 0;
  1765. latchcycles = 0;
  1766. togglevtg = 0;
  1767. poweroffdelay = 0;
  1768. resetdelayms = 0;
  1769. resetdelayus = 0;
  1770. hvleavestabdelay = 15;
  1771. chiperasepulsewidth = 15;
  1772. chiperasepolltimeout = 0;
  1773. programfusepulsewidth = 2;
  1774. programfusepolltimeout = 0;
  1775. programlockpulsewidth = 0;
  1776. programlockpolltimeout = 1;
  1777. memory "eeprom"
  1778. size = 256;
  1779. min_write_delay = 9000;
  1780. max_write_delay = 20000;
  1781. readback_p1 = 0x80;
  1782. readback_p2 = 0x7f;
  1783. read = " 1 0 1 0 0 0 0 0 x x x x x x x a8",
  1784. "a7 a6 a5 a4 a3 a2 a1 a0 o o o o o o o o";
  1785. write = " 1 1 0 0 0 0 0 0 x x x x x x x a8",
  1786. "a7 a6 a5 a4 a3 a2 a1 a0 i i i i i i i i";
  1787. mode = 0x04;
  1788. delay = 12;
  1789. blocksize = 64;
  1790. readsize = 256;
  1791. ;
  1792. memory "flash"
  1793. size = 4096;
  1794. min_write_delay = 9000;
  1795. max_write_delay = 20000;
  1796. readback_p1 = 0x7f;
  1797. readback_p2 = 0x7f;
  1798. read_lo = " 0 0 1 0 0 0 0 0",
  1799. " x x x x a11 a10 a9 a8",
  1800. " a7 a6 a5 a4 a3 a2 a1 a0",
  1801. " o o o o o o o o";
  1802. read_hi = " 0 0 1 0 1 0 0 0",
  1803. " x x x x a11 a10 a9 a8",
  1804. " a7 a6 a5 a4 a3 a2 a1 a0",
  1805. " o o o o o o o o";
  1806. write_lo = " 0 1 0 0 0 0 0 0",
  1807. " x x x x a11 a10 a9 a8",
  1808. " a7 a6 a5 a4 a3 a2 a1 a0",
  1809. " i i i i i i i i";
  1810. write_hi = " 0 1 0 0 1 0 0 0",
  1811. " x x x x a11 a10 a9 a8",
  1812. " a7 a6 a5 a4 a3 a2 a1 a0",
  1813. " i i i i i i i i";
  1814. mode = 0x04;
  1815. delay = 12;
  1816. blocksize = 64;
  1817. readsize = 256;
  1818. ;
  1819. memory "signature"
  1820. size = 3;
  1821. read = "0 0 1 1 0 0 0 0 x x x x x x x x",
  1822. "x x x x x x a1 a0 o o o o o o o o";
  1823. ;
  1824. memory "fuse"
  1825. size = 1;
  1826. ;
  1827. memory "lock"
  1828. size = 1;
  1829. write = "1 0 1 0 1 1 0 0 1 1 1 1 1 i i 1",
  1830. "x x x x x x x x x x x x x x x x";
  1831. min_write_delay = 9000;
  1832. max_write_delay = 9000;
  1833. ;
  1834. ;
  1835. #------------------------------------------------------------
  1836. # AT90s2313
  1837. #------------------------------------------------------------
  1838. part
  1839. id = "2313";
  1840. desc = "AT90S2313";
  1841. stk500_devcode = 0x40;
  1842. avr910_devcode = 0x20;
  1843. signature = 0x1e 0x91 0x01;
  1844. chip_erase_delay = 20000;
  1845. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  1846. "x x x x x x x x x x x x x x x x";
  1847. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 0 0 0 0 0",
  1848. "x x x x x x x x x x x x x x x x";
  1849. timeout = 200;
  1850. stabdelay = 100;
  1851. cmdexedelay = 25;
  1852. synchloops = 32;
  1853. bytedelay = 0;
  1854. pollindex = 3;
  1855. pollvalue = 0x53;
  1856. predelay = 1;
  1857. postdelay = 1;
  1858. pollmethod = 0;
  1859. pp_controlstack =
  1860. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  1861. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  1862. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  1863. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  1864. hventerstabdelay = 100;
  1865. progmodedelay = 0;
  1866. latchcycles = 0;
  1867. togglevtg = 0;
  1868. poweroffdelay = 0;
  1869. resetdelayms = 0;
  1870. resetdelayus = 0;
  1871. hvleavestabdelay = 15;
  1872. chiperasepulsewidth = 15;
  1873. chiperasepolltimeout = 0;
  1874. programfusepulsewidth = 2;
  1875. programfusepolltimeout = 0;
  1876. programlockpulsewidth = 0;
  1877. programlockpolltimeout = 1;
  1878. memory "eeprom"
  1879. size = 128;
  1880. min_write_delay = 4000;
  1881. max_write_delay = 9000;
  1882. readback_p1 = 0x80;
  1883. readback_p2 = 0x7f;
  1884. read = "1 0 1 0 0 0 0 0 x x x x x x x x",
  1885. "x a6 a5 a4 a3 a2 a1 a0 o o o o o o o o";
  1886. write = "1 1 0 0 0 0 0 0 x x x x x x x x",
  1887. "x a6 a5 a4 a3 a2 a1 a0 i i i i i i i i";
  1888. mode = 0x04;
  1889. delay = 12;
  1890. blocksize = 64;
  1891. readsize = 256;
  1892. ;
  1893. memory "flash"
  1894. size = 2048;
  1895. min_write_delay = 4000;
  1896. max_write_delay = 9000;
  1897. readback_p1 = 0x7f;
  1898. readback_p2 = 0x7f;
  1899. read_lo = " 0 0 1 0 0 0 0 0",
  1900. " x x x x x x a9 a8",
  1901. " a7 a6 a5 a4 a3 a2 a1 a0",
  1902. " o o o o o o o o";
  1903. read_hi = " 0 0 1 0 1 0 0 0",
  1904. " x x x x x x a9 a8",
  1905. " a7 a6 a5 a4 a3 a2 a1 a0",
  1906. " o o o o o o o o";
  1907. write_lo = " 0 1 0 0 0 0 0 0",
  1908. " x x x x x x a9 a8",
  1909. " a7 a6 a5 a4 a3 a2 a1 a0",
  1910. " i i i i i i i i";
  1911. write_hi = " 0 1 0 0 1 0 0 0",
  1912. " x x x x x x a9 a8",
  1913. " a7 a6 a5 a4 a3 a2 a1 a0",
  1914. " i i i i i i i i";
  1915. mode = 0x04;
  1916. delay = 12;
  1917. blocksize = 128;
  1918. readsize = 256;
  1919. ;
  1920. memory "signature"
  1921. size = 3;
  1922. read = "0 0 1 1 0 0 0 0 x x x x x x x x",
  1923. "x x x x x x a1 a0 o o o o o o o o";
  1924. ;
  1925. memory "fuse"
  1926. size = 1;
  1927. ;
  1928. memory "lock"
  1929. size = 1;
  1930. write = "1 0 1 0 1 1 0 0 1 1 1 x x i i x",
  1931. "x x x x x x x x x x x x x x x x";
  1932. min_write_delay = 9000;
  1933. max_write_delay = 9000;
  1934. ;
  1935. ;
  1936. #------------------------------------------------------------
  1937. # AT90s2333
  1938. #------------------------------------------------------------
  1939. part
  1940. id = "2333";
  1941. ##### WARNING: No XML file for device 'AT90S2333'! #####
  1942. desc = "AT90S2333";
  1943. stk500_devcode = 0x42;
  1944. avr910_devcode = 0x34;
  1945. signature = 0x1e 0x91 0x05;
  1946. chip_erase_delay = 20000;
  1947. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  1948. "x x x x x x x x x x x x x x x x";
  1949. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 0 0 0 0 0",
  1950. "x x x x x x x x x x x x x x x x";
  1951. timeout = 200;
  1952. stabdelay = 100;
  1953. cmdexedelay = 25;
  1954. synchloops = 32;
  1955. bytedelay = 0;
  1956. pollindex = 3;
  1957. pollvalue = 0x53;
  1958. predelay = 1;
  1959. postdelay = 1;
  1960. pollmethod = 0;
  1961. pp_controlstack =
  1962. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  1963. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  1964. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  1965. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  1966. hventerstabdelay = 100;
  1967. progmodedelay = 0;
  1968. latchcycles = 0;
  1969. togglevtg = 0;
  1970. poweroffdelay = 0;
  1971. resetdelayms = 0;
  1972. resetdelayus = 0;
  1973. hvleavestabdelay = 15;
  1974. chiperasepulsewidth = 15;
  1975. chiperasepolltimeout = 0;
  1976. programfusepulsewidth = 2;
  1977. programfusepolltimeout = 0;
  1978. programlockpulsewidth = 0;
  1979. programlockpolltimeout = 1;
  1980. memory "eeprom"
  1981. size = 128;
  1982. min_write_delay = 9000;
  1983. max_write_delay = 20000;
  1984. readback_p1 = 0x00;
  1985. readback_p2 = 0xff;
  1986. read = "1 0 1 0 0 0 0 0 x x x x x x x x",
  1987. "x a6 a5 a4 a3 a2 a1 a0 o o o o o o o o";
  1988. write = "1 1 0 0 0 0 0 0 x x x x x x x x",
  1989. "x a6 a5 a4 a3 a2 a1 a0 i i i i i i i i";
  1990. mode = 0x04;
  1991. delay = 12;
  1992. blocksize = 128;
  1993. readsize = 256;
  1994. ;
  1995. memory "flash"
  1996. size = 2048;
  1997. min_write_delay = 9000;
  1998. max_write_delay = 20000;
  1999. readback_p1 = 0xff;
  2000. readback_p2 = 0xff;
  2001. read_lo = " 0 0 1 0 0 0 0 0",
  2002. " x x x x x x a9 a8",
  2003. " a7 a6 a5 a4 a3 a2 a1 a0",
  2004. " o o o o o o o o";
  2005. read_hi = " 0 0 1 0 1 0 0 0",
  2006. " x x x x x x a9 a8",
  2007. " a7 a6 a5 a4 a3 a2 a1 a0",
  2008. " o o o o o o o o";
  2009. write_lo = " 0 1 0 0 0 0 0 0",
  2010. " x x x x x x a9 a8",
  2011. " a7 a6 a5 a4 a3 a2 a1 a0",
  2012. " i i i i i i i i";
  2013. write_hi = " 0 1 0 0 1 0 0 0",
  2014. " x x x x x x a9 a8",
  2015. " a7 a6 a5 a4 a3 a2 a1 a0",
  2016. " i i i i i i i i";
  2017. mode = 0x04;
  2018. delay = 12;
  2019. blocksize = 128;
  2020. readsize = 256;
  2021. ;
  2022. memory "signature"
  2023. size = 3;
  2024. read = "0 0 1 1 0 0 0 0 x x x x x x x x",
  2025. "x x x x x x a1 a0 o o o o o o o o";
  2026. ;
  2027. memory "fuse"
  2028. size = 1;
  2029. min_write_delay = 9000;
  2030. max_write_delay = 20000;
  2031. pwroff_after_write = yes;
  2032. read = "0 1 0 1 0 0 0 0 x x x x x x x x",
  2033. "x x x x x x x x x x o o o o o o";
  2034. write = "1 0 1 0 1 1 0 0 1 0 1 i i i i i",
  2035. "x x x x x x x x x x x x x x x x";
  2036. ;
  2037. memory "lock"
  2038. size = 1;
  2039. min_write_delay = 9000;
  2040. max_write_delay = 20000;
  2041. read = "0 1 0 1 1 0 0 0 x x x x x x x x",
  2042. "x x x x x x x x x x x x x o o x";
  2043. write = "1 0 1 0 1 1 0 0 1 1 1 1 1 i i 1",
  2044. "x x x x x x x x x x x x x x x x";
  2045. ;
  2046. ;
  2047. #------------------------------------------------------------
  2048. # AT90s2343 (also AT90s2323 and ATtiny22)
  2049. #------------------------------------------------------------
  2050. part
  2051. id = "2343";
  2052. desc = "AT90S2343";
  2053. stk500_devcode = 0x43;
  2054. avr910_devcode = 0x4c;
  2055. signature = 0x1e 0x91 0x03;
  2056. chip_erase_delay = 18000;
  2057. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  2058. "x x x x x x x x x x x x x x x x";
  2059. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
  2060. "x x x x x x x x x x x x x x x x";
  2061. timeout = 200;
  2062. stabdelay = 100;
  2063. cmdexedelay = 25;
  2064. synchloops = 32;
  2065. bytedelay = 0;
  2066. pollindex = 3;
  2067. pollvalue = 0x53;
  2068. predelay = 1;
  2069. postdelay = 1;
  2070. pollmethod = 0;
  2071. hvsp_controlstack =
  2072. 0x4C, 0x0C, 0x1C, 0x2C, 0x3C, 0x64, 0x74, 0x00,
  2073. 0x68, 0x78, 0x68, 0x68, 0x00, 0x00, 0x68, 0x78,
  2074. 0x78, 0x00, 0x6D, 0x0C, 0x80, 0x40, 0x20, 0x10,
  2075. 0x11, 0x08, 0x04, 0x02, 0x03, 0x08, 0x04, 0x00;
  2076. hventerstabdelay = 100;
  2077. hvspcmdexedelay = 0;
  2078. synchcycles = 6;
  2079. latchcycles = 1;
  2080. togglevtg = 0;
  2081. poweroffdelay = 25;
  2082. resetdelayms = 0;
  2083. resetdelayus = 50;
  2084. hvleavestabdelay = 100;
  2085. resetdelay = 25;
  2086. chiperasepolltimeout = 40;
  2087. chiperasetime = 0;
  2088. programfusepolltimeout = 25;
  2089. programlockpolltimeout = 25;
  2090. memory "eeprom"
  2091. size = 128;
  2092. min_write_delay = 9000;
  2093. max_write_delay = 20000;
  2094. readback_p1 = 0x00;
  2095. readback_p2 = 0xff;
  2096. read = "1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0",
  2097. "x a6 a5 a4 a3 a2 a1 a0 o o o o o o o o";
  2098. write = "1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0",
  2099. "x a6 a5 a4 a3 a2 a1 a0 i i i i i i i i";
  2100. mode = 0x04;
  2101. delay = 12;
  2102. blocksize = 64;
  2103. readsize = 256;
  2104. ;
  2105. memory "flash"
  2106. size = 2048;
  2107. min_write_delay = 9000;
  2108. max_write_delay = 20000;
  2109. readback_p1 = 0xff;
  2110. readback_p2 = 0xff;
  2111. read_lo = " 0 0 1 0 0 0 0 0",
  2112. " x x x x x x a9 a8",
  2113. " a7 a6 a5 a4 a3 a2 a1 a0",
  2114. " o o o o o o o o";
  2115. read_hi = " 0 0 1 0 1 0 0 0",
  2116. " x x x x x x a9 a8",
  2117. " a7 a6 a5 a4 a3 a2 a1 a0",
  2118. " o o o o o o o o";
  2119. write_lo = " 0 1 0 0 0 0 0 0",
  2120. " x x x x x x a9 a8",
  2121. " a7 a6 a5 a4 a3 a2 a1 a0",
  2122. " i i i i i i i i";
  2123. write_hi = " 0 1 0 0 1 0 0 0",
  2124. " x x x x x x a9 a8",
  2125. " a7 a6 a5 a4 a3 a2 a1 a0",
  2126. " i i i i i i i i";
  2127. mode = 0x04;
  2128. delay = 12;
  2129. blocksize = 128;
  2130. readsize = 128;
  2131. ;
  2132. memory "signature"
  2133. size = 3;
  2134. read = "0 0 1 1 0 0 0 0 x x x x x x x x",
  2135. "x x x x x x a1 a0 o o o o o o o o";
  2136. ;
  2137. memory "fuse"
  2138. size = 1;
  2139. min_write_delay = 9000;
  2140. max_write_delay = 20000;
  2141. read = "0 1 0 1 1 0 0 0 x x x x x x x x",
  2142. "x x x x x x x x o o o x x x x o";
  2143. write = "1 0 1 0 1 1 0 0 1 0 1 1 1 1 1 i",
  2144. "x x x x x x x x x x x x x x x x";
  2145. ;
  2146. memory "lock"
  2147. size = 1;
  2148. min_write_delay = 9000;
  2149. max_write_delay = 20000;
  2150. read = "0 1 0 1 1 0 0 0 x x x x x x x x",
  2151. "x x x x x x x x o o o x x x x o";
  2152. write = "1 0 1 0 1 1 0 0 1 1 1 1 1 i i 1",
  2153. "x x x x x x x x x x x x x x x x";
  2154. ;
  2155. ;
  2156. #------------------------------------------------------------
  2157. # AT90s4433
  2158. #------------------------------------------------------------
  2159. part
  2160. id = "4433";
  2161. desc = "AT90S4433";
  2162. stk500_devcode = 0x51;
  2163. avr910_devcode = 0x30;
  2164. signature = 0x1e 0x92 0x03;
  2165. chip_erase_delay = 20000;
  2166. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  2167. "x x x x x x x x x x x x x x x x";
  2168. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 0 0 0 0 0",
  2169. "x x x x x x x x x x x x x x x x";
  2170. timeout = 200;
  2171. stabdelay = 100;
  2172. cmdexedelay = 25;
  2173. synchloops = 32;
  2174. bytedelay = 0;
  2175. pollindex = 3;
  2176. pollvalue = 0x53;
  2177. predelay = 1;
  2178. postdelay = 1;
  2179. pollmethod = 0;
  2180. pp_controlstack =
  2181. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  2182. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  2183. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  2184. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  2185. hventerstabdelay = 100;
  2186. progmodedelay = 0;
  2187. latchcycles = 0;
  2188. togglevtg = 0;
  2189. poweroffdelay = 0;
  2190. resetdelayms = 0;
  2191. resetdelayus = 0;
  2192. hvleavestabdelay = 15;
  2193. chiperasepulsewidth = 15;
  2194. chiperasepolltimeout = 0;
  2195. programfusepulsewidth = 2;
  2196. programfusepolltimeout = 0;
  2197. programlockpulsewidth = 0;
  2198. programlockpolltimeout = 1;
  2199. memory "eeprom"
  2200. size = 256;
  2201. min_write_delay = 9000;
  2202. max_write_delay = 20000;
  2203. readback_p1 = 0x00;
  2204. readback_p2 = 0xff;
  2205. read = " 1 0 1 0 0 0 0 0 x x x x x x x x",
  2206. "a7 a6 a5 a4 a3 a2 a1 a0 o o o o o o o o";
  2207. write = " 1 1 0 0 0 0 0 0 x x x x x x x x",
  2208. "a7 a6 a5 a4 a3 a2 a1 a0 i i i i i i i i";
  2209. mode = 0x04;
  2210. delay = 12;
  2211. blocksize = 128;
  2212. readsize = 256;
  2213. ;
  2214. memory "flash"
  2215. size = 4096;
  2216. min_write_delay = 9000;
  2217. max_write_delay = 20000;
  2218. readback_p1 = 0xff;
  2219. readback_p2 = 0xff;
  2220. read_lo = " 0 0 1 0 0 0 0 0",
  2221. " x x x x x a10 a9 a8",
  2222. " a7 a6 a5 a4 a3 a2 a1 a0",
  2223. " o o o o o o o o";
  2224. read_hi = " 0 0 1 0 1 0 0 0",
  2225. " x x x x x a10 a9 a8",
  2226. " a7 a6 a5 a4 a3 a2 a1 a0",
  2227. " o o o o o o o o";
  2228. write_lo = " 0 1 0 0 0 0 0 0",
  2229. " x x x x x a10 a9 a8",
  2230. " a7 a6 a5 a4 a3 a2 a1 a0",
  2231. " i i i i i i i i";
  2232. write_hi = " 0 1 0 0 1 0 0 0",
  2233. " x x x x x a10 a9 a8",
  2234. " a7 a6 a5 a4 a3 a2 a1 a0",
  2235. " i i i i i i i i";
  2236. mode = 0x04;
  2237. delay = 12;
  2238. blocksize = 128;
  2239. readsize = 256;
  2240. ;
  2241. memory "signature"
  2242. size = 3;
  2243. read = "0 0 1 1 0 0 0 0 x x x x x x x x",
  2244. "x x x x x x a1 a0 o o o o o o o o";
  2245. ;
  2246. memory "fuse"
  2247. size = 1;
  2248. min_write_delay = 9000;
  2249. max_write_delay = 20000;
  2250. pwroff_after_write = yes;
  2251. read = "0 1 0 1 0 0 0 0 x x x x x x x x",
  2252. "x x x x x x x x x x o o o o o o";
  2253. write = "1 0 1 0 1 1 0 0 1 0 1 i i i i i",
  2254. "x x x x x x x x x x x x x x x x";
  2255. ;
  2256. memory "lock"
  2257. size = 1;
  2258. min_write_delay = 9000;
  2259. max_write_delay = 20000;
  2260. read = "0 1 0 1 1 0 0 0 x x x x x x x x",
  2261. "x x x x x x x x x x x x x o o x";
  2262. write = "1 0 1 0 1 1 0 0 1 1 1 1 1 i i 1",
  2263. "x x x x x x x x x x x x x x x x";
  2264. ;
  2265. ;
  2266. #------------------------------------------------------------
  2267. # AT90s4434
  2268. #------------------------------------------------------------
  2269. part
  2270. id = "4434";
  2271. ##### WARNING: No XML file for device 'AT90S4434'! #####
  2272. desc = "AT90S4434";
  2273. stk500_devcode = 0x52;
  2274. avr910_devcode = 0x6c;
  2275. signature = 0x1e 0x92 0x02;
  2276. chip_erase_delay = 20000;
  2277. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  2278. "x x x x x x x x x x x x x x x x";
  2279. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 0 0 0 0 0",
  2280. "x x x x x x x x x x x x x x x x";
  2281. memory "eeprom"
  2282. size = 256;
  2283. min_write_delay = 9000;
  2284. max_write_delay = 20000;
  2285. readback_p1 = 0x00;
  2286. readback_p2 = 0xff;
  2287. read = " 1 0 1 0 0 0 0 0 x x x x x x x x",
  2288. "a7 a6 a5 a4 a3 a2 a1 a0 o o o o o o o o";
  2289. write = " 1 1 0 0 0 0 0 0 x x x x x x x x",
  2290. "a7 a6 a5 a4 a3 a2 a1 a0 i i i i i i i i";
  2291. ;
  2292. memory "flash"
  2293. size = 4096;
  2294. min_write_delay = 9000;
  2295. max_write_delay = 20000;
  2296. readback_p1 = 0xff;
  2297. readback_p2 = 0xff;
  2298. read_lo = " 0 0 1 0 0 0 0 0",
  2299. " x x x x x a10 a9 a8",
  2300. " a7 a6 a5 a4 a3 a2 a1 a0",
  2301. " o o o o o o o o";
  2302. read_hi = " 0 0 1 0 1 0 0 0",
  2303. " x x x x x a10 a9 a8",
  2304. " a7 a6 a5 a4 a3 a2 a1 a0",
  2305. " o o o o o o o o";
  2306. write_lo = " 0 1 0 0 0 0 0 0",
  2307. " x x x x x a10 a9 a8",
  2308. " a7 a6 a5 a4 a3 a2 a1 a0",
  2309. " i i i i i i i i";
  2310. write_hi = " 0 1 0 0 1 0 0 0",
  2311. " x x x x x a10 a9 a8",
  2312. " a7 a6 a5 a4 a3 a2 a1 a0",
  2313. " i i i i i i i i";
  2314. ;
  2315. memory "signature"
  2316. size = 3;
  2317. read = "0 0 1 1 0 0 0 0 x x x x x x x x",
  2318. "x x x x x x a1 a0 o o o o o o o o";
  2319. ;
  2320. memory "fuse"
  2321. size = 1;
  2322. min_write_delay = 9000;
  2323. max_write_delay = 20000;
  2324. read = "0 1 0 1 0 0 0 0 x x x x x x x x",
  2325. "x x x x x x x x x x o o o o o o";
  2326. write = "1 0 1 0 1 1 0 0 1 0 1 i i i i i",
  2327. "x x x x x x x x x x x x x x x x";
  2328. ;
  2329. memory "lock"
  2330. size = 1;
  2331. min_write_delay = 9000;
  2332. max_write_delay = 20000;
  2333. read = "0 1 0 1 1 0 0 0 x x x x x x x x",
  2334. "x x x x x x x x x x x x x o o x";
  2335. write = "1 0 1 0 1 1 0 0 1 1 1 1 1 i i 1",
  2336. "x x x x x x x x x x x x x x x x";
  2337. ;
  2338. ;
  2339. #------------------------------------------------------------
  2340. # AT90s8515
  2341. #------------------------------------------------------------
  2342. part
  2343. id = "8515";
  2344. desc = "AT90S8515";
  2345. stk500_devcode = 0x60;
  2346. avr910_devcode = 0x38;
  2347. signature = 0x1e 0x93 0x01;
  2348. chip_erase_delay = 20000;
  2349. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  2350. "x x x x x x x x x x x x x x x x";
  2351. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
  2352. "x x x x x x x x x x x x x x x x";
  2353. timeout = 200;
  2354. stabdelay = 100;
  2355. cmdexedelay = 25;
  2356. synchloops = 32;
  2357. bytedelay = 0;
  2358. pollindex = 3;
  2359. pollvalue = 0x53;
  2360. predelay = 1;
  2361. postdelay = 1;
  2362. pollmethod = 0;
  2363. pp_controlstack =
  2364. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  2365. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  2366. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  2367. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  2368. hventerstabdelay = 100;
  2369. progmodedelay = 0;
  2370. latchcycles = 0;
  2371. togglevtg = 0;
  2372. poweroffdelay = 0;
  2373. resetdelayms = 0;
  2374. resetdelayus = 0;
  2375. hvleavestabdelay = 15;
  2376. resetdelay = 15;
  2377. chiperasepulsewidth = 15;
  2378. chiperasepolltimeout = 0;
  2379. programfusepulsewidth = 2;
  2380. programfusepolltimeout = 0;
  2381. programlockpulsewidth = 0;
  2382. programlockpolltimeout = 1;
  2383. memory "eeprom"
  2384. size = 512;
  2385. min_write_delay = 4000;
  2386. max_write_delay = 9000;
  2387. readback_p1 = 0x80;
  2388. readback_p2 = 0x7f;
  2389. read = " 1 0 1 0 0 0 0 0 x x x x x x x a8",
  2390. "a7 a6 a5 a4 a3 a2 a1 a0 o o o o o o o o";
  2391. write = " 1 1 0 0 0 0 0 0 x x x x x x x a8",
  2392. "a7 a6 a5 a4 a3 a2 a1 a0 i i i i i i i i";
  2393. mode = 0x04;
  2394. delay = 12;
  2395. blocksize = 128;
  2396. readsize = 256;
  2397. ;
  2398. memory "flash"
  2399. size = 8192;
  2400. min_write_delay = 4000;
  2401. max_write_delay = 9000;
  2402. readback_p1 = 0x7f;
  2403. readback_p2 = 0x7f;
  2404. read_lo = " 0 0 1 0 0 0 0 0",
  2405. " x x x x a11 a10 a9 a8",
  2406. " a7 a6 a5 a4 a3 a2 a1 a0",
  2407. " o o o o o o o o";
  2408. read_hi = " 0 0 1 0 1 0 0 0",
  2409. " x x x x a11 a10 a9 a8",
  2410. " a7 a6 a5 a4 a3 a2 a1 a0",
  2411. " o o o o o o o o";
  2412. write_lo = " 0 1 0 0 0 0 0 0",
  2413. " x x x x a11 a10 a9 a8",
  2414. " a7 a6 a5 a4 a3 a2 a1 a0",
  2415. " i i i i i i i i";
  2416. write_hi = " 0 1 0 0 1 0 0 0",
  2417. " x x x x a11 a10 a9 a8",
  2418. " a7 a6 a5 a4 a3 a2 a1 a0",
  2419. " i i i i i i i i";
  2420. mode = 0x04;
  2421. delay = 12;
  2422. blocksize = 128;
  2423. readsize = 256;
  2424. ;
  2425. memory "signature"
  2426. size = 3;
  2427. read = "0 0 1 1 0 0 0 0 x x x x x x x x",
  2428. "x x x x x x a1 a0 o o o o o o o o";
  2429. ;
  2430. memory "fuse"
  2431. size = 1;
  2432. ;
  2433. memory "lock"
  2434. size = 1;
  2435. write = "1 0 1 0 1 1 0 0 1 1 1 1 1 i i 1",
  2436. "x x x x x x x x x x x x x x x x";
  2437. min_write_delay = 9000;
  2438. max_write_delay = 9000;
  2439. ;
  2440. ;
  2441. #------------------------------------------------------------
  2442. # AT90s8535
  2443. #------------------------------------------------------------
  2444. part
  2445. id = "8535";
  2446. desc = "AT90S8535";
  2447. stk500_devcode = 0x61;
  2448. avr910_devcode = 0x68;
  2449. signature = 0x1e 0x93 0x03;
  2450. chip_erase_delay = 20000;
  2451. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  2452. "x x x x x x x x x x x x x x x x";
  2453. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 0 0 0 0 0",
  2454. "x x x x x x x x x x x x x x x x";
  2455. timeout = 200;
  2456. stabdelay = 100;
  2457. cmdexedelay = 25;
  2458. synchloops = 32;
  2459. bytedelay = 0;
  2460. pollindex = 3;
  2461. pollvalue = 0x53;
  2462. predelay = 1;
  2463. postdelay = 1;
  2464. pollmethod = 0;
  2465. pp_controlstack =
  2466. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  2467. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  2468. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  2469. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  2470. hventerstabdelay = 100;
  2471. progmodedelay = 0;
  2472. latchcycles = 0;
  2473. togglevtg = 0;
  2474. poweroffdelay = 0;
  2475. resetdelayms = 0;
  2476. resetdelayus = 0;
  2477. hvleavestabdelay = 15;
  2478. chiperasepulsewidth = 15;
  2479. chiperasepolltimeout = 0;
  2480. programfusepulsewidth = 2;
  2481. programfusepolltimeout = 0;
  2482. programlockpulsewidth = 0;
  2483. programlockpolltimeout = 1;
  2484. memory "eeprom"
  2485. size = 512;
  2486. min_write_delay = 9000;
  2487. max_write_delay = 20000;
  2488. readback_p1 = 0x00;
  2489. readback_p2 = 0xff;
  2490. read = " 1 0 1 0 0 0 0 0 x x x x x x x a8",
  2491. "a7 a6 a5 a4 a3 a2 a1 a0 o o o o o o o o";
  2492. write = " 1 1 0 0 0 0 0 0 x x x x x x x a8",
  2493. "a7 a6 a5 a4 a3 a2 a1 a0 i i i i i i i i";
  2494. mode = 0x04;
  2495. delay = 12;
  2496. blocksize = 128;
  2497. readsize = 256;
  2498. ;
  2499. memory "flash"
  2500. size = 8192;
  2501. min_write_delay = 9000;
  2502. max_write_delay = 20000;
  2503. readback_p1 = 0xff;
  2504. readback_p2 = 0xff;
  2505. read_lo = " 0 0 1 0 0 0 0 0",
  2506. " x x x x a11 a10 a9 a8",
  2507. " a7 a6 a5 a4 a3 a2 a1 a0",
  2508. " o o o o o o o o";
  2509. read_hi = " 0 0 1 0 1 0 0 0",
  2510. " x x x x a11 a10 a9 a8",
  2511. " a7 a6 a5 a4 a3 a2 a1 a0",
  2512. " o o o o o o o o";
  2513. write_lo = " 0 1 0 0 0 0 0 0",
  2514. " x x x x a11 a10 a9 a8",
  2515. " a7 a6 a5 a4 a3 a2 a1 a0",
  2516. " i i i i i i i i";
  2517. write_hi = " 0 1 0 0 1 0 0 0",
  2518. " x x x x a11 a10 a9 a8",
  2519. " a7 a6 a5 a4 a3 a2 a1 a0",
  2520. " i i i i i i i i";
  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. read = "0 1 0 1 1 0 0 0 x x x x x x x x",
  2534. "x x x x x x x x x x x x x x x o";
  2535. write = "1 0 1 0 1 1 0 0 1 0 1 1 1 1 1 i",
  2536. "x x x x x x x x x x x x x x x x";
  2537. min_write_delay = 9000;
  2538. max_write_delay = 9000;
  2539. ;
  2540. memory "lock"
  2541. size = 1;
  2542. read = "0 1 0 1 1 0 0 0 x x x x x x x x",
  2543. "x x x x x x x x o o x x x x x x";
  2544. write = "1 0 1 0 1 1 0 0 1 1 1 1 1 i i 1",
  2545. "x x x x x x x x x x x x x x x x";
  2546. min_write_delay = 9000;
  2547. max_write_delay = 9000;
  2548. ;
  2549. ;
  2550. #------------------------------------------------------------
  2551. # ATmega103
  2552. #------------------------------------------------------------
  2553. part
  2554. id = "m103";
  2555. desc = "ATmega103";
  2556. stk500_devcode = 0xB1;
  2557. avr910_devcode = 0x41;
  2558. signature = 0x1e 0x97 0x01;
  2559. chip_erase_delay = 112000;
  2560. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  2561. "x x x x x x x x x x x x x x x x";
  2562. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 0 0 0 0 0",
  2563. "x x x x x x x x x x x x x x x x";
  2564. timeout = 200;
  2565. stabdelay = 100;
  2566. cmdexedelay = 25;
  2567. synchloops = 32;
  2568. bytedelay = 0;
  2569. pollindex = 3;
  2570. pollvalue = 0x53;
  2571. predelay = 1;
  2572. postdelay = 1;
  2573. pollmethod = 0;
  2574. pp_controlstack =
  2575. 0x0E, 0x1E, 0x8E, 0x9E, 0x2E, 0x3E, 0xAE, 0xBE,
  2576. 0x4E, 0x5E, 0xCE, 0xDE, 0x6E, 0x7E, 0xEE, 0xDE,
  2577. 0x66, 0x76, 0xE6, 0xF6, 0x6A, 0x7A, 0xEA, 0x7A,
  2578. 0x7F, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  2579. hventerstabdelay = 100;
  2580. progmodedelay = 0;
  2581. latchcycles = 0;
  2582. togglevtg = 0;
  2583. poweroffdelay = 0;
  2584. resetdelayms = 0;
  2585. resetdelayus = 0;
  2586. hvleavestabdelay = 15;
  2587. chiperasepulsewidth = 15;
  2588. chiperasepolltimeout = 0;
  2589. programfusepulsewidth = 2;
  2590. programfusepolltimeout = 0;
  2591. programlockpulsewidth = 0;
  2592. programlockpolltimeout = 10;
  2593. memory "eeprom"
  2594. size = 4096;
  2595. min_write_delay = 4000;
  2596. max_write_delay = 9000;
  2597. readback_p1 = 0x80;
  2598. readback_p2 = 0x7f;
  2599. read = " 1 0 1 0 0 0 0 0",
  2600. " x x x x a11 a10 a9 a8",
  2601. " a7 a6 a5 a4 a3 a2 a1 a0",
  2602. " o o o o o o o o";
  2603. write = " 1 1 0 0 0 0 0 0",
  2604. " x x x x a11 a10 a9 a8",
  2605. " a7 a6 a5 a4 a3 a2 a1 a0",
  2606. " i i i i i i i i";
  2607. mode = 0x04;
  2608. delay = 12;
  2609. blocksize = 64;
  2610. readsize = 256;
  2611. ;
  2612. memory "flash"
  2613. paged = yes;
  2614. size = 131072;
  2615. page_size = 256;
  2616. num_pages = 512;
  2617. min_write_delay = 22000;
  2618. max_write_delay = 56000;
  2619. readback_p1 = 0xff;
  2620. readback_p2 = 0xff;
  2621. read_lo = " 0 0 1 0 0 0 0 0",
  2622. "a15 a14 a13 a12 a11 a10 a9 a8",
  2623. " a7 a6 a5 a4 a3 a2 a1 a0",
  2624. " o o o o o o o o";
  2625. read_hi = " 0 0 1 0 1 0 0 0",
  2626. "a15 a14 a13 a12 a11 a10 a9 a8",
  2627. " a7 a6 a5 a4 a3 a2 a1 a0",
  2628. " o o o o o o o o";
  2629. loadpage_lo = " 0 1 0 0 0 0 0 0",
  2630. " x x x x x x x x",
  2631. " x a6 a5 a4 a3 a2 a1 a0",
  2632. " i i i i i i i i";
  2633. loadpage_hi = " 0 1 0 0 1 0 0 0",
  2634. " x x x x x x x x",
  2635. " x a6 a5 a4 a3 a2 a1 a0",
  2636. " i i i i i i i i";
  2637. writepage = " 0 1 0 0 1 1 0 0",
  2638. "a15 a14 a13 a12 a11 a10 a9 a8",
  2639. " a7 x x x x x x x",
  2640. " x x x x x x x x";
  2641. mode = 0x11;
  2642. delay = 70;
  2643. blocksize = 256;
  2644. readsize = 256;
  2645. ;
  2646. memory "fuse"
  2647. size = 1;
  2648. read = "0 1 0 1 0 0 0 0 x x x x x x x x",
  2649. "x x x x x x x x x x o x o 1 o o";
  2650. write = "1 0 1 0 1 1 0 0 1 0 1 1 i 1 i i",
  2651. "x x x x x x x x x x x x x x x x";
  2652. min_write_delay = 9000;
  2653. max_write_delay = 9000;
  2654. ;
  2655. memory "lock"
  2656. size = 1;
  2657. read = "0 1 0 1 1 0 0 0 x x x x x x x x",
  2658. "x x x x x x x x x x x x x o o x";
  2659. write = "1 0 1 0 1 1 0 0 1 1 1 1 1 i i 1",
  2660. "x x x x x x x x x x x x x x x x";
  2661. min_write_delay = 9000;
  2662. max_write_delay = 9000;
  2663. ;
  2664. memory "signature"
  2665. size = 3;
  2666. read = "0 0 1 1 0 0 0 0 x x x x x x x x",
  2667. "x x x x x x a1 a0 o o o o o o o o";
  2668. ;
  2669. ;
  2670. #------------------------------------------------------------
  2671. # ATmega64
  2672. #------------------------------------------------------------
  2673. part
  2674. id = "m64";
  2675. desc = "ATmega64";
  2676. has_jtag = yes;
  2677. stk500_devcode = 0xA0;
  2678. avr910_devcode = 0x45;
  2679. signature = 0x1e 0x96 0x02;
  2680. chip_erase_delay = 9000;
  2681. pagel = 0xD7;
  2682. bs2 = 0xA0;
  2683. reset = dedicated;
  2684. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  2685. "x x x x x x x x x x x x x x x x";
  2686. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 0 0 0 0 0",
  2687. "x x x x x x x x x x x x x x x x";
  2688. timeout = 200;
  2689. stabdelay = 100;
  2690. cmdexedelay = 25;
  2691. synchloops = 32;
  2692. bytedelay = 0;
  2693. pollindex = 3;
  2694. pollvalue = 0x53;
  2695. predelay = 1;
  2696. postdelay = 1;
  2697. pollmethod = 0;
  2698. pp_controlstack =
  2699. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  2700. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  2701. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  2702. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  2703. hventerstabdelay = 100;
  2704. progmodedelay = 0;
  2705. latchcycles = 6;
  2706. togglevtg = 0;
  2707. poweroffdelay = 0;
  2708. resetdelayms = 0;
  2709. resetdelayus = 0;
  2710. hvleavestabdelay = 15;
  2711. chiperasepulsewidth = 0;
  2712. chiperasepolltimeout = 10;
  2713. programfusepulsewidth = 0;
  2714. programfusepolltimeout = 5;
  2715. programlockpulsewidth = 0;
  2716. programlockpolltimeout = 5;
  2717. idr = 0x22;
  2718. spmcr = 0x68;
  2719. allowfullpagebitstream = yes;
  2720. ocdrev = 2;
  2721. memory "eeprom"
  2722. paged = no; /* leave this "no" */
  2723. page_size = 8; /* for parallel programming */
  2724. size = 2048;
  2725. min_write_delay = 9000;
  2726. max_write_delay = 9000;
  2727. readback_p1 = 0xff;
  2728. readback_p2 = 0xff;
  2729. read = " 1 0 1 0 0 0 0 0",
  2730. " x x x x a11 a10 a9 a8",
  2731. " a7 a6 a5 a4 a3 a2 a1 a0",
  2732. " o o o o o o o o";
  2733. write = " 1 1 0 0 0 0 0 0",
  2734. " x x x x a11 a10 a9 a8",
  2735. " a7 a6 a5 a4 a3 a2 a1 a0",
  2736. " i i i i i i i i";
  2737. mode = 0x04;
  2738. delay = 20;
  2739. blocksize = 64;
  2740. readsize = 256;
  2741. ;
  2742. memory "flash"
  2743. paged = yes;
  2744. size = 65536;
  2745. page_size = 256;
  2746. num_pages = 256;
  2747. min_write_delay = 4500;
  2748. max_write_delay = 4500;
  2749. readback_p1 = 0xff;
  2750. readback_p2 = 0xff;
  2751. read_lo = " 0 0 1 0 0 0 0 0",
  2752. " x a14 a13 a12 a11 a10 a9 a8",
  2753. " a7 a6 a5 a4 a3 a2 a1 a0",
  2754. " o o o o o o o o";
  2755. read_hi = " 0 0 1 0 1 0 0 0",
  2756. " x a14 a13 a12 a11 a10 a9 a8",
  2757. " a7 a6 a5 a4 a3 a2 a1 a0",
  2758. " o o o o o o o o";
  2759. loadpage_lo = " 0 1 0 0 0 0 0 0",
  2760. " x x x x x x x x",
  2761. " x a6 a5 a4 a3 a2 a1 a0",
  2762. " i i i i i i i i";
  2763. loadpage_hi = " 0 1 0 0 1 0 0 0",
  2764. " x x x x x x x x",
  2765. " x a6 a5 a4 a3 a2 a1 a0",
  2766. " i i i i i i i i";
  2767. writepage = " 0 1 0 0 1 1 0 0",
  2768. " x a14 a13 a12 a11 a10 a9 a8",
  2769. " a7 x x x x x x x",
  2770. " x x x x x x x x";
  2771. mode = 0x21;
  2772. delay = 6;
  2773. blocksize = 128;
  2774. readsize = 256;
  2775. ;
  2776. memory "lfuse"
  2777. size = 1;
  2778. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  2779. "x x x x x x x x i i i i i i i i";
  2780. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  2781. "x x x x x x x x o o o o o o o o";
  2782. min_write_delay = 9000;
  2783. max_write_delay = 9000;
  2784. ;
  2785. memory "hfuse"
  2786. size = 1;
  2787. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  2788. "x x x x x x x x i i i i i i i i";
  2789. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  2790. "x x x x x x x x o o o o o o o o";
  2791. min_write_delay = 9000;
  2792. max_write_delay = 9000;
  2793. ;
  2794. memory "efuse"
  2795. size = 1;
  2796. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  2797. "x x x x x x x x x x x x x x i i";
  2798. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  2799. "x x x x x x x x o o o o o o o o";
  2800. min_write_delay = 9000;
  2801. max_write_delay = 9000;
  2802. ;
  2803. memory "lock"
  2804. size = 1;
  2805. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  2806. "x x x x x x x x x x o o o o o o";
  2807. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  2808. "x x x x x x x x 1 1 i i i i i i";
  2809. min_write_delay = 9000;
  2810. max_write_delay = 9000;
  2811. ;
  2812. memory "calibration"
  2813. size = 4;
  2814. read = "0 0 1 1 1 0 0 0 x x x x x x x x",
  2815. "0 0 0 0 0 0 a1 a0 o o o o o o o o";
  2816. ;
  2817. memory "signature"
  2818. size = 3;
  2819. read = "0 0 1 1 0 0 0 0 x x x x x x x x",
  2820. "x x x x x x a1 a0 o o o o o o o o";
  2821. ;
  2822. ;
  2823. #------------------------------------------------------------
  2824. # ATmega128
  2825. #------------------------------------------------------------
  2826. part
  2827. id = "m128";
  2828. desc = "ATmega128";
  2829. has_jtag = yes;
  2830. stk500_devcode = 0xB2;
  2831. avr910_devcode = 0x43;
  2832. signature = 0x1e 0x97 0x02;
  2833. chip_erase_delay = 9000;
  2834. pagel = 0xD7;
  2835. bs2 = 0xA0;
  2836. reset = dedicated;
  2837. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  2838. "x x x x x x x x x x x x x x x x";
  2839. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 0 0 0 0 0",
  2840. "x x x x x x x x x x x x x x x x";
  2841. timeout = 200;
  2842. stabdelay = 100;
  2843. cmdexedelay = 25;
  2844. synchloops = 32;
  2845. bytedelay = 0;
  2846. pollindex = 3;
  2847. pollvalue = 0x53;
  2848. predelay = 1;
  2849. postdelay = 1;
  2850. pollmethod = 0;
  2851. pp_controlstack =
  2852. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  2853. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  2854. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  2855. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  2856. hventerstabdelay = 100;
  2857. progmodedelay = 0;
  2858. latchcycles = 6;
  2859. togglevtg = 0;
  2860. poweroffdelay = 0;
  2861. resetdelayms = 0;
  2862. resetdelayus = 0;
  2863. hvleavestabdelay = 15;
  2864. chiperasepulsewidth = 0;
  2865. chiperasepolltimeout = 10;
  2866. programfusepulsewidth = 0;
  2867. programfusepolltimeout = 5;
  2868. programlockpulsewidth = 0;
  2869. programlockpolltimeout = 5;
  2870. idr = 0x22;
  2871. spmcr = 0x68;
  2872. rampz = 0x3b;
  2873. allowfullpagebitstream = yes;
  2874. ocdrev = 1;
  2875. memory "eeprom"
  2876. paged = no; /* leave this "no" */
  2877. page_size = 8; /* for parallel programming */
  2878. size = 4096;
  2879. min_write_delay = 9000;
  2880. max_write_delay = 9000;
  2881. readback_p1 = 0xff;
  2882. readback_p2 = 0xff;
  2883. read = " 1 0 1 0 0 0 0 0",
  2884. " x x x x a11 a10 a9 a8",
  2885. " a7 a6 a5 a4 a3 a2 a1 a0",
  2886. " o o o o o o o o";
  2887. write = " 1 1 0 0 0 0 0 0",
  2888. " x x x x a11 a10 a9 a8",
  2889. " a7 a6 a5 a4 a3 a2 a1 a0",
  2890. " i i i i i i i i";
  2891. mode = 0x04;
  2892. delay = 12;
  2893. blocksize = 64;
  2894. readsize = 256;
  2895. ;
  2896. memory "flash"
  2897. paged = yes;
  2898. size = 131072;
  2899. page_size = 256;
  2900. num_pages = 512;
  2901. min_write_delay = 4500;
  2902. max_write_delay = 4500;
  2903. readback_p1 = 0xff;
  2904. readback_p2 = 0xff;
  2905. read_lo = " 0 0 1 0 0 0 0 0",
  2906. "a15 a14 a13 a12 a11 a10 a9 a8",
  2907. " a7 a6 a5 a4 a3 a2 a1 a0",
  2908. " o o o o o o o o";
  2909. read_hi = " 0 0 1 0 1 0 0 0",
  2910. "a15 a14 a13 a12 a11 a10 a9 a8",
  2911. " a7 a6 a5 a4 a3 a2 a1 a0",
  2912. " o o o o o o o o";
  2913. loadpage_lo = " 0 1 0 0 0 0 0 0",
  2914. " x x x x x x x x",
  2915. " x a6 a5 a4 a3 a2 a1 a0",
  2916. " i i i i i i i i";
  2917. loadpage_hi = " 0 1 0 0 1 0 0 0",
  2918. " x x x x x x x x",
  2919. " x a6 a5 a4 a3 a2 a1 a0",
  2920. " i i i i i i i i";
  2921. writepage = " 0 1 0 0 1 1 0 0",
  2922. "a15 a14 a13 a12 a11 a10 a9 a8",
  2923. " a7 x x x x x x x",
  2924. " x x x x x x x x";
  2925. mode = 0x21;
  2926. delay = 6;
  2927. blocksize = 128;
  2928. readsize = 256;
  2929. ;
  2930. memory "lfuse"
  2931. size = 1;
  2932. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  2933. "x x x x x x x x i i i i i i i i";
  2934. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  2935. "x x x x x x x x o o o o o o o o";
  2936. min_write_delay = 9000;
  2937. max_write_delay = 9000;
  2938. ;
  2939. memory "hfuse"
  2940. size = 1;
  2941. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  2942. "x x x x x x x x i i i i i i i i";
  2943. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  2944. "x x x x x x x x o o o o o o o o";
  2945. min_write_delay = 9000;
  2946. max_write_delay = 9000;
  2947. ;
  2948. memory "efuse"
  2949. size = 1;
  2950. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  2951. "x x x x x x x x x x x x x x i i";
  2952. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  2953. "x x x x x x x x o o o o o o o o";
  2954. min_write_delay = 9000;
  2955. max_write_delay = 9000;
  2956. ;
  2957. memory "lock"
  2958. size = 1;
  2959. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  2960. "x x x x x x x x x x o o o o o o";
  2961. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  2962. "x x x x x x x x 1 1 i i i i i i";
  2963. min_write_delay = 9000;
  2964. max_write_delay = 9000;
  2965. ;
  2966. memory "calibration"
  2967. size = 4;
  2968. read = "0 0 1 1 1 0 0 0 x x x x x x x x",
  2969. "0 0 0 0 0 0 a1 a0 o o o o o o o o";
  2970. ;
  2971. memory "signature"
  2972. size = 3;
  2973. read = "0 0 1 1 0 0 0 0 x x x x x x x x",
  2974. "x x x x x x a1 a0 o o o o o o o o";
  2975. ;
  2976. ;
  2977. #------------------------------------------------------------
  2978. # AT90CAN128
  2979. #------------------------------------------------------------
  2980. part
  2981. id = "c128";
  2982. desc = "AT90CAN128";
  2983. has_jtag = yes;
  2984. stk500_devcode = 0xB3;
  2985. # avr910_devcode = 0x43;
  2986. signature = 0x1e 0x97 0x81;
  2987. chip_erase_delay = 9000;
  2988. pagel = 0xD7;
  2989. bs2 = 0xA0;
  2990. reset = dedicated;
  2991. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  2992. "x x x x x x x x x x x x x x x x";
  2993. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
  2994. "x x x x x x x x x x x x x x x x";
  2995. timeout = 200;
  2996. stabdelay = 100;
  2997. cmdexedelay = 25;
  2998. synchloops = 32;
  2999. bytedelay = 0;
  3000. pollindex = 3;
  3001. pollvalue = 0x53;
  3002. predelay = 1;
  3003. postdelay = 1;
  3004. pollmethod = 1;
  3005. pp_controlstack =
  3006. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  3007. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  3008. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  3009. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x01;
  3010. hventerstabdelay = 100;
  3011. progmodedelay = 0;
  3012. latchcycles = 6;
  3013. togglevtg = 0;
  3014. poweroffdelay = 0;
  3015. resetdelayms = 0;
  3016. resetdelayus = 0;
  3017. hvleavestabdelay = 15;
  3018. chiperasepulsewidth = 0;
  3019. chiperasepolltimeout = 10;
  3020. programfusepulsewidth = 0;
  3021. programfusepolltimeout = 5;
  3022. programlockpulsewidth = 0;
  3023. programlockpolltimeout = 5;
  3024. idr = 0x31;
  3025. spmcr = 0x57;
  3026. rampz = 0x3b;
  3027. eecr = 0x3f;
  3028. allowfullpagebitstream = no;
  3029. ocdrev = 3;
  3030. memory "eeprom"
  3031. paged = no; /* leave this "no" */
  3032. page_size = 8; /* for parallel programming */
  3033. size = 4096;
  3034. min_write_delay = 9000;
  3035. max_write_delay = 9000;
  3036. readback_p1 = 0xff;
  3037. readback_p2 = 0xff;
  3038. read = " 1 0 1 0 0 0 0 0",
  3039. " 0 0 0 x a11 a10 a9 a8",
  3040. " a7 a6 a5 a4 a3 a2 a1 a0",
  3041. " o o o o o o o o";
  3042. write = " 1 1 0 0 0 0 0 0",
  3043. " 0 0 0 x a11 a10 a9 a8",
  3044. " a7 a6 a5 a4 a3 a2 a1 a0",
  3045. " i i i i i i i i";
  3046. loadpage_lo = " 1 1 0 0 0 0 0 1",
  3047. " 0 0 0 0 0 0 0 0",
  3048. " 0 0 0 0 0 a2 a1 a0",
  3049. " i i i i i i i i";
  3050. writepage = " 1 1 0 0 0 0 1 0",
  3051. " 0 0 x x a11 a10 a9 a8",
  3052. " a7 a6 a5 a4 a3 0 0 0",
  3053. " x x x x x x x x";
  3054. mode = 0x41;
  3055. delay = 20;
  3056. blocksize = 8;
  3057. readsize = 256;
  3058. ;
  3059. memory "flash"
  3060. paged = yes;
  3061. size = 131072;
  3062. page_size = 256;
  3063. num_pages = 512;
  3064. min_write_delay = 4500;
  3065. max_write_delay = 4500;
  3066. readback_p1 = 0xff;
  3067. readback_p2 = 0xff;
  3068. read_lo = " 0 0 1 0 0 0 0 0",
  3069. "a15 a14 a13 a12 a11 a10 a9 a8",
  3070. " a7 a6 a5 a4 a3 a2 a1 a0",
  3071. " o o o o o o o o";
  3072. read_hi = " 0 0 1 0 1 0 0 0",
  3073. "a15 a14 a13 a12 a11 a10 a9 a8",
  3074. " a7 a6 a5 a4 a3 a2 a1 a0",
  3075. " o o o o o o o o";
  3076. loadpage_lo = " 0 1 0 0 0 0 0 0",
  3077. " 0 0 0 x x x x x",
  3078. " x a6 a5 a4 a3 a2 a1 a0",
  3079. " i i i i i i i i";
  3080. loadpage_hi = " 0 1 0 0 1 0 0 0",
  3081. " 0 0 0 x x x x x",
  3082. " x a6 a5 a4 a3 a2 a1 a0",
  3083. " i i i i i i i i";
  3084. writepage = " 0 1 0 0 1 1 0 0",
  3085. "a15 a14 a13 a12 a11 a10 a9 a8",
  3086. " a7 x x x x x x x",
  3087. " x x x x x x x x";
  3088. mode = 0x41;
  3089. delay = 6;
  3090. blocksize = 256;
  3091. readsize = 256;
  3092. ;
  3093. memory "lfuse"
  3094. size = 1;
  3095. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  3096. "x x x x x x x x i i i i i i i i";
  3097. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  3098. "x x x x x x x x o o o o o o o o";
  3099. min_write_delay = 9000;
  3100. max_write_delay = 9000;
  3101. ;
  3102. memory "hfuse"
  3103. size = 1;
  3104. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  3105. "x x x x x x x x i i i i i i i i";
  3106. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  3107. "x x x x x x x x o o o o o o o o";
  3108. min_write_delay = 9000;
  3109. max_write_delay = 9000;
  3110. ;
  3111. memory "efuse"
  3112. size = 1;
  3113. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  3114. "x x x x x x x x x x x x i i i i";
  3115. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  3116. "x x x x x x x x o o o o o o o o";
  3117. min_write_delay = 9000;
  3118. max_write_delay = 9000;
  3119. ;
  3120. memory "lock"
  3121. size = 1;
  3122. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  3123. "x x x x x x x x x x o o o o o o";
  3124. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  3125. "x x x x x x x x 1 1 i i i i i i";
  3126. min_write_delay = 9000;
  3127. max_write_delay = 9000;
  3128. ;
  3129. memory "calibration"
  3130. size = 1;
  3131. read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
  3132. "0 0 0 0 0 0 0 0 o o o o o o o o";
  3133. ;
  3134. memory "signature"
  3135. size = 3;
  3136. read = "0 0 1 1 0 0 0 0 x x x x x x x x",
  3137. "x x x x x x a1 a0 o o o o o o o o";
  3138. ;
  3139. ;
  3140. #------------------------------------------------------------
  3141. # AT90CAN64
  3142. #------------------------------------------------------------
  3143. part
  3144. id = "c64";
  3145. desc = "AT90CAN64";
  3146. has_jtag = yes;
  3147. stk500_devcode = 0xB3;
  3148. # avr910_devcode = 0x43;
  3149. signature = 0x1e 0x96 0x81;
  3150. chip_erase_delay = 9000;
  3151. pagel = 0xD7;
  3152. bs2 = 0xA0;
  3153. reset = dedicated;
  3154. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  3155. "x x x x x x x x x x x x x x x x";
  3156. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
  3157. "x x x x x x x x x x x x x x x x";
  3158. timeout = 200;
  3159. stabdelay = 100;
  3160. cmdexedelay = 25;
  3161. synchloops = 32;
  3162. bytedelay = 0;
  3163. pollindex = 3;
  3164. pollvalue = 0x53;
  3165. predelay = 1;
  3166. postdelay = 1;
  3167. pollmethod = 1;
  3168. pp_controlstack =
  3169. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  3170. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  3171. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  3172. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x01;
  3173. hventerstabdelay = 100;
  3174. progmodedelay = 0;
  3175. latchcycles = 6;
  3176. togglevtg = 0;
  3177. poweroffdelay = 0;
  3178. resetdelayms = 0;
  3179. resetdelayus = 0;
  3180. hvleavestabdelay = 15;
  3181. chiperasepulsewidth = 0;
  3182. chiperasepolltimeout = 10;
  3183. programfusepulsewidth = 0;
  3184. programfusepolltimeout = 5;
  3185. programlockpulsewidth = 0;
  3186. programlockpolltimeout = 5;
  3187. idr = 0x31;
  3188. spmcr = 0x57;
  3189. rampz = 0x3b;
  3190. eecr = 0x3f;
  3191. allowfullpagebitstream = no;
  3192. ocdrev = 3;
  3193. memory "eeprom"
  3194. paged = no; /* leave this "no" */
  3195. page_size = 8; /* for parallel programming */
  3196. size = 2048;
  3197. min_write_delay = 9000;
  3198. max_write_delay = 9000;
  3199. readback_p1 = 0xff;
  3200. readback_p2 = 0xff;
  3201. read = " 1 0 1 0 0 0 0 0",
  3202. " 0 0 0 x x a10 a9 a8",
  3203. " a7 a6 a5 a4 a3 a2 a1 a0",
  3204. " o o o o o o o o";
  3205. write = " 1 1 0 0 0 0 0 0",
  3206. " 0 0 0 x x a10 a9 a8",
  3207. " a7 a6 a5 a4 a3 a2 a1 a0",
  3208. " i i i i i i i i";
  3209. loadpage_lo = " 1 1 0 0 0 0 0 1",
  3210. " 0 0 0 0 0 0 0 0",
  3211. " 0 0 0 0 0 a2 a1 a0",
  3212. " i i i i i i i i";
  3213. writepage = " 1 1 0 0 0 0 1 0",
  3214. " 0 0 x x x a10 a9 a8",
  3215. " a7 a6 a5 a4 a3 0 0 0",
  3216. " x x x x x x x x";
  3217. mode = 0x41;
  3218. delay = 20;
  3219. blocksize = 8;
  3220. readsize = 256;
  3221. ;
  3222. memory "flash"
  3223. paged = yes;
  3224. size = 65536;
  3225. page_size = 256;
  3226. num_pages = 256;
  3227. min_write_delay = 4500;
  3228. max_write_delay = 4500;
  3229. readback_p1 = 0xff;
  3230. readback_p2 = 0xff;
  3231. read_lo = " 0 0 1 0 0 0 0 0",
  3232. "a15 a14 a13 a12 a11 a10 a9 a8",
  3233. " a7 a6 a5 a4 a3 a2 a1 a0",
  3234. " o o o o o o o o";
  3235. read_hi = " 0 0 1 0 1 0 0 0",
  3236. "a15 a14 a13 a12 a11 a10 a9 a8",
  3237. " a7 a6 a5 a4 a3 a2 a1 a0",
  3238. " o o o o o o o o";
  3239. loadpage_lo = " 0 1 0 0 0 0 0 0",
  3240. " 0 0 0 x x x x x",
  3241. " x a6 a5 a4 a3 a2 a1 a0",
  3242. " i i i i i i i i";
  3243. loadpage_hi = " 0 1 0 0 1 0 0 0",
  3244. " 0 0 0 x x x x x",
  3245. " x a6 a5 a4 a3 a2 a1 a0",
  3246. " i i i i i i i i";
  3247. writepage = " 0 1 0 0 1 1 0 0",
  3248. "a15 a14 a13 a12 a11 a10 a9 a8",
  3249. " a7 x x x x x x x",
  3250. " x x x x x x x x";
  3251. mode = 0x41;
  3252. delay = 6;
  3253. blocksize = 256;
  3254. readsize = 256;
  3255. ;
  3256. memory "lfuse"
  3257. size = 1;
  3258. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  3259. "x x x x x x x x i i i i i i i i";
  3260. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  3261. "x x x x x x x x o o o o o o o o";
  3262. min_write_delay = 9000;
  3263. max_write_delay = 9000;
  3264. ;
  3265. memory "hfuse"
  3266. size = 1;
  3267. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  3268. "x x x x x x x x i i i i i i i i";
  3269. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  3270. "x x x x x x x x o o o o o o o o";
  3271. min_write_delay = 9000;
  3272. max_write_delay = 9000;
  3273. ;
  3274. memory "efuse"
  3275. size = 1;
  3276. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  3277. "x x x x x x x x x x x x i i i i";
  3278. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  3279. "x x x x x x x x o o o o o o o o";
  3280. min_write_delay = 9000;
  3281. max_write_delay = 9000;
  3282. ;
  3283. memory "lock"
  3284. size = 1;
  3285. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  3286. "x x x x x x x x x x o o o o o o";
  3287. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  3288. "x x x x x x x x 1 1 i i i i i i";
  3289. min_write_delay = 9000;
  3290. max_write_delay = 9000;
  3291. ;
  3292. memory "calibration"
  3293. size = 1;
  3294. read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
  3295. "0 0 0 0 0 0 0 0 o o o o o o o o";
  3296. ;
  3297. memory "signature"
  3298. size = 3;
  3299. read = "0 0 1 1 0 0 0 0 x x x x x x x x",
  3300. "x x x x x x a1 a0 o o o o o o o o";
  3301. ;
  3302. ;
  3303. #------------------------------------------------------------
  3304. # AT90CAN32
  3305. #------------------------------------------------------------
  3306. part
  3307. id = "c32";
  3308. desc = "AT90CAN32";
  3309. has_jtag = yes;
  3310. stk500_devcode = 0xB3;
  3311. # avr910_devcode = 0x43;
  3312. signature = 0x1e 0x95 0x81;
  3313. chip_erase_delay = 9000;
  3314. pagel = 0xD7;
  3315. bs2 = 0xA0;
  3316. reset = dedicated;
  3317. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  3318. "x x x x x x x x x x x x x x x x";
  3319. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
  3320. "x x x x x x x x x x x x x x x x";
  3321. timeout = 200;
  3322. stabdelay = 100;
  3323. cmdexedelay = 25;
  3324. synchloops = 32;
  3325. bytedelay = 0;
  3326. pollindex = 3;
  3327. pollvalue = 0x53;
  3328. predelay = 1;
  3329. postdelay = 1;
  3330. pollmethod = 1;
  3331. pp_controlstack =
  3332. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  3333. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  3334. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  3335. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x01;
  3336. hventerstabdelay = 100;
  3337. progmodedelay = 0;
  3338. latchcycles = 6;
  3339. togglevtg = 0;
  3340. poweroffdelay = 0;
  3341. resetdelayms = 0;
  3342. resetdelayus = 0;
  3343. hvleavestabdelay = 15;
  3344. chiperasepulsewidth = 0;
  3345. chiperasepolltimeout = 10;
  3346. programfusepulsewidth = 0;
  3347. programfusepolltimeout = 5;
  3348. programlockpulsewidth = 0;
  3349. programlockpolltimeout = 5;
  3350. idr = 0x31;
  3351. spmcr = 0x57;
  3352. rampz = 0x3b;
  3353. eecr = 0x3f;
  3354. allowfullpagebitstream = no;
  3355. ocdrev = 3;
  3356. memory "eeprom"
  3357. paged = no; /* leave this "no" */
  3358. page_size = 8; /* for parallel programming */
  3359. size = 1024;
  3360. min_write_delay = 9000;
  3361. max_write_delay = 9000;
  3362. readback_p1 = 0xff;
  3363. readback_p2 = 0xff;
  3364. read = " 1 0 1 0 0 0 0 0",
  3365. " 0 0 0 x x x a9 a8",
  3366. " a7 a6 a5 a4 a3 a2 a1 a0",
  3367. " o o o o o o o o";
  3368. write = " 1 1 0 0 0 0 0 0",
  3369. " 0 0 0 x x x a9 a8",
  3370. " a7 a6 a5 a4 a3 a2 a1 a0",
  3371. " i i i i i i i i";
  3372. loadpage_lo = " 1 1 0 0 0 0 0 1",
  3373. " 0 0 0 0 0 0 0 0",
  3374. " 0 0 0 0 0 a2 a1 a0",
  3375. " i i i i i i i i";
  3376. writepage = " 1 1 0 0 0 0 1 0",
  3377. " 0 0 x x x x a9 a8",
  3378. " a7 a6 a5 a4 a3 0 0 0",
  3379. " x x x x x x x x";
  3380. mode = 0x41;
  3381. delay = 20;
  3382. blocksize = 8;
  3383. readsize = 256;
  3384. ;
  3385. memory "flash"
  3386. paged = yes;
  3387. size = 32768;
  3388. page_size = 256;
  3389. num_pages = 128;
  3390. min_write_delay = 4500;
  3391. max_write_delay = 4500;
  3392. readback_p1 = 0xff;
  3393. readback_p2 = 0xff;
  3394. read_lo = " 0 0 1 0 0 0 0 0",
  3395. "a15 a14 a13 a12 a11 a10 a9 a8",
  3396. " a7 a6 a5 a4 a3 a2 a1 a0",
  3397. " o o o o o o o o";
  3398. read_hi = " 0 0 1 0 1 0 0 0",
  3399. "a15 a14 a13 a12 a11 a10 a9 a8",
  3400. " a7 a6 a5 a4 a3 a2 a1 a0",
  3401. " o o o o o o o o";
  3402. loadpage_lo = " 0 1 0 0 0 0 0 0",
  3403. " 0 0 0 x x x x x",
  3404. " x a6 a5 a4 a3 a2 a1 a0",
  3405. " i i i i i i i i";
  3406. loadpage_hi = " 0 1 0 0 1 0 0 0",
  3407. " 0 0 0 x x x x x",
  3408. " x a6 a5 a4 a3 a2 a1 a0",
  3409. " i i i i i i i i";
  3410. writepage = " 0 1 0 0 1 1 0 0",
  3411. "a15 a14 a13 a12 a11 a10 a9 a8",
  3412. " a7 x x x x x x x",
  3413. " x x x x x x x x";
  3414. mode = 0x41;
  3415. delay = 6;
  3416. blocksize = 256;
  3417. readsize = 256;
  3418. ;
  3419. memory "lfuse"
  3420. size = 1;
  3421. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  3422. "x x x x x x x x i i i i i i i i";
  3423. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  3424. "x x x x x x x x o o o o o o o o";
  3425. min_write_delay = 9000;
  3426. max_write_delay = 9000;
  3427. ;
  3428. memory "hfuse"
  3429. size = 1;
  3430. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  3431. "x x x x x x x x i i i i i i i i";
  3432. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  3433. "x x x x x x x x o o o o o o o o";
  3434. min_write_delay = 9000;
  3435. max_write_delay = 9000;
  3436. ;
  3437. memory "efuse"
  3438. size = 1;
  3439. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  3440. "x x x x x x x x x x x x i i i i";
  3441. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  3442. "x x x x x x x x o o o o o o o o";
  3443. min_write_delay = 9000;
  3444. max_write_delay = 9000;
  3445. ;
  3446. memory "lock"
  3447. size = 1;
  3448. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  3449. "x x x x x x x x x x o o o o o o";
  3450. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  3451. "x x x x x x x x 1 1 i i i i i i";
  3452. min_write_delay = 9000;
  3453. max_write_delay = 9000;
  3454. ;
  3455. memory "calibration"
  3456. size = 1;
  3457. read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
  3458. "0 0 0 0 0 0 0 0 o o o o o o o o";
  3459. ;
  3460. memory "signature"
  3461. size = 3;
  3462. read = "0 0 1 1 0 0 0 0 x x x x x x x x",
  3463. "x x x x x x a1 a0 o o o o o o o o";
  3464. ;
  3465. ;
  3466. #------------------------------------------------------------
  3467. # ATmega16
  3468. #------------------------------------------------------------
  3469. part
  3470. id = "m16";
  3471. desc = "ATmega16";
  3472. has_jtag = yes;
  3473. stk500_devcode = 0x82;
  3474. avr910_devcode = 0x74;
  3475. signature = 0x1e 0x94 0x03;
  3476. pagel = 0xd7;
  3477. bs2 = 0xa0;
  3478. chip_erase_delay = 9000;
  3479. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  3480. "x x x x x x x x x x x x x x x x";
  3481. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
  3482. "x x x x x x x x x x x x x x x x";
  3483. timeout = 200;
  3484. stabdelay = 100;
  3485. cmdexedelay = 25;
  3486. synchloops = 32;
  3487. bytedelay = 0;
  3488. pollindex = 3;
  3489. pollvalue = 0x53;
  3490. predelay = 1;
  3491. postdelay = 1;
  3492. pollmethod = 0;
  3493. pp_controlstack =
  3494. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  3495. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  3496. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  3497. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  3498. hventerstabdelay = 100;
  3499. progmodedelay = 100;
  3500. latchcycles = 6;
  3501. togglevtg = 0;
  3502. poweroffdelay = 0;
  3503. resetdelayms = 0;
  3504. resetdelayus = 0;
  3505. hvleavestabdelay = 15;
  3506. resetdelay = 15;
  3507. chiperasepulsewidth = 0;
  3508. chiperasepolltimeout = 10;
  3509. programfusepulsewidth = 0;
  3510. programfusepolltimeout = 5;
  3511. programlockpulsewidth = 0;
  3512. programlockpolltimeout = 5;
  3513. idr = 0x31;
  3514. spmcr = 0x57;
  3515. allowfullpagebitstream = yes;
  3516. ocdrev = 2;
  3517. memory "eeprom"
  3518. paged = no; /* leave this "no" */
  3519. page_size = 4; /* for parallel programming */
  3520. size = 512;
  3521. min_write_delay = 9000;
  3522. max_write_delay = 9000;
  3523. readback_p1 = 0xff;
  3524. readback_p2 = 0xff;
  3525. read = " 1 0 1 0 0 0 0 0",
  3526. " 0 0 x x x x a9 a8",
  3527. " a7 a6 a5 a4 a3 a2 a1 a0",
  3528. " o o o o o o o o";
  3529. write = " 1 1 0 0 0 0 0 0",
  3530. " 0 0 x x x x a9 a8",
  3531. " a7 a6 a5 a4 a3 a2 a1 a0",
  3532. " i i i i i i i i";
  3533. loadpage_lo = " 1 1 0 0 0 0 0 1",
  3534. " 0 0 0 0 0 0 0 0",
  3535. " 0 0 0 0 0 0 a1 a0",
  3536. " i i i i i i i i";
  3537. writepage = " 1 1 0 0 0 0 1 0",
  3538. " 0 0 x x x x a9 a8",
  3539. " a7 a6 a5 a4 a3 a2 0 0",
  3540. " x x x x x x x x";
  3541. mode = 0x04;
  3542. delay = 10;
  3543. blocksize = 128;
  3544. readsize = 256;
  3545. ;
  3546. memory "flash"
  3547. paged = yes;
  3548. size = 16384;
  3549. page_size = 128;
  3550. num_pages = 128;
  3551. min_write_delay = 4500;
  3552. max_write_delay = 4500;
  3553. readback_p1 = 0xff;
  3554. readback_p2 = 0xff;
  3555. read_lo = " 0 0 1 0 0 0 0 0",
  3556. " 0 0 a13 a12 a11 a10 a9 a8",
  3557. " a7 a6 a5 a4 a3 a2 a1 a0",
  3558. " o o o o o o o o";
  3559. read_hi = " 0 0 1 0 1 0 0 0",
  3560. " 0 0 a13 a12 a11 a10 a9 a8",
  3561. " a7 a6 a5 a4 a3 a2 a1 a0",
  3562. " o o o o o o o o";
  3563. loadpage_lo = " 0 1 0 0 0 0 0 0",
  3564. " 0 0 x x x x x x",
  3565. " x x a5 a4 a3 a2 a1 a0",
  3566. " i i i i i i i i";
  3567. loadpage_hi = " 0 1 0 0 1 0 0 0",
  3568. " 0 0 x x x x x x",
  3569. " x x a5 a4 a3 a2 a1 a0",
  3570. " i i i i i i i i";
  3571. writepage = " 0 1 0 0 1 1 0 0",
  3572. " 0 0 a13 a12 a11 a10 a9 a8",
  3573. " a7 a6 x x x x x x",
  3574. " x x x x x x x x";
  3575. mode = 0x21;
  3576. delay = 6;
  3577. blocksize = 128;
  3578. readsize = 256;
  3579. ;
  3580. memory "lock"
  3581. size = 1;
  3582. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  3583. "x x x x x x x x x x o o o o o o";
  3584. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  3585. "x x x x x x x x 1 1 i i i i i i";
  3586. min_write_delay = 9000;
  3587. max_write_delay = 9000;
  3588. ;
  3589. memory "lfuse"
  3590. size = 1;
  3591. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  3592. "x x x x x x x x o o o o o o o o";
  3593. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  3594. "x x x x x x x x i i i i i i i i";
  3595. min_write_delay = 9000;
  3596. max_write_delay = 9000;
  3597. ;
  3598. memory "hfuse"
  3599. size = 1;
  3600. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  3601. "x x x x x x x x o o o o o o o o";
  3602. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  3603. "x x x x x x x x i i i i i i i i";
  3604. min_write_delay = 9000;
  3605. max_write_delay = 9000;
  3606. ;
  3607. memory "signature"
  3608. size = 3;
  3609. read = "0 0 1 1 0 0 0 0 x x x x x x x x",
  3610. "x x x x x x a1 a0 o o o o o o o o";
  3611. ;
  3612. memory "calibration"
  3613. size = 4;
  3614. read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
  3615. "0 0 0 0 0 0 a1 a0 o o o o o o o o";
  3616. ;
  3617. ;
  3618. #------------------------------------------------------------
  3619. # ATmega164P
  3620. #------------------------------------------------------------
  3621. # close to ATmega16
  3622. part parent "m16"
  3623. id = "m164p";
  3624. desc = "ATmega164P";
  3625. signature = 0x1e 0x94 0x0a;
  3626. progmodedelay = 0;
  3627. latchcycles = 5;
  3628. togglevtg = 1;
  3629. poweroffdelay = 15;
  3630. resetdelayms = 1;
  3631. allowfullpagebitstream = no;
  3632. chip_erase_delay = 55000;
  3633. ocdrev = 3;
  3634. ;
  3635. #------------------------------------------------------------
  3636. # ATmega324P
  3637. #------------------------------------------------------------
  3638. # similar to ATmega164P
  3639. part
  3640. id = "m324p";
  3641. desc = "ATmega324P";
  3642. has_jtag = yes;
  3643. stk500_devcode = 0x82; # no STK500v1 support, use the ATmega16 one
  3644. avr910_devcode = 0x74;
  3645. signature = 0x1e 0x95 0x08;
  3646. pagel = 0xd7;
  3647. bs2 = 0xa0;
  3648. chip_erase_delay = 55000;
  3649. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  3650. "x x x x x x x x x x x x x x x x";
  3651. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
  3652. "x x x x x x x x x x x x x x x x";
  3653. timeout = 200;
  3654. stabdelay = 100;
  3655. cmdexedelay = 25;
  3656. synchloops = 32;
  3657. bytedelay = 0;
  3658. pollindex = 3;
  3659. pollvalue = 0x53;
  3660. predelay = 1;
  3661. postdelay = 1;
  3662. pollmethod = 0;
  3663. pp_controlstack =
  3664. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  3665. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  3666. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  3667. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  3668. hventerstabdelay = 100;
  3669. progmodedelay = 0;
  3670. latchcycles = 5;
  3671. togglevtg = 1;
  3672. poweroffdelay = 15;
  3673. resetdelayms = 1;
  3674. resetdelayus = 0;
  3675. hvleavestabdelay = 15;
  3676. chiperasepulsewidth = 0;
  3677. chiperasepolltimeout = 10;
  3678. programfusepulsewidth = 0;
  3679. programfusepolltimeout = 5;
  3680. programlockpulsewidth = 0;
  3681. programlockpolltimeout = 5;
  3682. idr = 0x31;
  3683. spmcr = 0x57;
  3684. allowfullpagebitstream = no;
  3685. ocdrev = 3;
  3686. memory "eeprom"
  3687. paged = no; /* leave this "no" */
  3688. page_size = 4; /* for parallel programming */
  3689. size = 1024;
  3690. min_write_delay = 9000;
  3691. max_write_delay = 9000;
  3692. readback_p1 = 0xff;
  3693. readback_p2 = 0xff;
  3694. read = " 1 0 1 0 0 0 0 0",
  3695. " 0 0 x x x a10 a9 a8",
  3696. " a7 a6 a5 a4 a3 a2 a1 a0",
  3697. " o o o o o o o o";
  3698. write = " 1 1 0 0 0 0 0 0",
  3699. " 0 0 x x x a10 a9 a8",
  3700. " a7 a6 a5 a4 a3 a2 a1 a0",
  3701. " i i i i i i i i";
  3702. loadpage_lo = " 1 1 0 0 0 0 0 1",
  3703. " 0 0 0 0 0 0 0 0",
  3704. " 0 0 0 0 0 0 a1 a0",
  3705. " i i i i i i i i";
  3706. writepage = " 1 1 0 0 0 0 1 0",
  3707. " 0 0 x x x a10 a9 a8",
  3708. " a7 a6 a5 a4 a3 a2 0 0",
  3709. " x x x x x x x x";
  3710. mode = 0x41;
  3711. delay = 10;
  3712. blocksize = 128;
  3713. readsize = 256;
  3714. ;
  3715. memory "flash"
  3716. paged = yes;
  3717. size = 32768;
  3718. page_size = 128;
  3719. num_pages = 256;
  3720. min_write_delay = 4500;
  3721. max_write_delay = 4500;
  3722. readback_p1 = 0xff;
  3723. readback_p2 = 0xff;
  3724. read_lo = " 0 0 1 0 0 0 0 0",
  3725. " 0 a14 a13 a12 a11 a10 a9 a8",
  3726. " a7 a6 a5 a4 a3 a2 a1 a0",
  3727. " o o o o o o o o";
  3728. read_hi = " 0 0 1 0 1 0 0 0",
  3729. " 0 a14 a13 a12 a11 a10 a9 a8",
  3730. " a7 a6 a5 a4 a3 a2 a1 a0",
  3731. " o o o o o o o o";
  3732. loadpage_lo = " 0 1 0 0 0 0 0 0",
  3733. " 0 0 x x x x x x",
  3734. " x x a5 a4 a3 a2 a1 a0",
  3735. " i i i i i i i i";
  3736. loadpage_hi = " 0 1 0 0 1 0 0 0",
  3737. " 0 0 x x x x x x",
  3738. " x x a5 a4 a3 a2 a1 a0",
  3739. " i i i i i i i i";
  3740. writepage = " 0 1 0 0 1 1 0 0",
  3741. " 0 a14 a13 a12 a11 a10 a9 a8",
  3742. " a7 a6 x x x x x x",
  3743. " x x x x x x x x";
  3744. mode = 0x21;
  3745. delay = 6;
  3746. blocksize = 256;
  3747. readsize = 256;
  3748. ;
  3749. memory "lock"
  3750. size = 1;
  3751. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  3752. "x x x x x x x x x x o o o o o o";
  3753. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  3754. "x x x x x x x x 1 1 i i i i i i";
  3755. min_write_delay = 9000;
  3756. max_write_delay = 9000;
  3757. ;
  3758. memory "lfuse"
  3759. size = 1;
  3760. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  3761. "x x x x x x x x o o o o o o o o";
  3762. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  3763. "x x x x x x x x i i i i i i i i";
  3764. min_write_delay = 9000;
  3765. max_write_delay = 9000;
  3766. ;
  3767. memory "hfuse"
  3768. size = 1;
  3769. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  3770. "x x x x x x x x o o o o o o o o";
  3771. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  3772. "x x x x x x x x i i i i i i i i";
  3773. min_write_delay = 9000;
  3774. max_write_delay = 9000;
  3775. ;
  3776. memory "efuse"
  3777. size = 1;
  3778. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  3779. "x x x x x x x x o o o o o o o o";
  3780. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  3781. "x x x x x x x x 1 1 1 1 1 i i i";
  3782. min_write_delay = 9000;
  3783. max_write_delay = 9000;
  3784. ;
  3785. memory "signature"
  3786. size = 3;
  3787. read = "0 0 1 1 0 0 0 0 x x x x x x x x",
  3788. "x x x x x x a1 a0 o o o o o o o o";
  3789. ;
  3790. memory "calibration"
  3791. size = 1;
  3792. read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
  3793. "0 0 0 0 0 0 0 0 o o o o o o o o";
  3794. ;
  3795. ;
  3796. #------------------------------------------------------------
  3797. # ATmega324PA
  3798. #------------------------------------------------------------
  3799. # similar to ATmega324P
  3800. part parent "m324p"
  3801. id = "m324pa";
  3802. desc = "ATmega324PA";
  3803. signature = 0x1e 0x95 0x11;
  3804. ocdrev = 3;
  3805. ;
  3806. #------------------------------------------------------------
  3807. # ATmega644
  3808. #------------------------------------------------------------
  3809. # similar to ATmega164
  3810. part
  3811. id = "m644";
  3812. desc = "ATmega644";
  3813. has_jtag = yes;
  3814. stk500_devcode = 0x82; # no STK500v1 support, use the ATmega16 one
  3815. avr910_devcode = 0x74;
  3816. signature = 0x1e 0x96 0x09;
  3817. pagel = 0xd7;
  3818. bs2 = 0xa0;
  3819. chip_erase_delay = 55000;
  3820. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  3821. "x x x x x x x x x x x x x x x x";
  3822. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
  3823. "x x x x x x x x x x x x x x x x";
  3824. timeout = 200;
  3825. stabdelay = 100;
  3826. cmdexedelay = 25;
  3827. synchloops = 32;
  3828. bytedelay = 0;
  3829. pollindex = 3;
  3830. pollvalue = 0x53;
  3831. predelay = 1;
  3832. postdelay = 1;
  3833. pollmethod = 0;
  3834. pp_controlstack =
  3835. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  3836. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  3837. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  3838. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x02;
  3839. hventerstabdelay = 100;
  3840. progmodedelay = 0;
  3841. latchcycles = 6;
  3842. togglevtg = 0;
  3843. poweroffdelay = 0;
  3844. resetdelayms = 0;
  3845. resetdelayus = 0;
  3846. hvleavestabdelay = 15;
  3847. chiperasepulsewidth = 0;
  3848. chiperasepolltimeout = 10;
  3849. programfusepulsewidth = 0;
  3850. programfusepolltimeout = 5;
  3851. programlockpulsewidth = 0;
  3852. programlockpolltimeout = 5;
  3853. idr = 0x31;
  3854. spmcr = 0x57;
  3855. allowfullpagebitstream = no;
  3856. ocdrev = 3;
  3857. memory "eeprom"
  3858. paged = no; /* leave this "no" */
  3859. page_size = 8; /* for parallel programming */
  3860. size = 2048;
  3861. min_write_delay = 9000;
  3862. max_write_delay = 9000;
  3863. readback_p1 = 0xff;
  3864. readback_p2 = 0xff;
  3865. read = " 1 0 1 0 0 0 0 0",
  3866. " 0 0 x x a11 a10 a9 a8",
  3867. " a7 a6 a5 a4 a3 a2 a1 a0",
  3868. " o o o o o o o o";
  3869. write = " 1 1 0 0 0 0 0 0",
  3870. " 0 0 x x a11 a10 a9 a8",
  3871. " a7 a6 a5 a4 a3 a2 a1 a0",
  3872. " i i i i i i i i";
  3873. loadpage_lo = " 1 1 0 0 0 0 0 1",
  3874. " 0 0 0 0 0 0 0 0",
  3875. " 0 0 0 0 0 a2 a1 a0",
  3876. " i i i i i i i i";
  3877. writepage = " 1 1 0 0 0 0 1 0",
  3878. " 0 0 x x a11 a10 a9 a8",
  3879. " a7 a6 a5 a4 a3 0 0 0",
  3880. " x x x x x x x x";
  3881. mode = 0x41;
  3882. delay = 10;
  3883. blocksize = 128;
  3884. readsize = 256;
  3885. ;
  3886. memory "flash"
  3887. paged = yes;
  3888. size = 65536;
  3889. page_size = 256;
  3890. num_pages = 256;
  3891. min_write_delay = 4500;
  3892. max_write_delay = 4500;
  3893. readback_p1 = 0xff;
  3894. readback_p2 = 0xff;
  3895. read_lo = " 0 0 1 0 0 0 0 0",
  3896. "a15 a14 a13 a12 a11 a10 a9 a8",
  3897. " a7 a6 a5 a4 a3 a2 a1 a0",
  3898. " o o o o o o o o";
  3899. read_hi = " 0 0 1 0 1 0 0 0",
  3900. "a15 a14 a13 a12 a11 a10 a9 a8",
  3901. " a7 a6 a5 a4 a3 a2 a1 a0",
  3902. " o o o o o o o o";
  3903. loadpage_lo = " 0 1 0 0 0 0 0 0",
  3904. " 0 0 x x x x x x",
  3905. " x a6 a5 a4 a3 a2 a1 a0",
  3906. " i i i i i i i i";
  3907. loadpage_hi = " 0 1 0 0 1 0 0 0",
  3908. " 0 0 x x x x x x",
  3909. " x a6 a5 a4 a3 a2 a1 a0",
  3910. " i i i i i i i i";
  3911. writepage = " 0 1 0 0 1 1 0 0",
  3912. "a15 a14 a13 a12 a11 a10 a9 a8",
  3913. " a7 x x x x x x x",
  3914. " x x x x x x x x";
  3915. mode = 0x21;
  3916. delay = 6;
  3917. blocksize = 256;
  3918. readsize = 256;
  3919. ;
  3920. memory "lock"
  3921. size = 1;
  3922. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  3923. "x x x x x x x x x x o o o o o o";
  3924. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  3925. "x x x x x x x x 1 1 i i i i i i";
  3926. min_write_delay = 9000;
  3927. max_write_delay = 9000;
  3928. ;
  3929. memory "lfuse"
  3930. size = 1;
  3931. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  3932. "x x x x x x x x o o o o o o o o";
  3933. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  3934. "x x x x x x x x i i i i i i i i";
  3935. min_write_delay = 9000;
  3936. max_write_delay = 9000;
  3937. ;
  3938. memory "hfuse"
  3939. size = 1;
  3940. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  3941. "x x x x x x x x o o o o o o o o";
  3942. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  3943. "x x x x x x x x i i i i i i i i";
  3944. min_write_delay = 9000;
  3945. max_write_delay = 9000;
  3946. ;
  3947. memory "efuse"
  3948. size = 1;
  3949. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  3950. "x x x x x x x x o o o o o o o o";
  3951. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  3952. "x x x x x x x x 1 1 1 1 1 i i i";
  3953. min_write_delay = 9000;
  3954. max_write_delay = 9000;
  3955. ;
  3956. memory "signature"
  3957. size = 3;
  3958. read = "0 0 1 1 0 0 0 0 x x x x x x x x",
  3959. "x x x x x x a1 a0 o o o o o o o o";
  3960. ;
  3961. memory "calibration"
  3962. size = 1;
  3963. read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
  3964. "0 0 0 0 0 0 0 0 o o o o o o o o";
  3965. ;
  3966. ;
  3967. #------------------------------------------------------------
  3968. # ATmega644P
  3969. #------------------------------------------------------------
  3970. # similar to ATmega164p
  3971. part parent "m644"
  3972. id = "m644p";
  3973. desc = "ATmega644P";
  3974. signature = 0x1e 0x96 0x0a;
  3975. ocdrev = 3;
  3976. ;
  3977. #------------------------------------------------------------
  3978. # ATmega1284P
  3979. #------------------------------------------------------------
  3980. # similar to ATmega164p
  3981. part
  3982. id = "m1284p";
  3983. desc = "ATmega1284P";
  3984. has_jtag = yes;
  3985. stk500_devcode = 0x82; # no STK500v1 support, use the ATmega16 one
  3986. avr910_devcode = 0x74;
  3987. signature = 0x1e 0x97 0x05;
  3988. pagel = 0xd7;
  3989. bs2 = 0xa0;
  3990. chip_erase_delay = 55000;
  3991. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  3992. "x x x x x x x x x x x x x x x x";
  3993. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
  3994. "x x x x x x x x x x x x x x x x";
  3995. timeout = 200;
  3996. stabdelay = 100;
  3997. cmdexedelay = 25;
  3998. synchloops = 32;
  3999. bytedelay = 0;
  4000. pollindex = 3;
  4001. pollvalue = 0x53;
  4002. predelay = 1;
  4003. postdelay = 1;
  4004. pollmethod = 1;
  4005. pp_controlstack =
  4006. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  4007. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  4008. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  4009. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x02;
  4010. hventerstabdelay = 100;
  4011. progmodedelay = 0;
  4012. latchcycles = 6;
  4013. togglevtg = 1;
  4014. poweroffdelay = 15;
  4015. resetdelayms = 1;
  4016. resetdelayus = 0;
  4017. hvleavestabdelay = 15;
  4018. chiperasepulsewidth = 0;
  4019. chiperasepolltimeout = 10;
  4020. programfusepulsewidth = 0;
  4021. programfusepolltimeout = 5;
  4022. programlockpulsewidth = 0;
  4023. programlockpolltimeout = 5;
  4024. idr = 0x31;
  4025. spmcr = 0x57;
  4026. allowfullpagebitstream = no;
  4027. ocdrev = 3;
  4028. memory "eeprom"
  4029. paged = no; /* leave this "no" */
  4030. page_size = 8; /* for parallel programming */
  4031. size = 4096;
  4032. min_write_delay = 9000;
  4033. max_write_delay = 9000;
  4034. readback_p1 = 0xff;
  4035. readback_p2 = 0xff;
  4036. read = " 1 0 1 0 0 0 0 0",
  4037. " 0 0 x x a11 a10 a9 a8",
  4038. " a7 a6 a5 a4 a3 a2 a1 a0",
  4039. " o o o o o o o o";
  4040. write = " 1 1 0 0 0 0 0 0",
  4041. " 0 0 x x a11 a10 a9 a8",
  4042. " a7 a6 a5 a4 a3 a2 a1 a0",
  4043. " i i i i i i i i";
  4044. loadpage_lo = " 1 1 0 0 0 0 0 1",
  4045. " 0 0 0 0 0 0 0 0",
  4046. " 0 0 0 0 0 a2 a1 a0",
  4047. " i i i i i i i i";
  4048. writepage = " 1 1 0 0 0 0 1 0",
  4049. " 0 0 x x a11 a10 a9 a8",
  4050. " a7 a6 a5 a4 a3 0 0 0",
  4051. " x x x x x x x x";
  4052. mode = 0x41;
  4053. delay = 10;
  4054. blocksize = 128;
  4055. readsize = 256;
  4056. ;
  4057. memory "flash"
  4058. paged = yes;
  4059. size = 131072;
  4060. page_size = 256;
  4061. num_pages = 512;
  4062. min_write_delay = 4500;
  4063. max_write_delay = 4500;
  4064. readback_p1 = 0xff;
  4065. readback_p2 = 0xff;
  4066. read_lo = " 0 0 1 0 0 0 0 0",
  4067. "a15 a14 a13 a12 a11 a10 a9 a8",
  4068. " a7 a6 a5 a4 a3 a2 a1 a0",
  4069. " o o o o o o o o";
  4070. read_hi = " 0 0 1 0 1 0 0 0",
  4071. "a15 a14 a13 a12 a11 a10 a9 a8",
  4072. " a7 a6 a5 a4 a3 a2 a1 a0",
  4073. " o o o o o o o o";
  4074. loadpage_lo = " 0 1 0 0 0 0 0 0",
  4075. " 0 0 x x x x x x",
  4076. " x a6 a5 a4 a3 a2 a1 a0",
  4077. " i i i i i i i i";
  4078. loadpage_hi = " 0 1 0 0 1 0 0 0",
  4079. " 0 0 x x x x x x",
  4080. " x a6 a5 a4 a3 a2 a1 a0",
  4081. " i i i i i i i i";
  4082. writepage = " 0 1 0 0 1 1 0 0",
  4083. "a15 a14 a13 a12 a11 a10 a9 a8",
  4084. " a7 x x x x x x x",
  4085. " x x x x x x x x";
  4086. mode = 0x41;
  4087. delay = 10;
  4088. blocksize = 256;
  4089. readsize = 256;
  4090. ;
  4091. memory "lock"
  4092. size = 1;
  4093. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  4094. "x x x x x x x x x x o o o o o o";
  4095. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  4096. "x x x x x x x x 1 1 i i i i i i";
  4097. min_write_delay = 9000;
  4098. max_write_delay = 9000;
  4099. ;
  4100. memory "lfuse"
  4101. size = 1;
  4102. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  4103. "x x x x x x x x o o o o o o o o";
  4104. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  4105. "x x x x x x x x i i i i i i i i";
  4106. min_write_delay = 9000;
  4107. max_write_delay = 9000;
  4108. ;
  4109. memory "hfuse"
  4110. size = 1;
  4111. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  4112. "x x x x x x x x o o o o o o o o";
  4113. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  4114. "x x x x x x x x i i i i i i i i";
  4115. min_write_delay = 9000;
  4116. max_write_delay = 9000;
  4117. ;
  4118. memory "efuse"
  4119. size = 1;
  4120. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  4121. "x x x x x x x x o o o o o o o o";
  4122. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  4123. "x x x x x x x x 1 1 1 1 1 i i i";
  4124. min_write_delay = 9000;
  4125. max_write_delay = 9000;
  4126. ;
  4127. memory "signature"
  4128. size = 3;
  4129. read = "0 0 1 1 0 0 0 0 x x x x x x x x",
  4130. "x x x x x x a1 a0 o o o o o o o o";
  4131. ;
  4132. memory "calibration"
  4133. size = 1;
  4134. read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
  4135. "0 0 0 0 0 0 0 0 o o o o o o o o";
  4136. ;
  4137. ;
  4138. #------------------------------------------------------------
  4139. # ATmega162
  4140. #------------------------------------------------------------
  4141. part
  4142. id = "m162";
  4143. desc = "ATmega162";
  4144. has_jtag = yes;
  4145. stk500_devcode = 0x83;
  4146. avr910_devcode = 0x63;
  4147. signature = 0x1e 0x94 0x04;
  4148. chip_erase_delay = 9000;
  4149. pagel = 0xd7;
  4150. bs2 = 0xa0;
  4151. idr = 0x04;
  4152. spmcr = 0x57;
  4153. allowfullpagebitstream = yes;
  4154. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  4155. "x x x x x x x x x x x x x x x x";
  4156. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
  4157. "x x x x x x x x x x x x x x x x";
  4158. ocdrev = 2;
  4159. memory "flash"
  4160. paged = yes;
  4161. size = 16384;
  4162. page_size = 128;
  4163. num_pages = 128;
  4164. min_write_delay = 4500;
  4165. max_write_delay = 4500;
  4166. readback_p1 = 0xff;
  4167. readback_p2 = 0xff;
  4168. read_lo = " 0 0 1 0 0 0 0 0",
  4169. " 0 0 a13 a12 a11 a10 a9 a8",
  4170. " a7 a6 a5 a4 a3 a2 a1 a0",
  4171. " o o o o o o o o";
  4172. read_hi = " 0 0 1 0 1 0 0 0",
  4173. " 0 0 a13 a12 a11 a10 a9 a8",
  4174. " a7 a6 a5 a4 a3 a2 a1 a0",
  4175. " o o o o o o o o";
  4176. loadpage_lo = " 0 1 0 0 0 0 0 0",
  4177. " 0 0 x x x x x x",
  4178. " x x a5 a4 a3 a2 a1 a0",
  4179. " i i i i i i i i";
  4180. loadpage_hi = " 0 1 0 0 1 0 0 0",
  4181. " 0 0 x x x x x x",
  4182. " x x a5 a4 a3 a2 a1 a0",
  4183. " i i i i i i i i";
  4184. writepage = " 0 1 0 0 1 1 0 0",
  4185. " 0 0 a13 a12 a11 a10 a9 a8",
  4186. " a7 a6 x x x x x x",
  4187. " x x x x x x x x";
  4188. mode = 0x41;
  4189. delay = 10;
  4190. blocksize = 128;
  4191. readsize = 256;
  4192. ;
  4193. timeout = 200;
  4194. stabdelay = 100;
  4195. cmdexedelay = 25;
  4196. synchloops = 32;
  4197. bytedelay = 0;
  4198. pollindex = 3;
  4199. pollvalue = 0x53;
  4200. predelay = 1;
  4201. postdelay = 1;
  4202. pollmethod = 0;
  4203. pp_controlstack =
  4204. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  4205. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  4206. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  4207. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  4208. hventerstabdelay = 100;
  4209. progmodedelay = 0;
  4210. latchcycles = 6;
  4211. togglevtg = 0;
  4212. poweroffdelay = 0;
  4213. resetdelayms = 0;
  4214. resetdelayus = 0;
  4215. hvleavestabdelay = 15;
  4216. chiperasepulsewidth = 0;
  4217. chiperasepolltimeout = 10;
  4218. programfusepulsewidth = 0;
  4219. programfusepolltimeout = 5;
  4220. programlockpulsewidth = 0;
  4221. programlockpolltimeout = 5;
  4222. memory "eeprom"
  4223. paged = no; /* leave this "no" */
  4224. page_size = 4; /* for parallel programming */
  4225. size = 512;
  4226. min_write_delay = 9000;
  4227. max_write_delay = 9000;
  4228. readback_p1 = 0xff;
  4229. readback_p2 = 0xff;
  4230. read = " 1 0 1 0 0 0 0 0",
  4231. " 0 0 x x x x a9 a8",
  4232. " a7 a6 a5 a4 a3 a2 a1 a0",
  4233. " o o o o o o o o";
  4234. write = " 1 1 0 0 0 0 0 0",
  4235. " 0 0 x x x x a9 a8",
  4236. " a7 a6 a5 a4 a3 a2 a1 a0",
  4237. " i i i i i i i i";
  4238. loadpage_lo = " 1 1 0 0 0 0 0 1",
  4239. " 0 0 0 0 0 0 0 0",
  4240. " 0 0 0 0 0 0 a1 a0",
  4241. " i i i i i i i i";
  4242. writepage = " 1 1 0 0 0 0 1 0",
  4243. " 0 0 x x x x a9 a8",
  4244. " a7 a6 a5 a4 a3 a2 0 0",
  4245. " x x x x x x x x";
  4246. mode = 0x41;
  4247. delay = 20;
  4248. blocksize = 4;
  4249. readsize = 256;
  4250. ;
  4251. memory "lfuse"
  4252. size = 1;
  4253. min_write_delay = 16000;
  4254. max_write_delay = 16000;
  4255. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  4256. "x x x x x x x x o o o o o o o o";
  4257. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  4258. "x x x x x x x x i i i i i i i i";
  4259. ;
  4260. memory "hfuse"
  4261. size = 1;
  4262. min_write_delay = 16000;
  4263. max_write_delay = 16000;
  4264. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  4265. "x x x x x x x x o o o o o o o o";
  4266. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  4267. "x x x x x x x x i i i i i i i i";
  4268. ;
  4269. memory "efuse"
  4270. size = 1;
  4271. min_write_delay = 16000;
  4272. max_write_delay = 16000;
  4273. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  4274. "x x x x x x x x o o o o o o o o";
  4275. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  4276. "x x x x x x x x 1 1 1 1 1 i i i";
  4277. ;
  4278. memory "lock"
  4279. size = 1;
  4280. min_write_delay = 16000;
  4281. max_write_delay = 16000;
  4282. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  4283. "x x x x x x x x x x o o o o o o";
  4284. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  4285. "x x x x x x x x 1 1 i i i i i i";
  4286. ;
  4287. memory "signature"
  4288. size = 3;
  4289. read = "0 0 1 1 0 0 0 0 0 0 x x x x x x",
  4290. "x x x x x x a1 a0 o o o o o o o o";
  4291. ;
  4292. memory "calibration"
  4293. size = 1;
  4294. read = "0 0 1 1 1 0 0 0 0 0 x x x x x x",
  4295. "0 0 0 0 0 0 0 0 o o o o o o o o";
  4296. ;
  4297. ;
  4298. #------------------------------------------------------------
  4299. # ATmega163
  4300. #------------------------------------------------------------
  4301. part
  4302. id = "m163";
  4303. desc = "ATmega163";
  4304. stk500_devcode = 0x81;
  4305. avr910_devcode = 0x64;
  4306. signature = 0x1e 0x94 0x02;
  4307. chip_erase_delay = 32000;
  4308. pagel = 0xd7;
  4309. bs2 = 0xa0;
  4310. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  4311. "x x x x x x x x x x x x x x x x";
  4312. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 0 0 0 0 0",
  4313. "x x x x x x x x x x x x x x x x";
  4314. timeout = 200;
  4315. stabdelay = 100;
  4316. cmdexedelay = 25;
  4317. synchloops = 32;
  4318. bytedelay = 0;
  4319. pollindex = 3;
  4320. pollvalue = 0x53;
  4321. predelay = 1;
  4322. postdelay = 1;
  4323. pollmethod = 0;
  4324. pp_controlstack =
  4325. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  4326. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  4327. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  4328. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  4329. hventerstabdelay = 100;
  4330. progmodedelay = 0;
  4331. latchcycles = 0;
  4332. togglevtg = 0;
  4333. poweroffdelay = 0;
  4334. resetdelayms = 0;
  4335. resetdelayus = 0;
  4336. hvleavestabdelay = 15;
  4337. chiperasepulsewidth = 0;
  4338. chiperasepolltimeout = 30;
  4339. programfusepulsewidth = 0;
  4340. programfusepolltimeout = 2;
  4341. programlockpulsewidth = 0;
  4342. programlockpolltimeout = 2;
  4343. memory "eeprom"
  4344. size = 512;
  4345. min_write_delay = 4000;
  4346. max_write_delay = 4000;
  4347. readback_p1 = 0xff;
  4348. readback_p2 = 0xff;
  4349. read = " 1 0 1 0 0 0 0 0",
  4350. " x x x x x x x a8",
  4351. " a7 a6 a5 a4 a3 a2 a1 a0",
  4352. " o o o o o o o o";
  4353. write = " 1 1 0 0 0 0 0 0",
  4354. " x x x x x x x a8",
  4355. " a7 a6 a5 a4 a3 a2 a1 a0",
  4356. " i i i i i i i i";
  4357. mode = 0x41;
  4358. delay = 20;
  4359. blocksize = 4;
  4360. readsize = 256;
  4361. ;
  4362. memory "flash"
  4363. paged = yes;
  4364. size = 16384;
  4365. page_size = 128;
  4366. num_pages = 128;
  4367. min_write_delay = 16000;
  4368. max_write_delay = 16000;
  4369. readback_p1 = 0xff;
  4370. readback_p2 = 0xff;
  4371. read_lo = " 0 0 1 0 0 0 0 0",
  4372. " x x x a12 a11 a10 a9 a8",
  4373. " a7 a6 a5 a4 a3 a2 a1 a0",
  4374. " o o o o o o o o";
  4375. read_hi = " 0 0 1 0 1 0 0 0",
  4376. " x x x a12 a11 a10 a9 a8",
  4377. " a7 a6 a5 a4 a3 a2 a1 a0",
  4378. " o o o o o o o o";
  4379. loadpage_lo = " 0 1 0 0 0 0 0 0",
  4380. " x x x x x x x x",
  4381. " x x a5 a4 a3 a2 a1 a0",
  4382. " i i i i i i i i";
  4383. loadpage_hi = " 0 1 0 0 1 0 0 0",
  4384. " x x x x x x x x",
  4385. " x x a5 a4 a3 a2 a1 a0",
  4386. " i i i i i i i i";
  4387. writepage = " 0 1 0 0 1 1 0 0",
  4388. " x x x a12 a11 a10 a9 a8",
  4389. " a7 a6 x x x x x x",
  4390. " x x x x x x x x";
  4391. mode = 0x11;
  4392. delay = 20;
  4393. blocksize = 128;
  4394. readsize = 256;
  4395. ;
  4396. memory "lfuse"
  4397. size = 1;
  4398. min_write_delay = 2000;
  4399. max_write_delay = 2000;
  4400. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  4401. "x x x x x x x x o o x x o o o o";
  4402. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  4403. "x x x x x x x x i i 1 1 i i i i";
  4404. ;
  4405. memory "hfuse"
  4406. size = 1;
  4407. min_write_delay = 2000;
  4408. max_write_delay = 2000;
  4409. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  4410. "x x x x x x x x x x x x 1 o o o";
  4411. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  4412. "x x x x x x x x 1 1 1 1 1 i i i";
  4413. ;
  4414. memory "lock"
  4415. size = 1;
  4416. min_write_delay = 2000;
  4417. max_write_delay = 2000;
  4418. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  4419. "x x x x 0 x x x x x o o o o o o";
  4420. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  4421. "x x x x x x x x 1 1 i i i i i i";
  4422. ;
  4423. memory "signature"
  4424. size = 3;
  4425. read = "0 0 1 1 0 0 0 0 x x x x x x x x",
  4426. "x x x x x x a1 a0 o o o o o o o o";
  4427. ;
  4428. memory "calibration"
  4429. size = 1;
  4430. read = "0 0 1 1 1 0 0 0 x x x x x x x x",
  4431. "0 0 0 0 0 0 0 0 o o o o o o o o";
  4432. ;
  4433. ;
  4434. #------------------------------------------------------------
  4435. # ATmega169
  4436. #------------------------------------------------------------
  4437. part
  4438. id = "m169";
  4439. desc = "ATmega169";
  4440. has_jtag = yes;
  4441. stk500_devcode = 0x85;
  4442. avr910_devcode = 0x78;
  4443. signature = 0x1e 0x94 0x05;
  4444. chip_erase_delay = 9000;
  4445. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  4446. "x x x x x x x x x x x x x x x x";
  4447. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 0 0 0 0 0",
  4448. "x x x x x x x x x x x x x x x x";
  4449. timeout = 200;
  4450. stabdelay = 100;
  4451. cmdexedelay = 25;
  4452. synchloops = 32;
  4453. bytedelay = 0;
  4454. pollindex = 3;
  4455. pollvalue = 0x53;
  4456. predelay = 1;
  4457. postdelay = 1;
  4458. pollmethod = 1;
  4459. pp_controlstack =
  4460. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  4461. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  4462. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  4463. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  4464. hventerstabdelay = 100;
  4465. progmodedelay = 0;
  4466. latchcycles = 5;
  4467. togglevtg = 1;
  4468. poweroffdelay = 15;
  4469. resetdelayms = 1;
  4470. resetdelayus = 0;
  4471. hvleavestabdelay = 15;
  4472. chiperasepulsewidth = 0;
  4473. chiperasepolltimeout = 10;
  4474. programfusepulsewidth = 0;
  4475. programfusepolltimeout = 5;
  4476. programlockpulsewidth = 0;
  4477. programlockpolltimeout = 5;
  4478. idr = 0x31;
  4479. spmcr = 0x57;
  4480. ocdrev = 2;
  4481. memory "eeprom"
  4482. paged = no; /* leave this "no" */
  4483. page_size = 4; /* for parallel programming */
  4484. size = 512;
  4485. min_write_delay = 9000;
  4486. max_write_delay = 9000;
  4487. readback_p1 = 0xff;
  4488. readback_p2 = 0xff;
  4489. read = " 1 0 1 0 0 0 0 0",
  4490. " x x x x x x x a8",
  4491. " a7 a6 a5 a4 a3 a2 a1 a0",
  4492. " o o o o o o o o";
  4493. write = " 1 1 0 0 0 0 0 0",
  4494. " x x x x x x x a8",
  4495. " a7 a6 a5 a4 a3 a2 a1 a0",
  4496. " i i i i i i i i";
  4497. loadpage_lo = " 1 1 0 0 0 0 0 1",
  4498. " 0 0 0 0 0 0 0 0",
  4499. " 0 0 0 0 0 0 a1 a0",
  4500. " i i i i i i i i";
  4501. writepage = " 1 1 0 0 0 0 1 0",
  4502. " 0 0 x x x x x a8",
  4503. " a7 a6 a5 a4 a3 a2 0 0",
  4504. " x x x x x x x x";
  4505. mode = 0x41;
  4506. delay = 20;
  4507. blocksize = 4;
  4508. readsize = 256;
  4509. ;
  4510. memory "flash"
  4511. paged = yes;
  4512. size = 16384;
  4513. page_size = 128;
  4514. num_pages = 128;
  4515. min_write_delay = 4500;
  4516. max_write_delay = 4500;
  4517. readback_p1 = 0xff;
  4518. readback_p2 = 0xff;
  4519. read_lo = " 0 0 1 0 0 0 0 0",
  4520. " x x x a12 a11 a10 a9 a8",
  4521. " a7 a6 a5 a4 a3 a2 a1 a0",
  4522. " o o o o o o o o";
  4523. read_hi = " 0 0 1 0 1 0 0 0",
  4524. " x x x a12 a11 a10 a9 a8",
  4525. " a7 a6 a5 a4 a3 a2 a1 a0",
  4526. " o o o o o o o o";
  4527. loadpage_lo = " 0 1 0 0 0 0 0 0",
  4528. " x x x x x x x x",
  4529. " x x a5 a4 a3 a2 a1 a0",
  4530. " i i i i i i i i";
  4531. loadpage_hi = " 0 1 0 0 1 0 0 0",
  4532. " x x x x x x x x",
  4533. " x x a5 a4 a3 a2 a1 a0",
  4534. " i i i i i i i i";
  4535. writepage = " 0 1 0 0 1 1 0 0",
  4536. " x x x a12 a11 a10 a9 a8",
  4537. " a7 a6 x x x x x x",
  4538. " x x x x x x x x";
  4539. mode = 0x41;
  4540. delay = 6;
  4541. blocksize = 128;
  4542. readsize = 256;
  4543. ;
  4544. memory "lfuse"
  4545. size = 1;
  4546. min_write_delay = 2000;
  4547. max_write_delay = 2000;
  4548. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  4549. "x x x x x x x x o o o o o o o o";
  4550. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  4551. "x x x x x x x x i i i i i i i i";
  4552. ;
  4553. memory "hfuse"
  4554. size = 1;
  4555. min_write_delay = 2000;
  4556. max_write_delay = 2000;
  4557. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  4558. "x x x x x x x x o o o o o o o o";
  4559. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  4560. "x x x x x x x x i i i i i i i i";
  4561. ;
  4562. memory "efuse"
  4563. size = 1;
  4564. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  4565. "x x x x x x x x x x x x i i i i";
  4566. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  4567. "x x x x x x x x o o o o o o o o";
  4568. ;
  4569. memory "lock"
  4570. size = 1;
  4571. min_write_delay = 2000;
  4572. max_write_delay = 2000;
  4573. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  4574. "x x x x x x x x x x o o o o o o";
  4575. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  4576. "x x x x x x x x 1 1 i i i i i i";
  4577. ;
  4578. memory "signature"
  4579. size = 3;
  4580. read = "0 0 1 1 0 0 0 0 0 0 0 x x x x x",
  4581. "x x x x x x a1 a0 o o o o o o o o";
  4582. ;
  4583. memory "calibration"
  4584. size = 1;
  4585. read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
  4586. "0 0 0 0 0 0 0 0 o o o o o o o o";
  4587. ;
  4588. ;
  4589. #------------------------------------------------------------
  4590. # ATmega329
  4591. #------------------------------------------------------------
  4592. part
  4593. id = "m329";
  4594. desc = "ATmega329";
  4595. has_jtag = yes;
  4596. # stk500_devcode = 0x85; # no STK500 support, only STK500v2
  4597. # avr910_devcode = 0x?; # try the ATmega169 one:
  4598. avr910_devcode = 0x75;
  4599. signature = 0x1e 0x95 0x03;
  4600. chip_erase_delay = 9000;
  4601. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  4602. "x x x x x x x x x x x x x x x x";
  4603. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 0 0 0 0 0",
  4604. "x x x x x x x x x x x x x x x x";
  4605. timeout = 200;
  4606. stabdelay = 100;
  4607. cmdexedelay = 25;
  4608. synchloops = 32;
  4609. bytedelay = 0;
  4610. pollindex = 3;
  4611. pollvalue = 0x53;
  4612. predelay = 1;
  4613. postdelay = 1;
  4614. pollmethod = 1;
  4615. pp_controlstack =
  4616. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  4617. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  4618. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  4619. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  4620. hventerstabdelay = 100;
  4621. progmodedelay = 0;
  4622. latchcycles = 5;
  4623. togglevtg = 1;
  4624. poweroffdelay = 15;
  4625. resetdelayms = 1;
  4626. resetdelayus = 0;
  4627. hvleavestabdelay = 15;
  4628. chiperasepulsewidth = 0;
  4629. chiperasepolltimeout = 10;
  4630. programfusepulsewidth = 0;
  4631. programfusepolltimeout = 5;
  4632. programlockpulsewidth = 0;
  4633. programlockpolltimeout = 5;
  4634. idr = 0x31;
  4635. spmcr = 0x57;
  4636. ocdrev = 3;
  4637. memory "eeprom"
  4638. paged = no; /* leave this "no" */
  4639. page_size = 4; /* for parallel programming */
  4640. size = 1024;
  4641. min_write_delay = 9000;
  4642. max_write_delay = 9000;
  4643. readback_p1 = 0xff;
  4644. readback_p2 = 0xff;
  4645. read = " 1 0 1 0 0 0 0 0",
  4646. " x x x x x x a9 a8",
  4647. " a7 a6 a5 a4 a3 a2 a1 a0",
  4648. " o o o o o o o o";
  4649. write = " 1 1 0 0 0 0 0 0",
  4650. " x x x x x x a9 a8",
  4651. " a7 a6 a5 a4 a3 a2 a1 a0",
  4652. " i i i i i i i i";
  4653. loadpage_lo = " 1 1 0 0 0 0 0 1",
  4654. " 0 0 0 0 0 0 0 0",
  4655. " 0 0 0 0 0 0 a1 a0",
  4656. " i i i i i i i i";
  4657. writepage = " 1 1 0 0 0 0 1 0",
  4658. " 0 0 x x x x a9 a8",
  4659. " a7 a6 a5 a4 a3 a2 0 0",
  4660. " x x x x x x x x";
  4661. mode = 0x41;
  4662. delay = 20;
  4663. blocksize = 8;
  4664. readsize = 256;
  4665. ;
  4666. memory "flash"
  4667. paged = yes;
  4668. size = 32768;
  4669. page_size = 128;
  4670. num_pages = 256;
  4671. min_write_delay = 4500;
  4672. max_write_delay = 4500;
  4673. readback_p1 = 0xff;
  4674. readback_p2 = 0xff;
  4675. read_lo = " 0 0 1 0 0 0 0 0",
  4676. " x a14 a13 a12 a11 a10 a9 a8",
  4677. " a7 a6 a5 a4 a3 a2 a1 a0",
  4678. " o o o o o o o o";
  4679. read_hi = " 0 0 1 0 1 0 0 0",
  4680. " x a14 a13 a12 a11 a10 a9 a8",
  4681. " a7 a6 a5 a4 a3 a2 a1 a0",
  4682. " o o o o o o o o";
  4683. loadpage_lo = " 0 1 0 0 0 0 0 0",
  4684. " x x x x x x x x",
  4685. " x x a5 a4 a3 a2 a1 a0",
  4686. " i i i i i i i i";
  4687. loadpage_hi = " 0 1 0 0 1 0 0 0",
  4688. " x x x x x x x x",
  4689. " x x a5 a4 a3 a2 a1 a0",
  4690. " i i i i i i i i";
  4691. writepage = " 0 1 0 0 1 1 0 0",
  4692. " x x x a12 a11 a10 a9 a8",
  4693. " a7 a6 x x x x x x",
  4694. " x x x x x x x x";
  4695. mode = 0x41;
  4696. delay = 6;
  4697. blocksize = 256;
  4698. readsize = 256;
  4699. ;
  4700. memory "lfuse"
  4701. size = 1;
  4702. min_write_delay = 4500;
  4703. max_write_delay = 4500;
  4704. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  4705. "x x x x x x x x o o o o o o o o";
  4706. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  4707. "x x x x x x x x i i i i i i i i";
  4708. ;
  4709. memory "hfuse"
  4710. size = 1;
  4711. min_write_delay = 4500;
  4712. max_write_delay = 4500;
  4713. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  4714. "x x x x x x x x o o o o o o o o";
  4715. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  4716. "x x x x x x x x i i i i i i i i";
  4717. ;
  4718. memory "efuse"
  4719. size = 1;
  4720. min_write_delay = 4500;
  4721. max_write_delay = 4500;
  4722. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  4723. "x x x x x x x x o o o o o o o o";
  4724. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  4725. "x x x x x x x x x x x x x i i i";
  4726. ;
  4727. memory "lock"
  4728. size = 1;
  4729. min_write_delay = 4500;
  4730. max_write_delay = 4500;
  4731. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  4732. "x x x x x x x x x x o o o o o o";
  4733. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  4734. "x x x x x x x x 1 1 i i i i i i";
  4735. ;
  4736. memory "signature"
  4737. size = 3;
  4738. read = "0 0 1 1 0 0 0 0 0 0 0 x x x x x",
  4739. "x x x x x x a1 a0 o o o o o o o o";
  4740. ;
  4741. memory "calibration"
  4742. size = 1;
  4743. read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
  4744. "0 0 0 0 0 0 0 0 o o o o o o o o";
  4745. ;
  4746. ;
  4747. #------------------------------------------------------------
  4748. # ATmega329P
  4749. #------------------------------------------------------------
  4750. # Identical to ATmega329 except of the signature
  4751. part parent "m329"
  4752. id = "m329p";
  4753. desc = "ATmega329P";
  4754. signature = 0x1e 0x95 0x0b;
  4755. ocdrev = 3;
  4756. ;
  4757. #------------------------------------------------------------
  4758. # ATmega3290
  4759. #------------------------------------------------------------
  4760. # identical to ATmega329
  4761. part parent "m329"
  4762. id = "m3290";
  4763. desc = "ATmega3290";
  4764. signature = 0x1e 0x95 0x04;
  4765. ocdrev = 3;
  4766. ;
  4767. #------------------------------------------------------------
  4768. # ATmega3290P
  4769. #------------------------------------------------------------
  4770. # identical to ATmega3290 except of the signature
  4771. part parent "m3290"
  4772. id = "m3290p";
  4773. desc = "ATmega3290P";
  4774. signature = 0x1e 0x95 0x0c;
  4775. ocdrev = 3;
  4776. ;
  4777. #------------------------------------------------------------
  4778. # ATmega649
  4779. #------------------------------------------------------------
  4780. part
  4781. id = "m649";
  4782. desc = "ATmega649";
  4783. has_jtag = yes;
  4784. # stk500_devcode = 0x85; # no STK500 support, only STK500v2
  4785. # avr910_devcode = 0x?; # try the ATmega169 one:
  4786. avr910_devcode = 0x75;
  4787. signature = 0x1e 0x96 0x03;
  4788. chip_erase_delay = 9000;
  4789. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  4790. "x x x x x x x x x x x x x x x x";
  4791. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 0 0 0 0 0",
  4792. "x x x x x x x x x x x x x x x x";
  4793. timeout = 200;
  4794. stabdelay = 100;
  4795. cmdexedelay = 25;
  4796. synchloops = 32;
  4797. bytedelay = 0;
  4798. pollindex = 3;
  4799. pollvalue = 0x53;
  4800. predelay = 1;
  4801. postdelay = 1;
  4802. pollmethod = 1;
  4803. pp_controlstack =
  4804. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  4805. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  4806. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  4807. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  4808. hventerstabdelay = 100;
  4809. progmodedelay = 0;
  4810. latchcycles = 5;
  4811. togglevtg = 1;
  4812. poweroffdelay = 15;
  4813. resetdelayms = 1;
  4814. resetdelayus = 0;
  4815. hvleavestabdelay = 15;
  4816. chiperasepulsewidth = 0;
  4817. chiperasepolltimeout = 10;
  4818. programfusepulsewidth = 0;
  4819. programfusepolltimeout = 5;
  4820. programlockpulsewidth = 0;
  4821. programlockpolltimeout = 5;
  4822. idr = 0x31;
  4823. spmcr = 0x57;
  4824. ocdrev = 3;
  4825. memory "eeprom"
  4826. paged = no; /* leave this "no" */
  4827. page_size = 8; /* for parallel programming */
  4828. size = 2048;
  4829. min_write_delay = 9000;
  4830. max_write_delay = 9000;
  4831. readback_p1 = 0xff;
  4832. readback_p2 = 0xff;
  4833. read = " 1 0 1 0 0 0 0 0",
  4834. " x x x x x a10 a9 a8",
  4835. " a7 a6 a5 a4 a3 a2 a1 a0",
  4836. " o o o o o o o o";
  4837. write = " 1 1 0 0 0 0 0 0",
  4838. " x x x x x a10 a9 a8",
  4839. " a7 a6 a5 a4 a3 a2 a1 a0",
  4840. " i i i i i i i i";
  4841. loadpage_lo = " 1 1 0 0 0 0 0 1",
  4842. " 0 0 0 0 0 0 0 0",
  4843. " 0 0 0 0 0 a2 a1 a0",
  4844. " i i i i i i i i";
  4845. writepage = " 1 1 0 0 0 0 1 0",
  4846. " 0 0 x x x a10 a9 a8",
  4847. " a7 a6 a5 a4 a3 0 0 0",
  4848. " x x x x x x x x";
  4849. mode = 0x41;
  4850. delay = 20;
  4851. blocksize = 8;
  4852. readsize = 256;
  4853. ;
  4854. memory "flash"
  4855. paged = yes;
  4856. size = 65536;
  4857. page_size = 256;
  4858. num_pages = 256;
  4859. min_write_delay = 4500;
  4860. max_write_delay = 4500;
  4861. readback_p1 = 0xff;
  4862. readback_p2 = 0xff;
  4863. read_lo = " 0 0 1 0 0 0 0 0",
  4864. "a15 a14 a13 a12 a11 a10 a9 a8",
  4865. " a7 a6 a5 a4 a3 a2 a1 a0",
  4866. " o o o o o o o o";
  4867. read_hi = " 0 0 1 0 1 0 0 0",
  4868. "a15 a14 a13 a12 a11 a10 a9 a8",
  4869. " a7 a6 a5 a4 a3 a2 a1 a0",
  4870. " o o o o o o o o";
  4871. loadpage_lo = " 0 1 0 0 0 0 0 0",
  4872. " x x x x x x x x",
  4873. " x a6 a5 a4 a3 a2 a1 a0",
  4874. " i i i i i i i i";
  4875. loadpage_hi = " 0 1 0 0 1 0 0 0",
  4876. " x x x x x x x x",
  4877. " x a6 a5 a4 a3 a2 a1 a0",
  4878. " i i i i i i i i";
  4879. writepage = " 0 1 0 0 1 1 0 0",
  4880. " x x x a12 a11 a10 a9 a8",
  4881. " a7 x x x x x x x",
  4882. " x x x x x x x x";
  4883. mode = 0x41;
  4884. delay = 6;
  4885. blocksize = 256;
  4886. readsize = 256;
  4887. ;
  4888. memory "lfuse"
  4889. size = 1;
  4890. min_write_delay = 4500;
  4891. max_write_delay = 4500;
  4892. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  4893. "x x x x x x x x o o o o o o o o";
  4894. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  4895. "x x x x x x x x i i i i i i i i";
  4896. ;
  4897. memory "hfuse"
  4898. size = 1;
  4899. min_write_delay = 4500;
  4900. max_write_delay = 4500;
  4901. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  4902. "x x x x x x x x o o o o o o o o";
  4903. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  4904. "x x x x x x x x i i i i i i i i";
  4905. ;
  4906. memory "efuse"
  4907. size = 1;
  4908. min_write_delay = 4500;
  4909. max_write_delay = 4500;
  4910. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  4911. "x x x x x x x x o o o o o o o o";
  4912. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  4913. "x x x x x x x x x x x x x i i i";
  4914. ;
  4915. memory "lock"
  4916. size = 1;
  4917. min_write_delay = 4500;
  4918. max_write_delay = 4500;
  4919. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  4920. "x x x x x x x x x x o o o o o o";
  4921. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  4922. "x x x x x x x x 1 1 i i i i i i";
  4923. ;
  4924. memory "signature"
  4925. size = 3;
  4926. read = "0 0 1 1 0 0 0 0 0 0 0 x x x x x",
  4927. "x x x x x x a1 a0 o o o o o o o o";
  4928. ;
  4929. memory "calibration"
  4930. size = 1;
  4931. read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
  4932. "0 0 0 0 0 0 0 0 o o o o o o o o";
  4933. ;
  4934. ;
  4935. #------------------------------------------------------------
  4936. # ATmega6490
  4937. #------------------------------------------------------------
  4938. # identical to ATmega649
  4939. part parent "m649"
  4940. id = "m6490";
  4941. desc = "ATmega6490";
  4942. signature = 0x1e 0x96 0x04;
  4943. ocdrev = 3;
  4944. ;
  4945. #------------------------------------------------------------
  4946. # ATmega32
  4947. #------------------------------------------------------------
  4948. part
  4949. id = "m32";
  4950. desc = "ATmega32";
  4951. has_jtag = yes;
  4952. stk500_devcode = 0x91;
  4953. avr910_devcode = 0x72;
  4954. signature = 0x1e 0x95 0x02;
  4955. chip_erase_delay = 9000;
  4956. pagel = 0xd7;
  4957. bs2 = 0xa0;
  4958. reset = dedicated;
  4959. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  4960. "x x x x x x x x x x x x x x x x";
  4961. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 0 0 0 0 0",
  4962. "x x x x x x x x x x x x x x x x";
  4963. timeout = 200;
  4964. stabdelay = 100;
  4965. cmdexedelay = 25;
  4966. synchloops = 32;
  4967. bytedelay = 0;
  4968. pollindex = 3;
  4969. pollvalue = 0x53;
  4970. predelay = 1;
  4971. postdelay = 1;
  4972. pollmethod = 0;
  4973. pp_controlstack =
  4974. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  4975. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  4976. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  4977. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  4978. hventerstabdelay = 100;
  4979. progmodedelay = 0;
  4980. latchcycles = 6;
  4981. togglevtg = 0;
  4982. poweroffdelay = 0;
  4983. resetdelayms = 0;
  4984. resetdelayus = 0;
  4985. hvleavestabdelay = 15;
  4986. chiperasepulsewidth = 0;
  4987. chiperasepolltimeout = 10;
  4988. programfusepulsewidth = 0;
  4989. programfusepolltimeout = 5;
  4990. programlockpulsewidth = 0;
  4991. programlockpolltimeout = 5;
  4992. idr = 0x31;
  4993. spmcr = 0x57;
  4994. allowfullpagebitstream = yes;
  4995. ocdrev = 2;
  4996. memory "eeprom"
  4997. paged = no; /* leave this "no" */
  4998. page_size = 4; /* for parallel programming */
  4999. size = 1024;
  5000. min_write_delay = 9000;
  5001. max_write_delay = 9000;
  5002. readback_p1 = 0xff;
  5003. readback_p2 = 0xff;
  5004. read = " 1 0 1 0 0 0 0 0",
  5005. " 0 0 x x x x a9 a8",
  5006. " a7 a6 a5 a4 a3 a2 a1 a0",
  5007. " o o o o o o o o";
  5008. write = " 1 1 0 0 0 0 0 0",
  5009. " 0 0 x x x x a9 a8",
  5010. " a7 a6 a5 a4 a3 a2 a1 a0",
  5011. " i i i i i i i i";
  5012. loadpage_lo = " 1 1 0 0 0 0 0 1",
  5013. " 0 0 0 0 0 0 0 0",
  5014. " 0 0 0 0 0 0 a1 a0",
  5015. " i i i i i i i i";
  5016. writepage = " 1 1 0 0 0 0 1 0",
  5017. " 0 0 x x x x a9 a8",
  5018. " a7 a6 a5 a4 a3 a2 0 0",
  5019. " x x x x x x x x";
  5020. mode = 0x04;
  5021. delay = 10;
  5022. blocksize = 64;
  5023. readsize = 256;
  5024. ;
  5025. memory "flash"
  5026. paged = yes;
  5027. size = 32768;
  5028. page_size = 128;
  5029. num_pages = 256;
  5030. min_write_delay = 4500;
  5031. max_write_delay = 4500;
  5032. readback_p1 = 0xff;
  5033. readback_p2 = 0xff;
  5034. read_lo = " 0 0 1 0 0 0 0 0",
  5035. " 0 0 a13 a12 a11 a10 a9 a8",
  5036. " a7 a6 a5 a4 a3 a2 a1 a0",
  5037. " o o o o o o o o";
  5038. read_hi = " 0 0 1 0 1 0 0 0",
  5039. " 0 0 a13 a12 a11 a10 a9 a8",
  5040. " a7 a6 a5 a4 a3 a2 a1 a0",
  5041. " o o o o o o o o";
  5042. loadpage_lo = " 0 1 0 0 0 0 0 0",
  5043. " 0 0 x x x x x x",
  5044. " x x a5 a4 a3 a2 a1 a0",
  5045. " i i i i i i i i";
  5046. loadpage_hi = " 0 1 0 0 1 0 0 0",
  5047. " 0 0 x x x x x x",
  5048. " x x a5 a4 a3 a2 a1 a0",
  5049. " i i i i i i i i";
  5050. writepage = " 0 1 0 0 1 1 0 0",
  5051. " 0 0 a13 a12 a11 a10 a9 a8",
  5052. " a7 a6 x x x x x x",
  5053. " x x x x x x x x";
  5054. mode = 0x21;
  5055. delay = 6;
  5056. blocksize = 64;
  5057. readsize = 256;
  5058. ;
  5059. memory "lfuse"
  5060. size = 1;
  5061. min_write_delay = 2000;
  5062. max_write_delay = 2000;
  5063. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  5064. "x x x x x x x x o o o o o o o o";
  5065. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  5066. "x x x x x x x x i i i i i i i i";
  5067. ;
  5068. memory "hfuse"
  5069. size = 1;
  5070. min_write_delay = 2000;
  5071. max_write_delay = 2000;
  5072. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  5073. "x x x x x x x x o o o o o o o o";
  5074. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  5075. "x x x x x x x x i i i i i i i i";
  5076. ;
  5077. memory "lock"
  5078. size = 1;
  5079. min_write_delay = 2000;
  5080. max_write_delay = 2000;
  5081. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  5082. "x x x x x x x x x x o o o o o o";
  5083. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  5084. "x x x x x x x x 1 1 i i i i i i";
  5085. ;
  5086. memory "signature"
  5087. size = 3;
  5088. read = "0 0 1 1 0 0 0 0 x x x x x x x x",
  5089. "x x x x x x a1 a0 o o o o o o o o";
  5090. ;
  5091. memory "calibration"
  5092. size = 4;
  5093. read = "0 0 1 1 1 0 0 0 0 0 x x x x x x",
  5094. "0 0 0 0 0 0 a1 a0 o o o o o o o o";
  5095. ;
  5096. ;
  5097. #------------------------------------------------------------
  5098. # ATmega161
  5099. #------------------------------------------------------------
  5100. part
  5101. id = "m161";
  5102. desc = "ATmega161";
  5103. stk500_devcode = 0x80;
  5104. avr910_devcode = 0x60;
  5105. signature = 0x1e 0x94 0x01;
  5106. chip_erase_delay = 28000;
  5107. pagel = 0xd7;
  5108. bs2 = 0xa0;
  5109. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  5110. "x x x x x x x x x x x x x x x x";
  5111. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 0 0 0 0 0",
  5112. "x x x x x x x x x x x x x x x x";
  5113. timeout = 200;
  5114. stabdelay = 100;
  5115. cmdexedelay = 25;
  5116. synchloops = 32;
  5117. bytedelay = 0;
  5118. pollindex = 3;
  5119. pollvalue = 0x53;
  5120. predelay = 1;
  5121. postdelay = 1;
  5122. pollmethod = 0;
  5123. pp_controlstack =
  5124. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  5125. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  5126. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  5127. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  5128. hventerstabdelay = 100;
  5129. progmodedelay = 0;
  5130. latchcycles = 0;
  5131. togglevtg = 0;
  5132. poweroffdelay = 0;
  5133. resetdelayms = 0;
  5134. resetdelayus = 0;
  5135. hvleavestabdelay = 15;
  5136. chiperasepulsewidth = 0;
  5137. chiperasepolltimeout = 30;
  5138. programfusepulsewidth = 0;
  5139. programfusepolltimeout = 2;
  5140. programlockpulsewidth = 0;
  5141. programlockpolltimeout = 2;
  5142. memory "eeprom"
  5143. size = 512;
  5144. min_write_delay = 3400;
  5145. max_write_delay = 3400;
  5146. readback_p1 = 0xff;
  5147. readback_p2 = 0xff;
  5148. read = " 1 0 1 0 0 0 0 0",
  5149. " x x x x x x x a8",
  5150. " a7 a6 a5 a4 a3 a2 a1 a0",
  5151. " o o o o o o o o";
  5152. write = " 1 1 0 0 0 0 0 0",
  5153. " x x x x x x x a8",
  5154. " a7 a6 a5 a4 a3 a2 a1 a0",
  5155. " i i i i i i i i";
  5156. mode = 0x04;
  5157. delay = 5;
  5158. blocksize = 128;
  5159. readsize = 256;
  5160. ;
  5161. memory "flash"
  5162. paged = yes;
  5163. size = 16384;
  5164. page_size = 128;
  5165. num_pages = 128;
  5166. min_write_delay = 14000;
  5167. max_write_delay = 14000;
  5168. readback_p1 = 0xff;
  5169. readback_p2 = 0xff;
  5170. read_lo = " 0 0 1 0 0 0 0 0",
  5171. " x x x a12 a11 a10 a9 a8",
  5172. " a7 a6 a5 a4 a3 a2 a1 a0",
  5173. " o o o o o o o o";
  5174. read_hi = " 0 0 1 0 1 0 0 0",
  5175. " x x x a12 a11 a10 a9 a8",
  5176. " a7 a6 a5 a4 a3 a2 a1 a0",
  5177. " o o o o o o o o";
  5178. loadpage_lo = " 0 1 0 0 0 0 0 0",
  5179. " x x x x x x x x",
  5180. " x x a5 a4 a3 a2 a1 a0",
  5181. " i i i i i i i i";
  5182. loadpage_hi = " 0 1 0 0 1 0 0 0",
  5183. " x x x x x x x x",
  5184. " x x a5 a4 a3 a2 a1 a0",
  5185. " i i i i i i i i";
  5186. writepage = " 0 1 0 0 1 1 0 0",
  5187. " x x x a12 a11 a10 a9 a8",
  5188. " a7 a6 x x x x x x",
  5189. " x x x x x x x x";
  5190. mode = 0x21;
  5191. delay = 16;
  5192. blocksize = 128;
  5193. readsize = 256;
  5194. ;
  5195. memory "fuse"
  5196. size = 1;
  5197. min_write_delay = 2000;
  5198. max_write_delay = 2000;
  5199. read = "0 1 0 1 0 0 0 0 x x x x x x x x",
  5200. "x x x x x x x x x o x o o o o o";
  5201. write = "1 0 1 0 1 1 0 0 1 0 1 x x x x x",
  5202. "x x x x x x x x 1 i 1 i i i i i";
  5203. ;
  5204. memory "lock"
  5205. size = 1;
  5206. min_write_delay = 2000;
  5207. max_write_delay = 2000;
  5208. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  5209. "x x x x x x x x x x o o o o o o";
  5210. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  5211. "x x x x x x x x 1 1 i i i i i i";
  5212. ;
  5213. memory "signature"
  5214. size = 3;
  5215. read = "0 0 1 1 0 0 0 0 x x x x x x x x",
  5216. "x x x x x x a1 a0 o o o o o o o o";
  5217. ;
  5218. ;
  5219. #------------------------------------------------------------
  5220. # ATmega8
  5221. #------------------------------------------------------------
  5222. part
  5223. id = "m8";
  5224. desc = "ATmega8";
  5225. stk500_devcode = 0x70;
  5226. avr910_devcode = 0x76;
  5227. signature = 0x1e 0x93 0x07;
  5228. pagel = 0xd7;
  5229. bs2 = 0xc2;
  5230. chip_erase_delay = 10000;
  5231. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  5232. "x x x x x x x x x x x x x x x x";
  5233. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
  5234. "x x x x x x x x x x x x x x x x";
  5235. timeout = 200;
  5236. stabdelay = 100;
  5237. cmdexedelay = 25;
  5238. synchloops = 32;
  5239. bytedelay = 0;
  5240. pollindex = 3;
  5241. pollvalue = 0x53;
  5242. predelay = 1;
  5243. postdelay = 1;
  5244. pollmethod = 0;
  5245. pp_controlstack =
  5246. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  5247. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  5248. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  5249. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  5250. hventerstabdelay = 100;
  5251. progmodedelay = 0;
  5252. latchcycles = 5;
  5253. togglevtg = 1;
  5254. poweroffdelay = 15;
  5255. resetdelayms = 2;
  5256. resetdelayus = 0;
  5257. hvleavestabdelay = 15;
  5258. resetdelay = 15;
  5259. chiperasepulsewidth = 0;
  5260. chiperasepolltimeout = 10;
  5261. programfusepulsewidth = 0;
  5262. programfusepolltimeout = 5;
  5263. programlockpulsewidth = 0;
  5264. programlockpolltimeout = 5;
  5265. memory "eeprom"
  5266. size = 512;
  5267. page_size = 4;
  5268. min_write_delay = 9000;
  5269. max_write_delay = 9000;
  5270. readback_p1 = 0xff;
  5271. readback_p2 = 0xff;
  5272. read = " 1 0 1 0 0 0 0 0",
  5273. " 0 0 x x x x x a8",
  5274. " a7 a6 a5 a4 a3 a2 a1 a0",
  5275. " o o o o o o o o";
  5276. write = " 1 1 0 0 0 0 0 0",
  5277. " 0 0 x x x x x a8",
  5278. " a7 a6 a5 a4 a3 a2 a1 a0",
  5279. " i i i i i i i i";
  5280. mode = 0x04;
  5281. delay = 20;
  5282. blocksize = 128;
  5283. readsize = 256;
  5284. ;
  5285. memory "flash"
  5286. paged = yes;
  5287. size = 8192;
  5288. page_size = 64;
  5289. num_pages = 128;
  5290. min_write_delay = 4500;
  5291. max_write_delay = 4500;
  5292. readback_p1 = 0xff;
  5293. readback_p2 = 0x00;
  5294. read_lo = " 0 0 1 0 0 0 0 0",
  5295. " 0 0 0 0 a11 a10 a9 a8",
  5296. " a7 a6 a5 a4 a3 a2 a1 a0",
  5297. " o o o o o o o o";
  5298. read_hi = " 0 0 1 0 1 0 0 0",
  5299. " 0 0 0 0 a11 a10 a9 a8",
  5300. " a7 a6 a5 a4 a3 a2 a1 a0",
  5301. " o o o o o o o o";
  5302. loadpage_lo = " 0 1 0 0 0 0 0 0",
  5303. " 0 0 0 0 x x x x",
  5304. " x x x a4 a3 a2 a1 a0",
  5305. " i i i i i i i i";
  5306. loadpage_hi = " 0 1 0 0 1 0 0 0",
  5307. " 0 0 0 0 x x x x",
  5308. " x x x a4 a3 a2 a1 a0",
  5309. " i i i i i i i i";
  5310. writepage = " 0 1 0 0 1 1 0 0",
  5311. " 0 0 0 0 a11 a10 a9 a8",
  5312. " a7 a6 a5 x x x x x",
  5313. " x x x x x x x x";
  5314. mode = 0x21;
  5315. delay = 10;
  5316. blocksize = 64;
  5317. readsize = 256;
  5318. ;
  5319. memory "lfuse"
  5320. size = 1;
  5321. min_write_delay = 2000;
  5322. max_write_delay = 2000;
  5323. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  5324. "x x x x x x x x o o o o o o o o";
  5325. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  5326. "x x x x x x x x i i i i i i i i";
  5327. ;
  5328. memory "hfuse"
  5329. size = 1;
  5330. min_write_delay = 2000;
  5331. max_write_delay = 2000;
  5332. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  5333. "x x x x x x x x o o o o o o o o";
  5334. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  5335. "x x x x x x x x i i i i i i i i";
  5336. ;
  5337. memory "lock"
  5338. size = 1;
  5339. min_write_delay = 2000;
  5340. max_write_delay = 2000;
  5341. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  5342. "x x x x x x x x x x o o o o o o";
  5343. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  5344. "x x x x x x x x 1 1 i i i i i i";
  5345. ;
  5346. memory "calibration"
  5347. size = 4;
  5348. read = "0 0 1 1 1 0 0 0 0 0 x x x x x x",
  5349. "0 0 0 0 0 0 a1 a0 o o o o o o o o";
  5350. ;
  5351. memory "signature"
  5352. size = 3;
  5353. read = "0 0 1 1 0 0 0 0 x x x x x x x x",
  5354. "x x x x x x a1 a0 o o o o o o o o";
  5355. ;
  5356. ;
  5357. #------------------------------------------------------------
  5358. # ATmega8515
  5359. #------------------------------------------------------------
  5360. part
  5361. id = "m8515";
  5362. desc = "ATmega8515";
  5363. stk500_devcode = 0x63;
  5364. avr910_devcode = 0x3A;
  5365. signature = 0x1e 0x93 0x06;
  5366. chip_erase_delay = 9000;
  5367. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  5368. "x x x x x x x x x x x x x x x x";
  5369. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
  5370. "x x x x x x x x x x x x x x x x";
  5371. timeout = 200;
  5372. stabdelay = 100;
  5373. cmdexedelay = 25;
  5374. synchloops = 32;
  5375. bytedelay = 0;
  5376. pollindex = 3;
  5377. pollvalue = 0x53;
  5378. predelay = 1;
  5379. postdelay = 1;
  5380. pollmethod = 0;
  5381. pp_controlstack =
  5382. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  5383. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  5384. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  5385. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  5386. hventerstabdelay = 100;
  5387. progmodedelay = 0;
  5388. latchcycles = 6;
  5389. togglevtg = 0;
  5390. poweroffdelay = 0;
  5391. resetdelayms = 0;
  5392. resetdelayus = 0;
  5393. hvleavestabdelay = 15;
  5394. chiperasepulsewidth = 0;
  5395. chiperasepolltimeout = 10;
  5396. programfusepulsewidth = 0;
  5397. programfusepolltimeout = 5;
  5398. programlockpulsewidth = 0;
  5399. programlockpolltimeout = 5;
  5400. memory "eeprom"
  5401. size = 512;
  5402. min_write_delay = 9000;
  5403. max_write_delay = 9000;
  5404. readback_p1 = 0xff;
  5405. readback_p2 = 0xff;
  5406. read = " 1 0 1 0 0 0 0 0",
  5407. " 0 0 x x x x x a8",
  5408. " a7 a6 a5 a4 a3 a2 a1 a0",
  5409. " o o o o o o o o";
  5410. write = " 1 1 0 0 0 0 0 0",
  5411. " 0 0 x x x x x a8",
  5412. " a7 a6 a5 a4 a3 a2 a1 a0",
  5413. " i i i i i i i i";
  5414. mode = 0x04;
  5415. delay = 20;
  5416. blocksize = 128;
  5417. readsize = 256;
  5418. ;
  5419. memory "flash"
  5420. paged = yes;
  5421. size = 8192;
  5422. page_size = 64;
  5423. num_pages = 128;
  5424. min_write_delay = 4500;
  5425. max_write_delay = 4500;
  5426. readback_p1 = 0xff;
  5427. readback_p2 = 0xff;
  5428. read_lo = " 0 0 1 0 0 0 0 0",
  5429. " 0 0 0 0 a11 a10 a9 a8",
  5430. " a7 a6 a5 a4 a3 a2 a1 a0",
  5431. " o o o o o o o o";
  5432. read_hi = " 0 0 1 0 1 0 0 0",
  5433. " 0 0 0 0 a11 a10 a9 a8",
  5434. " a7 a6 a5 a4 a3 a2 a1 a0",
  5435. " o o o o o o o o";
  5436. loadpage_lo = " 0 1 0 0 0 0 0 0",
  5437. " 0 0 0 0 x x x x",
  5438. " x x x a4 a3 a2 a1 a0",
  5439. " i i i i i i i i";
  5440. loadpage_hi = " 0 1 0 0 1 0 0 0",
  5441. " 0 0 0 0 x x x x",
  5442. " x x x a4 a3 a2 a1 a0",
  5443. " i i i i i i i i";
  5444. writepage = " 0 1 0 0 1 1 0 0",
  5445. " 0 0 0 0 a11 a10 a9 a8",
  5446. " a7 a6 a5 x x x x x",
  5447. " x x x x x x x x";
  5448. mode = 0x21;
  5449. delay = 6;
  5450. blocksize = 64;
  5451. readsize = 256;
  5452. ;
  5453. memory "lfuse"
  5454. size = 1;
  5455. min_write_delay = 4500;
  5456. max_write_delay = 4500;
  5457. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  5458. "x x x x x x x x o o o o o o o o";
  5459. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  5460. "x x x x x x x x i i i i i i i i";
  5461. ;
  5462. memory "hfuse"
  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 1 0 0 0",
  5467. "x x x x x x x x o o o o o o o o";
  5468. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  5469. "x x x x x x x x i i i i i i i i";
  5470. ;
  5471. memory "lock"
  5472. size = 1;
  5473. min_write_delay = 4500;
  5474. max_write_delay = 4500;
  5475. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  5476. "x x x x x x x x x x o o o o o o";
  5477. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  5478. "x x x x x x x x 1 1 i i i i i i";
  5479. ;
  5480. memory "calibration"
  5481. size = 4;
  5482. read = "0 0 1 1 1 0 0 0 0 0 x x x x x x",
  5483. "0 0 0 0 0 0 a1 a0 o o o o o o o o";
  5484. ;
  5485. memory "signature"
  5486. size = 3;
  5487. read = "0 0 1 1 0 0 0 0 x x x x x x x x",
  5488. "x x x x x x a1 a0 o o o o o o o o";
  5489. ;
  5490. ;
  5491. #------------------------------------------------------------
  5492. # ATmega8535
  5493. #------------------------------------------------------------
  5494. part
  5495. id = "m8535";
  5496. desc = "ATmega8535";
  5497. stk500_devcode = 0x64;
  5498. avr910_devcode = 0x69;
  5499. signature = 0x1e 0x93 0x08;
  5500. pagel = 0xd7;
  5501. bs2 = 0xa0;
  5502. chip_erase_delay = 9000;
  5503. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  5504. "x x x x x x x x x x x x x x x x";
  5505. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
  5506. "x x x x x x x x x x x x x x x x";
  5507. timeout = 200;
  5508. stabdelay = 100;
  5509. cmdexedelay = 25;
  5510. synchloops = 32;
  5511. bytedelay = 0;
  5512. pollindex = 3;
  5513. pollvalue = 0x53;
  5514. predelay = 1;
  5515. postdelay = 1;
  5516. pollmethod = 0;
  5517. pp_controlstack =
  5518. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  5519. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  5520. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  5521. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  5522. hventerstabdelay = 100;
  5523. progmodedelay = 0;
  5524. latchcycles = 6;
  5525. togglevtg = 0;
  5526. poweroffdelay = 0;
  5527. resetdelayms = 0;
  5528. resetdelayus = 0;
  5529. hvleavestabdelay = 15;
  5530. chiperasepulsewidth = 0;
  5531. chiperasepolltimeout = 10;
  5532. programfusepulsewidth = 0;
  5533. programfusepolltimeout = 5;
  5534. programlockpulsewidth = 0;
  5535. programlockpolltimeout = 5;
  5536. memory "eeprom"
  5537. size = 512;
  5538. min_write_delay = 9000;
  5539. max_write_delay = 9000;
  5540. readback_p1 = 0xff;
  5541. readback_p2 = 0xff;
  5542. read = " 1 0 1 0 0 0 0 0",
  5543. " 0 0 x x x x x a8",
  5544. " a7 a6 a5 a4 a3 a2 a1 a0",
  5545. " o o o o o o o o";
  5546. write = " 1 1 0 0 0 0 0 0",
  5547. " 0 0 x x x x x a8",
  5548. " a7 a6 a5 a4 a3 a2 a1 a0",
  5549. " i i i i i i i i";
  5550. mode = 0x04;
  5551. delay = 20;
  5552. blocksize = 128;
  5553. readsize = 256;
  5554. ;
  5555. memory "flash"
  5556. paged = yes;
  5557. size = 8192;
  5558. page_size = 64;
  5559. num_pages = 128;
  5560. min_write_delay = 4500;
  5561. max_write_delay = 4500;
  5562. readback_p1 = 0xff;
  5563. readback_p2 = 0xff;
  5564. read_lo = " 0 0 1 0 0 0 0 0",
  5565. " 0 0 0 0 a11 a10 a9 a8",
  5566. " a7 a6 a5 a4 a3 a2 a1 a0",
  5567. " o o o o o o o o";
  5568. read_hi = " 0 0 1 0 1 0 0 0",
  5569. " 0 0 0 0 a11 a10 a9 a8",
  5570. " a7 a6 a5 a4 a3 a2 a1 a0",
  5571. " o o o o o o o o";
  5572. loadpage_lo = " 0 1 0 0 0 0 0 0",
  5573. " 0 0 0 0 x x x x",
  5574. " x x x a4 a3 a2 a1 a0",
  5575. " i i i i i i i i";
  5576. loadpage_hi = " 0 1 0 0 1 0 0 0",
  5577. " 0 0 0 0 x x x x",
  5578. " x x x a4 a3 a2 a1 a0",
  5579. " i i i i i i i i";
  5580. writepage = " 0 1 0 0 1 1 0 0",
  5581. " 0 0 0 0 a11 a10 a9 a8",
  5582. " a7 a6 a5 x x x x x",
  5583. " x x x x x x x x";
  5584. mode = 0x21;
  5585. delay = 6;
  5586. blocksize = 64;
  5587. readsize = 256;
  5588. ;
  5589. memory "lfuse"
  5590. size = 1;
  5591. min_write_delay = 2000;
  5592. max_write_delay = 2000;
  5593. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  5594. "x x x x x x x x o o o o o o o o";
  5595. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  5596. "x x x x x x x x i i i i i i i i";
  5597. ;
  5598. memory "hfuse"
  5599. size = 1;
  5600. min_write_delay = 2000;
  5601. max_write_delay = 2000;
  5602. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  5603. "x x x x x x x x o o o o o o o o";
  5604. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  5605. "x x x x x x x x i i i i i i i i";
  5606. ;
  5607. memory "lock"
  5608. size = 1;
  5609. min_write_delay = 2000;
  5610. max_write_delay = 2000;
  5611. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  5612. "x x x x x x x x x x o o o o o o";
  5613. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  5614. "x x x x x x x x 1 1 i i i i i i";
  5615. ;
  5616. memory "calibration"
  5617. size = 4;
  5618. read = "0 0 1 1 1 0 0 0 0 0 x x x x x x",
  5619. "0 0 0 0 0 0 a1 a0 o o o o o o o o";
  5620. ;
  5621. memory "signature"
  5622. size = 3;
  5623. read = "0 0 1 1 0 0 0 0 x x x x x x x x",
  5624. "x x x x x x a1 a0 o o o o o o o o";
  5625. ;
  5626. ;
  5627. #------------------------------------------------------------
  5628. # ATtiny26
  5629. #------------------------------------------------------------
  5630. part
  5631. id = "t26";
  5632. desc = "ATtiny26";
  5633. stk500_devcode = 0x21;
  5634. avr910_devcode = 0x5e;
  5635. signature = 0x1e 0x91 0x09;
  5636. pagel = 0xb3;
  5637. bs2 = 0xb2;
  5638. chip_erase_delay = 9000;
  5639. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  5640. "x x x x x x x x x x x x x x x x";
  5641. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
  5642. "x x x x x x x x x x x x x x x x";
  5643. timeout = 200;
  5644. stabdelay = 100;
  5645. cmdexedelay = 25;
  5646. synchloops = 32;
  5647. bytedelay = 0;
  5648. pollindex = 3;
  5649. pollvalue = 0x53;
  5650. predelay = 1;
  5651. postdelay = 1;
  5652. pollmethod = 0;
  5653. pp_controlstack =
  5654. 0xC4, 0xE4, 0xC4, 0xE4, 0xCC, 0xEC, 0xCC, 0xEC,
  5655. 0xD4, 0xF4, 0xD4, 0xF4, 0xDC, 0xFC, 0xDC, 0xFC,
  5656. 0xC8, 0xE8, 0xD8, 0xF8, 0x4C, 0x6C, 0x5C, 0x7C,
  5657. 0xEC, 0xBC, 0x00, 0x06, 0x00, 0x00, 0x00, 0x00;
  5658. hventerstabdelay = 100;
  5659. progmodedelay = 0;
  5660. latchcycles = 5;
  5661. togglevtg = 1;
  5662. poweroffdelay = 15;
  5663. resetdelayms = 2;
  5664. resetdelayus = 0;
  5665. hvleavestabdelay = 15;
  5666. chiperasepulsewidth = 0;
  5667. chiperasepolltimeout = 10;
  5668. programfusepulsewidth = 0;
  5669. programfusepolltimeout = 5;
  5670. programlockpulsewidth = 0;
  5671. programlockpolltimeout = 5;
  5672. memory "eeprom"
  5673. size = 128;
  5674. min_write_delay = 9000;
  5675. max_write_delay = 9000;
  5676. readback_p1 = 0xff;
  5677. readback_p2 = 0xff;
  5678. read = "1 0 1 0 0 0 0 0 x x x x x x x x",
  5679. "x a6 a5 a4 a3 a2 a1 a0 o o o o o o o o";
  5680. write = "1 1 0 0 0 0 0 0 x x x x x x x x",
  5681. "x a6 a5 a4 a3 a2 a1 a0 i i i i i i i i";
  5682. mode = 0x04;
  5683. delay = 10;
  5684. blocksize = 64;
  5685. readsize = 256;
  5686. ;
  5687. memory "flash"
  5688. paged = yes;
  5689. size = 2048;
  5690. page_size = 32;
  5691. num_pages = 64;
  5692. min_write_delay = 4500;
  5693. max_write_delay = 4500;
  5694. readback_p1 = 0xff;
  5695. readback_p2 = 0xff;
  5696. read_lo = " 0 0 1 0 0 0 0 0",
  5697. " x x x x x x a9 a8",
  5698. " a7 a6 a5 a4 a3 a2 a1 a0",
  5699. " o o o o o o o o";
  5700. read_hi = " 0 0 1 0 1 0 0 0",
  5701. " x x x x x x a9 a8",
  5702. " a7 a6 a5 a4 a3 a2 a1 a0",
  5703. " o o o o o o o o";
  5704. loadpage_lo = " 0 1 0 0 0 0 0 0",
  5705. " x x x x x x x x",
  5706. " x x x x a3 a2 a1 a0",
  5707. " i i i i i i i i";
  5708. loadpage_hi = " 0 1 0 0 1 0 0 0",
  5709. " x x x x x x x x",
  5710. " x x x x a3 a2 a1 a0",
  5711. " i i i i i i i i";
  5712. writepage = " 0 1 0 0 1 1 0 0",
  5713. " x x x x x x a9 a8",
  5714. " a7 a6 a5 a4 x x x x",
  5715. " x x x x x x x x";
  5716. mode = 0x21;
  5717. delay = 6;
  5718. blocksize = 16;
  5719. readsize = 256;
  5720. ;
  5721. memory "signature"
  5722. size = 3;
  5723. read = "0 0 1 1 0 0 0 0 x x x x x x x x",
  5724. "0 0 0 0 0 0 a1 a0 o o o o o o o o";
  5725. ;
  5726. memory "lock"
  5727. size = 1;
  5728. read = "0 1 0 1 1 0 0 0 x x x x x x x x",
  5729. "x x x x x x x x x x x x x x o o";
  5730. write = "1 0 1 0 1 1 0 0 1 1 1 1 1 1 i i",
  5731. "x x x x x x x x x x x x x x x x";
  5732. min_write_delay = 9000;
  5733. max_write_delay = 9000;
  5734. ;
  5735. memory "lfuse"
  5736. size = 1;
  5737. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  5738. "x x x x x x x x i i i i i i i i";
  5739. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  5740. "x x x x x x x x o o o o o o o o";
  5741. min_write_delay = 9000;
  5742. max_write_delay = 9000;
  5743. ;
  5744. memory "hfuse"
  5745. size = 1;
  5746. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  5747. "x x x x x x x x x x x i i i i i";
  5748. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  5749. "x x x x x x x x x x x o o o o o";
  5750. min_write_delay = 9000;
  5751. max_write_delay = 9000;
  5752. ;
  5753. memory "calibration"
  5754. size = 4;
  5755. read = "0 0 1 1 1 0 0 0 x x x x x x x x",
  5756. "0 0 0 0 0 0 a1 a0 o o o o o o o o";
  5757. ;
  5758. ;
  5759. #------------------------------------------------------------
  5760. # ATtiny261
  5761. #------------------------------------------------------------
  5762. # Close to ATtiny26
  5763. part
  5764. id = "t261";
  5765. desc = "ATtiny261";
  5766. has_debugwire = yes;
  5767. flash_instr = 0xB4, 0x00, 0x10;
  5768. eeprom_instr = 0xBB, 0xFF, 0xBB, 0xEE, 0xBB, 0xCC, 0xB2, 0x0D,
  5769. 0xBC, 0x00, 0xB4, 0x00, 0xBA, 0x0D, 0xBB, 0xBC,
  5770. 0x99, 0xE1, 0xBB, 0xAC;
  5771. # stk500_devcode = 0x21;
  5772. # avr910_devcode = 0x5e;
  5773. signature = 0x1e 0x91 0x0c;
  5774. pagel = 0xb3;
  5775. bs2 = 0xb2;
  5776. chip_erase_delay = 4000;
  5777. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  5778. "x x x x x x x x x x x x x x x x";
  5779. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
  5780. "x x x x x x x x x x x x x x x x";
  5781. timeout = 200;
  5782. stabdelay = 100;
  5783. cmdexedelay = 25;
  5784. synchloops = 32;
  5785. bytedelay = 0;
  5786. pollindex = 3;
  5787. pollvalue = 0x53;
  5788. predelay = 1;
  5789. postdelay = 1;
  5790. pollmethod = 0;
  5791. pp_controlstack =
  5792. 0xC4, 0xE4, 0xC4, 0xE4, 0xCC, 0xEC, 0xCC, 0xEC,
  5793. 0xD4, 0xF4, 0xD4, 0xF4, 0xDC, 0xFC, 0xDC, 0xFC,
  5794. 0xC8, 0xE8, 0xD8, 0xF8, 0x4C, 0x6C, 0x5C, 0x7C,
  5795. 0xEC, 0xBC, 0x00, 0x06, 0x00, 0x00, 0x00, 0x00;
  5796. hventerstabdelay = 100;
  5797. progmodedelay = 0;
  5798. latchcycles = 5;
  5799. togglevtg = 1;
  5800. poweroffdelay = 15;
  5801. resetdelayms = 2;
  5802. resetdelayus = 0;
  5803. hvleavestabdelay = 15;
  5804. chiperasepulsewidth = 0;
  5805. chiperasepolltimeout = 10;
  5806. programfusepulsewidth = 0;
  5807. programfusepolltimeout = 5;
  5808. programlockpulsewidth = 0;
  5809. programlockpolltimeout = 5;
  5810. ocdrev = 1;
  5811. memory "eeprom"
  5812. paged = no;
  5813. size = 128;
  5814. page_size = 4;
  5815. num_pages = 32;
  5816. min_write_delay = 4000;
  5817. max_write_delay = 4000;
  5818. readback_p1 = 0xff;
  5819. readback_p2 = 0xff;
  5820. read = "1 0 1 0 0 0 0 0 x x x x x x x x",
  5821. "x a6 a5 a4 a3 a2 a1 a0 o o o o o o o o";
  5822. write = "1 1 0 0 0 0 0 0 x x x x x x x x",
  5823. "x a6 a5 a4 a3 a2 a1 a0 i i i i i i i i";
  5824. loadpage_lo = " 1 1 0 0 0 0 0 1",
  5825. " 0 0 0 0 0 0 0 0",
  5826. " 0 0 0 0 0 0 a1 a0",
  5827. " i i i i i i i i";
  5828. writepage = " 1 1 0 0 0 0 1 0",
  5829. " 0 0 x x x x x x",
  5830. " x a6 a5 a4 a3 a2 0 0",
  5831. " x x x x x x x x";
  5832. mode = 0x41;
  5833. delay = 10;
  5834. blocksize = 4;
  5835. readsize = 256;
  5836. ;
  5837. memory "flash"
  5838. paged = yes;
  5839. size = 2048;
  5840. page_size = 32;
  5841. num_pages = 64;
  5842. min_write_delay = 4500;
  5843. max_write_delay = 4500;
  5844. readback_p1 = 0xff;
  5845. readback_p2 = 0xff;
  5846. read_lo = " 0 0 1 0 0 0 0 0",
  5847. " x x x x x x a9 a8",
  5848. " a7 a6 a5 a4 a3 a2 a1 a0",
  5849. " o o o o o o o o";
  5850. read_hi = " 0 0 1 0 1 0 0 0",
  5851. " x x x x x x a9 a8",
  5852. " a7 a6 a5 a4 a3 a2 a1 a0",
  5853. " o o o o o o o o";
  5854. loadpage_lo = " 0 1 0 0 0 0 0 0",
  5855. " x x x x x x x x",
  5856. " x x x x a3 a2 a1 a0",
  5857. " i i i i i i i i";
  5858. loadpage_hi = " 0 1 0 0 1 0 0 0",
  5859. " x x x x x x x x",
  5860. " x x x x a3 a2 a1 a0",
  5861. " i i i i i i i i";
  5862. writepage = " 0 1 0 0 1 1 0 0",
  5863. " x x x x x x a9 a8",
  5864. " a7 a6 a5 a4 x x x x",
  5865. " x x x x x x x x";
  5866. mode = 0x41;
  5867. delay = 6;
  5868. blocksize = 32;
  5869. readsize = 256;
  5870. ;
  5871. memory "signature"
  5872. size = 3;
  5873. read = "0 0 1 1 0 0 0 0 x x x x x x x x",
  5874. "0 0 0 0 0 0 a1 a0 o o o o o o o o";
  5875. ;
  5876. memory "lock"
  5877. size = 1;
  5878. read = "0 1 0 1 1 0 0 0 x x x x x x x x",
  5879. "x x x x x x x x x x x x x x o o";
  5880. write = "1 0 1 0 1 1 0 0 1 1 1 1 1 1 i i",
  5881. "x x x x x x x x x x x x x x x x";
  5882. min_write_delay = 4500;
  5883. max_write_delay = 4500;
  5884. ;
  5885. memory "lfuse"
  5886. size = 1;
  5887. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  5888. "x x x x x x x x i i i i i i i i";
  5889. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  5890. "x x x x x x x x o o o o o o o o";
  5891. min_write_delay = 4500;
  5892. max_write_delay = 4500;
  5893. ;
  5894. memory "hfuse"
  5895. size = 1;
  5896. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  5897. "x x x x x x x x i i i i i i i i";
  5898. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  5899. "x x x x x x x x o o o o o o o o";
  5900. min_write_delay = 4500;
  5901. max_write_delay = 4500;
  5902. ;
  5903. memory "efuse"
  5904. size = 1;
  5905. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  5906. "x x x x x x x x x x x x x x x i";
  5907. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  5908. "x x x x x x x x x x x x x x x o";
  5909. min_write_delay = 4500;
  5910. max_write_delay = 4500;
  5911. ;
  5912. memory "calibration"
  5913. size = 1;
  5914. read = "0 0 1 1 1 0 0 0 x x x x x x x x",
  5915. "0 0 0 0 0 0 0 0 o o o o o o o o";
  5916. ;
  5917. ;
  5918. #------------------------------------------------------------
  5919. # ATtiny461
  5920. #------------------------------------------------------------
  5921. # Close to ATtiny261
  5922. part
  5923. id = "t461";
  5924. desc = "ATtiny461";
  5925. has_debugwire = yes;
  5926. flash_instr = 0xB4, 0x00, 0x10;
  5927. eeprom_instr = 0xBB, 0xFF, 0xBB, 0xEE, 0xBB, 0xCC, 0xB2, 0x0D,
  5928. 0xBC, 0x00, 0xB4, 0x00, 0xBA, 0x0D, 0xBB, 0xBC,
  5929. 0x99, 0xE1, 0xBB, 0xAC;
  5930. # stk500_devcode = 0x21;
  5931. # avr910_devcode = 0x5e;
  5932. signature = 0x1e 0x92 0x08;
  5933. pagel = 0xb3;
  5934. bs2 = 0xb2;
  5935. chip_erase_delay = 4000;
  5936. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  5937. "x x x x x x x x x x x x x x x x";
  5938. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
  5939. "x x x x x x x x x x x x x x x x";
  5940. timeout = 200;
  5941. stabdelay = 100;
  5942. cmdexedelay = 25;
  5943. synchloops = 32;
  5944. bytedelay = 0;
  5945. pollindex = 3;
  5946. pollvalue = 0x53;
  5947. predelay = 1;
  5948. postdelay = 1;
  5949. pollmethod = 0;
  5950. pp_controlstack =
  5951. 0xC4, 0xE4, 0xC4, 0xE4, 0xCC, 0xEC, 0xCC, 0xEC,
  5952. 0xD4, 0xF4, 0xD4, 0xF4, 0xDC, 0xFC, 0xDC, 0xFC,
  5953. 0xC8, 0xE8, 0xD8, 0xF8, 0x4C, 0x6C, 0x5C, 0x7C,
  5954. 0xEC, 0xBC, 0x00, 0x06, 0x00, 0x00, 0x00, 0x00;
  5955. hventerstabdelay = 100;
  5956. progmodedelay = 0;
  5957. latchcycles = 5;
  5958. togglevtg = 1;
  5959. poweroffdelay = 15;
  5960. resetdelayms = 2;
  5961. resetdelayus = 0;
  5962. hvleavestabdelay = 15;
  5963. chiperasepulsewidth = 0;
  5964. chiperasepolltimeout = 10;
  5965. programfusepulsewidth = 0;
  5966. programfusepolltimeout = 5;
  5967. programlockpulsewidth = 0;
  5968. programlockpolltimeout = 5;
  5969. ocdrev = 1;
  5970. memory "eeprom"
  5971. paged = no;
  5972. size = 256;
  5973. page_size = 4;
  5974. num_pages = 64;
  5975. min_write_delay = 4000;
  5976. max_write_delay = 4000;
  5977. readback_p1 = 0xff;
  5978. readback_p2 = 0xff;
  5979. read = " 1 0 1 0 0 0 0 0 x x x x x x x x",
  5980. "a7 a6 a5 a4 a3 a2 a1 a0 o o o o o o o o";
  5981. write = " 1 1 0 0 0 0 0 0 x x x x x x x x",
  5982. "a7 a6 a5 a4 a3 a2 a1 a0 i i i i i i i i";
  5983. loadpage_lo = " 1 1 0 0 0 0 0 1",
  5984. " 0 0 0 0 0 0 0 0",
  5985. " 0 0 0 0 0 0 a1 a0",
  5986. " i i i i i i i i";
  5987. writepage = " 1 1 0 0 0 0 1 0",
  5988. " 0 0 x x x x x x",
  5989. " a7 a6 a5 a4 a3 a2 0 0",
  5990. " x x x x x x x x";
  5991. mode = 0x41;
  5992. delay = 10;
  5993. blocksize = 4;
  5994. readsize = 256;
  5995. ;
  5996. memory "flash"
  5997. paged = yes;
  5998. size = 4096;
  5999. page_size = 64;
  6000. num_pages = 64;
  6001. min_write_delay = 4500;
  6002. max_write_delay = 4500;
  6003. readback_p1 = 0xff;
  6004. readback_p2 = 0xff;
  6005. read_lo = " 0 0 1 0 0 0 0 0",
  6006. " x x x x x a10 a9 a8",
  6007. " a7 a6 a5 a4 a3 a2 a1 a0",
  6008. " o o o o o o o o";
  6009. read_hi = " 0 0 1 0 1 0 0 0",
  6010. " x x x x x a10 a9 a8",
  6011. " a7 a6 a5 a4 a3 a2 a1 a0",
  6012. " o o o o o o o o";
  6013. loadpage_lo = " 0 1 0 0 0 0 0 0",
  6014. " x x x x x x x x",
  6015. " x x x a4 a3 a2 a1 a0",
  6016. " i i i i i i i i";
  6017. loadpage_hi = " 0 1 0 0 1 0 0 0",
  6018. " x x x x x x x x",
  6019. " x x x a4 a3 a2 a1 a0",
  6020. " i i i i i i i i";
  6021. writepage = " 0 1 0 0 1 1 0 0",
  6022. " x x x x x a10 a9 a8",
  6023. " a7 a6 a5 x x x x x",
  6024. " x x x x x x x x";
  6025. mode = 0x41;
  6026. delay = 6;
  6027. blocksize = 64;
  6028. readsize = 256;
  6029. ;
  6030. memory "signature"
  6031. size = 3;
  6032. read = "0 0 1 1 0 0 0 0 x x x x x x x x",
  6033. "0 0 0 0 0 0 a1 a0 o o o o o o o o";
  6034. ;
  6035. memory "lock"
  6036. size = 1;
  6037. read = "0 1 0 1 1 0 0 0 x x x x x x x x",
  6038. "x x x x x x x x x x x x x x o o";
  6039. write = "1 0 1 0 1 1 0 0 1 1 1 1 1 1 i i",
  6040. "x x x x x x x x x x x x x x x x";
  6041. min_write_delay = 4500;
  6042. max_write_delay = 4500;
  6043. ;
  6044. memory "lfuse"
  6045. size = 1;
  6046. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  6047. "x x x x x x x x i i i i i i i i";
  6048. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  6049. "x x x x x x x x o o o o o o o o";
  6050. min_write_delay = 4500;
  6051. max_write_delay = 4500;
  6052. ;
  6053. memory "hfuse"
  6054. size = 1;
  6055. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  6056. "x x x x x x x x i i i i i i i i";
  6057. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  6058. "x x x x x x x x o o o o o o o o";
  6059. min_write_delay = 4500;
  6060. max_write_delay = 4500;
  6061. ;
  6062. memory "efuse"
  6063. size = 1;
  6064. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  6065. "x x x x x x x x x x x x x x x i";
  6066. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  6067. "x x x x x x x x x x x x x x x o";
  6068. min_write_delay = 4500;
  6069. max_write_delay = 4500;
  6070. ;
  6071. memory "calibration"
  6072. size = 1;
  6073. read = "0 0 1 1 1 0 0 0 x x x x x x x x",
  6074. "0 0 0 0 0 0 0 0 o o o o o o o o";
  6075. ;
  6076. ;
  6077. #------------------------------------------------------------
  6078. # ATtiny861
  6079. #------------------------------------------------------------
  6080. # Close to ATtiny461
  6081. part
  6082. id = "t861";
  6083. desc = "ATtiny861";
  6084. has_debugwire = yes;
  6085. flash_instr = 0xB4, 0x00, 0x10;
  6086. eeprom_instr = 0xBB, 0xFF, 0xBB, 0xEE, 0xBB, 0xCC, 0xB2, 0x0D,
  6087. 0xBC, 0x00, 0xB4, 0x00, 0xBA, 0x0D, 0xBB, 0xBC,
  6088. 0x99, 0xE1, 0xBB, 0xAC;
  6089. # stk500_devcode = 0x21;
  6090. # avr910_devcode = 0x5e;
  6091. signature = 0x1e 0x93 0x0d;
  6092. pagel = 0xb3;
  6093. bs2 = 0xb2;
  6094. chip_erase_delay = 4000;
  6095. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  6096. "x x x x x x x x x x x x x x x x";
  6097. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
  6098. "x x x x x x x x x x x x x x x x";
  6099. timeout = 200;
  6100. stabdelay = 100;
  6101. cmdexedelay = 25;
  6102. synchloops = 32;
  6103. bytedelay = 0;
  6104. pollindex = 3;
  6105. pollvalue = 0x53;
  6106. predelay = 1;
  6107. postdelay = 1;
  6108. pollmethod = 0;
  6109. pp_controlstack =
  6110. 0xC4, 0xE4, 0xC4, 0xE4, 0xCC, 0xEC, 0xCC, 0xEC,
  6111. 0xD4, 0xF4, 0xD4, 0xF4, 0xDC, 0xFC, 0xDC, 0xFC,
  6112. 0xC8, 0xE8, 0xD8, 0xF8, 0x4C, 0x6C, 0x5C, 0x7C,
  6113. 0xEC, 0xBC, 0x00, 0x06, 0x00, 0x00, 0x00, 0x00;
  6114. hventerstabdelay = 100;
  6115. progmodedelay = 0;
  6116. latchcycles = 5;
  6117. togglevtg = 1;
  6118. poweroffdelay = 15;
  6119. resetdelayms = 2;
  6120. resetdelayus = 0;
  6121. hvleavestabdelay = 15;
  6122. chiperasepulsewidth = 0;
  6123. chiperasepolltimeout = 10;
  6124. programfusepulsewidth = 0;
  6125. programfusepolltimeout = 5;
  6126. programlockpulsewidth = 0;
  6127. programlockpolltimeout = 5;
  6128. ocdrev = 1;
  6129. memory "eeprom"
  6130. paged = no;
  6131. size = 512;
  6132. num_pages = 128;
  6133. page_size = 4;
  6134. min_write_delay = 4000;
  6135. max_write_delay = 4000;
  6136. readback_p1 = 0xff;
  6137. readback_p2 = 0xff;
  6138. read = " 1 0 1 0 0 0 0 0 x x x x x x x a8",
  6139. "a7 a6 a5 a4 a3 a2 a1 a0 o o o o o o o o";
  6140. write = " 1 1 0 0 0 0 0 0 x x x x x x x a8",
  6141. "a7 a6 a5 a4 a3 a2 a1 a0 i i i i i i i i";
  6142. loadpage_lo = " 1 1 0 0 0 0 0 1",
  6143. " 0 0 0 0 0 0 0 0",
  6144. " 0 0 0 0 0 0 a1 a0",
  6145. " i i i i i i i i";
  6146. writepage = " 1 1 0 0 0 0 1 0",
  6147. " 0 0 x x x x x a8",
  6148. " a7 a6 a5 a4 a3 a2 0 0",
  6149. " x x x x x x x x";
  6150. mode = 0x41;
  6151. delay = 10;
  6152. blocksize = 4;
  6153. readsize = 256;
  6154. ;
  6155. memory "flash"
  6156. paged = yes;
  6157. size = 8192;
  6158. page_size = 64;
  6159. num_pages = 128;
  6160. min_write_delay = 4500;
  6161. max_write_delay = 4500;
  6162. readback_p1 = 0xff;
  6163. readback_p2 = 0xff;
  6164. read_lo = " 0 0 1 0 0 0 0 0",
  6165. " x x x x a11 a10 a9 a8",
  6166. " a7 a6 a5 a4 a3 a2 a1 a0",
  6167. " o o o o o o o o";
  6168. read_hi = " 0 0 1 0 1 0 0 0",
  6169. " x x x x a11 a10 a9 a8",
  6170. " a7 a6 a5 a4 a3 a2 a1 a0",
  6171. " o o o o o o o o";
  6172. loadpage_lo = " 0 1 0 0 0 0 0 0",
  6173. " x x x x x x x x",
  6174. " x x x a4 a3 a2 a1 a0",
  6175. " i i i i i i i i";
  6176. loadpage_hi = " 0 1 0 0 1 0 0 0",
  6177. " x x x x x x x x",
  6178. " x x x a4 a3 a2 a1 a0",
  6179. " i i i i i i i i";
  6180. writepage = " 0 1 0 0 1 1 0 0",
  6181. " x x x x a11 a10 a9 a8",
  6182. " a7 a6 a5 x x x x x",
  6183. " x x x x x x x x";
  6184. mode = 0x41;
  6185. delay = 6;
  6186. blocksize = 64;
  6187. readsize = 256;
  6188. ;
  6189. memory "signature"
  6190. size = 3;
  6191. read = "0 0 1 1 0 0 0 0 x x 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. memory "lock"
  6195. size = 1;
  6196. read = "0 1 0 1 1 0 0 0 x x x x x x x x",
  6197. "x x x x x x x x x x x x x x o o";
  6198. write = "1 0 1 0 1 1 0 0 1 1 1 1 1 1 i i",
  6199. "x x x x x x x x x x x x x x x x";
  6200. min_write_delay = 4500;
  6201. max_write_delay = 4500;
  6202. ;
  6203. memory "lfuse"
  6204. size = 1;
  6205. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  6206. "x x x x x x x x i i i i i i i i";
  6207. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  6208. "x x x x x x x x o o o o o o o o";
  6209. min_write_delay = 4500;
  6210. max_write_delay = 4500;
  6211. ;
  6212. memory "hfuse"
  6213. size = 1;
  6214. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  6215. "x x x x x x x x i i i i i i i i";
  6216. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  6217. "x x x x x x x x o o o o o o o o";
  6218. min_write_delay = 4500;
  6219. max_write_delay = 4500;
  6220. ;
  6221. memory "efuse"
  6222. size = 1;
  6223. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  6224. "x x x x x x x x x x x x x x x i";
  6225. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  6226. "x x x x x x x x x x x x x x x o";
  6227. min_write_delay = 4500;
  6228. max_write_delay = 4500;
  6229. ;
  6230. memory "calibration"
  6231. size = 1;
  6232. read = "0 0 1 1 1 0 0 0 x x x x x x x x",
  6233. "0 0 0 0 0 0 0 0 o o o o o o o o";
  6234. ;
  6235. ;
  6236. #------------------------------------------------------------
  6237. # ATmega48
  6238. #------------------------------------------------------------
  6239. part
  6240. id = "m48";
  6241. desc = "ATmega48";
  6242. has_debugwire = yes;
  6243. flash_instr = 0xB6, 0x01, 0x11;
  6244. eeprom_instr = 0xBD, 0xF2, 0xBD, 0xE1, 0xBB, 0xCF, 0xB4, 0x00,
  6245. 0xBE, 0x01, 0xB6, 0x01, 0xBC, 0x00, 0xBB, 0xBF,
  6246. 0x99, 0xF9, 0xBB, 0xAF;
  6247. stk500_devcode = 0x59;
  6248. # avr910_devcode = 0x;
  6249. signature = 0x1e 0x92 0x05;
  6250. pagel = 0xd7;
  6251. bs2 = 0xc2;
  6252. chip_erase_delay = 45000;
  6253. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  6254. "x x x x x x x x x x x x x x x x";
  6255. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
  6256. "x x x x x x x x x x x x x x x x";
  6257. timeout = 200;
  6258. stabdelay = 100;
  6259. cmdexedelay = 25;
  6260. synchloops = 32;
  6261. bytedelay = 0;
  6262. pollindex = 3;
  6263. pollvalue = 0x53;
  6264. predelay = 1;
  6265. postdelay = 1;
  6266. pollmethod = 1;
  6267. pp_controlstack =
  6268. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  6269. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  6270. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  6271. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  6272. hventerstabdelay = 100;
  6273. progmodedelay = 0;
  6274. latchcycles = 5;
  6275. togglevtg = 1;
  6276. poweroffdelay = 15;
  6277. resetdelayms = 1;
  6278. resetdelayus = 0;
  6279. hvleavestabdelay = 15;
  6280. resetdelay = 15;
  6281. chiperasepulsewidth = 0;
  6282. chiperasepolltimeout = 10;
  6283. programfusepulsewidth = 0;
  6284. programfusepolltimeout = 5;
  6285. programlockpulsewidth = 0;
  6286. programlockpolltimeout = 5;
  6287. ocdrev = 1;
  6288. memory "eeprom"
  6289. paged = no;
  6290. page_size = 4;
  6291. size = 256;
  6292. min_write_delay = 3600;
  6293. max_write_delay = 3600;
  6294. readback_p1 = 0xff;
  6295. readback_p2 = 0xff;
  6296. read = " 1 0 1 0 0 0 0 0",
  6297. " 0 0 0 x x x x x",
  6298. " a7 a6 a5 a4 a3 a2 a1 a0",
  6299. " o o o o o o o o";
  6300. write = " 1 1 0 0 0 0 0 0",
  6301. " 0 0 0 x x x x x",
  6302. " a7 a6 a5 a4 a3 a2 a1 a0",
  6303. " i i i i i i i i";
  6304. loadpage_lo = " 1 1 0 0 0 0 0 1",
  6305. " 0 0 0 0 0 0 0 0",
  6306. " 0 0 0 0 0 0 a1 a0",
  6307. " i i i i i i i i";
  6308. writepage = " 1 1 0 0 0 0 1 0",
  6309. " 0 0 x x x x x x",
  6310. " a7 a6 a5 a4 a3 a2 0 0",
  6311. " x x x x x x x x";
  6312. mode = 0x41;
  6313. delay = 20;
  6314. blocksize = 4;
  6315. readsize = 256;
  6316. ;
  6317. memory "flash"
  6318. paged = yes;
  6319. size = 4096;
  6320. page_size = 64;
  6321. num_pages = 64;
  6322. min_write_delay = 4500;
  6323. max_write_delay = 4500;
  6324. readback_p1 = 0x00;
  6325. readback_p2 = 0x00;
  6326. read_lo = " 0 0 1 0 0 0 0 0",
  6327. " 0 0 0 0 0 a10 a9 a8",
  6328. " a7 a6 a5 a4 a3 a2 a1 a0",
  6329. " o o o o o o o o";
  6330. read_hi = " 0 0 1 0 1 0 0 0",
  6331. " 0 0 0 0 0 a10 a9 a8",
  6332. " a7 a6 a5 a4 a3 a2 a1 a0",
  6333. " o o o o o o o o";
  6334. loadpage_lo = " 0 1 0 0 0 0 0 0",
  6335. " 0 0 0 x x x x x",
  6336. " x x x a4 a3 a2 a1 a0",
  6337. " i i i i i i i i";
  6338. loadpage_hi = " 0 1 0 0 1 0 0 0",
  6339. " 0 0 0 x x x x x",
  6340. " x x x a4 a3 a2 a1 a0",
  6341. " i i i i i i i i";
  6342. writepage = " 0 1 0 0 1 1 0 0",
  6343. " 0 0 0 0 0 a10 a9 a8",
  6344. " a7 a6 a5 x x x x x",
  6345. " x x x x x x x x";
  6346. mode = 0x41;
  6347. delay = 6;
  6348. blocksize = 64;
  6349. readsize = 256;
  6350. ;
  6351. memory "lfuse"
  6352. size = 1;
  6353. min_write_delay = 4500;
  6354. max_write_delay = 4500;
  6355. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  6356. "x x x x x x x x o o o o o o o o";
  6357. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  6358. "x x x x x x x x i i i i i i i i";
  6359. ;
  6360. memory "hfuse"
  6361. size = 1;
  6362. min_write_delay = 4500;
  6363. max_write_delay = 4500;
  6364. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  6365. "x x x x x x x x o o o o o o o o";
  6366. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  6367. "x x x x x x x x i i i i i i i i";
  6368. ;
  6369. memory "efuse"
  6370. size = 1;
  6371. min_write_delay = 4500;
  6372. max_write_delay = 4500;
  6373. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  6374. "x x x x x x x x x x x x x x x o";
  6375. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  6376. "x x x x x x x x x x x x x x x i";
  6377. ;
  6378. memory "lock"
  6379. size = 1;
  6380. min_write_delay = 4500;
  6381. max_write_delay = 4500;
  6382. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  6383. "x x x x x x x x x x o o o o o o";
  6384. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  6385. "x x x x x x x x 1 1 i i i i i i";
  6386. ;
  6387. memory "calibration"
  6388. size = 1;
  6389. read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
  6390. "0 0 0 0 0 0 0 0 o o o o o o o o";
  6391. ;
  6392. memory "signature"
  6393. size = 3;
  6394. read = "0 0 1 1 0 0 0 0 0 0 0 x x x x x",
  6395. "x x x x x x a1 a0 o o o o o o o o";
  6396. ;
  6397. ;
  6398. #------------------------------------------------------------
  6399. # ATmega48P
  6400. #------------------------------------------------------------
  6401. part parent "m48"
  6402. id = "m48p";
  6403. desc = "ATmega48P";
  6404. signature = 0x1e 0x92 0x0a;
  6405. ocdrev = 1;
  6406. ;
  6407. #------------------------------------------------------------
  6408. # ATmega88
  6409. #------------------------------------------------------------
  6410. part
  6411. id = "m88";
  6412. desc = "ATmega88";
  6413. has_debugwire = yes;
  6414. flash_instr = 0xB6, 0x01, 0x11;
  6415. eeprom_instr = 0xBD, 0xF2, 0xBD, 0xE1, 0xBB, 0xCF, 0xB4, 0x00,
  6416. 0xBE, 0x01, 0xB6, 0x01, 0xBC, 0x00, 0xBB, 0xBF,
  6417. 0x99, 0xF9, 0xBB, 0xAF;
  6418. stk500_devcode = 0x73;
  6419. # avr910_devcode = 0x;
  6420. signature = 0x1e 0x93 0x0a;
  6421. pagel = 0xd7;
  6422. bs2 = 0xc2;
  6423. chip_erase_delay = 9000;
  6424. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  6425. "x x x x x x x x x x x x x x x x";
  6426. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
  6427. "x x x x x x x x x x x x x x x x";
  6428. timeout = 200;
  6429. stabdelay = 100;
  6430. cmdexedelay = 25;
  6431. synchloops = 32;
  6432. bytedelay = 0;
  6433. pollindex = 3;
  6434. pollvalue = 0x53;
  6435. predelay = 1;
  6436. postdelay = 1;
  6437. pollmethod = 1;
  6438. pp_controlstack =
  6439. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  6440. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  6441. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  6442. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  6443. hventerstabdelay = 100;
  6444. progmodedelay = 0;
  6445. latchcycles = 5;
  6446. togglevtg = 1;
  6447. poweroffdelay = 15;
  6448. resetdelayms = 1;
  6449. resetdelayus = 0;
  6450. hvleavestabdelay = 15;
  6451. resetdelay = 15;
  6452. chiperasepulsewidth = 0;
  6453. chiperasepolltimeout = 10;
  6454. programfusepulsewidth = 0;
  6455. programfusepolltimeout = 5;
  6456. programlockpulsewidth = 0;
  6457. programlockpolltimeout = 5;
  6458. ocdrev = 1;
  6459. memory "eeprom"
  6460. paged = no;
  6461. page_size = 4;
  6462. size = 512;
  6463. min_write_delay = 3600;
  6464. max_write_delay = 3600;
  6465. readback_p1 = 0xff;
  6466. readback_p2 = 0xff;
  6467. read = " 1 0 1 0 0 0 0 0",
  6468. " 0 0 0 x x x x a8",
  6469. " a7 a6 a5 a4 a3 a2 a1 a0",
  6470. " o o o o o o o o";
  6471. write = " 1 1 0 0 0 0 0 0",
  6472. " 0 0 0 x x x x a8",
  6473. " a7 a6 a5 a4 a3 a2 a1 a0",
  6474. " i i i i i i i i";
  6475. loadpage_lo = " 1 1 0 0 0 0 0 1",
  6476. " 0 0 0 0 0 0 0 0",
  6477. " 0 0 0 0 0 0 a1 a0",
  6478. " i i i i i i i i";
  6479. writepage = " 1 1 0 0 0 0 1 0",
  6480. " 0 0 x x x x x a8",
  6481. " a7 a6 a5 a4 a3 a2 0 0",
  6482. " x x x x x x x x";
  6483. mode = 0x41;
  6484. delay = 20;
  6485. blocksize = 4;
  6486. readsize = 256;
  6487. ;
  6488. memory "flash"
  6489. paged = yes;
  6490. size = 8192;
  6491. page_size = 64;
  6492. num_pages = 128;
  6493. min_write_delay = 4500;
  6494. max_write_delay = 4500;
  6495. readback_p1 = 0xff;
  6496. readback_p2 = 0xff;
  6497. read_lo = " 0 0 1 0 0 0 0 0",
  6498. " 0 0 0 0 a11 a10 a9 a8",
  6499. " a7 a6 a5 a4 a3 a2 a1 a0",
  6500. " o o o o o o o o";
  6501. read_hi = " 0 0 1 0 1 0 0 0",
  6502. " 0 0 0 0 a11 a10 a9 a8",
  6503. " a7 a6 a5 a4 a3 a2 a1 a0",
  6504. " o o o o o o o o";
  6505. loadpage_lo = " 0 1 0 0 0 0 0 0",
  6506. " 0 0 0 x x x x x",
  6507. " x x x a4 a3 a2 a1 a0",
  6508. " i i i i i i i i";
  6509. loadpage_hi = " 0 1 0 0 1 0 0 0",
  6510. " 0 0 0 x x x x x",
  6511. " x x x a4 a3 a2 a1 a0",
  6512. " i i i i i i i i";
  6513. writepage = " 0 1 0 0 1 1 0 0",
  6514. " 0 0 0 0 a11 a10 a9 a8",
  6515. " a7 a6 a5 x x x x x",
  6516. " x x x x x x x x";
  6517. mode = 0x41;
  6518. delay = 6;
  6519. blocksize = 64;
  6520. readsize = 256;
  6521. ;
  6522. memory "lfuse"
  6523. size = 1;
  6524. min_write_delay = 4500;
  6525. max_write_delay = 4500;
  6526. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  6527. "x x x x x x x x o o o o o o o o";
  6528. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  6529. "x x x x x x x x i i i i i i i i";
  6530. ;
  6531. memory "hfuse"
  6532. size = 1;
  6533. min_write_delay = 4500;
  6534. max_write_delay = 4500;
  6535. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  6536. "x x x x x x x x o o o o o o o o";
  6537. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  6538. "x x x x x x x x i i i i i i i i";
  6539. ;
  6540. memory "efuse"
  6541. size = 1;
  6542. min_write_delay = 4500;
  6543. max_write_delay = 4500;
  6544. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  6545. "x x x x x x x x x x x x x o o o";
  6546. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  6547. "x x x x x x x x x x x x x i i i";
  6548. ;
  6549. memory "lock"
  6550. size = 1;
  6551. min_write_delay = 4500;
  6552. max_write_delay = 4500;
  6553. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  6554. "x x x x x x x x x x o o o o o o";
  6555. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  6556. "x x x x x x x x 1 1 i i i i i i";
  6557. ;
  6558. memory "calibration"
  6559. size = 1;
  6560. read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
  6561. "0 0 0 0 0 0 0 0 o o o o o o o o";
  6562. ;
  6563. memory "signature"
  6564. size = 3;
  6565. read = "0 0 1 1 0 0 0 0 0 0 0 x x x x x",
  6566. "x x x x x x a1 a0 o o o o o o o o";
  6567. ;
  6568. ;
  6569. #------------------------------------------------------------
  6570. # ATmega88P
  6571. #------------------------------------------------------------
  6572. part parent "m88"
  6573. id = "m88p";
  6574. desc = "ATmega88P";
  6575. signature = 0x1e 0x93 0x0f;
  6576. ocdrev = 1;
  6577. ;
  6578. #------------------------------------------------------------
  6579. # ATmega168
  6580. #------------------------------------------------------------
  6581. part
  6582. id = "m168";
  6583. desc = "ATmega168";
  6584. has_debugwire = yes;
  6585. flash_instr = 0xB6, 0x01, 0x11;
  6586. eeprom_instr = 0xBD, 0xF2, 0xBD, 0xE1, 0xBB, 0xCF, 0xB4, 0x00,
  6587. 0xBE, 0x01, 0xB6, 0x01, 0xBC, 0x00, 0xBB, 0xBF,
  6588. 0x99, 0xF9, 0xBB, 0xAF;
  6589. stk500_devcode = 0x86;
  6590. # avr910_devcode = 0x;
  6591. signature = 0x1e 0x94 0x06;
  6592. pagel = 0xd7;
  6593. bs2 = 0xc2;
  6594. chip_erase_delay = 9000;
  6595. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  6596. "x x x x x x x x x x x x x x x x";
  6597. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
  6598. "x x x x x x x x x x x x x x x x";
  6599. timeout = 200;
  6600. stabdelay = 100;
  6601. cmdexedelay = 25;
  6602. synchloops = 32;
  6603. bytedelay = 0;
  6604. pollindex = 3;
  6605. pollvalue = 0x53;
  6606. predelay = 1;
  6607. postdelay = 1;
  6608. pollmethod = 1;
  6609. pp_controlstack =
  6610. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  6611. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  6612. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  6613. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  6614. hventerstabdelay = 100;
  6615. progmodedelay = 0;
  6616. latchcycles = 5;
  6617. togglevtg = 1;
  6618. poweroffdelay = 15;
  6619. resetdelayms = 1;
  6620. resetdelayus = 0;
  6621. hvleavestabdelay = 15;
  6622. resetdelay = 15;
  6623. chiperasepulsewidth = 0;
  6624. chiperasepolltimeout = 10;
  6625. programfusepulsewidth = 0;
  6626. programfusepolltimeout = 5;
  6627. programlockpulsewidth = 0;
  6628. programlockpolltimeout = 5;
  6629. ocdrev = 1;
  6630. memory "eeprom"
  6631. paged = no;
  6632. page_size = 4;
  6633. size = 512;
  6634. min_write_delay = 3600;
  6635. max_write_delay = 3600;
  6636. readback_p1 = 0xff;
  6637. readback_p2 = 0xff;
  6638. read = " 1 0 1 0 0 0 0 0",
  6639. " 0 0 0 x x x x a8",
  6640. " a7 a6 a5 a4 a3 a2 a1 a0",
  6641. " o o o o o o o o";
  6642. write = " 1 1 0 0 0 0 0 0",
  6643. " 0 0 0 x x x x a8",
  6644. " a7 a6 a5 a4 a3 a2 a1 a0",
  6645. " i i i i i i i i";
  6646. loadpage_lo = " 1 1 0 0 0 0 0 1",
  6647. " 0 0 0 0 0 0 0 0",
  6648. " 0 0 0 0 0 0 a1 a0",
  6649. " i i i i i i i i";
  6650. writepage = " 1 1 0 0 0 0 1 0",
  6651. " 0 0 x x x x x a8",
  6652. " a7 a6 a5 a4 a3 a2 0 0",
  6653. " x x x x x x x x";
  6654. mode = 0x41;
  6655. delay = 20;
  6656. blocksize = 4;
  6657. readsize = 256;
  6658. ;
  6659. memory "flash"
  6660. paged = yes;
  6661. size = 16384;
  6662. page_size = 128;
  6663. num_pages = 128;
  6664. min_write_delay = 4500;
  6665. max_write_delay = 4500;
  6666. readback_p1 = 0xff;
  6667. readback_p2 = 0xff;
  6668. read_lo = " 0 0 1 0 0 0 0 0",
  6669. " 0 0 0 a12 a11 a10 a9 a8",
  6670. " a7 a6 a5 a4 a3 a2 a1 a0",
  6671. " o o o o o o o o";
  6672. read_hi = " 0 0 1 0 1 0 0 0",
  6673. " 0 0 0 a12 a11 a10 a9 a8",
  6674. " a7 a6 a5 a4 a3 a2 a1 a0",
  6675. " o o o o o o o o";
  6676. loadpage_lo = " 0 1 0 0 0 0 0 0",
  6677. " 0 0 0 x x x x x",
  6678. " x x a5 a4 a3 a2 a1 a0",
  6679. " i i i i i i i i";
  6680. loadpage_hi = " 0 1 0 0 1 0 0 0",
  6681. " 0 0 0 x x x x x",
  6682. " x x a5 a4 a3 a2 a1 a0",
  6683. " i i i i i i i i";
  6684. writepage = " 0 1 0 0 1 1 0 0",
  6685. " 0 0 0 a12 a11 a10 a9 a8",
  6686. " a7 a6 x x x x x x",
  6687. " x x x x x x x x";
  6688. mode = 0x41;
  6689. delay = 6;
  6690. blocksize = 128;
  6691. readsize = 256;
  6692. ;
  6693. memory "lfuse"
  6694. size = 1;
  6695. min_write_delay = 4500;
  6696. max_write_delay = 4500;
  6697. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  6698. "x x x x x x x x o o o o o o o o";
  6699. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  6700. "x x x x x x x x i i i i i i i i";
  6701. ;
  6702. memory "hfuse"
  6703. size = 1;
  6704. min_write_delay = 4500;
  6705. max_write_delay = 4500;
  6706. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  6707. "x x x x x x x x o o o o o o o o";
  6708. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  6709. "x x x x x x x x i i i i i i i i";
  6710. ;
  6711. memory "efuse"
  6712. size = 1;
  6713. min_write_delay = 4500;
  6714. max_write_delay = 4500;
  6715. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  6716. "x x x x x x x x x x x x x o o o";
  6717. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  6718. "x x x x x x x x x x x x x i i i";
  6719. ;
  6720. memory "lock"
  6721. size = 1;
  6722. min_write_delay = 4500;
  6723. max_write_delay = 4500;
  6724. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  6725. "x x x x x x x x x x o o o o o o";
  6726. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  6727. "x x x x x x x x 1 1 i i i i i i";
  6728. ;
  6729. memory "calibration"
  6730. size = 1;
  6731. read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
  6732. "0 0 0 0 0 0 0 0 o o o o o o o o";
  6733. ;
  6734. memory "signature"
  6735. size = 3;
  6736. read = "0 0 1 1 0 0 0 0 0 0 0 x x x x x",
  6737. "x x x x x x a1 a0 o o o o o o o o";
  6738. ;
  6739. ;
  6740. #------------------------------------------------------------
  6741. # ATmega168P
  6742. #------------------------------------------------------------
  6743. part parent "m168"
  6744. id = "m168p";
  6745. desc = "ATmega168P";
  6746. signature = 0x1e 0x94 0x0b;
  6747. ocdrev = 1;
  6748. ;
  6749. #------------------------------------------------------------
  6750. # ATtiny88
  6751. #------------------------------------------------------------
  6752. part
  6753. id = "t88";
  6754. desc = "ATtiny88";
  6755. has_debugwire = yes;
  6756. flash_instr = 0xB6, 0x01, 0x11;
  6757. eeprom_instr = 0xBD, 0xF2, 0xBD, 0xE1, 0xBB, 0xCF, 0xB4, 0x00,
  6758. 0xBE, 0x01, 0xB6, 0x01, 0xBC, 0x00, 0xBB, 0xBF,
  6759. 0x99, 0xF9, 0xBB, 0xAF;
  6760. stk500_devcode = 0x73;
  6761. # avr910_devcode = 0x;
  6762. signature = 0x1e 0x93 0x11;
  6763. pagel = 0xd7;
  6764. bs2 = 0xc2;
  6765. chip_erase_delay = 9000;
  6766. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  6767. "x x x x x x x x x x x x x x x x";
  6768. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
  6769. "x x x x x x x x x x x x x x x x";
  6770. timeout = 200;
  6771. stabdelay = 100;
  6772. cmdexedelay = 25;
  6773. synchloops = 32;
  6774. bytedelay = 0;
  6775. pollindex = 3;
  6776. pollvalue = 0x53;
  6777. predelay = 1;
  6778. postdelay = 1;
  6779. pollmethod = 1;
  6780. pp_controlstack =
  6781. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  6782. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  6783. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  6784. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  6785. hventerstabdelay = 100;
  6786. progmodedelay = 0;
  6787. latchcycles = 5;
  6788. togglevtg = 1;
  6789. poweroffdelay = 15;
  6790. resetdelayms = 1;
  6791. resetdelayus = 0;
  6792. hvleavestabdelay = 15;
  6793. resetdelay = 15;
  6794. chiperasepulsewidth = 0;
  6795. chiperasepolltimeout = 10;
  6796. programfusepulsewidth = 0;
  6797. programfusepolltimeout = 5;
  6798. programlockpulsewidth = 0;
  6799. programlockpolltimeout = 5;
  6800. ocdrev = 1;
  6801. memory "eeprom"
  6802. paged = no;
  6803. page_size = 4;
  6804. size = 64;
  6805. min_write_delay = 3600;
  6806. max_write_delay = 3600;
  6807. readback_p1 = 0xff;
  6808. readback_p2 = 0xff;
  6809. read = " 1 0 1 0 0 0 0 0",
  6810. " 0 0 0 x x x x x",
  6811. " x a6 a5 a4 a3 a2 a1 a0",
  6812. " o o o o o o o o";
  6813. write = " 1 1 0 0 0 0 0 0",
  6814. " 0 0 0 x x x x x",
  6815. " x a6 a5 a4 a3 a2 a1 a0",
  6816. " i i i i i i i i";
  6817. loadpage_lo = " 1 1 0 0 0 0 0 1",
  6818. " 0 0 0 0 0 0 0 0",
  6819. " 0 0 0 0 0 0 a1 a0",
  6820. " i i i i i i i i";
  6821. writepage = " 1 1 0 0 0 0 1 0",
  6822. " 0 0 x x x x x x",
  6823. " x a6 a5 a4 a3 a2 0 0",
  6824. " x x x x x x x x";
  6825. mode = 0x41;
  6826. delay = 20;
  6827. blocksize = 4;
  6828. readsize = 64;
  6829. ;
  6830. memory "flash"
  6831. paged = yes;
  6832. size = 8192;
  6833. page_size = 64;
  6834. num_pages = 128;
  6835. min_write_delay = 4500;
  6836. max_write_delay = 4500;
  6837. readback_p1 = 0xff;
  6838. readback_p2 = 0xff;
  6839. read_lo = " 0 0 1 0 0 0 0 0",
  6840. " 0 0 0 0 a11 a10 a9 a8",
  6841. " a7 a6 a5 a4 a3 a2 a1 a0",
  6842. " o o o o o o o o";
  6843. read_hi = " 0 0 1 0 1 0 0 0",
  6844. " 0 0 0 0 a11 a10 a9 a8",
  6845. " a7 a6 a5 a4 a3 a2 a1 a0",
  6846. " o o o o o o o o";
  6847. loadpage_lo = " 0 1 0 0 0 0 0 0",
  6848. " 0 0 0 x x x x x",
  6849. " x x x a4 a3 a2 a1 a0",
  6850. " i i i i i i i i";
  6851. loadpage_hi = " 0 1 0 0 1 0 0 0",
  6852. " 0 0 0 x x x x x",
  6853. " x x x a4 a3 a2 a1 a0",
  6854. " i i i i i i i i";
  6855. writepage = " 0 1 0 0 1 1 0 0",
  6856. " 0 0 0 0 a11 a10 a9 a8",
  6857. " a7 a6 a5 x x x x x",
  6858. " x x x x x x x x";
  6859. mode = 0x41;
  6860. delay = 6;
  6861. blocksize = 64;
  6862. readsize = 256;
  6863. ;
  6864. memory "lfuse"
  6865. size = 1;
  6866. min_write_delay = 4500;
  6867. max_write_delay = 4500;
  6868. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  6869. "x x x x x x x x o o o o o o o o";
  6870. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  6871. "x x x x x x x x i i i i i i i i";
  6872. ;
  6873. memory "hfuse"
  6874. size = 1;
  6875. min_write_delay = 4500;
  6876. max_write_delay = 4500;
  6877. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  6878. "x x x x x x x x o o o o o o o o";
  6879. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  6880. "x x x x x x x x i i i i i i i i";
  6881. ;
  6882. memory "efuse"
  6883. size = 1;
  6884. min_write_delay = 4500;
  6885. max_write_delay = 4500;
  6886. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  6887. "x x x x x x x x x x x x x o o o";
  6888. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  6889. "x x x x x x x x x x x x x x x i";
  6890. ;
  6891. memory "lock"
  6892. size = 1;
  6893. min_write_delay = 4500;
  6894. max_write_delay = 4500;
  6895. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  6896. "x x x x x x x x x x o o o o o o";
  6897. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  6898. "x x x x x x x x 1 1 i i i i i i";
  6899. ;
  6900. memory "calibration"
  6901. size = 1;
  6902. read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
  6903. "0 0 0 0 0 0 0 0 o o o o o o o o";
  6904. ;
  6905. memory "signature"
  6906. size = 3;
  6907. read = "0 0 1 1 0 0 0 0 0 0 0 x x x x x",
  6908. "x x x x x x a1 a0 o o o o o o o o";
  6909. ;
  6910. ;
  6911. #------------------------------------------------------------
  6912. # ATmega328
  6913. #------------------------------------------------------------
  6914. part
  6915. id = "m328";
  6916. desc = "ATmega328";
  6917. has_debugwire = yes;
  6918. flash_instr = 0xB6, 0x01, 0x11;
  6919. eeprom_instr = 0xBD, 0xF2, 0xBD, 0xE1, 0xBB, 0xCF, 0xB4, 0x00,
  6920. 0xBE, 0x01, 0xB6, 0x01, 0xBC, 0x00, 0xBB, 0xBF,
  6921. 0x99, 0xF9, 0xBB, 0xAF;
  6922. stk500_devcode = 0x86;
  6923. # avr910_devcode = 0x;
  6924. signature = 0x1e 0x95 0x14;
  6925. pagel = 0xd7;
  6926. bs2 = 0xc2;
  6927. chip_erase_delay = 9000;
  6928. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  6929. "x x x x x x x x x x x x x x x x";
  6930. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
  6931. "x x x x x x x x x x x x x x x x";
  6932. timeout = 200;
  6933. stabdelay = 100;
  6934. cmdexedelay = 25;
  6935. synchloops = 32;
  6936. bytedelay = 0;
  6937. pollindex = 3;
  6938. pollvalue = 0x53;
  6939. predelay = 1;
  6940. postdelay = 1;
  6941. pollmethod = 1;
  6942. pp_controlstack =
  6943. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  6944. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  6945. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  6946. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  6947. hventerstabdelay = 100;
  6948. progmodedelay = 0;
  6949. latchcycles = 5;
  6950. togglevtg = 1;
  6951. poweroffdelay = 15;
  6952. resetdelayms = 1;
  6953. resetdelayus = 0;
  6954. hvleavestabdelay = 15;
  6955. resetdelay = 15;
  6956. chiperasepulsewidth = 0;
  6957. chiperasepolltimeout = 10;
  6958. programfusepulsewidth = 0;
  6959. programfusepolltimeout = 5;
  6960. programlockpulsewidth = 0;
  6961. programlockpolltimeout = 5;
  6962. ocdrev = 1;
  6963. memory "eeprom"
  6964. paged = no;
  6965. page_size = 4;
  6966. size = 1024;
  6967. min_write_delay = 3600;
  6968. max_write_delay = 3600;
  6969. readback_p1 = 0xff;
  6970. readback_p2 = 0xff;
  6971. read = " 1 0 1 0 0 0 0 0",
  6972. " 0 0 0 x x x a9 a8",
  6973. " a7 a6 a5 a4 a3 a2 a1 a0",
  6974. " o o o o o o o o";
  6975. write = " 1 1 0 0 0 0 0 0",
  6976. " 0 0 0 x x x a9 a8",
  6977. " a7 a6 a5 a4 a3 a2 a1 a0",
  6978. " i i i i i i i i";
  6979. loadpage_lo = " 1 1 0 0 0 0 0 1",
  6980. " 0 0 0 0 0 0 0 0",
  6981. " 0 0 0 0 0 0 a1 a0",
  6982. " i i i i i i i i";
  6983. writepage = " 1 1 0 0 0 0 1 0",
  6984. " 0 0 x x x x a9 a8",
  6985. " a7 a6 a5 a4 a3 a2 0 0",
  6986. " x x x x x x x x";
  6987. mode = 0x41;
  6988. delay = 20;
  6989. blocksize = 4;
  6990. readsize = 256;
  6991. ;
  6992. memory "flash"
  6993. paged = yes;
  6994. size = 32768;
  6995. page_size = 128;
  6996. num_pages = 256;
  6997. min_write_delay = 4500;
  6998. max_write_delay = 4500;
  6999. readback_p1 = 0xff;
  7000. readback_p2 = 0xff;
  7001. read_lo = " 0 0 1 0 0 0 0 0",
  7002. " 0 0 a13 a12 a11 a10 a9 a8",
  7003. " a7 a6 a5 a4 a3 a2 a1 a0",
  7004. " o o o o o o o o";
  7005. read_hi = " 0 0 1 0 1 0 0 0",
  7006. " 0 0 a13 a12 a11 a10 a9 a8",
  7007. " a7 a6 a5 a4 a3 a2 a1 a0",
  7008. " o o o o o o o o";
  7009. loadpage_lo = " 0 1 0 0 0 0 0 0",
  7010. " 0 0 0 x x x x x",
  7011. " x x a5 a4 a3 a2 a1 a0",
  7012. " i i i i i i i i";
  7013. loadpage_hi = " 0 1 0 0 1 0 0 0",
  7014. " 0 0 0 x x x x x",
  7015. " x x a5 a4 a3 a2 a1 a0",
  7016. " i i i i i i i i";
  7017. writepage = " 0 1 0 0 1 1 0 0",
  7018. " 0 0 a13 a12 a11 a10 a9 a8",
  7019. " a7 a6 x x x x x x",
  7020. " x x x x x x x x";
  7021. mode = 0x41;
  7022. delay = 6;
  7023. blocksize = 128;
  7024. readsize = 256;
  7025. ;
  7026. memory "lfuse"
  7027. size = 1;
  7028. min_write_delay = 4500;
  7029. max_write_delay = 4500;
  7030. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  7031. "x x x x x x x x o o o o o o o o";
  7032. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  7033. "x x x x x x x x i i i i i i i i";
  7034. ;
  7035. memory "hfuse"
  7036. size = 1;
  7037. min_write_delay = 4500;
  7038. max_write_delay = 4500;
  7039. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  7040. "x x x x x x x x o o o o o o o o";
  7041. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  7042. "x x x x x x x x i i i i i i i i";
  7043. ;
  7044. memory "efuse"
  7045. size = 1;
  7046. min_write_delay = 4500;
  7047. max_write_delay = 4500;
  7048. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  7049. "x x x x x x x x x x x x x o o o";
  7050. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  7051. "x x x x x x x x x x x x x i i i";
  7052. ;
  7053. memory "lock"
  7054. size = 1;
  7055. min_write_delay = 4500;
  7056. max_write_delay = 4500;
  7057. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  7058. "x x x x x x x x x x o o o o o o";
  7059. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  7060. "x x x x x x x x 1 1 i i i i i i";
  7061. ;
  7062. memory "calibration"
  7063. size = 1;
  7064. read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
  7065. "0 0 0 0 0 0 0 0 o o o o o o o o";
  7066. ;
  7067. memory "signature"
  7068. size = 3;
  7069. read = "0 0 1 1 0 0 0 0 0 0 0 x x x x x",
  7070. "x x x x x x a1 a0 o o o o o o o o";
  7071. ;
  7072. ;
  7073. part parent "m328"
  7074. id = "m328p";
  7075. desc = "ATmega328P";
  7076. signature = 0x1e 0x95 0x0F;
  7077. ocdrev = 1;
  7078. ;
  7079. #------------------------------------------------------------
  7080. # ATtiny2313
  7081. #------------------------------------------------------------
  7082. part
  7083. id = "t2313";
  7084. desc = "ATtiny2313";
  7085. has_debugwire = yes;
  7086. flash_instr = 0xB2, 0x0F, 0x1F;
  7087. eeprom_instr = 0xBB, 0xFE, 0xBB, 0xEE, 0xBB, 0xCC, 0xB2, 0x0D,
  7088. 0xBA, 0x0F, 0xB2, 0x0F, 0xBA, 0x0D, 0xBB, 0xBC,
  7089. 0x99, 0xE1, 0xBB, 0xAC;
  7090. stk500_devcode = 0x23;
  7091. ## Use the ATtiny26 devcode:
  7092. avr910_devcode = 0x5e;
  7093. signature = 0x1e 0x91 0x0a;
  7094. pagel = 0xD4;
  7095. bs2 = 0xD6;
  7096. reset = io;
  7097. chip_erase_delay = 9000;
  7098. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  7099. "x x x x x x x x x x x x x x x x";
  7100. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
  7101. "x x x x x x x x x x x x x x x x";
  7102. timeout = 200;
  7103. stabdelay = 100;
  7104. cmdexedelay = 25;
  7105. synchloops = 32;
  7106. bytedelay = 0;
  7107. pollindex = 3;
  7108. pollvalue = 0x53;
  7109. predelay = 1;
  7110. postdelay = 1;
  7111. pollmethod = 1;
  7112. pp_controlstack =
  7113. 0x0E, 0x1E, 0x0E, 0x1E, 0x2E, 0x3E, 0x2E, 0x3E,
  7114. 0x4E, 0x5E, 0x4E, 0x5E, 0x6E, 0x7E, 0x6E, 0x7E,
  7115. 0x26, 0x36, 0x66, 0x76, 0x2A, 0x3A, 0x6A, 0x7A,
  7116. 0x2E, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  7117. hventerstabdelay = 100;
  7118. progmodedelay = 0;
  7119. latchcycles = 5;
  7120. togglevtg = 1;
  7121. poweroffdelay = 15;
  7122. resetdelayms = 1;
  7123. resetdelayus = 0;
  7124. hvleavestabdelay = 15;
  7125. chiperasepulsewidth = 0;
  7126. chiperasepolltimeout = 10;
  7127. programfusepulsewidth = 0;
  7128. programfusepolltimeout = 5;
  7129. programlockpulsewidth = 0;
  7130. programlockpolltimeout = 5;
  7131. ocdrev = 0;
  7132. memory "eeprom"
  7133. size = 128;
  7134. paged = no;
  7135. page_size = 4;
  7136. min_write_delay = 4000;
  7137. max_write_delay = 4500;
  7138. readback_p1 = 0xff;
  7139. readback_p2 = 0xff;
  7140. read = "1 0 1 0 0 0 0 0 0 0 0 x x x x x",
  7141. "x a6 a5 a4 a3 a2 a1 a0 o o o o o o o o";
  7142. write = "1 1 0 0 0 0 0 0 0 0 0 x x x x x",
  7143. "x a6 a5 a4 a3 a2 a1 a0 i i i i i i i i";
  7144. loadpage_lo = " 1 1 0 0 0 0 0 1",
  7145. " 0 0 0 0 0 0 0 0",
  7146. " 0 0 0 0 0 0 a1 a0",
  7147. " i i i i i i i i";
  7148. writepage = " 1 1 0 0 0 0 1 0",
  7149. " 0 0 x x x x x x",
  7150. " x a6 a5 a4 a3 a2 0 0",
  7151. " x x x x x x x x";
  7152. mode = 0x41;
  7153. delay = 6;
  7154. blocksize = 4;
  7155. readsize = 256;
  7156. ;
  7157. memory "flash"
  7158. paged = yes;
  7159. size = 2048;
  7160. page_size = 32;
  7161. num_pages = 64;
  7162. min_write_delay = 4500;
  7163. max_write_delay = 4500;
  7164. readback_p1 = 0xff;
  7165. readback_p2 = 0xff;
  7166. read_lo = " 0 0 1 0 0 0 0 0",
  7167. " 0 0 0 0 0 0 a9 a8",
  7168. " a7 a6 a5 a4 a3 a2 a1 a0",
  7169. " o o o o o o o o";
  7170. read_hi = " 0 0 1 0 1 0 0 0",
  7171. " 0 0 0 0 0 0 a9 a8",
  7172. " a7 a6 a5 a4 a3 a2 a1 a0",
  7173. " o o o o o o o o";
  7174. # The information in the data sheet of April/2004 is wrong, this works:
  7175. loadpage_lo = " 0 1 0 0 0 0 0 0",
  7176. " 0 0 0 x x x x x",
  7177. " x x x x a3 a2 a1 a0",
  7178. " i i i i i i i i";
  7179. # The information in the data sheet of April/2004 is wrong, this works:
  7180. loadpage_hi = " 0 1 0 0 1 0 0 0",
  7181. " 0 0 0 x x x x x",
  7182. " x x x x a3 a2 a1 a0",
  7183. " i i i i i i i i";
  7184. # The information in the data sheet of April/2004 is wrong, this works:
  7185. writepage = " 0 1 0 0 1 1 0 0",
  7186. " 0 0 0 0 0 0 a9 a8",
  7187. " a7 a6 a5 a4 x x x x",
  7188. " x x x x x x x x";
  7189. mode = 0x41;
  7190. delay = 6;
  7191. blocksize = 32;
  7192. readsize = 256;
  7193. ;
  7194. # ATtiny2313 has Signature Bytes: 0x1E 0x91 0x0A.
  7195. memory "signature"
  7196. size = 3;
  7197. read = "0 0 1 1 0 0 0 0 0 0 0 x x x x x",
  7198. "x x x x x x a1 a0 o o o o o o o o";
  7199. ;
  7200. memory "lock"
  7201. size = 1;
  7202. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  7203. "x x x x x x x x 1 1 i i i i i i";
  7204. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  7205. "x x x x x x x x x x o o o o o o";
  7206. min_write_delay = 9000;
  7207. max_write_delay = 9000;
  7208. ;
  7209. memory "lfuse"
  7210. size = 1;
  7211. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  7212. "x x x x x x x x i i i i i i i i";
  7213. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  7214. "x x x x x x x x o o o o o o o o";
  7215. min_write_delay = 9000;
  7216. max_write_delay = 9000;
  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. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  7223. "x x x x x x x x o o o o o o o o";
  7224. min_write_delay = 9000;
  7225. max_write_delay = 9000;
  7226. ;
  7227. memory "efuse"
  7228. size = 1;
  7229. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  7230. "x x x x x x x x x x x x x x x i";
  7231. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  7232. "x x x x x x x x o o o o o o o o";
  7233. min_write_delay = 9000;
  7234. max_write_delay = 9000;
  7235. ;
  7236. # The Tiny2313 has calibration data for both 4 MHz and 8 MHz.
  7237. # The information in the data sheet of April/2004 is wrong, this works:
  7238. memory "calibration"
  7239. size = 2;
  7240. read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
  7241. "0 0 0 0 0 0 0 a0 o o o o o o o o";
  7242. ;
  7243. ;
  7244. #------------------------------------------------------------
  7245. # ATtiny4313
  7246. #------------------------------------------------------------
  7247. part
  7248. id = "t4313";
  7249. desc = "ATtiny4313";
  7250. has_debugwire = yes;
  7251. flash_instr = 0xB2, 0x0F, 0x1F;
  7252. eeprom_instr = 0xBB, 0xFE, 0xBB, 0xEE, 0xBB, 0xCC, 0xB2, 0x0D,
  7253. 0xBA, 0x0F, 0xB2, 0x0F, 0xBA, 0x0D, 0xBB, 0xBC,
  7254. 0x99, 0xE1, 0xBB, 0xAC;
  7255. stk500_devcode = 0x23;
  7256. ## Use the ATtiny26 devcode:
  7257. avr910_devcode = 0x5e;
  7258. signature = 0x1e 0x92 0x0d;
  7259. pagel = 0xD4;
  7260. bs2 = 0xD6;
  7261. reset = io;
  7262. chip_erase_delay = 9000;
  7263. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  7264. "x x x x x x x x x x x x x x x x";
  7265. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
  7266. "x x x x x x x x x x x x x x x x";
  7267. timeout = 200;
  7268. stabdelay = 100;
  7269. cmdexedelay = 25;
  7270. synchloops = 32;
  7271. bytedelay = 0;
  7272. pollindex = 3;
  7273. pollvalue = 0x53;
  7274. predelay = 1;
  7275. postdelay = 1;
  7276. pollmethod = 1;
  7277. pp_controlstack =
  7278. 0x0E, 0x1E, 0x0E, 0x1E, 0x2E, 0x3E, 0x2E, 0x3E,
  7279. 0x4E, 0x5E, 0x4E, 0x5E, 0x6E, 0x7E, 0x6E, 0x7E,
  7280. 0x26, 0x36, 0x66, 0x76, 0x2A, 0x3A, 0x6A, 0x7A,
  7281. 0x2E, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  7282. hventerstabdelay = 100;
  7283. progmodedelay = 0;
  7284. latchcycles = 5;
  7285. togglevtg = 1;
  7286. poweroffdelay = 15;
  7287. resetdelayms = 1;
  7288. resetdelayus = 0;
  7289. hvleavestabdelay = 15;
  7290. chiperasepulsewidth = 0;
  7291. chiperasepolltimeout = 10;
  7292. programfusepulsewidth = 0;
  7293. programfusepolltimeout = 5;
  7294. programlockpulsewidth = 0;
  7295. programlockpolltimeout = 5;
  7296. ocdrev = 0;
  7297. memory "eeprom"
  7298. size = 256;
  7299. paged = no;
  7300. page_size = 4;
  7301. min_write_delay = 4000;
  7302. max_write_delay = 4500;
  7303. readback_p1 = 0xff;
  7304. readback_p2 = 0xff;
  7305. read = "1 0 1 0 0 0 0 0 0 0 0 x x x x x",
  7306. "a7 a6 a5 a4 a3 a2 a1 a0 o o o o o o o o";
  7307. write = "1 1 0 0 0 0 0 0 0 0 0 x x x x x",
  7308. "a7 a6 a5 a4 a3 a2 a1 a0 i i i i i i i i";
  7309. loadpage_lo = " 1 1 0 0 0 0 0 1",
  7310. " 0 0 0 0 0 0 0 0",
  7311. " 0 0 0 0 0 0 a1 a0",
  7312. " i i i i i i i i";
  7313. writepage = " 1 1 0 0 0 0 1 0",
  7314. " 0 0 x x x x x x",
  7315. " a7 a6 a5 a4 a3 a2 0 0",
  7316. " x x x x x x x x";
  7317. mode = 0x41;
  7318. delay = 6;
  7319. blocksize = 4;
  7320. readsize = 256;
  7321. ;
  7322. memory "flash"
  7323. paged = yes;
  7324. size = 4096;
  7325. page_size = 64;
  7326. num_pages = 64;
  7327. min_write_delay = 4500;
  7328. max_write_delay = 4500;
  7329. readback_p1 = 0xff;
  7330. readback_p2 = 0xff;
  7331. read_lo = " 0 0 1 0 0 0 0 0",
  7332. " 0 0 0 0 0 a10 a9 a8",
  7333. " a7 a6 a5 a4 a3 a2 a1 a0",
  7334. " o o o o o o o o";
  7335. read_hi = " 0 0 1 0 1 0 0 0",
  7336. " 0 0 0 0 0 a10 a9 a8",
  7337. " a7 a6 a5 a4 a3 a2 a1 a0",
  7338. " o o o o o o o o";
  7339. loadpage_lo = " 0 1 0 0 0 0 0 0",
  7340. " 0 0 0 x x x x x",
  7341. " x x x a4 a3 a2 a1 a0",
  7342. " i i i i i i i i";
  7343. loadpage_hi = " 0 1 0 0 1 0 0 0",
  7344. " 0 0 0 x x x x x",
  7345. " x x x a4 a3 a2 a1 a0",
  7346. " i i i i i i i i";
  7347. writepage = " 0 1 0 0 1 1 0 0",
  7348. " 0 0 0 0 0 a10 a9 a8",
  7349. " a7 a6 a5 x x x x x",
  7350. " x x x x x x x x";
  7351. mode = 0x41;
  7352. delay = 6;
  7353. blocksize = 32;
  7354. readsize = 256;
  7355. ;
  7356. # ATtiny4313 has Signature Bytes: 0x1E 0x92 0x0D.
  7357. memory "signature"
  7358. size = 3;
  7359. read = "0 0 1 1 0 0 0 0 0 0 0 x x x x x",
  7360. "x x x x x x a1 a0 o o o o o o o o";
  7361. ;
  7362. memory "lock"
  7363. size = 1;
  7364. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  7365. "x x x x x x x x 1 1 i i i i i i";
  7366. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  7367. "x x x x x x x x x x o o o o o o";
  7368. min_write_delay = 9000;
  7369. max_write_delay = 9000;
  7370. ;
  7371. memory "lfuse"
  7372. size = 1;
  7373. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  7374. "x x x x x x x x i i i i i i i i";
  7375. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  7376. "x x x x x x x x o o o o o o o o";
  7377. min_write_delay = 9000;
  7378. max_write_delay = 9000;
  7379. ;
  7380. memory "hfuse"
  7381. size = 1;
  7382. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  7383. "x x x x x x x x i i i i i i i i";
  7384. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  7385. "x x x x x x x x o o o o o o o o";
  7386. min_write_delay = 9000;
  7387. max_write_delay = 9000;
  7388. ;
  7389. memory "efuse"
  7390. size = 1;
  7391. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  7392. "x x x x x x x x x x x x x x x i";
  7393. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  7394. "x x x x x x x x o o o o o o o o";
  7395. min_write_delay = 9000;
  7396. max_write_delay = 9000;
  7397. ;
  7398. memory "calibration"
  7399. size = 2;
  7400. read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
  7401. "0 0 0 0 0 0 0 a0 o o o o o o o o";
  7402. ;
  7403. ;
  7404. #------------------------------------------------------------
  7405. # AT90PWM2
  7406. #------------------------------------------------------------
  7407. part
  7408. id = "pwm2";
  7409. desc = "AT90PWM2";
  7410. has_debugwire = yes;
  7411. flash_instr = 0xB6, 0x01, 0x11;
  7412. eeprom_instr = 0xBD, 0xF2, 0xBD, 0xE1, 0xBB, 0xCF, 0xB4, 0x00,
  7413. 0xBE, 0x01, 0xB6, 0x01, 0xBC, 0x00, 0xBB, 0xBF,
  7414. 0x99, 0xF9, 0xBB, 0xAF;
  7415. stk500_devcode = 0x65;
  7416. ## avr910_devcode = ?;
  7417. signature = 0x1e 0x93 0x81;
  7418. pagel = 0xD8;
  7419. bs2 = 0xE2;
  7420. reset = io;
  7421. chip_erase_delay = 9000;
  7422. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  7423. "x x x x x x x x x x x x x x x x";
  7424. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
  7425. "x x x x x x x x x x x x x x x x";
  7426. timeout = 200;
  7427. stabdelay = 100;
  7428. cmdexedelay = 25;
  7429. synchloops = 32;
  7430. bytedelay = 0;
  7431. pollindex = 3;
  7432. pollvalue = 0x53;
  7433. predelay = 1;
  7434. postdelay = 1;
  7435. pollmethod = 1;
  7436. pp_controlstack =
  7437. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  7438. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  7439. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  7440. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  7441. hventerstabdelay = 100;
  7442. progmodedelay = 0;
  7443. latchcycles = 5;
  7444. togglevtg = 1;
  7445. poweroffdelay = 15;
  7446. resetdelayms = 1;
  7447. resetdelayus = 0;
  7448. hvleavestabdelay = 15;
  7449. chiperasepulsewidth = 0;
  7450. chiperasepolltimeout = 10;
  7451. programfusepulsewidth = 0;
  7452. programfusepolltimeout = 5;
  7453. programlockpulsewidth = 0;
  7454. programlockpolltimeout = 5;
  7455. memory "eeprom"
  7456. size = 512;
  7457. paged = no;
  7458. page_size = 4;
  7459. min_write_delay = 4000;
  7460. max_write_delay = 4500;
  7461. readback_p1 = 0xff;
  7462. readback_p2 = 0xff;
  7463. read = "1 0 1 0 0 0 0 0 0 0 0 x x x x a8",
  7464. "a7 a6 a5 a4 a3 a2 a1 a0 o o o o o o o o";
  7465. write = "1 1 0 0 0 0 0 0 0 0 0 x x x x a8",
  7466. "a7 a6 a5 a4 a3 a2 a1 a0 i i i i i i i i";
  7467. loadpage_lo = " 1 1 0 0 0 0 0 1",
  7468. " 0 0 0 0 0 0 0 0",
  7469. " 0 0 0 0 0 0 a1 a0",
  7470. " i i i i i i i i";
  7471. writepage = " 1 1 0 0 0 0 1 0",
  7472. " 0 0 x x x x x x",
  7473. " a7 a6 a5 a4 a3 a2 0 0",
  7474. " x x x x x x x x";
  7475. mode = 0x41;
  7476. delay = 6;
  7477. blocksize = 4;
  7478. readsize = 256;
  7479. ;
  7480. memory "flash"
  7481. paged = yes;
  7482. size = 8192;
  7483. page_size = 64;
  7484. num_pages = 128;
  7485. min_write_delay = 4500;
  7486. max_write_delay = 4500;
  7487. readback_p1 = 0xff;
  7488. readback_p2 = 0xff;
  7489. read_lo = " 0 0 1 0 0 0 0 0",
  7490. " 0 0 0 0 a11 a10 a9 a8",
  7491. " a7 a6 a5 a4 a3 a2 a1 a0",
  7492. " o o o o o o o o";
  7493. read_hi = " 0 0 1 0 1 0 0 0",
  7494. " 0 0 0 0 a11 a10 a9 a8",
  7495. " a7 a6 a5 a4 a3 a2 a1 a0",
  7496. " o o o o o o o o";
  7497. loadpage_lo = " 0 1 0 0 0 0 0 0",
  7498. " 0 0 0 x x x x x",
  7499. " x x x a4 a3 a2 a1 a0",
  7500. " i i i i i i i i";
  7501. loadpage_hi = " 0 1 0 0 1 0 0 0",
  7502. " 0 0 0 x x x x x",
  7503. " x x x a4 a3 a2 a1 a0",
  7504. " i i i i i i i i";
  7505. writepage = " 0 1 0 0 1 1 0 0",
  7506. " 0 0 0 0 a11 a10 a9 a8",
  7507. " a7 a6 a5 x x x x x",
  7508. " x x x x x x x x";
  7509. mode = 0x41;
  7510. delay = 6;
  7511. blocksize = 64;
  7512. readsize = 256;
  7513. ;
  7514. # AT90PWM2 has Signature Bytes: 0x1E 0x93 0x81.
  7515. memory "signature"
  7516. size = 3;
  7517. read = "0 0 1 1 0 0 0 0 0 0 x x x x x x",
  7518. "x x x x x x a1 a0 o o o o o o o o";
  7519. ;
  7520. memory "lock"
  7521. size = 1;
  7522. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  7523. "x x x x x x x x 1 1 i i i i i i";
  7524. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  7525. "x x x x x x x x x x o o o o o o";
  7526. min_write_delay = 9000;
  7527. max_write_delay = 9000;
  7528. ;
  7529. memory "lfuse"
  7530. size = 1;
  7531. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  7532. "x x x x x x x x i i i i i i i i";
  7533. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  7534. "x x x x x x x x o o o o o o o o";
  7535. min_write_delay = 9000;
  7536. max_write_delay = 9000;
  7537. ;
  7538. memory "hfuse"
  7539. size = 1;
  7540. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  7541. "x x x x x x x x i i i i i i i i";
  7542. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  7543. "x x x x x x x x o o o o o o o o";
  7544. min_write_delay = 9000;
  7545. max_write_delay = 9000;
  7546. ;
  7547. memory "efuse"
  7548. size = 1;
  7549. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  7550. "x x x x x x x x i i i i i i i i";
  7551. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  7552. "x x x x x x x x o o o o o o o o";
  7553. min_write_delay = 9000;
  7554. max_write_delay = 9000;
  7555. ;
  7556. memory "calibration"
  7557. size = 1;
  7558. read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
  7559. "0 0 0 0 0 0 0 0 o o o o o o o o";
  7560. ;
  7561. ;
  7562. #------------------------------------------------------------
  7563. # AT90PWM3
  7564. #------------------------------------------------------------
  7565. # Completely identical to AT90PWM2 (including the signature!)
  7566. part parent "pwm2"
  7567. id = "pwm3";
  7568. desc = "AT90PWM3";
  7569. ;
  7570. #------------------------------------------------------------
  7571. # AT90PWM2B
  7572. #------------------------------------------------------------
  7573. # Same as AT90PWM2 but different signature.
  7574. part parent "pwm2"
  7575. id = "pwm2b";
  7576. desc = "AT90PWM2B";
  7577. signature = 0x1e 0x93 0x83;
  7578. ocdrev = 1;
  7579. ;
  7580. #------------------------------------------------------------
  7581. # AT90PWM3B
  7582. #------------------------------------------------------------
  7583. # Completely identical to AT90PWM2B (including the signature!)
  7584. part parent "pwm2b"
  7585. id = "pwm3b";
  7586. desc = "AT90PWM3B";
  7587. ocdrev = 1;
  7588. ;
  7589. #------------------------------------------------------------
  7590. # AT90PWM316
  7591. #------------------------------------------------------------
  7592. # Similar to AT90PWM3B, but with 16 kiB flash, 512 B EEPROM, and 1024 B SRAM.
  7593. part parent "pwm3b"
  7594. id = "pwm316";
  7595. desc = "AT90PWM316";
  7596. signature = 0x1e 0x94 0x83;
  7597. ocdrev = 1;
  7598. memory "flash"
  7599. paged = yes;
  7600. size = 16384;
  7601. page_size = 128;
  7602. num_pages = 128;
  7603. min_write_delay = 4500;
  7604. max_write_delay = 4500;
  7605. readback_p1 = 0xff;
  7606. readback_p2 = 0xff;
  7607. read_lo = " 0 0 1 0 0 0 0 0",
  7608. " 0 0 a13 a12 a11 a10 a9 a8",
  7609. " a7 a6 a5 a4 a3 a2 a1 a0",
  7610. " o o o o o o o o";
  7611. read_hi = " 0 0 1 0 1 0 0 0",
  7612. " 0 0 a13 a12 a11 a10 a9 a8",
  7613. " a7 a6 a5 a4 a3 a2 a1 a0",
  7614. " o o o o o o o o";
  7615. loadpage_lo = " 0 1 0 0 0 0 0 0",
  7616. " 0 0 x x x x x x",
  7617. " x x a5 a4 a3 a2 a1 a0",
  7618. " i i i i i i i i";
  7619. loadpage_hi = " 0 1 0 0 1 0 0 0",
  7620. " 0 0 x x x x x x",
  7621. " x x a5 a4 a3 a2 a1 a0",
  7622. " i i i i i i i i";
  7623. writepage = " 0 1 0 0 1 1 0 0",
  7624. " 0 0 a13 a12 a11 a10 a9 a8",
  7625. " a7 a6 x x x x x x",
  7626. " x x x x x x x x";
  7627. mode = 0x21;
  7628. delay = 6;
  7629. blocksize = 128;
  7630. readsize = 256;
  7631. ;
  7632. ;
  7633. #------------------------------------------------------------
  7634. # ATtiny25
  7635. #------------------------------------------------------------
  7636. part
  7637. id = "t25";
  7638. desc = "ATtiny25";
  7639. has_debugwire = yes;
  7640. flash_instr = 0xB4, 0x02, 0x12;
  7641. eeprom_instr = 0xBB, 0xFF, 0xBB, 0xEE, 0xBB, 0xCC, 0xB2, 0x0D,
  7642. 0xBC, 0x02, 0xB4, 0x02, 0xBA, 0x0D, 0xBB, 0xBC,
  7643. 0x99, 0xE1, 0xBB, 0xAC;
  7644. ## no STK500 devcode in XML file, use the ATtiny45 one
  7645. stk500_devcode = 0x14;
  7646. ## avr910_devcode = ?;
  7647. ## Try the AT90S2313 devcode:
  7648. avr910_devcode = 0x20;
  7649. signature = 0x1e 0x91 0x08;
  7650. reset = io;
  7651. chip_erase_delay = 4500;
  7652. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  7653. "x x x x x x x x x x x x x x x x";
  7654. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
  7655. "x x x x x x x x x x x x x x x x";
  7656. timeout = 200;
  7657. stabdelay = 100;
  7658. cmdexedelay = 25;
  7659. synchloops = 32;
  7660. bytedelay = 0;
  7661. pollindex = 3;
  7662. pollvalue = 0x53;
  7663. predelay = 1;
  7664. postdelay = 1;
  7665. pollmethod = 1;
  7666. hvsp_controlstack =
  7667. 0x4C, 0x0C, 0x1C, 0x2C, 0x3C, 0x64, 0x74, 0x66,
  7668. 0x68, 0x78, 0x68, 0x68, 0x7A, 0x6A, 0x68, 0x78,
  7669. 0x78, 0x7D, 0x6D, 0x0C, 0x80, 0x40, 0x20, 0x10,
  7670. 0x11, 0x08, 0x04, 0x02, 0x03, 0x08, 0x04, 0x00;
  7671. hventerstabdelay = 100;
  7672. hvspcmdexedelay = 0;
  7673. synchcycles = 6;
  7674. latchcycles = 1;
  7675. togglevtg = 1;
  7676. poweroffdelay = 25;
  7677. resetdelayms = 1;
  7678. resetdelayus = 0;
  7679. hvleavestabdelay = 100;
  7680. resetdelay = 25;
  7681. chiperasepolltimeout = 40;
  7682. chiperasetime = 0;
  7683. programfusepolltimeout = 25;
  7684. programlockpolltimeout = 25;
  7685. ocdrev = 1;
  7686. memory "eeprom"
  7687. size = 128;
  7688. paged = no;
  7689. page_size = 4;
  7690. min_write_delay = 4000;
  7691. max_write_delay = 4500;
  7692. readback_p1 = 0xff;
  7693. readback_p2 = 0xff;
  7694. read = "1 0 1 0 0 0 0 0 0 0 0 x x x x x",
  7695. "x a6 a5 a4 a3 a2 a1 a0 o o o o o o o o";
  7696. write = "1 1 0 0 0 0 0 0 0 0 0 x x x x x",
  7697. "x a6 a5 a4 a3 a2 a1 a0 i i i i i i i i";
  7698. loadpage_lo = " 1 1 0 0 0 0 0 1",
  7699. " 0 0 0 0 0 0 0 0",
  7700. " 0 0 0 0 0 0 a1 a0",
  7701. " i i i i i i i i";
  7702. writepage = " 1 1 0 0 0 0 1 0",
  7703. " 0 0 x x x x x x",
  7704. " x a6 a5 a4 a3 a2 0 0",
  7705. " x x x x x x x x";
  7706. mode = 0x41;
  7707. delay = 6;
  7708. blocksize = 4;
  7709. readsize = 256;
  7710. ;
  7711. memory "flash"
  7712. paged = yes;
  7713. size = 2048;
  7714. page_size = 32;
  7715. num_pages = 64;
  7716. min_write_delay = 4500;
  7717. max_write_delay = 4500;
  7718. readback_p1 = 0xff;
  7719. readback_p2 = 0xff;
  7720. read_lo = " 0 0 1 0 0 0 0 0",
  7721. " 0 0 0 0 0 0 a9 a8",
  7722. " a7 a6 a5 a4 a3 a2 a1 a0",
  7723. " o o o o o o o o";
  7724. read_hi = " 0 0 1 0 1 0 0 0",
  7725. " 0 0 0 0 0 0 a9 a8",
  7726. " a7 a6 a5 a4 a3 a2 a1 a0",
  7727. " o o o o o o o o";
  7728. loadpage_lo = " 0 1 0 0 0 0 0 0",
  7729. " 0 0 0 x x x x x",
  7730. " x x x x a3 a2 a1 a0",
  7731. " i i i i i i i i";
  7732. loadpage_hi = " 0 1 0 0 1 0 0 0",
  7733. " 0 0 0 x x x x x",
  7734. " x x x x a3 a2 a1 a0",
  7735. " i i i i i i i i";
  7736. writepage = " 0 1 0 0 1 1 0 0",
  7737. " 0 0 0 0 0 0 a9 a8",
  7738. " a7 a6 a5 a4 x x x x",
  7739. " x x x x x x x x";
  7740. mode = 0x41;
  7741. delay = 6;
  7742. blocksize = 32;
  7743. readsize = 256;
  7744. ;
  7745. # ATtiny25 has Signature Bytes: 0x1E 0x91 0x08.
  7746. memory "signature"
  7747. size = 3;
  7748. read = "0 0 1 1 0 0 0 0 0 0 0 x x x x x",
  7749. "x x x x x x a1 a0 o o o o o o o o";
  7750. ;
  7751. memory "lock"
  7752. size = 1;
  7753. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  7754. "x x x x x x x x 1 1 i i i i i i";
  7755. min_write_delay = 9000;
  7756. max_write_delay = 9000;
  7757. ;
  7758. memory "lfuse"
  7759. size = 1;
  7760. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  7761. "x x x x x x x x i i i i i i i i";
  7762. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  7763. "x x x x x x x x o o o o o o o o";
  7764. min_write_delay = 9000;
  7765. max_write_delay = 9000;
  7766. ;
  7767. memory "hfuse"
  7768. size = 1;
  7769. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  7770. "x x x x x x x x i i i i i i i i";
  7771. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  7772. "x x x x x x x x o o o o o o o o";
  7773. min_write_delay = 9000;
  7774. max_write_delay = 9000;
  7775. ;
  7776. memory "efuse"
  7777. size = 1;
  7778. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  7779. "x x x x x x x x x x x x x x x i";
  7780. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  7781. "x x x x x x x x o o o o o o o o";
  7782. min_write_delay = 9000;
  7783. max_write_delay = 9000;
  7784. ;
  7785. memory "calibration"
  7786. size = 2;
  7787. read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
  7788. "0 0 0 0 0 0 0 a0 o o o o o o o o";
  7789. ;
  7790. ;
  7791. #------------------------------------------------------------
  7792. # ATtiny45
  7793. #------------------------------------------------------------
  7794. part
  7795. id = "t45";
  7796. desc = "ATtiny45";
  7797. has_debugwire = yes;
  7798. flash_instr = 0xB4, 0x02, 0x12;
  7799. eeprom_instr = 0xBB, 0xFF, 0xBB, 0xEE, 0xBB, 0xCC, 0xB2, 0x0D,
  7800. 0xBC, 0x02, 0xB4, 0x02, 0xBA, 0x0D, 0xBB, 0xBC,
  7801. 0x99, 0xE1, 0xBB, 0xAC;
  7802. stk500_devcode = 0x14;
  7803. ## avr910_devcode = ?;
  7804. ## Try the AT90S2313 devcode:
  7805. avr910_devcode = 0x20;
  7806. signature = 0x1e 0x92 0x06;
  7807. reset = io;
  7808. chip_erase_delay = 4500;
  7809. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  7810. "x x x x x x x x x x x x x x x x";
  7811. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
  7812. "x x x x x x x x x x x x x x x x";
  7813. timeout = 200;
  7814. stabdelay = 100;
  7815. cmdexedelay = 25;
  7816. synchloops = 32;
  7817. bytedelay = 0;
  7818. pollindex = 3;
  7819. pollvalue = 0x53;
  7820. predelay = 1;
  7821. postdelay = 1;
  7822. pollmethod = 1;
  7823. hvsp_controlstack =
  7824. 0x4C, 0x0C, 0x1C, 0x2C, 0x3C, 0x64, 0x74, 0x66,
  7825. 0x68, 0x78, 0x68, 0x68, 0x7A, 0x6A, 0x68, 0x78,
  7826. 0x78, 0x7D, 0x6D, 0x0C, 0x80, 0x40, 0x20, 0x10,
  7827. 0x11, 0x08, 0x04, 0x02, 0x03, 0x08, 0x04, 0x00;
  7828. hventerstabdelay = 100;
  7829. progmodedelay = 0;
  7830. hvspcmdexedelay = 0;
  7831. synchcycles = 6;
  7832. latchcycles = 1;
  7833. togglevtg = 1;
  7834. poweroffdelay = 25;
  7835. resetdelayms = 1;
  7836. resetdelayus = 0;
  7837. hvleavestabdelay = 100;
  7838. resetdelay = 25;
  7839. chiperasepolltimeout = 40;
  7840. chiperasetime = 0;
  7841. programfusepolltimeout = 25;
  7842. programlockpolltimeout = 25;
  7843. ocdrev = 1;
  7844. memory "eeprom"
  7845. size = 256;
  7846. page_size = 4;
  7847. min_write_delay = 4000;
  7848. max_write_delay = 4500;
  7849. readback_p1 = 0xff;
  7850. readback_p2 = 0xff;
  7851. read = "1 0 1 0 0 0 0 0 0 0 0 x x x x x",
  7852. "a7 a6 a5 a4 a3 a2 a1 a0 o o o o o o o o";
  7853. write = "1 1 0 0 0 0 0 0 0 0 0 x x x x x",
  7854. "a7 a6 a5 a4 a3 a2 a1 a0 i i i i i i i i";
  7855. loadpage_lo = " 1 1 0 0 0 0 0 1",
  7856. " 0 0 0 0 0 0 0 0",
  7857. " 0 0 0 0 0 0 a1 a0",
  7858. " i i i i i i i i";
  7859. writepage = " 1 1 0 0 0 0 1 0",
  7860. " 0 0 x x x x x x",
  7861. " a7 a6 a5 a4 a3 a2 0 0",
  7862. " x x x x x x x x";
  7863. mode = 0x41;
  7864. delay = 6;
  7865. blocksize = 4;
  7866. readsize = 256;
  7867. ;
  7868. memory "flash"
  7869. paged = yes;
  7870. size = 4096;
  7871. page_size = 64;
  7872. num_pages = 64;
  7873. min_write_delay = 4500;
  7874. max_write_delay = 4500;
  7875. readback_p1 = 0xff;
  7876. readback_p2 = 0xff;
  7877. read_lo = " 0 0 1 0 0 0 0 0",
  7878. " 0 0 0 0 0 a10 a9 a8",
  7879. " a7 a6 a5 a4 a3 a2 a1 a0",
  7880. " o o o o o o o o";
  7881. read_hi = " 0 0 1 0 1 0 0 0",
  7882. " 0 0 0 0 0 a10 a9 a8",
  7883. " a7 a6 a5 a4 a3 a2 a1 a0",
  7884. " o o o o o o o o";
  7885. loadpage_lo = " 0 1 0 0 0 0 0 0",
  7886. " 0 0 0 x x x x x",
  7887. " x x x a4 a3 a2 a1 a0",
  7888. " i i i i i i i i";
  7889. loadpage_hi = " 0 1 0 0 1 0 0 0",
  7890. " 0 0 0 x x x x x",
  7891. " x x x a4 a3 a2 a1 a0",
  7892. " i i i i i i i i";
  7893. writepage = " 0 1 0 0 1 1 0 0",
  7894. " 0 0 0 0 0 a10 a9 a8",
  7895. " a7 a6 a5 x x x x x",
  7896. " x x x x x x x x";
  7897. mode = 0x41;
  7898. delay = 6;
  7899. blocksize = 32;
  7900. readsize = 256;
  7901. ;
  7902. # ATtiny45 has Signature Bytes: 0x1E 0x92 0x08. (Data sheet 2586C-AVR-06/05 (doc2586.pdf) indicates otherwise!)
  7903. memory "signature"
  7904. size = 3;
  7905. read = "0 0 1 1 0 0 0 0 0 0 0 x x x x x",
  7906. "x x x x x x a1 a0 o o o o o o o o";
  7907. ;
  7908. memory "lock"
  7909. size = 1;
  7910. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  7911. "x x x x x x x x 1 1 i i i i i i";
  7912. min_write_delay = 9000;
  7913. max_write_delay = 9000;
  7914. ;
  7915. memory "lfuse"
  7916. size = 1;
  7917. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  7918. "x x x x x x x x i i i i i i i i";
  7919. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  7920. "x x x x x x x x o o o o o o o o";
  7921. min_write_delay = 9000;
  7922. max_write_delay = 9000;
  7923. ;
  7924. memory "hfuse"
  7925. size = 1;
  7926. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  7927. "x x x x x x x x i i i i i i i i";
  7928. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  7929. "x x x x x x x x o o o o o o o o";
  7930. min_write_delay = 9000;
  7931. max_write_delay = 9000;
  7932. ;
  7933. memory "efuse"
  7934. size = 1;
  7935. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  7936. "x x x x x x x x x x x x x x x i";
  7937. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  7938. "x x x x x x x x o o o o o o o o";
  7939. min_write_delay = 9000;
  7940. max_write_delay = 9000;
  7941. ;
  7942. memory "calibration"
  7943. size = 2;
  7944. read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
  7945. "0 0 0 0 0 0 0 a0 o o o o o o o o";
  7946. ;
  7947. ;
  7948. #------------------------------------------------------------
  7949. # ATtiny85
  7950. #------------------------------------------------------------
  7951. part
  7952. id = "t85";
  7953. desc = "ATtiny85";
  7954. has_debugwire = yes;
  7955. flash_instr = 0xB4, 0x02, 0x12;
  7956. eeprom_instr = 0xBB, 0xFF, 0xBB, 0xEE, 0xBB, 0xCC, 0xB2, 0x0D,
  7957. 0xBC, 0x02, 0xB4, 0x02, 0xBA, 0x0D, 0xBB, 0xBC,
  7958. 0x99, 0xE1, 0xBB, 0xAC;
  7959. ## no STK500 devcode in XML file, use the ATtiny45 one
  7960. stk500_devcode = 0x14;
  7961. ## avr910_devcode = ?;
  7962. ## Try the AT90S2313 devcode:
  7963. avr910_devcode = 0x20;
  7964. signature = 0x1e 0x93 0x0b;
  7965. reset = io;
  7966. chip_erase_delay = 400000;
  7967. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  7968. "x x x x x x x x x x x x x x x x";
  7969. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
  7970. "x x x x x x x x x x x x x x x x";
  7971. timeout = 200;
  7972. stabdelay = 100;
  7973. cmdexedelay = 25;
  7974. synchloops = 32;
  7975. bytedelay = 0;
  7976. pollindex = 3;
  7977. pollvalue = 0x53;
  7978. predelay = 1;
  7979. postdelay = 1;
  7980. pollmethod = 1;
  7981. hvsp_controlstack =
  7982. 0x4C, 0x0C, 0x1C, 0x2C, 0x3C, 0x64, 0x74, 0x66,
  7983. 0x68, 0x78, 0x68, 0x68, 0x7A, 0x6A, 0x68, 0x78,
  7984. 0x78, 0x7D, 0x6D, 0x0C, 0x80, 0x40, 0x20, 0x10,
  7985. 0x11, 0x08, 0x04, 0x02, 0x03, 0x08, 0x04, 0x00;
  7986. hventerstabdelay = 100;
  7987. hvspcmdexedelay = 0;
  7988. synchcycles = 6;
  7989. latchcycles = 1;
  7990. togglevtg = 1;
  7991. poweroffdelay = 25;
  7992. resetdelayms = 1;
  7993. resetdelayus = 0;
  7994. hvleavestabdelay = 100;
  7995. resetdelay = 25;
  7996. chiperasepolltimeout = 40;
  7997. chiperasetime = 0;
  7998. programfusepolltimeout = 25;
  7999. programlockpolltimeout = 25;
  8000. ocdrev = 1;
  8001. memory "eeprom"
  8002. size = 512;
  8003. paged = no;
  8004. page_size = 4;
  8005. min_write_delay = 4000;
  8006. max_write_delay = 4500;
  8007. readback_p1 = 0xff;
  8008. readback_p2 = 0xff;
  8009. read = "1 0 1 0 0 0 0 0 0 0 0 x x x x a8",
  8010. "a7 a6 a5 a4 a3 a2 a1 a0 o o o o o o o o";
  8011. write = "1 1 0 0 0 0 0 0 0 0 0 x x x x a8",
  8012. "a7 a6 a5 a4 a3 a2 a1 a0 i i i i i i i i";
  8013. loadpage_lo = " 1 1 0 0 0 0 0 1",
  8014. " 0 0 0 0 0 0 0 0",
  8015. " 0 0 0 0 0 0 a1 a0",
  8016. " i i i i i i i i";
  8017. writepage = " 1 1 0 0 0 0 1 0",
  8018. " 0 0 x x x x x a8",
  8019. " a7 a6 a5 a4 a3 a2 0 0",
  8020. " x x x x x x x x";
  8021. mode = 0x41;
  8022. delay = 12;
  8023. blocksize = 4;
  8024. readsize = 256;
  8025. ;
  8026. memory "flash"
  8027. paged = yes;
  8028. size = 8192;
  8029. page_size = 64;
  8030. num_pages = 128;
  8031. min_write_delay = 30000;
  8032. max_write_delay = 30000;
  8033. readback_p1 = 0xff;
  8034. readback_p2 = 0xff;
  8035. read_lo = " 0 0 1 0 0 0 0 0",
  8036. " 0 0 0 0 a11 a10 a9 a8",
  8037. " a7 a6 a5 a4 a3 a2 a1 a0",
  8038. " o o o o o o o o";
  8039. read_hi = " 0 0 1 0 1 0 0 0",
  8040. " 0 0 0 0 a11 a10 a9 a8",
  8041. " a7 a6 a5 a4 a3 a2 a1 a0",
  8042. " o o o o o o o o";
  8043. loadpage_lo = " 0 1 0 0 0 0 0 0",
  8044. " 0 0 0 x x x x x",
  8045. " x x x a4 a3 a2 a1 a0",
  8046. " i i i i i i i i";
  8047. loadpage_hi = " 0 1 0 0 1 0 0 0",
  8048. " 0 0 0 x x x x x",
  8049. " x x x a4 a3 a2 a1 a0",
  8050. " i i i i i i i i";
  8051. writepage = " 0 1 0 0 1 1 0 0",
  8052. " 0 0 0 0 a11 a10 a9 a8",
  8053. " a7 a6 a5 x x x x x",
  8054. " x x x x x x x x";
  8055. mode = 0x41;
  8056. delay = 6;
  8057. blocksize = 32;
  8058. readsize = 256;
  8059. ;
  8060. # ATtiny85 has Signature Bytes: 0x1E 0x93 0x08.
  8061. memory "signature"
  8062. size = 3;
  8063. read = "0 0 1 1 0 0 0 0 0 0 0 x x x x x",
  8064. "x x x x x x a1 a0 o o o o o o o o";
  8065. ;
  8066. memory "lock"
  8067. size = 1;
  8068. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  8069. "x x x x x x x x 1 1 i i i i i i";
  8070. min_write_delay = 9000;
  8071. max_write_delay = 9000;
  8072. ;
  8073. memory "lfuse"
  8074. size = 1;
  8075. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  8076. "x x x x x x x x i i i i i i i i";
  8077. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  8078. "x x x x x x x x o o o o o o o o";
  8079. min_write_delay = 9000;
  8080. max_write_delay = 9000;
  8081. ;
  8082. memory "hfuse"
  8083. size = 1;
  8084. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  8085. "x x x x x x x x i i i i i i i i";
  8086. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  8087. "x x x x x x x x o o o o o o o o";
  8088. min_write_delay = 9000;
  8089. max_write_delay = 9000;
  8090. ;
  8091. memory "efuse"
  8092. size = 1;
  8093. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  8094. "x x x x x x x x x x x x x x x i";
  8095. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  8096. "x x x x x x x x o o o o o o o o";
  8097. min_write_delay = 9000;
  8098. max_write_delay = 9000;
  8099. ;
  8100. memory "calibration"
  8101. size = 2;
  8102. read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
  8103. "0 0 0 0 0 0 0 a0 o o o o o o o o";
  8104. ;
  8105. ;
  8106. #------------------------------------------------------------
  8107. # ATmega640
  8108. #------------------------------------------------------------
  8109. # Almost same as ATmega1280, except for different memory sizes
  8110. part
  8111. id = "m640";
  8112. desc = "ATmega640";
  8113. signature = 0x1e 0x96 0x08;
  8114. has_jtag = yes;
  8115. # stk500_devcode = 0xB2;
  8116. # avr910_devcode = 0x43;
  8117. chip_erase_delay = 9000;
  8118. pagel = 0xD7;
  8119. bs2 = 0xA0;
  8120. reset = dedicated;
  8121. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  8122. "x x x x x x x x x x x x x x x x";
  8123. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 0 0 0 0 0",
  8124. "x x x x x x x x x x x x x x x x";
  8125. timeout = 200;
  8126. stabdelay = 100;
  8127. cmdexedelay = 25;
  8128. synchloops = 32;
  8129. bytedelay = 0;
  8130. pollindex = 3;
  8131. pollvalue = 0x53;
  8132. predelay = 1;
  8133. postdelay = 1;
  8134. pollmethod = 1;
  8135. pp_controlstack =
  8136. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  8137. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  8138. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  8139. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  8140. hventerstabdelay = 100;
  8141. progmodedelay = 0;
  8142. latchcycles = 5;
  8143. togglevtg = 1;
  8144. poweroffdelay = 15;
  8145. resetdelayms = 1;
  8146. resetdelayus = 0;
  8147. hvleavestabdelay = 15;
  8148. chiperasepulsewidth = 0;
  8149. chiperasepolltimeout = 10;
  8150. programfusepulsewidth = 0;
  8151. programfusepolltimeout = 5;
  8152. programlockpulsewidth = 0;
  8153. programlockpolltimeout = 5;
  8154. idr = 0x31;
  8155. spmcr = 0x57;
  8156. rampz = 0x3b;
  8157. allowfullpagebitstream = no;
  8158. ocdrev = 3;
  8159. memory "eeprom"
  8160. paged = no; /* leave this "no" */
  8161. page_size = 8; /* for parallel programming */
  8162. size = 4096;
  8163. min_write_delay = 9000;
  8164. max_write_delay = 9000;
  8165. readback_p1 = 0x00;
  8166. readback_p2 = 0x00;
  8167. read = " 1 0 1 0 0 0 0 0",
  8168. " x x x x a11 a10 a9 a8",
  8169. " a7 a6 a5 a4 a3 a2 a1 a0",
  8170. " o o o o o o o o";
  8171. write = " 1 1 0 0 0 0 0 0",
  8172. " x x x x a11 a10 a9 a8",
  8173. " a7 a6 a5 a4 a3 a2 a1 a0",
  8174. " i i i i i i i i";
  8175. loadpage_lo = " 1 1 0 0 0 0 0 1",
  8176. " 0 0 0 0 0 0 0 0",
  8177. " 0 0 0 0 0 a2 a1 a0",
  8178. " i i i i i i i i";
  8179. writepage = " 1 1 0 0 0 0 1 0",
  8180. " 0 0 x x a11 a10 a9 a8",
  8181. " a7 a6 a5 a4 a3 0 0 0",
  8182. " x x x x x x x x";
  8183. mode = 0x41;
  8184. delay = 10;
  8185. blocksize = 8;
  8186. readsize = 256;
  8187. ;
  8188. memory "flash"
  8189. paged = yes;
  8190. size = 65536;
  8191. page_size = 256;
  8192. num_pages = 256;
  8193. min_write_delay = 4500;
  8194. max_write_delay = 4500;
  8195. readback_p1 = 0x00;
  8196. readback_p2 = 0x00;
  8197. read_lo = " 0 0 1 0 0 0 0 0",
  8198. " 0 a14 a13 a12 a11 a10 a9 a8",
  8199. " a7 a6 a5 a4 a3 a2 a1 a0",
  8200. " o o o o o o o o";
  8201. read_hi = " 0 0 1 0 1 0 0 0",
  8202. " 0 a14 a13 a12 a11 a10 a9 a8",
  8203. " a7 a6 a5 a4 a3 a2 a1 a0",
  8204. " o o o o o o o o";
  8205. loadpage_lo = " 0 1 0 0 0 0 0 0",
  8206. " x x x x x x x x",
  8207. " x a6 a5 a4 a3 a2 a1 a0",
  8208. " i i i i i i i i";
  8209. loadpage_hi = " 0 1 0 0 1 0 0 0",
  8210. " x x x x x x x x",
  8211. " x a6 a5 a4 a3 a2 a1 a0",
  8212. " i i i i i i i i";
  8213. writepage = " 0 1 0 0 1 1 0 0",
  8214. " 0 a14 a13 a12 a11 a10 a9 a8",
  8215. " a7 x x x x x x x",
  8216. " x x x x x x x x";
  8217. mode = 0x41;
  8218. delay = 10;
  8219. blocksize = 256;
  8220. readsize = 256;
  8221. ;
  8222. memory "lfuse"
  8223. size = 1;
  8224. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  8225. "x x x x x x x x i i i i i i i i";
  8226. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  8227. "x x x x x x x x o o o o o o o o";
  8228. min_write_delay = 9000;
  8229. max_write_delay = 9000;
  8230. ;
  8231. memory "hfuse"
  8232. size = 1;
  8233. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  8234. "x x x x x x x x i i i i i i i i";
  8235. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  8236. "x x x x x x x x o o o o o o o o";
  8237. min_write_delay = 9000;
  8238. max_write_delay = 9000;
  8239. ;
  8240. memory "efuse"
  8241. size = 1;
  8242. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  8243. "x x x x x x x x x x x x x i i i";
  8244. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  8245. "x x x x x x x x o o o o o o o o";
  8246. min_write_delay = 9000;
  8247. max_write_delay = 9000;
  8248. ;
  8249. memory "lock"
  8250. size = 1;
  8251. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  8252. "x x x x x x x x x x o o o o o o";
  8253. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  8254. "x x x x x x x x 1 1 i i i i i i";
  8255. min_write_delay = 9000;
  8256. max_write_delay = 9000;
  8257. ;
  8258. memory "calibration"
  8259. size = 1;
  8260. read = "0 0 1 1 1 0 0 0 x x x x x x x x",
  8261. "0 0 0 0 0 0 0 0 o o o o o o o o";
  8262. ;
  8263. memory "signature"
  8264. size = 3;
  8265. read = "0 0 1 1 0 0 0 0 x x x x x x x x",
  8266. "x x x x x x a1 a0 o o o o o o o o";
  8267. ;
  8268. ;
  8269. #------------------------------------------------------------
  8270. # ATmega1280
  8271. #------------------------------------------------------------
  8272. part
  8273. id = "m1280";
  8274. desc = "ATmega1280";
  8275. signature = 0x1e 0x97 0x03;
  8276. has_jtag = yes;
  8277. # stk500_devcode = 0xB2;
  8278. # avr910_devcode = 0x43;
  8279. chip_erase_delay = 9000;
  8280. pagel = 0xD7;
  8281. bs2 = 0xA0;
  8282. reset = dedicated;
  8283. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  8284. "x x x x x x x x x x x x x x x x";
  8285. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 0 0 0 0 0",
  8286. "x x x x x x x x x x x x x x x x";
  8287. timeout = 200;
  8288. stabdelay = 100;
  8289. cmdexedelay = 25;
  8290. synchloops = 32;
  8291. bytedelay = 0;
  8292. pollindex = 3;
  8293. pollvalue = 0x53;
  8294. predelay = 1;
  8295. postdelay = 1;
  8296. pollmethod = 1;
  8297. pp_controlstack =
  8298. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  8299. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  8300. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  8301. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  8302. hventerstabdelay = 100;
  8303. progmodedelay = 0;
  8304. latchcycles = 5;
  8305. togglevtg = 1;
  8306. poweroffdelay = 15;
  8307. resetdelayms = 1;
  8308. resetdelayus = 0;
  8309. hvleavestabdelay = 15;
  8310. chiperasepulsewidth = 0;
  8311. chiperasepolltimeout = 10;
  8312. programfusepulsewidth = 0;
  8313. programfusepolltimeout = 5;
  8314. programlockpulsewidth = 0;
  8315. programlockpolltimeout = 5;
  8316. idr = 0x31;
  8317. spmcr = 0x57;
  8318. rampz = 0x3b;
  8319. allowfullpagebitstream = no;
  8320. ocdrev = 3;
  8321. memory "eeprom"
  8322. paged = no; /* leave this "no" */
  8323. page_size = 8; /* for parallel programming */
  8324. size = 4096;
  8325. min_write_delay = 9000;
  8326. max_write_delay = 9000;
  8327. readback_p1 = 0x00;
  8328. readback_p2 = 0x00;
  8329. read = " 1 0 1 0 0 0 0 0",
  8330. " x x x x a11 a10 a9 a8",
  8331. " a7 a6 a5 a4 a3 a2 a1 a0",
  8332. " o o o o o o o o";
  8333. write = " 1 1 0 0 0 0 0 0",
  8334. " x x x x a11 a10 a9 a8",
  8335. " a7 a6 a5 a4 a3 a2 a1 a0",
  8336. " i i i i i i i i";
  8337. loadpage_lo = " 1 1 0 0 0 0 0 1",
  8338. " 0 0 0 0 0 0 0 0",
  8339. " 0 0 0 0 0 a2 a1 a0",
  8340. " i i i i i i i i";
  8341. writepage = " 1 1 0 0 0 0 1 0",
  8342. " 0 0 x x a11 a10 a9 a8",
  8343. " a7 a6 a5 a4 a3 0 0 0",
  8344. " x x x x x x x x";
  8345. mode = 0x41;
  8346. delay = 10;
  8347. blocksize = 8;
  8348. readsize = 256;
  8349. ;
  8350. memory "flash"
  8351. paged = yes;
  8352. size = 131072;
  8353. page_size = 256;
  8354. num_pages = 512;
  8355. min_write_delay = 4500;
  8356. max_write_delay = 4500;
  8357. readback_p1 = 0x00;
  8358. readback_p2 = 0x00;
  8359. read_lo = " 0 0 1 0 0 0 0 0",
  8360. "a15 a14 a13 a12 a11 a10 a9 a8",
  8361. " a7 a6 a5 a4 a3 a2 a1 a0",
  8362. " o o o o o o o o";
  8363. read_hi = " 0 0 1 0 1 0 0 0",
  8364. "a15 a14 a13 a12 a11 a10 a9 a8",
  8365. " a7 a6 a5 a4 a3 a2 a1 a0",
  8366. " o o o o o o o o";
  8367. loadpage_lo = " 0 1 0 0 0 0 0 0",
  8368. " x x x x x x x x",
  8369. " x a6 a5 a4 a3 a2 a1 a0",
  8370. " i i i i i i i i";
  8371. loadpage_hi = " 0 1 0 0 1 0 0 0",
  8372. " x x x x x x x x",
  8373. " x a6 a5 a4 a3 a2 a1 a0",
  8374. " i i i i i i i i";
  8375. writepage = " 0 1 0 0 1 1 0 0",
  8376. "a15 a14 a13 a12 a11 a10 a9 a8",
  8377. " a7 x x x x x x x",
  8378. " x x x x x x x x";
  8379. mode = 0x41;
  8380. delay = 10;
  8381. blocksize = 256;
  8382. readsize = 256;
  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. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  8389. "x x x x x x x x o o o o o o o o";
  8390. min_write_delay = 9000;
  8391. max_write_delay = 9000;
  8392. ;
  8393. memory "hfuse"
  8394. size = 1;
  8395. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  8396. "x x x x x x x x i i i i i i i i";
  8397. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  8398. "x x x x x x x x o o o o o o o o";
  8399. min_write_delay = 9000;
  8400. max_write_delay = 9000;
  8401. ;
  8402. memory "efuse"
  8403. size = 1;
  8404. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  8405. "x x x x x x x x x x x x x i i i";
  8406. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  8407. "x x x x x x x x o o o o o o o o";
  8408. min_write_delay = 9000;
  8409. max_write_delay = 9000;
  8410. ;
  8411. memory "lock"
  8412. size = 1;
  8413. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  8414. "x x x x x x x x x x o o o o o o";
  8415. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  8416. "x x x x x x x x 1 1 i i i i i i";
  8417. min_write_delay = 9000;
  8418. max_write_delay = 9000;
  8419. ;
  8420. memory "calibration"
  8421. size = 1;
  8422. read = "0 0 1 1 1 0 0 0 x x x x x x x x",
  8423. "0 0 0 0 0 0 0 0 o o o o o o o o";
  8424. ;
  8425. memory "signature"
  8426. size = 3;
  8427. read = "0 0 1 1 0 0 0 0 x x x x x x x x",
  8428. "x x x x x x a1 a0 o o o o o o o o";
  8429. ;
  8430. ;
  8431. #------------------------------------------------------------
  8432. # ATmega1281
  8433. #------------------------------------------------------------
  8434. # Identical to ATmega1280
  8435. part parent "m1280"
  8436. id = "m1281";
  8437. desc = "ATmega1281";
  8438. signature = 0x1e 0x97 0x04;
  8439. ocdrev = 3;
  8440. ;
  8441. #------------------------------------------------------------
  8442. # ATmega2560
  8443. #------------------------------------------------------------
  8444. part
  8445. id = "m2560";
  8446. desc = "ATmega2560";
  8447. signature = 0x1e 0x98 0x01;
  8448. has_jtag = yes;
  8449. # stk500_devcode = 0xB2;
  8450. # avr910_devcode = 0x43;
  8451. chip_erase_delay = 9000;
  8452. pagel = 0xD7;
  8453. bs2 = 0xA0;
  8454. reset = dedicated;
  8455. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  8456. "x x x x x x x x x x x x x x x x";
  8457. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 0 0 0 0 0",
  8458. "x x x x x x x x x x x x x x x x";
  8459. timeout = 200;
  8460. stabdelay = 100;
  8461. cmdexedelay = 25;
  8462. synchloops = 32;
  8463. bytedelay = 0;
  8464. pollindex = 3;
  8465. pollvalue = 0x53;
  8466. predelay = 1;
  8467. postdelay = 1;
  8468. pollmethod = 1;
  8469. pp_controlstack =
  8470. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  8471. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  8472. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  8473. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x02;
  8474. hventerstabdelay = 100;
  8475. progmodedelay = 0;
  8476. latchcycles = 5;
  8477. togglevtg = 1;
  8478. poweroffdelay = 15;
  8479. resetdelayms = 1;
  8480. resetdelayus = 0;
  8481. hvleavestabdelay = 15;
  8482. chiperasepulsewidth = 0;
  8483. chiperasepolltimeout = 10;
  8484. programfusepulsewidth = 0;
  8485. programfusepolltimeout = 5;
  8486. programlockpulsewidth = 0;
  8487. programlockpolltimeout = 5;
  8488. idr = 0x31;
  8489. spmcr = 0x57;
  8490. rampz = 0x3b;
  8491. allowfullpagebitstream = no;
  8492. ocdrev = 4;
  8493. memory "eeprom"
  8494. paged = no; /* leave this "no" */
  8495. page_size = 8; /* for parallel programming */
  8496. size = 4096;
  8497. min_write_delay = 9000;
  8498. max_write_delay = 9000;
  8499. readback_p1 = 0x00;
  8500. readback_p2 = 0x00;
  8501. read = " 1 0 1 0 0 0 0 0",
  8502. " x x x x a11 a10 a9 a8",
  8503. " a7 a6 a5 a4 a3 a2 a1 a0",
  8504. " o o o o o o o o";
  8505. write = " 1 1 0 0 0 0 0 0",
  8506. " x x x x a11 a10 a9 a8",
  8507. " a7 a6 a5 a4 a3 a2 a1 a0",
  8508. " i i i i i i i i";
  8509. loadpage_lo = " 1 1 0 0 0 0 0 1",
  8510. " 0 0 0 0 0 0 0 0",
  8511. " 0 0 0 0 0 a2 a1 a0",
  8512. " i i i i i i i i";
  8513. writepage = " 1 1 0 0 0 0 1 0",
  8514. " 0 0 x x a11 a10 a9 a8",
  8515. " a7 a6 a5 a4 a3 0 0 0",
  8516. " x x x x x x x x";
  8517. mode = 0x41;
  8518. delay = 10;
  8519. blocksize = 8;
  8520. readsize = 256;
  8521. ;
  8522. memory "flash"
  8523. paged = yes;
  8524. size = 262144;
  8525. page_size = 256;
  8526. num_pages = 1024;
  8527. min_write_delay = 4500;
  8528. max_write_delay = 4500;
  8529. readback_p1 = 0x00;
  8530. readback_p2 = 0x00;
  8531. read_lo = " 0 0 1 0 0 0 0 0",
  8532. "a15 a14 a13 a12 a11 a10 a9 a8",
  8533. " a7 a6 a5 a4 a3 a2 a1 a0",
  8534. " o o o o o o o o";
  8535. read_hi = " 0 0 1 0 1 0 0 0",
  8536. "a15 a14 a13 a12 a11 a10 a9 a8",
  8537. " a7 a6 a5 a4 a3 a2 a1 a0",
  8538. " o o o o o o o o";
  8539. loadpage_lo = " 0 1 0 0 0 0 0 0",
  8540. " x x x x x x x x",
  8541. " x a6 a5 a4 a3 a2 a1 a0",
  8542. " i i i i i i i i";
  8543. loadpage_hi = " 0 1 0 0 1 0 0 0",
  8544. " x x x x x x x x",
  8545. " x a6 a5 a4 a3 a2 a1 a0",
  8546. " i i i i i i i i";
  8547. writepage = " 0 1 0 0 1 1 0 0",
  8548. "a15 a14 a13 a12 a11 a10 a9 a8",
  8549. " a7 x x x x x x x",
  8550. " x x x x x x x x";
  8551. load_ext_addr = " 0 1 0 0 1 1 0 1",
  8552. " 0 0 0 0 0 0 0 0",
  8553. " 0 0 0 0 0 0 0 a16",
  8554. " 0 0 0 0 0 0 0 0";
  8555. mode = 0x41;
  8556. delay = 10;
  8557. blocksize = 256;
  8558. readsize = 256;
  8559. ;
  8560. memory "lfuse"
  8561. size = 1;
  8562. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  8563. "x x x x x x x x i i i i i i i i";
  8564. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  8565. "x x x x x x x x o o o o o o o o";
  8566. min_write_delay = 9000;
  8567. max_write_delay = 9000;
  8568. ;
  8569. memory "hfuse"
  8570. size = 1;
  8571. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  8572. "x x x x x x x x i i i i i i i i";
  8573. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  8574. "x x x x x x x x o o o o o o o o";
  8575. min_write_delay = 9000;
  8576. max_write_delay = 9000;
  8577. ;
  8578. memory "efuse"
  8579. size = 1;
  8580. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  8581. "x x x x x x x x x x x x x i i i";
  8582. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  8583. "x x x x x x x x o o o o o o o o";
  8584. min_write_delay = 9000;
  8585. max_write_delay = 9000;
  8586. ;
  8587. memory "lock"
  8588. size = 1;
  8589. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  8590. "x x x x x x x x x x o o o o o o";
  8591. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  8592. "x x x x x x x x 1 1 i i i i i i";
  8593. min_write_delay = 9000;
  8594. max_write_delay = 9000;
  8595. ;
  8596. memory "calibration"
  8597. size = 1;
  8598. read = "0 0 1 1 1 0 0 0 x x x x x x x x",
  8599. "0 0 0 0 0 0 0 0 o o o o o o o o";
  8600. ;
  8601. memory "signature"
  8602. size = 3;
  8603. read = "0 0 1 1 0 0 0 0 x x x x x x x x",
  8604. "x x x x x x a1 a0 o o o o o o o o";
  8605. ;
  8606. ;
  8607. #------------------------------------------------------------
  8608. # ATmega2561
  8609. #------------------------------------------------------------
  8610. part parent "m2560"
  8611. id = "m2561";
  8612. desc = "ATmega2561";
  8613. signature = 0x1e 0x98 0x02;
  8614. ocdrev = 4;
  8615. ;
  8616. #------------------------------------------------------------
  8617. # ATmega128RFA1
  8618. #------------------------------------------------------------
  8619. # Identical to ATmega2561 but half the ROM
  8620. part parent "m2561"
  8621. id = "m128rfa1";
  8622. desc = "ATmega128RFA1";
  8623. signature = 0x1e 0xa7 0x01;
  8624. chip_erase_delay = 55000;
  8625. bs2 = 0xE2;
  8626. ocdrev = 3;
  8627. memory "flash"
  8628. paged = yes;
  8629. size = 131072;
  8630. page_size = 256;
  8631. num_pages = 512;
  8632. min_write_delay = 50000;
  8633. max_write_delay = 50000;
  8634. readback_p1 = 0x00;
  8635. readback_p2 = 0x00;
  8636. read_lo = " 0 0 1 0 0 0 0 0",
  8637. "a15 a14 a13 a12 a11 a10 a9 a8",
  8638. " a7 a6 a5 a4 a3 a2 a1 a0",
  8639. " o o o o o o o o";
  8640. read_hi = " 0 0 1 0 1 0 0 0",
  8641. "a15 a14 a13 a12 a11 a10 a9 a8",
  8642. " a7 a6 a5 a4 a3 a2 a1 a0",
  8643. " o o o o o o o o";
  8644. loadpage_lo = " 0 1 0 0 0 0 0 0",
  8645. " x x x x x x x x",
  8646. " x a6 a5 a4 a3 a2 a1 a0",
  8647. " i i i i i i i i";
  8648. loadpage_hi = " 0 1 0 0 1 0 0 0",
  8649. " x x x x x x x x",
  8650. " x a6 a5 a4 a3 a2 a1 a0",
  8651. " i i i i i i i i";
  8652. writepage = " 0 1 0 0 1 1 0 0",
  8653. "a15 a14 a13 a12 a11 a10 a9 a8",
  8654. " a7 x x x x x x x",
  8655. " x x x x x x x x";
  8656. mode = 0x41;
  8657. delay = 20;
  8658. blocksize = 256;
  8659. readsize = 256;
  8660. ;
  8661. ;
  8662. #------------------------------------------------------------
  8663. # ATmega256RFR2
  8664. #------------------------------------------------------------
  8665. part parent "m2561"
  8666. id = "m256rfr2";
  8667. desc = "ATmega256RFR2";
  8668. signature = 0x1e 0xa8 0x02;
  8669. chip_erase_delay = 55000;
  8670. bs2 = 0xE2;
  8671. ocdrev = 4;
  8672. ;
  8673. #------------------------------------------------------------
  8674. # ATmega128RFR2
  8675. #------------------------------------------------------------
  8676. part parent "m128rfa1"
  8677. id = "m128rfr2";
  8678. desc = "ATmega128RFR2";
  8679. signature = 0x1e 0xa7 0x02;
  8680. ocdrev = 3;
  8681. ;
  8682. #------------------------------------------------------------
  8683. # ATmega64RFR2
  8684. #------------------------------------------------------------
  8685. part parent "m128rfa1"
  8686. id = "m64rfr2";
  8687. desc = "ATmega64RFR2";
  8688. signature = 0x1e 0xa6 0x02;
  8689. ocdrev = 3;
  8690. memory "flash"
  8691. paged = yes;
  8692. size = 65536;
  8693. page_size = 256;
  8694. num_pages = 256;
  8695. min_write_delay = 50000;
  8696. max_write_delay = 50000;
  8697. readback_p1 = 0x00;
  8698. readback_p2 = 0x00;
  8699. read_lo = " 0 0 1 0 0 0 0 0",
  8700. " 0 a14 a13 a12 a11 a10 a9 a8",
  8701. " a7 a6 a5 a4 a3 a2 a1 a0",
  8702. " o o o o o o o o";
  8703. read_hi = " 0 0 1 0 1 0 0 0",
  8704. " 0 a14 a13 a12 a11 a10 a9 a8",
  8705. " a7 a6 a5 a4 a3 a2 a1 a0",
  8706. " o o o o o o o o";
  8707. loadpage_lo = " 0 1 0 0 0 0 0 0",
  8708. " x x x x x x x x",
  8709. " x a6 a5 a4 a3 a2 a1 a0",
  8710. " i i i i i i i i";
  8711. loadpage_hi = " 0 1 0 0 1 0 0 0",
  8712. " x x x x x x x x",
  8713. " x a6 a5 a4 a3 a2 a1 a0",
  8714. " i i i i i i i i";
  8715. writepage = " 0 1 0 0 1 1 0 0",
  8716. " 0 a14 a13 a12 a11 a10 a9 a8",
  8717. " a7 x x x x x x x",
  8718. " x x x x x x x x";
  8719. mode = 0x41;
  8720. delay = 20;
  8721. blocksize = 256;
  8722. readsize = 256;
  8723. ;
  8724. ;
  8725. #------------------------------------------------------------
  8726. # ATmega2564RFR2
  8727. #------------------------------------------------------------
  8728. part parent "m256rfr2"
  8729. id = "m2564rfr2";
  8730. desc = "ATmega2564RFR2";
  8731. signature = 0x1e 0xa8 0x03;
  8732. ;
  8733. #------------------------------------------------------------
  8734. # ATmega1284RFR2
  8735. #------------------------------------------------------------
  8736. part parent "m128rfr2"
  8737. id = "m1284rfr2";
  8738. desc = "ATmega1284RFR2";
  8739. signature = 0x1e 0xa7 0x03;
  8740. ;
  8741. #------------------------------------------------------------
  8742. # ATmega644RFR2
  8743. #------------------------------------------------------------
  8744. part parent "m64rfr2"
  8745. id = "m644rfr2";
  8746. desc = "ATmega644RFR2";
  8747. signature = 0x1e 0xa6 0x03;
  8748. ;
  8749. #------------------------------------------------------------
  8750. # ATtiny24
  8751. #------------------------------------------------------------
  8752. part
  8753. id = "t24";
  8754. desc = "ATtiny24";
  8755. has_debugwire = yes;
  8756. flash_instr = 0xB4, 0x07, 0x17;
  8757. eeprom_instr = 0xBB, 0xFF, 0xBB, 0xEE, 0xBB, 0xCC, 0xB2, 0x0D,
  8758. 0xBC, 0x07, 0xB4, 0x07, 0xBA, 0x0D, 0xBB, 0xBC,
  8759. 0x99, 0xE1, 0xBB, 0xAC;
  8760. ## no STK500 devcode in XML file, use the ATtiny45 one
  8761. stk500_devcode = 0x14;
  8762. ## avr910_devcode = ?;
  8763. ## Try the AT90S2313 devcode:
  8764. avr910_devcode = 0x20;
  8765. signature = 0x1e 0x91 0x0b;
  8766. reset = io;
  8767. chip_erase_delay = 4500;
  8768. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  8769. "x x x x x x x x x x x x x x x x";
  8770. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
  8771. "x x x x x x x x x x x x x x x x";
  8772. timeout = 200;
  8773. stabdelay = 100;
  8774. cmdexedelay = 25;
  8775. synchloops = 32;
  8776. bytedelay = 0;
  8777. pollindex = 3;
  8778. pollvalue = 0x53;
  8779. predelay = 1;
  8780. postdelay = 1;
  8781. pollmethod = 1;
  8782. hvsp_controlstack =
  8783. 0x4C, 0x0C, 0x1C, 0x2C, 0x3C, 0x64, 0x74, 0x66,
  8784. 0x68, 0x78, 0x68, 0x68, 0x7A, 0x6A, 0x68, 0x78,
  8785. 0x78, 0x7D, 0x6D, 0x0C, 0x80, 0x40, 0x20, 0x10,
  8786. 0x11, 0x08, 0x04, 0x02, 0x03, 0x08, 0x04, 0x0F;
  8787. hventerstabdelay = 100;
  8788. hvspcmdexedelay = 0;
  8789. synchcycles = 6;
  8790. latchcycles = 1;
  8791. togglevtg = 1;
  8792. poweroffdelay = 25;
  8793. resetdelayms = 0;
  8794. resetdelayus = 70;
  8795. hvleavestabdelay = 100;
  8796. resetdelay = 25;
  8797. chiperasepolltimeout = 40;
  8798. chiperasetime = 0;
  8799. programfusepolltimeout = 25;
  8800. programlockpolltimeout = 25;
  8801. ocdrev = 1;
  8802. memory "eeprom"
  8803. size = 128;
  8804. paged = no;
  8805. page_size = 4;
  8806. min_write_delay = 4000;
  8807. max_write_delay = 4500;
  8808. readback_p1 = 0xff;
  8809. readback_p2 = 0xff;
  8810. read = "1 0 1 0 0 0 0 0 0 0 0 x x x x x",
  8811. "x a6 a5 a4 a3 a2 a1 a0 o o o o o o o o";
  8812. write = "1 1 0 0 0 0 0 0 0 0 0 x x x x x",
  8813. "x a6 a5 a4 a3 a2 a1 a0 i i i i i i i i";
  8814. loadpage_lo = " 1 1 0 0 0 0 0 1",
  8815. " 0 0 0 0 0 0 0 0",
  8816. " 0 0 0 0 0 0 a1 a0",
  8817. " i i i i i i i i";
  8818. writepage = " 1 1 0 0 0 0 1 0",
  8819. " 0 0 x x x x x x",
  8820. " x a6 a5 a4 a3 a2 0 0",
  8821. " x x x x x x x x";
  8822. mode = 0x41;
  8823. delay = 6;
  8824. blocksize = 4;
  8825. readsize = 256;
  8826. ;
  8827. memory "flash"
  8828. paged = yes;
  8829. size = 2048;
  8830. page_size = 32;
  8831. num_pages = 64;
  8832. min_write_delay = 4500;
  8833. max_write_delay = 4500;
  8834. readback_p1 = 0xff;
  8835. readback_p2 = 0xff;
  8836. read_lo = " 0 0 1 0 0 0 0 0",
  8837. " 0 0 0 0 0 0 a9 a8",
  8838. " a7 a6 a5 a4 a3 a2 a1 a0",
  8839. " o o o o o o o o";
  8840. read_hi = " 0 0 1 0 1 0 0 0",
  8841. " 0 0 0 0 0 0 a9 a8",
  8842. " a7 a6 a5 a4 a3 a2 a1 a0",
  8843. " o o o o o o o o";
  8844. loadpage_lo = " 0 1 0 0 0 0 0 0",
  8845. " 0 0 0 x x x x x",
  8846. " x x x x a3 a2 a1 a0",
  8847. " i i i i i i i i";
  8848. loadpage_hi = " 0 1 0 0 1 0 0 0",
  8849. " 0 0 0 x x x x x",
  8850. " x x x x a3 a2 a1 a0",
  8851. " i i i i i i i i";
  8852. writepage = " 0 1 0 0 1 1 0 0",
  8853. " 0 0 0 0 0 0 a9 a8",
  8854. " a7 a6 a5 a4 x x x x",
  8855. " x x x x x x x x";
  8856. mode = 0x41;
  8857. delay = 6;
  8858. blocksize = 32;
  8859. readsize = 256;
  8860. ;
  8861. # ATtiny24 has Signature Bytes: 0x1E 0x91 0x0B.
  8862. memory "signature"
  8863. size = 3;
  8864. read = "0 0 1 1 0 0 0 0 0 0 0 x x x x x",
  8865. "x x x x x x a1 a0 o o o o o o o o";
  8866. ;
  8867. memory "lock"
  8868. size = 1;
  8869. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  8870. "x x x x x x x x x x x x x x i i";
  8871. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  8872. "0 0 0 0 0 0 0 0 o o o o o o o o";
  8873. min_write_delay = 9000;
  8874. max_write_delay = 9000;
  8875. ;
  8876. memory "lfuse"
  8877. size = 1;
  8878. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  8879. "x x x x x x x x i i i i i i i i";
  8880. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  8881. "x x x x x x x x o o o o o o o o";
  8882. min_write_delay = 9000;
  8883. max_write_delay = 9000;
  8884. ;
  8885. memory "hfuse"
  8886. size = 1;
  8887. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  8888. "x x x x x x x x i i i i i i i i";
  8889. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  8890. "x x x x x x x x o o o o o o o o";
  8891. min_write_delay = 9000;
  8892. max_write_delay = 9000;
  8893. ;
  8894. memory "efuse"
  8895. size = 1;
  8896. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  8897. "x x x x x x x x x x x x x x x i";
  8898. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  8899. "x x x x x x x x o o o o o o o o";
  8900. min_write_delay = 9000;
  8901. max_write_delay = 9000;
  8902. ;
  8903. memory "calibration"
  8904. size = 1;
  8905. read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
  8906. "0 0 0 0 0 0 0 a0 o o o o o o o o";
  8907. ;
  8908. ;
  8909. #------------------------------------------------------------
  8910. # ATtiny44
  8911. #------------------------------------------------------------
  8912. part
  8913. id = "t44";
  8914. desc = "ATtiny44";
  8915. has_debugwire = yes;
  8916. flash_instr = 0xB4, 0x07, 0x17;
  8917. eeprom_instr = 0xBB, 0xFF, 0xBB, 0xEE, 0xBB, 0xCC, 0xB2, 0x0D,
  8918. 0xBC, 0x07, 0xB4, 0x07, 0xBA, 0x0D, 0xBB, 0xBC,
  8919. 0x99, 0xE1, 0xBB, 0xAC;
  8920. ## no STK500 devcode in XML file, use the ATtiny45 one
  8921. stk500_devcode = 0x14;
  8922. ## avr910_devcode = ?;
  8923. ## Try the AT90S2313 devcode:
  8924. avr910_devcode = 0x20;
  8925. signature = 0x1e 0x92 0x07;
  8926. reset = io;
  8927. chip_erase_delay = 4500;
  8928. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  8929. "x x x x x x x x x x x x x x x x";
  8930. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
  8931. "x x x x x x x x x x x x x x x x";
  8932. timeout = 200;
  8933. stabdelay = 100;
  8934. cmdexedelay = 25;
  8935. synchloops = 32;
  8936. bytedelay = 0;
  8937. pollindex = 3;
  8938. pollvalue = 0x53;
  8939. predelay = 1;
  8940. postdelay = 1;
  8941. pollmethod = 1;
  8942. hvsp_controlstack =
  8943. 0x4C, 0x0C, 0x1C, 0x2C, 0x3C, 0x64, 0x74, 0x66,
  8944. 0x68, 0x78, 0x68, 0x68, 0x7A, 0x6A, 0x68, 0x78,
  8945. 0x78, 0x7D, 0x6D, 0x0C, 0x80, 0x40, 0x20, 0x10,
  8946. 0x11, 0x08, 0x04, 0x02, 0x03, 0x08, 0x04, 0x0F;
  8947. hventerstabdelay = 100;
  8948. hvspcmdexedelay = 0;
  8949. synchcycles = 6;
  8950. latchcycles = 1;
  8951. togglevtg = 1;
  8952. poweroffdelay = 25;
  8953. resetdelayms = 0;
  8954. resetdelayus = 70;
  8955. hvleavestabdelay = 100;
  8956. resetdelay = 25;
  8957. chiperasepolltimeout = 40;
  8958. chiperasetime = 0;
  8959. programfusepolltimeout = 25;
  8960. programlockpolltimeout = 25;
  8961. ocdrev = 1;
  8962. memory "eeprom"
  8963. size = 256;
  8964. paged = no;
  8965. page_size = 4;
  8966. min_write_delay = 4000;
  8967. max_write_delay = 4500;
  8968. readback_p1 = 0xff;
  8969. readback_p2 = 0xff;
  8970. read = "1 0 1 0 0 0 0 0 0 0 0 x x x x x",
  8971. "a7 a6 a5 a4 a3 a2 a1 a0 o o o o o o o o";
  8972. write = "1 1 0 0 0 0 0 0 0 0 0 x x x x x",
  8973. "a7 a6 a5 a4 a3 a2 a1 a0 i i i i i i i i";
  8974. loadpage_lo = " 1 1 0 0 0 0 0 1",
  8975. " 0 0 0 0 0 0 0 0",
  8976. " 0 0 0 0 0 0 a1 a0",
  8977. " i i i i i i i i";
  8978. writepage = " 1 1 0 0 0 0 1 0",
  8979. " 0 0 x x x x x x",
  8980. " x a6 a5 a4 a3 a2 0 0",
  8981. " x x x x x x x x";
  8982. mode = 0x41;
  8983. delay = 6;
  8984. blocksize = 4;
  8985. readsize = 256;
  8986. ;
  8987. memory "flash"
  8988. paged = yes;
  8989. size = 4096;
  8990. page_size = 64;
  8991. num_pages = 64;
  8992. min_write_delay = 4500;
  8993. max_write_delay = 4500;
  8994. readback_p1 = 0xff;
  8995. readback_p2 = 0xff;
  8996. read_lo = " 0 0 1 0 0 0 0 0",
  8997. " 0 0 0 0 0 a10 a9 a8",
  8998. " a7 a6 a5 a4 a3 a2 a1 a0",
  8999. " o o o o o o o o";
  9000. read_hi = " 0 0 1 0 1 0 0 0",
  9001. " 0 0 0 0 0 a10 a9 a8",
  9002. " a7 a6 a5 a4 a3 a2 a1 a0",
  9003. " o o o o o o o o";
  9004. loadpage_lo = " 0 1 0 0 0 0 0 0",
  9005. " 0 0 0 x x x x x",
  9006. " x x x a4 a3 a2 a1 a0",
  9007. " i i i i i i i i";
  9008. loadpage_hi = " 0 1 0 0 1 0 0 0",
  9009. " 0 0 0 x x x x x",
  9010. " x x x a4 a3 a2 a1 a0",
  9011. " i i i i i i i i";
  9012. writepage = " 0 1 0 0 1 1 0 0",
  9013. " 0 0 0 0 0 a10 a9 a8",
  9014. " a7 a6 a5 x x x x x",
  9015. " x x x x x x x x";
  9016. mode = 0x41;
  9017. delay = 6;
  9018. blocksize = 32;
  9019. readsize = 256;
  9020. ;
  9021. # ATtiny44 has Signature Bytes: 0x1E 0x92 0x07.
  9022. memory "signature"
  9023. size = 3;
  9024. read = "0 0 1 1 0 0 0 0 0 0 0 x x x x x",
  9025. "x x x x x x a1 a0 o o o o o o o o";
  9026. ;
  9027. memory "lock"
  9028. size = 1;
  9029. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  9030. "x x x x x x x x x x x x x x i i";
  9031. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  9032. "0 0 0 0 0 0 0 0 o o o o o o o o";
  9033. min_write_delay = 9000;
  9034. max_write_delay = 9000;
  9035. ;
  9036. memory "lfuse"
  9037. size = 1;
  9038. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  9039. "x x x x x x x x i i i i i i i i";
  9040. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  9041. "x x x x x x x x o o o o o o o o";
  9042. min_write_delay = 9000;
  9043. max_write_delay = 9000;
  9044. ;
  9045. memory "hfuse"
  9046. size = 1;
  9047. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  9048. "x x x x x x x x i i i i i i i i";
  9049. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  9050. "x x x x x x x x o o o o o o o o";
  9051. min_write_delay = 9000;
  9052. max_write_delay = 9000;
  9053. ;
  9054. memory "efuse"
  9055. size = 1;
  9056. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  9057. "x x x x x x x x x x x x x x x i";
  9058. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  9059. "x x x x x x x x o o o o o o o o";
  9060. min_write_delay = 9000;
  9061. max_write_delay = 9000;
  9062. ;
  9063. memory "calibration"
  9064. size = 1;
  9065. read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
  9066. "0 0 0 0 0 0 0 a0 o o o o o o o o";
  9067. ;
  9068. ;
  9069. #------------------------------------------------------------
  9070. # ATtiny84
  9071. #------------------------------------------------------------
  9072. part
  9073. id = "t84";
  9074. desc = "ATtiny84";
  9075. has_debugwire = yes;
  9076. flash_instr = 0xB4, 0x07, 0x17;
  9077. eeprom_instr = 0xBB, 0xFF, 0xBB, 0xEE, 0xBB, 0xCC, 0xB2, 0x0D,
  9078. 0xBC, 0x07, 0xB4, 0x07, 0xBA, 0x0D, 0xBB, 0xBC,
  9079. 0x99, 0xE1, 0xBB, 0xAC;
  9080. ## no STK500 devcode in XML file, use the ATtiny45 one
  9081. stk500_devcode = 0x14;
  9082. ## avr910_devcode = ?;
  9083. ## Try the AT90S2313 devcode:
  9084. avr910_devcode = 0x20;
  9085. signature = 0x1e 0x93 0x0c;
  9086. reset = io;
  9087. chip_erase_delay = 4500;
  9088. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  9089. "x x x x x x x x x x x x x x x x";
  9090. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
  9091. "x x x x x x x x x x x x x x x x";
  9092. timeout = 200;
  9093. stabdelay = 100;
  9094. cmdexedelay = 25;
  9095. synchloops = 32;
  9096. bytedelay = 0;
  9097. pollindex = 3;
  9098. pollvalue = 0x53;
  9099. predelay = 1;
  9100. postdelay = 1;
  9101. pollmethod = 1;
  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, 0x0F;
  9107. hventerstabdelay = 100;
  9108. hvspcmdexedelay = 0;
  9109. synchcycles = 6;
  9110. latchcycles = 1;
  9111. togglevtg = 1;
  9112. poweroffdelay = 25;
  9113. resetdelayms = 0;
  9114. resetdelayus = 70;
  9115. hvleavestabdelay = 100;
  9116. resetdelay = 25;
  9117. chiperasepolltimeout = 40;
  9118. chiperasetime = 0;
  9119. programfusepolltimeout = 25;
  9120. programlockpolltimeout = 25;
  9121. ocdrev = 1;
  9122. memory "eeprom"
  9123. size = 512;
  9124. paged = no;
  9125. page_size = 4;
  9126. min_write_delay = 4000;
  9127. max_write_delay = 4500;
  9128. readback_p1 = 0xff;
  9129. readback_p2 = 0xff;
  9130. read = "1 0 1 0 0 0 0 0 0 0 0 x x x x a8",
  9131. "a7 a6 a5 a4 a3 a2 a1 a0 o o o o o o o o";
  9132. write = "1 1 0 0 0 0 0 0 0 0 0 x x x x a8",
  9133. "a7 a6 a5 a4 a3 a2 a1 a0 i i i i i i i i";
  9134. loadpage_lo = " 1 1 0 0 0 0 0 1",
  9135. " 0 0 0 0 0 0 0 0",
  9136. " 0 0 0 0 0 0 a1 a0",
  9137. " i i i i i i i i";
  9138. writepage = " 1 1 0 0 0 0 1 0",
  9139. " 0 0 x x x x x x",
  9140. " x a6 a5 a4 a3 a2 0 0",
  9141. " x x x x x x x x";
  9142. mode = 0x41;
  9143. delay = 6;
  9144. blocksize = 4;
  9145. readsize = 256;
  9146. ;
  9147. memory "flash"
  9148. paged = yes;
  9149. size = 8192;
  9150. page_size = 64;
  9151. num_pages = 128;
  9152. min_write_delay = 4500;
  9153. max_write_delay = 4500;
  9154. readback_p1 = 0xff;
  9155. readback_p2 = 0xff;
  9156. read_lo = " 0 0 1 0 0 0 0 0",
  9157. " 0 0 0 0 a11 a10 a9 a8",
  9158. " a7 a6 a5 a4 a3 a2 a1 a0",
  9159. " o o o o o o o o";
  9160. read_hi = " 0 0 1 0 1 0 0 0",
  9161. " 0 0 0 0 a11 a10 a9 a8",
  9162. " a7 a6 a5 a4 a3 a2 a1 a0",
  9163. " o o o o o o o o";
  9164. loadpage_lo = " 0 1 0 0 0 0 0 0",
  9165. " 0 0 0 x x x x x",
  9166. " x x x a4 a3 a2 a1 a0",
  9167. " i i i i i i i i";
  9168. loadpage_hi = " 0 1 0 0 1 0 0 0",
  9169. " 0 0 0 x x x x x",
  9170. " x x x a4 a3 a2 a1 a0",
  9171. " i i i i i i i i";
  9172. writepage = " 0 1 0 0 1 1 0 0",
  9173. " 0 0 0 0 a11 a10 a9 a8",
  9174. " a7 a6 a5 x x x x x",
  9175. " x x x x x x x x";
  9176. mode = 0x41;
  9177. delay = 6;
  9178. blocksize = 32;
  9179. readsize = 256;
  9180. ;
  9181. # ATtiny84 has Signature Bytes: 0x1E 0x93 0x0C.
  9182. memory "signature"
  9183. size = 3;
  9184. read = "0 0 1 1 0 0 0 0 0 0 0 x x x x x",
  9185. "x x x x x x a1 a0 o o o o o o o o";
  9186. ;
  9187. memory "lock"
  9188. size = 1;
  9189. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  9190. "x x x x x x x x x x x x x x i i";
  9191. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  9192. "0 0 0 0 0 0 0 0 o o o o o o o o";
  9193. min_write_delay = 9000;
  9194. max_write_delay = 9000;
  9195. ;
  9196. memory "lfuse"
  9197. size = 1;
  9198. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  9199. "x x x x x x x x i i i i i i i i";
  9200. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  9201. "x x x x x x x x o o o o o o o o";
  9202. min_write_delay = 9000;
  9203. max_write_delay = 9000;
  9204. ;
  9205. memory "hfuse"
  9206. size = 1;
  9207. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  9208. "x x x x x x x x i i i i i i i i";
  9209. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  9210. "x x x x x x x x o o o o o o o o";
  9211. min_write_delay = 9000;
  9212. max_write_delay = 9000;
  9213. ;
  9214. memory "efuse"
  9215. size = 1;
  9216. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  9217. "x x x x x x x x x x x x x x x i";
  9218. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  9219. "x x x x x x x x o o o o o o o o";
  9220. min_write_delay = 9000;
  9221. max_write_delay = 9000;
  9222. ;
  9223. memory "calibration"
  9224. size = 1;
  9225. read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
  9226. "0 0 0 0 0 0 0 a0 o o o o o o o o";
  9227. ;
  9228. ;
  9229. #------------------------------------------------------------
  9230. # ATtiny43U
  9231. #------------------------------------------------------------
  9232. part
  9233. id = "t43u";
  9234. desc = "ATtiny43u";
  9235. has_debugwire = yes;
  9236. flash_instr = 0xB4, 0x07, 0x17;
  9237. eeprom_instr = 0xBB, 0xFF, 0xBB, 0xEE, 0xBB, 0xCC, 0xB2, 0x0D,
  9238. 0xBC, 0x07, 0xB4, 0x07, 0xBA, 0x0D, 0xBB, 0xBC,
  9239. 0x99, 0xE1, 0xBB, 0xAC;
  9240. stk500_devcode = 0x14;
  9241. ## avr910_devcode = ?;
  9242. ## Try the AT90S2313 devcode:
  9243. avr910_devcode = 0x20;
  9244. signature = 0x1e 0x92 0x0C;
  9245. reset = io;
  9246. chip_erase_delay = 1000;
  9247. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  9248. "x x x x x x x x x x x x x x x x";
  9249. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
  9250. "x x x x x x x x x x x x x x x x";
  9251. timeout = 200;
  9252. stabdelay = 100;
  9253. cmdexedelay = 25;
  9254. synchloops = 32;
  9255. bytedelay = 0;
  9256. pollindex = 3;
  9257. pollvalue = 0x53;
  9258. predelay = 1;
  9259. postdelay = 1;
  9260. pollmethod = 1;
  9261. pp_controlstack = 0x0E, 0x1E, 0x0E, 0x1E, 0x2E, 0x3E, 0x2E, 0x3E, 0x4E, 0x5E,
  9262. 0x4E, 0x5E, 0x6E, 0x7E, 0x6E, 0x7E, 0x06, 0x16, 0x46, 0x56,
  9263. 0x0A, 0x1A, 0x4A, 0x5A, 0x1E, 0x7C, 0x00, 0x01, 0x00, 0x00,
  9264. 0x00, 0x00;
  9265. hventerstabdelay = 100;
  9266. progmodedelay = 0;
  9267. hvspcmdexedelay = 0;
  9268. latchcycles = 5;
  9269. togglevtg = 1;
  9270. poweroffdelay = 20;
  9271. resetdelayms = 1;
  9272. resetdelayus = 0;
  9273. hvleavestabdelay = 15;
  9274. resetdelay = 15;
  9275. chiperasepulsewidth = 0;
  9276. chiperasepolltimeout = 10;
  9277. programfusepulsewidth = 0;
  9278. programfusepolltimeout = 5;
  9279. programlockpulsewidth = 0;
  9280. programlockpolltimeout = 5;
  9281. memory "eeprom"
  9282. size = 64;
  9283. paged = yes;
  9284. page_size = 4;
  9285. num_pages = 16;
  9286. min_write_delay = 4000;
  9287. max_write_delay = 4500;
  9288. readback_p1 = 0xff;
  9289. readback_p2 = 0xff;
  9290. read = "1 0 1 0 0 0 0 0 0 0 0 x x x x x",
  9291. "0 0 a4 a3 a2 a1 a0 o o o o o o o o";
  9292. write = "1 1 0 0 0 0 0 0 0 0 0 x x x x x",
  9293. "0 0 a5 a4 a3 a2 a1 a0 i i i i i i i i";
  9294. loadpage_lo = " 1 1 0 0 0 0 0 1",
  9295. " 0 0 0 0 0 0 0 0",
  9296. " 0 0 0 0 0 0 a1 a0",
  9297. " i i i i i i i i";
  9298. writepage = " 1 1 0 0 0 0 1 0",
  9299. " 0 0 x x x x x x",
  9300. " 0 0 a5 a4 a3 a2 0 0",
  9301. " x x x x x x x x";
  9302. mode = 0x41;
  9303. delay = 5;
  9304. blocksize = 4;
  9305. readsize = 256;
  9306. ;
  9307. memory "flash"
  9308. paged = yes;
  9309. size = 4096;
  9310. page_size = 64;
  9311. num_pages = 64;
  9312. min_write_delay = 4500;
  9313. max_write_delay = 4500;
  9314. readback_p1 = 0xff;
  9315. readback_p2 = 0xff;
  9316. read_lo = " 0 0 1 0 0 0 0 0",
  9317. " 0 0 0 0 0 a10 a9 a8",
  9318. " a7 a6 a5 a4 a3 a2 a1 a0",
  9319. " o o o o o o o o";
  9320. read_hi = " 0 0 1 0 1 0 0 0",
  9321. " 0 0 0 0 0 a10 a9 a8",
  9322. " a7 a6 a5 a4 a3 a2 a1 a0",
  9323. " o o o o o o o o";
  9324. loadpage_lo = " 0 1 0 0 0 0 0 0",
  9325. " 0 0 0 x x x x x",
  9326. " x x x a4 a3 a2 a1 a0",
  9327. " i i i i i i i i";
  9328. loadpage_hi = " 0 1 0 0 1 0 0 0",
  9329. " 0 0 0 x x x x x",
  9330. " x x x a4 a3 a2 a1 a0",
  9331. " i i i i i i i i";
  9332. writepage = " 0 1 0 0 1 1 0 0",
  9333. " 0 0 0 0 0 a10 a9 a8",
  9334. " a7 a6 a5 x x x x x",
  9335. " x x x x x x x x";
  9336. mode = 0x41;
  9337. delay = 10;
  9338. blocksize = 64;
  9339. readsize = 256;
  9340. ;
  9341. memory "signature"
  9342. size = 3;
  9343. read = "0 0 1 1 0 0 0 0 0 0 0 x x x x x",
  9344. "x x x x x x a1 a0 o o o o o o o o";
  9345. ;
  9346. memory "lock"
  9347. size = 1;
  9348. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  9349. "x x x x x x x x 1 1 i i i i i i";
  9350. min_write_delay = 4500;
  9351. max_write_delay = 4500;
  9352. ;
  9353. memory "lfuse"
  9354. size = 1;
  9355. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  9356. "x x x x x x x x i i i i i i i i";
  9357. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  9358. "x x x x x x x x o o o o o o o o";
  9359. min_write_delay = 4500;
  9360. max_write_delay = 4500;
  9361. ;
  9362. memory "hfuse"
  9363. size = 1;
  9364. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  9365. "x x x x x x x x i i i i i i i i";
  9366. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  9367. "x x x x x x x x o o o o o o o o";
  9368. min_write_delay = 4500;
  9369. max_write_delay = 4500;
  9370. ;
  9371. memory "efuse"
  9372. size = 1;
  9373. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  9374. "x x x x x x x x x x x x x x x i";
  9375. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  9376. "x x x x x x x x o o o o o o o o";
  9377. min_write_delay = 4500;
  9378. max_write_delay = 4500;
  9379. ;
  9380. memory "calibration"
  9381. size = 2;
  9382. read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
  9383. "0 0 0 0 0 0 0 a0 o o o o o o o o";
  9384. ;
  9385. ;
  9386. #------------------------------------------------------------
  9387. # ATmega32u4
  9388. #------------------------------------------------------------
  9389. part
  9390. id = "m32u4";
  9391. desc = "ATmega32U4";
  9392. signature = 0x1e 0x95 0x87;
  9393. has_jtag = yes;
  9394. # stk500_devcode = 0xB2;
  9395. # avr910_devcode = 0x43;
  9396. chip_erase_delay = 9000;
  9397. pagel = 0xD7;
  9398. bs2 = 0xA0;
  9399. reset = dedicated;
  9400. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  9401. "x x x x x x x x x x x x x x x x";
  9402. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 0 0 0 0 0",
  9403. "x x x x x x x x x x x x x x x x";
  9404. timeout = 200;
  9405. stabdelay = 100;
  9406. cmdexedelay = 25;
  9407. synchloops = 32;
  9408. bytedelay = 0;
  9409. pollindex = 3;
  9410. pollvalue = 0x53;
  9411. predelay = 1;
  9412. postdelay = 1;
  9413. pollmethod = 1;
  9414. pp_controlstack =
  9415. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  9416. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  9417. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  9418. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  9419. hventerstabdelay = 100;
  9420. progmodedelay = 0;
  9421. latchcycles = 5;
  9422. togglevtg = 1;
  9423. poweroffdelay = 15;
  9424. resetdelayms = 1;
  9425. resetdelayus = 0;
  9426. hvleavestabdelay = 15;
  9427. chiperasepulsewidth = 0;
  9428. chiperasepolltimeout = 10;
  9429. programfusepulsewidth = 0;
  9430. programfusepolltimeout = 5;
  9431. programlockpulsewidth = 0;
  9432. programlockpolltimeout = 5;
  9433. idr = 0x31;
  9434. spmcr = 0x57;
  9435. rampz = 0x3b;
  9436. allowfullpagebitstream = no;
  9437. ocdrev = 3;
  9438. memory "eeprom"
  9439. paged = no; /* leave this "no" */
  9440. page_size = 4; /* for parallel programming */
  9441. size = 1024;
  9442. min_write_delay = 9000;
  9443. max_write_delay = 9000;
  9444. readback_p1 = 0x00;
  9445. readback_p2 = 0x00;
  9446. read = " 1 0 1 0 0 0 0 0",
  9447. " x x x x x a10 a9 a8",
  9448. " a7 a6 a5 a4 a3 a2 a1 a0",
  9449. " o o o o o o o o";
  9450. write = " 1 1 0 0 0 0 0 0",
  9451. " x x x x x a10 a9 a8",
  9452. " a7 a6 a5 a4 a3 a2 a1 a0",
  9453. " i i i i i i i i";
  9454. loadpage_lo = " 1 1 0 0 0 0 0 1",
  9455. " 0 0 0 0 0 0 0 0",
  9456. " 0 0 0 0 0 a2 a1 a0",
  9457. " i i i i i i i i";
  9458. writepage = " 1 1 0 0 0 0 1 0",
  9459. " 0 0 x x x a10 a9 a8",
  9460. " a7 a6 a5 a4 a3 0 0 0",
  9461. " x x x x x x x x";
  9462. mode = 0x41;
  9463. delay = 20;
  9464. blocksize = 4;
  9465. readsize = 256;
  9466. ;
  9467. memory "flash"
  9468. paged = yes;
  9469. size = 32768;
  9470. page_size = 128;
  9471. num_pages = 256;
  9472. min_write_delay = 4500;
  9473. max_write_delay = 4500;
  9474. readback_p1 = 0x00;
  9475. readback_p2 = 0x00;
  9476. read_lo = " 0 0 1 0 0 0 0 0",
  9477. " 0 a14 a13 a12 a11 a10 a9 a8",
  9478. " a7 a6 a5 a4 a3 a2 a1 a0",
  9479. " o o o o o o o o";
  9480. read_hi = " 0 0 1 0 1 0 0 0",
  9481. " 0 a14 a13 a12 a11 a10 a9 a8",
  9482. " a7 a6 a5 a4 a3 a2 a1 a0",
  9483. " o o o o o o o o";
  9484. loadpage_lo = " 0 1 0 0 0 0 0 0",
  9485. " x x x x x x x x",
  9486. " x x a5 a4 a3 a2 a1 a0",
  9487. " i i i i i i i i";
  9488. loadpage_hi = " 0 1 0 0 1 0 0 0",
  9489. " x x x x x x x x",
  9490. " x x a5 a4 a3 a2 a1 a0",
  9491. " i i i i i i i i";
  9492. writepage = " 0 1 0 0 1 1 0 0",
  9493. " a15 a14 a13 a12 a11 a10 a9 a8",
  9494. " a7 a6 x x x x x x",
  9495. " x x x x x x x x";
  9496. mode = 0x41;
  9497. delay = 6;
  9498. blocksize = 128;
  9499. readsize = 256;
  9500. ;
  9501. memory "lfuse"
  9502. size = 1;
  9503. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  9504. "x x x x x x x x i i i i i i i i";
  9505. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  9506. "x x x x x x x x o o o o o o o o";
  9507. min_write_delay = 9000;
  9508. max_write_delay = 9000;
  9509. ;
  9510. memory "hfuse"
  9511. size = 1;
  9512. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  9513. "x x x x x x x x i i i i i i i i";
  9514. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  9515. "x x x x x x x x o o o o o o o o";
  9516. min_write_delay = 9000;
  9517. max_write_delay = 9000;
  9518. ;
  9519. memory "efuse"
  9520. size = 1;
  9521. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  9522. "x x x x x x x x x x x x i i i i";
  9523. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  9524. "x x x x x x x x o o o o o o o o";
  9525. min_write_delay = 9000;
  9526. max_write_delay = 9000;
  9527. ;
  9528. memory "lock"
  9529. size = 1;
  9530. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  9531. "x x x x x x x x x x o o o o o o";
  9532. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  9533. "x x x x x x x x 1 1 i i i i i i";
  9534. min_write_delay = 9000;
  9535. max_write_delay = 9000;
  9536. ;
  9537. memory "calibration"
  9538. size = 1;
  9539. read = "0 0 1 1 1 0 0 0 x x x x x x x x",
  9540. "0 0 0 0 0 0 0 0 o o o o o o o o";
  9541. ;
  9542. memory "signature"
  9543. size = 3;
  9544. read = "0 0 1 1 0 0 0 0 x x x x x x x x",
  9545. "x x x x x x a1 a0 o o o o o o o o";
  9546. ;
  9547. ;
  9548. #------------------------------------------------------------
  9549. # AT90USB646
  9550. #------------------------------------------------------------
  9551. part
  9552. id = "usb646";
  9553. desc = "AT90USB646";
  9554. signature = 0x1e 0x96 0x82;
  9555. has_jtag = yes;
  9556. # stk500_devcode = 0xB2;
  9557. # avr910_devcode = 0x43;
  9558. chip_erase_delay = 9000;
  9559. pagel = 0xD7;
  9560. bs2 = 0xA0;
  9561. reset = dedicated;
  9562. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  9563. "x x x x x x x x x x x x x x x x";
  9564. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 0 0 0 0 0",
  9565. "x x x x x x x x x x x x x x x x";
  9566. timeout = 200;
  9567. stabdelay = 100;
  9568. cmdexedelay = 25;
  9569. synchloops = 32;
  9570. bytedelay = 0;
  9571. pollindex = 3;
  9572. pollvalue = 0x53;
  9573. predelay = 1;
  9574. postdelay = 1;
  9575. pollmethod = 1;
  9576. pp_controlstack =
  9577. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  9578. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  9579. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  9580. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  9581. hventerstabdelay = 100;
  9582. progmodedelay = 0;
  9583. latchcycles = 5;
  9584. togglevtg = 1;
  9585. poweroffdelay = 15;
  9586. resetdelayms = 1;
  9587. resetdelayus = 0;
  9588. hvleavestabdelay = 15;
  9589. chiperasepulsewidth = 0;
  9590. chiperasepolltimeout = 10;
  9591. programfusepulsewidth = 0;
  9592. programfusepolltimeout = 5;
  9593. programlockpulsewidth = 0;
  9594. programlockpolltimeout = 5;
  9595. idr = 0x31;
  9596. spmcr = 0x57;
  9597. rampz = 0x3b;
  9598. allowfullpagebitstream = no;
  9599. ocdrev = 3;
  9600. memory "eeprom"
  9601. paged = no; /* leave this "no" */
  9602. page_size = 8; /* for parallel programming */
  9603. size = 2048;
  9604. min_write_delay = 9000;
  9605. max_write_delay = 9000;
  9606. readback_p1 = 0x00;
  9607. readback_p2 = 0x00;
  9608. read = " 1 0 1 0 0 0 0 0",
  9609. " x x x x x a10 a9 a8",
  9610. " a7 a6 a5 a4 a3 a2 a1 a0",
  9611. " o o o o o o o o";
  9612. write = " 1 1 0 0 0 0 0 0",
  9613. " x x x x x a10 a9 a8",
  9614. " a7 a6 a5 a4 a3 a2 a1 a0",
  9615. " i i i i i i i i";
  9616. loadpage_lo = " 1 1 0 0 0 0 0 1",
  9617. " 0 0 0 0 0 0 0 0",
  9618. " 0 0 0 0 0 a2 a1 a0",
  9619. " i i i i i i i i";
  9620. writepage = " 1 1 0 0 0 0 1 0",
  9621. " 0 0 x x x a10 a9 a8",
  9622. " a7 a6 a5 a4 a3 0 0 0",
  9623. " x x x x x x x x";
  9624. mode = 0x41;
  9625. delay = 10;
  9626. blocksize = 8;
  9627. readsize = 256;
  9628. ;
  9629. memory "flash"
  9630. paged = yes;
  9631. size = 65536;
  9632. page_size = 256;
  9633. num_pages = 256;
  9634. min_write_delay = 4500;
  9635. max_write_delay = 4500;
  9636. readback_p1 = 0x00;
  9637. readback_p2 = 0x00;
  9638. read_lo = " 0 0 1 0 0 0 0 0",
  9639. " 0 a14 a13 a12 a11 a10 a9 a8",
  9640. " a7 a6 a5 a4 a3 a2 a1 a0",
  9641. " o o o o o o o o";
  9642. read_hi = " 0 0 1 0 1 0 0 0",
  9643. " 0 a14 a13 a12 a11 a10 a9 a8",
  9644. " a7 a6 a5 a4 a3 a2 a1 a0",
  9645. " o o o o o o o o";
  9646. loadpage_lo = " 0 1 0 0 0 0 0 0",
  9647. " x x x x x x x x",
  9648. " x a6 a5 a4 a3 a2 a1 a0",
  9649. " i i i i i i i i";
  9650. loadpage_hi = " 0 1 0 0 1 0 0 0",
  9651. " x x x x x x x x",
  9652. " x a6 a5 a4 a3 a2 a1 a0",
  9653. " i i i i i i i i";
  9654. writepage = " 0 1 0 0 1 1 0 0",
  9655. " 0 a14 a13 a12 a11 a10 a9 a8",
  9656. " a7 x x x x x x x",
  9657. " x x x x x x x x";
  9658. mode = 0x41;
  9659. delay = 6;
  9660. blocksize = 256;
  9661. readsize = 256;
  9662. ;
  9663. memory "lfuse"
  9664. size = 1;
  9665. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  9666. "x x x x x x x x i i i i i i i i";
  9667. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  9668. "x x x x x x x x o o o o o o o o";
  9669. min_write_delay = 9000;
  9670. max_write_delay = 9000;
  9671. ;
  9672. memory "hfuse"
  9673. size = 1;
  9674. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  9675. "x x x x x x x x i i i i i i i i";
  9676. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  9677. "x x x x x x x x o o o o o o o o";
  9678. min_write_delay = 9000;
  9679. max_write_delay = 9000;
  9680. ;
  9681. memory "efuse"
  9682. size = 1;
  9683. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  9684. "x x x x x x x x x x x x i i i i";
  9685. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  9686. "x x x x x x x x o o o o o o o o";
  9687. min_write_delay = 9000;
  9688. max_write_delay = 9000;
  9689. ;
  9690. memory "lock"
  9691. size = 1;
  9692. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  9693. "x x x x x x x x x x o o o o o o";
  9694. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  9695. "x x x x x x x x 1 1 i i i i i i";
  9696. min_write_delay = 9000;
  9697. max_write_delay = 9000;
  9698. ;
  9699. memory "calibration"
  9700. size = 1;
  9701. read = "0 0 1 1 1 0 0 0 x x x x x x x x",
  9702. "0 0 0 0 0 0 0 0 o o o o o o o o";
  9703. ;
  9704. memory "signature"
  9705. size = 3;
  9706. read = "0 0 1 1 0 0 0 0 x x x x x x x x",
  9707. "x x x x x x a1 a0 o o o o o o o o";
  9708. ;
  9709. ;
  9710. #------------------------------------------------------------
  9711. # AT90USB647
  9712. #------------------------------------------------------------
  9713. # identical to AT90USB646
  9714. part parent "usb646"
  9715. id = "usb647";
  9716. desc = "AT90USB647";
  9717. signature = 0x1e 0x96 0x82;
  9718. ocdrev = 3;
  9719. ;
  9720. #------------------------------------------------------------
  9721. # AT90USB1286
  9722. #------------------------------------------------------------
  9723. part
  9724. id = "usb1286";
  9725. desc = "AT90USB1286";
  9726. signature = 0x1e 0x97 0x82;
  9727. has_jtag = yes;
  9728. # stk500_devcode = 0xB2;
  9729. # avr910_devcode = 0x43;
  9730. chip_erase_delay = 9000;
  9731. pagel = 0xD7;
  9732. bs2 = 0xA0;
  9733. reset = dedicated;
  9734. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  9735. "x x x x x x x x x x x x x x x x";
  9736. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 0 0 0 0 0",
  9737. "x x x x x x x x x x x x x x x x";
  9738. timeout = 200;
  9739. stabdelay = 100;
  9740. cmdexedelay = 25;
  9741. synchloops = 32;
  9742. bytedelay = 0;
  9743. pollindex = 3;
  9744. pollvalue = 0x53;
  9745. predelay = 1;
  9746. postdelay = 1;
  9747. pollmethod = 1;
  9748. pp_controlstack =
  9749. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  9750. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  9751. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  9752. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  9753. hventerstabdelay = 100;
  9754. progmodedelay = 0;
  9755. latchcycles = 5;
  9756. togglevtg = 1;
  9757. poweroffdelay = 15;
  9758. resetdelayms = 1;
  9759. resetdelayus = 0;
  9760. hvleavestabdelay = 15;
  9761. chiperasepulsewidth = 0;
  9762. chiperasepolltimeout = 10;
  9763. programfusepulsewidth = 0;
  9764. programfusepolltimeout = 5;
  9765. programlockpulsewidth = 0;
  9766. programlockpolltimeout = 5;
  9767. idr = 0x31;
  9768. spmcr = 0x57;
  9769. rampz = 0x3b;
  9770. allowfullpagebitstream = no;
  9771. ocdrev = 3;
  9772. memory "eeprom"
  9773. paged = no; /* leave this "no" */
  9774. page_size = 8; /* for parallel programming */
  9775. size = 4096;
  9776. min_write_delay = 9000;
  9777. max_write_delay = 9000;
  9778. readback_p1 = 0x00;
  9779. readback_p2 = 0x00;
  9780. read = " 1 0 1 0 0 0 0 0",
  9781. " x x x x a11 a10 a9 a8",
  9782. " a7 a6 a5 a4 a3 a2 a1 a0",
  9783. " o o o o o o o o";
  9784. write = " 1 1 0 0 0 0 0 0",
  9785. " x x x x a11 a10 a9 a8",
  9786. " a7 a6 a5 a4 a3 a2 a1 a0",
  9787. " i i i i i i i i";
  9788. loadpage_lo = " 1 1 0 0 0 0 0 1",
  9789. " 0 0 0 0 0 0 0 0",
  9790. " 0 0 0 0 0 a2 a1 a0",
  9791. " i i i i i i i i";
  9792. writepage = " 1 1 0 0 0 0 1 0",
  9793. " 0 0 x x x a10 a9 a8",
  9794. " a7 a6 a5 a4 a3 0 0 0",
  9795. " x x x x x x x x";
  9796. mode = 0x41;
  9797. delay = 10;
  9798. blocksize = 8;
  9799. readsize = 256;
  9800. ;
  9801. memory "flash"
  9802. paged = yes;
  9803. size = 131072;
  9804. page_size = 256;
  9805. num_pages = 512;
  9806. min_write_delay = 4500;
  9807. max_write_delay = 4500;
  9808. readback_p1 = 0x00;
  9809. readback_p2 = 0x00;
  9810. read_lo = " 0 0 1 0 0 0 0 0",
  9811. "a15 a14 a13 a12 a11 a10 a9 a8",
  9812. " a7 a6 a5 a4 a3 a2 a1 a0",
  9813. " o o o o o o o o";
  9814. read_hi = " 0 0 1 0 1 0 0 0",
  9815. "a15 a14 a13 a12 a11 a10 a9 a8",
  9816. " a7 a6 a5 a4 a3 a2 a1 a0",
  9817. " o o o o o o o o";
  9818. loadpage_lo = " 0 1 0 0 0 0 0 0",
  9819. " x x x x x x x x",
  9820. " x a6 a5 a4 a3 a2 a1 a0",
  9821. " i i i i i i i i";
  9822. loadpage_hi = " 0 1 0 0 1 0 0 0",
  9823. " x x x x x x x x",
  9824. " x a6 a5 a4 a3 a2 a1 a0",
  9825. " i i i i i i i i";
  9826. writepage = " 0 1 0 0 1 1 0 0",
  9827. "a15 a14 a13 a12 a11 a10 a9 a8",
  9828. " a7 x x x x x x x",
  9829. " x x x x x x x x";
  9830. mode = 0x41;
  9831. delay = 6;
  9832. blocksize = 256;
  9833. readsize = 256;
  9834. ;
  9835. memory "lfuse"
  9836. size = 1;
  9837. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  9838. "x x x x x x x x i i i i i i i i";
  9839. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  9840. "x x x x x x x x o o o o o o o o";
  9841. min_write_delay = 9000;
  9842. max_write_delay = 9000;
  9843. ;
  9844. memory "hfuse"
  9845. size = 1;
  9846. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  9847. "x x x x x x x x i i i i i i i i";
  9848. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  9849. "x x x x x x x x o o o o o o o o";
  9850. min_write_delay = 9000;
  9851. max_write_delay = 9000;
  9852. ;
  9853. memory "efuse"
  9854. size = 1;
  9855. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  9856. "x x x x x x x x x x x x i i i i";
  9857. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  9858. "x x x x x x x x o o o o o o o o";
  9859. min_write_delay = 9000;
  9860. max_write_delay = 9000;
  9861. ;
  9862. memory "lock"
  9863. size = 1;
  9864. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  9865. "x x x x x x x x x x o o o o o o";
  9866. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  9867. "x x x x x x x x 1 1 i i i i i i";
  9868. min_write_delay = 9000;
  9869. max_write_delay = 9000;
  9870. ;
  9871. memory "calibration"
  9872. size = 1;
  9873. read = "0 0 1 1 1 0 0 0 x x x x x x x x",
  9874. "0 0 0 0 0 0 0 0 o o o o o o o o";
  9875. ;
  9876. memory "signature"
  9877. size = 3;
  9878. read = "0 0 1 1 0 0 0 0 x x x x x x x x",
  9879. "x x x x x x a1 a0 o o o o o o o o";
  9880. ;
  9881. ;
  9882. #------------------------------------------------------------
  9883. # AT90USB1287
  9884. #------------------------------------------------------------
  9885. # identical to AT90USB1286
  9886. part parent "usb1286"
  9887. id = "usb1287";
  9888. desc = "AT90USB1287";
  9889. signature = 0x1e 0x97 0x82;
  9890. ocdrev = 3;
  9891. ;
  9892. #------------------------------------------------------------
  9893. # AT90USB162
  9894. #------------------------------------------------------------
  9895. part
  9896. id = "usb162";
  9897. desc = "AT90USB162";
  9898. has_jtag = no;
  9899. has_debugwire = yes;
  9900. signature = 0x1e 0x94 0x82;
  9901. chip_erase_delay = 9000;
  9902. reset = io;
  9903. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  9904. "x x x x x x x x x x x x x x x x";
  9905. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
  9906. "x x x x x x x x x x x x x x x x";
  9907. pagel = 0xD7;
  9908. bs2 = 0xC6;
  9909. timeout = 200;
  9910. stabdelay = 100;
  9911. cmdexedelay = 25;
  9912. synchloops = 32;
  9913. bytedelay = 0;
  9914. pollindex = 3;
  9915. pollvalue = 0x53;
  9916. predelay = 1;
  9917. postdelay = 1;
  9918. pollmethod = 1;
  9919. pp_controlstack =
  9920. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  9921. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  9922. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  9923. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  9924. hventerstabdelay = 100;
  9925. progmodedelay = 0;
  9926. latchcycles = 5;
  9927. togglevtg = 1;
  9928. poweroffdelay = 15;
  9929. resetdelayms = 1;
  9930. resetdelayus = 0;
  9931. hvleavestabdelay = 15;
  9932. chiperasepulsewidth = 0;
  9933. chiperasepolltimeout = 10;
  9934. programfusepulsewidth = 0;
  9935. programfusepolltimeout = 5;
  9936. programlockpulsewidth = 0;
  9937. programlockpolltimeout = 5;
  9938. ocdrev = 1;
  9939. memory "eeprom"
  9940. paged = no; /* leave this "no" */
  9941. page_size = 4; /* for parallel programming */
  9942. size = 512;
  9943. num_pages = 128;
  9944. min_write_delay = 9000;
  9945. max_write_delay = 9000;
  9946. readback_p1 = 0x00;
  9947. readback_p2 = 0x00;
  9948. read = " 1 0 1 0 0 0 0 0",
  9949. " 0 0 0 0 a11 a10 a9 a8",
  9950. " a7 a6 a5 a4 a3 a2 a1 a0",
  9951. " o o o o o o o o";
  9952. write = " 1 1 0 0 0 0 0 0",
  9953. " 0 0 0 0 a11 a10 a9 a8",
  9954. " a7 a6 a5 a4 a3 a2 a1 a0",
  9955. " i i i i i i i i";
  9956. loadpage_lo = " 1 1 0 0 0 0 0 1",
  9957. " 0 0 0 0 0 0 0 0",
  9958. " 0 0 0 0 0 0 a1 a0",
  9959. " i i i i i i i i";
  9960. writepage = " 1 1 0 0 0 0 1 0",
  9961. " 0 0 0 0 a11 a10 a9 a8",
  9962. " a7 a6 a5 a4 a3 a2 0 0",
  9963. " x x x x x x x x";
  9964. mode = 0x41;
  9965. delay = 20;
  9966. blocksize = 4;
  9967. readsize = 256;
  9968. ;
  9969. memory "flash"
  9970. paged = yes;
  9971. size = 16384;
  9972. page_size = 128;
  9973. num_pages = 128;
  9974. min_write_delay = 4500;
  9975. max_write_delay = 4500;
  9976. readback_p1 = 0x00;
  9977. readback_p2 = 0x00;
  9978. read_lo = " 0 0 1 0 0 0 0 0",
  9979. "a15 a14 a13 a12 a11 a10 a9 a8",
  9980. " a7 a6 a5 a4 a3 a2 a1 a0",
  9981. " o o o o o o o o";
  9982. read_hi = " 0 0 1 0 1 0 0 0",
  9983. "a15 a14 a13 a12 a11 a10 a9 a8",
  9984. " a7 a6 a5 a4 a3 a2 a1 a0",
  9985. " o o o o o o o o";
  9986. loadpage_lo = " 0 1 0 0 0 0 0 0",
  9987. " x x x x x x x x",
  9988. " x x a5 a4 a3 a2 a1 a0",
  9989. " i i i i i i i i";
  9990. loadpage_hi = " 0 1 0 0 1 0 0 0",
  9991. " x x x x x x x x",
  9992. " x x a5 a4 a3 a2 a1 a0",
  9993. " i i i i i i i i";
  9994. writepage = " 0 1 0 0 1 1 0 0",
  9995. "a15 a14 a13 a12 a11 a10 a9 a8",
  9996. " a7 a6 x x x x x x",
  9997. " x x x x x x x x";
  9998. mode = 0x41;
  9999. delay = 6;
  10000. blocksize = 128;
  10001. readsize = 256;
  10002. ;
  10003. memory "lfuse"
  10004. size = 1;
  10005. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  10006. "x x x x x x x x i i i i i i i i";
  10007. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  10008. "x x x x x x x x o o o o o o o o";
  10009. min_write_delay = 9000;
  10010. max_write_delay = 9000;
  10011. ;
  10012. memory "hfuse"
  10013. size = 1;
  10014. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  10015. "x x x x x x x x i i i i i i i i";
  10016. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  10017. "x x x x x x x x o o o o o o o o";
  10018. min_write_delay = 9000;
  10019. max_write_delay = 9000;
  10020. ;
  10021. memory "efuse"
  10022. size = 1;
  10023. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  10024. "x x x x x x x x i i i i i i i i";
  10025. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  10026. "x x x x x x x x o o o o o o o o";
  10027. min_write_delay = 9000;
  10028. max_write_delay = 9000;
  10029. ;
  10030. memory "lock"
  10031. size = 1;
  10032. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  10033. "x x x x x x x x x x o o o o o o";
  10034. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  10035. "x x x x x x x x 1 1 i i i i i i";
  10036. min_write_delay = 9000;
  10037. max_write_delay = 9000;
  10038. ;
  10039. memory "calibration"
  10040. size = 1;
  10041. read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
  10042. "0 0 0 0 0 0 0 0 o o o o o o o o";
  10043. ;
  10044. memory "signature"
  10045. size = 3;
  10046. read = "0 0 1 1 0 0 0 0 0 0 0 x x x x x",
  10047. "x x x x x x a1 a0 o o o o o o o o";
  10048. ;
  10049. ;
  10050. #------------------------------------------------------------
  10051. # AT90USB82
  10052. #------------------------------------------------------------
  10053. # Changes against AT90USB162 (beside IDs)
  10054. # memory "flash"
  10055. # size = 8192;
  10056. # num_pages = 64;
  10057. part
  10058. id = "usb82";
  10059. desc = "AT90USB82";
  10060. has_jtag = no;
  10061. has_debugwire = yes;
  10062. signature = 0x1e 0x93 0x82;
  10063. chip_erase_delay = 9000;
  10064. reset = io;
  10065. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  10066. "x x x x x x x x x x x x x x x x";
  10067. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
  10068. "x x x x x x x x x x x x x x x x";
  10069. pagel = 0xD7;
  10070. bs2 = 0xC6;
  10071. timeout = 200;
  10072. stabdelay = 100;
  10073. cmdexedelay = 25;
  10074. synchloops = 32;
  10075. bytedelay = 0;
  10076. pollindex = 3;
  10077. pollvalue = 0x53;
  10078. predelay = 1;
  10079. postdelay = 1;
  10080. pollmethod = 1;
  10081. pp_controlstack =
  10082. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  10083. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  10084. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  10085. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  10086. hventerstabdelay = 100;
  10087. progmodedelay = 0;
  10088. latchcycles = 5;
  10089. togglevtg = 1;
  10090. poweroffdelay = 15;
  10091. resetdelayms = 1;
  10092. resetdelayus = 0;
  10093. hvleavestabdelay = 15;
  10094. chiperasepulsewidth = 0;
  10095. chiperasepolltimeout = 10;
  10096. programfusepulsewidth = 0;
  10097. programfusepolltimeout = 5;
  10098. programlockpulsewidth = 0;
  10099. programlockpolltimeout = 5;
  10100. ocdrev = 1;
  10101. memory "eeprom"
  10102. paged = no; /* leave this "no" */
  10103. page_size = 4; /* for parallel programming */
  10104. size = 512;
  10105. num_pages = 128;
  10106. min_write_delay = 9000;
  10107. max_write_delay = 9000;
  10108. readback_p1 = 0x00;
  10109. readback_p2 = 0x00;
  10110. read = " 1 0 1 0 0 0 0 0",
  10111. " 0 0 0 0 a11 a10 a9 a8",
  10112. " a7 a6 a5 a4 a3 a2 a1 a0",
  10113. " o o o o o o o o";
  10114. write = " 1 1 0 0 0 0 0 0",
  10115. " 0 0 0 0 a11 a10 a9 a8",
  10116. " a7 a6 a5 a4 a3 a2 a1 a0",
  10117. " i i i i i i i i";
  10118. loadpage_lo = " 1 1 0 0 0 0 0 1",
  10119. " 0 0 0 0 0 0 0 0",
  10120. " 0 0 0 0 0 0 a1 a0",
  10121. " i i i i i i i i";
  10122. writepage = " 1 1 0 0 0 0 1 0",
  10123. " 0 0 0 0 a11 a10 a9 a8",
  10124. " a7 a6 a5 a4 a3 a2 0 0",
  10125. " x x x x x x x x";
  10126. mode = 0x41;
  10127. delay = 20;
  10128. blocksize = 4;
  10129. readsize = 256;
  10130. ;
  10131. memory "flash"
  10132. paged = yes;
  10133. size = 8192;
  10134. page_size = 128;
  10135. num_pages = 64;
  10136. min_write_delay = 4500;
  10137. max_write_delay = 4500;
  10138. readback_p1 = 0x00;
  10139. readback_p2 = 0x00;
  10140. read_lo = " 0 0 1 0 0 0 0 0",
  10141. "a15 a14 a13 a12 a11 a10 a9 a8",
  10142. " a7 a6 a5 a4 a3 a2 a1 a0",
  10143. " o o o o o o o o";
  10144. read_hi = " 0 0 1 0 1 0 0 0",
  10145. "a15 a14 a13 a12 a11 a10 a9 a8",
  10146. " a7 a6 a5 a4 a3 a2 a1 a0",
  10147. " o o o o o o o o";
  10148. loadpage_lo = " 0 1 0 0 0 0 0 0",
  10149. " x x x x x x x x",
  10150. " x x a5 a4 a3 a2 a1 a0",
  10151. " i i i i i i i i";
  10152. loadpage_hi = " 0 1 0 0 1 0 0 0",
  10153. " x x x x x x x x",
  10154. " x x a5 a4 a3 a2 a1 a0",
  10155. " i i i i i i i i";
  10156. writepage = " 0 1 0 0 1 1 0 0",
  10157. "a15 a14 a13 a12 a11 a10 a9 a8",
  10158. " a7 a6 x x x x x x",
  10159. " x x x x x x x x";
  10160. mode = 0x41;
  10161. delay = 6;
  10162. blocksize = 128;
  10163. readsize = 256;
  10164. ;
  10165. memory "lfuse"
  10166. size = 1;
  10167. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  10168. "x x x x x x x x i i i i i i i i";
  10169. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  10170. "x x x x x x x x o o o o o o o o";
  10171. min_write_delay = 9000;
  10172. max_write_delay = 9000;
  10173. ;
  10174. memory "hfuse"
  10175. size = 1;
  10176. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  10177. "x x x x x x x x i i i i i i i i";
  10178. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  10179. "x x x x x x x x o o o o o o o o";
  10180. min_write_delay = 9000;
  10181. max_write_delay = 9000;
  10182. ;
  10183. memory "efuse"
  10184. size = 1;
  10185. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  10186. "x x x x x x x x i i i i i i i i";
  10187. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  10188. "x x x x x x x x o o o o o o o o";
  10189. min_write_delay = 9000;
  10190. max_write_delay = 9000;
  10191. ;
  10192. memory "lock"
  10193. size = 1;
  10194. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  10195. "x x x x x x x x x x o o o o o o";
  10196. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  10197. "x x x x x x x x 1 1 i i i i i i";
  10198. min_write_delay = 9000;
  10199. max_write_delay = 9000;
  10200. ;
  10201. memory "calibration"
  10202. size = 1;
  10203. read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
  10204. "0 0 0 0 0 0 0 0 o o o o o o o o";
  10205. ;
  10206. memory "signature"
  10207. size = 3;
  10208. read = "0 0 1 1 0 0 0 0 0 0 0 x x x x x",
  10209. "x x x x x x a1 a0 o o o o o o o o";
  10210. ;
  10211. ;
  10212. #------------------------------------------------------------
  10213. # ATmega32U2
  10214. #------------------------------------------------------------
  10215. # Changes against AT90USB162 (beside IDs)
  10216. # memory "flash"
  10217. # size = 32768;
  10218. # num_pages = 256;
  10219. # memory "eeprom"
  10220. # size = 1024;
  10221. # num_pages = 256;
  10222. part
  10223. id = "m32u2";
  10224. desc = "ATmega32U2";
  10225. has_jtag = no;
  10226. has_debugwire = yes;
  10227. signature = 0x1e 0x95 0x8a;
  10228. chip_erase_delay = 9000;
  10229. reset = io;
  10230. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  10231. "x x x x x x x x x x x x x x x x";
  10232. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
  10233. "x x x x x x x x x x x x x x x x";
  10234. pagel = 0xD7;
  10235. bs2 = 0xC6;
  10236. timeout = 200;
  10237. stabdelay = 100;
  10238. cmdexedelay = 25;
  10239. synchloops = 32;
  10240. bytedelay = 0;
  10241. pollindex = 3;
  10242. pollvalue = 0x53;
  10243. predelay = 1;
  10244. postdelay = 1;
  10245. pollmethod = 1;
  10246. pp_controlstack =
  10247. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  10248. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  10249. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  10250. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  10251. hventerstabdelay = 100;
  10252. progmodedelay = 0;
  10253. latchcycles = 5;
  10254. togglevtg = 1;
  10255. poweroffdelay = 15;
  10256. resetdelayms = 1;
  10257. resetdelayus = 0;
  10258. hvleavestabdelay = 15;
  10259. chiperasepulsewidth = 0;
  10260. chiperasepolltimeout = 10;
  10261. programfusepulsewidth = 0;
  10262. programfusepolltimeout = 5;
  10263. programlockpulsewidth = 0;
  10264. programlockpolltimeout = 5;
  10265. ocdrev = 1;
  10266. memory "eeprom"
  10267. paged = no; /* leave this "no" */
  10268. page_size = 4; /* for parallel programming */
  10269. size = 1024;
  10270. num_pages = 256;
  10271. min_write_delay = 9000;
  10272. max_write_delay = 9000;
  10273. readback_p1 = 0x00;
  10274. readback_p2 = 0x00;
  10275. read = " 1 0 1 0 0 0 0 0",
  10276. " 0 0 0 0 a11 a10 a9 a8",
  10277. " a7 a6 a5 a4 a3 a2 a1 a0",
  10278. " o o o o o o o o";
  10279. write = " 1 1 0 0 0 0 0 0",
  10280. " 0 0 0 0 a11 a10 a9 a8",
  10281. " a7 a6 a5 a4 a3 a2 a1 a0",
  10282. " i i i i i i i i";
  10283. loadpage_lo = " 1 1 0 0 0 0 0 1",
  10284. " 0 0 0 0 0 0 0 0",
  10285. " 0 0 0 0 0 0 a1 a0",
  10286. " i i i i i i i i";
  10287. writepage = " 1 1 0 0 0 0 1 0",
  10288. " 0 0 0 0 a11 a10 a9 a8",
  10289. " a7 a6 a5 a4 a3 a2 0 0",
  10290. " x x x x x x x x";
  10291. mode = 0x41;
  10292. delay = 20;
  10293. blocksize = 4;
  10294. readsize = 256;
  10295. ;
  10296. memory "flash"
  10297. paged = yes;
  10298. size = 32768;
  10299. page_size = 128;
  10300. num_pages = 256;
  10301. min_write_delay = 4500;
  10302. max_write_delay = 4500;
  10303. readback_p1 = 0x00;
  10304. readback_p2 = 0x00;
  10305. read_lo = " 0 0 1 0 0 0 0 0",
  10306. "a15 a14 a13 a12 a11 a10 a9 a8",
  10307. " a7 a6 a5 a4 a3 a2 a1 a0",
  10308. " o o o o o o o o";
  10309. read_hi = " 0 0 1 0 1 0 0 0",
  10310. "a15 a14 a13 a12 a11 a10 a9 a8",
  10311. " a7 a6 a5 a4 a3 a2 a1 a0",
  10312. " o o o o o o o o";
  10313. loadpage_lo = " 0 1 0 0 0 0 0 0",
  10314. " x x x x x x x x",
  10315. " x x a5 a4 a3 a2 a1 a0",
  10316. " i i i i i i i i";
  10317. loadpage_hi = " 0 1 0 0 1 0 0 0",
  10318. " x x x x x x x x",
  10319. " x x a5 a4 a3 a2 a1 a0",
  10320. " i i i i i i i i";
  10321. writepage = " 0 1 0 0 1 1 0 0",
  10322. "a15 a14 a13 a12 a11 a10 a9 a8",
  10323. " a7 a6 x x x x x x",
  10324. " x x x x x x x x";
  10325. mode = 0x41;
  10326. delay = 6;
  10327. blocksize = 128;
  10328. readsize = 256;
  10329. ;
  10330. memory "lfuse"
  10331. size = 1;
  10332. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  10333. "x x x x x x x x i i i i i i i i";
  10334. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  10335. "x x x x x x x x o o o o o o o o";
  10336. min_write_delay = 9000;
  10337. max_write_delay = 9000;
  10338. ;
  10339. memory "hfuse"
  10340. size = 1;
  10341. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  10342. "x x x x x x x x i i i i i i i i";
  10343. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  10344. "x x x x x x x x o o o o o o o o";
  10345. min_write_delay = 9000;
  10346. max_write_delay = 9000;
  10347. ;
  10348. memory "efuse"
  10349. size = 1;
  10350. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  10351. "x x x x x x x x i i i i i i i i";
  10352. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  10353. "x x x x x x x x o o o o o o o o";
  10354. min_write_delay = 9000;
  10355. max_write_delay = 9000;
  10356. ;
  10357. memory "lock"
  10358. size = 1;
  10359. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  10360. "x x x x x x x x x x o o o o o o";
  10361. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  10362. "x x x x x x x x 1 1 i i i i i i";
  10363. min_write_delay = 9000;
  10364. max_write_delay = 9000;
  10365. ;
  10366. memory "calibration"
  10367. size = 1;
  10368. read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
  10369. "0 0 0 0 0 0 0 0 o o o o o o o o";
  10370. ;
  10371. memory "signature"
  10372. size = 3;
  10373. read = "0 0 1 1 0 0 0 0 0 0 0 x x x x x",
  10374. "x x x x x x a1 a0 o o o o o o o o";
  10375. ;
  10376. ;
  10377. #------------------------------------------------------------
  10378. # ATmega16U2
  10379. #------------------------------------------------------------
  10380. # Changes against ATmega32U2 (beside IDs)
  10381. # memory "flash"
  10382. # size = 16384;
  10383. # num_pages = 128;
  10384. # memory "eeprom"
  10385. # size = 512;
  10386. # num_pages = 128;
  10387. part
  10388. id = "m16u2";
  10389. desc = "ATmega16U2";
  10390. has_jtag = no;
  10391. has_debugwire = yes;
  10392. signature = 0x1e 0x94 0x89;
  10393. chip_erase_delay = 9000;
  10394. reset = io;
  10395. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  10396. "x x x x x x x x x x x x x x x x";
  10397. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
  10398. "x x x x x x x x x x x x x x x x";
  10399. pagel = 0xD7;
  10400. bs2 = 0xC6;
  10401. timeout = 200;
  10402. stabdelay = 100;
  10403. cmdexedelay = 25;
  10404. synchloops = 32;
  10405. bytedelay = 0;
  10406. pollindex = 3;
  10407. pollvalue = 0x53;
  10408. predelay = 1;
  10409. postdelay = 1;
  10410. pollmethod = 1;
  10411. pp_controlstack =
  10412. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  10413. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  10414. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  10415. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  10416. hventerstabdelay = 100;
  10417. progmodedelay = 0;
  10418. latchcycles = 5;
  10419. togglevtg = 1;
  10420. poweroffdelay = 15;
  10421. resetdelayms = 1;
  10422. resetdelayus = 0;
  10423. hvleavestabdelay = 15;
  10424. chiperasepulsewidth = 0;
  10425. chiperasepolltimeout = 10;
  10426. programfusepulsewidth = 0;
  10427. programfusepolltimeout = 5;
  10428. programlockpulsewidth = 0;
  10429. programlockpolltimeout = 5;
  10430. ocdrev = 1;
  10431. memory "eeprom"
  10432. paged = no; /* leave this "no" */
  10433. page_size = 4; /* for parallel programming */
  10434. size = 512;
  10435. num_pages = 128;
  10436. min_write_delay = 9000;
  10437. max_write_delay = 9000;
  10438. readback_p1 = 0x00;
  10439. readback_p2 = 0x00;
  10440. read = " 1 0 1 0 0 0 0 0",
  10441. " 0 0 0 0 a11 a10 a9 a8",
  10442. " a7 a6 a5 a4 a3 a2 a1 a0",
  10443. " o o o o o o o o";
  10444. write = " 1 1 0 0 0 0 0 0",
  10445. " 0 0 0 0 a11 a10 a9 a8",
  10446. " a7 a6 a5 a4 a3 a2 a1 a0",
  10447. " i i i i i i i i";
  10448. loadpage_lo = " 1 1 0 0 0 0 0 1",
  10449. " 0 0 0 0 0 0 0 0",
  10450. " 0 0 0 0 0 0 a1 a0",
  10451. " i i i i i i i i";
  10452. writepage = " 1 1 0 0 0 0 1 0",
  10453. " 0 0 0 0 a11 a10 a9 a8",
  10454. " a7 a6 a5 a4 a3 a2 0 0",
  10455. " x x x x x x x x";
  10456. mode = 0x41;
  10457. delay = 20;
  10458. blocksize = 4;
  10459. readsize = 256;
  10460. ;
  10461. memory "flash"
  10462. paged = yes;
  10463. size = 16384;
  10464. page_size = 128;
  10465. num_pages = 128;
  10466. min_write_delay = 4500;
  10467. max_write_delay = 4500;
  10468. readback_p1 = 0x00;
  10469. readback_p2 = 0x00;
  10470. read_lo = " 0 0 1 0 0 0 0 0",
  10471. "a15 a14 a13 a12 a11 a10 a9 a8",
  10472. " a7 a6 a5 a4 a3 a2 a1 a0",
  10473. " o o o o o o o o";
  10474. read_hi = " 0 0 1 0 1 0 0 0",
  10475. "a15 a14 a13 a12 a11 a10 a9 a8",
  10476. " a7 a6 a5 a4 a3 a2 a1 a0",
  10477. " o o o o o o o o";
  10478. loadpage_lo = " 0 1 0 0 0 0 0 0",
  10479. " x x x x x x x x",
  10480. " x x a5 a4 a3 a2 a1 a0",
  10481. " i i i i i i i i";
  10482. loadpage_hi = " 0 1 0 0 1 0 0 0",
  10483. " x x x x x x x x",
  10484. " x x a5 a4 a3 a2 a1 a0",
  10485. " i i i i i i i i";
  10486. writepage = " 0 1 0 0 1 1 0 0",
  10487. "a15 a14 a13 a12 a11 a10 a9 a8",
  10488. " a7 a6 x x x x x x",
  10489. " x x x x x x x x";
  10490. mode = 0x41;
  10491. delay = 6;
  10492. blocksize = 128;
  10493. readsize = 256;
  10494. ;
  10495. memory "lfuse"
  10496. size = 1;
  10497. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  10498. "x x x x x x x x i i i i i i i i";
  10499. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  10500. "x x x x x x x x o o o o o o o o";
  10501. min_write_delay = 9000;
  10502. max_write_delay = 9000;
  10503. ;
  10504. memory "hfuse"
  10505. size = 1;
  10506. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  10507. "x x x x x x x x i i i i i i i i";
  10508. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  10509. "x x x x x x x x o o o o o o o o";
  10510. min_write_delay = 9000;
  10511. max_write_delay = 9000;
  10512. ;
  10513. memory "efuse"
  10514. size = 1;
  10515. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  10516. "x x x x x x x x i i i i i i i i";
  10517. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  10518. "x x x x x x x x o o o o o o o o";
  10519. min_write_delay = 9000;
  10520. max_write_delay = 9000;
  10521. ;
  10522. memory "lock"
  10523. size = 1;
  10524. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  10525. "x x x x x x x x x x o o o o o o";
  10526. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  10527. "x x x x x x x x 1 1 i i i i i i";
  10528. min_write_delay = 9000;
  10529. max_write_delay = 9000;
  10530. ;
  10531. memory "calibration"
  10532. size = 1;
  10533. read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
  10534. "0 0 0 0 0 0 0 0 o o o o o o o o";
  10535. ;
  10536. memory "signature"
  10537. size = 3;
  10538. read = "0 0 1 1 0 0 0 0 0 0 0 x x x x x",
  10539. "x x x x x x a1 a0 o o o o o o o o";
  10540. ;
  10541. ;
  10542. #------------------------------------------------------------
  10543. # ATmega8U2
  10544. #------------------------------------------------------------
  10545. # Changes against ATmega16U2 (beside IDs)
  10546. # memory "flash"
  10547. # size = 8192;
  10548. # page_size = 64;
  10549. # blocksize = 64;
  10550. part
  10551. id = "m8u2";
  10552. desc = "ATmega8U2";
  10553. has_jtag = no;
  10554. has_debugwire = yes;
  10555. signature = 0x1e 0x93 0x89;
  10556. chip_erase_delay = 9000;
  10557. reset = io;
  10558. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  10559. "x x x x x x x x x x x x x x x x";
  10560. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
  10561. "x x x x x x x x x x x x x x x x";
  10562. pagel = 0xD7;
  10563. bs2 = 0xC6;
  10564. timeout = 200;
  10565. stabdelay = 100;
  10566. cmdexedelay = 25;
  10567. synchloops = 32;
  10568. bytedelay = 0;
  10569. pollindex = 3;
  10570. pollvalue = 0x53;
  10571. predelay = 1;
  10572. postdelay = 1;
  10573. pollmethod = 1;
  10574. pp_controlstack =
  10575. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  10576. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  10577. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  10578. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  10579. hventerstabdelay = 100;
  10580. progmodedelay = 0;
  10581. latchcycles = 5;
  10582. togglevtg = 1;
  10583. poweroffdelay = 15;
  10584. resetdelayms = 1;
  10585. resetdelayus = 0;
  10586. hvleavestabdelay = 15;
  10587. chiperasepulsewidth = 0;
  10588. chiperasepolltimeout = 10;
  10589. programfusepulsewidth = 0;
  10590. programfusepolltimeout = 5;
  10591. programlockpulsewidth = 0;
  10592. programlockpolltimeout = 5;
  10593. ocdrev = 1;
  10594. memory "eeprom"
  10595. paged = no; /* leave this "no" */
  10596. page_size = 4; /* for parallel programming */
  10597. size = 512;
  10598. num_pages = 128;
  10599. min_write_delay = 9000;
  10600. max_write_delay = 9000;
  10601. readback_p1 = 0x00;
  10602. readback_p2 = 0x00;
  10603. read = " 1 0 1 0 0 0 0 0",
  10604. " 0 0 0 0 a11 a10 a9 a8",
  10605. " a7 a6 a5 a4 a3 a2 a1 a0",
  10606. " o o o o o o o o";
  10607. write = " 1 1 0 0 0 0 0 0",
  10608. " 0 0 0 0 a11 a10 a9 a8",
  10609. " a7 a6 a5 a4 a3 a2 a1 a0",
  10610. " i i i i i i i i";
  10611. loadpage_lo = " 1 1 0 0 0 0 0 1",
  10612. " 0 0 0 0 0 0 0 0",
  10613. " 0 0 0 0 0 0 a1 a0",
  10614. " i i i i i i i i";
  10615. writepage = " 1 1 0 0 0 0 1 0",
  10616. " 0 0 0 0 a11 a10 a9 a8",
  10617. " a7 a6 a5 a4 a3 a2 0 0",
  10618. " x x x x x x x x";
  10619. mode = 0x41;
  10620. delay = 20;
  10621. blocksize = 4;
  10622. readsize = 256;
  10623. ;
  10624. memory "flash"
  10625. paged = yes;
  10626. size = 8192;
  10627. page_size = 64;
  10628. num_pages = 128;
  10629. min_write_delay = 4500;
  10630. max_write_delay = 4500;
  10631. readback_p1 = 0x00;
  10632. readback_p2 = 0x00;
  10633. read_lo = " 0 0 1 0 0 0 0 0",
  10634. "a15 a14 a13 a12 a11 a10 a9 a8",
  10635. " a7 a6 a5 a4 a3 a2 a1 a0",
  10636. " o o o o o o o o";
  10637. read_hi = " 0 0 1 0 1 0 0 0",
  10638. "a15 a14 a13 a12 a11 a10 a9 a8",
  10639. " a7 a6 a5 a4 a3 a2 a1 a0",
  10640. " o o o o o o o o";
  10641. loadpage_lo = " 0 1 0 0 0 0 0 0",
  10642. " x x x x x x x x",
  10643. " x x a5 a4 a3 a2 a1 a0",
  10644. " i i i i i i i i";
  10645. loadpage_hi = " 0 1 0 0 1 0 0 0",
  10646. " x x x x x x x x",
  10647. " x x a5 a4 a3 a2 a1 a0",
  10648. " i i i i i i i i";
  10649. writepage = " 0 1 0 0 1 1 0 0",
  10650. "a15 a14 a13 a12 a11 a10 a9 a8",
  10651. " a7 a6 x x x x x x",
  10652. " x x x x x x x x";
  10653. mode = 0x41;
  10654. delay = 6;
  10655. blocksize = 64;
  10656. readsize = 256;
  10657. ;
  10658. memory "lfuse"
  10659. size = 1;
  10660. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  10661. "x x x x x x x x i i i i i i i i";
  10662. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  10663. "x x x x x x x x o o o o o o o o";
  10664. min_write_delay = 9000;
  10665. max_write_delay = 9000;
  10666. ;
  10667. memory "hfuse"
  10668. size = 1;
  10669. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  10670. "x x x x x x x x i i i i i i i i";
  10671. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  10672. "x x x x x x x x o o o o o o o o";
  10673. min_write_delay = 9000;
  10674. max_write_delay = 9000;
  10675. ;
  10676. memory "efuse"
  10677. size = 1;
  10678. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  10679. "x x x x x x x x i i i i i i i i";
  10680. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  10681. "x x x x x x x x o o o o o o o o";
  10682. min_write_delay = 9000;
  10683. max_write_delay = 9000;
  10684. ;
  10685. memory "lock"
  10686. size = 1;
  10687. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  10688. "x x x x x x x x x x o o o o o o";
  10689. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  10690. "x x x x x x x x 1 1 i i i i i i";
  10691. min_write_delay = 9000;
  10692. max_write_delay = 9000;
  10693. ;
  10694. memory "calibration"
  10695. size = 1;
  10696. read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
  10697. "0 0 0 0 0 0 0 0 o o o o o o o o";
  10698. ;
  10699. memory "signature"
  10700. size = 3;
  10701. read = "0 0 1 1 0 0 0 0 0 0 0 x x x x x",
  10702. "x x x x x x a1 a0 o o o o o o o o";
  10703. ;
  10704. ;
  10705. #------------------------------------------------------------
  10706. # ATmega325
  10707. #------------------------------------------------------------
  10708. part
  10709. id = "m325";
  10710. desc = "ATmega325";
  10711. signature = 0x1e 0x95 0x05;
  10712. has_jtag = yes;
  10713. # stk500_devcode = 0x??; # No STK500v1 support?
  10714. # avr910_devcode = 0x??; # Try the ATmega16 one
  10715. avr910_devcode = 0x74;
  10716. pagel = 0xd7;
  10717. bs2 = 0xa0;
  10718. chip_erase_delay = 9000;
  10719. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  10720. "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0";
  10721. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 0 0 0 0 0",
  10722. "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0";
  10723. timeout = 200;
  10724. stabdelay = 100;
  10725. cmdexedelay = 25;
  10726. synchloops = 32;
  10727. bytedelay = 0;
  10728. pollindex = 3;
  10729. pollvalue = 0x53;
  10730. predelay = 1;
  10731. postdelay = 1;
  10732. pollmethod = 1;
  10733. pp_controlstack =
  10734. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  10735. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  10736. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  10737. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  10738. hventerstabdelay = 100;
  10739. progmodedelay = 0;
  10740. latchcycles = 5;
  10741. togglevtg = 1;
  10742. poweroffdelay = 15;
  10743. resetdelayms = 1;
  10744. resetdelayus = 0;
  10745. hvleavestabdelay = 15;
  10746. chiperasepulsewidth = 0;
  10747. chiperasepolltimeout = 10;
  10748. programfusepulsewidth = 0;
  10749. programfusepolltimeout = 5;
  10750. programlockpulsewidth = 0;
  10751. programlockpolltimeout = 5;
  10752. idr = 0x31;
  10753. spmcr = 0x57;
  10754. allowfullpagebitstream = no;
  10755. ocdrev = 3;
  10756. memory "eeprom"
  10757. paged = no; /* leave this "no" */
  10758. page_size = 4; /* for parallel programming */
  10759. size = 1024;
  10760. min_write_delay = 9000;
  10761. max_write_delay = 9000;
  10762. readback_p1 = 0xff;
  10763. readback_p2 = 0xff;
  10764. read = " 1 0 1 0 0 0 0 0",
  10765. " 0 0 0 0 0 0 a9 a8",
  10766. " a7 a6 a5 a4 a3 a2 a1 a0",
  10767. " o o o o o o o o";
  10768. write = " 1 1 0 0 0 0 0 0",
  10769. " 0 0 0 0 0 0 a9 a8",
  10770. " a7 a6 a5 a4 a3 a2 a1 a0",
  10771. " i i i i i i i i";
  10772. loadpage_lo = " 1 1 0 0 0 0 0 1",
  10773. " 0 0 0 0 0 0 0 0",
  10774. " 0 0 0 0 0 0 a1 a0",
  10775. " i i i i i i i i";
  10776. writepage = " 1 1 0 0 0 0 1 0",
  10777. " 0 0 0 0 0 0 a9 a8",
  10778. " a7 a6 a5 a4 a3 a2 0 0",
  10779. " x x x x x x x x";
  10780. mode = 0x41;
  10781. delay = 10;
  10782. blocksize = 4;
  10783. readsize = 256;
  10784. ;
  10785. memory "flash"
  10786. paged = yes;
  10787. size = 32768;
  10788. page_size = 128;
  10789. num_pages = 256;
  10790. min_write_delay = 4500;
  10791. max_write_delay = 4500;
  10792. readback_p1 = 0xff;
  10793. readback_p2 = 0xff;
  10794. read_lo = " 0 0 1 0 0 0 0 0",
  10795. " 0 a14 a13 a12 a11 a10 a9 a8",
  10796. " a7 a6 a5 a4 a3 a2 a1 a0",
  10797. " o o o o o o o o";
  10798. read_hi = " 0 0 1 0 1 0 0 0",
  10799. " 0 a14 a13 a12 a11 a10 a9 a8",
  10800. " a7 a6 a5 a4 a3 a2 a1 a0",
  10801. " o o o o o o o o";
  10802. loadpage_lo = " 0 1 0 0 0 0 0 0",
  10803. " 0 0 0 0 0 0 0 0",
  10804. " a7 a6 a5 a4 a3 a2 a1 a0",
  10805. " i i i i i i i i";
  10806. loadpage_hi = " 0 1 0 0 1 0 0 0",
  10807. " 0 0 0 0 0 0 0 0",
  10808. " a7 a6 a5 a4 a3 a2 a1 a0",
  10809. " i i i i i i i i";
  10810. writepage = " 0 1 0 0 1 1 0 0",
  10811. " 0 a14 a13 a12 a11 a10 a9 a8",
  10812. " a7 a6 a5 a4 a3 a2 a1 a0",
  10813. " x x x x x x x x";
  10814. mode = 0x41;
  10815. delay = 10;
  10816. blocksize = 128;
  10817. readsize = 256;
  10818. ;
  10819. memory "lock"
  10820. size = 1;
  10821. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  10822. "x x x x x x x x x x o o o o o o";
  10823. write = "1 0 1 0 1 1 0 0 1 1 1 0 0 0 0 0",
  10824. "0 0 0 0 0 0 0 0 1 1 i i i i i i";
  10825. min_write_delay = 9000;
  10826. max_write_delay = 9000;
  10827. ;
  10828. memory "lfuse"
  10829. size = 1;
  10830. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  10831. "0 0 0 0 0 0 0 0 o o o o o o o o";
  10832. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  10833. "0 0 0 0 0 0 0 0 i i i i i i i i";
  10834. min_write_delay = 9000;
  10835. max_write_delay = 9000;
  10836. ;
  10837. memory "hfuse"
  10838. size = 1;
  10839. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  10840. "0 0 0 0 0 0 0 0 o o o o o o o o";
  10841. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  10842. "0 0 0 0 0 0 0 0 i i i i i i i i";
  10843. min_write_delay = 9000;
  10844. max_write_delay = 9000;
  10845. ;
  10846. memory "efuse"
  10847. size = 1;
  10848. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  10849. "0 0 0 0 0 0 0 0 o o o o o o o o";
  10850. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  10851. "0 0 0 0 0 0 0 0 1 1 1 1 1 i i i";
  10852. min_write_delay = 9000;
  10853. max_write_delay = 9000;
  10854. ;
  10855. memory "signature"
  10856. size = 3;
  10857. read = "0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0",
  10858. "0 0 0 0 0 0 a1 a0 o o o o o o o o";
  10859. ;
  10860. memory "calibration"
  10861. size = 1;
  10862. read = "0 0 1 1 1 0 0 0 0 0 0 0 0 0 0 0",
  10863. "0 0 0 0 0 0 0 0 o o o o o o o o";
  10864. ;
  10865. ;
  10866. #------------------------------------------------------------
  10867. # ATmega645
  10868. #------------------------------------------------------------
  10869. part
  10870. id = "m645";
  10871. desc = "ATmega645";
  10872. signature = 0x1E 0x96 0x05;
  10873. has_jtag = yes;
  10874. # stk500_devcode = 0x??; # No STK500v1 support?
  10875. # avr910_devcode = 0x??; # Try the ATmega16 one
  10876. avr910_devcode = 0x74;
  10877. pagel = 0xd7;
  10878. bs2 = 0xa0;
  10879. chip_erase_delay = 9000;
  10880. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  10881. "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0";
  10882. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 0 0 0 0 0",
  10883. "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0";
  10884. timeout = 200;
  10885. stabdelay = 100;
  10886. cmdexedelay = 25;
  10887. synchloops = 32;
  10888. bytedelay = 0;
  10889. pollindex = 3;
  10890. pollvalue = 0x53;
  10891. predelay = 1;
  10892. postdelay = 1;
  10893. pollmethod = 1;
  10894. pp_controlstack =
  10895. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  10896. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  10897. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  10898. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  10899. hventerstabdelay = 100;
  10900. progmodedelay = 0;
  10901. latchcycles = 5;
  10902. togglevtg = 1;
  10903. poweroffdelay = 15;
  10904. resetdelayms = 1;
  10905. resetdelayus = 0;
  10906. hvleavestabdelay = 15;
  10907. chiperasepulsewidth = 0;
  10908. chiperasepolltimeout = 10;
  10909. programfusepulsewidth = 0;
  10910. programfusepolltimeout = 5;
  10911. programlockpulsewidth = 0;
  10912. programlockpolltimeout = 5;
  10913. idr = 0x31;
  10914. spmcr = 0x57;
  10915. allowfullpagebitstream = no;
  10916. ocdrev = 3;
  10917. memory "eeprom"
  10918. paged = no; /* leave this "no" */
  10919. page_size = 8; /* for parallel programming */
  10920. size = 2048;
  10921. min_write_delay = 9000;
  10922. max_write_delay = 9000;
  10923. readback_p1 = 0xff;
  10924. readback_p2 = 0xff;
  10925. read = " 1 0 1 0 0 0 0 0",
  10926. " 0 0 0 0 0 a10 a9 a8",
  10927. " a7 a6 a5 a4 a3 a2 a1 a0",
  10928. " o o o o o o o o";
  10929. write = " 1 1 0 0 0 0 0 0",
  10930. " 0 0 0 0 0 a10 a9 a8",
  10931. " a7 a6 a5 a4 a3 a2 a1 a0",
  10932. " i i i i i i i i";
  10933. loadpage_lo = " 1 1 0 0 0 0 0 1",
  10934. " 0 0 0 0 0 0 0 0",
  10935. " 0 0 0 0 0 a2 a1 a0",
  10936. " i i i i i i i i";
  10937. writepage = " 1 1 0 0 0 0 1 0",
  10938. " 0 0 0 0 0 a10 a9 a8",
  10939. " a7 a6 a5 a4 a3 0 0 0",
  10940. " x x x x x x x x";
  10941. mode = 0x41;
  10942. delay = 10;
  10943. blocksize = 8;
  10944. readsize = 256;
  10945. ;
  10946. memory "flash"
  10947. paged = yes;
  10948. size = 65536;
  10949. page_size = 256;
  10950. num_pages = 256;
  10951. min_write_delay = 4500;
  10952. max_write_delay = 4500;
  10953. readback_p1 = 0xff;
  10954. readback_p2 = 0xff;
  10955. read_lo = " 0 0 1 0 0 0 0 0",
  10956. " a15 a14 a13 a12 a11 a10 a9 a8",
  10957. " a7 a6 a5 a4 a3 a2 a1 a0",
  10958. " o o o o o o o o";
  10959. read_hi = " 0 0 1 0 1 0 0 0",
  10960. " a15 a14 a13 a12 a11 a10 a9 a8",
  10961. " a7 a6 a5 a4 a3 a2 a1 a0",
  10962. " o o o o o o o o";
  10963. loadpage_lo = " 0 1 0 0 0 0 0 0",
  10964. " 0 0 0 0 0 0 0 0",
  10965. " a7 a6 a5 a4 a3 a2 a1 a0",
  10966. " i i i i i i i i";
  10967. loadpage_hi = " 0 1 0 0 1 0 0 0",
  10968. " 0 0 0 0 0 0 0 0",
  10969. " a7 a6 a5 a4 a3 a2 a1 a0",
  10970. " i i i i i i i i";
  10971. writepage = " 0 1 0 0 1 1 0 0",
  10972. " a15 a14 a13 a12 a11 a10 a9 a8",
  10973. " a7 a6 a5 a4 a3 a2 a1 a0",
  10974. " 0 0 0 0 0 0 0 0";
  10975. mode = 0x41;
  10976. delay = 10;
  10977. blocksize = 128;
  10978. readsize = 256;
  10979. ;
  10980. memory "lock"
  10981. size = 1;
  10982. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  10983. "x x x x x x x x x x o o o o o o";
  10984. write = "1 0 1 0 1 1 0 0 1 1 1 0 0 0 0 0",
  10985. "0 0 0 0 0 0 0 0 1 1 i i i i i i";
  10986. min_write_delay = 9000;
  10987. max_write_delay = 9000;
  10988. ;
  10989. memory "lfuse"
  10990. size = 1;
  10991. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  10992. "0 0 0 0 0 0 0 0 o o o o o o o o";
  10993. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  10994. "0 0 0 0 0 0 0 0 i i i i i i i i";
  10995. min_write_delay = 9000;
  10996. max_write_delay = 9000;
  10997. ;
  10998. memory "hfuse"
  10999. size = 1;
  11000. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  11001. "0 0 0 0 0 0 0 0 o o o o o o o o";
  11002. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  11003. "0 0 0 0 0 0 0 0 i i i i i i i i";
  11004. min_write_delay = 9000;
  11005. max_write_delay = 9000;
  11006. ;
  11007. memory "efuse"
  11008. size = 1;
  11009. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  11010. "0 0 0 0 0 0 0 0 o o o o o o o o";
  11011. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  11012. "0 0 0 0 0 0 0 0 1 1 1 1 1 i i i";
  11013. min_write_delay = 9000;
  11014. max_write_delay = 9000;
  11015. ;
  11016. memory "signature"
  11017. size = 3;
  11018. read = "0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0",
  11019. "0 0 0 0 0 0 a1 a0 o o o o o o o o";
  11020. ;
  11021. memory "calibration"
  11022. size = 1;
  11023. read = "0 0 1 1 1 0 0 0 0 0 0 0 0 0 0 0",
  11024. "0 0 0 0 0 0 0 0 o o o o o o o o";
  11025. ;
  11026. ;
  11027. #------------------------------------------------------------
  11028. # ATmega3250
  11029. #------------------------------------------------------------
  11030. part parent "m325"
  11031. id = "m3250";
  11032. desc = "ATmega3250";
  11033. signature = 0x1E 0x95 0x06;
  11034. ocdrev = 3;
  11035. ;
  11036. #------------------------------------------------------------
  11037. # ATmega6450
  11038. #------------------------------------------------------------
  11039. part parent "m645"
  11040. id = "m6450";
  11041. desc = "ATmega6450";
  11042. signature = 0x1E 0x96 0x06;
  11043. ocdrev = 3;
  11044. ;
  11045. #------------------------------------------------------------
  11046. # AVR XMEGA family common values
  11047. #------------------------------------------------------------
  11048. part
  11049. id = ".xmega";
  11050. desc = "AVR XMEGA family common values";
  11051. has_pdi = yes;
  11052. nvm_base = 0x01c0;
  11053. mcu_base = 0x0090;
  11054. memory "signature"
  11055. size = 3;
  11056. offset = 0x1000090;
  11057. ;
  11058. memory "prodsig"
  11059. size = 0x32;
  11060. offset = 0x8e0200;
  11061. page_size = 0x32;
  11062. readsize = 0x32;
  11063. ;
  11064. memory "fuse1"
  11065. size = 1;
  11066. offset = 0x8f0021;
  11067. ;
  11068. memory "fuse2"
  11069. size = 1;
  11070. offset = 0x8f0022;
  11071. ;
  11072. memory "fuse4"
  11073. size = 1;
  11074. offset = 0x8f0024;
  11075. ;
  11076. memory "fuse5"
  11077. size = 1;
  11078. offset = 0x8f0025;
  11079. ;
  11080. memory "lock"
  11081. size = 1;
  11082. offset = 0x8f0027;
  11083. ;
  11084. memory "data"
  11085. # SRAM, only used to supply the offset
  11086. offset = 0x1000000;
  11087. ;
  11088. ;
  11089. #------------------------------------------------------------
  11090. # ATxmega16A4U
  11091. #------------------------------------------------------------
  11092. part parent ".xmega"
  11093. id = "x16a4u";
  11094. desc = "ATxmega16A4U";
  11095. signature = 0x1e 0x94 0x41;
  11096. memory "eeprom"
  11097. size = 0x400;
  11098. offset = 0x8c0000;
  11099. page_size = 0x20;
  11100. readsize = 0x100;
  11101. ;
  11102. memory "application"
  11103. size = 0x4000;
  11104. offset = 0x800000;
  11105. page_size = 0x100;
  11106. readsize = 0x100;
  11107. ;
  11108. memory "apptable"
  11109. size = 0x1000;
  11110. offset = 0x803000;
  11111. page_size = 0x100;
  11112. readsize = 0x100;
  11113. ;
  11114. memory "boot"
  11115. size = 0x1000;
  11116. offset = 0x804000;
  11117. page_size = 0x100;
  11118. readsize = 0x100;
  11119. ;
  11120. memory "flash"
  11121. size = 0x5000;
  11122. offset = 0x800000;
  11123. page_size = 0x100;
  11124. readsize = 0x100;
  11125. ;
  11126. memory "usersig"
  11127. size = 0x100;
  11128. offset = 0x8e0400;
  11129. page_size = 0x100;
  11130. readsize = 0x100;
  11131. ;
  11132. ;
  11133. #------------------------------------------------------------
  11134. # ATxmega16C4
  11135. #------------------------------------------------------------
  11136. part parent "x16a4u"
  11137. id = "x16c4";
  11138. desc = "ATxmega16C4";
  11139. signature = 0x1e 0x95 0x44;
  11140. ;
  11141. #------------------------------------------------------------
  11142. # ATxmega16D4
  11143. #------------------------------------------------------------
  11144. part parent "x16a4u"
  11145. id = "x16d4";
  11146. desc = "ATxmega16D4";
  11147. signature = 0x1e 0x94 0x42;
  11148. ;
  11149. #------------------------------------------------------------
  11150. # ATxmega16A4
  11151. #------------------------------------------------------------
  11152. part parent "x16a4u"
  11153. id = "x16a4";
  11154. desc = "ATxmega16A4";
  11155. signature = 0x1e 0x94 0x41;
  11156. has_jtag = yes;
  11157. memory "fuse0"
  11158. size = 1;
  11159. offset = 0x8f0020;
  11160. ;
  11161. ;
  11162. #------------------------------------------------------------
  11163. # ATxmega32A4U
  11164. #------------------------------------------------------------
  11165. part parent ".xmega"
  11166. id = "x32a4u";
  11167. desc = "ATxmega32A4U";
  11168. signature = 0x1e 0x95 0x41;
  11169. memory "eeprom"
  11170. size = 0x400;
  11171. offset = 0x8c0000;
  11172. page_size = 0x20;
  11173. readsize = 0x100;
  11174. ;
  11175. memory "application"
  11176. size = 0x8000;
  11177. offset = 0x800000;
  11178. page_size = 0x100;
  11179. readsize = 0x100;
  11180. ;
  11181. memory "apptable"
  11182. size = 0x1000;
  11183. offset = 0x807000;
  11184. page_size = 0x100;
  11185. readsize = 0x100;
  11186. ;
  11187. memory "boot"
  11188. size = 0x1000;
  11189. offset = 0x808000;
  11190. page_size = 0x100;
  11191. readsize = 0x100;
  11192. ;
  11193. memory "flash"
  11194. size = 0x9000;
  11195. offset = 0x800000;
  11196. page_size = 0x100;
  11197. readsize = 0x100;
  11198. ;
  11199. memory "usersig"
  11200. size = 0x100;
  11201. offset = 0x8e0400;
  11202. page_size = 0x100;
  11203. readsize = 0x100;
  11204. ;
  11205. ;
  11206. #------------------------------------------------------------
  11207. # ATxmega32C4
  11208. #------------------------------------------------------------
  11209. part parent "x32a4u"
  11210. id = "x32c4";
  11211. desc = "ATxmega32C4";
  11212. signature = 0x1e 0x94 0x43;
  11213. ;
  11214. #------------------------------------------------------------
  11215. # ATxmega32D4
  11216. #------------------------------------------------------------
  11217. part parent "x32a4u"
  11218. id = "x32d4";
  11219. desc = "ATxmega32D4";
  11220. signature = 0x1e 0x95 0x42;
  11221. ;
  11222. #------------------------------------------------------------
  11223. # ATxmega32A4
  11224. #------------------------------------------------------------
  11225. part parent "x32a4u"
  11226. id = "x32a4";
  11227. desc = "ATxmega32A4";
  11228. signature = 0x1e 0x95 0x41;
  11229. has_jtag = yes;
  11230. memory "fuse0"
  11231. size = 1;
  11232. offset = 0x8f0020;
  11233. ;
  11234. ;
  11235. #------------------------------------------------------------
  11236. # ATxmega64A4U
  11237. #------------------------------------------------------------
  11238. part parent ".xmega"
  11239. id = "x64a4u";
  11240. desc = "ATxmega64A4U";
  11241. signature = 0x1e 0x96 0x46;
  11242. memory "eeprom"
  11243. size = 0x800;
  11244. offset = 0x8c0000;
  11245. page_size = 0x20;
  11246. readsize = 0x100;
  11247. ;
  11248. memory "application"
  11249. size = 0x10000;
  11250. offset = 0x800000;
  11251. page_size = 0x100;
  11252. readsize = 0x100;
  11253. ;
  11254. memory "apptable"
  11255. size = 0x1000;
  11256. offset = 0x80f000;
  11257. page_size = 0x100;
  11258. readsize = 0x100;
  11259. ;
  11260. memory "boot"
  11261. size = 0x1000;
  11262. offset = 0x810000;
  11263. page_size = 0x100;
  11264. readsize = 0x100;
  11265. ;
  11266. memory "flash"
  11267. size = 0x11000;
  11268. offset = 0x800000;
  11269. page_size = 0x100;
  11270. readsize = 0x100;
  11271. ;
  11272. memory "usersig"
  11273. size = 0x100;
  11274. offset = 0x8e0400;
  11275. page_size = 0x100;
  11276. readsize = 0x100;
  11277. ;
  11278. ;
  11279. #------------------------------------------------------------
  11280. # ATxmega64C3
  11281. #------------------------------------------------------------
  11282. part parent "x64a4u"
  11283. id = "x64c3";
  11284. desc = "ATxmega64C3";
  11285. signature = 0x1e 0x96 0x49;
  11286. ;
  11287. #------------------------------------------------------------
  11288. # ATxmega64D3
  11289. #------------------------------------------------------------
  11290. part parent "x64a4u"
  11291. id = "x64d3";
  11292. desc = "ATxmega64D3";
  11293. signature = 0x1e 0x96 0x4a;
  11294. ;
  11295. #------------------------------------------------------------
  11296. # ATxmega64D4
  11297. #------------------------------------------------------------
  11298. part parent "x64a4u"
  11299. id = "x64d4";
  11300. desc = "ATxmega64D4";
  11301. signature = 0x1e 0x96 0x47;
  11302. ;
  11303. #------------------------------------------------------------
  11304. # ATxmega64A1
  11305. #------------------------------------------------------------
  11306. part parent "x64a4u"
  11307. id = "x64a1";
  11308. desc = "ATxmega64A1";
  11309. signature = 0x1e 0x96 0x4e;
  11310. has_jtag = yes;
  11311. memory "fuse0"
  11312. size = 1;
  11313. offset = 0x8f0020;
  11314. ;
  11315. ;
  11316. #------------------------------------------------------------
  11317. # ATxmega64A1U
  11318. #------------------------------------------------------------
  11319. part parent "x64a1"
  11320. id = "x64a1u";
  11321. desc = "ATxmega64A1U";
  11322. signature = 0x1e 0x96 0x4e;
  11323. ;
  11324. #------------------------------------------------------------
  11325. # ATxmega64A3
  11326. #------------------------------------------------------------
  11327. part parent "x64a1"
  11328. id = "x64a3";
  11329. desc = "ATxmega64A3";
  11330. signature = 0x1e 0x96 0x42;
  11331. ;
  11332. #------------------------------------------------------------
  11333. # ATxmega64A3U
  11334. #------------------------------------------------------------
  11335. part parent "x64a1"
  11336. id = "x64a3u";
  11337. desc = "ATxmega64A3U";
  11338. signature = 0x1e 0x96 0x42;
  11339. ;
  11340. #------------------------------------------------------------
  11341. # ATxmega64A4
  11342. #------------------------------------------------------------
  11343. part parent "x64a1"
  11344. id = "x64a4";
  11345. desc = "ATxmega64A4";
  11346. signature = 0x1e 0x96 0x46;
  11347. ;
  11348. #------------------------------------------------------------
  11349. # ATxmega64B1
  11350. #------------------------------------------------------------
  11351. part parent "x64a1"
  11352. id = "x64b1";
  11353. desc = "ATxmega64B1";
  11354. signature = 0x1e 0x96 0x52;
  11355. ;
  11356. #------------------------------------------------------------
  11357. # ATxmega64B3
  11358. #------------------------------------------------------------
  11359. part parent "x64a1"
  11360. id = "x64b3";
  11361. desc = "ATxmega64B3";
  11362. signature = 0x1e 0x96 0x51;
  11363. ;
  11364. #------------------------------------------------------------
  11365. # ATxmega128C3
  11366. #------------------------------------------------------------
  11367. part parent ".xmega"
  11368. id = "x128c3";
  11369. desc = "ATxmega128C3";
  11370. signature = 0x1e 0x97 0x52;
  11371. memory "eeprom"
  11372. size = 0x800;
  11373. offset = 0x8c0000;
  11374. page_size = 0x20;
  11375. readsize = 0x100;
  11376. ;
  11377. memory "application"
  11378. size = 0x20000;
  11379. offset = 0x800000;
  11380. page_size = 0x200;
  11381. readsize = 0x100;
  11382. ;
  11383. memory "apptable"
  11384. size = 0x2000;
  11385. offset = 0x81e000;
  11386. page_size = 0x200;
  11387. readsize = 0x100;
  11388. ;
  11389. memory "boot"
  11390. size = 0x2000;
  11391. offset = 0x820000;
  11392. page_size = 0x200;
  11393. readsize = 0x100;
  11394. ;
  11395. memory "flash"
  11396. size = 0x22000;
  11397. offset = 0x800000;
  11398. page_size = 0x200;
  11399. readsize = 0x100;
  11400. ;
  11401. memory "usersig"
  11402. size = 0x200;
  11403. offset = 0x8e0400;
  11404. page_size = 0x200;
  11405. readsize = 0x100;
  11406. ;
  11407. ;
  11408. #------------------------------------------------------------
  11409. # ATxmega128D3
  11410. #------------------------------------------------------------
  11411. part parent "x128c3"
  11412. id = "x128d3";
  11413. desc = "ATxmega128D3";
  11414. signature = 0x1e 0x97 0x48;
  11415. ;
  11416. #------------------------------------------------------------
  11417. # ATxmega128D4
  11418. #------------------------------------------------------------
  11419. part parent "x128c3"
  11420. id = "x128d4";
  11421. desc = "ATxmega128D4";
  11422. signature = 0x1e 0x97 0x47;
  11423. ;
  11424. #------------------------------------------------------------
  11425. # ATxmega128A1
  11426. #------------------------------------------------------------
  11427. part parent "x128c3"
  11428. id = "x128a1";
  11429. desc = "ATxmega128A1";
  11430. signature = 0x1e 0x97 0x4c;
  11431. has_jtag = yes;
  11432. memory "fuse0"
  11433. size = 1;
  11434. offset = 0x8f0020;
  11435. ;
  11436. ;
  11437. #------------------------------------------------------------
  11438. # ATxmega128A1 revision D
  11439. #------------------------------------------------------------
  11440. part parent "x128a1"
  11441. id = "x128a1d";
  11442. desc = "ATxmega128A1revD";
  11443. signature = 0x1e 0x97 0x41;
  11444. ;
  11445. #------------------------------------------------------------
  11446. # ATxmega128A1U
  11447. #------------------------------------------------------------
  11448. part parent "x128a1"
  11449. id = "x128a1u";
  11450. desc = "ATxmega128A1U";
  11451. signature = 0x1e 0x97 0x4c;
  11452. ;
  11453. #------------------------------------------------------------
  11454. # ATxmega128A3
  11455. #------------------------------------------------------------
  11456. part parent "x128a1"
  11457. id = "x128a3";
  11458. desc = "ATxmega128A3";
  11459. signature = 0x1e 0x97 0x42;
  11460. ;
  11461. #------------------------------------------------------------
  11462. # ATxmega128A3U
  11463. #------------------------------------------------------------
  11464. part parent "x128a1"
  11465. id = "x128a3u";
  11466. desc = "ATxmega128A3U";
  11467. signature = 0x1e 0x97 0x42;
  11468. ;
  11469. #------------------------------------------------------------
  11470. # ATxmega128A4
  11471. #------------------------------------------------------------
  11472. part parent ".xmega"
  11473. id = "x128a4";
  11474. desc = "ATxmega128A4";
  11475. signature = 0x1e 0x97 0x46;
  11476. has_jtag = yes;
  11477. memory "eeprom"
  11478. size = 0x800;
  11479. offset = 0x8c0000;
  11480. page_size = 0x20;
  11481. readsize = 0x100;
  11482. ;
  11483. memory "application"
  11484. size = 0x20000;
  11485. offset = 0x800000;
  11486. page_size = 0x200;
  11487. readsize = 0x100;
  11488. ;
  11489. memory "apptable"
  11490. size = 0x1000;
  11491. offset = 0x81f000;
  11492. page_size = 0x200;
  11493. readsize = 0x100;
  11494. ;
  11495. memory "boot"
  11496. size = 0x2000;
  11497. offset = 0x820000;
  11498. page_size = 0x200;
  11499. readsize = 0x100;
  11500. ;
  11501. memory "flash"
  11502. size = 0x22000;
  11503. offset = 0x800000;
  11504. page_size = 0x200;
  11505. readsize = 0x100;
  11506. ;
  11507. memory "usersig"
  11508. size = 0x200;
  11509. offset = 0x8e0400;
  11510. page_size = 0x200;
  11511. readsize = 0x100;
  11512. ;
  11513. memory "fuse0"
  11514. size = 1;
  11515. offset = 0x8f0020;
  11516. ;
  11517. ;
  11518. #------------------------------------------------------------
  11519. # ATxmega128A4U
  11520. #------------------------------------------------------------
  11521. part parent ".xmega"
  11522. id = "x128a4u";
  11523. desc = "ATxmega128A4U";
  11524. signature = 0x1e 0x97 0x46;
  11525. memory "eeprom"
  11526. size = 0x800;
  11527. offset = 0x8c0000;
  11528. page_size = 0x20;
  11529. readsize = 0x100;
  11530. ;
  11531. memory "application"
  11532. size = 0x20000;
  11533. offset = 0x800000;
  11534. page_size = 0x100;
  11535. readsize = 0x100;
  11536. ;
  11537. memory "apptable"
  11538. size = 0x1000;
  11539. offset = 0x81f000;
  11540. page_size = 0x100;
  11541. readsize = 0x100;
  11542. ;
  11543. memory "boot"
  11544. size = 0x2000;
  11545. offset = 0x820000;
  11546. page_size = 0x100;
  11547. readsize = 0x100;
  11548. ;
  11549. memory "flash"
  11550. size = 0x22000;
  11551. offset = 0x800000;
  11552. page_size = 0x100;
  11553. readsize = 0x100;
  11554. ;
  11555. memory "usersig"
  11556. size = 0x100;
  11557. offset = 0x8e0400;
  11558. page_size = 0x100;
  11559. readsize = 0x100;
  11560. ;
  11561. ;
  11562. #------------------------------------------------------------
  11563. # ATxmega128B1
  11564. #------------------------------------------------------------
  11565. part parent ".xmega"
  11566. id = "x128b1";
  11567. desc = "ATxmega128B1";
  11568. signature = 0x1e 0x97 0x4d;
  11569. has_jtag = yes;
  11570. memory "eeprom"
  11571. size = 0x800;
  11572. offset = 0x8c0000;
  11573. page_size = 0x20;
  11574. readsize = 0x100;
  11575. ;
  11576. memory "application"
  11577. size = 0x20000;
  11578. offset = 0x800000;
  11579. page_size = 0x100;
  11580. readsize = 0x100;
  11581. ;
  11582. memory "apptable"
  11583. size = 0x2000;
  11584. offset = 0x81e000;
  11585. page_size = 0x100;
  11586. readsize = 0x100;
  11587. ;
  11588. memory "boot"
  11589. size = 0x2000;
  11590. offset = 0x820000;
  11591. page_size = 0x100;
  11592. readsize = 0x100;
  11593. ;
  11594. memory "flash"
  11595. size = 0x22000;
  11596. offset = 0x800000;
  11597. page_size = 0x100;
  11598. readsize = 0x100;
  11599. ;
  11600. memory "usersig"
  11601. size = 0x100;
  11602. offset = 0x8e0400;
  11603. page_size = 0x100;
  11604. readsize = 0x100;
  11605. ;
  11606. memory "fuse0"
  11607. size = 1;
  11608. offset = 0x8f0020;
  11609. ;
  11610. ;
  11611. #------------------------------------------------------------
  11612. # ATxmega128B3
  11613. #------------------------------------------------------------
  11614. part parent "x128b1"
  11615. id = "x128b3";
  11616. desc = "ATxmega128B3";
  11617. signature = 0x1e 0x97 0x4b;
  11618. ;
  11619. #------------------------------------------------------------
  11620. # ATxmega192C3
  11621. #------------------------------------------------------------
  11622. part parent ".xmega"
  11623. id = "x192c3";
  11624. desc = "ATxmega192C3";
  11625. signature = 0x1e 0x97 0x51;
  11626. memory "eeprom"
  11627. size = 0x800;
  11628. offset = 0x8c0000;
  11629. page_size = 0x20;
  11630. readsize = 0x100;
  11631. ;
  11632. memory "application"
  11633. size = 0x30000;
  11634. offset = 0x800000;
  11635. page_size = 0x200;
  11636. readsize = 0x100;
  11637. ;
  11638. memory "apptable"
  11639. size = 0x2000;
  11640. offset = 0x82e000;
  11641. page_size = 0x200;
  11642. readsize = 0x100;
  11643. ;
  11644. memory "boot"
  11645. size = 0x2000;
  11646. offset = 0x830000;
  11647. page_size = 0x200;
  11648. readsize = 0x100;
  11649. ;
  11650. memory "flash"
  11651. size = 0x32000;
  11652. offset = 0x800000;
  11653. page_size = 0x200;
  11654. readsize = 0x100;
  11655. ;
  11656. memory "usersig"
  11657. size = 0x200;
  11658. offset = 0x8e0400;
  11659. page_size = 0x200;
  11660. readsize = 0x100;
  11661. ;
  11662. ;
  11663. #------------------------------------------------------------
  11664. # ATxmega192D3
  11665. #------------------------------------------------------------
  11666. part parent "x192c3"
  11667. id = "x192d3";
  11668. desc = "ATxmega192D3";
  11669. signature = 0x1e 0x97 0x49;
  11670. ;
  11671. #------------------------------------------------------------
  11672. # ATxmega192A1
  11673. #------------------------------------------------------------
  11674. part parent "x192c3"
  11675. id = "x192a1";
  11676. desc = "ATxmega192A1";
  11677. signature = 0x1e 0x97 0x4e;
  11678. has_jtag = yes;
  11679. memory "fuse0"
  11680. size = 1;
  11681. offset = 0x8f0020;
  11682. ;
  11683. ;
  11684. #------------------------------------------------------------
  11685. # ATxmega192A3
  11686. #------------------------------------------------------------
  11687. part parent "x192a1"
  11688. id = "x192a3";
  11689. desc = "ATxmega192A3";
  11690. signature = 0x1e 0x97 0x44;
  11691. ;
  11692. #------------------------------------------------------------
  11693. # ATxmega192A3U
  11694. #------------------------------------------------------------
  11695. part parent "x192a1"
  11696. id = "x192a3u";
  11697. desc = "ATxmega192A3U";
  11698. signature = 0x1e 0x97 0x44;
  11699. ;
  11700. #------------------------------------------------------------
  11701. # ATxmega256C3
  11702. #------------------------------------------------------------
  11703. part parent ".xmega"
  11704. id = "x256c3";
  11705. desc = "ATxmega256C3";
  11706. signature = 0x1e 0x98 0x46;
  11707. memory "eeprom"
  11708. size = 0x1000;
  11709. offset = 0x8c0000;
  11710. page_size = 0x20;
  11711. readsize = 0x100;
  11712. ;
  11713. memory "application"
  11714. size = 0x40000;
  11715. offset = 0x800000;
  11716. page_size = 0x200;
  11717. readsize = 0x100;
  11718. ;
  11719. memory "apptable"
  11720. size = 0x2000;
  11721. offset = 0x83e000;
  11722. page_size = 0x200;
  11723. readsize = 0x100;
  11724. ;
  11725. memory "boot"
  11726. size = 0x2000;
  11727. offset = 0x840000;
  11728. page_size = 0x200;
  11729. readsize = 0x100;
  11730. ;
  11731. memory "flash"
  11732. size = 0x42000;
  11733. offset = 0x800000;
  11734. page_size = 0x200;
  11735. readsize = 0x100;
  11736. ;
  11737. memory "usersig"
  11738. size = 0x200;
  11739. offset = 0x8e0400;
  11740. page_size = 0x200;
  11741. readsize = 0x100;
  11742. ;
  11743. ;
  11744. #------------------------------------------------------------
  11745. # ATxmega256D3
  11746. #------------------------------------------------------------
  11747. part parent "x256c3"
  11748. id = "x256d3";
  11749. desc = "ATxmega256D3";
  11750. signature = 0x1e 0x98 0x44;
  11751. ;
  11752. #------------------------------------------------------------
  11753. # ATxmega256A1
  11754. #------------------------------------------------------------
  11755. part parent "x256c3"
  11756. id = "x256a1";
  11757. desc = "ATxmega256A1";
  11758. signature = 0x1e 0x98 0x46;
  11759. has_jtag = yes;
  11760. memory "fuse0"
  11761. size = 1;
  11762. offset = 0x8f0020;
  11763. ;
  11764. ;
  11765. #------------------------------------------------------------
  11766. # ATxmega256A3
  11767. #------------------------------------------------------------
  11768. part parent "x256a1"
  11769. id = "x256a3";
  11770. desc = "ATxmega256A3";
  11771. signature = 0x1e 0x98 0x42;
  11772. ;
  11773. #------------------------------------------------------------
  11774. # ATxmega256A3U
  11775. #------------------------------------------------------------
  11776. part parent "x256a1"
  11777. id = "x256a3u";
  11778. desc = "ATxmega256A3U";
  11779. signature = 0x1e 0x98 0x42;
  11780. ;
  11781. #------------------------------------------------------------
  11782. # ATxmega256A3B
  11783. #------------------------------------------------------------
  11784. part parent "x256a1"
  11785. id = "x256a3b";
  11786. desc = "ATxmega256A3B";
  11787. signature = 0x1e 0x98 0x43;
  11788. ;
  11789. #------------------------------------------------------------
  11790. # ATxmega256A3BU
  11791. #------------------------------------------------------------
  11792. part parent "x256a1"
  11793. id = "x256a3bu";
  11794. desc = "ATxmega256A3BU";
  11795. signature = 0x1e 0x98 0x43;
  11796. ;
  11797. #------------------------------------------------------------
  11798. # ATxmega384C3
  11799. #------------------------------------------------------------
  11800. part parent ".xmega"
  11801. id = "x384c3";
  11802. desc = "ATxmega384C3";
  11803. signature = 0x1e 0x98 0x45;
  11804. memory "eeprom"
  11805. size = 0x1000;
  11806. offset = 0x8c0000;
  11807. page_size = 0x20;
  11808. readsize = 0x100;
  11809. ;
  11810. memory "application"
  11811. size = 0x60000;
  11812. offset = 0x800000;
  11813. page_size = 0x200;
  11814. readsize = 0x100;
  11815. ;
  11816. memory "apptable"
  11817. size = 0x2000;
  11818. offset = 0x85e000;
  11819. page_size = 0x200;
  11820. readsize = 0x100;
  11821. ;
  11822. memory "boot"
  11823. size = 0x2000;
  11824. offset = 0x860000;
  11825. page_size = 0x200;
  11826. readsize = 0x100;
  11827. ;
  11828. memory "flash"
  11829. size = 0x62000;
  11830. offset = 0x800000;
  11831. page_size = 0x200;
  11832. readsize = 0x100;
  11833. ;
  11834. memory "usersig"
  11835. size = 0x200;
  11836. offset = 0x8e0400;
  11837. page_size = 0x200;
  11838. readsize = 0x100;
  11839. ;
  11840. ;
  11841. #------------------------------------------------------------
  11842. # ATxmega384D3
  11843. #------------------------------------------------------------
  11844. part parent "x384c3"
  11845. id = "x384d3";
  11846. desc = "ATxmega384D3";
  11847. signature = 0x1e 0x98 0x47;
  11848. ;
  11849. #------------------------------------------------------------
  11850. # ATxmega8E5
  11851. #------------------------------------------------------------
  11852. part parent ".xmega"
  11853. id = "x8e5";
  11854. desc = "ATxmega8E5";
  11855. signature = 0x1e 0x93 0x41;
  11856. memory "eeprom"
  11857. size = 0x0200;
  11858. offset = 0x08c0000;
  11859. page_size = 0x20;
  11860. readsize = 0x100;
  11861. ;
  11862. memory "application"
  11863. size = 0x2000;
  11864. offset = 0x0800000;
  11865. page_size = 0x80;
  11866. readsize = 0x100;
  11867. ;
  11868. memory "apptable"
  11869. size = 0x800;
  11870. offset = 0x00801800;
  11871. page_size = 0x80;
  11872. readsize = 0x100;
  11873. ;
  11874. memory "boot"
  11875. size = 0x800;
  11876. offset = 0x00804000;
  11877. page_size = 0x80;
  11878. readsize = 0x100;
  11879. ;
  11880. memory "flash"
  11881. size = 0x2800;
  11882. offset = 0x0800000;
  11883. page_size = 0x80;
  11884. readsize = 0x100;
  11885. ;
  11886. memory "usersig"
  11887. size = 0x80;
  11888. offset = 0x8e0400;
  11889. page_size = 0x80;
  11890. readsize = 0x100;
  11891. ;
  11892. ;
  11893. #------------------------------------------------------------
  11894. # ATxmega16E5
  11895. #------------------------------------------------------------
  11896. part parent ".xmega"
  11897. id = "x16e5";
  11898. desc = "ATxmega16E5";
  11899. signature = 0x1e 0x94 0x45;
  11900. memory "eeprom"
  11901. size = 0x0200;
  11902. offset = 0x08c0000;
  11903. page_size = 0x20;
  11904. readsize = 0x100;
  11905. ;
  11906. memory "application"
  11907. size = 0x4000;
  11908. offset = 0x0800000;
  11909. page_size = 0x80;
  11910. readsize = 0x100;
  11911. ;
  11912. memory "apptable"
  11913. size = 0x1000;
  11914. offset = 0x00803000;
  11915. page_size = 0x80;
  11916. readsize = 0x100;
  11917. ;
  11918. memory "boot"
  11919. size = 0x1000;
  11920. offset = 0x00804000;
  11921. page_size = 0x80;
  11922. readsize = 0x100;
  11923. ;
  11924. memory "flash"
  11925. size = 0x5000;
  11926. offset = 0x0800000;
  11927. page_size = 0x80;
  11928. readsize = 0x100;
  11929. ;
  11930. memory "usersig"
  11931. size = 0x80;
  11932. offset = 0x8e0400;
  11933. page_size = 0x80;
  11934. readsize = 0x100;
  11935. ;
  11936. ;
  11937. #------------------------------------------------------------
  11938. # ATxmega32E5
  11939. #------------------------------------------------------------
  11940. part parent ".xmega"
  11941. id = "x32e5";
  11942. desc = "ATxmega32E5";
  11943. signature = 0x1e 0x95 0x4c;
  11944. memory "eeprom"
  11945. size = 0x0400;
  11946. offset = 0x08c0000;
  11947. page_size = 0x20;
  11948. readsize = 0x100;
  11949. ;
  11950. memory "application"
  11951. size = 0x8000;
  11952. offset = 0x0800000;
  11953. page_size = 0x80;
  11954. readsize = 0x100;
  11955. ;
  11956. memory "apptable"
  11957. size = 0x1000;
  11958. offset = 0x00807000;
  11959. page_size = 0x80;
  11960. readsize = 0x100;
  11961. ;
  11962. memory "boot"
  11963. size = 0x1000;
  11964. offset = 0x00804000;
  11965. page_size = 0x80;
  11966. readsize = 0x100;
  11967. ;
  11968. memory "flash"
  11969. size = 0x9000;
  11970. offset = 0x0800000;
  11971. page_size = 0x80;
  11972. readsize = 0x100;
  11973. ;
  11974. memory "usersig"
  11975. size = 0x80;
  11976. offset = 0x8e0400;
  11977. page_size = 0x80;
  11978. readsize = 0x100;
  11979. ;
  11980. ;
  11981. #------------------------------------------------------------
  11982. # AVR32UC3A0512
  11983. #------------------------------------------------------------
  11984. part
  11985. id = "uc3a0512";
  11986. desc = "AT32UC3A0512";
  11987. signature = 0xED 0xC0 0x3F;
  11988. has_jtag = yes;
  11989. is_avr32 = yes;
  11990. memory "flash"
  11991. paged = yes;
  11992. page_size = 512; # bytes
  11993. readsize = 512; # bytes
  11994. num_pages = 1024; # could be set dynamicly
  11995. size = 0x00080000; # could be set dynamicly
  11996. offset = 0x80000000;
  11997. ;
  11998. ;
  11999. part parent "uc3a0512"
  12000. id = "ucr2";
  12001. desc = "deprecated, use 'uc3a0512'";
  12002. ;
  12003. #------------------------------------------------------------
  12004. # ATtiny1634.
  12005. #------------------------------------------------------------
  12006. part
  12007. id = "t1634";
  12008. desc = "ATtiny1634";
  12009. has_debugwire = yes;
  12010. flash_instr = 0xB6, 0x01, 0x11;
  12011. eeprom_instr = 0xBD, 0xF2, 0xBD, 0xE1, 0xBB, 0xCF, 0xB4, 0x00,
  12012. 0xBE, 0x01, 0xB6, 0x01, 0xBC, 0x00, 0xBB, 0xBF,
  12013. 0x99, 0xF9, 0xBB, 0xAF;
  12014. stk500_devcode = 0x86;
  12015. # avr910_devcode = 0x;
  12016. signature = 0x1e 0x94 0x12;
  12017. pagel = 0xB3;
  12018. bs2 = 0xB1;
  12019. reset = io;
  12020. chip_erase_delay = 9000;
  12021. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  12022. "x x x x x x x x x x x x x x x x";
  12023. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
  12024. "x x x x x x x x x x x x x x x x";
  12025. timeout = 200;
  12026. stabdelay = 100;
  12027. cmdexedelay = 25;
  12028. synchloops = 32;
  12029. bytedelay = 0;
  12030. pollindex = 3;
  12031. pollvalue = 0x53;
  12032. predelay = 1;
  12033. postdelay = 1;
  12034. pollmethod = 1;
  12035. pp_controlstack =
  12036. 0x0E, 0x1E, 0x0E, 0x1E, 0x2E, 0x3E, 0x2E, 0x3E,
  12037. 0x4E, 0x5E, 0x4E, 0x5E, 0x6E, 0x7E, 0x6E, 0x7E,
  12038. 0x26, 0x36, 0x66, 0x76, 0x2A, 0x3A, 0x6A, 0x7A,
  12039. 0x2E, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  12040. hventerstabdelay = 100;
  12041. progmodedelay = 0;
  12042. latchcycles = 0;
  12043. togglevtg = 1;
  12044. poweroffdelay = 15;
  12045. resetdelayms = 1;
  12046. resetdelayus = 0;
  12047. hvleavestabdelay = 15;
  12048. resetdelay = 15;
  12049. chiperasepulsewidth = 0;
  12050. chiperasepolltimeout = 10;
  12051. programfusepulsewidth = 0;
  12052. programfusepolltimeout = 5;
  12053. programlockpulsewidth = 0;
  12054. programlockpolltimeout = 5;
  12055. memory "eeprom"
  12056. paged = no;
  12057. page_size = 4;
  12058. size = 256;
  12059. min_write_delay = 3600;
  12060. max_write_delay = 3600;
  12061. readback_p1 = 0xff;
  12062. readback_p2 = 0xff;
  12063. read = " 1 0 1 0 0 0 0 0",
  12064. " 0 0 0 x x x x a8",
  12065. " a7 a6 a5 a4 a3 a2 a1 a0",
  12066. " o o o o o o o o";
  12067. write = " 1 1 0 0 0 0 0 0",
  12068. " 0 0 0 x x x x a8",
  12069. " a7 a6 a5 a4 a3 a2 a1 a0",
  12070. " i i i i i i i i";
  12071. loadpage_lo = " 1 1 0 0 0 0 0 1",
  12072. " 0 0 0 0 0 0 0 0",
  12073. " 0 0 0 0 0 0 a1 a0",
  12074. " i i i i i i i i";
  12075. writepage = " 1 1 0 0 0 0 1 0",
  12076. " 0 0 x x x x x a8",
  12077. " a7 a6 a5 a4 a3 a2 0 0",
  12078. " x x x x x x x x";
  12079. mode = 0x41;
  12080. delay = 5;
  12081. blocksize = 4;
  12082. readsize = 256;
  12083. ;
  12084. memory "flash"
  12085. paged = yes;
  12086. size = 16384;
  12087. page_size = 32;
  12088. num_pages = 512;
  12089. min_write_delay = 4500;
  12090. max_write_delay = 4500;
  12091. readback_p1 = 0xff;
  12092. readback_p2 = 0xff;
  12093. read_lo = " 0 0 1 0 0 0 0 0",
  12094. " 0 0 0 a12 a11 a10 a9 a8",
  12095. " a7 a6 a5 a4 a3 a2 a1 a0",
  12096. " o o o o o o o o";
  12097. read_hi = " 0 0 1 0 1 0 0 0",
  12098. " 0 0 0 a12 a11 a10 a9 a8",
  12099. " a7 a6 a5 a4 a3 a2 a1 a0",
  12100. " o o o o o o o o";
  12101. loadpage_lo = " 0 1 0 0 0 0 0 0",
  12102. " 0 0 0 x x x x x",
  12103. " x x a5 a4 a3 a2 a1 a0",
  12104. " i i i i i i i i";
  12105. loadpage_hi = " 0 1 0 0 1 0 0 0",
  12106. " 0 0 0 x x x x x",
  12107. " x x a5 a4 a3 a2 a1 a0",
  12108. " i i i i i i i i";
  12109. writepage = " 0 1 0 0 1 1 0 0",
  12110. " 0 0 0 a12 a11 a10 a9 a8",
  12111. " a7 a6 x x x x x x",
  12112. " x x x x x x x x";
  12113. mode = 0x41;
  12114. delay = 6;
  12115. blocksize = 128;
  12116. readsize = 256;
  12117. ;
  12118. memory "lfuse"
  12119. size = 1;
  12120. min_write_delay = 4500;
  12121. max_write_delay = 4500;
  12122. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  12123. "x x x x x x x x o o o o o o o o";
  12124. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  12125. "x x x x x x x x i i i i i i i i";
  12126. ;
  12127. memory "hfuse"
  12128. size = 1;
  12129. min_write_delay = 4500;
  12130. max_write_delay = 4500;
  12131. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  12132. "x x x x x x x x o o o o o o o o";
  12133. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  12134. "x x x x x x x x i i i i i i i i";
  12135. ;
  12136. memory "efuse"
  12137. size = 1;
  12138. min_write_delay = 4500;
  12139. max_write_delay = 4500;
  12140. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  12141. "x x x x x x x x x x x o o o o o";
  12142. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  12143. "x x x x x x x x x x x i i i i i";
  12144. ;
  12145. memory "lock"
  12146. size = 1;
  12147. min_write_delay = 4500;
  12148. max_write_delay = 4500;
  12149. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  12150. "x x x x x x x x x x x x x x o o";
  12151. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  12152. "x x x x x x x x 1 1 1 1 1 1 i i";
  12153. ;
  12154. memory "calibration"
  12155. size = 1;
  12156. read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
  12157. "0 0 0 0 0 0 0 0 o o o o o o o o";
  12158. ;
  12159. memory "signature"
  12160. size = 3;
  12161. read = "0 0 1 1 0 0 0 0 0 0 0 x x x x x",
  12162. "x x x x x x a1 a0 o o o o o o o o";
  12163. ;
  12164. ;
  12165. #------------------------------------------------------------
  12166. # Common values for reduced core tinys (4/5/9/10/20/40)
  12167. #------------------------------------------------------------
  12168. part
  12169. id = ".reduced_core_tiny";
  12170. desc = "Common values for reduced core tinys";
  12171. has_tpi = yes;
  12172. memory "signature"
  12173. size = 3;
  12174. offset = 0x3fc0;
  12175. page_size = 16;
  12176. ;
  12177. memory "fuse"
  12178. size = 1;
  12179. offset = 0x3f40;
  12180. page_size = 16;
  12181. blocksize = 4;
  12182. ;
  12183. memory "calibration"
  12184. size = 1;
  12185. offset = 0x3f80;
  12186. page_size = 16;
  12187. ;
  12188. memory "lockbits"
  12189. size = 1;
  12190. offset = 0x3f00;
  12191. page_size = 16;
  12192. ;
  12193. ;
  12194. #------------------------------------------------------------
  12195. # ATtiny4
  12196. #------------------------------------------------------------
  12197. part parent ".reduced_core_tiny"
  12198. id = "t4";
  12199. desc = "ATtiny4";
  12200. signature = 0x1e 0x8f 0x0a;
  12201. memory "flash"
  12202. size = 512;
  12203. offset = 0x4000;
  12204. page_size = 16;
  12205. blocksize = 128;
  12206. ;
  12207. ;
  12208. #------------------------------------------------------------
  12209. # ATtiny5
  12210. #------------------------------------------------------------
  12211. part parent "t4"
  12212. id = "t5";
  12213. desc = "ATtiny5";
  12214. signature = 0x1e 0x8f 0x09;
  12215. ;
  12216. #------------------------------------------------------------
  12217. # ATtiny9
  12218. #------------------------------------------------------------
  12219. part parent ".reduced_core_tiny"
  12220. id = "t9";
  12221. desc = "ATtiny9";
  12222. signature = 0x1e 0x90 0x08;
  12223. memory "flash"
  12224. size = 1024;
  12225. offset = 0x4000;
  12226. page_size = 16;
  12227. blocksize = 128;
  12228. ;
  12229. ;
  12230. #------------------------------------------------------------
  12231. # ATtiny10
  12232. #------------------------------------------------------------
  12233. part parent "t9"
  12234. id = "t10";
  12235. desc = "ATtiny10";
  12236. signature = 0x1e 0x90 0x03;
  12237. ;
  12238. #------------------------------------------------------------
  12239. # ATtiny20
  12240. #------------------------------------------------------------
  12241. part parent ".reduced_core_tiny"
  12242. id = "t20";
  12243. desc = "ATtiny20";
  12244. signature = 0x1e 0x91 0x0F;
  12245. memory "flash"
  12246. size = 2048;
  12247. offset = 0x4000;
  12248. page_size = 16;
  12249. blocksize = 128;
  12250. ;
  12251. ;
  12252. #------------------------------------------------------------
  12253. # ATtiny40
  12254. #------------------------------------------------------------
  12255. part parent ".reduced_core_tiny"
  12256. id = "t40";
  12257. desc = "ATtiny40";
  12258. signature = 0x1e 0x92 0x0E;
  12259. memory "flash"
  12260. size = 4096;
  12261. offset = 0x4000;
  12262. page_size = 64;
  12263. blocksize = 128;
  12264. ;
  12265. ;
  12266. #------------------------------------------------------------
  12267. # ATmega406
  12268. #------------------------------------------------------------
  12269. part
  12270. id = "m406";
  12271. desc = "ATMEGA406";
  12272. has_jtag = yes;
  12273. signature = 0x1e 0x95 0x07;
  12274. # STK500 parameters (parallel programming IO lines)
  12275. pagel = 0xa7;
  12276. bs2 = 0xa0;
  12277. serial = no;
  12278. parallel = yes;
  12279. # STK500v2 HV programming parameters, from XML
  12280. pp_controlstack = 0x0e, 0x1e, 0x0f, 0x1f, 0x2e, 0x3e, 0x2f, 0x3f,
  12281. 0x4e, 0x5e, 0x4f, 0x5f, 0x6e, 0x7e, 0x6f, 0x7f,
  12282. 0x66, 0x76, 0x67, 0x77, 0x6a, 0x7a, 0x6b, 0x7b,
  12283. 0xbe, 0xfd, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  12284. # JTAG ICE mkII parameters, also from XML files
  12285. allowfullpagebitstream = no;
  12286. enablepageprogramming = yes;
  12287. idr = 0x51;
  12288. rampz = 0x00;
  12289. spmcr = 0x57;
  12290. eecr = 0x3f;
  12291. memory "eeprom"
  12292. paged = no;
  12293. size = 512;
  12294. page_size = 4;
  12295. blocksize = 4;
  12296. readsize = 4;
  12297. num_pages = 128;
  12298. ;
  12299. memory "flash"
  12300. paged = yes;
  12301. size = 40960;
  12302. page_size = 128;
  12303. blocksize = 128;
  12304. readsize = 128;
  12305. num_pages = 320;
  12306. ;
  12307. memory "hfuse"
  12308. size = 1;
  12309. ;
  12310. memory "lfuse"
  12311. size = 1;
  12312. ;
  12313. memory "lockbits"
  12314. size = 1;
  12315. ;
  12316. memory "signature"
  12317. size = 3;
  12318. ;
  12319. ;