My Marlin configs for Fabrikator Mini and CTC i3 Pro B
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

avrdude_linux.conf 489KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478
  1. # $Id: avrdude.conf.in 916 2010-01-15 16:36:13Z joerg_wunsch $
  2. #
  3. # AVRDUDE Configuration File
  4. #
  5. # This file contains configuration data used by AVRDUDE which describes
  6. # the programming hardware pinouts and also provides part definitions.
  7. # AVRDUDE's "-C" command line option specifies the location of the
  8. # configuration file. The "-c" option names the programmer configuration
  9. # which must match one of the entry's "id" parameter. The "-p" option
  10. # identifies which part AVRDUDE is going to be programming and must match
  11. # one of the parts' "id" parameter.
  12. #
  13. # Possible entry formats are:
  14. #
  15. # programmer
  16. # id = <id1> [, <id2> [, <id3>] ...] ; # <idN> are quoted strings
  17. # desc = <description> ; # quoted string
  18. # type = par | stk500 | stk500v2 | stk500pp | stk500hvsp | stk500generic |
  19. # stk600 | stk600pp | stk600hvsp |
  20. # avr910 | butterfly | usbasp |
  21. # jtagmki | jtagmkii | jtagmkii_isp | jtagmkii_dw |
  22. # jtagmkII_avr32 | jtagmkii_pdi |
  23. # dragon_dw | dragon_jtag | dragon_isp | dragon_pp |
  24. # dragon_hvsp | dragon_pdi | arduino; # programmer type
  25. # baudrate = <num> ; # baudrate for avr910-programmer
  26. # vcc = <num1> [, <num2> ... ] ; # pin number(s)
  27. # reset = <num> ; # pin number
  28. # sck = <num> ; # pin number
  29. # mosi = <num> ; # pin number
  30. # miso = <num> ; # pin number
  31. # errled = <num> ; # pin number
  32. # rdyled = <num> ; # pin number
  33. # pgmled = <num> ; # pin number
  34. # vfyled = <num> ; # pin number
  35. # ;
  36. #
  37. # part
  38. # id = <id> ; # quoted string
  39. # desc = <description> ; # quoted string
  40. # has_jtag = <yes/no> ; # part has JTAG i/f
  41. # has_debugwire = <yes/no> ; # part has debugWire i/f
  42. # has_pdi = <yes/no> ; # part has PDI i/f
  43. # has_tpi = <yes/no> ; # part has TPI i/f
  44. # devicecode = <num> ; # deprecated, use stk500_devcode
  45. # stk500_devcode = <num> ; # numeric
  46. # avr910_devcode = <num> ; # numeric
  47. # signature = <num> <num> <num> ; # signature bytes
  48. # chip_erase_delay = <num> ; # micro-seconds
  49. # reset = dedicated | io;
  50. # retry_pulse = reset | sck;
  51. # pgm_enable = <instruction format> ;
  52. # chip_erase = <instruction format> ;
  53. # chip_erase_delay = <num> ; # chip erase delay (us)
  54. # # STK500 parameters (parallel programming IO lines)
  55. # pagel = <num> ; # pin name in hex, i.e., 0xD7
  56. # bs2 = <num> ; # pin name in hex, i.e., 0xA0
  57. # serial = <yes/no> ; # can use serial downloading
  58. # parallel = <yes/no/pseudo>; # can use par. programming
  59. # # STK500v2 parameters, to be taken from Atmel's XML files
  60. # timeout = <num> ;
  61. # stabdelay = <num> ;
  62. # cmdexedelay = <num> ;
  63. # synchloops = <num> ;
  64. # bytedelay = <num> ;
  65. # pollvalue = <num> ;
  66. # pollindex = <num> ;
  67. # predelay = <num> ;
  68. # postdelay = <num> ;
  69. # pollmethod = <num> ;
  70. # mode = <num> ;
  71. # delay = <num> ;
  72. # blocksize = <num> ;
  73. # readsize = <num> ;
  74. # hvspcmdexedelay = <num> ;
  75. # # STK500v2 HV programming parameters, from XML
  76. # pp_controlstack = <num>, <num>, ...; # PP only
  77. # hvsp_controlstack = <num>, <num>, ...; # HVSP only
  78. # hventerstabdelay = <num>;
  79. # progmodedelay = <num>; # PP only
  80. # latchcycles = <num>;
  81. # togglevtg = <num>;
  82. # poweroffdelay = <num>;
  83. # resetdelayms = <num>;
  84. # resetdelayus = <num>;
  85. # hvleavestabdelay = <num>;
  86. # resetdelay = <num>;
  87. # synchcycles = <num>; # HVSP only
  88. # chiperasepulsewidth = <num>; # PP only
  89. # chiperasepolltimeout = <num>;
  90. # chiperasetime = <num>; # HVSP only
  91. # programfusepulsewidth = <num>; # PP only
  92. # programfusepolltimeout = <num>;
  93. # programlockpulsewidth = <num>; # PP only
  94. # programlockpolltimeout = <num>;
  95. # # JTAG ICE mkII parameters, also from XML files
  96. # allowfullpagebitstream = <yes/no> ;
  97. # enablepageprogramming = <yes/no> ;
  98. # idr = <num> ; # IO addr of IDR (OCD) reg.
  99. # rampz = <num> ; # IO addr of RAMPZ reg.
  100. # spmcr = <num> ; # mem addr of SPMC[S]R reg.
  101. # eecr = <num> ; # mem addr of EECR reg.
  102. # # (only when != 0x3c)
  103. # is_avr32 = <yes/no> ; # AVR32 part
  104. #
  105. # memory <memtype>
  106. # paged = <yes/no> ; # yes / no
  107. # size = <num> ; # bytes
  108. # page_size = <num> ; # bytes
  109. # num_pages = <num> ; # numeric
  110. # min_write_delay = <num> ; # micro-seconds
  111. # max_write_delay = <num> ; # micro-seconds
  112. # readback_p1 = <num> ; # byte value
  113. # readback_p2 = <num> ; # byte value
  114. # pwroff_after_write = <yes/no> ; # yes / no
  115. # read = <instruction format> ;
  116. # write = <instruction format> ;
  117. # read_lo = <instruction format> ;
  118. # read_hi = <instruction format> ;
  119. # write_lo = <instruction format> ;
  120. # write_hi = <instruction format> ;
  121. # loadpage_lo = <instruction format> ;
  122. # loadpage_hi = <instruction format> ;
  123. # writepage = <instruction format> ;
  124. # ;
  125. # ;
  126. #
  127. # If any of the above parameters are not specified, the default value
  128. # of 0 is used for numerics or the empty string ("") for string
  129. # values. If a required parameter is left empty, AVRDUDE will
  130. # complain.
  131. #
  132. # NOTES:
  133. # * 'devicecode' is the device code used by the STK500 (see codes
  134. # listed below)
  135. # * Not all memory types will implement all instructions.
  136. # * AVR Fuse bits and Lock bits are implemented as a type of memory.
  137. # * Example memory types are:
  138. # "flash", "eeprom", "fuse", "lfuse" (low fuse), "hfuse" (high
  139. # fuse), "signature", "calibration", "lock"
  140. # * The memory type specified on the avrdude command line must match
  141. # one of the memory types defined for the specified chip.
  142. # * The pwroff_after_write flag causes avrdude to attempt to
  143. # power the device off and back on after an unsuccessful write to
  144. # the affected memory area if VCC programmer pins are defined. If
  145. # VCC pins are not defined for the programmer, a message
  146. # indicating that the device needs a power-cycle is printed out.
  147. # This flag was added to work around a problem with the
  148. # at90s4433/2333's; see the at90s4433 errata at:
  149. #
  150. # http://www.atmel.com/atmel/acrobat/doc1280.pdf
  151. #
  152. # INSTRUCTION FORMATS
  153. #
  154. # Instruction formats are specified as a comma seperated list of
  155. # string values containing information (bit specifiers) about each
  156. # of the 32 bits of the instruction. Bit specifiers may be one of
  157. # the following formats:
  158. #
  159. # '1' = the bit is always set on input as well as output
  160. #
  161. # '0' = the bit is always clear on input as well as output
  162. #
  163. # 'x' = the bit is ignored on input and output
  164. #
  165. # 'a' = the bit is an address bit, the bit-number matches this bit
  166. # specifier's position within the current instruction byte
  167. #
  168. # 'aN' = the bit is the Nth address bit, bit-number = N, i.e., a12
  169. # is address bit 12 on input, a0 is address bit 0.
  170. #
  171. # 'i' = the bit is an input data bit
  172. #
  173. # 'o' = the bit is an output data bit
  174. #
  175. # Each instruction must be composed of 32 bit specifiers. The
  176. # instruction specification closely follows the instruction data
  177. # provided in Atmel's data sheets for their parts.
  178. #
  179. # See below for some examples.
  180. #
  181. #
  182. # The following are STK500 part device codes to use for the
  183. # "devicecode" field of the part. These came from Atmel's software
  184. # section avr061.zip which accompanies the application note
  185. # AVR061 available from:
  186. #
  187. # http://www.atmel.com/atmel/acrobat/doc2525.pdf
  188. #
  189. #define ATTINY10 0x10 /* the _old_ one that never existed! */
  190. #define ATTINY11 0x11
  191. #define ATTINY12 0x12
  192. #define ATTINY15 0x13
  193. #define ATTINY13 0x14
  194. #define ATTINY22 0x20
  195. #define ATTINY26 0x21
  196. #define ATTINY28 0x22
  197. #define ATTINY2313 0x23
  198. #define AT90S1200 0x33
  199. #define AT90S2313 0x40
  200. #define AT90S2323 0x41
  201. #define AT90S2333 0x42
  202. #define AT90S2343 0x43
  203. #define AT90S4414 0x50
  204. #define AT90S4433 0x51
  205. #define AT90S4434 0x52
  206. #define ATMEGA48 0x59
  207. #define AT90S8515 0x60
  208. #define AT90S8535 0x61
  209. #define AT90C8534 0x62
  210. #define ATMEGA8515 0x63
  211. #define ATMEGA8535 0x64
  212. #define ATMEGA8 0x70
  213. #define ATMEGA88 0x73
  214. #define ATMEGA168 0x86
  215. #define ATMEGA161 0x80
  216. #define ATMEGA163 0x81
  217. #define ATMEGA16 0x82
  218. #define ATMEGA162 0x83
  219. #define ATMEGA169 0x84
  220. #define ATMEGA323 0x90
  221. #define ATMEGA32 0x91
  222. #define ATMEGA64 0xA0
  223. #define ATMEGA103 0xB1
  224. #define ATMEGA128 0xB2
  225. #define AT90CAN128 0xB3
  226. #define AT90CAN64 0xB3
  227. #define AT90CAN32 0xB3
  228. #define AT86RF401 0xD0
  229. #define AT89START 0xE0
  230. #define AT89S51 0xE0
  231. #define AT89S52 0xE1
  232. # The following table lists the devices in the original AVR910
  233. # appnote:
  234. # |Device |Signature | Code |
  235. # +-------+----------+------+
  236. # |tiny12 | 1E 90 05 | 0x55 |
  237. # |tiny15 | 1E 90 06 | 0x56 |
  238. # | | | |
  239. # | S1200 | 1E 90 01 | 0x13 |
  240. # | | | |
  241. # | S2313 | 1E 91 01 | 0x20 |
  242. # | S2323 | 1E 91 02 | 0x48 |
  243. # | S2333 | 1E 91 05 | 0x34 |
  244. # | S2343 | 1E 91 03 | 0x4C |
  245. # | | | |
  246. # | S4414 | 1E 92 01 | 0x28 |
  247. # | S4433 | 1E 92 03 | 0x30 |
  248. # | S4434 | 1E 92 02 | 0x6C |
  249. # | | | |
  250. # | S8515 | 1E 93 01 | 0x38 |
  251. # | S8535 | 1E 93 03 | 0x68 |
  252. # | | | |
  253. # |mega32 | 1E 95 01 | 0x72 |
  254. # |mega83 | 1E 93 05 | 0x65 |
  255. # |mega103| 1E 97 01 | 0x41 |
  256. # |mega161| 1E 94 01 | 0x60 |
  257. # |mega163| 1E 94 02 | 0x64 |
  258. # Appnote AVR109 also has a table of AVR910 device codes, which
  259. # lists:
  260. # dev avr910 signature
  261. # ATmega8 0x77 0x1E 0x93 0x07
  262. # ATmega8515 0x3B 0x1E 0x93 0x06
  263. # ATmega8535 0x6A 0x1E 0x93 0x08
  264. # ATmega16 0x75 0x1E 0x94 0x03
  265. # ATmega162 0x63 0x1E 0x94 0x04
  266. # ATmega163 0x66 0x1E 0x94 0x02
  267. # ATmega169 0x79 0x1E 0x94 0x05
  268. # ATmega32 0x7F 0x1E 0x95 0x02
  269. # ATmega323 0x73 0x1E 0x95 0x01
  270. # ATmega64 0x46 0x1E 0x96 0x02
  271. # ATmega128 0x44 0x1E 0x97 0x02
  272. #
  273. # These codes refer to "BOOT" device codes which are apparently
  274. # different than standard device codes, for whatever reasons
  275. # (often one above the standard code).
  276. # There are several extended versions of AVR910 implementations around
  277. # in the Internet. These add the following codes (only devices that
  278. # actually exist are listed):
  279. # ATmega8515 0x3A
  280. # ATmega128 0x43
  281. # ATmega64 0x45
  282. # ATtiny26 0x5E
  283. # ATmega8535 0x69
  284. # ATmega32 0x72
  285. # ATmega16 0x74
  286. # ATmega8 0x76
  287. # ATmega169 0x78
  288. #
  289. # Overall avrdude defaults
  290. #
  291. default_parallel = "/dev/parport0";
  292. default_serial = "/dev/ttyS0";
  293. #
  294. # PROGRAMMER DEFINITIONS
  295. #
  296. programmer
  297. id = "arduino";
  298. desc = "Arduino";
  299. type = arduino;
  300. ;
  301. programmer
  302. id = "avrisp";
  303. desc = "Atmel AVR ISP";
  304. type = stk500;
  305. ;
  306. programmer
  307. id = "avrispv2";
  308. desc = "Atmel AVR ISP V2";
  309. type = stk500v2;
  310. ;
  311. programmer
  312. id = "avrispmkII";
  313. desc = "Atmel AVR ISP mkII";
  314. type = stk500v2;
  315. ;
  316. programmer
  317. id = "avrisp2";
  318. desc = "Atmel AVR ISP mkII";
  319. type = stk500v2;
  320. ;
  321. programmer
  322. id = "buspirate";
  323. desc = "The Bus Pirate";
  324. type = buspirate;
  325. ;
  326. # This is supposed to be the "default" STK500 entry.
  327. # Attempts to select the correct firmware version
  328. # by probing for it. Better use one of the entries
  329. # below instead.
  330. programmer
  331. id = "stk500";
  332. desc = "Atmel STK500";
  333. type = stk500generic;
  334. ;
  335. programmer
  336. id = "stk500v1";
  337. desc = "Atmel STK500 Version 1.x firmware";
  338. type = stk500;
  339. ;
  340. programmer
  341. id = "mib510";
  342. desc = "Crossbow MIB510 programming board";
  343. type = stk500;
  344. ;
  345. programmer
  346. id = "stk500v2";
  347. desc = "Atmel STK500 Version 2.x firmware";
  348. type = stk500v2;
  349. ;
  350. programmer
  351. id = "stk500pp";
  352. desc = "Atmel STK500 V2 in parallel programming mode";
  353. type = stk500pp;
  354. ;
  355. programmer
  356. id = "stk500hvsp";
  357. desc = "Atmel STK500 V2 in high-voltage serial programming mode";
  358. type = stk500hvsp;
  359. ;
  360. programmer
  361. id = "stk600";
  362. desc = "Atmel STK600";
  363. type = stk600;
  364. ;
  365. programmer
  366. id = "stk600pp";
  367. desc = "Atmel STK600 in parallel programming mode";
  368. type = stk600pp;
  369. ;
  370. programmer
  371. id = "stk600hvsp";
  372. desc = "Atmel STK600 in high-voltage serial programming mode";
  373. type = stk600hvsp;
  374. ;
  375. programmer
  376. id = "avr910";
  377. desc = "Atmel Low Cost Serial Programmer";
  378. type = avr910;
  379. ;
  380. programmer
  381. id = "usbasp";
  382. desc = "USBasp, http://www.fischl.de/usbasp/";
  383. type = usbasp;
  384. ;
  385. programmer
  386. id = "usbtiny";
  387. desc = "USBtiny simple USB programmer, http://www.ladyada.net/make/usbtinyisp/";
  388. type = usbtiny;
  389. ;
  390. programmer
  391. id = "butterfly";
  392. desc = "Atmel Butterfly Development Board";
  393. type = butterfly;
  394. ;
  395. programmer
  396. id = "avr109";
  397. desc = "Atmel AppNote AVR109 Boot Loader";
  398. type = butterfly;
  399. ;
  400. programmer
  401. id = "avr911";
  402. desc = "Atmel AppNote AVR911 AVROSP";
  403. type = butterfly;
  404. ;
  405. programmer
  406. id = "jtagmkI";
  407. desc = "Atmel JTAG ICE (mkI)";
  408. baudrate = 115200; # default is 115200
  409. type = jtagmki;
  410. ;
  411. # easier to type
  412. programmer
  413. id = "jtag1";
  414. desc = "Atmel JTAG ICE (mkI)";
  415. baudrate = 115200; # default is 115200
  416. type = jtagmki;
  417. ;
  418. # easier to type
  419. programmer
  420. id = "jtag1slow";
  421. desc = "Atmel JTAG ICE (mkI)";
  422. baudrate = 19200;
  423. type = jtagmki;
  424. ;
  425. programmer
  426. id = "jtagmkII";
  427. desc = "Atmel JTAG ICE mkII";
  428. baudrate = 19200; # default is 19200
  429. type = jtagmkii;
  430. ;
  431. # easier to type
  432. programmer
  433. id = "jtag2slow";
  434. desc = "Atmel JTAG ICE mkII";
  435. baudrate = 19200; # default is 19200
  436. type = jtagmkii;
  437. ;
  438. # JTAG ICE mkII @ 115200 Bd
  439. programmer
  440. id = "jtag2fast";
  441. desc = "Atmel JTAG ICE mkII";
  442. baudrate = 115200;
  443. type = jtagmkii;
  444. ;
  445. # make the fast one the default, people will love that
  446. programmer
  447. id = "jtag2";
  448. desc = "Atmel JTAG ICE mkII";
  449. baudrate = 115200;
  450. type = jtagmkii;
  451. ;
  452. # JTAG ICE mkII in ISP mode
  453. programmer
  454. id = "jtag2isp";
  455. desc = "Atmel JTAG ICE mkII in ISP mode";
  456. baudrate = 115200;
  457. type = jtagmkii_isp;
  458. ;
  459. # JTAG ICE mkII in debugWire mode
  460. programmer
  461. id = "jtag2dw";
  462. desc = "Atmel JTAG ICE mkII in debugWire mode";
  463. baudrate = 115200;
  464. type = jtagmkii_dw;
  465. ;
  466. # JTAG ICE mkII in AVR32 mode
  467. programmer
  468. id = "jtagmkII_avr32";
  469. desc = "Atmel JTAG ICE mkII im AVR32 mode";
  470. baudrate = 115200;
  471. type = jtagmkii_avr32;
  472. ;
  473. # JTAG ICE mkII in AVR32 mode
  474. programmer
  475. id = "jtag2avr32";
  476. desc = "Atmel JTAG ICE mkII im AVR32 mode";
  477. baudrate = 115200;
  478. type = jtagmkii_avr32;
  479. ;
  480. # JTAG ICE mkII in PDI mode
  481. programmer
  482. id = "jtag2pdi";
  483. desc = "Atmel JTAG ICE mkII PDI mode";
  484. baudrate = 115200;
  485. type = jtagmkii_pdi;
  486. ;
  487. # AVR Dragon in JTAG mode
  488. programmer
  489. id = "dragon_jtag";
  490. desc = "Atmel AVR Dragon in JTAG mode";
  491. baudrate = 115200;
  492. type = dragon_jtag;
  493. ;
  494. # AVR Dragon in ISP mode
  495. programmer
  496. id = "dragon_isp";
  497. desc = "Atmel AVR Dragon in ISP mode";
  498. baudrate = 115200;
  499. type = dragon_isp;
  500. ;
  501. # AVR Dragon in PP mode
  502. programmer
  503. id = "dragon_pp";
  504. desc = "Atmel AVR Dragon in PP mode";
  505. baudrate = 115200;
  506. type = dragon_pp;
  507. ;
  508. # AVR Dragon in HVSP mode
  509. programmer
  510. id = "dragon_hvsp";
  511. desc = "Atmel AVR Dragon in HVSP mode";
  512. baudrate = 115200;
  513. type = dragon_hvsp;
  514. ;
  515. # AVR Dragon in debugWire mode
  516. programmer
  517. id = "dragon_dw";
  518. desc = "Atmel AVR Dragon in debugWire mode";
  519. baudrate = 115200;
  520. type = dragon_dw;
  521. ;
  522. # AVR Dragon in PDI mode
  523. programmer
  524. id = "dragon_pdi";
  525. desc = "Atmel AVR Dragon in PDI mode";
  526. baudrate = 115200;
  527. type = dragon_pdi;
  528. ;
  529. programmer
  530. id = "pavr";
  531. desc = "Jason Kyle's pAVR Serial Programmer";
  532. type = avr910;
  533. ;
  534. # Parallel port programmers.
  535. programmer
  536. id = "bsd";
  537. desc = "Brian Dean's Programmer, http://www.bsdhome.com/avrdude/";
  538. type = par;
  539. vcc = 2, 3, 4, 5;
  540. reset = 7;
  541. sck = 8;
  542. mosi = 9;
  543. miso = 10;
  544. ;
  545. programmer
  546. id = "stk200";
  547. desc = "STK200";
  548. type = par;
  549. buff = 4, 5;
  550. sck = 6;
  551. mosi = 7;
  552. reset = 9;
  553. miso = 10;
  554. ;
  555. # The programming dongle used by the popular Ponyprog
  556. # utility. It is almost similar to the STK200 one,
  557. # except that there is a LED indicating that the
  558. # programming is currently in progress.
  559. programmer
  560. id = "pony-stk200";
  561. desc = "Pony Prog STK200";
  562. type = par;
  563. buff = 4, 5;
  564. sck = 6;
  565. mosi = 7;
  566. reset = 9;
  567. miso = 10;
  568. pgmled = 8;
  569. ;
  570. programmer
  571. id = "dt006";
  572. desc = "Dontronics DT006";
  573. type = par;
  574. reset = 4;
  575. sck = 5;
  576. mosi = 2;
  577. miso = 11;
  578. ;
  579. programmer
  580. id = "bascom";
  581. desc = "Bascom SAMPLE programming cable";
  582. type = par;
  583. reset = 4;
  584. sck = 5;
  585. mosi = 2;
  586. miso = 11;
  587. ;
  588. programmer
  589. id = "alf";
  590. desc = "Nightshade ALF-PgmAVR, http://nightshade.homeip.net/";
  591. type = par;
  592. vcc = 2, 3, 4, 5;
  593. buff = 6;
  594. reset = 7;
  595. sck = 8;
  596. mosi = 9;
  597. miso = 10;
  598. errled = 1;
  599. rdyled = 14;
  600. pgmled = 16;
  601. vfyled = 17;
  602. ;
  603. programmer
  604. id = "sp12";
  605. desc = "Steve Bolt's Programmer";
  606. type = par;
  607. vcc = 4,5,6,7,8;
  608. reset = 3;
  609. sck = 2;
  610. mosi = 9;
  611. miso = 11;
  612. ;
  613. programmer
  614. id = "picoweb";
  615. desc = "Picoweb Programming Cable, http://www.picoweb.net/";
  616. type = par;
  617. reset = 2;
  618. sck = 3;
  619. mosi = 4;
  620. miso = 13;
  621. ;
  622. programmer
  623. id = "abcmini";
  624. desc = "ABCmini Board, aka Dick Smith HOTCHIP";
  625. type = par;
  626. reset = 4;
  627. sck = 3;
  628. mosi = 2;
  629. miso = 10;
  630. ;
  631. programmer
  632. id = "futurlec";
  633. desc = "Futurlec.com programming cable.";
  634. type = par;
  635. reset = 3;
  636. sck = 2;
  637. mosi = 1;
  638. miso = 10;
  639. ;
  640. # From the contributor of the "xil" jtag cable:
  641. # The "vcc" definition isn't really vcc (the cable gets its power from
  642. # the programming circuit) but is necessary to switch one of the
  643. # buffer lines (trying to add it to the "buff" lines doesn't work).
  644. # With this, TMS connects to RESET, TDI to MOSI, TDO to MISO and TCK
  645. # to SCK (plus vcc/gnd of course)
  646. programmer
  647. id = "xil";
  648. desc = "Xilinx JTAG cable";
  649. type = par;
  650. mosi = 2;
  651. sck = 3;
  652. reset = 4;
  653. buff = 5;
  654. miso = 13;
  655. vcc = 6;
  656. ;
  657. programmer
  658. id = "dapa";
  659. desc = "Direct AVR Parallel Access cable";
  660. type = par;
  661. vcc = 3;
  662. reset = 16;
  663. sck = 1;
  664. mosi = 2;
  665. miso = 11;
  666. ;
  667. programmer
  668. id = "atisp";
  669. desc = "AT-ISP V1.1 programming cable for AVR-SDK1 from <http://micro-research.co.th/> micro-research.co.th";
  670. type = par;
  671. reset = ~6;
  672. sck = ~8;
  673. mosi = ~7;
  674. miso = ~10;
  675. ;
  676. programmer
  677. id = "ere-isp-avr";
  678. desc = "ERE ISP-AVR <http://www.ere.co.th/download/sch050713.pdf>";
  679. type = par;
  680. reset = ~4;
  681. sck = 3;
  682. mosi = 2;
  683. miso = 10;
  684. ;
  685. programmer
  686. id = "blaster";
  687. desc = "Altera ByteBlaster";
  688. type = par;
  689. sck = 2;
  690. miso = 11;
  691. reset = 3;
  692. mosi = 8;
  693. buff = 14;
  694. ;
  695. # It is almost same as pony-stk200, except vcc on pin 5 to auto
  696. # disconnect port (download on http://electropol.free.fr)
  697. programmer
  698. id = "frank-stk200";
  699. desc = "Frank STK200";
  700. type = par;
  701. vcc = 5;
  702. sck = 6;
  703. mosi = 7;
  704. reset = 9;
  705. miso = 10;
  706. pgmled = 8;
  707. ;
  708. # The AT98ISP Cable is a simple parallel dongle for AT89 family.
  709. # http://www.atmel.com/dyn/products/tools_card.asp?tool_id=2877
  710. programmer
  711. id = "89isp";
  712. desc = "Atmel at89isp cable";
  713. type = par;
  714. reset = 17;
  715. sck = 1;
  716. mosi = 2;
  717. miso = 10;
  718. ;
  719. #
  720. # some ultra cheap programmers use bitbanging on the
  721. # serialport.
  722. #
  723. # PC - DB9 - Pins for RS232:
  724. #
  725. # GND 5 -- |O
  726. # | O| <- 9 RI
  727. # DTR 4 <- |O |
  728. # | O| <- 8 CTS
  729. # TXD 3 <- |O |
  730. # | O| -> 7 RTS
  731. # RXD 2 -> |O |
  732. # | O| <- 6 DSR
  733. # DCD 1 -> |O
  734. #
  735. # Using RXD is currently not supported.
  736. # Using RI is not supported under Win32 but is supported under Posix.
  737. # serial ponyprog design (dasa2 in uisp)
  738. # reset=!txd sck=rts mosi=dtr miso=cts
  739. programmer
  740. id = "ponyser";
  741. desc = "design ponyprog serial, reset=!txd sck=rts mosi=dtr miso=cts";
  742. type = serbb;
  743. reset = ~3;
  744. sck = 7;
  745. mosi = 4;
  746. miso = 8;
  747. ;
  748. # Same as above, different name
  749. # reset=!txd sck=rts mosi=dtr miso=cts
  750. programmer
  751. id = "siprog";
  752. desc = "Lancos SI-Prog <http://www.lancos.com/siprogsch.html>";
  753. type = serbb;
  754. reset = ~3;
  755. sck = 7;
  756. mosi = 4;
  757. miso = 8;
  758. ;
  759. # unknown (dasa in uisp)
  760. # reset=rts sck=dtr mosi=txd miso=cts
  761. programmer
  762. id = "dasa";
  763. desc = "serial port banging, reset=rts sck=dtr mosi=txd miso=cts";
  764. type = serbb;
  765. reset = 7;
  766. sck = 4;
  767. mosi = 3;
  768. miso = 8;
  769. ;
  770. # unknown (dasa3 in uisp)
  771. # reset=!dtr sck=rts mosi=txd miso=cts
  772. programmer
  773. id = "dasa3";
  774. desc = "serial port banging, reset=!dtr sck=rts mosi=txd miso=cts";
  775. type = serbb;
  776. reset = ~4;
  777. sck = 7;
  778. mosi = 3;
  779. miso = 8;
  780. ;
  781. # C2N232i (jumper configuration "auto")
  782. # reset=dtr sck=!rts mosi=!txd miso=!cts
  783. programmer
  784. id = "c2n232i";
  785. desc = "serial port banging, reset=dtr sck=!rts mosi=!txd miso=!cts";
  786. type = serbb;
  787. reset = 4;
  788. sck = ~7;
  789. mosi = ~3;
  790. miso = ~8;
  791. ;
  792. #
  793. # PART DEFINITIONS
  794. #
  795. #------------------------------------------------------------
  796. # ATtiny11
  797. #------------------------------------------------------------
  798. # This is an HVSP-only device.
  799. part
  800. id = "t11";
  801. desc = "ATtiny11";
  802. stk500_devcode = 0x11;
  803. signature = 0x1e 0x90 0x04;
  804. chip_erase_delay = 20000;
  805. timeout = 200;
  806. hvsp_controlstack =
  807. 0x4C, 0x0C, 0x1C, 0x2C, 0x3C, 0x64, 0x74, 0x00,
  808. 0x68, 0x78, 0x68, 0x68, 0x00, 0x00, 0x68, 0x78,
  809. 0x78, 0x00, 0x6D, 0x0C, 0x80, 0x40, 0x20, 0x10,
  810. 0x11, 0x08, 0x04, 0x02, 0x03, 0x08, 0x04, 0x00;
  811. hventerstabdelay = 100;
  812. progmodedelay = 0;
  813. hvspcmdexedelay = 0;
  814. synchcycles = 6;
  815. latchcycles = 1;
  816. togglevtg = 1;
  817. poweroffdelay = 25;
  818. resetdelayms = 0;
  819. resetdelayus = 50;
  820. hvleavestabdelay = 100;
  821. resetdelay = 25;
  822. chiperasepolltimeout = 40;
  823. chiperasetime = 0;
  824. programfusepolltimeout = 25;
  825. programlockpolltimeout = 25;
  826. memory "eeprom"
  827. size = 64;
  828. blocksize = 64;
  829. readsize = 256;
  830. delay = 5;
  831. ;
  832. memory "flash"
  833. size = 1024;
  834. blocksize = 128;
  835. readsize = 256;
  836. delay = 3;
  837. ;
  838. memory "signature"
  839. size = 3;
  840. ;
  841. memory "lock"
  842. size = 1;
  843. ;
  844. memory "calibration"
  845. size = 1;
  846. ;
  847. memory "fuse"
  848. size = 1;
  849. ;
  850. ;
  851. #------------------------------------------------------------
  852. # ATtiny12
  853. #------------------------------------------------------------
  854. part
  855. id = "t12";
  856. desc = "ATtiny12";
  857. stk500_devcode = 0x12;
  858. avr910_devcode = 0x55;
  859. signature = 0x1e 0x90 0x05;
  860. chip_erase_delay = 20000;
  861. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  862. "x x x x x x x x x x x x x x x x";
  863. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
  864. "x x x x x x x x x x x x x x x x";
  865. timeout = 200;
  866. stabdelay = 100;
  867. cmdexedelay = 25;
  868. synchloops = 32;
  869. bytedelay = 0;
  870. pollindex = 3;
  871. pollvalue = 0x53;
  872. predelay = 1;
  873. postdelay = 1;
  874. pollmethod = 0;
  875. hvsp_controlstack =
  876. 0x4C, 0x0C, 0x1C, 0x2C, 0x3C, 0x64, 0x74, 0x00,
  877. 0x68, 0x78, 0x68, 0x68, 0x00, 0x00, 0x68, 0x78,
  878. 0x78, 0x00, 0x6D, 0x0C, 0x80, 0x40, 0x20, 0x10,
  879. 0x11, 0x08, 0x04, 0x02, 0x03, 0x08, 0x04, 0x00;
  880. hventerstabdelay = 100;
  881. hvspcmdexedelay = 0;
  882. synchcycles = 6;
  883. latchcycles = 1;
  884. togglevtg = 1;
  885. poweroffdelay = 25;
  886. resetdelayms = 0;
  887. resetdelayus = 50;
  888. hvleavestabdelay = 100;
  889. resetdelay = 25;
  890. chiperasepolltimeout = 40;
  891. chiperasetime = 0;
  892. programfusepolltimeout = 25;
  893. programlockpolltimeout = 25;
  894. memory "eeprom"
  895. size = 64;
  896. min_write_delay = 9000;
  897. max_write_delay = 20000;
  898. readback_p1 = 0xff;
  899. readback_p2 = 0xff;
  900. read = "1 0 1 0 0 0 0 0 x x x x x x x x",
  901. "x x a5 a4 a3 a2 a1 a0 o o o o o o o o";
  902. write = "1 1 0 0 0 0 0 0 x x x x x x x x",
  903. "x x a5 a4 a3 a2 a1 a0 i i i i i i i i";
  904. mode = 0x04;
  905. delay = 8;
  906. blocksize = 64;
  907. readsize = 256;
  908. ;
  909. memory "flash"
  910. size = 1024;
  911. min_write_delay = 4500;
  912. max_write_delay = 20000;
  913. readback_p1 = 0xff;
  914. readback_p2 = 0xff;
  915. read_lo = " 0 0 1 0 0 0 0 0",
  916. " x x x x x x x a8",
  917. " a7 a6 a5 a4 a3 a2 a1 a0",
  918. " o o o o o o o o";
  919. read_hi = " 0 0 1 0 1 0 0 0",
  920. " x x x x x x x a8",
  921. " a7 a6 a5 a4 a3 a2 a1 a0",
  922. " o o o o o o o o";
  923. write_lo = " 0 1 0 0 0 0 0 0",
  924. " x x x x x x x a8",
  925. " a7 a6 a5 a4 a3 a2 a1 a0",
  926. " i i i i i i i i";
  927. write_hi = " 0 1 0 0 1 0 0 0",
  928. " x x x x x x x a8",
  929. " a7 a6 a5 a4 a3 a2 a1 a0",
  930. " i i i i i i i i";
  931. mode = 0x04;
  932. delay = 5;
  933. blocksize = 128;
  934. readsize = 256;
  935. ;
  936. memory "signature"
  937. size = 3;
  938. read = "0 0 1 1 0 0 0 0 x x x x x x x x",
  939. "0 0 0 0 0 0 a1 a0 o o o o o o o o";
  940. ;
  941. memory "lock"
  942. size = 1;
  943. read = "0 1 0 1 1 0 0 0 x x x x x x x x",
  944. "x x x x x x x x x x x x x o o x";
  945. write = "1 0 1 0 1 1 0 0 1 1 1 1 1 i i 1",
  946. "x x x x x x x x x x x x x x x x";
  947. min_write_delay = 9000;
  948. max_write_delay = 9000;
  949. ;
  950. memory "calibration"
  951. size = 1;
  952. read = "0 0 1 1 1 0 0 0 x x x x x x x x",
  953. "0 0 0 0 0 0 0 0 o o o o o o o o";
  954. ;
  955. memory "fuse"
  956. size = 1;
  957. read = "0 1 0 1 0 0 0 0 x x x x x x x x",
  958. "x x x x x x x x o o o o o o o o";
  959. write = "1 0 1 0 1 1 0 0 1 0 1 x x x x x",
  960. "x x x x x x x x i i i i i i i i";
  961. min_write_delay = 9000;
  962. max_write_delay = 9000;
  963. ;
  964. ;
  965. #------------------------------------------------------------
  966. # ATtiny13
  967. #------------------------------------------------------------
  968. part
  969. id = "t13";
  970. desc = "ATtiny13";
  971. has_debugwire = yes;
  972. flash_instr = 0xB4, 0x0E, 0x1E;
  973. eeprom_instr = 0xBB, 0xFE, 0xBB, 0xEE, 0xBB, 0xCC, 0xB2, 0x0D,
  974. 0xBC, 0x0E, 0xB4, 0x0E, 0xBA, 0x0D, 0xBB, 0xBC,
  975. 0x99, 0xE1, 0xBB, 0xAC;
  976. stk500_devcode = 0x14;
  977. signature = 0x1e 0x90 0x07;
  978. chip_erase_delay = 4000;
  979. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  980. "x x x x x x x x x x x x x x x x";
  981. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
  982. "x x x x x x x x x x x x x x x x";
  983. timeout = 200;
  984. stabdelay = 100;
  985. cmdexedelay = 25;
  986. synchloops = 32;
  987. bytedelay = 0;
  988. pollindex = 3;
  989. pollvalue = 0x53;
  990. predelay = 1;
  991. postdelay = 1;
  992. pollmethod = 1;
  993. hvsp_controlstack =
  994. 0x4C, 0x0C, 0x1C, 0x2C, 0x3C, 0x64, 0x74, 0x66,
  995. 0x68, 0x78, 0x68, 0x68, 0x7A, 0x6A, 0x68, 0x78,
  996. 0x78, 0x7D, 0x6D, 0x0C, 0x80, 0x40, 0x20, 0x10,
  997. 0x11, 0x08, 0x04, 0x02, 0x03, 0x08, 0x04, 0x00;
  998. hventerstabdelay = 100;
  999. progmodedelay = 0;
  1000. hvspcmdexedelay = 0;
  1001. synchcycles = 6;
  1002. latchcycles = 1;
  1003. togglevtg = 1;
  1004. poweroffdelay = 25;
  1005. resetdelayms = 0;
  1006. resetdelayus = 90;
  1007. hvleavestabdelay = 100;
  1008. resetdelay = 25;
  1009. chiperasepolltimeout = 40;
  1010. chiperasetime = 0;
  1011. programfusepolltimeout = 25;
  1012. programlockpolltimeout = 25;
  1013. memory "eeprom"
  1014. size = 64;
  1015. page_size = 4;
  1016. min_write_delay = 4000;
  1017. max_write_delay = 4000;
  1018. readback_p1 = 0xff;
  1019. readback_p2 = 0xff;
  1020. read = "1 0 1 0 0 0 0 0 0 0 0 x x x x x",
  1021. "x x a5 a4 a3 a2 a1 a0 o o o o o o o o";
  1022. write = "1 1 0 0 0 0 0 0 0 0 0 x x x x x",
  1023. "x x a5 a4 a3 a2 a1 a0 i i i i i i i i";
  1024. loadpage_lo = " 1 1 0 0 0 0 0 1",
  1025. " 0 0 0 0 0 0 0 0",
  1026. " 0 0 0 0 0 0 a1 a0",
  1027. " i i i i i i i i";
  1028. writepage = " 1 1 0 0 0 0 1 0",
  1029. " 0 0 x x x x x x",
  1030. " x x a5 a4 a3 a2 0 0",
  1031. " x x x x x x x x";
  1032. mode = 0x41;
  1033. delay = 5;
  1034. blocksize = 4;
  1035. readsize = 256;
  1036. ;
  1037. memory "flash"
  1038. paged = yes;
  1039. size = 1024;
  1040. page_size = 32;
  1041. num_pages = 32;
  1042. min_write_delay = 4500;
  1043. max_write_delay = 4500;
  1044. readback_p1 = 0xff;
  1045. readback_p2 = 0xff;
  1046. read_lo = " 0 0 1 0 0 0 0 0",
  1047. " 0 0 0 0 0 0 0 a8",
  1048. " a7 a6 a5 a4 a3 a2 a1 a0",
  1049. " o o o o o o o o";
  1050. read_hi = " 0 0 1 0 1 0 0 0",
  1051. " 0 0 0 0 0 0 0 a8",
  1052. " a7 a6 a5 a4 a3 a2 a1 a0",
  1053. " o o o o o o o o";
  1054. loadpage_lo = " 0 1 0 0 0 0 0 0",
  1055. " 0 0 0 x x x x x",
  1056. " x x x x a3 a2 a1 a0",
  1057. " i i i i i i i i";
  1058. loadpage_hi = " 0 1 0 0 1 0 0 0",
  1059. " 0 0 0 x x x x x",
  1060. " x x x x a3 a2 a1 a0",
  1061. " i i i i i i i i";
  1062. writepage = " 0 1 0 0 1 1 0 0",
  1063. " 0 0 0 0 0 0 0 a8",
  1064. " a7 a6 a5 a4 x x x x",
  1065. " x x x x x x x x";
  1066. mode = 0x41;
  1067. delay = 6;
  1068. blocksize = 32;
  1069. readsize = 256;
  1070. ;
  1071. memory "signature"
  1072. size = 3;
  1073. read = "0 0 1 1 0 0 0 0 0 0 0 x x x x x",
  1074. "x x x x x x a1 a0 o o o o o o o o";
  1075. ;
  1076. memory "lock"
  1077. size = 1;
  1078. min_write_delay = 4500;
  1079. max_write_delay = 4500;
  1080. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  1081. "x x x x x x x x x x o o o o o o";
  1082. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  1083. "x x x x x x x x 1 1 i i i i i i";
  1084. ;
  1085. memory "calibration"
  1086. size = 2;
  1087. read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
  1088. "0 0 0 0 0 0 0 a0 o o o o o o o o";
  1089. ;
  1090. memory "lfuse"
  1091. size = 1;
  1092. min_write_delay = 4500;
  1093. max_write_delay = 4500;
  1094. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  1095. "x x x x x x x x i i i i i i i i";
  1096. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  1097. "x x x x x x x x o o o o o o o o";
  1098. ;
  1099. memory "hfuse"
  1100. size = 1;
  1101. min_write_delay = 4500;
  1102. max_write_delay = 4500;
  1103. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  1104. "x x x x x x x x i i i i i i i i";
  1105. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  1106. "x x x x x x x x o o o o o o o o";
  1107. ;
  1108. ;
  1109. #------------------------------------------------------------
  1110. # ATtiny15
  1111. #------------------------------------------------------------
  1112. part
  1113. id = "t15";
  1114. desc = "ATtiny15";
  1115. stk500_devcode = 0x13;
  1116. avr910_devcode = 0x56;
  1117. signature = 0x1e 0x90 0x06;
  1118. chip_erase_delay = 8200;
  1119. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  1120. "x x x x x x x x x x x x x x x x";
  1121. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
  1122. "x x x x x x x x x x x x x x x x";
  1123. timeout = 200;
  1124. stabdelay = 100;
  1125. cmdexedelay = 25;
  1126. synchloops = 32;
  1127. bytedelay = 0;
  1128. pollindex = 3;
  1129. pollvalue = 0x53;
  1130. predelay = 1;
  1131. postdelay = 1;
  1132. pollmethod = 0;
  1133. hvsp_controlstack =
  1134. 0x4C, 0x0C, 0x1C, 0x2C, 0x3C, 0x64, 0x74, 0x00,
  1135. 0x68, 0x78, 0x68, 0x68, 0x00, 0x00, 0x68, 0x78,
  1136. 0x78, 0x00, 0x6D, 0x0C, 0x80, 0x40, 0x20, 0x10,
  1137. 0x11, 0x08, 0x04, 0x02, 0x03, 0x08, 0x04, 0x00;
  1138. hventerstabdelay = 100;
  1139. hvspcmdexedelay = 5;
  1140. synchcycles = 6;
  1141. latchcycles = 16;
  1142. togglevtg = 1;
  1143. poweroffdelay = 25;
  1144. resetdelayms = 0;
  1145. resetdelayus = 50;
  1146. hvleavestabdelay = 100;
  1147. resetdelay = 25;
  1148. chiperasepolltimeout = 40;
  1149. chiperasetime = 0;
  1150. programfusepolltimeout = 25;
  1151. programlockpolltimeout = 25;
  1152. memory "eeprom"
  1153. size = 64;
  1154. min_write_delay = 8200;
  1155. max_write_delay = 8200;
  1156. readback_p1 = 0xff;
  1157. readback_p2 = 0xff;
  1158. read = "1 0 1 0 0 0 0 0 x x x x x x x x",
  1159. "x x a5 a4 a3 a2 a1 a0 o o o o o o o o";
  1160. write = "1 1 0 0 0 0 0 0 x x x x x x x x",
  1161. "x x a5 a4 a3 a2 a1 a0 i i i i i i i i";
  1162. mode = 0x04;
  1163. delay = 10;
  1164. blocksize = 64;
  1165. readsize = 256;
  1166. ;
  1167. memory "flash"
  1168. size = 1024;
  1169. min_write_delay = 4100;
  1170. max_write_delay = 4100;
  1171. readback_p1 = 0xff;
  1172. readback_p2 = 0xff;
  1173. read_lo = " 0 0 1 0 0 0 0 0",
  1174. " x x x x x x x a8",
  1175. " a7 a6 a5 a4 a3 a2 a1 a0",
  1176. " o o o o o o o o";
  1177. read_hi = " 0 0 1 0 1 0 0 0",
  1178. " x x x x x x x a8",
  1179. " a7 a6 a5 a4 a3 a2 a1 a0",
  1180. " o o o o o o o o";
  1181. write_lo = " 0 1 0 0 0 0 0 0",
  1182. " x x x x x x x a8",
  1183. " a7 a6 a5 a4 a3 a2 a1 a0",
  1184. " i i i i i i i i";
  1185. write_hi = " 0 1 0 0 1 0 0 0",
  1186. " x x x x x x x a8",
  1187. " a7 a6 a5 a4 a3 a2 a1 a0",
  1188. " i i i i i i i i";
  1189. mode = 0x04;
  1190. delay = 5;
  1191. blocksize = 128;
  1192. readsize = 256;
  1193. ;
  1194. memory "signature"
  1195. size = 3;
  1196. read = "0 0 1 1 0 0 0 0 x x x x x x x x",
  1197. "0 0 0 0 0 0 a1 a0 o o o o o o o o";
  1198. ;
  1199. memory "lock"
  1200. size = 1;
  1201. read = "0 1 0 1 1 0 0 0 x x x x x x x x",
  1202. "x x x x x x x x x x x x x o o x";
  1203. write = "1 0 1 0 1 1 0 0 1 1 1 1 1 i i 1",
  1204. "x x x x x x x x x x x x x x x x";
  1205. min_write_delay = 9000;
  1206. max_write_delay = 9000;
  1207. ;
  1208. memory "calibration"
  1209. size = 1;
  1210. read = "0 0 1 1 1 0 0 0 x x x x x x x x",
  1211. "0 0 0 0 0 0 0 0 o o o o o o o o";
  1212. ;
  1213. memory "fuse"
  1214. size = 1;
  1215. read = "0 1 0 1 0 0 0 0 x x x x x x x x",
  1216. "x x x x x x x x o o o o x x o o";
  1217. write = "1 0 1 0 1 1 0 0 1 0 1 x x x x x",
  1218. "x x x x x x x x i i i i 1 1 i i";
  1219. min_write_delay = 9000;
  1220. max_write_delay = 9000;
  1221. ;
  1222. ;
  1223. #------------------------------------------------------------
  1224. # AT90s1200
  1225. #------------------------------------------------------------
  1226. part
  1227. id = "1200";
  1228. desc = "AT90S1200";
  1229. stk500_devcode = 0x33;
  1230. avr910_devcode = 0x13;
  1231. signature = 0x1e 0x90 0x01;
  1232. pagel = 0xd7;
  1233. bs2 = 0xa0;
  1234. chip_erase_delay = 20000;
  1235. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  1236. "x x x x x x x x x x x x x x x x";
  1237. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 0 0 0 0 0",
  1238. "x x x x x x x x x x x x x x x x";
  1239. timeout = 200;
  1240. stabdelay = 100;
  1241. cmdexedelay = 25;
  1242. synchloops = 1;
  1243. bytedelay = 0;
  1244. pollindex = 0;
  1245. pollvalue = 0xFF;
  1246. predelay = 1;
  1247. postdelay = 1;
  1248. pollmethod = 0;
  1249. pp_controlstack =
  1250. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  1251. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  1252. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  1253. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  1254. hventerstabdelay = 100;
  1255. progmodedelay = 0;
  1256. latchcycles = 0;
  1257. togglevtg = 0;
  1258. poweroffdelay = 0;
  1259. resetdelayms = 0;
  1260. resetdelayus = 0;
  1261. hvleavestabdelay = 15;
  1262. chiperasepulsewidth = 15;
  1263. chiperasepolltimeout = 0;
  1264. programfusepulsewidth = 2;
  1265. programfusepolltimeout = 0;
  1266. programlockpulsewidth = 0;
  1267. programlockpolltimeout = 1;
  1268. memory "eeprom"
  1269. size = 64;
  1270. min_write_delay = 4000;
  1271. max_write_delay = 9000;
  1272. readback_p1 = 0x00;
  1273. readback_p2 = 0xff;
  1274. read = "1 0 1 0 0 0 0 0 x x x x x x x x",
  1275. "x x a5 a4 a3 a2 a1 a0 o o o o o o o o";
  1276. write = "1 1 0 0 0 0 0 0 x x x x x x x x",
  1277. "x x a5 a4 a3 a2 a1 a0 i i i i i i i i";
  1278. mode = 0x04;
  1279. delay = 20;
  1280. blocksize = 32;
  1281. readsize = 256;
  1282. ;
  1283. memory "flash"
  1284. size = 1024;
  1285. min_write_delay = 4000;
  1286. max_write_delay = 9000;
  1287. readback_p1 = 0xff;
  1288. readback_p2 = 0xff;
  1289. read_lo = " 0 0 1 0 0 0 0 0",
  1290. " x x x x x x x a8",
  1291. " a7 a6 a5 a4 a3 a2 a1 a0",
  1292. " o o o o o o o o";
  1293. read_hi = " 0 0 1 0 1 0 0 0",
  1294. " x x x x x x x a8",
  1295. " a7 a6 a5 a4 a3 a2 a1 a0",
  1296. " o o o o o o o o";
  1297. write_lo = " 0 1 0 0 0 0 0 0",
  1298. " x x x x x x x a8",
  1299. " a7 a6 a5 a4 a3 a2 a1 a0",
  1300. " i i i i i i i i";
  1301. write_hi = " 0 1 0 0 1 0 0 0",
  1302. " x x x x x x x a8",
  1303. " a7 a6 a5 a4 a3 a2 a1 a0",
  1304. " i i i i i i i i";
  1305. mode = 0x02;
  1306. delay = 15;
  1307. blocksize = 128;
  1308. readsize = 256;
  1309. ;
  1310. memory "signature"
  1311. size = 3;
  1312. read = "0 0 1 1 0 0 0 0 x x x x x x x x",
  1313. "x x x x x x a1 a0 o o o o o o o o";
  1314. ;
  1315. memory "fuse"
  1316. size = 1;
  1317. ;
  1318. memory "lock"
  1319. size = 1;
  1320. min_write_delay = 9000;
  1321. max_write_delay = 20000;
  1322. write = "1 0 1 0 1 1 0 0 1 1 1 1 1 i i 1",
  1323. "x x x x x x x x x x x x x x x x";
  1324. ;
  1325. ;
  1326. #------------------------------------------------------------
  1327. # AT90s4414
  1328. #------------------------------------------------------------
  1329. part
  1330. id = "4414";
  1331. desc = "AT90S4414";
  1332. stk500_devcode = 0x50;
  1333. avr910_devcode = 0x28;
  1334. signature = 0x1e 0x92 0x01;
  1335. chip_erase_delay = 20000;
  1336. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  1337. "x x x x x x x x x x x x x x x x";
  1338. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 0 0 0 0 0",
  1339. "x x x x x x x x x x x x x x x x";
  1340. timeout = 200;
  1341. stabdelay = 100;
  1342. cmdexedelay = 25;
  1343. synchloops = 32;
  1344. bytedelay = 0;
  1345. pollindex = 3;
  1346. pollvalue = 0x53;
  1347. predelay = 1;
  1348. postdelay = 1;
  1349. pollmethod = 0;
  1350. pp_controlstack =
  1351. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  1352. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  1353. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  1354. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x01;
  1355. hventerstabdelay = 100;
  1356. progmodedelay = 0;
  1357. latchcycles = 0;
  1358. togglevtg = 0;
  1359. poweroffdelay = 0;
  1360. resetdelayms = 0;
  1361. resetdelayus = 0;
  1362. hvleavestabdelay = 15;
  1363. chiperasepulsewidth = 15;
  1364. chiperasepolltimeout = 0;
  1365. programfusepulsewidth = 2;
  1366. programfusepolltimeout = 0;
  1367. programlockpulsewidth = 0;
  1368. programlockpolltimeout = 1;
  1369. memory "eeprom"
  1370. size = 256;
  1371. min_write_delay = 9000;
  1372. max_write_delay = 20000;
  1373. readback_p1 = 0x80;
  1374. readback_p2 = 0x7f;
  1375. read = " 1 0 1 0 0 0 0 0 x x x x x x x a8",
  1376. "a7 a6 a5 a4 a3 a2 a1 a0 o o o o o o o o";
  1377. write = " 1 1 0 0 0 0 0 0 x x x x x x x a8",
  1378. "a7 a6 a5 a4 a3 a2 a1 a0 i i i i i i i i";
  1379. mode = 0x04;
  1380. delay = 12;
  1381. blocksize = 64;
  1382. readsize = 256;
  1383. ;
  1384. memory "flash"
  1385. size = 4096;
  1386. min_write_delay = 9000;
  1387. max_write_delay = 20000;
  1388. readback_p1 = 0x7f;
  1389. readback_p2 = 0x7f;
  1390. read_lo = " 0 0 1 0 0 0 0 0",
  1391. " x x x x a11 a10 a9 a8",
  1392. " a7 a6 a5 a4 a3 a2 a1 a0",
  1393. " o o o o o o o o";
  1394. read_hi = " 0 0 1 0 1 0 0 0",
  1395. " x x x x a11 a10 a9 a8",
  1396. " a7 a6 a5 a4 a3 a2 a1 a0",
  1397. " o o o o o o o o";
  1398. write_lo = " 0 1 0 0 0 0 0 0",
  1399. " x x x x a11 a10 a9 a8",
  1400. " a7 a6 a5 a4 a3 a2 a1 a0",
  1401. " i i i i i i i i";
  1402. write_hi = " 0 1 0 0 1 0 0 0",
  1403. " x x x x a11 a10 a9 a8",
  1404. " a7 a6 a5 a4 a3 a2 a1 a0",
  1405. " i i i i i i i i";
  1406. mode = 0x04;
  1407. delay = 12;
  1408. blocksize = 64;
  1409. readsize = 256;
  1410. ;
  1411. memory "signature"
  1412. size = 3;
  1413. read = "0 0 1 1 0 0 0 0 x x x x x x x x",
  1414. "x x x x x x a1 a0 o o o o o o o o";
  1415. ;
  1416. memory "fuse"
  1417. size = 1;
  1418. ;
  1419. memory "lock"
  1420. size = 1;
  1421. write = "1 0 1 0 1 1 0 0 1 1 1 1 1 i i 1",
  1422. "x x x x x x x x x x x x x x x x";
  1423. min_write_delay = 9000;
  1424. max_write_delay = 9000;
  1425. ;
  1426. ;
  1427. #------------------------------------------------------------
  1428. # AT90s2313
  1429. #------------------------------------------------------------
  1430. part
  1431. id = "2313";
  1432. desc = "AT90S2313";
  1433. stk500_devcode = 0x40;
  1434. avr910_devcode = 0x20;
  1435. signature = 0x1e 0x91 0x01;
  1436. chip_erase_delay = 20000;
  1437. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  1438. "x x x x x x x x x x x x x x x x";
  1439. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 0 0 0 0 0",
  1440. "x x x x x x x x x x x x x x x x";
  1441. timeout = 200;
  1442. stabdelay = 100;
  1443. cmdexedelay = 25;
  1444. synchloops = 32;
  1445. bytedelay = 0;
  1446. pollindex = 3;
  1447. pollvalue = 0x53;
  1448. predelay = 1;
  1449. postdelay = 1;
  1450. pollmethod = 0;
  1451. pp_controlstack =
  1452. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  1453. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  1454. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  1455. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  1456. hventerstabdelay = 100;
  1457. progmodedelay = 0;
  1458. latchcycles = 0;
  1459. togglevtg = 0;
  1460. poweroffdelay = 0;
  1461. resetdelayms = 0;
  1462. resetdelayus = 0;
  1463. hvleavestabdelay = 15;
  1464. chiperasepulsewidth = 15;
  1465. chiperasepolltimeout = 0;
  1466. programfusepulsewidth = 2;
  1467. programfusepolltimeout = 0;
  1468. programlockpulsewidth = 0;
  1469. programlockpolltimeout = 1;
  1470. memory "eeprom"
  1471. size = 128;
  1472. min_write_delay = 4000;
  1473. max_write_delay = 9000;
  1474. readback_p1 = 0x80;
  1475. readback_p2 = 0x7f;
  1476. read = "1 0 1 0 0 0 0 0 x x x x x x x x",
  1477. "x a6 a5 a4 a3 a2 a1 a0 o o o o o o o o";
  1478. write = "1 1 0 0 0 0 0 0 x x x x x x x x",
  1479. "x a6 a5 a4 a3 a2 a1 a0 i i i i i i i i";
  1480. mode = 0x04;
  1481. delay = 12;
  1482. blocksize = 64;
  1483. readsize = 256;
  1484. ;
  1485. memory "flash"
  1486. size = 2048;
  1487. min_write_delay = 4000;
  1488. max_write_delay = 9000;
  1489. readback_p1 = 0x7f;
  1490. readback_p2 = 0x7f;
  1491. read_lo = " 0 0 1 0 0 0 0 0",
  1492. " x x x x x x a9 a8",
  1493. " a7 a6 a5 a4 a3 a2 a1 a0",
  1494. " o o o o o o o o";
  1495. read_hi = " 0 0 1 0 1 0 0 0",
  1496. " x x x x x x a9 a8",
  1497. " a7 a6 a5 a4 a3 a2 a1 a0",
  1498. " o o o o o o o o";
  1499. write_lo = " 0 1 0 0 0 0 0 0",
  1500. " x x x x x x a9 a8",
  1501. " a7 a6 a5 a4 a3 a2 a1 a0",
  1502. " i i i i i i i i";
  1503. write_hi = " 0 1 0 0 1 0 0 0",
  1504. " x x x x x x a9 a8",
  1505. " a7 a6 a5 a4 a3 a2 a1 a0",
  1506. " i i i i i i i i";
  1507. mode = 0x04;
  1508. delay = 12;
  1509. blocksize = 128;
  1510. readsize = 256;
  1511. ;
  1512. memory "signature"
  1513. size = 3;
  1514. read = "0 0 1 1 0 0 0 0 x x x x x x x x",
  1515. "x x x x x x a1 a0 o o o o o o o o";
  1516. ;
  1517. memory "fuse"
  1518. size = 1;
  1519. ;
  1520. memory "lock"
  1521. size = 1;
  1522. write = "1 0 1 0 1 1 0 0 1 1 1 x x i i x",
  1523. "x x x x x x x x x x x x x x x x";
  1524. min_write_delay = 9000;
  1525. max_write_delay = 9000;
  1526. ;
  1527. ;
  1528. #------------------------------------------------------------
  1529. # AT90s2333
  1530. #------------------------------------------------------------
  1531. part
  1532. id = "2333";
  1533. ##### WARNING: No XML file for device 'AT90S2333'! #####
  1534. desc = "AT90S2333";
  1535. stk500_devcode = 0x42;
  1536. avr910_devcode = 0x34;
  1537. signature = 0x1e 0x91 0x05;
  1538. chip_erase_delay = 20000;
  1539. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  1540. "x x x x x x x x x x x x x x x x";
  1541. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 0 0 0 0 0",
  1542. "x x x x x x x x x x x x x x x x";
  1543. timeout = 200;
  1544. stabdelay = 100;
  1545. cmdexedelay = 25;
  1546. synchloops = 32;
  1547. bytedelay = 0;
  1548. pollindex = 3;
  1549. pollvalue = 0x53;
  1550. predelay = 1;
  1551. postdelay = 1;
  1552. pollmethod = 0;
  1553. pp_controlstack =
  1554. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  1555. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  1556. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  1557. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  1558. hventerstabdelay = 100;
  1559. progmodedelay = 0;
  1560. latchcycles = 0;
  1561. togglevtg = 0;
  1562. poweroffdelay = 0;
  1563. resetdelayms = 0;
  1564. resetdelayus = 0;
  1565. hvleavestabdelay = 15;
  1566. chiperasepulsewidth = 15;
  1567. chiperasepolltimeout = 0;
  1568. programfusepulsewidth = 2;
  1569. programfusepolltimeout = 0;
  1570. programlockpulsewidth = 0;
  1571. programlockpolltimeout = 1;
  1572. memory "eeprom"
  1573. size = 128;
  1574. min_write_delay = 9000;
  1575. max_write_delay = 20000;
  1576. readback_p1 = 0x00;
  1577. readback_p2 = 0xff;
  1578. read = "1 0 1 0 0 0 0 0 x x x x x x x x",
  1579. "x a6 a5 a4 a3 a2 a1 a0 o o o o o o o o";
  1580. write = "1 1 0 0 0 0 0 0 x x x x x x x x",
  1581. "x a6 a5 a4 a3 a2 a1 a0 i i i i i i i i";
  1582. mode = 0x04;
  1583. delay = 12;
  1584. blocksize = 128;
  1585. readsize = 256;
  1586. ;
  1587. memory "flash"
  1588. size = 2048;
  1589. min_write_delay = 9000;
  1590. max_write_delay = 20000;
  1591. readback_p1 = 0xff;
  1592. readback_p2 = 0xff;
  1593. read_lo = " 0 0 1 0 0 0 0 0",
  1594. " x x x x x x a9 a8",
  1595. " a7 a6 a5 a4 a3 a2 a1 a0",
  1596. " o o o o o o o o";
  1597. read_hi = " 0 0 1 0 1 0 0 0",
  1598. " x x x x x x a9 a8",
  1599. " a7 a6 a5 a4 a3 a2 a1 a0",
  1600. " o o o o o o o o";
  1601. write_lo = " 0 1 0 0 0 0 0 0",
  1602. " x x x x x x a9 a8",
  1603. " a7 a6 a5 a4 a3 a2 a1 a0",
  1604. " i i i i i i i i";
  1605. write_hi = " 0 1 0 0 1 0 0 0",
  1606. " x x x x x x a9 a8",
  1607. " a7 a6 a5 a4 a3 a2 a1 a0",
  1608. " i i i i i i i i";
  1609. mode = 0x04;
  1610. delay = 12;
  1611. blocksize = 128;
  1612. readsize = 256;
  1613. ;
  1614. memory "signature"
  1615. size = 3;
  1616. read = "0 0 1 1 0 0 0 0 x x x x x x x x",
  1617. "x x x x x x a1 a0 o o o o o o o o";
  1618. ;
  1619. memory "fuse"
  1620. size = 1;
  1621. min_write_delay = 9000;
  1622. max_write_delay = 20000;
  1623. pwroff_after_write = yes;
  1624. read = "0 1 0 1 0 0 0 0 x x x x x x x x",
  1625. "x x x x x x x x x x o o o o o o";
  1626. write = "1 0 1 0 1 1 0 0 1 0 1 i i i i i",
  1627. "x x x x x x x x x x x x x x x x";
  1628. ;
  1629. memory "lock"
  1630. size = 1;
  1631. min_write_delay = 9000;
  1632. max_write_delay = 20000;
  1633. read = "0 1 0 1 1 0 0 0 x x x x x x x x",
  1634. "x x x x x x x x x x x x x o o x";
  1635. write = "1 0 1 0 1 1 0 0 1 1 1 1 1 i i 1",
  1636. "x x x x x x x x x x x x x x x x";
  1637. ;
  1638. ;
  1639. #------------------------------------------------------------
  1640. # AT90s2343 (also AT90s2323 and ATtiny22)
  1641. #------------------------------------------------------------
  1642. part
  1643. id = "2343";
  1644. desc = "AT90S2343";
  1645. stk500_devcode = 0x43;
  1646. avr910_devcode = 0x4c;
  1647. signature = 0x1e 0x91 0x03;
  1648. chip_erase_delay = 18000;
  1649. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  1650. "x x x x x x x x x x x x x x x x";
  1651. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
  1652. "x x x x x x x x x x x x x x x x";
  1653. timeout = 200;
  1654. stabdelay = 100;
  1655. cmdexedelay = 25;
  1656. synchloops = 32;
  1657. bytedelay = 0;
  1658. pollindex = 3;
  1659. pollvalue = 0x53;
  1660. predelay = 1;
  1661. postdelay = 1;
  1662. pollmethod = 0;
  1663. hvsp_controlstack =
  1664. 0x4C, 0x0C, 0x1C, 0x2C, 0x3C, 0x64, 0x74, 0x00,
  1665. 0x68, 0x78, 0x68, 0x68, 0x00, 0x00, 0x68, 0x78,
  1666. 0x78, 0x00, 0x6D, 0x0C, 0x80, 0x40, 0x20, 0x10,
  1667. 0x11, 0x08, 0x04, 0x02, 0x03, 0x08, 0x04, 0x00;
  1668. hventerstabdelay = 100;
  1669. hvspcmdexedelay = 0;
  1670. synchcycles = 6;
  1671. latchcycles = 1;
  1672. togglevtg = 0;
  1673. poweroffdelay = 25;
  1674. resetdelayms = 0;
  1675. resetdelayus = 50;
  1676. hvleavestabdelay = 100;
  1677. resetdelay = 25;
  1678. chiperasepolltimeout = 40;
  1679. chiperasetime = 0;
  1680. programfusepolltimeout = 25;
  1681. programlockpolltimeout = 25;
  1682. memory "eeprom"
  1683. size = 128;
  1684. min_write_delay = 9000;
  1685. max_write_delay = 20000;
  1686. readback_p1 = 0x00;
  1687. readback_p2 = 0xff;
  1688. read = "1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0",
  1689. "x a6 a5 a4 a3 a2 a1 a0 o o o o o o o o";
  1690. write = "1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0",
  1691. "x a6 a5 a4 a3 a2 a1 a0 i i i i i i i i";
  1692. mode = 0x04;
  1693. delay = 12;
  1694. blocksize = 64;
  1695. readsize = 256;
  1696. ;
  1697. memory "flash"
  1698. size = 2048;
  1699. min_write_delay = 9000;
  1700. max_write_delay = 20000;
  1701. readback_p1 = 0xff;
  1702. readback_p2 = 0xff;
  1703. read_lo = " 0 0 1 0 0 0 0 0",
  1704. " x x x x x x a9 a8",
  1705. " a7 a6 a5 a4 a3 a2 a1 a0",
  1706. " o o o o o o o o";
  1707. read_hi = " 0 0 1 0 1 0 0 0",
  1708. " x x x x x x a9 a8",
  1709. " a7 a6 a5 a4 a3 a2 a1 a0",
  1710. " o o o o o o o o";
  1711. write_lo = " 0 1 0 0 0 0 0 0",
  1712. " x x x x x x a9 a8",
  1713. " a7 a6 a5 a4 a3 a2 a1 a0",
  1714. " i i i i i i i i";
  1715. write_hi = " 0 1 0 0 1 0 0 0",
  1716. " x x x x x x a9 a8",
  1717. " a7 a6 a5 a4 a3 a2 a1 a0",
  1718. " i i i i i i i i";
  1719. mode = 0x04;
  1720. delay = 12;
  1721. blocksize = 128;
  1722. readsize = 128;
  1723. ;
  1724. memory "signature"
  1725. size = 3;
  1726. read = "0 0 1 1 0 0 0 0 x x x x x x x x",
  1727. "x x x x x x a1 a0 o o o o o o o o";
  1728. ;
  1729. memory "fuse"
  1730. size = 1;
  1731. min_write_delay = 9000;
  1732. max_write_delay = 20000;
  1733. read = "0 1 0 1 1 0 0 0 x x x x x x x x",
  1734. "x x x x x x x x o o o x x x x o";
  1735. write = "1 0 1 0 1 1 0 0 1 0 1 1 1 1 1 i",
  1736. "x x x x x x x x x x x x x x x x";
  1737. ;
  1738. memory "lock"
  1739. size = 1;
  1740. min_write_delay = 9000;
  1741. max_write_delay = 20000;
  1742. read = "0 1 0 1 1 0 0 0 x x x x x x x x",
  1743. "x x x x x x x x o o o x x x x o";
  1744. write = "1 0 1 0 1 1 0 0 1 1 1 1 1 i i 1",
  1745. "x x x x x x x x x x x x x x x x";
  1746. ;
  1747. ;
  1748. #------------------------------------------------------------
  1749. # AT90s4433
  1750. #------------------------------------------------------------
  1751. part
  1752. id = "4433";
  1753. desc = "AT90S4433";
  1754. stk500_devcode = 0x51;
  1755. avr910_devcode = 0x30;
  1756. signature = 0x1e 0x92 0x03;
  1757. chip_erase_delay = 20000;
  1758. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  1759. "x x x x x x x x x x x x x x x x";
  1760. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 0 0 0 0 0",
  1761. "x x x x x x x x x x x x x x x x";
  1762. timeout = 200;
  1763. stabdelay = 100;
  1764. cmdexedelay = 25;
  1765. synchloops = 32;
  1766. bytedelay = 0;
  1767. pollindex = 3;
  1768. pollvalue = 0x53;
  1769. predelay = 1;
  1770. postdelay = 1;
  1771. pollmethod = 0;
  1772. pp_controlstack =
  1773. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  1774. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  1775. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  1776. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  1777. hventerstabdelay = 100;
  1778. progmodedelay = 0;
  1779. latchcycles = 0;
  1780. togglevtg = 0;
  1781. poweroffdelay = 0;
  1782. resetdelayms = 0;
  1783. resetdelayus = 0;
  1784. hvleavestabdelay = 15;
  1785. chiperasepulsewidth = 15;
  1786. chiperasepolltimeout = 0;
  1787. programfusepulsewidth = 2;
  1788. programfusepolltimeout = 0;
  1789. programlockpulsewidth = 0;
  1790. programlockpolltimeout = 1;
  1791. memory "eeprom"
  1792. size = 256;
  1793. min_write_delay = 9000;
  1794. max_write_delay = 20000;
  1795. readback_p1 = 0x00;
  1796. readback_p2 = 0xff;
  1797. read = " 1 0 1 0 0 0 0 0 x x x x x x x x",
  1798. "a7 a6 a5 a4 a3 a2 a1 a0 o o o o o o o o";
  1799. write = " 1 1 0 0 0 0 0 0 x x x x x x x x",
  1800. "a7 a6 a5 a4 a3 a2 a1 a0 i i i i i i i i";
  1801. mode = 0x04;
  1802. delay = 12;
  1803. blocksize = 128;
  1804. readsize = 256;
  1805. ;
  1806. memory "flash"
  1807. size = 4096;
  1808. min_write_delay = 9000;
  1809. max_write_delay = 20000;
  1810. readback_p1 = 0xff;
  1811. readback_p2 = 0xff;
  1812. read_lo = " 0 0 1 0 0 0 0 0",
  1813. " x x x x x a10 a9 a8",
  1814. " a7 a6 a5 a4 a3 a2 a1 a0",
  1815. " o o o o o o o o";
  1816. read_hi = " 0 0 1 0 1 0 0 0",
  1817. " x x x x x a10 a9 a8",
  1818. " a7 a6 a5 a4 a3 a2 a1 a0",
  1819. " o o o o o o o o";
  1820. write_lo = " 0 1 0 0 0 0 0 0",
  1821. " x x x x x a10 a9 a8",
  1822. " a7 a6 a5 a4 a3 a2 a1 a0",
  1823. " i i i i i i i i";
  1824. write_hi = " 0 1 0 0 1 0 0 0",
  1825. " x x x x x a10 a9 a8",
  1826. " a7 a6 a5 a4 a3 a2 a1 a0",
  1827. " i i i i i i i i";
  1828. mode = 0x04;
  1829. delay = 12;
  1830. blocksize = 128;
  1831. readsize = 256;
  1832. ;
  1833. memory "signature"
  1834. size = 3;
  1835. read = "0 0 1 1 0 0 0 0 x x x x x x x x",
  1836. "x x x x x x a1 a0 o o o o o o o o";
  1837. ;
  1838. memory "fuse"
  1839. size = 1;
  1840. min_write_delay = 9000;
  1841. max_write_delay = 20000;
  1842. pwroff_after_write = yes;
  1843. read = "0 1 0 1 0 0 0 0 x x x x x x x x",
  1844. "x x x x x x x x x x o o o o o o";
  1845. write = "1 0 1 0 1 1 0 0 1 0 1 i i i i i",
  1846. "x x x x x x x x x x x x x x x x";
  1847. ;
  1848. memory "lock"
  1849. size = 1;
  1850. min_write_delay = 9000;
  1851. max_write_delay = 20000;
  1852. read = "0 1 0 1 1 0 0 0 x x x x x x x x",
  1853. "x x x x x x x x x x x x x o o x";
  1854. write = "1 0 1 0 1 1 0 0 1 1 1 1 1 i i 1",
  1855. "x x x x x x x x x x x x x x x x";
  1856. ;
  1857. ;
  1858. #------------------------------------------------------------
  1859. # AT90s4434
  1860. #------------------------------------------------------------
  1861. part
  1862. id = "4434";
  1863. ##### WARNING: No XML file for device 'AT90S4434'! #####
  1864. desc = "AT90S4434";
  1865. stk500_devcode = 0x52;
  1866. avr910_devcode = 0x6c;
  1867. signature = 0x1e 0x92 0x02;
  1868. chip_erase_delay = 20000;
  1869. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  1870. "x x x x x x x x x x x x x x x x";
  1871. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 0 0 0 0 0",
  1872. "x x x x x x x x x x x x x x x x";
  1873. memory "eeprom"
  1874. size = 256;
  1875. min_write_delay = 9000;
  1876. max_write_delay = 20000;
  1877. readback_p1 = 0x00;
  1878. readback_p2 = 0xff;
  1879. read = " 1 0 1 0 0 0 0 0 x x x x x x x x",
  1880. "a7 a6 a5 a4 a3 a2 a1 a0 o o o o o o o o";
  1881. write = " 1 1 0 0 0 0 0 0 x x x x x x x x",
  1882. "a7 a6 a5 a4 a3 a2 a1 a0 i i i i i i i i";
  1883. ;
  1884. memory "flash"
  1885. size = 4096;
  1886. min_write_delay = 9000;
  1887. max_write_delay = 20000;
  1888. readback_p1 = 0xff;
  1889. readback_p2 = 0xff;
  1890. read_lo = " 0 0 1 0 0 0 0 0",
  1891. " x x x x x a10 a9 a8",
  1892. " a7 a6 a5 a4 a3 a2 a1 a0",
  1893. " o o o o o o o o";
  1894. read_hi = " 0 0 1 0 1 0 0 0",
  1895. " x x x x x a10 a9 a8",
  1896. " a7 a6 a5 a4 a3 a2 a1 a0",
  1897. " o o o o o o o o";
  1898. write_lo = " 0 1 0 0 0 0 0 0",
  1899. " x x x x x a10 a9 a8",
  1900. " a7 a6 a5 a4 a3 a2 a1 a0",
  1901. " i i i i i i i i";
  1902. write_hi = " 0 1 0 0 1 0 0 0",
  1903. " x x x x x a10 a9 a8",
  1904. " a7 a6 a5 a4 a3 a2 a1 a0",
  1905. " i i i i i i i i";
  1906. ;
  1907. memory "signature"
  1908. size = 3;
  1909. read = "0 0 1 1 0 0 0 0 x x x x x x x x",
  1910. "x x x x x x a1 a0 o o o o o o o o";
  1911. ;
  1912. memory "fuse"
  1913. size = 1;
  1914. min_write_delay = 9000;
  1915. max_write_delay = 20000;
  1916. read = "0 1 0 1 0 0 0 0 x x x x x x x x",
  1917. "x x x x x x x x x x o o o o o o";
  1918. write = "1 0 1 0 1 1 0 0 1 0 1 i i i i i",
  1919. "x x x x x x x x x x x x x x x x";
  1920. ;
  1921. memory "lock"
  1922. size = 1;
  1923. min_write_delay = 9000;
  1924. max_write_delay = 20000;
  1925. read = "0 1 0 1 1 0 0 0 x x x x x x x x",
  1926. "x x x x x x x x x x x x x o o x";
  1927. write = "1 0 1 0 1 1 0 0 1 1 1 1 1 i i 1",
  1928. "x x x x x x x x x x x x x x x x";
  1929. ;
  1930. ;
  1931. #------------------------------------------------------------
  1932. # AT90s8515
  1933. #------------------------------------------------------------
  1934. part
  1935. id = "8515";
  1936. desc = "AT90S8515";
  1937. stk500_devcode = 0x60;
  1938. avr910_devcode = 0x38;
  1939. signature = 0x1e 0x93 0x01;
  1940. chip_erase_delay = 20000;
  1941. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  1942. "x x x x x x x x x x x x x x x x";
  1943. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
  1944. "x x x x x x x x x x x x x x x x";
  1945. timeout = 200;
  1946. stabdelay = 100;
  1947. cmdexedelay = 25;
  1948. synchloops = 32;
  1949. bytedelay = 0;
  1950. pollindex = 3;
  1951. pollvalue = 0x53;
  1952. predelay = 1;
  1953. postdelay = 1;
  1954. pollmethod = 0;
  1955. pp_controlstack =
  1956. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  1957. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  1958. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  1959. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  1960. hventerstabdelay = 100;
  1961. progmodedelay = 0;
  1962. latchcycles = 0;
  1963. togglevtg = 0;
  1964. poweroffdelay = 0;
  1965. resetdelayms = 0;
  1966. resetdelayus = 0;
  1967. hvleavestabdelay = 15;
  1968. resetdelay = 15;
  1969. chiperasepulsewidth = 15;
  1970. chiperasepolltimeout = 0;
  1971. programfusepulsewidth = 2;
  1972. programfusepolltimeout = 0;
  1973. programlockpulsewidth = 0;
  1974. programlockpolltimeout = 1;
  1975. memory "eeprom"
  1976. size = 512;
  1977. min_write_delay = 4000;
  1978. max_write_delay = 9000;
  1979. readback_p1 = 0x80;
  1980. readback_p2 = 0x7f;
  1981. read = " 1 0 1 0 0 0 0 0 x x x x x x x a8",
  1982. "a7 a6 a5 a4 a3 a2 a1 a0 o o o o o o o o";
  1983. write = " 1 1 0 0 0 0 0 0 x x x x x x x a8",
  1984. "a7 a6 a5 a4 a3 a2 a1 a0 i i i i i i i i";
  1985. mode = 0x04;
  1986. delay = 12;
  1987. blocksize = 128;
  1988. readsize = 256;
  1989. ;
  1990. memory "flash"
  1991. size = 8192;
  1992. min_write_delay = 4000;
  1993. max_write_delay = 9000;
  1994. readback_p1 = 0x7f;
  1995. readback_p2 = 0x7f;
  1996. read_lo = " 0 0 1 0 0 0 0 0",
  1997. " x x x x a11 a10 a9 a8",
  1998. " a7 a6 a5 a4 a3 a2 a1 a0",
  1999. " o o o o o o o o";
  2000. read_hi = " 0 0 1 0 1 0 0 0",
  2001. " x x x x a11 a10 a9 a8",
  2002. " a7 a6 a5 a4 a3 a2 a1 a0",
  2003. " o o o o o o o o";
  2004. write_lo = " 0 1 0 0 0 0 0 0",
  2005. " x x x x a11 a10 a9 a8",
  2006. " a7 a6 a5 a4 a3 a2 a1 a0",
  2007. " i i i i i i i i";
  2008. write_hi = " 0 1 0 0 1 0 0 0",
  2009. " x x x x a11 a10 a9 a8",
  2010. " a7 a6 a5 a4 a3 a2 a1 a0",
  2011. " i i i i i i i i";
  2012. mode = 0x04;
  2013. delay = 12;
  2014. blocksize = 128;
  2015. readsize = 256;
  2016. ;
  2017. memory "signature"
  2018. size = 3;
  2019. read = "0 0 1 1 0 0 0 0 x x x x x x x x",
  2020. "x x x x x x a1 a0 o o o o o o o o";
  2021. ;
  2022. memory "fuse"
  2023. size = 1;
  2024. ;
  2025. memory "lock"
  2026. size = 1;
  2027. write = "1 0 1 0 1 1 0 0 1 1 1 1 1 i i 1",
  2028. "x x x x x x x x x x x x x x x x";
  2029. min_write_delay = 9000;
  2030. max_write_delay = 9000;
  2031. ;
  2032. ;
  2033. #------------------------------------------------------------
  2034. # AT90s8535
  2035. #------------------------------------------------------------
  2036. part
  2037. id = "8535";
  2038. desc = "AT90S8535";
  2039. stk500_devcode = 0x61;
  2040. avr910_devcode = 0x68;
  2041. signature = 0x1e 0x93 0x03;
  2042. chip_erase_delay = 20000;
  2043. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  2044. "x x x x x x x x x x x x x x x x";
  2045. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 0 0 0 0 0",
  2046. "x x x x x x x x x x x x x x x x";
  2047. timeout = 200;
  2048. stabdelay = 100;
  2049. cmdexedelay = 25;
  2050. synchloops = 32;
  2051. bytedelay = 0;
  2052. pollindex = 3;
  2053. pollvalue = 0x53;
  2054. predelay = 1;
  2055. postdelay = 1;
  2056. pollmethod = 0;
  2057. pp_controlstack =
  2058. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  2059. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  2060. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  2061. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  2062. hventerstabdelay = 100;
  2063. progmodedelay = 0;
  2064. latchcycles = 0;
  2065. togglevtg = 0;
  2066. poweroffdelay = 0;
  2067. resetdelayms = 0;
  2068. resetdelayus = 0;
  2069. hvleavestabdelay = 15;
  2070. chiperasepulsewidth = 15;
  2071. chiperasepolltimeout = 0;
  2072. programfusepulsewidth = 2;
  2073. programfusepolltimeout = 0;
  2074. programlockpulsewidth = 0;
  2075. programlockpolltimeout = 1;
  2076. memory "eeprom"
  2077. size = 512;
  2078. min_write_delay = 9000;
  2079. max_write_delay = 20000;
  2080. readback_p1 = 0x00;
  2081. readback_p2 = 0xff;
  2082. read = " 1 0 1 0 0 0 0 0 x x x x x x x a8",
  2083. "a7 a6 a5 a4 a3 a2 a1 a0 o o o o o o o o";
  2084. write = " 1 1 0 0 0 0 0 0 x x x x x x x a8",
  2085. "a7 a6 a5 a4 a3 a2 a1 a0 i i i i i i i i";
  2086. mode = 0x04;
  2087. delay = 12;
  2088. blocksize = 128;
  2089. readsize = 256;
  2090. ;
  2091. memory "flash"
  2092. size = 8192;
  2093. min_write_delay = 9000;
  2094. max_write_delay = 20000;
  2095. readback_p1 = 0xff;
  2096. readback_p2 = 0xff;
  2097. read_lo = " 0 0 1 0 0 0 0 0",
  2098. " x x x x a11 a10 a9 a8",
  2099. " a7 a6 a5 a4 a3 a2 a1 a0",
  2100. " o o o o o o o o";
  2101. read_hi = " 0 0 1 0 1 0 0 0",
  2102. " x x x x a11 a10 a9 a8",
  2103. " a7 a6 a5 a4 a3 a2 a1 a0",
  2104. " o o o o o o o o";
  2105. write_lo = " 0 1 0 0 0 0 0 0",
  2106. " x x x x a11 a10 a9 a8",
  2107. " a7 a6 a5 a4 a3 a2 a1 a0",
  2108. " i i i i i i i i";
  2109. write_hi = " 0 1 0 0 1 0 0 0",
  2110. " x x x x a11 a10 a9 a8",
  2111. " a7 a6 a5 a4 a3 a2 a1 a0",
  2112. " i i i i i i i i";
  2113. mode = 0x04;
  2114. delay = 12;
  2115. blocksize = 128;
  2116. readsize = 256;
  2117. ;
  2118. memory "signature"
  2119. size = 3;
  2120. read = "0 0 1 1 0 0 0 0 x x x x x x x x",
  2121. "x x x x x x a1 a0 o o o o o o o o";
  2122. ;
  2123. memory "fuse"
  2124. size = 1;
  2125. read = "0 1 0 1 1 0 0 0 x x x x x x x x",
  2126. "x x x x x x x x x x x x x x x o";
  2127. write = "1 0 1 0 1 1 0 0 1 0 1 1 1 1 1 i",
  2128. "x x x x x x x x x x x x x x x x";
  2129. min_write_delay = 9000;
  2130. max_write_delay = 9000;
  2131. ;
  2132. memory "lock"
  2133. size = 1;
  2134. read = "0 1 0 1 1 0 0 0 x x x x x x x x",
  2135. "x x x x x x x x o o x x x x x x";
  2136. write = "1 0 1 0 1 1 0 0 1 1 1 1 1 i i 1",
  2137. "x x x x x x x x x x x x x x x x";
  2138. min_write_delay = 9000;
  2139. max_write_delay = 9000;
  2140. ;
  2141. ;
  2142. #------------------------------------------------------------
  2143. # ATmega103
  2144. #------------------------------------------------------------
  2145. part
  2146. id = "m103";
  2147. desc = "ATMEGA103";
  2148. stk500_devcode = 0xB1;
  2149. avr910_devcode = 0x41;
  2150. signature = 0x1e 0x97 0x01;
  2151. chip_erase_delay = 112000;
  2152. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  2153. "x x x x x x x x x x x x x x x x";
  2154. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 0 0 0 0 0",
  2155. "x x x x x x x x x x x x x x x x";
  2156. timeout = 200;
  2157. stabdelay = 100;
  2158. cmdexedelay = 25;
  2159. synchloops = 32;
  2160. bytedelay = 0;
  2161. pollindex = 3;
  2162. pollvalue = 0x53;
  2163. predelay = 1;
  2164. postdelay = 1;
  2165. pollmethod = 0;
  2166. pp_controlstack =
  2167. 0x0E, 0x1E, 0x8E, 0x9E, 0x2E, 0x3E, 0xAE, 0xBE,
  2168. 0x4E, 0x5E, 0xCE, 0xDE, 0x6E, 0x7E, 0xEE, 0xDE,
  2169. 0x66, 0x76, 0xE6, 0xF6, 0x6A, 0x7A, 0xEA, 0x7A,
  2170. 0x7F, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  2171. hventerstabdelay = 100;
  2172. progmodedelay = 0;
  2173. latchcycles = 0;
  2174. togglevtg = 0;
  2175. poweroffdelay = 0;
  2176. resetdelayms = 0;
  2177. resetdelayus = 0;
  2178. hvleavestabdelay = 15;
  2179. chiperasepulsewidth = 15;
  2180. chiperasepolltimeout = 0;
  2181. programfusepulsewidth = 2;
  2182. programfusepolltimeout = 0;
  2183. programlockpulsewidth = 0;
  2184. programlockpolltimeout = 10;
  2185. memory "eeprom"
  2186. size = 4096;
  2187. min_write_delay = 4000;
  2188. max_write_delay = 9000;
  2189. readback_p1 = 0x80;
  2190. readback_p2 = 0x7f;
  2191. read = " 1 0 1 0 0 0 0 0",
  2192. " x x x x a11 a10 a9 a8",
  2193. " a7 a6 a5 a4 a3 a2 a1 a0",
  2194. " o o o o o o o o";
  2195. write = " 1 1 0 0 0 0 0 0",
  2196. " x x x x a11 a10 a9 a8",
  2197. " a7 a6 a5 a4 a3 a2 a1 a0",
  2198. " i i i i i i i i";
  2199. mode = 0x04;
  2200. delay = 12;
  2201. blocksize = 64;
  2202. readsize = 256;
  2203. ;
  2204. memory "flash"
  2205. paged = yes;
  2206. size = 131072;
  2207. page_size = 256;
  2208. num_pages = 512;
  2209. min_write_delay = 22000;
  2210. max_write_delay = 56000;
  2211. readback_p1 = 0xff;
  2212. readback_p2 = 0xff;
  2213. read_lo = " 0 0 1 0 0 0 0 0",
  2214. "a15 a14 a13 a12 a11 a10 a9 a8",
  2215. " a7 a6 a5 a4 a3 a2 a1 a0",
  2216. " o o o o o o o o";
  2217. read_hi = " 0 0 1 0 1 0 0 0",
  2218. "a15 a14 a13 a12 a11 a10 a9 a8",
  2219. " a7 a6 a5 a4 a3 a2 a1 a0",
  2220. " o o o o o o o o";
  2221. loadpage_lo = " 0 1 0 0 0 0 0 0",
  2222. " x x x x x x x x",
  2223. " x a6 a5 a4 a3 a2 a1 a0",
  2224. " i i i i i i i i";
  2225. loadpage_hi = " 0 1 0 0 1 0 0 0",
  2226. " x x x x x x x x",
  2227. " x a6 a5 a4 a3 a2 a1 a0",
  2228. " i i i i i i i i";
  2229. writepage = " 0 1 0 0 1 1 0 0",
  2230. "a15 a14 a13 a12 a11 a10 a9 a8",
  2231. " a7 x x x x x x x",
  2232. " x x x x x x x x";
  2233. mode = 0x11;
  2234. delay = 70;
  2235. blocksize = 256;
  2236. readsize = 256;
  2237. ;
  2238. memory "fuse"
  2239. size = 1;
  2240. read = "0 1 0 1 0 0 0 0 x x x x x x x x",
  2241. "x x x x x x x x x x o x o 1 o o";
  2242. write = "1 0 1 0 1 1 0 0 1 0 1 1 i 1 i i",
  2243. "x x x x x x x x x x x x x x x x";
  2244. min_write_delay = 9000;
  2245. max_write_delay = 9000;
  2246. ;
  2247. memory "lock"
  2248. size = 1;
  2249. read = "0 1 0 1 1 0 0 0 x x x x x x x x",
  2250. "x x x x x x x x x x x x x o o x";
  2251. write = "1 0 1 0 1 1 0 0 1 1 1 1 1 i i 1",
  2252. "x x x x x x x x x x x x x x x x";
  2253. min_write_delay = 9000;
  2254. max_write_delay = 9000;
  2255. ;
  2256. memory "signature"
  2257. size = 3;
  2258. read = "0 0 1 1 0 0 0 0 x x x x x x x x",
  2259. "x x x x x x a1 a0 o o o o o o o o";
  2260. ;
  2261. ;
  2262. #------------------------------------------------------------
  2263. # ATmega64
  2264. #------------------------------------------------------------
  2265. part
  2266. id = "m64";
  2267. desc = "ATMEGA64";
  2268. has_jtag = yes;
  2269. stk500_devcode = 0xA0;
  2270. avr910_devcode = 0x45;
  2271. signature = 0x1e 0x96 0x02;
  2272. chip_erase_delay = 9000;
  2273. pagel = 0xD7;
  2274. bs2 = 0xA0;
  2275. reset = dedicated;
  2276. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  2277. "x x x x x x x x x x x x x x x x";
  2278. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 0 0 0 0 0",
  2279. "x x x x x x x x x x x x x x x x";
  2280. timeout = 200;
  2281. stabdelay = 100;
  2282. cmdexedelay = 25;
  2283. synchloops = 32;
  2284. bytedelay = 0;
  2285. pollindex = 3;
  2286. pollvalue = 0x53;
  2287. predelay = 1;
  2288. postdelay = 1;
  2289. pollmethod = 0;
  2290. pp_controlstack =
  2291. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  2292. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  2293. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  2294. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  2295. hventerstabdelay = 100;
  2296. progmodedelay = 0;
  2297. latchcycles = 6;
  2298. togglevtg = 0;
  2299. poweroffdelay = 0;
  2300. resetdelayms = 0;
  2301. resetdelayus = 0;
  2302. hvleavestabdelay = 15;
  2303. chiperasepulsewidth = 0;
  2304. chiperasepolltimeout = 10;
  2305. programfusepulsewidth = 0;
  2306. programfusepolltimeout = 5;
  2307. programlockpulsewidth = 0;
  2308. programlockpolltimeout = 5;
  2309. idr = 0x22;
  2310. spmcr = 0x68;
  2311. allowfullpagebitstream = yes;
  2312. memory "eeprom"
  2313. paged = no; /* leave this "no" */
  2314. page_size = 8; /* for parallel programming */
  2315. size = 2048;
  2316. min_write_delay = 9000;
  2317. max_write_delay = 9000;
  2318. readback_p1 = 0xff;
  2319. readback_p2 = 0xff;
  2320. read = " 1 0 1 0 0 0 0 0",
  2321. " x x x x a11 a10 a9 a8",
  2322. " a7 a6 a5 a4 a3 a2 a1 a0",
  2323. " o o o o o o o o";
  2324. write = " 1 1 0 0 0 0 0 0",
  2325. " x x x x a11 a10 a9 a8",
  2326. " a7 a6 a5 a4 a3 a2 a1 a0",
  2327. " i i i i i i i i";
  2328. mode = 0x04;
  2329. delay = 20;
  2330. blocksize = 64;
  2331. readsize = 256;
  2332. ;
  2333. memory "flash"
  2334. paged = yes;
  2335. size = 65536;
  2336. page_size = 256;
  2337. num_pages = 256;
  2338. min_write_delay = 4500;
  2339. max_write_delay = 4500;
  2340. readback_p1 = 0xff;
  2341. readback_p2 = 0xff;
  2342. read_lo = " 0 0 1 0 0 0 0 0",
  2343. " x a14 a13 a12 a11 a10 a9 a8",
  2344. " a7 a6 a5 a4 a3 a2 a1 a0",
  2345. " o o o o o o o o";
  2346. read_hi = " 0 0 1 0 1 0 0 0",
  2347. " x a14 a13 a12 a11 a10 a9 a8",
  2348. " a7 a6 a5 a4 a3 a2 a1 a0",
  2349. " o o o o o o o o";
  2350. loadpage_lo = " 0 1 0 0 0 0 0 0",
  2351. " x x x x x x x x",
  2352. " x a6 a5 a4 a3 a2 a1 a0",
  2353. " i i i i i i i i";
  2354. loadpage_hi = " 0 1 0 0 1 0 0 0",
  2355. " x x x x x x x x",
  2356. " x a6 a5 a4 a3 a2 a1 a0",
  2357. " i i i i i i i i";
  2358. writepage = " 0 1 0 0 1 1 0 0",
  2359. " x a14 a13 a12 a11 a10 a9 a8",
  2360. " a7 x x x x x x x",
  2361. " x x x x x x x x";
  2362. mode = 0x21;
  2363. delay = 6;
  2364. blocksize = 128;
  2365. readsize = 256;
  2366. ;
  2367. memory "lfuse"
  2368. size = 1;
  2369. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  2370. "x x x x x x x x i i i i i i i i";
  2371. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  2372. "x x x x x x x x o o o o o o o o";
  2373. min_write_delay = 9000;
  2374. max_write_delay = 9000;
  2375. ;
  2376. memory "hfuse"
  2377. size = 1;
  2378. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  2379. "x x x x x x x x i i i i i i i i";
  2380. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  2381. "x x x x x x x x o o o o o o o o";
  2382. min_write_delay = 9000;
  2383. max_write_delay = 9000;
  2384. ;
  2385. memory "efuse"
  2386. size = 1;
  2387. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  2388. "x x x x x x x x x x x x x x i i";
  2389. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  2390. "x x x x x x x x o o o o o o o o";
  2391. min_write_delay = 9000;
  2392. max_write_delay = 9000;
  2393. ;
  2394. memory "lock"
  2395. size = 1;
  2396. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  2397. "x x x x x x x x x x o o o o o o";
  2398. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  2399. "x x x x x x x x 1 1 i i i i i i";
  2400. min_write_delay = 9000;
  2401. max_write_delay = 9000;
  2402. ;
  2403. memory "calibration"
  2404. size = 4;
  2405. read = "0 0 1 1 1 0 0 0 x x x x x x x x",
  2406. "0 0 0 0 0 0 a1 a0 o o o o o o o o";
  2407. ;
  2408. memory "signature"
  2409. size = 3;
  2410. read = "0 0 1 1 0 0 0 0 x x x x x x x x",
  2411. "x x x x x x a1 a0 o o o o o o o o";
  2412. ;
  2413. ;
  2414. #------------------------------------------------------------
  2415. # ATmega128
  2416. #------------------------------------------------------------
  2417. part
  2418. id = "m128";
  2419. desc = "ATMEGA128";
  2420. has_jtag = yes;
  2421. stk500_devcode = 0xB2;
  2422. avr910_devcode = 0x43;
  2423. signature = 0x1e 0x97 0x02;
  2424. chip_erase_delay = 9000;
  2425. pagel = 0xD7;
  2426. bs2 = 0xA0;
  2427. reset = dedicated;
  2428. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  2429. "x x x x x x x x x x x x x x x x";
  2430. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 0 0 0 0 0",
  2431. "x x x x x x x x x x x x x x x x";
  2432. timeout = 200;
  2433. stabdelay = 100;
  2434. cmdexedelay = 25;
  2435. synchloops = 32;
  2436. bytedelay = 0;
  2437. pollindex = 3;
  2438. pollvalue = 0x53;
  2439. predelay = 1;
  2440. postdelay = 1;
  2441. pollmethod = 0;
  2442. pp_controlstack =
  2443. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  2444. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  2445. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  2446. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  2447. hventerstabdelay = 100;
  2448. progmodedelay = 0;
  2449. latchcycles = 6;
  2450. togglevtg = 0;
  2451. poweroffdelay = 0;
  2452. resetdelayms = 0;
  2453. resetdelayus = 0;
  2454. hvleavestabdelay = 15;
  2455. chiperasepulsewidth = 0;
  2456. chiperasepolltimeout = 10;
  2457. programfusepulsewidth = 0;
  2458. programfusepolltimeout = 5;
  2459. programlockpulsewidth = 0;
  2460. programlockpolltimeout = 5;
  2461. idr = 0x22;
  2462. spmcr = 0x68;
  2463. rampz = 0x3b;
  2464. allowfullpagebitstream = yes;
  2465. memory "eeprom"
  2466. paged = no; /* leave this "no" */
  2467. page_size = 8; /* for parallel programming */
  2468. size = 4096;
  2469. min_write_delay = 9000;
  2470. max_write_delay = 9000;
  2471. readback_p1 = 0xff;
  2472. readback_p2 = 0xff;
  2473. read = " 1 0 1 0 0 0 0 0",
  2474. " x x x x a11 a10 a9 a8",
  2475. " a7 a6 a5 a4 a3 a2 a1 a0",
  2476. " o o o o o o o o";
  2477. write = " 1 1 0 0 0 0 0 0",
  2478. " x x x x a11 a10 a9 a8",
  2479. " a7 a6 a5 a4 a3 a2 a1 a0",
  2480. " i i i i i i i i";
  2481. mode = 0x04;
  2482. delay = 12;
  2483. blocksize = 64;
  2484. readsize = 256;
  2485. ;
  2486. memory "flash"
  2487. paged = yes;
  2488. size = 131072;
  2489. page_size = 256;
  2490. num_pages = 512;
  2491. min_write_delay = 4500;
  2492. max_write_delay = 4500;
  2493. readback_p1 = 0xff;
  2494. readback_p2 = 0xff;
  2495. read_lo = " 0 0 1 0 0 0 0 0",
  2496. "a15 a14 a13 a12 a11 a10 a9 a8",
  2497. " a7 a6 a5 a4 a3 a2 a1 a0",
  2498. " o o o o o o o o";
  2499. read_hi = " 0 0 1 0 1 0 0 0",
  2500. "a15 a14 a13 a12 a11 a10 a9 a8",
  2501. " a7 a6 a5 a4 a3 a2 a1 a0",
  2502. " o o o o o o o o";
  2503. loadpage_lo = " 0 1 0 0 0 0 0 0",
  2504. " x x x x x x x x",
  2505. " x a6 a5 a4 a3 a2 a1 a0",
  2506. " i i i i i i i i";
  2507. loadpage_hi = " 0 1 0 0 1 0 0 0",
  2508. " x x x x x x x x",
  2509. " x a6 a5 a4 a3 a2 a1 a0",
  2510. " i i i i i i i i";
  2511. writepage = " 0 1 0 0 1 1 0 0",
  2512. "a15 a14 a13 a12 a11 a10 a9 a8",
  2513. " a7 x x x x x x x",
  2514. " x x x x x x x x";
  2515. mode = 0x21;
  2516. delay = 6;
  2517. blocksize = 128;
  2518. readsize = 256;
  2519. ;
  2520. memory "lfuse"
  2521. size = 1;
  2522. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  2523. "x x x x x x x x i i i i i i i i";
  2524. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  2525. "x x x x x x x x o o o o o o o o";
  2526. min_write_delay = 9000;
  2527. max_write_delay = 9000;
  2528. ;
  2529. memory "hfuse"
  2530. size = 1;
  2531. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  2532. "x x x x x x x x i i i i i i i i";
  2533. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  2534. "x x x x x x x x o o o o o o o o";
  2535. min_write_delay = 9000;
  2536. max_write_delay = 9000;
  2537. ;
  2538. memory "efuse"
  2539. size = 1;
  2540. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  2541. "x x x x x x x x x x x x x x i i";
  2542. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  2543. "x x x x x x x x o o o o o o o o";
  2544. min_write_delay = 9000;
  2545. max_write_delay = 9000;
  2546. ;
  2547. memory "lock"
  2548. size = 1;
  2549. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  2550. "x x x x x x x x x x o o o o o o";
  2551. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  2552. "x x x x x x x x 1 1 i i i i i i";
  2553. min_write_delay = 9000;
  2554. max_write_delay = 9000;
  2555. ;
  2556. memory "calibration"
  2557. size = 4;
  2558. read = "0 0 1 1 1 0 0 0 x x x x x x x x",
  2559. "0 0 0 0 0 0 a1 a0 o o o o o o o o";
  2560. ;
  2561. memory "signature"
  2562. size = 3;
  2563. read = "0 0 1 1 0 0 0 0 x x x x x x x x",
  2564. "x x x x x x a1 a0 o o o o o o o o";
  2565. ;
  2566. ;
  2567. #------------------------------------------------------------
  2568. # AT90CAN128
  2569. #------------------------------------------------------------
  2570. part
  2571. id = "c128";
  2572. desc = "AT90CAN128";
  2573. has_jtag = yes;
  2574. stk500_devcode = 0xB3;
  2575. # avr910_devcode = 0x43;
  2576. signature = 0x1e 0x97 0x81;
  2577. chip_erase_delay = 9000;
  2578. pagel = 0xD7;
  2579. bs2 = 0xA0;
  2580. reset = dedicated;
  2581. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  2582. "x x x x x x x x x x x x x x x x";
  2583. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
  2584. "x x x x x x x x x x x x x x x x";
  2585. timeout = 200;
  2586. stabdelay = 100;
  2587. cmdexedelay = 25;
  2588. synchloops = 32;
  2589. bytedelay = 0;
  2590. pollindex = 3;
  2591. pollvalue = 0x53;
  2592. predelay = 1;
  2593. postdelay = 1;
  2594. pollmethod = 1;
  2595. pp_controlstack =
  2596. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  2597. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  2598. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  2599. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x01;
  2600. hventerstabdelay = 100;
  2601. progmodedelay = 0;
  2602. latchcycles = 6;
  2603. togglevtg = 0;
  2604. poweroffdelay = 0;
  2605. resetdelayms = 0;
  2606. resetdelayus = 0;
  2607. hvleavestabdelay = 15;
  2608. chiperasepulsewidth = 0;
  2609. chiperasepolltimeout = 10;
  2610. programfusepulsewidth = 0;
  2611. programfusepolltimeout = 5;
  2612. programlockpulsewidth = 0;
  2613. programlockpolltimeout = 5;
  2614. idr = 0x31;
  2615. spmcr = 0x57;
  2616. rampz = 0x3b;
  2617. eecr = 0x3f;
  2618. allowfullpagebitstream = no;
  2619. memory "eeprom"
  2620. paged = no; /* leave this "no" */
  2621. page_size = 8; /* for parallel programming */
  2622. size = 4096;
  2623. min_write_delay = 9000;
  2624. max_write_delay = 9000;
  2625. readback_p1 = 0xff;
  2626. readback_p2 = 0xff;
  2627. read = " 1 0 1 0 0 0 0 0",
  2628. " 0 0 0 x a11 a10 a9 a8",
  2629. " a7 a6 a5 a4 a3 a2 a1 a0",
  2630. " o o o o o o o o";
  2631. write = " 1 1 0 0 0 0 0 0",
  2632. " 0 0 0 x a11 a10 a9 a8",
  2633. " a7 a6 a5 a4 a3 a2 a1 a0",
  2634. " i i i i i i i i";
  2635. loadpage_lo = " 1 1 0 0 0 0 0 1",
  2636. " 0 0 0 0 0 0 0 0",
  2637. " 0 0 0 0 0 a2 a1 a0",
  2638. " i i i i i i i i";
  2639. writepage = " 1 1 0 0 0 0 1 0",
  2640. " 0 0 x x a11 a10 a9 a8",
  2641. " a7 a6 a5 a4 a3 0 0 0",
  2642. " x x x x x x x x";
  2643. mode = 0x41;
  2644. delay = 20;
  2645. blocksize = 8;
  2646. readsize = 256;
  2647. ;
  2648. memory "flash"
  2649. paged = yes;
  2650. size = 131072;
  2651. page_size = 256;
  2652. num_pages = 512;
  2653. min_write_delay = 4500;
  2654. max_write_delay = 4500;
  2655. readback_p1 = 0xff;
  2656. readback_p2 = 0xff;
  2657. read_lo = " 0 0 1 0 0 0 0 0",
  2658. "a15 a14 a13 a12 a11 a10 a9 a8",
  2659. " a7 a6 a5 a4 a3 a2 a1 a0",
  2660. " o o o o o o o o";
  2661. read_hi = " 0 0 1 0 1 0 0 0",
  2662. "a15 a14 a13 a12 a11 a10 a9 a8",
  2663. " a7 a6 a5 a4 a3 a2 a1 a0",
  2664. " o o o o o o o o";
  2665. loadpage_lo = " 0 1 0 0 0 0 0 0",
  2666. " 0 0 0 x x x x x",
  2667. " x a6 a5 a4 a3 a2 a1 a0",
  2668. " i i i i i i i i";
  2669. loadpage_hi = " 0 1 0 0 1 0 0 0",
  2670. " 0 0 0 x x x x x",
  2671. " x a6 a5 a4 a3 a2 a1 a0",
  2672. " i i i i i i i i";
  2673. writepage = " 0 1 0 0 1 1 0 0",
  2674. "a15 a14 a13 a12 a11 a10 a9 a8",
  2675. " a7 x x x x x x x",
  2676. " x x x x x x x x";
  2677. mode = 0x41;
  2678. delay = 6;
  2679. blocksize = 256;
  2680. readsize = 256;
  2681. ;
  2682. memory "lfuse"
  2683. size = 1;
  2684. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  2685. "x x x x x x x x i i i i i i i i";
  2686. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  2687. "x x x x x x x x o o o o o o o o";
  2688. min_write_delay = 9000;
  2689. max_write_delay = 9000;
  2690. ;
  2691. memory "hfuse"
  2692. size = 1;
  2693. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  2694. "x x x x x x x x i i i i i i i i";
  2695. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  2696. "x x x x x x x x o o o o o o o o";
  2697. min_write_delay = 9000;
  2698. max_write_delay = 9000;
  2699. ;
  2700. memory "efuse"
  2701. size = 1;
  2702. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  2703. "x x x x x x x x x x x x i i i i";
  2704. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  2705. "x x x x x x x x o o o o o o o o";
  2706. min_write_delay = 9000;
  2707. max_write_delay = 9000;
  2708. ;
  2709. memory "lock"
  2710. size = 1;
  2711. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  2712. "x x x x x x x x x x o o o o o o";
  2713. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  2714. "x x x x x x x x 1 1 i i i i i i";
  2715. min_write_delay = 9000;
  2716. max_write_delay = 9000;
  2717. ;
  2718. memory "calibration"
  2719. size = 1;
  2720. read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
  2721. "0 0 0 0 0 0 0 0 o o o o o o o o";
  2722. ;
  2723. memory "signature"
  2724. size = 3;
  2725. read = "0 0 1 1 0 0 0 0 x x x x x x x x",
  2726. "x x x x x x a1 a0 o o o o o o o o";
  2727. ;
  2728. ;
  2729. #------------------------------------------------------------
  2730. # AT90CAN64
  2731. #------------------------------------------------------------
  2732. part
  2733. id = "c64";
  2734. desc = "AT90CAN64";
  2735. has_jtag = yes;
  2736. stk500_devcode = 0xB3;
  2737. # avr910_devcode = 0x43;
  2738. signature = 0x1e 0x96 0x81;
  2739. chip_erase_delay = 9000;
  2740. pagel = 0xD7;
  2741. bs2 = 0xA0;
  2742. reset = dedicated;
  2743. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  2744. "x x x x x x x x x x x x x x x x";
  2745. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
  2746. "x x x x x x x x x x x x x x x x";
  2747. timeout = 200;
  2748. stabdelay = 100;
  2749. cmdexedelay = 25;
  2750. synchloops = 32;
  2751. bytedelay = 0;
  2752. pollindex = 3;
  2753. pollvalue = 0x53;
  2754. predelay = 1;
  2755. postdelay = 1;
  2756. pollmethod = 1;
  2757. pp_controlstack =
  2758. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  2759. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  2760. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  2761. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x01;
  2762. hventerstabdelay = 100;
  2763. progmodedelay = 0;
  2764. latchcycles = 6;
  2765. togglevtg = 0;
  2766. poweroffdelay = 0;
  2767. resetdelayms = 0;
  2768. resetdelayus = 0;
  2769. hvleavestabdelay = 15;
  2770. chiperasepulsewidth = 0;
  2771. chiperasepolltimeout = 10;
  2772. programfusepulsewidth = 0;
  2773. programfusepolltimeout = 5;
  2774. programlockpulsewidth = 0;
  2775. programlockpolltimeout = 5;
  2776. idr = 0x31;
  2777. spmcr = 0x57;
  2778. rampz = 0x3b;
  2779. eecr = 0x3f;
  2780. allowfullpagebitstream = no;
  2781. memory "eeprom"
  2782. paged = no; /* leave this "no" */
  2783. page_size = 8; /* for parallel programming */
  2784. size = 2048;
  2785. min_write_delay = 9000;
  2786. max_write_delay = 9000;
  2787. readback_p1 = 0xff;
  2788. readback_p2 = 0xff;
  2789. read = " 1 0 1 0 0 0 0 0",
  2790. " 0 0 0 x x a10 a9 a8",
  2791. " a7 a6 a5 a4 a3 a2 a1 a0",
  2792. " o o o o o o o o";
  2793. write = " 1 1 0 0 0 0 0 0",
  2794. " 0 0 0 x x a10 a9 a8",
  2795. " a7 a6 a5 a4 a3 a2 a1 a0",
  2796. " i i i i i i i i";
  2797. loadpage_lo = " 1 1 0 0 0 0 0 1",
  2798. " 0 0 0 0 0 0 0 0",
  2799. " 0 0 0 0 0 a2 a1 a0",
  2800. " i i i i i i i i";
  2801. writepage = " 1 1 0 0 0 0 1 0",
  2802. " 0 0 x x x a10 a9 a8",
  2803. " a7 a6 a5 a4 a3 0 0 0",
  2804. " x x x x x x x x";
  2805. mode = 0x41;
  2806. delay = 20;
  2807. blocksize = 8;
  2808. readsize = 256;
  2809. ;
  2810. memory "flash"
  2811. paged = yes;
  2812. size = 65536;
  2813. page_size = 256;
  2814. num_pages = 256;
  2815. min_write_delay = 4500;
  2816. max_write_delay = 4500;
  2817. readback_p1 = 0xff;
  2818. readback_p2 = 0xff;
  2819. read_lo = " 0 0 1 0 0 0 0 0",
  2820. "a15 a14 a13 a12 a11 a10 a9 a8",
  2821. " a7 a6 a5 a4 a3 a2 a1 a0",
  2822. " o o o o o o o o";
  2823. read_hi = " 0 0 1 0 1 0 0 0",
  2824. "a15 a14 a13 a12 a11 a10 a9 a8",
  2825. " a7 a6 a5 a4 a3 a2 a1 a0",
  2826. " o o o o o o o o";
  2827. loadpage_lo = " 0 1 0 0 0 0 0 0",
  2828. " 0 0 0 x x x x x",
  2829. " x a6 a5 a4 a3 a2 a1 a0",
  2830. " i i i i i i i i";
  2831. loadpage_hi = " 0 1 0 0 1 0 0 0",
  2832. " 0 0 0 x x x x x",
  2833. " x a6 a5 a4 a3 a2 a1 a0",
  2834. " i i i i i i i i";
  2835. writepage = " 0 1 0 0 1 1 0 0",
  2836. "a15 a14 a13 a12 a11 a10 a9 a8",
  2837. " a7 x x x x x x x",
  2838. " x x x x x x x x";
  2839. mode = 0x41;
  2840. delay = 6;
  2841. blocksize = 256;
  2842. readsize = 256;
  2843. ;
  2844. memory "lfuse"
  2845. size = 1;
  2846. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  2847. "x x x x x x x x i i i i i i i i";
  2848. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  2849. "x x x x x x x x o o o o o o o o";
  2850. min_write_delay = 9000;
  2851. max_write_delay = 9000;
  2852. ;
  2853. memory "hfuse"
  2854. size = 1;
  2855. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  2856. "x x x x x x x x i i i i i i i i";
  2857. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  2858. "x x x x x x x x o o o o o o o o";
  2859. min_write_delay = 9000;
  2860. max_write_delay = 9000;
  2861. ;
  2862. memory "efuse"
  2863. size = 1;
  2864. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  2865. "x x x x x x x x x x x x i i i i";
  2866. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  2867. "x x x x x x x x o o o o o o o o";
  2868. min_write_delay = 9000;
  2869. max_write_delay = 9000;
  2870. ;
  2871. memory "lock"
  2872. size = 1;
  2873. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  2874. "x x x x x x x x x x o o o o o o";
  2875. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  2876. "x x x x x x x x 1 1 i i i i i i";
  2877. min_write_delay = 9000;
  2878. max_write_delay = 9000;
  2879. ;
  2880. memory "calibration"
  2881. size = 1;
  2882. read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
  2883. "0 0 0 0 0 0 0 0 o o o o o o o o";
  2884. ;
  2885. memory "signature"
  2886. size = 3;
  2887. read = "0 0 1 1 0 0 0 0 x x x x x x x x",
  2888. "x x x x x x a1 a0 o o o o o o o o";
  2889. ;
  2890. ;
  2891. #------------------------------------------------------------
  2892. # AT90CAN32
  2893. #------------------------------------------------------------
  2894. part
  2895. id = "c32";
  2896. desc = "AT90CAN32";
  2897. has_jtag = yes;
  2898. stk500_devcode = 0xB3;
  2899. # avr910_devcode = 0x43;
  2900. signature = 0x1e 0x95 0x81;
  2901. chip_erase_delay = 9000;
  2902. pagel = 0xD7;
  2903. bs2 = 0xA0;
  2904. reset = dedicated;
  2905. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  2906. "x x x x x x x x x x x x x x x x";
  2907. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
  2908. "x x x x x x x x x x x x x x x x";
  2909. timeout = 200;
  2910. stabdelay = 100;
  2911. cmdexedelay = 25;
  2912. synchloops = 32;
  2913. bytedelay = 0;
  2914. pollindex = 3;
  2915. pollvalue = 0x53;
  2916. predelay = 1;
  2917. postdelay = 1;
  2918. pollmethod = 1;
  2919. pp_controlstack =
  2920. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  2921. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  2922. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  2923. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x01;
  2924. hventerstabdelay = 100;
  2925. progmodedelay = 0;
  2926. latchcycles = 6;
  2927. togglevtg = 0;
  2928. poweroffdelay = 0;
  2929. resetdelayms = 0;
  2930. resetdelayus = 0;
  2931. hvleavestabdelay = 15;
  2932. chiperasepulsewidth = 0;
  2933. chiperasepolltimeout = 10;
  2934. programfusepulsewidth = 0;
  2935. programfusepolltimeout = 5;
  2936. programlockpulsewidth = 0;
  2937. programlockpolltimeout = 5;
  2938. idr = 0x31;
  2939. spmcr = 0x57;
  2940. rampz = 0x3b;
  2941. eecr = 0x3f;
  2942. allowfullpagebitstream = no;
  2943. memory "eeprom"
  2944. paged = no; /* leave this "no" */
  2945. page_size = 8; /* for parallel programming */
  2946. size = 1024;
  2947. min_write_delay = 9000;
  2948. max_write_delay = 9000;
  2949. readback_p1 = 0xff;
  2950. readback_p2 = 0xff;
  2951. read = " 1 0 1 0 0 0 0 0",
  2952. " 0 0 0 x x x a9 a8",
  2953. " a7 a6 a5 a4 a3 a2 a1 a0",
  2954. " o o o o o o o o";
  2955. write = " 1 1 0 0 0 0 0 0",
  2956. " 0 0 0 x x x a9 a8",
  2957. " a7 a6 a5 a4 a3 a2 a1 a0",
  2958. " i i i i i i i i";
  2959. loadpage_lo = " 1 1 0 0 0 0 0 1",
  2960. " 0 0 0 0 0 0 0 0",
  2961. " 0 0 0 0 0 a2 a1 a0",
  2962. " i i i i i i i i";
  2963. writepage = " 1 1 0 0 0 0 1 0",
  2964. " 0 0 x x x x a9 a8",
  2965. " a7 a6 a5 a4 a3 0 0 0",
  2966. " x x x x x x x x";
  2967. mode = 0x41;
  2968. delay = 20;
  2969. blocksize = 8;
  2970. readsize = 256;
  2971. ;
  2972. memory "flash"
  2973. paged = yes;
  2974. size = 32768;
  2975. page_size = 256;
  2976. num_pages = 128;
  2977. min_write_delay = 4500;
  2978. max_write_delay = 4500;
  2979. readback_p1 = 0xff;
  2980. readback_p2 = 0xff;
  2981. read_lo = " 0 0 1 0 0 0 0 0",
  2982. "a15 a14 a13 a12 a11 a10 a9 a8",
  2983. " a7 a6 a5 a4 a3 a2 a1 a0",
  2984. " o o o o o o o o";
  2985. read_hi = " 0 0 1 0 1 0 0 0",
  2986. "a15 a14 a13 a12 a11 a10 a9 a8",
  2987. " a7 a6 a5 a4 a3 a2 a1 a0",
  2988. " o o o o o o o o";
  2989. loadpage_lo = " 0 1 0 0 0 0 0 0",
  2990. " 0 0 0 x x x x x",
  2991. " x a6 a5 a4 a3 a2 a1 a0",
  2992. " i i i i i i i i";
  2993. loadpage_hi = " 0 1 0 0 1 0 0 0",
  2994. " 0 0 0 x x x x x",
  2995. " x a6 a5 a4 a3 a2 a1 a0",
  2996. " i i i i i i i i";
  2997. writepage = " 0 1 0 0 1 1 0 0",
  2998. "a15 a14 a13 a12 a11 a10 a9 a8",
  2999. " a7 x x x x x x x",
  3000. " x x x x x x x x";
  3001. mode = 0x41;
  3002. delay = 6;
  3003. blocksize = 256;
  3004. readsize = 256;
  3005. ;
  3006. memory "lfuse"
  3007. size = 1;
  3008. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  3009. "x x x x x x x x i i i i i i i i";
  3010. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  3011. "x x x x x x x x o o o o o o o o";
  3012. min_write_delay = 9000;
  3013. max_write_delay = 9000;
  3014. ;
  3015. memory "hfuse"
  3016. size = 1;
  3017. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  3018. "x x x x x x x x i i i i i i i i";
  3019. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  3020. "x x x x x x x x o o o o o o o o";
  3021. min_write_delay = 9000;
  3022. max_write_delay = 9000;
  3023. ;
  3024. memory "efuse"
  3025. size = 1;
  3026. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  3027. "x x x x x x x x x x x x i i i i";
  3028. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  3029. "x x x x x x x x o o o o o o o o";
  3030. min_write_delay = 9000;
  3031. max_write_delay = 9000;
  3032. ;
  3033. memory "lock"
  3034. size = 1;
  3035. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  3036. "x x x x x x x x x x o o o o o o";
  3037. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  3038. "x x x x x x x x 1 1 i i i i i i";
  3039. min_write_delay = 9000;
  3040. max_write_delay = 9000;
  3041. ;
  3042. memory "calibration"
  3043. size = 1;
  3044. read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
  3045. "0 0 0 0 0 0 0 0 o o o o o o o o";
  3046. ;
  3047. memory "signature"
  3048. size = 3;
  3049. read = "0 0 1 1 0 0 0 0 x x x x x x x x",
  3050. "x x x x x x a1 a0 o o o o o o o o";
  3051. ;
  3052. ;
  3053. #------------------------------------------------------------
  3054. # ATmega16
  3055. #------------------------------------------------------------
  3056. part
  3057. id = "m16";
  3058. desc = "ATMEGA16";
  3059. has_jtag = yes;
  3060. stk500_devcode = 0x82;
  3061. avr910_devcode = 0x74;
  3062. signature = 0x1e 0x94 0x03;
  3063. pagel = 0xd7;
  3064. bs2 = 0xa0;
  3065. chip_erase_delay = 9000;
  3066. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  3067. "x x x x x x x x x x x x x x x x";
  3068. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
  3069. "x x x x x x x x x x x x x x x x";
  3070. timeout = 200;
  3071. stabdelay = 100;
  3072. cmdexedelay = 25;
  3073. synchloops = 32;
  3074. bytedelay = 0;
  3075. pollindex = 3;
  3076. pollvalue = 0x53;
  3077. predelay = 1;
  3078. postdelay = 1;
  3079. pollmethod = 0;
  3080. pp_controlstack =
  3081. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  3082. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  3083. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  3084. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  3085. hventerstabdelay = 100;
  3086. progmodedelay = 100;
  3087. latchcycles = 6;
  3088. togglevtg = 0;
  3089. poweroffdelay = 0;
  3090. resetdelayms = 0;
  3091. resetdelayus = 0;
  3092. hvleavestabdelay = 15;
  3093. resetdelay = 15;
  3094. chiperasepulsewidth = 0;
  3095. chiperasepolltimeout = 10;
  3096. programfusepulsewidth = 0;
  3097. programfusepolltimeout = 5;
  3098. programlockpulsewidth = 0;
  3099. programlockpolltimeout = 5;
  3100. idr = 0x31;
  3101. spmcr = 0x57;
  3102. allowfullpagebitstream = yes;
  3103. memory "eeprom"
  3104. paged = no; /* leave this "no" */
  3105. page_size = 4; /* for parallel programming */
  3106. size = 512;
  3107. min_write_delay = 9000;
  3108. max_write_delay = 9000;
  3109. readback_p1 = 0xff;
  3110. readback_p2 = 0xff;
  3111. read = " 1 0 1 0 0 0 0 0",
  3112. " 0 0 x x x x a9 a8",
  3113. " a7 a6 a5 a4 a3 a2 a1 a0",
  3114. " o o o o o o o o";
  3115. write = " 1 1 0 0 0 0 0 0",
  3116. " 0 0 x x x x a9 a8",
  3117. " a7 a6 a5 a4 a3 a2 a1 a0",
  3118. " i i i i i i i i";
  3119. loadpage_lo = " 1 1 0 0 0 0 0 1",
  3120. " 0 0 0 0 0 0 0 0",
  3121. " 0 0 0 0 0 0 a1 a0",
  3122. " i i i i i i i i";
  3123. writepage = " 1 1 0 0 0 0 1 0",
  3124. " 0 0 x x x x a9 a8",
  3125. " a7 a6 a5 a4 a3 a2 0 0",
  3126. " x x x x x x x x";
  3127. mode = 0x04;
  3128. delay = 10;
  3129. blocksize = 128;
  3130. readsize = 256;
  3131. ;
  3132. memory "flash"
  3133. paged = yes;
  3134. size = 16384;
  3135. page_size = 128;
  3136. num_pages = 128;
  3137. min_write_delay = 4500;
  3138. max_write_delay = 4500;
  3139. readback_p1 = 0xff;
  3140. readback_p2 = 0xff;
  3141. read_lo = " 0 0 1 0 0 0 0 0",
  3142. " 0 0 a13 a12 a11 a10 a9 a8",
  3143. " a7 a6 a5 a4 a3 a2 a1 a0",
  3144. " o o o o o o o o";
  3145. read_hi = " 0 0 1 0 1 0 0 0",
  3146. " 0 0 a13 a12 a11 a10 a9 a8",
  3147. " a7 a6 a5 a4 a3 a2 a1 a0",
  3148. " o o o o o o o o";
  3149. loadpage_lo = " 0 1 0 0 0 0 0 0",
  3150. " 0 0 x x x x x x",
  3151. " x x a5 a4 a3 a2 a1 a0",
  3152. " i i i i i i i i";
  3153. loadpage_hi = " 0 1 0 0 1 0 0 0",
  3154. " 0 0 x x x x x x",
  3155. " x x a5 a4 a3 a2 a1 a0",
  3156. " i i i i i i i i";
  3157. writepage = " 0 1 0 0 1 1 0 0",
  3158. " 0 0 a13 a12 a11 a10 a9 a8",
  3159. " a7 a6 x x x x x x",
  3160. " x x x x x x x x";
  3161. mode = 0x21;
  3162. delay = 6;
  3163. blocksize = 128;
  3164. readsize = 256;
  3165. ;
  3166. memory "lock"
  3167. size = 1;
  3168. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  3169. "x x x x x x x x x x o o o o o o";
  3170. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  3171. "x x x x x x x x 1 1 i i i i i i";
  3172. min_write_delay = 9000;
  3173. max_write_delay = 9000;
  3174. ;
  3175. memory "lfuse"
  3176. size = 1;
  3177. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  3178. "x x x x x x x x o o o o o o o o";
  3179. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  3180. "x x x x x x x x i i i i i i i i";
  3181. min_write_delay = 9000;
  3182. max_write_delay = 9000;
  3183. ;
  3184. memory "hfuse"
  3185. size = 1;
  3186. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  3187. "x x x x x x x x o o o o o o o o";
  3188. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  3189. "x x x x x x x x i i i i i i i i";
  3190. min_write_delay = 9000;
  3191. max_write_delay = 9000;
  3192. ;
  3193. memory "signature"
  3194. size = 3;
  3195. read = "0 0 1 1 0 0 0 0 x x x x x x x x",
  3196. "x x x x x x a1 a0 o o o o o o o o";
  3197. ;
  3198. memory "calibration"
  3199. size = 4;
  3200. read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
  3201. "0 0 0 0 0 0 a1 a0 o o o o o o o o";
  3202. ;
  3203. ;
  3204. #------------------------------------------------------------
  3205. # ATmega164P
  3206. #------------------------------------------------------------
  3207. # close to ATmega16
  3208. part
  3209. id = "m164p";
  3210. desc = "ATMEGA164P";
  3211. has_jtag = yes;
  3212. stk500_devcode = 0x82; # no STK500v1 support, use the ATmega16 one
  3213. avr910_devcode = 0x74;
  3214. signature = 0x1e 0x94 0x0a;
  3215. pagel = 0xd7;
  3216. bs2 = 0xa0;
  3217. chip_erase_delay = 9000;
  3218. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  3219. "x x x x x x x x x x x x x x x x";
  3220. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
  3221. "x x x x x x x x x x x x x x x x";
  3222. timeout = 200;
  3223. stabdelay = 100;
  3224. cmdexedelay = 25;
  3225. synchloops = 32;
  3226. bytedelay = 0;
  3227. pollindex = 3;
  3228. pollvalue = 0x53;
  3229. predelay = 1;
  3230. postdelay = 1;
  3231. pollmethod = 0;
  3232. pp_controlstack =
  3233. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  3234. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  3235. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  3236. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  3237. hventerstabdelay = 100;
  3238. progmodedelay = 0;
  3239. latchcycles = 5;
  3240. togglevtg = 1;
  3241. poweroffdelay = 15;
  3242. resetdelayms = 1;
  3243. resetdelayus = 0;
  3244. hvleavestabdelay = 15;
  3245. chiperasepulsewidth = 0;
  3246. chiperasepolltimeout = 10;
  3247. programfusepulsewidth = 0;
  3248. programfusepolltimeout = 5;
  3249. programlockpulsewidth = 0;
  3250. programlockpolltimeout = 5;
  3251. idr = 0x31;
  3252. spmcr = 0x57;
  3253. allowfullpagebitstream = no;
  3254. memory "eeprom"
  3255. paged = no; /* leave this "no" */
  3256. page_size = 4; /* for parallel programming */
  3257. size = 512;
  3258. min_write_delay = 9000;
  3259. max_write_delay = 9000;
  3260. readback_p1 = 0xff;
  3261. readback_p2 = 0xff;
  3262. read = " 1 0 1 0 0 0 0 0",
  3263. " 0 0 x x x x a9 a8",
  3264. " a7 a6 a5 a4 a3 a2 a1 a0",
  3265. " o o o o o o o o";
  3266. write = " 1 1 0 0 0 0 0 0",
  3267. " 0 0 x x x x a9 a8",
  3268. " a7 a6 a5 a4 a3 a2 a1 a0",
  3269. " i i i i i i i i";
  3270. loadpage_lo = " 1 1 0 0 0 0 0 1",
  3271. " 0 0 0 0 0 0 0 0",
  3272. " 0 0 0 0 0 0 a1 a0",
  3273. " i i i i i i i i";
  3274. writepage = " 1 1 0 0 0 0 1 0",
  3275. " 0 0 x x x x a9 a8",
  3276. " a7 a6 a5 a4 a3 a2 0 0",
  3277. " x x x x x x x x";
  3278. mode = 0x41;
  3279. delay = 10;
  3280. blocksize = 128;
  3281. readsize = 256;
  3282. ;
  3283. memory "flash"
  3284. paged = yes;
  3285. size = 16384;
  3286. page_size = 128;
  3287. num_pages = 128;
  3288. min_write_delay = 4500;
  3289. max_write_delay = 4500;
  3290. readback_p1 = 0xff;
  3291. readback_p2 = 0xff;
  3292. read_lo = " 0 0 1 0 0 0 0 0",
  3293. " 0 0 a13 a12 a11 a10 a9 a8",
  3294. " a7 a6 a5 a4 a3 a2 a1 a0",
  3295. " o o o o o o o o";
  3296. read_hi = " 0 0 1 0 1 0 0 0",
  3297. " 0 0 a13 a12 a11 a10 a9 a8",
  3298. " a7 a6 a5 a4 a3 a2 a1 a0",
  3299. " o o o o o o o o";
  3300. loadpage_lo = " 0 1 0 0 0 0 0 0",
  3301. " 0 0 x x x x x x",
  3302. " x x a5 a4 a3 a2 a1 a0",
  3303. " i i i i i i i i";
  3304. loadpage_hi = " 0 1 0 0 1 0 0 0",
  3305. " 0 0 x x x x x x",
  3306. " x x a5 a4 a3 a2 a1 a0",
  3307. " i i i i i i i i";
  3308. writepage = " 0 1 0 0 1 1 0 0",
  3309. " 0 0 a13 a12 a11 a10 a9 a8",
  3310. " a7 a6 x x x x x x",
  3311. " x x x x x x x x";
  3312. mode = 0x21;
  3313. delay = 6;
  3314. blocksize = 128;
  3315. readsize = 256;
  3316. ;
  3317. memory "lock"
  3318. size = 1;
  3319. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  3320. "x x x x x x x x x x o o o o o o";
  3321. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  3322. "x x x x x x x x 1 1 i i i i i i";
  3323. min_write_delay = 9000;
  3324. max_write_delay = 9000;
  3325. ;
  3326. memory "lfuse"
  3327. size = 1;
  3328. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  3329. "x x x x x x x x o o o o o o o o";
  3330. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  3331. "x x x x x x x x i i i i i i i i";
  3332. min_write_delay = 9000;
  3333. max_write_delay = 9000;
  3334. ;
  3335. memory "hfuse"
  3336. size = 1;
  3337. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  3338. "x x x x x x x x o o o o o o o o";
  3339. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  3340. "x x x x x x x x i i i i i i i i";
  3341. min_write_delay = 9000;
  3342. max_write_delay = 9000;
  3343. ;
  3344. memory "efuse"
  3345. size = 1;
  3346. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  3347. "x x x x x x x x o o o o o o o o";
  3348. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  3349. "x x x x x x x x 1 1 1 1 1 i i i";
  3350. min_write_delay = 9000;
  3351. max_write_delay = 9000;
  3352. ;
  3353. memory "signature"
  3354. size = 3;
  3355. read = "0 0 1 1 0 0 0 0 x x x x x x x x",
  3356. "x x x x x x a1 a0 o o o o o o o o";
  3357. ;
  3358. memory "calibration"
  3359. size = 1;
  3360. read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
  3361. "0 0 0 0 0 0 0 0 o o o o o o o o";
  3362. ;
  3363. ;
  3364. #------------------------------------------------------------
  3365. # ATmega324P
  3366. #------------------------------------------------------------
  3367. # similar to ATmega164P
  3368. part
  3369. id = "m324p";
  3370. desc = "ATMEGA324P";
  3371. has_jtag = yes;
  3372. stk500_devcode = 0x82; # no STK500v1 support, use the ATmega16 one
  3373. avr910_devcode = 0x74;
  3374. signature = 0x1e 0x95 0x08;
  3375. pagel = 0xd7;
  3376. bs2 = 0xa0;
  3377. chip_erase_delay = 9000;
  3378. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  3379. "x x x x x x x x x x x x x x x x";
  3380. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
  3381. "x x x x x x x x x x x x x x x x";
  3382. timeout = 200;
  3383. stabdelay = 100;
  3384. cmdexedelay = 25;
  3385. synchloops = 32;
  3386. bytedelay = 0;
  3387. pollindex = 3;
  3388. pollvalue = 0x53;
  3389. predelay = 1;
  3390. postdelay = 1;
  3391. pollmethod = 0;
  3392. pp_controlstack =
  3393. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  3394. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  3395. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  3396. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  3397. hventerstabdelay = 100;
  3398. progmodedelay = 0;
  3399. latchcycles = 5;
  3400. togglevtg = 1;
  3401. poweroffdelay = 15;
  3402. resetdelayms = 1;
  3403. resetdelayus = 0;
  3404. hvleavestabdelay = 15;
  3405. chiperasepulsewidth = 0;
  3406. chiperasepolltimeout = 10;
  3407. programfusepulsewidth = 0;
  3408. programfusepolltimeout = 5;
  3409. programlockpulsewidth = 0;
  3410. programlockpolltimeout = 5;
  3411. idr = 0x31;
  3412. spmcr = 0x57;
  3413. allowfullpagebitstream = no;
  3414. memory "eeprom"
  3415. paged = no; /* leave this "no" */
  3416. page_size = 4; /* for parallel programming */
  3417. size = 1024;
  3418. min_write_delay = 9000;
  3419. max_write_delay = 9000;
  3420. readback_p1 = 0xff;
  3421. readback_p2 = 0xff;
  3422. read = " 1 0 1 0 0 0 0 0",
  3423. " 0 0 x x x a10 a9 a8",
  3424. " a7 a6 a5 a4 a3 a2 a1 a0",
  3425. " o o o o o o o o";
  3426. write = " 1 1 0 0 0 0 0 0",
  3427. " 0 0 x x x a10 a9 a8",
  3428. " a7 a6 a5 a4 a3 a2 a1 a0",
  3429. " i i i i i i i i";
  3430. loadpage_lo = " 1 1 0 0 0 0 0 1",
  3431. " 0 0 0 0 0 0 0 0",
  3432. " 0 0 0 0 0 0 a1 a0",
  3433. " i i i i i i i i";
  3434. writepage = " 1 1 0 0 0 0 1 0",
  3435. " 0 0 x x x a10 a9 a8",
  3436. " a7 a6 a5 a4 a3 a2 0 0",
  3437. " x x x x x x x x";
  3438. mode = 0x41;
  3439. delay = 10;
  3440. blocksize = 128;
  3441. readsize = 256;
  3442. ;
  3443. memory "flash"
  3444. paged = yes;
  3445. size = 32768;
  3446. page_size = 128;
  3447. num_pages = 256;
  3448. min_write_delay = 4500;
  3449. max_write_delay = 4500;
  3450. readback_p1 = 0xff;
  3451. readback_p2 = 0xff;
  3452. read_lo = " 0 0 1 0 0 0 0 0",
  3453. " 0 a14 a13 a12 a11 a10 a9 a8",
  3454. " a7 a6 a5 a4 a3 a2 a1 a0",
  3455. " o o o o o o o o";
  3456. read_hi = " 0 0 1 0 1 0 0 0",
  3457. " 0 a14 a13 a12 a11 a10 a9 a8",
  3458. " a7 a6 a5 a4 a3 a2 a1 a0",
  3459. " o o o o o o o o";
  3460. loadpage_lo = " 0 1 0 0 0 0 0 0",
  3461. " 0 0 x x x x x x",
  3462. " x x a5 a4 a3 a2 a1 a0",
  3463. " i i i i i i i i";
  3464. loadpage_hi = " 0 1 0 0 1 0 0 0",
  3465. " 0 0 x x x x x x",
  3466. " x x a5 a4 a3 a2 a1 a0",
  3467. " i i i i i i i i";
  3468. writepage = " 0 1 0 0 1 1 0 0",
  3469. " 0 a14 a13 a12 a11 a10 a9 a8",
  3470. " a7 a6 x x x x x x",
  3471. " x x x x x x x x";
  3472. mode = 0x21;
  3473. delay = 6;
  3474. blocksize = 256;
  3475. readsize = 256;
  3476. ;
  3477. memory "lock"
  3478. size = 1;
  3479. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  3480. "x x x x x x x x x x o o o o o o";
  3481. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  3482. "x x x x x x x x 1 1 i i i i i i";
  3483. min_write_delay = 9000;
  3484. max_write_delay = 9000;
  3485. ;
  3486. memory "lfuse"
  3487. size = 1;
  3488. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  3489. "x x x x x x x x o o o o o o o o";
  3490. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  3491. "x x x x x x x x i i i i i i i i";
  3492. min_write_delay = 9000;
  3493. max_write_delay = 9000;
  3494. ;
  3495. memory "hfuse"
  3496. size = 1;
  3497. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  3498. "x x x x x x x x o o o o o o o o";
  3499. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  3500. "x x x x x x x x i i i i i i i i";
  3501. min_write_delay = 9000;
  3502. max_write_delay = 9000;
  3503. ;
  3504. memory "efuse"
  3505. size = 1;
  3506. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  3507. "x x x x x x x x o o o o o o o o";
  3508. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  3509. "x x x x x x x x 1 1 1 1 1 i i i";
  3510. min_write_delay = 9000;
  3511. max_write_delay = 9000;
  3512. ;
  3513. memory "signature"
  3514. size = 3;
  3515. read = "0 0 1 1 0 0 0 0 x x x x x x x x",
  3516. "x x x x x x a1 a0 o o o o o o o o";
  3517. ;
  3518. memory "calibration"
  3519. size = 1;
  3520. read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
  3521. "0 0 0 0 0 0 0 0 o o o o o o o o";
  3522. ;
  3523. ;
  3524. #------------------------------------------------------------
  3525. # ATmega644
  3526. #------------------------------------------------------------
  3527. # similar to ATmega164
  3528. part
  3529. id = "m644";
  3530. desc = "ATMEGA644";
  3531. has_jtag = yes;
  3532. stk500_devcode = 0x82; # no STK500v1 support, use the ATmega16 one
  3533. avr910_devcode = 0x74;
  3534. signature = 0x1e 0x96 0x09;
  3535. pagel = 0xd7;
  3536. bs2 = 0xa0;
  3537. chip_erase_delay = 9000;
  3538. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  3539. "x x x x x x x x x x x x x x x x";
  3540. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
  3541. "x x x x x x x x x x x x x x x x";
  3542. timeout = 200;
  3543. stabdelay = 100;
  3544. cmdexedelay = 25;
  3545. synchloops = 32;
  3546. bytedelay = 0;
  3547. pollindex = 3;
  3548. pollvalue = 0x53;
  3549. predelay = 1;
  3550. postdelay = 1;
  3551. pollmethod = 0;
  3552. pp_controlstack =
  3553. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  3554. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  3555. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  3556. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x02;
  3557. hventerstabdelay = 100;
  3558. progmodedelay = 0;
  3559. latchcycles = 6;
  3560. togglevtg = 0;
  3561. poweroffdelay = 0;
  3562. resetdelayms = 0;
  3563. resetdelayus = 0;
  3564. hvleavestabdelay = 15;
  3565. chiperasepulsewidth = 0;
  3566. chiperasepolltimeout = 10;
  3567. programfusepulsewidth = 0;
  3568. programfusepolltimeout = 5;
  3569. programlockpulsewidth = 0;
  3570. programlockpolltimeout = 5;
  3571. idr = 0x31;
  3572. spmcr = 0x57;
  3573. allowfullpagebitstream = no;
  3574. memory "eeprom"
  3575. paged = no; /* leave this "no" */
  3576. page_size = 8; /* for parallel programming */
  3577. size = 2048;
  3578. min_write_delay = 9000;
  3579. max_write_delay = 9000;
  3580. readback_p1 = 0xff;
  3581. readback_p2 = 0xff;
  3582. read = " 1 0 1 0 0 0 0 0",
  3583. " 0 0 x x a11 a10 a9 a8",
  3584. " a7 a6 a5 a4 a3 a2 a1 a0",
  3585. " o o o o o o o o";
  3586. write = " 1 1 0 0 0 0 0 0",
  3587. " 0 0 x x a11 a10 a9 a8",
  3588. " a7 a6 a5 a4 a3 a2 a1 a0",
  3589. " i i i i i i i i";
  3590. loadpage_lo = " 1 1 0 0 0 0 0 1",
  3591. " 0 0 0 0 0 0 0 0",
  3592. " 0 0 0 0 0 a2 a1 a0",
  3593. " i i i i i i i i";
  3594. writepage = " 1 1 0 0 0 0 1 0",
  3595. " 0 0 x x a11 a10 a9 a8",
  3596. " a7 a6 a5 a4 a3 0 0 0",
  3597. " x x x x x x x x";
  3598. mode = 0x41;
  3599. delay = 10;
  3600. blocksize = 128;
  3601. readsize = 256;
  3602. ;
  3603. memory "flash"
  3604. paged = yes;
  3605. size = 65536;
  3606. page_size = 256;
  3607. num_pages = 256;
  3608. min_write_delay = 4500;
  3609. max_write_delay = 4500;
  3610. readback_p1 = 0xff;
  3611. readback_p2 = 0xff;
  3612. read_lo = " 0 0 1 0 0 0 0 0",
  3613. "a15 a14 a13 a12 a11 a10 a9 a8",
  3614. " a7 a6 a5 a4 a3 a2 a1 a0",
  3615. " o o o o o o o o";
  3616. read_hi = " 0 0 1 0 1 0 0 0",
  3617. "a15 a14 a13 a12 a11 a10 a9 a8",
  3618. " a7 a6 a5 a4 a3 a2 a1 a0",
  3619. " o o o o o o o o";
  3620. loadpage_lo = " 0 1 0 0 0 0 0 0",
  3621. " 0 0 x x x x x x",
  3622. " x a6 a5 a4 a3 a2 a1 a0",
  3623. " i i i i i i i i";
  3624. loadpage_hi = " 0 1 0 0 1 0 0 0",
  3625. " 0 0 x x x x x x",
  3626. " x a6 a5 a4 a3 a2 a1 a0",
  3627. " i i i i i i i i";
  3628. writepage = " 0 1 0 0 1 1 0 0",
  3629. "a15 a14 a13 a12 a11 a10 a9 a8",
  3630. " a7 x x x x x x x",
  3631. " x x x x x x x x";
  3632. mode = 0x21;
  3633. delay = 6;
  3634. blocksize = 256;
  3635. readsize = 256;
  3636. ;
  3637. memory "lock"
  3638. size = 1;
  3639. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  3640. "x x x x x x x x x x o o o o o o";
  3641. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  3642. "x x x x x x x x 1 1 i i i i i i";
  3643. min_write_delay = 9000;
  3644. max_write_delay = 9000;
  3645. ;
  3646. memory "lfuse"
  3647. size = 1;
  3648. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  3649. "x x x x x x x x o o o o o o o o";
  3650. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  3651. "x x x x x x x x i i i i i i i i";
  3652. min_write_delay = 9000;
  3653. max_write_delay = 9000;
  3654. ;
  3655. memory "hfuse"
  3656. size = 1;
  3657. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  3658. "x x x x x x x x o o o o o o o o";
  3659. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  3660. "x x x x x x x x i i i i i i i i";
  3661. min_write_delay = 9000;
  3662. max_write_delay = 9000;
  3663. ;
  3664. memory "efuse"
  3665. size = 1;
  3666. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  3667. "x x x x x x x x o o o o o o o o";
  3668. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  3669. "x x x x x x x x 1 1 1 1 1 i i i";
  3670. min_write_delay = 9000;
  3671. max_write_delay = 9000;
  3672. ;
  3673. memory "signature"
  3674. size = 3;
  3675. read = "0 0 1 1 0 0 0 0 x x x x x x x x",
  3676. "x x x x x x a1 a0 o o o o o o o o";
  3677. ;
  3678. memory "calibration"
  3679. size = 1;
  3680. read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
  3681. "0 0 0 0 0 0 0 0 o o o o o o o o";
  3682. ;
  3683. ;
  3684. #------------------------------------------------------------
  3685. # ATmega644P
  3686. #------------------------------------------------------------
  3687. # similar to ATmega164p
  3688. part
  3689. id = "m644p";
  3690. desc = "ATMEGA644P";
  3691. has_jtag = yes;
  3692. stk500_devcode = 0x82; # no STK500v1 support, use the ATmega16 one
  3693. avr910_devcode = 0x74;
  3694. signature = 0x1e 0x96 0x0a;
  3695. pagel = 0xd7;
  3696. bs2 = 0xa0;
  3697. chip_erase_delay = 9000;
  3698. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  3699. "x x x x x x x x x x x x x x x x";
  3700. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
  3701. "x x x x x x x x x x x x x x x x";
  3702. timeout = 200;
  3703. stabdelay = 100;
  3704. cmdexedelay = 25;
  3705. synchloops = 32;
  3706. bytedelay = 0;
  3707. pollindex = 3;
  3708. pollvalue = 0x53;
  3709. predelay = 1;
  3710. postdelay = 1;
  3711. pollmethod = 0;
  3712. pp_controlstack =
  3713. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  3714. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  3715. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  3716. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x02;
  3717. hventerstabdelay = 100;
  3718. progmodedelay = 0;
  3719. latchcycles = 6;
  3720. togglevtg = 0;
  3721. poweroffdelay = 0;
  3722. resetdelayms = 0;
  3723. resetdelayus = 0;
  3724. hvleavestabdelay = 15;
  3725. chiperasepulsewidth = 0;
  3726. chiperasepolltimeout = 10;
  3727. programfusepulsewidth = 0;
  3728. programfusepolltimeout = 5;
  3729. programlockpulsewidth = 0;
  3730. programlockpolltimeout = 5;
  3731. idr = 0x31;
  3732. spmcr = 0x57;
  3733. allowfullpagebitstream = no;
  3734. memory "eeprom"
  3735. paged = no; /* leave this "no" */
  3736. page_size = 8; /* for parallel programming */
  3737. size = 2048;
  3738. min_write_delay = 9000;
  3739. max_write_delay = 9000;
  3740. readback_p1 = 0xff;
  3741. readback_p2 = 0xff;
  3742. read = " 1 0 1 0 0 0 0 0",
  3743. " 0 0 x x a11 a10 a9 a8",
  3744. " a7 a6 a5 a4 a3 a2 a1 a0",
  3745. " o o o o o o o o";
  3746. write = " 1 1 0 0 0 0 0 0",
  3747. " 0 0 x x a11 a10 a9 a8",
  3748. " a7 a6 a5 a4 a3 a2 a1 a0",
  3749. " i i i i i i i i";
  3750. loadpage_lo = " 1 1 0 0 0 0 0 1",
  3751. " 0 0 0 0 0 0 0 0",
  3752. " 0 0 0 0 0 a2 a1 a0",
  3753. " i i i i i i i i";
  3754. writepage = " 1 1 0 0 0 0 1 0",
  3755. " 0 0 x x a11 a10 a9 a8",
  3756. " a7 a6 a5 a4 a3 0 0 0",
  3757. " x x x x x x x x";
  3758. mode = 0x41;
  3759. delay = 10;
  3760. blocksize = 128;
  3761. readsize = 256;
  3762. ;
  3763. memory "flash"
  3764. paged = yes;
  3765. size = 65536;
  3766. page_size = 256;
  3767. num_pages = 256;
  3768. min_write_delay = 4500;
  3769. max_write_delay = 4500;
  3770. readback_p1 = 0xff;
  3771. readback_p2 = 0xff;
  3772. read_lo = " 0 0 1 0 0 0 0 0",
  3773. "a15 a14 a13 a12 a11 a10 a9 a8",
  3774. " a7 a6 a5 a4 a3 a2 a1 a0",
  3775. " o o o o o o o o";
  3776. read_hi = " 0 0 1 0 1 0 0 0",
  3777. "a15 a14 a13 a12 a11 a10 a9 a8",
  3778. " a7 a6 a5 a4 a3 a2 a1 a0",
  3779. " o o o o o o o o";
  3780. loadpage_lo = " 0 1 0 0 0 0 0 0",
  3781. " 0 0 x x x x x x",
  3782. " x a6 a5 a4 a3 a2 a1 a0",
  3783. " i i i i i i i i";
  3784. loadpage_hi = " 0 1 0 0 1 0 0 0",
  3785. " 0 0 x x x x x x",
  3786. " x a6 a5 a4 a3 a2 a1 a0",
  3787. " i i i i i i i i";
  3788. writepage = " 0 1 0 0 1 1 0 0",
  3789. "a15 a14 a13 a12 a11 a10 a9 a8",
  3790. " a7 x x x x x x x",
  3791. " x x x x x x x x";
  3792. mode = 0x21;
  3793. delay = 6;
  3794. blocksize = 256;
  3795. readsize = 256;
  3796. ;
  3797. memory "lock"
  3798. size = 1;
  3799. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  3800. "x x x x x x x x x x o o o o o o";
  3801. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  3802. "x x x x x x x x 1 1 i i i i i i";
  3803. min_write_delay = 9000;
  3804. max_write_delay = 9000;
  3805. ;
  3806. memory "lfuse"
  3807. size = 1;
  3808. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  3809. "x x x x x x x x o o o o o o o o";
  3810. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  3811. "x x x x x x x x i i i i i i i i";
  3812. min_write_delay = 9000;
  3813. max_write_delay = 9000;
  3814. ;
  3815. memory "hfuse"
  3816. size = 1;
  3817. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  3818. "x x x x x x x x o o o o o o o o";
  3819. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  3820. "x x x x x x x x i i i i i i i i";
  3821. min_write_delay = 9000;
  3822. max_write_delay = 9000;
  3823. ;
  3824. memory "efuse"
  3825. size = 1;
  3826. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  3827. "x x x x x x x x o o o o o o o o";
  3828. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  3829. "x x x x x x x x 1 1 1 1 1 i i i";
  3830. min_write_delay = 9000;
  3831. max_write_delay = 9000;
  3832. ;
  3833. memory "signature"
  3834. size = 3;
  3835. read = "0 0 1 1 0 0 0 0 x x x x x x x x",
  3836. "x x x x x x a1 a0 o o o o o o o o";
  3837. ;
  3838. memory "calibration"
  3839. size = 1;
  3840. read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
  3841. "0 0 0 0 0 0 0 0 o o o o o o o o";
  3842. ;
  3843. ;
  3844. #------------------------------------------------------------
  3845. # ATmega1284P
  3846. #------------------------------------------------------------
  3847. # similar to ATmega164p
  3848. part
  3849. id = "m1284p";
  3850. desc = "ATMEGA1284P";
  3851. has_jtag = yes;
  3852. stk500_devcode = 0x82; # no STK500v1 support, use the ATmega16 one
  3853. avr910_devcode = 0x74;
  3854. signature = 0x1e 0x97 0x05;
  3855. pagel = 0xd7;
  3856. bs2 = 0xa0;
  3857. chip_erase_delay = 9000;
  3858. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  3859. "x x x x x x x x x x x x x x x x";
  3860. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
  3861. "x x x x x x x x x x x x x x x x";
  3862. timeout = 200;
  3863. stabdelay = 100;
  3864. cmdexedelay = 25;
  3865. synchloops = 32;
  3866. bytedelay = 0;
  3867. pollindex = 3;
  3868. pollvalue = 0x53;
  3869. predelay = 1;
  3870. postdelay = 1;
  3871. pollmethod = 1;
  3872. pp_controlstack =
  3873. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  3874. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  3875. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  3876. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x02;
  3877. hventerstabdelay = 100;
  3878. progmodedelay = 0;
  3879. latchcycles = 6;
  3880. togglevtg = 1;
  3881. poweroffdelay = 15;
  3882. resetdelayms = 1;
  3883. resetdelayus = 0;
  3884. hvleavestabdelay = 15;
  3885. chiperasepulsewidth = 0;
  3886. chiperasepolltimeout = 10;
  3887. programfusepulsewidth = 0;
  3888. programfusepolltimeout = 5;
  3889. programlockpulsewidth = 0;
  3890. programlockpolltimeout = 5;
  3891. idr = 0x31;
  3892. spmcr = 0x57;
  3893. allowfullpagebitstream = no;
  3894. memory "eeprom"
  3895. paged = no; /* leave this "no" */
  3896. page_size = 8; /* for parallel programming */
  3897. size = 4096;
  3898. min_write_delay = 9000;
  3899. max_write_delay = 9000;
  3900. readback_p1 = 0xff;
  3901. readback_p2 = 0xff;
  3902. read = " 1 0 1 0 0 0 0 0",
  3903. " 0 0 x x a11 a10 a9 a8",
  3904. " a7 a6 a5 a4 a3 a2 a1 a0",
  3905. " o o o o o o o o";
  3906. write = " 1 1 0 0 0 0 0 0",
  3907. " 0 0 x x a11 a10 a9 a8",
  3908. " a7 a6 a5 a4 a3 a2 a1 a0",
  3909. " i i i i i i i i";
  3910. loadpage_lo = " 1 1 0 0 0 0 0 1",
  3911. " 0 0 0 0 0 0 0 0",
  3912. " 0 0 0 0 0 a2 a1 a0",
  3913. " i i i i i i i i";
  3914. writepage = " 1 1 0 0 0 0 1 0",
  3915. " 0 0 x x a11 a10 a9 a8",
  3916. " a7 a6 a5 a4 a3 0 0 0",
  3917. " x x x x x x x x";
  3918. mode = 0x41;
  3919. delay = 10;
  3920. blocksize = 128;
  3921. readsize = 256;
  3922. ;
  3923. memory "flash"
  3924. paged = yes;
  3925. size = 131072;
  3926. page_size = 256;
  3927. num_pages = 512;
  3928. min_write_delay = 4500;
  3929. max_write_delay = 4500;
  3930. readback_p1 = 0xff;
  3931. readback_p2 = 0xff;
  3932. read_lo = " 0 0 1 0 0 0 0 0",
  3933. "a15 a14 a13 a12 a11 a10 a9 a8",
  3934. " a7 a6 a5 a4 a3 a2 a1 a0",
  3935. " o o o o o o o o";
  3936. read_hi = " 0 0 1 0 1 0 0 0",
  3937. "a15 a14 a13 a12 a11 a10 a9 a8",
  3938. " a7 a6 a5 a4 a3 a2 a1 a0",
  3939. " o o o o o o o o";
  3940. loadpage_lo = " 0 1 0 0 0 0 0 0",
  3941. " 0 0 x x x x x x",
  3942. " x a6 a5 a4 a3 a2 a1 a0",
  3943. " i i i i i i i i";
  3944. loadpage_hi = " 0 1 0 0 1 0 0 0",
  3945. " 0 0 x x x x x x",
  3946. " x a6 a5 a4 a3 a2 a1 a0",
  3947. " i i i i i i i i";
  3948. writepage = " 0 1 0 0 1 1 0 0",
  3949. "a15 a14 a13 a12 a11 a10 a9 a8",
  3950. " a7 x x x x x x x",
  3951. " x x x x x x x x";
  3952. mode = 0x41;
  3953. delay = 10;
  3954. blocksize = 256;
  3955. readsize = 256;
  3956. ;
  3957. memory "lock"
  3958. size = 1;
  3959. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  3960. "x x x x x x x x x x o o o o o o";
  3961. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  3962. "x x x x x x x x 1 1 i i i i i i";
  3963. min_write_delay = 9000;
  3964. max_write_delay = 9000;
  3965. ;
  3966. memory "lfuse"
  3967. size = 1;
  3968. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  3969. "x x x x x x x x o o o o o o o o";
  3970. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  3971. "x x x x x x x x i i i i i i i i";
  3972. min_write_delay = 9000;
  3973. max_write_delay = 9000;
  3974. ;
  3975. memory "hfuse"
  3976. size = 1;
  3977. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  3978. "x x x x x x x x o o o o o o o o";
  3979. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  3980. "x x x x x x x x i i i i i i i i";
  3981. min_write_delay = 9000;
  3982. max_write_delay = 9000;
  3983. ;
  3984. memory "efuse"
  3985. size = 1;
  3986. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  3987. "x x x x x x x x o o o o o o o o";
  3988. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  3989. "x x x x x x x x 1 1 1 1 1 i i i";
  3990. min_write_delay = 9000;
  3991. max_write_delay = 9000;
  3992. ;
  3993. memory "signature"
  3994. size = 3;
  3995. read = "0 0 1 1 0 0 0 0 x x x x x x x x",
  3996. "x x x x x x a1 a0 o o o o o o o o";
  3997. ;
  3998. memory "calibration"
  3999. size = 1;
  4000. read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
  4001. "0 0 0 0 0 0 0 0 o o o o o o o o";
  4002. ;
  4003. ;
  4004. #------------------------------------------------------------
  4005. # ATmega162
  4006. #------------------------------------------------------------
  4007. part
  4008. id = "m162";
  4009. desc = "ATMEGA162";
  4010. has_jtag = yes;
  4011. stk500_devcode = 0x83;
  4012. avr910_devcode = 0x63;
  4013. signature = 0x1e 0x94 0x04;
  4014. chip_erase_delay = 9000;
  4015. pagel = 0xd7;
  4016. bs2 = 0xa0;
  4017. idr = 0x04;
  4018. spmcr = 0x57;
  4019. allowfullpagebitstream = yes;
  4020. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  4021. "x x x x x x x x x x x x x x x x";
  4022. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
  4023. "x x x x x x x x x x x x x x x x";
  4024. memory "flash"
  4025. paged = yes;
  4026. size = 16384;
  4027. page_size = 128;
  4028. num_pages = 128;
  4029. min_write_delay = 4500;
  4030. max_write_delay = 4500;
  4031. readback_p1 = 0xff;
  4032. readback_p2 = 0xff;
  4033. read_lo = " 0 0 1 0 0 0 0 0",
  4034. " 0 0 a13 a12 a11 a10 a9 a8",
  4035. " a7 a6 a5 a4 a3 a2 a1 a0",
  4036. " o o o o o o o o";
  4037. read_hi = " 0 0 1 0 1 0 0 0",
  4038. " 0 0 a13 a12 a11 a10 a9 a8",
  4039. " a7 a6 a5 a4 a3 a2 a1 a0",
  4040. " o o o o o o o o";
  4041. loadpage_lo = " 0 1 0 0 0 0 0 0",
  4042. " 0 0 x x x x x x",
  4043. " x x a5 a4 a3 a2 a1 a0",
  4044. " i i i i i i i i";
  4045. loadpage_hi = " 0 1 0 0 1 0 0 0",
  4046. " 0 0 x x x x x x",
  4047. " x x a5 a4 a3 a2 a1 a0",
  4048. " i i i i i i i i";
  4049. writepage = " 0 1 0 0 1 1 0 0",
  4050. " 0 0 a13 a12 a11 a10 a9 a8",
  4051. " a7 a6 x x x x x x",
  4052. " x x x x x x x x";
  4053. mode = 0x41;
  4054. delay = 10;
  4055. blocksize = 128;
  4056. readsize = 256;
  4057. ;
  4058. timeout = 200;
  4059. stabdelay = 100;
  4060. cmdexedelay = 25;
  4061. synchloops = 32;
  4062. bytedelay = 0;
  4063. pollindex = 3;
  4064. pollvalue = 0x53;
  4065. predelay = 1;
  4066. postdelay = 1;
  4067. pollmethod = 0;
  4068. pp_controlstack =
  4069. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  4070. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  4071. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  4072. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  4073. hventerstabdelay = 100;
  4074. progmodedelay = 0;
  4075. latchcycles = 6;
  4076. togglevtg = 0;
  4077. poweroffdelay = 0;
  4078. resetdelayms = 0;
  4079. resetdelayus = 0;
  4080. hvleavestabdelay = 15;
  4081. chiperasepulsewidth = 0;
  4082. chiperasepolltimeout = 10;
  4083. programfusepulsewidth = 0;
  4084. programfusepolltimeout = 5;
  4085. programlockpulsewidth = 0;
  4086. programlockpolltimeout = 5;
  4087. memory "eeprom"
  4088. paged = no; /* leave this "no" */
  4089. page_size = 4; /* for parallel programming */
  4090. size = 512;
  4091. min_write_delay = 9000;
  4092. max_write_delay = 9000;
  4093. readback_p1 = 0xff;
  4094. readback_p2 = 0xff;
  4095. read = " 1 0 1 0 0 0 0 0",
  4096. " 0 0 x x x x a9 a8",
  4097. " a7 a6 a5 a4 a3 a2 a1 a0",
  4098. " o o o o o o o o";
  4099. write = " 1 1 0 0 0 0 0 0",
  4100. " 0 0 x x x x a9 a8",
  4101. " a7 a6 a5 a4 a3 a2 a1 a0",
  4102. " i i i i i i i i";
  4103. loadpage_lo = " 1 1 0 0 0 0 0 1",
  4104. " 0 0 0 0 0 0 0 0",
  4105. " 0 0 0 0 0 0 a1 a0",
  4106. " i i i i i i i i";
  4107. writepage = " 1 1 0 0 0 0 1 0",
  4108. " 0 0 x x x x a9 a8",
  4109. " a7 a6 a5 a4 a3 a2 0 0",
  4110. " x x x x x x x x";
  4111. mode = 0x41;
  4112. delay = 20;
  4113. blocksize = 4;
  4114. readsize = 256;
  4115. ;
  4116. memory "lfuse"
  4117. size = 1;
  4118. min_write_delay = 16000;
  4119. max_write_delay = 16000;
  4120. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 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 0 0 0",
  4123. "x x x x x x x x i i i i i i i i";
  4124. ;
  4125. memory "hfuse"
  4126. size = 1;
  4127. min_write_delay = 16000;
  4128. max_write_delay = 16000;
  4129. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  4130. "x x x x x x x x o o o o o o o o";
  4131. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  4132. "x x x x x x x x i i i i i i i i";
  4133. ;
  4134. memory "efuse"
  4135. size = 1;
  4136. min_write_delay = 16000;
  4137. max_write_delay = 16000;
  4138. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  4139. "x x x x x x x x o o o o o o o o";
  4140. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  4141. "x x x x x x x x 1 1 1 1 1 i i i";
  4142. ;
  4143. memory "lock"
  4144. size = 1;
  4145. min_write_delay = 16000;
  4146. max_write_delay = 16000;
  4147. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  4148. "x x x x x x x x x x o o o o o o";
  4149. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  4150. "x x x x x x x x 1 1 i i i i i i";
  4151. ;
  4152. memory "signature"
  4153. size = 3;
  4154. read = "0 0 1 1 0 0 0 0 0 0 x x x x x x",
  4155. "x x x x x x a1 a0 o o o o o o o o";
  4156. ;
  4157. memory "calibration"
  4158. size = 1;
  4159. read = "0 0 1 1 1 0 0 0 0 0 x x x x x x",
  4160. "0 0 0 0 0 0 0 0 o o o o o o o o";
  4161. ;
  4162. ;
  4163. #------------------------------------------------------------
  4164. # ATmega163
  4165. #------------------------------------------------------------
  4166. part
  4167. id = "m163";
  4168. desc = "ATMEGA163";
  4169. stk500_devcode = 0x81;
  4170. avr910_devcode = 0x64;
  4171. signature = 0x1e 0x94 0x02;
  4172. chip_erase_delay = 32000;
  4173. pagel = 0xd7;
  4174. bs2 = 0xa0;
  4175. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  4176. "x x x x x x x x x x x x x x x x";
  4177. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 0 0 0 0 0",
  4178. "x x x x x x x x x x x x x x x x";
  4179. timeout = 200;
  4180. stabdelay = 100;
  4181. cmdexedelay = 25;
  4182. synchloops = 32;
  4183. bytedelay = 0;
  4184. pollindex = 3;
  4185. pollvalue = 0x53;
  4186. predelay = 1;
  4187. postdelay = 1;
  4188. pollmethod = 0;
  4189. pp_controlstack =
  4190. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  4191. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  4192. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  4193. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  4194. hventerstabdelay = 100;
  4195. progmodedelay = 0;
  4196. latchcycles = 0;
  4197. togglevtg = 0;
  4198. poweroffdelay = 0;
  4199. resetdelayms = 0;
  4200. resetdelayus = 0;
  4201. hvleavestabdelay = 15;
  4202. chiperasepulsewidth = 0;
  4203. chiperasepolltimeout = 30;
  4204. programfusepulsewidth = 0;
  4205. programfusepolltimeout = 2;
  4206. programlockpulsewidth = 0;
  4207. programlockpolltimeout = 2;
  4208. memory "eeprom"
  4209. size = 512;
  4210. min_write_delay = 4000;
  4211. max_write_delay = 4000;
  4212. readback_p1 = 0xff;
  4213. readback_p2 = 0xff;
  4214. read = " 1 0 1 0 0 0 0 0",
  4215. " x x x x x x x a8",
  4216. " a7 a6 a5 a4 a3 a2 a1 a0",
  4217. " o o o o o o o o";
  4218. write = " 1 1 0 0 0 0 0 0",
  4219. " x x x x x x x a8",
  4220. " a7 a6 a5 a4 a3 a2 a1 a0",
  4221. " i i i i i i i i";
  4222. mode = 0x41;
  4223. delay = 20;
  4224. blocksize = 4;
  4225. readsize = 256;
  4226. ;
  4227. memory "flash"
  4228. paged = yes;
  4229. size = 16384;
  4230. page_size = 128;
  4231. num_pages = 128;
  4232. min_write_delay = 16000;
  4233. max_write_delay = 16000;
  4234. readback_p1 = 0xff;
  4235. readback_p2 = 0xff;
  4236. read_lo = " 0 0 1 0 0 0 0 0",
  4237. " x x x a12 a11 a10 a9 a8",
  4238. " a7 a6 a5 a4 a3 a2 a1 a0",
  4239. " o o o o o o o o";
  4240. read_hi = " 0 0 1 0 1 0 0 0",
  4241. " x x x a12 a11 a10 a9 a8",
  4242. " a7 a6 a5 a4 a3 a2 a1 a0",
  4243. " o o o o o o o o";
  4244. loadpage_lo = " 0 1 0 0 0 0 0 0",
  4245. " x x x x x x x x",
  4246. " x x a5 a4 a3 a2 a1 a0",
  4247. " i i i i i i i i";
  4248. loadpage_hi = " 0 1 0 0 1 0 0 0",
  4249. " x x x x x x x x",
  4250. " x x a5 a4 a3 a2 a1 a0",
  4251. " i i i i i i i i";
  4252. writepage = " 0 1 0 0 1 1 0 0",
  4253. " x x x a12 a11 a10 a9 a8",
  4254. " a7 a6 x x x x x x",
  4255. " x x x x x x x x";
  4256. mode = 0x11;
  4257. delay = 20;
  4258. blocksize = 128;
  4259. readsize = 256;
  4260. ;
  4261. memory "lfuse"
  4262. size = 1;
  4263. min_write_delay = 2000;
  4264. max_write_delay = 2000;
  4265. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  4266. "x x x x x x x x o o x x o o o o";
  4267. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  4268. "x x x x x x x x i i 1 1 i i i i";
  4269. ;
  4270. memory "hfuse"
  4271. size = 1;
  4272. min_write_delay = 2000;
  4273. max_write_delay = 2000;
  4274. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  4275. "x x x x x x x x x x x x 1 o o o";
  4276. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  4277. "x x x x x x x x 1 1 1 1 1 i i i";
  4278. ;
  4279. memory "lock"
  4280. size = 1;
  4281. min_write_delay = 2000;
  4282. max_write_delay = 2000;
  4283. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  4284. "x x x x 0 x x x x x o o o o o o";
  4285. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  4286. "x x x x x x x x 1 1 i i i i i i";
  4287. ;
  4288. memory "signature"
  4289. size = 3;
  4290. read = "0 0 1 1 0 0 0 0 x x x x x x x x",
  4291. "x x x x x x a1 a0 o o o o o o o o";
  4292. ;
  4293. memory "calibration"
  4294. size = 1;
  4295. read = "0 0 1 1 1 0 0 0 x x x x x x x x",
  4296. "0 0 0 0 0 0 0 0 o o o o o o o o";
  4297. ;
  4298. ;
  4299. #------------------------------------------------------------
  4300. # ATmega169
  4301. #------------------------------------------------------------
  4302. part
  4303. id = "m169";
  4304. desc = "ATMEGA169";
  4305. has_jtag = yes;
  4306. stk500_devcode = 0x85;
  4307. avr910_devcode = 0x78;
  4308. signature = 0x1e 0x94 0x05;
  4309. chip_erase_delay = 9000;
  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 = 1;
  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 = 5;
  4332. togglevtg = 1;
  4333. poweroffdelay = 15;
  4334. resetdelayms = 1;
  4335. resetdelayus = 0;
  4336. hvleavestabdelay = 15;
  4337. chiperasepulsewidth = 0;
  4338. chiperasepolltimeout = 10;
  4339. programfusepulsewidth = 0;
  4340. programfusepolltimeout = 5;
  4341. programlockpulsewidth = 0;
  4342. programlockpolltimeout = 5;
  4343. idr = 0x31;
  4344. spmcr = 0x57;
  4345. memory "eeprom"
  4346. paged = no; /* leave this "no" */
  4347. page_size = 4; /* for parallel programming */
  4348. size = 512;
  4349. min_write_delay = 9000;
  4350. max_write_delay = 9000;
  4351. readback_p1 = 0xff;
  4352. readback_p2 = 0xff;
  4353. read = " 1 0 1 0 0 0 0 0",
  4354. " x x x x x x x a8",
  4355. " a7 a6 a5 a4 a3 a2 a1 a0",
  4356. " o o o o o o o o";
  4357. write = " 1 1 0 0 0 0 0 0",
  4358. " x x x x x x x a8",
  4359. " a7 a6 a5 a4 a3 a2 a1 a0",
  4360. " i i i i i i i i";
  4361. loadpage_lo = " 1 1 0 0 0 0 0 1",
  4362. " 0 0 0 0 0 0 0 0",
  4363. " 0 0 0 0 0 0 a1 a0",
  4364. " i i i i i i i i";
  4365. writepage = " 1 1 0 0 0 0 1 0",
  4366. " 0 0 x x x x x a8",
  4367. " a7 a6 a5 a4 a3 a2 0 0",
  4368. " x x x x x x x x";
  4369. mode = 0x41;
  4370. delay = 20;
  4371. blocksize = 4;
  4372. readsize = 256;
  4373. ;
  4374. memory "flash"
  4375. paged = yes;
  4376. size = 16384;
  4377. page_size = 128;
  4378. num_pages = 128;
  4379. min_write_delay = 4500;
  4380. max_write_delay = 4500;
  4381. readback_p1 = 0xff;
  4382. readback_p2 = 0xff;
  4383. read_lo = " 0 0 1 0 0 0 0 0",
  4384. " x x x a12 a11 a10 a9 a8",
  4385. " a7 a6 a5 a4 a3 a2 a1 a0",
  4386. " o o o o o o o o";
  4387. read_hi = " 0 0 1 0 1 0 0 0",
  4388. " x x x a12 a11 a10 a9 a8",
  4389. " a7 a6 a5 a4 a3 a2 a1 a0",
  4390. " o o o o o o o o";
  4391. loadpage_lo = " 0 1 0 0 0 0 0 0",
  4392. " x x x x x x x x",
  4393. " x x a5 a4 a3 a2 a1 a0",
  4394. " i i i i i i i i";
  4395. loadpage_hi = " 0 1 0 0 1 0 0 0",
  4396. " x x x x x x x x",
  4397. " x x a5 a4 a3 a2 a1 a0",
  4398. " i i i i i i i i";
  4399. writepage = " 0 1 0 0 1 1 0 0",
  4400. " x x x a12 a11 a10 a9 a8",
  4401. " a7 a6 x x x x x x",
  4402. " x x x x x x x x";
  4403. mode = 0x41;
  4404. delay = 6;
  4405. blocksize = 128;
  4406. readsize = 256;
  4407. ;
  4408. memory "lfuse"
  4409. size = 1;
  4410. min_write_delay = 2000;
  4411. max_write_delay = 2000;
  4412. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  4413. "x x x x x x x x o o o o o o o o";
  4414. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  4415. "x x x x x x x x i i i i i i i i";
  4416. ;
  4417. memory "hfuse"
  4418. size = 1;
  4419. min_write_delay = 2000;
  4420. max_write_delay = 2000;
  4421. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  4422. "x x x x x x x x o o o o o o o o";
  4423. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  4424. "x x x x x x x x i i i i i i i i";
  4425. ;
  4426. memory "efuse"
  4427. size = 1;
  4428. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  4429. "x x x x x x x x x x x x i i i i";
  4430. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  4431. "x x x x x x x x o o o o o o o o";
  4432. ;
  4433. memory "lock"
  4434. size = 1;
  4435. min_write_delay = 2000;
  4436. max_write_delay = 2000;
  4437. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  4438. "x x x x x x x x x x o o o o o o";
  4439. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  4440. "x x x x x x x x 1 1 i i i i i i";
  4441. ;
  4442. memory "signature"
  4443. size = 3;
  4444. read = "0 0 1 1 0 0 0 0 0 0 0 x x x x x",
  4445. "x x x x x x a1 a0 o o o o o o o o";
  4446. ;
  4447. memory "calibration"
  4448. size = 1;
  4449. read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
  4450. "0 0 0 0 0 0 0 0 o o o o o o o o";
  4451. ;
  4452. ;
  4453. #------------------------------------------------------------
  4454. # ATmega329
  4455. #------------------------------------------------------------
  4456. part
  4457. id = "m329";
  4458. desc = "ATMEGA329";
  4459. has_jtag = yes;
  4460. # stk500_devcode = 0x85; # no STK500 support, only STK500v2
  4461. # avr910_devcode = 0x?; # try the ATmega169 one:
  4462. avr910_devcode = 0x75;
  4463. signature = 0x1e 0x95 0x03;
  4464. chip_erase_delay = 9000;
  4465. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  4466. "x x x x x x x x x x x x x x x x";
  4467. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 0 0 0 0 0",
  4468. "x x x x x x x x x x x x x x x x";
  4469. timeout = 200;
  4470. stabdelay = 100;
  4471. cmdexedelay = 25;
  4472. synchloops = 32;
  4473. bytedelay = 0;
  4474. pollindex = 3;
  4475. pollvalue = 0x53;
  4476. predelay = 1;
  4477. postdelay = 1;
  4478. pollmethod = 1;
  4479. pp_controlstack =
  4480. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  4481. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  4482. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  4483. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  4484. hventerstabdelay = 100;
  4485. progmodedelay = 0;
  4486. latchcycles = 5;
  4487. togglevtg = 1;
  4488. poweroffdelay = 15;
  4489. resetdelayms = 1;
  4490. resetdelayus = 0;
  4491. hvleavestabdelay = 15;
  4492. chiperasepulsewidth = 0;
  4493. chiperasepolltimeout = 10;
  4494. programfusepulsewidth = 0;
  4495. programfusepolltimeout = 5;
  4496. programlockpulsewidth = 0;
  4497. programlockpolltimeout = 5;
  4498. idr = 0x31;
  4499. spmcr = 0x57;
  4500. memory "eeprom"
  4501. paged = no; /* leave this "no" */
  4502. page_size = 4; /* for parallel programming */
  4503. size = 1024;
  4504. min_write_delay = 9000;
  4505. max_write_delay = 9000;
  4506. readback_p1 = 0xff;
  4507. readback_p2 = 0xff;
  4508. read = " 1 0 1 0 0 0 0 0",
  4509. " x x x x x x a9 a8",
  4510. " a7 a6 a5 a4 a3 a2 a1 a0",
  4511. " o o o o o o o o";
  4512. write = " 1 1 0 0 0 0 0 0",
  4513. " x x x x x x a9 a8",
  4514. " a7 a6 a5 a4 a3 a2 a1 a0",
  4515. " i i i i i i i i";
  4516. loadpage_lo = " 1 1 0 0 0 0 0 1",
  4517. " 0 0 0 0 0 0 0 0",
  4518. " 0 0 0 0 0 0 a1 a0",
  4519. " i i i i i i i i";
  4520. writepage = " 1 1 0 0 0 0 1 0",
  4521. " 0 0 x x x x a9 a8",
  4522. " a7 a6 a5 a4 a3 a2 0 0",
  4523. " x x x x x x x x";
  4524. mode = 0x41;
  4525. delay = 20;
  4526. blocksize = 8;
  4527. readsize = 256;
  4528. ;
  4529. memory "flash"
  4530. paged = yes;
  4531. size = 32768;
  4532. page_size = 128;
  4533. num_pages = 256;
  4534. min_write_delay = 4500;
  4535. max_write_delay = 4500;
  4536. readback_p1 = 0xff;
  4537. readback_p2 = 0xff;
  4538. read_lo = " 0 0 1 0 0 0 0 0",
  4539. " x a14 a13 a12 a11 a10 a9 a8",
  4540. " a7 a6 a5 a4 a3 a2 a1 a0",
  4541. " o o o o o o o o";
  4542. read_hi = " 0 0 1 0 1 0 0 0",
  4543. " x a14 a13 a12 a11 a10 a9 a8",
  4544. " a7 a6 a5 a4 a3 a2 a1 a0",
  4545. " o o o o o o o o";
  4546. loadpage_lo = " 0 1 0 0 0 0 0 0",
  4547. " x x x x x x x x",
  4548. " x x a5 a4 a3 a2 a1 a0",
  4549. " i i i i i i i i";
  4550. loadpage_hi = " 0 1 0 0 1 0 0 0",
  4551. " x x x x x x x x",
  4552. " x x a5 a4 a3 a2 a1 a0",
  4553. " i i i i i i i i";
  4554. writepage = " 0 1 0 0 1 1 0 0",
  4555. " x x x a12 a11 a10 a9 a8",
  4556. " a7 a6 x x x x x x",
  4557. " x x x x x x x x";
  4558. mode = 0x41;
  4559. delay = 6;
  4560. blocksize = 256;
  4561. readsize = 256;
  4562. ;
  4563. memory "lfuse"
  4564. size = 1;
  4565. min_write_delay = 4500;
  4566. max_write_delay = 4500;
  4567. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  4568. "x x x x x x x x o o o o o o o o";
  4569. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  4570. "x x x x x x x x i i i i i i i i";
  4571. ;
  4572. memory "hfuse"
  4573. size = 1;
  4574. min_write_delay = 4500;
  4575. max_write_delay = 4500;
  4576. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  4577. "x x x x x x x x o o o o o o o o";
  4578. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  4579. "x x x x x x x x i i i i i i i i";
  4580. ;
  4581. memory "efuse"
  4582. size = 1;
  4583. min_write_delay = 4500;
  4584. max_write_delay = 4500;
  4585. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  4586. "x x x x x x x x o o o o o o o o";
  4587. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  4588. "x x x x x x x x x x x x x i i i";
  4589. ;
  4590. memory "lock"
  4591. size = 1;
  4592. min_write_delay = 4500;
  4593. max_write_delay = 4500;
  4594. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  4595. "x x x x x x x x x x o o o o o o";
  4596. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  4597. "x x x x x x x x 1 1 i i i i i i";
  4598. ;
  4599. memory "signature"
  4600. size = 3;
  4601. read = "0 0 1 1 0 0 0 0 0 0 0 x x x x x",
  4602. "x x x x x x a1 a0 o o o o o o o o";
  4603. ;
  4604. memory "calibration"
  4605. size = 1;
  4606. read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
  4607. "0 0 0 0 0 0 0 0 o o o o o o o o";
  4608. ;
  4609. ;
  4610. #------------------------------------------------------------
  4611. # ATmega329P
  4612. #------------------------------------------------------------
  4613. # Identical to ATmega329 except of the signature
  4614. part
  4615. id = "m329p";
  4616. desc = "ATMEGA329P";
  4617. has_jtag = yes;
  4618. # stk500_devcode = 0x85; # no STK500 support, only STK500v2
  4619. # avr910_devcode = 0x?; # try the ATmega169 one:
  4620. avr910_devcode = 0x75;
  4621. signature = 0x1e 0x95 0x0b;
  4622. chip_erase_delay = 9000;
  4623. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  4624. "x x x x x x x x x x x x x x x x";
  4625. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 0 0 0 0 0",
  4626. "x x x x x x x x x x x x x x x x";
  4627. timeout = 200;
  4628. stabdelay = 100;
  4629. cmdexedelay = 25;
  4630. synchloops = 32;
  4631. bytedelay = 0;
  4632. pollindex = 3;
  4633. pollvalue = 0x53;
  4634. predelay = 1;
  4635. postdelay = 1;
  4636. pollmethod = 1;
  4637. pp_controlstack =
  4638. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  4639. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  4640. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  4641. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  4642. hventerstabdelay = 100;
  4643. progmodedelay = 0;
  4644. latchcycles = 5;
  4645. togglevtg = 1;
  4646. poweroffdelay = 15;
  4647. resetdelayms = 1;
  4648. resetdelayus = 0;
  4649. hvleavestabdelay = 15;
  4650. chiperasepulsewidth = 0;
  4651. chiperasepolltimeout = 10;
  4652. programfusepulsewidth = 0;
  4653. programfusepolltimeout = 5;
  4654. programlockpulsewidth = 0;
  4655. programlockpolltimeout = 5;
  4656. idr = 0x31;
  4657. spmcr = 0x57;
  4658. memory "eeprom"
  4659. paged = no; /* leave this "no" */
  4660. page_size = 4; /* for parallel programming */
  4661. size = 1024;
  4662. min_write_delay = 9000;
  4663. max_write_delay = 9000;
  4664. readback_p1 = 0xff;
  4665. readback_p2 = 0xff;
  4666. read = " 1 0 1 0 0 0 0 0",
  4667. " x x x x x x a9 a8",
  4668. " a7 a6 a5 a4 a3 a2 a1 a0",
  4669. " o o o o o o o o";
  4670. write = " 1 1 0 0 0 0 0 0",
  4671. " x x x x x x a9 a8",
  4672. " a7 a6 a5 a4 a3 a2 a1 a0",
  4673. " i i i i i i i i";
  4674. loadpage_lo = " 1 1 0 0 0 0 0 1",
  4675. " 0 0 0 0 0 0 0 0",
  4676. " 0 0 0 0 0 0 a1 a0",
  4677. " i i i i i i i i";
  4678. writepage = " 1 1 0 0 0 0 1 0",
  4679. " 0 0 x x x x a9 a8",
  4680. " a7 a6 a5 a4 a3 a2 0 0",
  4681. " x x x x x x x x";
  4682. mode = 0x41;
  4683. delay = 20;
  4684. blocksize = 8;
  4685. readsize = 256;
  4686. ;
  4687. memory "flash"
  4688. paged = yes;
  4689. size = 32768;
  4690. page_size = 128;
  4691. num_pages = 256;
  4692. min_write_delay = 4500;
  4693. max_write_delay = 4500;
  4694. readback_p1 = 0xff;
  4695. readback_p2 = 0xff;
  4696. read_lo = " 0 0 1 0 0 0 0 0",
  4697. " x a14 a13 a12 a11 a10 a9 a8",
  4698. " a7 a6 a5 a4 a3 a2 a1 a0",
  4699. " o o o o o o o o";
  4700. read_hi = " 0 0 1 0 1 0 0 0",
  4701. " x a14 a13 a12 a11 a10 a9 a8",
  4702. " a7 a6 a5 a4 a3 a2 a1 a0",
  4703. " o o o o o o o o";
  4704. loadpage_lo = " 0 1 0 0 0 0 0 0",
  4705. " x x x x x x x x",
  4706. " x x a5 a4 a3 a2 a1 a0",
  4707. " i i i i i i i i";
  4708. loadpage_hi = " 0 1 0 0 1 0 0 0",
  4709. " x x x x x x x x",
  4710. " x x a5 a4 a3 a2 a1 a0",
  4711. " i i i i i i i i";
  4712. writepage = " 0 1 0 0 1 1 0 0",
  4713. " x x x a12 a11 a10 a9 a8",
  4714. " a7 a6 x x x x x x",
  4715. " x x x x x x x x";
  4716. mode = 0x41;
  4717. delay = 6;
  4718. blocksize = 256;
  4719. readsize = 256;
  4720. ;
  4721. memory "lfuse"
  4722. size = 1;
  4723. min_write_delay = 4500;
  4724. max_write_delay = 4500;
  4725. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  4726. "x x x x x x x x o o o o o o o o";
  4727. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  4728. "x x x x x x x x i i i i i i i i";
  4729. ;
  4730. memory "hfuse"
  4731. size = 1;
  4732. min_write_delay = 4500;
  4733. max_write_delay = 4500;
  4734. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  4735. "x x x x x x x x o o o o o o o o";
  4736. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  4737. "x x x x x x x x i i i i i i i i";
  4738. ;
  4739. memory "efuse"
  4740. size = 1;
  4741. min_write_delay = 4500;
  4742. max_write_delay = 4500;
  4743. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  4744. "x x x x x x x x o o o o o o o o";
  4745. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  4746. "x x x x x x x x x x x x x i i i";
  4747. ;
  4748. memory "lock"
  4749. size = 1;
  4750. min_write_delay = 4500;
  4751. max_write_delay = 4500;
  4752. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  4753. "x x x x x x x x x x o o o o o o";
  4754. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  4755. "x x x x x x x x 1 1 i i i i i i";
  4756. ;
  4757. memory "signature"
  4758. size = 3;
  4759. read = "0 0 1 1 0 0 0 0 0 0 0 x x x x x",
  4760. "x x x x x x a1 a0 o o o o o o o o";
  4761. ;
  4762. memory "calibration"
  4763. size = 1;
  4764. read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
  4765. "0 0 0 0 0 0 0 0 o o o o o o o o";
  4766. ;
  4767. ;
  4768. #------------------------------------------------------------
  4769. # ATmega3290
  4770. #------------------------------------------------------------
  4771. # identical to ATmega329
  4772. part
  4773. id = "m3290";
  4774. desc = "ATMEGA3290";
  4775. has_jtag = yes;
  4776. # stk500_devcode = 0x85; # no STK500 support, only STK500v2
  4777. # avr910_devcode = 0x?; # try the ATmega169 one:
  4778. avr910_devcode = 0x75;
  4779. signature = 0x1e 0x95 0x04;
  4780. chip_erase_delay = 9000;
  4781. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  4782. "x x x x x x x x x x x x x x x x";
  4783. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 0 0 0 0 0",
  4784. "x x x x x x x x x x x x x x x x";
  4785. timeout = 200;
  4786. stabdelay = 100;
  4787. cmdexedelay = 25;
  4788. synchloops = 32;
  4789. bytedelay = 0;
  4790. pollindex = 3;
  4791. pollvalue = 0x53;
  4792. predelay = 1;
  4793. postdelay = 1;
  4794. pollmethod = 1;
  4795. pp_controlstack =
  4796. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  4797. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  4798. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  4799. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  4800. hventerstabdelay = 100;
  4801. progmodedelay = 0;
  4802. latchcycles = 5;
  4803. togglevtg = 1;
  4804. poweroffdelay = 15;
  4805. resetdelayms = 1;
  4806. resetdelayus = 0;
  4807. hvleavestabdelay = 15;
  4808. chiperasepulsewidth = 0;
  4809. chiperasepolltimeout = 10;
  4810. programfusepulsewidth = 0;
  4811. programfusepolltimeout = 5;
  4812. programlockpulsewidth = 0;
  4813. programlockpolltimeout = 5;
  4814. idr = 0x31;
  4815. spmcr = 0x57;
  4816. memory "eeprom"
  4817. paged = no; /* leave this "no" */
  4818. page_size = 4; /* for parallel programming */
  4819. size = 1024;
  4820. min_write_delay = 9000;
  4821. max_write_delay = 9000;
  4822. readback_p1 = 0xff;
  4823. readback_p2 = 0xff;
  4824. read = " 1 0 1 0 0 0 0 0",
  4825. " x x x x x x a9 a8",
  4826. " a7 a6 a5 a4 a3 a2 a1 a0",
  4827. " o o o o o o o o";
  4828. write = " 1 1 0 0 0 0 0 0",
  4829. " x x x x x x a9 a8",
  4830. " a7 a6 a5 a4 a3 a2 a1 a0",
  4831. " i i i i i i i i";
  4832. loadpage_lo = " 1 1 0 0 0 0 0 1",
  4833. " 0 0 0 0 0 0 0 0",
  4834. " 0 0 0 0 0 0 a1 a0",
  4835. " i i i i i i i i";
  4836. writepage = " 1 1 0 0 0 0 1 0",
  4837. " 0 0 x x x x a9 a8",
  4838. " a7 a6 a5 a4 a3 a3 0 0",
  4839. " x x x x x x x x";
  4840. mode = 0x41;
  4841. delay = 20;
  4842. blocksize = 8;
  4843. readsize = 256;
  4844. ;
  4845. memory "flash"
  4846. paged = yes;
  4847. size = 32768;
  4848. page_size = 128;
  4849. num_pages = 256;
  4850. min_write_delay = 4500;
  4851. max_write_delay = 4500;
  4852. readback_p1 = 0xff;
  4853. readback_p2 = 0xff;
  4854. read_lo = " 0 0 1 0 0 0 0 0",
  4855. " x a14 a13 a12 a11 a10 a9 a8",
  4856. " a7 a6 a5 a4 a3 a2 a1 a0",
  4857. " o o o o o o o o";
  4858. read_hi = " 0 0 1 0 1 0 0 0",
  4859. " x a14 a13 a12 a11 a10 a9 a8",
  4860. " a7 a6 a5 a4 a3 a2 a1 a0",
  4861. " o o o o o o o o";
  4862. loadpage_lo = " 0 1 0 0 0 0 0 0",
  4863. " x x x x x x x x",
  4864. " x x a5 a4 a3 a2 a1 a0",
  4865. " i i i i i i i i";
  4866. loadpage_hi = " 0 1 0 0 1 0 0 0",
  4867. " x x x x x x x x",
  4868. " x x a5 a4 a3 a2 a1 a0",
  4869. " i i i i i i i i";
  4870. writepage = " 0 1 0 0 1 1 0 0",
  4871. " x x x a12 a11 a10 a9 a8",
  4872. " a7 a6 x x x x x x",
  4873. " x x x x x x x x";
  4874. mode = 0x41;
  4875. delay = 6;
  4876. blocksize = 256;
  4877. readsize = 256;
  4878. ;
  4879. memory "lfuse"
  4880. size = 1;
  4881. min_write_delay = 4500;
  4882. max_write_delay = 4500;
  4883. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  4884. "x x x x x x x x o o o o o o o o";
  4885. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  4886. "x x x x x x x x i i i i i i i i";
  4887. ;
  4888. memory "hfuse"
  4889. size = 1;
  4890. min_write_delay = 4500;
  4891. max_write_delay = 4500;
  4892. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 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 1 0 0 0",
  4895. "x x x x x x x x i i i i i i i i";
  4896. ;
  4897. memory "efuse"
  4898. size = 1;
  4899. min_write_delay = 4500;
  4900. max_write_delay = 4500;
  4901. read = "0 1 0 1 0 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 0 1 0 0",
  4904. "x x x x x x x x x x x x x i i i";
  4905. ;
  4906. memory "lock"
  4907. size = 1;
  4908. min_write_delay = 4500;
  4909. max_write_delay = 4500;
  4910. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  4911. "x x x x x x x x x x o o o o o o";
  4912. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  4913. "x x x x x x x x 1 1 i i i i i i";
  4914. ;
  4915. memory "signature"
  4916. size = 3;
  4917. read = "0 0 1 1 0 0 0 0 0 0 0 x x x x x",
  4918. "x x x x x x a1 a0 o o o o o o o o";
  4919. ;
  4920. memory "calibration"
  4921. size = 1;
  4922. read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
  4923. "0 0 0 0 0 0 0 0 o o o o o o o o";
  4924. ;
  4925. ;
  4926. #------------------------------------------------------------
  4927. # ATmega3290P
  4928. #------------------------------------------------------------
  4929. # identical to ATmega3290 except of the signature
  4930. part
  4931. id = "m3290p";
  4932. desc = "ATMEGA3290P";
  4933. has_jtag = yes;
  4934. # stk500_devcode = 0x85; # no STK500 support, only STK500v2
  4935. # avr910_devcode = 0x?; # try the ATmega169 one:
  4936. avr910_devcode = 0x75;
  4937. signature = 0x1e 0x95 0x0c;
  4938. chip_erase_delay = 9000;
  4939. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  4940. "x x x x x x x x x x x x x x x x";
  4941. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 0 0 0 0 0",
  4942. "x x x x x x x x x x x x x x x x";
  4943. timeout = 200;
  4944. stabdelay = 100;
  4945. cmdexedelay = 25;
  4946. synchloops = 32;
  4947. bytedelay = 0;
  4948. pollindex = 3;
  4949. pollvalue = 0x53;
  4950. predelay = 1;
  4951. postdelay = 1;
  4952. pollmethod = 1;
  4953. pp_controlstack =
  4954. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  4955. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  4956. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  4957. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  4958. hventerstabdelay = 100;
  4959. progmodedelay = 0;
  4960. latchcycles = 5;
  4961. togglevtg = 1;
  4962. poweroffdelay = 15;
  4963. resetdelayms = 1;
  4964. resetdelayus = 0;
  4965. hvleavestabdelay = 15;
  4966. chiperasepulsewidth = 0;
  4967. chiperasepolltimeout = 10;
  4968. programfusepulsewidth = 0;
  4969. programfusepolltimeout = 5;
  4970. programlockpulsewidth = 0;
  4971. programlockpolltimeout = 5;
  4972. idr = 0x31;
  4973. spmcr = 0x57;
  4974. memory "eeprom"
  4975. paged = no; /* leave this "no" */
  4976. page_size = 4; /* for parallel programming */
  4977. size = 1024;
  4978. min_write_delay = 9000;
  4979. max_write_delay = 9000;
  4980. readback_p1 = 0xff;
  4981. readback_p2 = 0xff;
  4982. read = " 1 0 1 0 0 0 0 0",
  4983. " x x x x x x a9 a8",
  4984. " a7 a6 a5 a4 a3 a2 a1 a0",
  4985. " o o o o o o o o";
  4986. write = " 1 1 0 0 0 0 0 0",
  4987. " x x x x x x a9 a8",
  4988. " a7 a6 a5 a4 a3 a2 a1 a0",
  4989. " i i i i i i i i";
  4990. loadpage_lo = " 1 1 0 0 0 0 0 1",
  4991. " 0 0 0 0 0 0 0 0",
  4992. " 0 0 0 0 0 0 a1 a0",
  4993. " i i i i i i i i";
  4994. writepage = " 1 1 0 0 0 0 1 0",
  4995. " 0 0 x x x x a9 a8",
  4996. " a7 a6 a5 a4 a3 a3 0 0",
  4997. " x x x x x x x x";
  4998. mode = 0x41;
  4999. delay = 20;
  5000. blocksize = 8;
  5001. readsize = 256;
  5002. ;
  5003. memory "flash"
  5004. paged = yes;
  5005. size = 32768;
  5006. page_size = 128;
  5007. num_pages = 256;
  5008. min_write_delay = 4500;
  5009. max_write_delay = 4500;
  5010. readback_p1 = 0xff;
  5011. readback_p2 = 0xff;
  5012. read_lo = " 0 0 1 0 0 0 0 0",
  5013. " x a14 a13 a12 a11 a10 a9 a8",
  5014. " a7 a6 a5 a4 a3 a2 a1 a0",
  5015. " o o o o o o o o";
  5016. read_hi = " 0 0 1 0 1 0 0 0",
  5017. " x a14 a13 a12 a11 a10 a9 a8",
  5018. " a7 a6 a5 a4 a3 a2 a1 a0",
  5019. " o o o o o o o o";
  5020. loadpage_lo = " 0 1 0 0 0 0 0 0",
  5021. " x x x x x x x x",
  5022. " x x a5 a4 a3 a2 a1 a0",
  5023. " i i i i i i i i";
  5024. loadpage_hi = " 0 1 0 0 1 0 0 0",
  5025. " x x x x x x x x",
  5026. " x x a5 a4 a3 a2 a1 a0",
  5027. " i i i i i i i i";
  5028. writepage = " 0 1 0 0 1 1 0 0",
  5029. " x x x a12 a11 a10 a9 a8",
  5030. " a7 a6 x x x x x x",
  5031. " x x x x x x x x";
  5032. mode = 0x41;
  5033. delay = 6;
  5034. blocksize = 256;
  5035. readsize = 256;
  5036. ;
  5037. memory "lfuse"
  5038. size = 1;
  5039. min_write_delay = 4500;
  5040. max_write_delay = 4500;
  5041. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  5042. "x x x x x x x x o o o o o o o o";
  5043. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  5044. "x x x x x x x x i i i i i i i i";
  5045. ;
  5046. memory "hfuse"
  5047. size = 1;
  5048. min_write_delay = 4500;
  5049. max_write_delay = 4500;
  5050. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  5051. "x x x x x x x x o o o o o o o o";
  5052. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  5053. "x x x x x x x x i i i i i i i i";
  5054. ;
  5055. memory "efuse"
  5056. size = 1;
  5057. min_write_delay = 4500;
  5058. max_write_delay = 4500;
  5059. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  5060. "x x x x x x x x o o o o o o o o";
  5061. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  5062. "x x x x x x x x x x x x x i i i";
  5063. ;
  5064. memory "lock"
  5065. size = 1;
  5066. min_write_delay = 4500;
  5067. max_write_delay = 4500;
  5068. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  5069. "x x x x x x x x x x o o o o o o";
  5070. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  5071. "x x x x x x x x 1 1 i i i i i i";
  5072. ;
  5073. memory "signature"
  5074. size = 3;
  5075. read = "0 0 1 1 0 0 0 0 0 0 0 x x x x x",
  5076. "x x x x x x a1 a0 o o o o o o o o";
  5077. ;
  5078. memory "calibration"
  5079. size = 1;
  5080. read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
  5081. "0 0 0 0 0 0 0 0 o o o o o o o o";
  5082. ;
  5083. ;
  5084. #------------------------------------------------------------
  5085. # ATmega649
  5086. #------------------------------------------------------------
  5087. part
  5088. id = "m649";
  5089. desc = "ATMEGA649";
  5090. has_jtag = yes;
  5091. # stk500_devcode = 0x85; # no STK500 support, only STK500v2
  5092. # avr910_devcode = 0x?; # try the ATmega169 one:
  5093. avr910_devcode = 0x75;
  5094. signature = 0x1e 0x96 0x03;
  5095. chip_erase_delay = 9000;
  5096. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  5097. "x x x x x x x x x x x x x x x x";
  5098. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 0 0 0 0 0",
  5099. "x x x x x x x x x x x x x x x x";
  5100. timeout = 200;
  5101. stabdelay = 100;
  5102. cmdexedelay = 25;
  5103. synchloops = 32;
  5104. bytedelay = 0;
  5105. pollindex = 3;
  5106. pollvalue = 0x53;
  5107. predelay = 1;
  5108. postdelay = 1;
  5109. pollmethod = 1;
  5110. pp_controlstack =
  5111. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  5112. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  5113. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  5114. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  5115. hventerstabdelay = 100;
  5116. progmodedelay = 0;
  5117. latchcycles = 5;
  5118. togglevtg = 1;
  5119. poweroffdelay = 15;
  5120. resetdelayms = 1;
  5121. resetdelayus = 0;
  5122. hvleavestabdelay = 15;
  5123. chiperasepulsewidth = 0;
  5124. chiperasepolltimeout = 10;
  5125. programfusepulsewidth = 0;
  5126. programfusepolltimeout = 5;
  5127. programlockpulsewidth = 0;
  5128. programlockpolltimeout = 5;
  5129. idr = 0x31;
  5130. spmcr = 0x57;
  5131. memory "eeprom"
  5132. paged = no; /* leave this "no" */
  5133. page_size = 8; /* for parallel programming */
  5134. size = 2048;
  5135. min_write_delay = 9000;
  5136. max_write_delay = 9000;
  5137. readback_p1 = 0xff;
  5138. readback_p2 = 0xff;
  5139. read = " 1 0 1 0 0 0 0 0",
  5140. " x x x x x a10 a9 a8",
  5141. " a7 a6 a5 a4 a3 a2 a1 a0",
  5142. " o o o o o o o o";
  5143. write = " 1 1 0 0 0 0 0 0",
  5144. " x x x x x a10 a9 a8",
  5145. " a7 a6 a5 a4 a3 a2 a1 a0",
  5146. " i i i i i i i i";
  5147. loadpage_lo = " 1 1 0 0 0 0 0 1",
  5148. " 0 0 0 0 0 0 0 0",
  5149. " 0 0 0 0 0 a2 a1 a0",
  5150. " i i i i i i i i";
  5151. writepage = " 1 1 0 0 0 0 1 0",
  5152. " 0 0 x x x a10 a9 a8",
  5153. " a7 a6 a5 a4 a3 0 0 0",
  5154. " x x x x x x x x";
  5155. mode = 0x41;
  5156. delay = 20;
  5157. blocksize = 8;
  5158. readsize = 256;
  5159. ;
  5160. memory "flash"
  5161. paged = yes;
  5162. size = 65536;
  5163. page_size = 256;
  5164. num_pages = 256;
  5165. min_write_delay = 4500;
  5166. max_write_delay = 4500;
  5167. readback_p1 = 0xff;
  5168. readback_p2 = 0xff;
  5169. read_lo = " 0 0 1 0 0 0 0 0",
  5170. "a15 a14 a13 a12 a11 a10 a9 a8",
  5171. " a7 a6 a5 a4 a3 a2 a1 a0",
  5172. " o o o o o o o o";
  5173. read_hi = " 0 0 1 0 1 0 0 0",
  5174. "a15 a14 a13 a12 a11 a10 a9 a8",
  5175. " a7 a6 a5 a4 a3 a2 a1 a0",
  5176. " o o o o o o o o";
  5177. loadpage_lo = " 0 1 0 0 0 0 0 0",
  5178. " x x x x x x x x",
  5179. " x a6 a5 a4 a3 a2 a1 a0",
  5180. " i i i i i i i i";
  5181. loadpage_hi = " 0 1 0 0 1 0 0 0",
  5182. " x x x x x x x x",
  5183. " x a6 a5 a4 a3 a2 a1 a0",
  5184. " i i i i i i i i";
  5185. writepage = " 0 1 0 0 1 1 0 0",
  5186. " x x x a12 a11 a10 a9 a8",
  5187. " a7 x x x x x x x",
  5188. " x x x x x x x x";
  5189. mode = 0x41;
  5190. delay = 6;
  5191. blocksize = 256;
  5192. readsize = 256;
  5193. ;
  5194. memory "lfuse"
  5195. size = 1;
  5196. min_write_delay = 4500;
  5197. max_write_delay = 4500;
  5198. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  5199. "x x x x x x x x o o o o o o o o";
  5200. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  5201. "x x x x x x x x i i i i i i i i";
  5202. ;
  5203. memory "hfuse"
  5204. size = 1;
  5205. min_write_delay = 4500;
  5206. max_write_delay = 4500;
  5207. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  5208. "x x x x x x x x o o o o o o o o";
  5209. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  5210. "x x x x x x x x i i i i i i i i";
  5211. ;
  5212. memory "efuse"
  5213. size = 1;
  5214. min_write_delay = 4500;
  5215. max_write_delay = 4500;
  5216. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  5217. "x x x x x x x x o o o o o o o o";
  5218. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  5219. "x x x x x x x x x x x x x i i i";
  5220. ;
  5221. memory "lock"
  5222. size = 1;
  5223. min_write_delay = 4500;
  5224. max_write_delay = 4500;
  5225. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  5226. "x x x x x x x x x x o o o o o o";
  5227. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  5228. "x x x x x x x x 1 1 i i i i i i";
  5229. ;
  5230. memory "signature"
  5231. size = 3;
  5232. read = "0 0 1 1 0 0 0 0 0 0 0 x x x x x",
  5233. "x x x x x x a1 a0 o o o o o o o o";
  5234. ;
  5235. memory "calibration"
  5236. size = 1;
  5237. read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
  5238. "0 0 0 0 0 0 0 0 o o o o o o o o";
  5239. ;
  5240. ;
  5241. #------------------------------------------------------------
  5242. # ATmega6490
  5243. #------------------------------------------------------------
  5244. # identical to ATmega649
  5245. part
  5246. id = "m6490";
  5247. desc = "ATMEGA6490";
  5248. has_jtag = yes;
  5249. # stk500_devcode = 0x85; # no STK500 support, only STK500v2
  5250. # avr910_devcode = 0x?; # try the ATmega169 one:
  5251. avr910_devcode = 0x75;
  5252. signature = 0x1e 0x96 0x04;
  5253. chip_erase_delay = 9000;
  5254. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  5255. "x x x x x x x x x x x x x x x x";
  5256. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 0 0 0 0 0",
  5257. "x x x x x x x x x x x x x x x x";
  5258. timeout = 200;
  5259. stabdelay = 100;
  5260. cmdexedelay = 25;
  5261. synchloops = 32;
  5262. bytedelay = 0;
  5263. pollindex = 3;
  5264. pollvalue = 0x53;
  5265. predelay = 1;
  5266. postdelay = 1;
  5267. pollmethod = 1;
  5268. pp_controlstack =
  5269. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  5270. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  5271. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  5272. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  5273. hventerstabdelay = 100;
  5274. progmodedelay = 0;
  5275. latchcycles = 5;
  5276. togglevtg = 1;
  5277. poweroffdelay = 15;
  5278. resetdelayms = 1;
  5279. resetdelayus = 0;
  5280. hvleavestabdelay = 15;
  5281. chiperasepulsewidth = 0;
  5282. chiperasepolltimeout = 10;
  5283. programfusepulsewidth = 0;
  5284. programfusepolltimeout = 5;
  5285. programlockpulsewidth = 0;
  5286. programlockpolltimeout = 5;
  5287. idr = 0x31;
  5288. spmcr = 0x57;
  5289. memory "eeprom"
  5290. paged = no; /* leave this "no" */
  5291. page_size = 8; /* for parallel programming */
  5292. size = 2048;
  5293. min_write_delay = 9000;
  5294. max_write_delay = 9000;
  5295. readback_p1 = 0xff;
  5296. readback_p2 = 0xff;
  5297. read = " 1 0 1 0 0 0 0 0",
  5298. " x x x x x a10 a9 a8",
  5299. " a7 a6 a5 a4 a3 a2 a1 a0",
  5300. " o o o o o o o o";
  5301. write = " 1 1 0 0 0 0 0 0",
  5302. " x x x x x a10 a9 a8",
  5303. " a7 a6 a5 a4 a3 a2 a1 a0",
  5304. " i i i i i i i i";
  5305. loadpage_lo = " 1 1 0 0 0 0 0 1",
  5306. " 0 0 0 0 0 0 0 0",
  5307. " 0 0 0 0 0 a2 a1 a0",
  5308. " i i i i i i i i";
  5309. writepage = " 1 1 0 0 0 0 1 0",
  5310. " 0 0 x x x x x a8",
  5311. " a7 a6 a5 a4 a3 0 0 0",
  5312. " x x x x x x x x";
  5313. loadpage_lo = " 1 1 0 0 0 0 0 1",
  5314. " 0 0 0 0 0 0 0 0",
  5315. " 0 0 0 0 0 a2 a1 a0",
  5316. " i i i i i i i i";
  5317. writepage = " 1 1 0 0 0 0 1 0",
  5318. " 0 0 x x x a10 a9 a8",
  5319. " a7 a6 a5 a4 a3 0 0 0",
  5320. " x x x x x x x x";
  5321. mode = 0x41;
  5322. delay = 20;
  5323. blocksize = 8;
  5324. readsize = 256;
  5325. ;
  5326. memory "flash"
  5327. paged = yes;
  5328. size = 65536;
  5329. page_size = 256;
  5330. num_pages = 256;
  5331. min_write_delay = 4500;
  5332. max_write_delay = 4500;
  5333. readback_p1 = 0xff;
  5334. readback_p2 = 0xff;
  5335. read_lo = " 0 0 1 0 0 0 0 0",
  5336. "a15 a14 a13 a12 a11 a10 a9 a8",
  5337. " a7 a6 a5 a4 a3 a2 a1 a0",
  5338. " o o o o o o o o";
  5339. read_hi = " 0 0 1 0 1 0 0 0",
  5340. "a15 a14 a13 a12 a11 a10 a9 a8",
  5341. " a7 a6 a5 a4 a3 a2 a1 a0",
  5342. " o o o o o o o o";
  5343. loadpage_lo = " 0 1 0 0 0 0 0 0",
  5344. " x x x x x x x x",
  5345. " x a6 a5 a4 a3 a2 a1 a0",
  5346. " i i i i i i i i";
  5347. loadpage_hi = " 0 1 0 0 1 0 0 0",
  5348. " x x x x x x x x",
  5349. " x a6 a5 a4 a3 a2 a1 a0",
  5350. " i i i i i i i i";
  5351. writepage = " 0 1 0 0 1 1 0 0",
  5352. " x x x a12 a11 a10 a9 a8",
  5353. " a7 x x x x x x x",
  5354. " x x x x x x x x";
  5355. mode = 0x41;
  5356. delay = 6;
  5357. blocksize = 256;
  5358. readsize = 256;
  5359. ;
  5360. memory "lfuse"
  5361. size = 1;
  5362. min_write_delay = 4500;
  5363. max_write_delay = 4500;
  5364. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  5365. "x x x x x x x x o o o o o o o o";
  5366. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  5367. "x x x x x x x x i i i i i i i i";
  5368. ;
  5369. memory "hfuse"
  5370. size = 1;
  5371. min_write_delay = 4500;
  5372. max_write_delay = 4500;
  5373. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  5374. "x x x x x x x x o o o o o o o o";
  5375. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  5376. "x x x x x x x x i i i i i i i i";
  5377. ;
  5378. memory "efuse"
  5379. size = 1;
  5380. min_write_delay = 4500;
  5381. max_write_delay = 4500;
  5382. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  5383. "x x x x x x x x o o o o o o o o";
  5384. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  5385. "x x x x x x x x x x x x x i i i";
  5386. ;
  5387. memory "lock"
  5388. size = 1;
  5389. min_write_delay = 4500;
  5390. max_write_delay = 4500;
  5391. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  5392. "x x x x x x x x x x o o o o o o";
  5393. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  5394. "x x x x x x x x 1 1 i i i i i i";
  5395. ;
  5396. memory "signature"
  5397. size = 3;
  5398. read = "0 0 1 1 0 0 0 0 0 0 0 x x x x x",
  5399. "x x x x x x a1 a0 o o o o o o o o";
  5400. ;
  5401. memory "calibration"
  5402. size = 1;
  5403. read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
  5404. "0 0 0 0 0 0 0 0 o o o o o o o o";
  5405. ;
  5406. ;
  5407. #------------------------------------------------------------
  5408. # ATmega32
  5409. #------------------------------------------------------------
  5410. part
  5411. id = "m32";
  5412. desc = "ATMEGA32";
  5413. has_jtag = yes;
  5414. stk500_devcode = 0x91;
  5415. avr910_devcode = 0x72;
  5416. signature = 0x1e 0x95 0x02;
  5417. chip_erase_delay = 9000;
  5418. pagel = 0xd7;
  5419. bs2 = 0xa0;
  5420. reset = dedicated;
  5421. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  5422. "x x x x x x x x x x x x x x x x";
  5423. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 0 0 0 0 0",
  5424. "x x x x x x x x x x x x x x x x";
  5425. timeout = 200;
  5426. stabdelay = 100;
  5427. cmdexedelay = 25;
  5428. synchloops = 32;
  5429. bytedelay = 0;
  5430. pollindex = 3;
  5431. pollvalue = 0x53;
  5432. predelay = 1;
  5433. postdelay = 1;
  5434. pollmethod = 0;
  5435. pp_controlstack =
  5436. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  5437. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  5438. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  5439. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  5440. hventerstabdelay = 100;
  5441. progmodedelay = 0;
  5442. latchcycles = 6;
  5443. togglevtg = 0;
  5444. poweroffdelay = 0;
  5445. resetdelayms = 0;
  5446. resetdelayus = 0;
  5447. hvleavestabdelay = 15;
  5448. chiperasepulsewidth = 0;
  5449. chiperasepolltimeout = 10;
  5450. programfusepulsewidth = 0;
  5451. programfusepolltimeout = 5;
  5452. programlockpulsewidth = 0;
  5453. programlockpolltimeout = 5;
  5454. idr = 0x31;
  5455. spmcr = 0x57;
  5456. allowfullpagebitstream = yes;
  5457. memory "eeprom"
  5458. paged = no; /* leave this "no" */
  5459. page_size = 4; /* for parallel programming */
  5460. size = 1024;
  5461. min_write_delay = 9000;
  5462. max_write_delay = 9000;
  5463. readback_p1 = 0xff;
  5464. readback_p2 = 0xff;
  5465. read = " 1 0 1 0 0 0 0 0",
  5466. " 0 0 x x x x a9 a8",
  5467. " a7 a6 a5 a4 a3 a2 a1 a0",
  5468. " o o o o o o o o";
  5469. write = " 1 1 0 0 0 0 0 0",
  5470. " 0 0 x x x x a9 a8",
  5471. " a7 a6 a5 a4 a3 a2 a1 a0",
  5472. " i i i i i i i i";
  5473. loadpage_lo = " 1 1 0 0 0 0 0 1",
  5474. " 0 0 0 0 0 0 0 0",
  5475. " 0 0 0 0 0 0 a1 a0",
  5476. " i i i i i i i i";
  5477. writepage = " 1 1 0 0 0 0 1 0",
  5478. " 0 0 x x x x a9 a8",
  5479. " a7 a6 a5 a4 a3 a2 0 0",
  5480. " x x x x x x x x";
  5481. mode = 0x04;
  5482. delay = 10;
  5483. blocksize = 64;
  5484. readsize = 256;
  5485. ;
  5486. memory "flash"
  5487. paged = yes;
  5488. size = 32768;
  5489. page_size = 128;
  5490. num_pages = 256;
  5491. min_write_delay = 4500;
  5492. max_write_delay = 4500;
  5493. readback_p1 = 0xff;
  5494. readback_p2 = 0xff;
  5495. read_lo = " 0 0 1 0 0 0 0 0",
  5496. " 0 0 a13 a12 a11 a10 a9 a8",
  5497. " a7 a6 a5 a4 a3 a2 a1 a0",
  5498. " o o o o o o o o";
  5499. read_hi = " 0 0 1 0 1 0 0 0",
  5500. " 0 0 a13 a12 a11 a10 a9 a8",
  5501. " a7 a6 a5 a4 a3 a2 a1 a0",
  5502. " o o o o o o o o";
  5503. loadpage_lo = " 0 1 0 0 0 0 0 0",
  5504. " 0 0 x x x x x x",
  5505. " x x a5 a4 a3 a2 a1 a0",
  5506. " i i i i i i i i";
  5507. loadpage_hi = " 0 1 0 0 1 0 0 0",
  5508. " 0 0 x x x x x x",
  5509. " x x a5 a4 a3 a2 a1 a0",
  5510. " i i i i i i i i";
  5511. writepage = " 0 1 0 0 1 1 0 0",
  5512. " 0 0 a13 a12 a11 a10 a9 a8",
  5513. " a7 a6 x x x x x x",
  5514. " x x x x x x x x";
  5515. mode = 0x21;
  5516. delay = 6;
  5517. blocksize = 64;
  5518. readsize = 256;
  5519. ;
  5520. memory "lfuse"
  5521. size = 1;
  5522. min_write_delay = 2000;
  5523. max_write_delay = 2000;
  5524. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  5525. "x x x x x x x x o o o o o o o o";
  5526. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  5527. "x x x x x x x x i i i i i i i i";
  5528. ;
  5529. memory "hfuse"
  5530. size = 1;
  5531. min_write_delay = 2000;
  5532. max_write_delay = 2000;
  5533. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  5534. "x x x x x x x x o o o o o o o o";
  5535. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  5536. "x x x x x x x x i i i i i i i i";
  5537. ;
  5538. memory "lock"
  5539. size = 1;
  5540. min_write_delay = 2000;
  5541. max_write_delay = 2000;
  5542. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  5543. "x x x x x x x x x x o o o o o o";
  5544. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  5545. "x x x x x x x x 1 1 i i i i i i";
  5546. ;
  5547. memory "signature"
  5548. size = 3;
  5549. read = "0 0 1 1 0 0 0 0 x x x x x x x x",
  5550. "x x x x x x a1 a0 o o o o o o o o";
  5551. ;
  5552. memory "calibration"
  5553. size = 4;
  5554. read = "0 0 1 1 1 0 0 0 0 0 x x x x x x",
  5555. "0 0 0 0 0 0 a1 a0 o o o o o o o o";
  5556. ;
  5557. ;
  5558. #------------------------------------------------------------
  5559. # ATmega161
  5560. #------------------------------------------------------------
  5561. part
  5562. id = "m161";
  5563. desc = "ATMEGA161";
  5564. stk500_devcode = 0x80;
  5565. avr910_devcode = 0x60;
  5566. signature = 0x1e 0x94 0x01;
  5567. chip_erase_delay = 28000;
  5568. pagel = 0xd7;
  5569. bs2 = 0xa0;
  5570. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  5571. "x x x x x x x x x x x x x x x x";
  5572. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 0 0 0 0 0",
  5573. "x x x x x x x x x x x x x x x x";
  5574. timeout = 200;
  5575. stabdelay = 100;
  5576. cmdexedelay = 25;
  5577. synchloops = 32;
  5578. bytedelay = 0;
  5579. pollindex = 3;
  5580. pollvalue = 0x53;
  5581. predelay = 1;
  5582. postdelay = 1;
  5583. pollmethod = 0;
  5584. pp_controlstack =
  5585. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  5586. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  5587. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  5588. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  5589. hventerstabdelay = 100;
  5590. progmodedelay = 0;
  5591. latchcycles = 0;
  5592. togglevtg = 0;
  5593. poweroffdelay = 0;
  5594. resetdelayms = 0;
  5595. resetdelayus = 0;
  5596. hvleavestabdelay = 15;
  5597. chiperasepulsewidth = 0;
  5598. chiperasepolltimeout = 30;
  5599. programfusepulsewidth = 0;
  5600. programfusepolltimeout = 2;
  5601. programlockpulsewidth = 0;
  5602. programlockpolltimeout = 2;
  5603. memory "eeprom"
  5604. size = 512;
  5605. min_write_delay = 3400;
  5606. max_write_delay = 3400;
  5607. readback_p1 = 0xff;
  5608. readback_p2 = 0xff;
  5609. read = " 1 0 1 0 0 0 0 0",
  5610. " x x x x x x x a8",
  5611. " a7 a6 a5 a4 a3 a2 a1 a0",
  5612. " o o o o o o o o";
  5613. write = " 1 1 0 0 0 0 0 0",
  5614. " x x x x x x x a8",
  5615. " a7 a6 a5 a4 a3 a2 a1 a0",
  5616. " i i i i i i i i";
  5617. mode = 0x04;
  5618. delay = 5;
  5619. blocksize = 128;
  5620. readsize = 256;
  5621. ;
  5622. memory "flash"
  5623. paged = yes;
  5624. size = 16384;
  5625. page_size = 128;
  5626. num_pages = 128;
  5627. min_write_delay = 14000;
  5628. max_write_delay = 14000;
  5629. readback_p1 = 0xff;
  5630. readback_p2 = 0xff;
  5631. read_lo = " 0 0 1 0 0 0 0 0",
  5632. " x x x a12 a11 a10 a9 a8",
  5633. " a7 a6 a5 a4 a3 a2 a1 a0",
  5634. " o o o o o o o o";
  5635. read_hi = " 0 0 1 0 1 0 0 0",
  5636. " x x x a12 a11 a10 a9 a8",
  5637. " a7 a6 a5 a4 a3 a2 a1 a0",
  5638. " o o o o o o o o";
  5639. loadpage_lo = " 0 1 0 0 0 0 0 0",
  5640. " x x x x x x x x",
  5641. " x x a5 a4 a3 a2 a1 a0",
  5642. " i i i i i i i i";
  5643. loadpage_hi = " 0 1 0 0 1 0 0 0",
  5644. " x x x x x x x x",
  5645. " x x a5 a4 a3 a2 a1 a0",
  5646. " i i i i i i i i";
  5647. writepage = " 0 1 0 0 1 1 0 0",
  5648. " x x x a12 a11 a10 a9 a8",
  5649. " a7 a6 x x x x x x",
  5650. " x x x x x x x x";
  5651. mode = 0x21;
  5652. delay = 16;
  5653. blocksize = 128;
  5654. readsize = 256;
  5655. ;
  5656. memory "fuse"
  5657. size = 1;
  5658. min_write_delay = 2000;
  5659. max_write_delay = 2000;
  5660. read = "0 1 0 1 0 0 0 0 x x x x x x x x",
  5661. "x x x x x x x x x o x o o o o o";
  5662. write = "1 0 1 0 1 1 0 0 1 0 1 x x x x x",
  5663. "x x x x x x x x 1 i 1 i i i i i";
  5664. ;
  5665. memory "lock"
  5666. size = 1;
  5667. min_write_delay = 2000;
  5668. max_write_delay = 2000;
  5669. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  5670. "x x x x x x x x x x o o o o o o";
  5671. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  5672. "x x x x x x x x 1 1 i i i i i i";
  5673. ;
  5674. memory "signature"
  5675. size = 3;
  5676. read = "0 0 1 1 0 0 0 0 x x x x x x x x",
  5677. "x x x x x x a1 a0 o o o o o o o o";
  5678. ;
  5679. ;
  5680. #------------------------------------------------------------
  5681. # ATmega8
  5682. #------------------------------------------------------------
  5683. part
  5684. id = "m8";
  5685. desc = "ATMEGA8";
  5686. stk500_devcode = 0x70;
  5687. avr910_devcode = 0x76;
  5688. signature = 0x1e 0x93 0x07;
  5689. pagel = 0xd7;
  5690. bs2 = 0xc2;
  5691. chip_erase_delay = 10000;
  5692. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  5693. "x x x x x x x x x x x x x x x x";
  5694. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
  5695. "x x x x x x x x x x x x x x x x";
  5696. timeout = 200;
  5697. stabdelay = 100;
  5698. cmdexedelay = 25;
  5699. synchloops = 32;
  5700. bytedelay = 0;
  5701. pollindex = 3;
  5702. pollvalue = 0x53;
  5703. predelay = 1;
  5704. postdelay = 1;
  5705. pollmethod = 0;
  5706. pp_controlstack =
  5707. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  5708. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  5709. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  5710. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  5711. hventerstabdelay = 100;
  5712. progmodedelay = 0;
  5713. latchcycles = 5;
  5714. togglevtg = 1;
  5715. poweroffdelay = 15;
  5716. resetdelayms = 2;
  5717. resetdelayus = 0;
  5718. hvleavestabdelay = 15;
  5719. resetdelay = 15;
  5720. chiperasepulsewidth = 0;
  5721. chiperasepolltimeout = 10;
  5722. programfusepulsewidth = 0;
  5723. programfusepolltimeout = 5;
  5724. programlockpulsewidth = 0;
  5725. programlockpolltimeout = 5;
  5726. memory "eeprom"
  5727. size = 512;
  5728. page_size = 4;
  5729. min_write_delay = 9000;
  5730. max_write_delay = 9000;
  5731. readback_p1 = 0xff;
  5732. readback_p2 = 0xff;
  5733. read = " 1 0 1 0 0 0 0 0",
  5734. " 0 0 x x x x x a8",
  5735. " a7 a6 a5 a4 a3 a2 a1 a0",
  5736. " o o o o o o o o";
  5737. write = " 1 1 0 0 0 0 0 0",
  5738. " 0 0 x x x x x a8",
  5739. " a7 a6 a5 a4 a3 a2 a1 a0",
  5740. " i i i i i i i i";
  5741. mode = 0x04;
  5742. delay = 20;
  5743. blocksize = 128;
  5744. readsize = 256;
  5745. ;
  5746. memory "flash"
  5747. paged = yes;
  5748. size = 8192;
  5749. page_size = 64;
  5750. num_pages = 128;
  5751. min_write_delay = 4500;
  5752. max_write_delay = 4500;
  5753. readback_p1 = 0xff;
  5754. readback_p2 = 0x00;
  5755. read_lo = " 0 0 1 0 0 0 0 0",
  5756. " 0 0 0 0 a11 a10 a9 a8",
  5757. " a7 a6 a5 a4 a3 a2 a1 a0",
  5758. " o o o o o o o o";
  5759. read_hi = " 0 0 1 0 1 0 0 0",
  5760. " 0 0 0 0 a11 a10 a9 a8",
  5761. " a7 a6 a5 a4 a3 a2 a1 a0",
  5762. " o o o o o o o o";
  5763. loadpage_lo = " 0 1 0 0 0 0 0 0",
  5764. " 0 0 0 0 x x x x",
  5765. " x x x a4 a3 a2 a1 a0",
  5766. " i i i i i i i i";
  5767. loadpage_hi = " 0 1 0 0 1 0 0 0",
  5768. " 0 0 0 0 x x x x",
  5769. " x x x a4 a3 a2 a1 a0",
  5770. " i i i i i i i i";
  5771. writepage = " 0 1 0 0 1 1 0 0",
  5772. " 0 0 0 0 a11 a10 a9 a8",
  5773. " a7 a6 a5 x x x x x",
  5774. " x x x x x x x x";
  5775. mode = 0x21;
  5776. delay = 10;
  5777. blocksize = 64;
  5778. readsize = 256;
  5779. ;
  5780. memory "lfuse"
  5781. size = 1;
  5782. min_write_delay = 2000;
  5783. max_write_delay = 2000;
  5784. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  5785. "x x x x x x x x o o o o o o o o";
  5786. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  5787. "x x x x x x x x i i i i i i i i";
  5788. ;
  5789. memory "hfuse"
  5790. size = 1;
  5791. min_write_delay = 2000;
  5792. max_write_delay = 2000;
  5793. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  5794. "x x x x x x x x o o o o o o o o";
  5795. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  5796. "x x x x x x x x i i i i i i i i";
  5797. ;
  5798. memory "lock"
  5799. size = 1;
  5800. min_write_delay = 2000;
  5801. max_write_delay = 2000;
  5802. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  5803. "x x x x x x x x x x o o o o o o";
  5804. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  5805. "x x x x x x x x 1 1 i i i i i i";
  5806. ;
  5807. memory "calibration"
  5808. size = 4;
  5809. read = "0 0 1 1 1 0 0 0 0 0 x x x x x x",
  5810. "0 0 0 0 0 0 a1 a0 o o o o o o o o";
  5811. ;
  5812. memory "signature"
  5813. size = 3;
  5814. read = "0 0 1 1 0 0 0 0 x x x x x x x x",
  5815. "x x x x x x a1 a0 o o o o o o o o";
  5816. ;
  5817. ;
  5818. #------------------------------------------------------------
  5819. # ATmega8515
  5820. #------------------------------------------------------------
  5821. part
  5822. id = "m8515";
  5823. desc = "ATMEGA8515";
  5824. stk500_devcode = 0x63;
  5825. avr910_devcode = 0x3A;
  5826. signature = 0x1e 0x93 0x06;
  5827. chip_erase_delay = 9000;
  5828. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  5829. "x x x x x x x x x x x x x x x x";
  5830. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
  5831. "x x x x x x x x x x x x x x x x";
  5832. timeout = 200;
  5833. stabdelay = 100;
  5834. cmdexedelay = 25;
  5835. synchloops = 32;
  5836. bytedelay = 0;
  5837. pollindex = 3;
  5838. pollvalue = 0x53;
  5839. predelay = 1;
  5840. postdelay = 1;
  5841. pollmethod = 0;
  5842. pp_controlstack =
  5843. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  5844. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  5845. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  5846. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  5847. hventerstabdelay = 100;
  5848. progmodedelay = 0;
  5849. latchcycles = 6;
  5850. togglevtg = 0;
  5851. poweroffdelay = 0;
  5852. resetdelayms = 0;
  5853. resetdelayus = 0;
  5854. hvleavestabdelay = 15;
  5855. chiperasepulsewidth = 0;
  5856. chiperasepolltimeout = 10;
  5857. programfusepulsewidth = 0;
  5858. programfusepolltimeout = 5;
  5859. programlockpulsewidth = 0;
  5860. programlockpolltimeout = 5;
  5861. memory "eeprom"
  5862. size = 512;
  5863. min_write_delay = 9000;
  5864. max_write_delay = 9000;
  5865. readback_p1 = 0xff;
  5866. readback_p2 = 0xff;
  5867. read = " 1 0 1 0 0 0 0 0",
  5868. " 0 0 x x x x x a8",
  5869. " a7 a6 a5 a4 a3 a2 a1 a0",
  5870. " o o o o o o o o";
  5871. write = " 1 1 0 0 0 0 0 0",
  5872. " 0 0 x x x x x a8",
  5873. " a7 a6 a5 a4 a3 a2 a1 a0",
  5874. " i i i i i i i i";
  5875. mode = 0x04;
  5876. delay = 10;
  5877. blocksize = 128;
  5878. readsize = 256;
  5879. ;
  5880. memory "flash"
  5881. paged = yes;
  5882. size = 8192;
  5883. page_size = 64;
  5884. num_pages = 128;
  5885. min_write_delay = 4500;
  5886. max_write_delay = 4500;
  5887. readback_p1 = 0xff;
  5888. readback_p2 = 0xff;
  5889. read_lo = " 0 0 1 0 0 0 0 0",
  5890. " 0 0 0 0 a11 a10 a9 a8",
  5891. " a7 a6 a5 a4 a3 a2 a1 a0",
  5892. " o o o o o o o o";
  5893. read_hi = " 0 0 1 0 1 0 0 0",
  5894. " 0 0 0 0 a11 a10 a9 a8",
  5895. " a7 a6 a5 a4 a3 a2 a1 a0",
  5896. " o o o o o o o o";
  5897. loadpage_lo = " 0 1 0 0 0 0 0 0",
  5898. " 0 0 0 0 x x x x",
  5899. " x x x a4 a3 a2 a1 a0",
  5900. " i i i i i i i i";
  5901. loadpage_hi = " 0 1 0 0 1 0 0 0",
  5902. " 0 0 0 0 x x x x",
  5903. " x x x a4 a3 a2 a1 a0",
  5904. " i i i i i i i i";
  5905. writepage = " 0 1 0 0 1 1 0 0",
  5906. " 0 0 0 0 a11 a10 a9 a8",
  5907. " a7 a6 a5 x x x x x",
  5908. " x x x x x x x x";
  5909. mode = 0x21;
  5910. delay = 6;
  5911. blocksize = 64;
  5912. readsize = 256;
  5913. ;
  5914. memory "lfuse"
  5915. size = 1;
  5916. min_write_delay = 4500;
  5917. max_write_delay = 4500;
  5918. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  5919. "x x x x x x x x o o o o o o o o";
  5920. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  5921. "x x x x x x x x i i i i i i i i";
  5922. ;
  5923. memory "hfuse"
  5924. size = 1;
  5925. min_write_delay = 4500;
  5926. max_write_delay = 4500;
  5927. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  5928. "x x x x x x x x o o o o o o o o";
  5929. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  5930. "x x x x x x x x i i i i i i i i";
  5931. ;
  5932. memory "lock"
  5933. size = 1;
  5934. min_write_delay = 4500;
  5935. max_write_delay = 4500;
  5936. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  5937. "x x x x x x x x x x o o o o o o";
  5938. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  5939. "x x x x x x x x 1 1 i i i i i i";
  5940. ;
  5941. memory "calibration"
  5942. size = 4;
  5943. read = "0 0 1 1 1 0 0 0 0 0 x x x x x x",
  5944. "0 0 0 0 0 0 a1 a0 o o o o o o o o";
  5945. ;
  5946. memory "signature"
  5947. size = 3;
  5948. read = "0 0 1 1 0 0 0 0 x x x x x x x x",
  5949. "x x x x x x a1 a0 o o o o o o o o";
  5950. ;
  5951. ;
  5952. #------------------------------------------------------------
  5953. # ATmega8535
  5954. #------------------------------------------------------------
  5955. part
  5956. id = "m8535";
  5957. desc = "ATMEGA8535";
  5958. stk500_devcode = 0x64;
  5959. avr910_devcode = 0x69;
  5960. signature = 0x1e 0x93 0x08;
  5961. pagel = 0xd7;
  5962. bs2 = 0xa0;
  5963. chip_erase_delay = 9000;
  5964. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  5965. "x x x x x x x x x x x x x x x x";
  5966. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
  5967. "x x x x x x x x x x x x x x x x";
  5968. timeout = 200;
  5969. stabdelay = 100;
  5970. cmdexedelay = 25;
  5971. synchloops = 32;
  5972. bytedelay = 0;
  5973. pollindex = 3;
  5974. pollvalue = 0x53;
  5975. predelay = 1;
  5976. postdelay = 1;
  5977. pollmethod = 0;
  5978. pp_controlstack =
  5979. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  5980. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  5981. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  5982. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  5983. hventerstabdelay = 100;
  5984. progmodedelay = 0;
  5985. latchcycles = 6;
  5986. togglevtg = 0;
  5987. poweroffdelay = 0;
  5988. resetdelayms = 0;
  5989. resetdelayus = 0;
  5990. hvleavestabdelay = 15;
  5991. chiperasepulsewidth = 0;
  5992. chiperasepolltimeout = 10;
  5993. programfusepulsewidth = 0;
  5994. programfusepolltimeout = 5;
  5995. programlockpulsewidth = 0;
  5996. programlockpolltimeout = 5;
  5997. memory "eeprom"
  5998. size = 512;
  5999. min_write_delay = 9000;
  6000. max_write_delay = 9000;
  6001. readback_p1 = 0xff;
  6002. readback_p2 = 0xff;
  6003. read = " 1 0 1 0 0 0 0 0",
  6004. " 0 0 x x x x x a8",
  6005. " a7 a6 a5 a4 a3 a2 a1 a0",
  6006. " o o o o o o o o";
  6007. write = " 1 1 0 0 0 0 0 0",
  6008. " 0 0 x x x x x a8",
  6009. " a7 a6 a5 a4 a3 a2 a1 a0",
  6010. " i i i i i i i i";
  6011. mode = 0x04;
  6012. delay = 10;
  6013. blocksize = 128;
  6014. readsize = 256;
  6015. ;
  6016. memory "flash"
  6017. paged = yes;
  6018. size = 8192;
  6019. page_size = 64;
  6020. num_pages = 128;
  6021. min_write_delay = 4500;
  6022. max_write_delay = 4500;
  6023. readback_p1 = 0xff;
  6024. readback_p2 = 0xff;
  6025. read_lo = " 0 0 1 0 0 0 0 0",
  6026. " 0 0 0 0 a11 a10 a9 a8",
  6027. " a7 a6 a5 a4 a3 a2 a1 a0",
  6028. " o o o o o o o o";
  6029. read_hi = " 0 0 1 0 1 0 0 0",
  6030. " 0 0 0 0 a11 a10 a9 a8",
  6031. " a7 a6 a5 a4 a3 a2 a1 a0",
  6032. " o o o o o o o o";
  6033. loadpage_lo = " 0 1 0 0 0 0 0 0",
  6034. " 0 0 0 0 x x x x",
  6035. " x x x a4 a3 a2 a1 a0",
  6036. " i i i i i i i i";
  6037. loadpage_hi = " 0 1 0 0 1 0 0 0",
  6038. " 0 0 0 0 x x x x",
  6039. " x x x a4 a3 a2 a1 a0",
  6040. " i i i i i i i i";
  6041. writepage = " 0 1 0 0 1 1 0 0",
  6042. " 0 0 0 0 a11 a10 a9 a8",
  6043. " a7 a6 a5 x x x x x",
  6044. " x x x x x x x x";
  6045. mode = 0x21;
  6046. delay = 6;
  6047. blocksize = 64;
  6048. readsize = 256;
  6049. ;
  6050. memory "lfuse"
  6051. size = 1;
  6052. min_write_delay = 2000;
  6053. max_write_delay = 2000;
  6054. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  6055. "x x x x x x x x o o o o o o o o";
  6056. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  6057. "x x x x x x x x i i i i i i i i";
  6058. ;
  6059. memory "hfuse"
  6060. size = 1;
  6061. min_write_delay = 2000;
  6062. max_write_delay = 2000;
  6063. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  6064. "x x x x x x x x o o o o o o o o";
  6065. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  6066. "x x x x x x x x i i i i i i i i";
  6067. ;
  6068. memory "lock"
  6069. size = 1;
  6070. min_write_delay = 2000;
  6071. max_write_delay = 2000;
  6072. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  6073. "x x x x x x x x x x o o o o o o";
  6074. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  6075. "x x x x x x x x 1 1 i i i i i i";
  6076. ;
  6077. memory "calibration"
  6078. size = 4;
  6079. read = "0 0 1 1 1 0 0 0 0 0 x x x x x x",
  6080. "0 0 0 0 0 0 a1 a0 o o o o o o o o";
  6081. ;
  6082. memory "signature"
  6083. size = 3;
  6084. read = "0 0 1 1 0 0 0 0 x x x x x x x x",
  6085. "x x x x x x a1 a0 o o o o o o o o";
  6086. ;
  6087. ;
  6088. #------------------------------------------------------------
  6089. # ATtiny26
  6090. #------------------------------------------------------------
  6091. part
  6092. id = "t26";
  6093. desc = "ATTINY26";
  6094. stk500_devcode = 0x21;
  6095. avr910_devcode = 0x5e;
  6096. signature = 0x1e 0x91 0x09;
  6097. pagel = 0xb3;
  6098. bs2 = 0xb2;
  6099. chip_erase_delay = 9000;
  6100. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  6101. "x x x x x x x x x x x x x x x x";
  6102. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
  6103. "x x x x x x x x x x x x x x x x";
  6104. timeout = 200;
  6105. stabdelay = 100;
  6106. cmdexedelay = 25;
  6107. synchloops = 32;
  6108. bytedelay = 0;
  6109. pollindex = 3;
  6110. pollvalue = 0x53;
  6111. predelay = 1;
  6112. postdelay = 1;
  6113. pollmethod = 0;
  6114. pp_controlstack =
  6115. 0xC4, 0xE4, 0xC4, 0xE4, 0xCC, 0xEC, 0xCC, 0xEC,
  6116. 0xD4, 0xF4, 0xD4, 0xF4, 0xDC, 0xFC, 0xDC, 0xFC,
  6117. 0xC8, 0xE8, 0xD8, 0xF8, 0x4C, 0x6C, 0x5C, 0x7C,
  6118. 0xEC, 0xBC, 0x00, 0x06, 0x00, 0x00, 0x00, 0x00;
  6119. hventerstabdelay = 100;
  6120. progmodedelay = 0;
  6121. latchcycles = 5;
  6122. togglevtg = 1;
  6123. poweroffdelay = 15;
  6124. resetdelayms = 2;
  6125. resetdelayus = 0;
  6126. hvleavestabdelay = 15;
  6127. chiperasepulsewidth = 0;
  6128. chiperasepolltimeout = 10;
  6129. programfusepulsewidth = 0;
  6130. programfusepolltimeout = 5;
  6131. programlockpulsewidth = 0;
  6132. programlockpolltimeout = 5;
  6133. memory "eeprom"
  6134. size = 128;
  6135. min_write_delay = 9000;
  6136. max_write_delay = 9000;
  6137. readback_p1 = 0xff;
  6138. readback_p2 = 0xff;
  6139. read = "1 0 1 0 0 0 0 0 x x x x x x x x",
  6140. "x a6 a5 a4 a3 a2 a1 a0 o o o o o o o o";
  6141. write = "1 1 0 0 0 0 0 0 x x x x x x x x",
  6142. "x a6 a5 a4 a3 a2 a1 a0 i i i i i i i i";
  6143. mode = 0x04;
  6144. delay = 10;
  6145. blocksize = 64;
  6146. readsize = 256;
  6147. ;
  6148. memory "flash"
  6149. paged = yes;
  6150. size = 2048;
  6151. page_size = 32;
  6152. num_pages = 64;
  6153. min_write_delay = 4500;
  6154. max_write_delay = 4500;
  6155. readback_p1 = 0xff;
  6156. readback_p2 = 0xff;
  6157. read_lo = " 0 0 1 0 0 0 0 0",
  6158. " x x x x x x a9 a8",
  6159. " a7 a6 a5 a4 a3 a2 a1 a0",
  6160. " o o o o o o o o";
  6161. read_hi = " 0 0 1 0 1 0 0 0",
  6162. " x x x x x x a9 a8",
  6163. " a7 a6 a5 a4 a3 a2 a1 a0",
  6164. " o o o o o o o o";
  6165. loadpage_lo = " 0 1 0 0 0 0 0 0",
  6166. " x x x x x x x x",
  6167. " x x x x a3 a2 a1 a0",
  6168. " i i i i i i i i";
  6169. loadpage_hi = " 0 1 0 0 1 0 0 0",
  6170. " x x x x x x x x",
  6171. " x x x x a3 a2 a1 a0",
  6172. " i i i i i i i i";
  6173. writepage = " 0 1 0 0 1 1 0 0",
  6174. " x x x x x x a9 a8",
  6175. " a7 a6 a5 a4 x x x x",
  6176. " x x x x x x x x";
  6177. mode = 0x21;
  6178. delay = 6;
  6179. blocksize = 16;
  6180. readsize = 256;
  6181. ;
  6182. memory "signature"
  6183. size = 3;
  6184. read = "0 0 1 1 0 0 0 0 x x x x x x x x",
  6185. "0 0 0 0 0 0 a1 a0 o o o o o o o o";
  6186. ;
  6187. memory "lock"
  6188. size = 1;
  6189. read = "0 1 0 1 1 0 0 0 x x x x x x x x",
  6190. "x x x x x x x x x x x x x x o o";
  6191. write = "1 0 1 0 1 1 0 0 1 1 1 1 1 1 i i",
  6192. "x x x x x x x x x x x x x x x x";
  6193. min_write_delay = 9000;
  6194. max_write_delay = 9000;
  6195. ;
  6196. memory "lfuse"
  6197. size = 1;
  6198. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  6199. "x x x x x x x x i i i i i i i i";
  6200. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  6201. "x x x x x x x x o o o o o o o o";
  6202. min_write_delay = 9000;
  6203. max_write_delay = 9000;
  6204. ;
  6205. memory "hfuse"
  6206. size = 1;
  6207. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  6208. "x x x x x x x x x x x i i i i i";
  6209. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  6210. "x x x x x x x x x x x o o o o o";
  6211. min_write_delay = 9000;
  6212. max_write_delay = 9000;
  6213. ;
  6214. memory "calibration"
  6215. size = 4;
  6216. read = "0 0 1 1 1 0 0 0 x x x x x x x x",
  6217. "0 0 0 0 0 0 a1 a0 o o o o o o o o";
  6218. ;
  6219. ;
  6220. #------------------------------------------------------------
  6221. # ATtiny261
  6222. #------------------------------------------------------------
  6223. # Close to ATtiny26
  6224. part
  6225. id = "t261";
  6226. desc = "ATTINY261";
  6227. has_debugwire = yes;
  6228. flash_instr = 0xB4, 0x00, 0x10;
  6229. eeprom_instr = 0xBB, 0xFF, 0xBB, 0xEE, 0xBB, 0xCC, 0xB2, 0x0D,
  6230. 0xBC, 0x00, 0xB4, 0x00, 0xBA, 0x0D, 0xBB, 0xBC,
  6231. 0x99, 0xE1, 0xBB, 0xAC;
  6232. # stk500_devcode = 0x21;
  6233. # avr910_devcode = 0x5e;
  6234. signature = 0x1e 0x91 0x0c;
  6235. pagel = 0xb3;
  6236. bs2 = 0xb2;
  6237. chip_erase_delay = 4000;
  6238. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  6239. "x x x x x x x x x x x x x x x x";
  6240. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
  6241. "x x x x x x x x x x x x x x x x";
  6242. timeout = 200;
  6243. stabdelay = 100;
  6244. cmdexedelay = 25;
  6245. synchloops = 32;
  6246. bytedelay = 0;
  6247. pollindex = 3;
  6248. pollvalue = 0x53;
  6249. predelay = 1;
  6250. postdelay = 1;
  6251. pollmethod = 0;
  6252. pp_controlstack =
  6253. 0xC4, 0xE4, 0xC4, 0xE4, 0xCC, 0xEC, 0xCC, 0xEC,
  6254. 0xD4, 0xF4, 0xD4, 0xF4, 0xDC, 0xFC, 0xDC, 0xFC,
  6255. 0xC8, 0xE8, 0xD8, 0xF8, 0x4C, 0x6C, 0x5C, 0x7C,
  6256. 0xEC, 0xBC, 0x00, 0x06, 0x00, 0x00, 0x00, 0x00;
  6257. hventerstabdelay = 100;
  6258. progmodedelay = 0;
  6259. latchcycles = 5;
  6260. togglevtg = 1;
  6261. poweroffdelay = 15;
  6262. resetdelayms = 2;
  6263. resetdelayus = 0;
  6264. hvleavestabdelay = 15;
  6265. chiperasepulsewidth = 0;
  6266. chiperasepolltimeout = 10;
  6267. programfusepulsewidth = 0;
  6268. programfusepolltimeout = 5;
  6269. programlockpulsewidth = 0;
  6270. programlockpolltimeout = 5;
  6271. memory "eeprom"
  6272. paged = no;
  6273. size = 128;
  6274. page_size = 4;
  6275. num_pages = 32;
  6276. min_write_delay = 4000;
  6277. max_write_delay = 4000;
  6278. readback_p1 = 0xff;
  6279. readback_p2 = 0xff;
  6280. read = "1 0 1 0 0 0 0 0 x x x x x x x x",
  6281. "x a6 a5 a4 a3 a2 a1 a0 o o o o o o o o";
  6282. write = "1 1 0 0 0 0 0 0 x x x x x x x x",
  6283. "x a6 a5 a4 a3 a2 a1 a0 i i i i i i i i";
  6284. loadpage_lo = " 1 1 0 0 0 0 0 1",
  6285. " 0 0 0 0 0 0 0 0",
  6286. " 0 0 0 0 0 0 a1 a0",
  6287. " i i i i i i i i";
  6288. writepage = " 1 1 0 0 0 0 1 0",
  6289. " 0 0 x x x x x x",
  6290. " x a6 a5 a4 a3 a2 0 0",
  6291. " x x x x x x x x";
  6292. mode = 0x41;
  6293. delay = 10;
  6294. blocksize = 4;
  6295. readsize = 256;
  6296. ;
  6297. memory "flash"
  6298. paged = yes;
  6299. size = 2048;
  6300. page_size = 32;
  6301. num_pages = 64;
  6302. min_write_delay = 4500;
  6303. max_write_delay = 4500;
  6304. readback_p1 = 0xff;
  6305. readback_p2 = 0xff;
  6306. read_lo = " 0 0 1 0 0 0 0 0",
  6307. " x x x x x x a9 a8",
  6308. " a7 a6 a5 a4 a3 a2 a1 a0",
  6309. " o o o o o o o o";
  6310. read_hi = " 0 0 1 0 1 0 0 0",
  6311. " x x x x x x a9 a8",
  6312. " a7 a6 a5 a4 a3 a2 a1 a0",
  6313. " o o o o o o o o";
  6314. loadpage_lo = " 0 1 0 0 0 0 0 0",
  6315. " x x x x x x x x",
  6316. " x x x x a3 a2 a1 a0",
  6317. " i i i i i i i i";
  6318. loadpage_hi = " 0 1 0 0 1 0 0 0",
  6319. " x x x x x x x x",
  6320. " x x x x a3 a2 a1 a0",
  6321. " i i i i i i i i";
  6322. writepage = " 0 1 0 0 1 1 0 0",
  6323. " x x x x x x a9 a8",
  6324. " a7 a6 a5 a4 x x x x",
  6325. " x x x x x x x x";
  6326. mode = 0x41;
  6327. delay = 6;
  6328. blocksize = 32;
  6329. readsize = 256;
  6330. ;
  6331. memory "signature"
  6332. size = 3;
  6333. read = "0 0 1 1 0 0 0 0 x x x x x x x x",
  6334. "0 0 0 0 0 0 a1 a0 o o o o o o o o";
  6335. ;
  6336. memory "lock"
  6337. size = 1;
  6338. read = "0 1 0 1 1 0 0 0 x x x x x x x x",
  6339. "x x x x x x x x x x x x x x o o";
  6340. write = "1 0 1 0 1 1 0 0 1 1 1 1 1 1 i i",
  6341. "x x x x x x x x x x x x x x x x";
  6342. min_write_delay = 4500;
  6343. max_write_delay = 4500;
  6344. ;
  6345. memory "lfuse"
  6346. size = 1;
  6347. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  6348. "x x x x x x x x i i i i i i i i";
  6349. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  6350. "x x x x x x x x o o o o o o o o";
  6351. min_write_delay = 4500;
  6352. max_write_delay = 4500;
  6353. ;
  6354. memory "hfuse"
  6355. size = 1;
  6356. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  6357. "x x x x x x x x i i i i i i i i";
  6358. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  6359. "x x x x x x x x o o o o o o o o";
  6360. min_write_delay = 4500;
  6361. max_write_delay = 4500;
  6362. ;
  6363. memory "efuse"
  6364. size = 1;
  6365. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  6366. "x x x x x x x x x x x x x x x i";
  6367. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  6368. "x x x x x x x x x x x x x x x o";
  6369. min_write_delay = 4500;
  6370. max_write_delay = 4500;
  6371. ;
  6372. memory "calibration"
  6373. size = 1;
  6374. read = "0 0 1 1 1 0 0 0 x x x x x x x x",
  6375. "0 0 0 0 0 0 0 0 o o o o o o o o";
  6376. ;
  6377. ;
  6378. #------------------------------------------------------------
  6379. # ATtiny461
  6380. #------------------------------------------------------------
  6381. # Close to ATtiny261
  6382. part
  6383. id = "t461";
  6384. desc = "ATTINY461";
  6385. has_debugwire = yes;
  6386. flash_instr = 0xB4, 0x00, 0x10;
  6387. eeprom_instr = 0xBB, 0xFF, 0xBB, 0xEE, 0xBB, 0xCC, 0xB2, 0x0D,
  6388. 0xBC, 0x00, 0xB4, 0x00, 0xBA, 0x0D, 0xBB, 0xBC,
  6389. 0x99, 0xE1, 0xBB, 0xAC;
  6390. # stk500_devcode = 0x21;
  6391. # avr910_devcode = 0x5e;
  6392. signature = 0x1e 0x92 0x08;
  6393. pagel = 0xb3;
  6394. bs2 = 0xb2;
  6395. chip_erase_delay = 4000;
  6396. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  6397. "x x x x x x x x x x x x x x x x";
  6398. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
  6399. "x x x x x x x x x x x x x x x x";
  6400. timeout = 200;
  6401. stabdelay = 100;
  6402. cmdexedelay = 25;
  6403. synchloops = 32;
  6404. bytedelay = 0;
  6405. pollindex = 3;
  6406. pollvalue = 0x53;
  6407. predelay = 1;
  6408. postdelay = 1;
  6409. pollmethod = 0;
  6410. pp_controlstack =
  6411. 0xC4, 0xE4, 0xC4, 0xE4, 0xCC, 0xEC, 0xCC, 0xEC,
  6412. 0xD4, 0xF4, 0xD4, 0xF4, 0xDC, 0xFC, 0xDC, 0xFC,
  6413. 0xC8, 0xE8, 0xD8, 0xF8, 0x4C, 0x6C, 0x5C, 0x7C,
  6414. 0xEC, 0xBC, 0x00, 0x06, 0x00, 0x00, 0x00, 0x00;
  6415. hventerstabdelay = 100;
  6416. progmodedelay = 0;
  6417. latchcycles = 5;
  6418. togglevtg = 1;
  6419. poweroffdelay = 15;
  6420. resetdelayms = 2;
  6421. resetdelayus = 0;
  6422. hvleavestabdelay = 15;
  6423. chiperasepulsewidth = 0;
  6424. chiperasepolltimeout = 10;
  6425. programfusepulsewidth = 0;
  6426. programfusepolltimeout = 5;
  6427. programlockpulsewidth = 0;
  6428. programlockpolltimeout = 5;
  6429. memory "eeprom"
  6430. paged = no;
  6431. size = 256;
  6432. page_size = 4;
  6433. num_pages = 64;
  6434. min_write_delay = 4000;
  6435. max_write_delay = 4000;
  6436. readback_p1 = 0xff;
  6437. readback_p2 = 0xff;
  6438. read = " 1 0 1 0 0 0 0 0 x x x x x x x x",
  6439. "a7 a6 a5 a4 a3 a2 a1 a0 o o o o o o o o";
  6440. write = " 1 1 0 0 0 0 0 0 x x x x x x x x",
  6441. "a7 a6 a5 a4 a3 a2 a1 a0 i i i i i i i i";
  6442. loadpage_lo = " 1 1 0 0 0 0 0 1",
  6443. " 0 0 0 0 0 0 0 0",
  6444. " 0 0 0 0 0 0 a1 a0",
  6445. " i i i i i i i i";
  6446. writepage = " 1 1 0 0 0 0 1 0",
  6447. " 0 0 x x x x x x",
  6448. " a7 a6 a5 a4 a3 a2 0 0",
  6449. " x x x x x x x x";
  6450. mode = 0x41;
  6451. delay = 10;
  6452. blocksize = 4;
  6453. readsize = 256;
  6454. ;
  6455. memory "flash"
  6456. paged = yes;
  6457. size = 4096;
  6458. page_size = 64;
  6459. num_pages = 64;
  6460. min_write_delay = 4500;
  6461. max_write_delay = 4500;
  6462. readback_p1 = 0xff;
  6463. readback_p2 = 0xff;
  6464. read_lo = " 0 0 1 0 0 0 0 0",
  6465. " x x x x x a10 a9 a8",
  6466. " a7 a6 a5 a4 a3 a2 a1 a0",
  6467. " o o o o o o o o";
  6468. read_hi = " 0 0 1 0 1 0 0 0",
  6469. " x x x x x a10 a9 a8",
  6470. " a7 a6 a5 a4 a3 a2 a1 a0",
  6471. " o o o o o o o o";
  6472. loadpage_lo = " 0 1 0 0 0 0 0 0",
  6473. " x x x x x x x x",
  6474. " x x x a4 a3 a2 a1 a0",
  6475. " i i i i i i i i";
  6476. loadpage_hi = " 0 1 0 0 1 0 0 0",
  6477. " x x x x x x x x",
  6478. " x x x a4 a3 a2 a1 a0",
  6479. " i i i i i i i i";
  6480. writepage = " 0 1 0 0 1 1 0 0",
  6481. " x x x x x a10 a9 a8",
  6482. " a7 a6 a5 x x x x x",
  6483. " x x x x x x x x";
  6484. mode = 0x41;
  6485. delay = 6;
  6486. blocksize = 64;
  6487. readsize = 256;
  6488. ;
  6489. memory "signature"
  6490. size = 3;
  6491. read = "0 0 1 1 0 0 0 0 x x x x x x x x",
  6492. "0 0 0 0 0 0 a1 a0 o o o o o o o o";
  6493. ;
  6494. memory "lock"
  6495. size = 1;
  6496. read = "0 1 0 1 1 0 0 0 x x x x x x x x",
  6497. "x x x x x x x x x x x x x x o o";
  6498. write = "1 0 1 0 1 1 0 0 1 1 1 1 1 1 i i",
  6499. "x x x x x x x x x x x x x x x x";
  6500. min_write_delay = 4500;
  6501. max_write_delay = 4500;
  6502. ;
  6503. memory "lfuse"
  6504. size = 1;
  6505. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  6506. "x x x x x x x x i i i i i i i i";
  6507. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  6508. "x x x x x x x x o o o o o o o o";
  6509. min_write_delay = 4500;
  6510. max_write_delay = 4500;
  6511. ;
  6512. memory "hfuse"
  6513. size = 1;
  6514. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  6515. "x x x x x x x x i i i i i i i i";
  6516. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  6517. "x x x x x x x x o o o o o o o o";
  6518. min_write_delay = 4500;
  6519. max_write_delay = 4500;
  6520. ;
  6521. memory "efuse"
  6522. size = 1;
  6523. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  6524. "x x x x x x x x x x x x x x x i";
  6525. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  6526. "x x x x x x x x x x x x x x x o";
  6527. min_write_delay = 4500;
  6528. max_write_delay = 4500;
  6529. ;
  6530. memory "calibration"
  6531. size = 1;
  6532. read = "0 0 1 1 1 0 0 0 x x x x x x x x",
  6533. "0 0 0 0 0 0 0 0 o o o o o o o o";
  6534. ;
  6535. ;
  6536. #------------------------------------------------------------
  6537. # ATtiny861
  6538. #------------------------------------------------------------
  6539. # Close to ATtiny461
  6540. part
  6541. id = "t861";
  6542. desc = "ATTINY861";
  6543. has_debugwire = yes;
  6544. flash_instr = 0xB4, 0x00, 0x10;
  6545. eeprom_instr = 0xBB, 0xFF, 0xBB, 0xEE, 0xBB, 0xCC, 0xB2, 0x0D,
  6546. 0xBC, 0x00, 0xB4, 0x00, 0xBA, 0x0D, 0xBB, 0xBC,
  6547. 0x99, 0xE1, 0xBB, 0xAC;
  6548. # stk500_devcode = 0x21;
  6549. # avr910_devcode = 0x5e;
  6550. signature = 0x1e 0x93 0x0d;
  6551. pagel = 0xb3;
  6552. bs2 = 0xb2;
  6553. chip_erase_delay = 4000;
  6554. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  6555. "x x x x x x x x x x x x x x x x";
  6556. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
  6557. "x x x x x x x x x x x x x x x x";
  6558. timeout = 200;
  6559. stabdelay = 100;
  6560. cmdexedelay = 25;
  6561. synchloops = 32;
  6562. bytedelay = 0;
  6563. pollindex = 3;
  6564. pollvalue = 0x53;
  6565. predelay = 1;
  6566. postdelay = 1;
  6567. pollmethod = 0;
  6568. pp_controlstack =
  6569. 0xC4, 0xE4, 0xC4, 0xE4, 0xCC, 0xEC, 0xCC, 0xEC,
  6570. 0xD4, 0xF4, 0xD4, 0xF4, 0xDC, 0xFC, 0xDC, 0xFC,
  6571. 0xC8, 0xE8, 0xD8, 0xF8, 0x4C, 0x6C, 0x5C, 0x7C,
  6572. 0xEC, 0xBC, 0x00, 0x06, 0x00, 0x00, 0x00, 0x00;
  6573. hventerstabdelay = 100;
  6574. progmodedelay = 0;
  6575. latchcycles = 5;
  6576. togglevtg = 1;
  6577. poweroffdelay = 15;
  6578. resetdelayms = 2;
  6579. resetdelayus = 0;
  6580. hvleavestabdelay = 15;
  6581. chiperasepulsewidth = 0;
  6582. chiperasepolltimeout = 10;
  6583. programfusepulsewidth = 0;
  6584. programfusepolltimeout = 5;
  6585. programlockpulsewidth = 0;
  6586. programlockpolltimeout = 5;
  6587. memory "eeprom"
  6588. paged = no;
  6589. size = 512;
  6590. num_pages = 128;
  6591. page_size = 4;
  6592. min_write_delay = 4000;
  6593. max_write_delay = 4000;
  6594. readback_p1 = 0xff;
  6595. readback_p2 = 0xff;
  6596. read = " 1 0 1 0 0 0 0 0 x x x x x x x a8",
  6597. "a7 a6 a5 a4 a3 a2 a1 a0 o o o o o o o o";
  6598. write = " 1 1 0 0 0 0 0 0 x x x x x x x a8",
  6599. "a7 a6 a5 a4 a3 a2 a1 a0 i i i i i i i i";
  6600. loadpage_lo = " 1 1 0 0 0 0 0 1",
  6601. " 0 0 0 0 0 0 0 0",
  6602. " 0 0 0 0 0 0 a1 a0",
  6603. " i i i i i i i i";
  6604. writepage = " 1 1 0 0 0 0 1 0",
  6605. " 0 0 x x x x x a8",
  6606. " a7 a6 a5 a4 a3 a2 0 0",
  6607. " x x x x x x x x";
  6608. mode = 0x41;
  6609. delay = 10;
  6610. blocksize = 4;
  6611. readsize = 256;
  6612. ;
  6613. memory "flash"
  6614. paged = yes;
  6615. size = 8192;
  6616. page_size = 64;
  6617. num_pages = 128;
  6618. min_write_delay = 4500;
  6619. max_write_delay = 4500;
  6620. readback_p1 = 0xff;
  6621. readback_p2 = 0xff;
  6622. read_lo = " 0 0 1 0 0 0 0 0",
  6623. " x x x x a11 a10 a9 a8",
  6624. " a7 a6 a5 a4 a3 a2 a1 a0",
  6625. " o o o o o o o o";
  6626. read_hi = " 0 0 1 0 1 0 0 0",
  6627. " x x x x a11 a10 a9 a8",
  6628. " a7 a6 a5 a4 a3 a2 a1 a0",
  6629. " o o o o o o o o";
  6630. loadpage_lo = " 0 1 0 0 0 0 0 0",
  6631. " x x x x x x x x",
  6632. " x x x a4 a3 a2 a1 a0",
  6633. " i i i i i i i i";
  6634. loadpage_hi = " 0 1 0 0 1 0 0 0",
  6635. " x x x x x x x x",
  6636. " x x x a4 a3 a2 a1 a0",
  6637. " i i i i i i i i";
  6638. writepage = " 0 1 0 0 1 1 0 0",
  6639. " x x x x a11 a10 a9 a8",
  6640. " a7 a6 a5 x x x x x",
  6641. " x x x x x x x x";
  6642. mode = 0x41;
  6643. delay = 6;
  6644. blocksize = 64;
  6645. readsize = 256;
  6646. ;
  6647. memory "signature"
  6648. size = 3;
  6649. read = "0 0 1 1 0 0 0 0 x x x x x x x x",
  6650. "0 0 0 0 0 0 a1 a0 o o o o o o o o";
  6651. ;
  6652. memory "lock"
  6653. size = 1;
  6654. read = "0 1 0 1 1 0 0 0 x x x x x x x x",
  6655. "x x x x x x x x x x x x x x o o";
  6656. write = "1 0 1 0 1 1 0 0 1 1 1 1 1 1 i i",
  6657. "x x x x x x x x x x x x x x x x";
  6658. min_write_delay = 4500;
  6659. max_write_delay = 4500;
  6660. ;
  6661. memory "lfuse"
  6662. size = 1;
  6663. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  6664. "x x x x x x x x i i i i i i i i";
  6665. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  6666. "x x x x x x x x o o o o o o o o";
  6667. min_write_delay = 4500;
  6668. max_write_delay = 4500;
  6669. ;
  6670. memory "hfuse"
  6671. size = 1;
  6672. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  6673. "x x x x x x x x i i i i i i i i";
  6674. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  6675. "x x x x x x x x o o o o o o o o";
  6676. min_write_delay = 4500;
  6677. max_write_delay = 4500;
  6678. ;
  6679. memory "efuse"
  6680. size = 1;
  6681. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  6682. "x x x x x x x x x x x x x x x i";
  6683. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  6684. "x x x x x x x x x x x x x x x o";
  6685. min_write_delay = 4500;
  6686. max_write_delay = 4500;
  6687. ;
  6688. memory "calibration"
  6689. size = 1;
  6690. read = "0 0 1 1 1 0 0 0 x x x x x x x x",
  6691. "0 0 0 0 0 0 0 0 o o o o o o o o";
  6692. ;
  6693. ;
  6694. #------------------------------------------------------------
  6695. # ATmega48
  6696. #------------------------------------------------------------
  6697. part
  6698. id = "m48";
  6699. desc = "ATMEGA48";
  6700. has_debugwire = yes;
  6701. flash_instr = 0xB6, 0x01, 0x11;
  6702. eeprom_instr = 0xBD, 0xF2, 0xBD, 0xE1, 0xBB, 0xCF, 0xB4, 0x00,
  6703. 0xBE, 0x01, 0xB6, 0x01, 0xBC, 0x00, 0xBB, 0xBF,
  6704. 0x99, 0xF9, 0xBB, 0xAF;
  6705. stk500_devcode = 0x59;
  6706. # avr910_devcode = 0x;
  6707. signature = 0x1e 0x92 0x05;
  6708. pagel = 0xd7;
  6709. bs2 = 0xc2;
  6710. chip_erase_delay = 45000;
  6711. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  6712. "x x x x x x x x x x x x x x x x";
  6713. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
  6714. "x x x x x x x x x x x x x x x x";
  6715. timeout = 200;
  6716. stabdelay = 100;
  6717. cmdexedelay = 25;
  6718. synchloops = 32;
  6719. bytedelay = 0;
  6720. pollindex = 3;
  6721. pollvalue = 0x53;
  6722. predelay = 1;
  6723. postdelay = 1;
  6724. pollmethod = 1;
  6725. pp_controlstack =
  6726. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  6727. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  6728. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  6729. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  6730. hventerstabdelay = 100;
  6731. progmodedelay = 0;
  6732. latchcycles = 5;
  6733. togglevtg = 1;
  6734. poweroffdelay = 15;
  6735. resetdelayms = 1;
  6736. resetdelayus = 0;
  6737. hvleavestabdelay = 15;
  6738. resetdelay = 15;
  6739. chiperasepulsewidth = 0;
  6740. chiperasepolltimeout = 10;
  6741. programfusepulsewidth = 0;
  6742. programfusepolltimeout = 5;
  6743. programlockpulsewidth = 0;
  6744. programlockpolltimeout = 5;
  6745. memory "eeprom"
  6746. paged = no;
  6747. page_size = 4;
  6748. size = 256;
  6749. min_write_delay = 3600;
  6750. max_write_delay = 3600;
  6751. readback_p1 = 0xff;
  6752. readback_p2 = 0xff;
  6753. read = " 1 0 1 0 0 0 0 0",
  6754. " 0 0 0 x x x x x",
  6755. " a7 a6 a5 a4 a3 a2 a1 a0",
  6756. " o o o o o o o o";
  6757. write = " 1 1 0 0 0 0 0 0",
  6758. " 0 0 0 x x x x x",
  6759. " a7 a6 a5 a4 a3 a2 a1 a0",
  6760. " i i i i i i i i";
  6761. loadpage_lo = " 1 1 0 0 0 0 0 1",
  6762. " 0 0 0 0 0 0 0 0",
  6763. " 0 0 0 0 0 0 a1 a0",
  6764. " i i i i i i i i";
  6765. writepage = " 1 1 0 0 0 0 1 0",
  6766. " 0 0 x x x x x x",
  6767. " a7 a6 a5 a4 a3 a2 0 0",
  6768. " x x x x x x x x";
  6769. mode = 0x41;
  6770. delay = 5;
  6771. blocksize = 4;
  6772. readsize = 256;
  6773. ;
  6774. memory "flash"
  6775. paged = yes;
  6776. size = 4096;
  6777. page_size = 64;
  6778. num_pages = 64;
  6779. min_write_delay = 4500;
  6780. max_write_delay = 4500;
  6781. readback_p1 = 0x00;
  6782. readback_p2 = 0x00;
  6783. read_lo = " 0 0 1 0 0 0 0 0",
  6784. " 0 0 0 0 0 a10 a9 a8",
  6785. " a7 a6 a5 a4 a3 a2 a1 a0",
  6786. " o o o o o o o o";
  6787. read_hi = " 0 0 1 0 1 0 0 0",
  6788. " 0 0 0 0 0 a10 a9 a8",
  6789. " a7 a6 a5 a4 a3 a2 a1 a0",
  6790. " o o o o o o o o";
  6791. loadpage_lo = " 0 1 0 0 0 0 0 0",
  6792. " 0 0 0 x x x x x",
  6793. " x x x a4 a3 a2 a1 a0",
  6794. " i i i i i i i i";
  6795. loadpage_hi = " 0 1 0 0 1 0 0 0",
  6796. " 0 0 0 x x x x x",
  6797. " x x x a4 a3 a2 a1 a0",
  6798. " i i i i i i i i";
  6799. writepage = " 0 1 0 0 1 1 0 0",
  6800. " 0 0 0 0 0 a10 a9 a8",
  6801. " a7 a6 a5 x x x x x",
  6802. " x x x x x x x x";
  6803. mode = 0x41;
  6804. delay = 6;
  6805. blocksize = 64;
  6806. readsize = 256;
  6807. ;
  6808. memory "lfuse"
  6809. size = 1;
  6810. min_write_delay = 4500;
  6811. max_write_delay = 4500;
  6812. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  6813. "x x x x x x x x o o o o o o o o";
  6814. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  6815. "x x x x x x x x i i i i i i i i";
  6816. ;
  6817. memory "hfuse"
  6818. size = 1;
  6819. min_write_delay = 4500;
  6820. max_write_delay = 4500;
  6821. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  6822. "x x x x x x x x o o o o o o o o";
  6823. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  6824. "x x x x x x x x i i i i i i i i";
  6825. ;
  6826. memory "efuse"
  6827. size = 1;
  6828. min_write_delay = 4500;
  6829. max_write_delay = 4500;
  6830. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  6831. "x x x x x x x x x x x x x x x o";
  6832. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  6833. "x x x x x x x x x x x x x x x i";
  6834. ;
  6835. memory "lock"
  6836. size = 1;
  6837. min_write_delay = 4500;
  6838. max_write_delay = 4500;
  6839. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  6840. "x x x x x x x x x x o o o o o o";
  6841. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  6842. "x x x x x x x x 1 1 i i i i i i";
  6843. ;
  6844. memory "calibration"
  6845. size = 1;
  6846. read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
  6847. "0 0 0 0 0 0 0 0 o o o o o o o o";
  6848. ;
  6849. memory "signature"
  6850. size = 3;
  6851. read = "0 0 1 1 0 0 0 0 0 0 0 x x x x x",
  6852. "x x x x x x a1 a0 o o o o o o o o";
  6853. ;
  6854. ;
  6855. #------------------------------------------------------------
  6856. # ATmega88
  6857. #------------------------------------------------------------
  6858. part
  6859. id = "m88";
  6860. desc = "ATMEGA88";
  6861. has_debugwire = yes;
  6862. flash_instr = 0xB6, 0x01, 0x11;
  6863. eeprom_instr = 0xBD, 0xF2, 0xBD, 0xE1, 0xBB, 0xCF, 0xB4, 0x00,
  6864. 0xBE, 0x01, 0xB6, 0x01, 0xBC, 0x00, 0xBB, 0xBF,
  6865. 0x99, 0xF9, 0xBB, 0xAF;
  6866. stk500_devcode = 0x73;
  6867. # avr910_devcode = 0x;
  6868. signature = 0x1e 0x93 0x0a;
  6869. pagel = 0xd7;
  6870. bs2 = 0xc2;
  6871. chip_erase_delay = 9000;
  6872. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  6873. "x x x x x x x x x x x x x x x x";
  6874. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
  6875. "x x x x x x x x x x x x x x x x";
  6876. timeout = 200;
  6877. stabdelay = 100;
  6878. cmdexedelay = 25;
  6879. synchloops = 32;
  6880. bytedelay = 0;
  6881. pollindex = 3;
  6882. pollvalue = 0x53;
  6883. predelay = 1;
  6884. postdelay = 1;
  6885. pollmethod = 1;
  6886. pp_controlstack =
  6887. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  6888. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  6889. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  6890. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  6891. hventerstabdelay = 100;
  6892. progmodedelay = 0;
  6893. latchcycles = 5;
  6894. togglevtg = 1;
  6895. poweroffdelay = 15;
  6896. resetdelayms = 1;
  6897. resetdelayus = 0;
  6898. hvleavestabdelay = 15;
  6899. resetdelay = 15;
  6900. chiperasepulsewidth = 0;
  6901. chiperasepolltimeout = 10;
  6902. programfusepulsewidth = 0;
  6903. programfusepolltimeout = 5;
  6904. programlockpulsewidth = 0;
  6905. programlockpolltimeout = 5;
  6906. memory "eeprom"
  6907. paged = no;
  6908. page_size = 4;
  6909. size = 512;
  6910. min_write_delay = 3600;
  6911. max_write_delay = 3600;
  6912. readback_p1 = 0xff;
  6913. readback_p2 = 0xff;
  6914. read = " 1 0 1 0 0 0 0 0",
  6915. " 0 0 0 x x x x a8",
  6916. " a7 a6 a5 a4 a3 a2 a1 a0",
  6917. " o o o o o o o o";
  6918. write = " 1 1 0 0 0 0 0 0",
  6919. " 0 0 0 x x x x a8",
  6920. " a7 a6 a5 a4 a3 a2 a1 a0",
  6921. " i i i i i i i i";
  6922. loadpage_lo = " 1 1 0 0 0 0 0 1",
  6923. " 0 0 0 0 0 0 0 0",
  6924. " 0 0 0 0 0 0 a1 a0",
  6925. " i i i i i i i i";
  6926. writepage = " 1 1 0 0 0 0 1 0",
  6927. " 0 0 x x x x x a8",
  6928. " a7 a6 a5 a4 a3 a2 0 0",
  6929. " x x x x x x x x";
  6930. mode = 0x41;
  6931. delay = 5;
  6932. blocksize = 4;
  6933. readsize = 256;
  6934. ;
  6935. memory "flash"
  6936. paged = yes;
  6937. size = 8192;
  6938. page_size = 64;
  6939. num_pages = 128;
  6940. min_write_delay = 4500;
  6941. max_write_delay = 4500;
  6942. readback_p1 = 0xff;
  6943. readback_p2 = 0xff;
  6944. read_lo = " 0 0 1 0 0 0 0 0",
  6945. " 0 0 0 0 a11 a10 a9 a8",
  6946. " a7 a6 a5 a4 a3 a2 a1 a0",
  6947. " o o o o o o o o";
  6948. read_hi = " 0 0 1 0 1 0 0 0",
  6949. " 0 0 0 0 a11 a10 a9 a8",
  6950. " a7 a6 a5 a4 a3 a2 a1 a0",
  6951. " o o o o o o o o";
  6952. loadpage_lo = " 0 1 0 0 0 0 0 0",
  6953. " 0 0 0 x x x x x",
  6954. " x x x a4 a3 a2 a1 a0",
  6955. " i i i i i i i i";
  6956. loadpage_hi = " 0 1 0 0 1 0 0 0",
  6957. " 0 0 0 x x x x x",
  6958. " x x x a4 a3 a2 a1 a0",
  6959. " i i i i i i i i";
  6960. writepage = " 0 1 0 0 1 1 0 0",
  6961. " 0 0 0 0 a11 a10 a9 a8",
  6962. " a7 a6 a5 x x x x x",
  6963. " x x x x x x x x";
  6964. mode = 0x41;
  6965. delay = 6;
  6966. blocksize = 64;
  6967. readsize = 256;
  6968. ;
  6969. memory "lfuse"
  6970. size = 1;
  6971. min_write_delay = 4500;
  6972. max_write_delay = 4500;
  6973. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  6974. "x x x x x x x x o o o o o o o o";
  6975. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  6976. "x x x x x x x x i i i i i i i i";
  6977. ;
  6978. memory "hfuse"
  6979. size = 1;
  6980. min_write_delay = 4500;
  6981. max_write_delay = 4500;
  6982. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  6983. "x x x x x x x x o o o o o o o o";
  6984. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  6985. "x x x x x x x x i i i i i i i i";
  6986. ;
  6987. memory "efuse"
  6988. size = 1;
  6989. min_write_delay = 4500;
  6990. max_write_delay = 4500;
  6991. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  6992. "x x x x x x x x x x x x x o o o";
  6993. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  6994. "x x x x x x x x x x x x x i i i";
  6995. ;
  6996. memory "lock"
  6997. size = 1;
  6998. min_write_delay = 4500;
  6999. max_write_delay = 4500;
  7000. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  7001. "x x x x x x x x x x o o o o o o";
  7002. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  7003. "x x x x x x x x 1 1 i i i i i i";
  7004. ;
  7005. memory "calibration"
  7006. size = 1;
  7007. read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
  7008. "0 0 0 0 0 0 0 0 o o o o o o o o";
  7009. ;
  7010. memory "signature"
  7011. size = 3;
  7012. read = "0 0 1 1 0 0 0 0 0 0 0 x x x x x",
  7013. "x x x x x x a1 a0 o o o o o o o o";
  7014. ;
  7015. ;
  7016. #------------------------------------------------------------
  7017. # ATmega168
  7018. #------------------------------------------------------------
  7019. part
  7020. id = "m168";
  7021. desc = "ATMEGA168";
  7022. has_debugwire = yes;
  7023. flash_instr = 0xB6, 0x01, 0x11;
  7024. eeprom_instr = 0xBD, 0xF2, 0xBD, 0xE1, 0xBB, 0xCF, 0xB4, 0x00,
  7025. 0xBE, 0x01, 0xB6, 0x01, 0xBC, 0x00, 0xBB, 0xBF,
  7026. 0x99, 0xF9, 0xBB, 0xAF;
  7027. stk500_devcode = 0x86;
  7028. # avr910_devcode = 0x;
  7029. signature = 0x1e 0x94 0x06;
  7030. pagel = 0xd7;
  7031. bs2 = 0xc2;
  7032. chip_erase_delay = 9000;
  7033. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  7034. "x x x x x x x x x x x x x x x x";
  7035. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
  7036. "x x x x x x x x x x x x x x x x";
  7037. timeout = 200;
  7038. stabdelay = 100;
  7039. cmdexedelay = 25;
  7040. synchloops = 32;
  7041. bytedelay = 0;
  7042. pollindex = 3;
  7043. pollvalue = 0x53;
  7044. predelay = 1;
  7045. postdelay = 1;
  7046. pollmethod = 1;
  7047. pp_controlstack =
  7048. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  7049. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  7050. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  7051. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  7052. hventerstabdelay = 100;
  7053. progmodedelay = 0;
  7054. latchcycles = 5;
  7055. togglevtg = 1;
  7056. poweroffdelay = 15;
  7057. resetdelayms = 1;
  7058. resetdelayus = 0;
  7059. hvleavestabdelay = 15;
  7060. resetdelay = 15;
  7061. chiperasepulsewidth = 0;
  7062. chiperasepolltimeout = 10;
  7063. programfusepulsewidth = 0;
  7064. programfusepolltimeout = 5;
  7065. programlockpulsewidth = 0;
  7066. programlockpolltimeout = 5;
  7067. memory "eeprom"
  7068. paged = no;
  7069. page_size = 4;
  7070. size = 512;
  7071. min_write_delay = 3600;
  7072. max_write_delay = 3600;
  7073. readback_p1 = 0xff;
  7074. readback_p2 = 0xff;
  7075. read = " 1 0 1 0 0 0 0 0",
  7076. " 0 0 0 x x x x a8",
  7077. " a7 a6 a5 a4 a3 a2 a1 a0",
  7078. " o o o o o o o o";
  7079. write = " 1 1 0 0 0 0 0 0",
  7080. " 0 0 0 x x x x a8",
  7081. " a7 a6 a5 a4 a3 a2 a1 a0",
  7082. " i i i i i i i i";
  7083. loadpage_lo = " 1 1 0 0 0 0 0 1",
  7084. " 0 0 0 0 0 0 0 0",
  7085. " 0 0 0 0 0 0 a1 a0",
  7086. " i i i i i i i i";
  7087. writepage = " 1 1 0 0 0 0 1 0",
  7088. " 0 0 x x x x x a8",
  7089. " a7 a6 a5 a4 a3 a2 0 0",
  7090. " x x x x x x x x";
  7091. mode = 0x41;
  7092. delay = 5;
  7093. blocksize = 4;
  7094. readsize = 256;
  7095. ;
  7096. memory "flash"
  7097. paged = yes;
  7098. size = 16384;
  7099. page_size = 128;
  7100. num_pages = 128;
  7101. min_write_delay = 4500;
  7102. max_write_delay = 4500;
  7103. readback_p1 = 0xff;
  7104. readback_p2 = 0xff;
  7105. read_lo = " 0 0 1 0 0 0 0 0",
  7106. " 0 0 0 a12 a11 a10 a9 a8",
  7107. " a7 a6 a5 a4 a3 a2 a1 a0",
  7108. " o o o o o o o o";
  7109. read_hi = " 0 0 1 0 1 0 0 0",
  7110. " 0 0 0 a12 a11 a10 a9 a8",
  7111. " a7 a6 a5 a4 a3 a2 a1 a0",
  7112. " o o o o o o o o";
  7113. loadpage_lo = " 0 1 0 0 0 0 0 0",
  7114. " 0 0 0 x x x x x",
  7115. " x x a5 a4 a3 a2 a1 a0",
  7116. " i i i i i i i i";
  7117. loadpage_hi = " 0 1 0 0 1 0 0 0",
  7118. " 0 0 0 x x x x x",
  7119. " x x a5 a4 a3 a2 a1 a0",
  7120. " i i i i i i i i";
  7121. writepage = " 0 1 0 0 1 1 0 0",
  7122. " 0 0 0 a12 a11 a10 a9 a8",
  7123. " a7 a6 x x x x x x",
  7124. " x x x x x x x x";
  7125. mode = 0x41;
  7126. delay = 6;
  7127. blocksize = 128;
  7128. readsize = 256;
  7129. ;
  7130. memory "lfuse"
  7131. size = 1;
  7132. min_write_delay = 4500;
  7133. max_write_delay = 4500;
  7134. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  7135. "x x x x x x x x o o o o o o o o";
  7136. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  7137. "x x x x x x x x i i i i i i i i";
  7138. ;
  7139. memory "hfuse"
  7140. size = 1;
  7141. min_write_delay = 4500;
  7142. max_write_delay = 4500;
  7143. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  7144. "x x x x x x x x o o o o o o o o";
  7145. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  7146. "x x x x x x x x i i i i i i i i";
  7147. ;
  7148. memory "efuse"
  7149. size = 1;
  7150. min_write_delay = 4500;
  7151. max_write_delay = 4500;
  7152. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  7153. "x x x x x x x x x x x x x o o o";
  7154. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  7155. "x x x x x x x x x x x x x i i i";
  7156. ;
  7157. memory "lock"
  7158. size = 1;
  7159. min_write_delay = 4500;
  7160. max_write_delay = 4500;
  7161. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  7162. "x x x x x x x x x x o o o o o o";
  7163. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  7164. "x x x x x x x x 1 1 i i i i i i";
  7165. ;
  7166. memory "calibration"
  7167. size = 1;
  7168. read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
  7169. "0 0 0 0 0 0 0 0 o o o o o o o o";
  7170. ;
  7171. memory "signature"
  7172. size = 3;
  7173. read = "0 0 1 1 0 0 0 0 0 0 0 x x x x x",
  7174. "x x x x x x a1 a0 o o o o o o o o";
  7175. ;
  7176. ;
  7177. #------------------------------------------------------------
  7178. # ATtiny88
  7179. #------------------------------------------------------------
  7180. part
  7181. id = "t88";
  7182. desc = "attiny88";
  7183. has_debugwire = yes;
  7184. flash_instr = 0xB6, 0x01, 0x11;
  7185. eeprom_instr = 0xBD, 0xF2, 0xBD, 0xE1, 0xBB, 0xCF, 0xB4, 0x00,
  7186. 0xBE, 0x01, 0xB6, 0x01, 0xBC, 0x00, 0xBB, 0xBF,
  7187. 0x99, 0xF9, 0xBB, 0xAF;
  7188. stk500_devcode = 0x73;
  7189. # avr910_devcode = 0x;
  7190. signature = 0x1e 0x93 0x11;
  7191. pagel = 0xd7;
  7192. bs2 = 0xc2;
  7193. chip_erase_delay = 9000;
  7194. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  7195. "x x x x x x x x x x x x x x x x";
  7196. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
  7197. "x x x x x x x x x x x x x x x x";
  7198. timeout = 200;
  7199. stabdelay = 100;
  7200. cmdexedelay = 25;
  7201. synchloops = 32;
  7202. bytedelay = 0;
  7203. pollindex = 3;
  7204. pollvalue = 0x53;
  7205. predelay = 1;
  7206. postdelay = 1;
  7207. pollmethod = 1;
  7208. pp_controlstack =
  7209. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  7210. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  7211. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  7212. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  7213. hventerstabdelay = 100;
  7214. progmodedelay = 0;
  7215. latchcycles = 5;
  7216. togglevtg = 1;
  7217. poweroffdelay = 15;
  7218. resetdelayms = 1;
  7219. resetdelayus = 0;
  7220. hvleavestabdelay = 15;
  7221. resetdelay = 15;
  7222. chiperasepulsewidth = 0;
  7223. chiperasepolltimeout = 10;
  7224. programfusepulsewidth = 0;
  7225. programfusepolltimeout = 5;
  7226. programlockpulsewidth = 0;
  7227. programlockpolltimeout = 5;
  7228. memory "eeprom"
  7229. paged = no;
  7230. page_size = 4;
  7231. size = 64;
  7232. min_write_delay = 3600;
  7233. max_write_delay = 3600;
  7234. readback_p1 = 0xff;
  7235. readback_p2 = 0xff;
  7236. read = " 1 0 1 0 0 0 0 0",
  7237. " 0 0 0 x x x x x",
  7238. " x a6 a5 a4 a3 a2 a1 a0",
  7239. " o o o o o o o o";
  7240. write = " 1 1 0 0 0 0 0 0",
  7241. " 0 0 0 x x x x x",
  7242. " x a6 a5 a4 a3 a2 a1 a0",
  7243. " i i i i i i i i";
  7244. loadpage_lo = " 1 1 0 0 0 0 0 1",
  7245. " 0 0 0 0 0 0 0 0",
  7246. " 0 0 0 0 0 0 a1 a0",
  7247. " i i i i i i i i";
  7248. writepage = " 1 1 0 0 0 0 1 0",
  7249. " 0 0 x x x x x x",
  7250. " x a6 a5 a4 a3 a2 0 0",
  7251. " x x x x x x x x";
  7252. mode = 0x41;
  7253. delay = 5;
  7254. blocksize = 4;
  7255. readsize = 64;
  7256. ;
  7257. memory "flash"
  7258. paged = yes;
  7259. size = 8192;
  7260. page_size = 64;
  7261. num_pages = 128;
  7262. min_write_delay = 4500;
  7263. max_write_delay = 4500;
  7264. readback_p1 = 0xff;
  7265. readback_p2 = 0xff;
  7266. read_lo = " 0 0 1 0 0 0 0 0",
  7267. " 0 0 0 0 a11 a10 a9 a8",
  7268. " a7 a6 a5 a4 a3 a2 a1 a0",
  7269. " o o o o o o o o";
  7270. read_hi = " 0 0 1 0 1 0 0 0",
  7271. " 0 0 0 0 a11 a10 a9 a8",
  7272. " a7 a6 a5 a4 a3 a2 a1 a0",
  7273. " o o o o o o o o";
  7274. loadpage_lo = " 0 1 0 0 0 0 0 0",
  7275. " 0 0 0 x x x x x",
  7276. " x x x a4 a3 a2 a1 a0",
  7277. " i i i i i i i i";
  7278. loadpage_hi = " 0 1 0 0 1 0 0 0",
  7279. " 0 0 0 x x x x x",
  7280. " x x x a4 a3 a2 a1 a0",
  7281. " i i i i i i i i";
  7282. writepage = " 0 1 0 0 1 1 0 0",
  7283. " 0 0 0 0 a11 a10 a9 a8",
  7284. " a7 a6 a5 x x x x x",
  7285. " x x x x x x x x";
  7286. mode = 0x41;
  7287. delay = 6;
  7288. blocksize = 64;
  7289. readsize = 256;
  7290. ;
  7291. memory "lfuse"
  7292. size = 1;
  7293. min_write_delay = 4500;
  7294. max_write_delay = 4500;
  7295. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  7296. "x x x x x x x x o o o o o o o o";
  7297. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  7298. "x x x x x x x x i i i i i i i i";
  7299. ;
  7300. memory "hfuse"
  7301. size = 1;
  7302. min_write_delay = 4500;
  7303. max_write_delay = 4500;
  7304. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  7305. "x x x x x x x x o o o o o o o o";
  7306. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  7307. "x x x x x x x x i i i i i i i i";
  7308. ;
  7309. memory "efuse"
  7310. size = 1;
  7311. min_write_delay = 4500;
  7312. max_write_delay = 4500;
  7313. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  7314. "x x x x x x x x x x x x x o o o";
  7315. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  7316. "x x x x x x x x x x x x x x x i";
  7317. ;
  7318. memory "lock"
  7319. size = 1;
  7320. min_write_delay = 4500;
  7321. max_write_delay = 4500;
  7322. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  7323. "x x x x x x x x x x o o o o o o";
  7324. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  7325. "x x x x x x x x 1 1 i i i i i i";
  7326. ;
  7327. memory "calibration"
  7328. size = 1;
  7329. read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
  7330. "0 0 0 0 0 0 0 0 o o o o o o o o";
  7331. ;
  7332. memory "signature"
  7333. size = 3;
  7334. read = "0 0 1 1 0 0 0 0 0 0 0 x x x x x",
  7335. "x x x x x x a1 a0 o o o o o o o o";
  7336. ;
  7337. ;
  7338. #------------------------------------------------------------
  7339. # ATmega328P
  7340. #------------------------------------------------------------
  7341. part
  7342. id = "m328p";
  7343. desc = "ATMEGA328P";
  7344. has_debugwire = yes;
  7345. flash_instr = 0xB6, 0x01, 0x11;
  7346. eeprom_instr = 0xBD, 0xF2, 0xBD, 0xE1, 0xBB, 0xCF, 0xB4, 0x00,
  7347. 0xBE, 0x01, 0xB6, 0x01, 0xBC, 0x00, 0xBB, 0xBF,
  7348. 0x99, 0xF9, 0xBB, 0xAF;
  7349. stk500_devcode = 0x86;
  7350. # avr910_devcode = 0x;
  7351. signature = 0x1e 0x95 0x0F;
  7352. pagel = 0xd7;
  7353. bs2 = 0xc2;
  7354. chip_erase_delay = 9000;
  7355. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  7356. "x x x x x x x x x x x x x x x x";
  7357. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
  7358. "x x x x x x x x x x x x x x x x";
  7359. timeout = 200;
  7360. stabdelay = 100;
  7361. cmdexedelay = 25;
  7362. synchloops = 32;
  7363. bytedelay = 0;
  7364. pollindex = 3;
  7365. pollvalue = 0x53;
  7366. predelay = 1;
  7367. postdelay = 1;
  7368. pollmethod = 1;
  7369. pp_controlstack =
  7370. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  7371. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  7372. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  7373. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  7374. hventerstabdelay = 100;
  7375. progmodedelay = 0;
  7376. latchcycles = 5;
  7377. togglevtg = 1;
  7378. poweroffdelay = 15;
  7379. resetdelayms = 1;
  7380. resetdelayus = 0;
  7381. hvleavestabdelay = 15;
  7382. resetdelay = 15;
  7383. chiperasepulsewidth = 0;
  7384. chiperasepolltimeout = 10;
  7385. programfusepulsewidth = 0;
  7386. programfusepolltimeout = 5;
  7387. programlockpulsewidth = 0;
  7388. programlockpolltimeout = 5;
  7389. memory "eeprom"
  7390. paged = no;
  7391. page_size = 4;
  7392. size = 1024;
  7393. min_write_delay = 3600;
  7394. max_write_delay = 3600;
  7395. readback_p1 = 0xff;
  7396. readback_p2 = 0xff;
  7397. read = " 1 0 1 0 0 0 0 0",
  7398. " 0 0 0 x x x a9 a8",
  7399. " a7 a6 a5 a4 a3 a2 a1 a0",
  7400. " o o o o o o o o";
  7401. write = " 1 1 0 0 0 0 0 0",
  7402. " 0 0 0 x x x a9 a8",
  7403. " a7 a6 a5 a4 a3 a2 a1 a0",
  7404. " i i i i i i i i";
  7405. loadpage_lo = " 1 1 0 0 0 0 0 1",
  7406. " 0 0 0 0 0 0 0 0",
  7407. " 0 0 0 0 0 0 a1 a0",
  7408. " i i i i i i i i";
  7409. writepage = " 1 1 0 0 0 0 1 0",
  7410. " 0 0 x x x x a9 a8",
  7411. " a7 a6 a5 a4 a3 a2 0 0",
  7412. " x x x x x x x x";
  7413. mode = 0x41;
  7414. delay = 5;
  7415. blocksize = 4;
  7416. readsize = 256;
  7417. ;
  7418. memory "flash"
  7419. paged = yes;
  7420. size = 32768;
  7421. page_size = 128;
  7422. num_pages = 256;
  7423. min_write_delay = 4500;
  7424. max_write_delay = 4500;
  7425. readback_p1 = 0xff;
  7426. readback_p2 = 0xff;
  7427. read_lo = " 0 0 1 0 0 0 0 0",
  7428. " 0 0 a13 a12 a11 a10 a9 a8",
  7429. " a7 a6 a5 a4 a3 a2 a1 a0",
  7430. " o o o o o o o o";
  7431. read_hi = " 0 0 1 0 1 0 0 0",
  7432. " 0 0 a13 a12 a11 a10 a9 a8",
  7433. " a7 a6 a5 a4 a3 a2 a1 a0",
  7434. " o o o o o o o o";
  7435. loadpage_lo = " 0 1 0 0 0 0 0 0",
  7436. " 0 0 0 x x x x x",
  7437. " x x a5 a4 a3 a2 a1 a0",
  7438. " i i i i i i i i";
  7439. loadpage_hi = " 0 1 0 0 1 0 0 0",
  7440. " 0 0 0 x x x x x",
  7441. " x x a5 a4 a3 a2 a1 a0",
  7442. " i i i i i i i i";
  7443. writepage = " 0 1 0 0 1 1 0 0",
  7444. " 0 0 a13 a12 a11 a10 a9 a8",
  7445. " a7 a6 x x x x x x",
  7446. " x x x x x x x x";
  7447. mode = 0x41;
  7448. delay = 6;
  7449. blocksize = 128;
  7450. readsize = 256;
  7451. ;
  7452. memory "lfuse"
  7453. size = 1;
  7454. min_write_delay = 4500;
  7455. max_write_delay = 4500;
  7456. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  7457. "x x x x x x x x o o o o o o o o";
  7458. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  7459. "x x x x x x x x i i i i i i i i";
  7460. ;
  7461. memory "hfuse"
  7462. size = 1;
  7463. min_write_delay = 4500;
  7464. max_write_delay = 4500;
  7465. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  7466. "x x x x x x x x o o o o o o o o";
  7467. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  7468. "x x x x x x x x i i i i i i i i";
  7469. ;
  7470. memory "efuse"
  7471. size = 1;
  7472. min_write_delay = 4500;
  7473. max_write_delay = 4500;
  7474. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  7475. "x x x x x x x x x x x x x o o o";
  7476. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  7477. "x x x x x x x x x x x x x i i i";
  7478. ;
  7479. memory "lock"
  7480. size = 1;
  7481. min_write_delay = 4500;
  7482. max_write_delay = 4500;
  7483. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  7484. "x x x x x x x x x x o o o o o o";
  7485. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  7486. "x x x x x x x x 1 1 i i i i i i";
  7487. ;
  7488. memory "calibration"
  7489. size = 1;
  7490. read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
  7491. "0 0 0 0 0 0 0 0 o o o o o o o o";
  7492. ;
  7493. memory "signature"
  7494. size = 3;
  7495. read = "0 0 1 1 0 0 0 0 0 0 0 x x x x x",
  7496. "x x x x x x a1 a0 o o o o o o o o";
  7497. ;
  7498. ;
  7499. #------------------------------------------------------------
  7500. # ATtiny2313
  7501. #------------------------------------------------------------
  7502. part
  7503. id = "t2313";
  7504. desc = "ATtiny2313";
  7505. has_debugwire = yes;
  7506. flash_instr = 0xB2, 0x0F, 0x1F;
  7507. eeprom_instr = 0xBB, 0xFE, 0xBB, 0xEE, 0xBB, 0xCC, 0xB2, 0x0D,
  7508. 0xBA, 0x0F, 0xB2, 0x0F, 0xBA, 0x0D, 0xBB, 0xBC,
  7509. 0x99, 0xE1, 0xBB, 0xAC;
  7510. stk500_devcode = 0x23;
  7511. ## Use the ATtiny26 devcode:
  7512. avr910_devcode = 0x5e;
  7513. signature = 0x1e 0x91 0x0a;
  7514. pagel = 0xD4;
  7515. bs2 = 0xD6;
  7516. reset = io;
  7517. chip_erase_delay = 9000;
  7518. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  7519. "x x x x x x x x x x x x x x x x";
  7520. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
  7521. "x x x x x x x x x x x x x x x x";
  7522. timeout = 200;
  7523. stabdelay = 100;
  7524. cmdexedelay = 25;
  7525. synchloops = 32;
  7526. bytedelay = 0;
  7527. pollindex = 3;
  7528. pollvalue = 0x53;
  7529. predelay = 1;
  7530. postdelay = 1;
  7531. pollmethod = 1;
  7532. pp_controlstack =
  7533. 0x0E, 0x1E, 0x0E, 0x1E, 0x2E, 0x3E, 0x2E, 0x3E,
  7534. 0x4E, 0x5E, 0x4E, 0x5E, 0x6E, 0x7E, 0x6E, 0x7E,
  7535. 0x26, 0x36, 0x66, 0x76, 0x2A, 0x3A, 0x6A, 0x7A,
  7536. 0x2E, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  7537. hventerstabdelay = 100;
  7538. progmodedelay = 0;
  7539. latchcycles = 5;
  7540. togglevtg = 1;
  7541. poweroffdelay = 15;
  7542. resetdelayms = 1;
  7543. resetdelayus = 0;
  7544. hvleavestabdelay = 15;
  7545. chiperasepulsewidth = 0;
  7546. chiperasepolltimeout = 10;
  7547. programfusepulsewidth = 0;
  7548. programfusepolltimeout = 5;
  7549. programlockpulsewidth = 0;
  7550. programlockpolltimeout = 5;
  7551. memory "eeprom"
  7552. size = 128;
  7553. paged = no;
  7554. page_size = 4;
  7555. min_write_delay = 4000;
  7556. max_write_delay = 4500;
  7557. readback_p1 = 0xff;
  7558. readback_p2 = 0xff;
  7559. read = "1 0 1 0 0 0 0 0 0 0 0 x x x x x",
  7560. "x a6 a5 a4 a3 a2 a1 a0 o o o o o o o o";
  7561. write = "1 1 0 0 0 0 0 0 0 0 0 x x x x x",
  7562. "x a6 a5 a4 a3 a2 a1 a0 i i i i i i i i";
  7563. loadpage_lo = " 1 1 0 0 0 0 0 1",
  7564. " 0 0 0 0 0 0 0 0",
  7565. " 0 0 0 0 0 0 a1 a0",
  7566. " i i i i i i i i";
  7567. writepage = " 1 1 0 0 0 0 1 0",
  7568. " 0 0 x x x x x x",
  7569. " x a6 a5 a4 a3 a2 0 0",
  7570. " x x x x x x x x";
  7571. mode = 0x41;
  7572. delay = 6;
  7573. blocksize = 4;
  7574. readsize = 256;
  7575. ;
  7576. memory "flash"
  7577. paged = yes;
  7578. size = 2048;
  7579. page_size = 32;
  7580. num_pages = 64;
  7581. min_write_delay = 4500;
  7582. max_write_delay = 4500;
  7583. readback_p1 = 0xff;
  7584. readback_p2 = 0xff;
  7585. read_lo = " 0 0 1 0 0 0 0 0",
  7586. " 0 0 0 0 0 0 a9 a8",
  7587. " a7 a6 a5 a4 a3 a2 a1 a0",
  7588. " o o o o o o o o";
  7589. read_hi = " 0 0 1 0 1 0 0 0",
  7590. " 0 0 0 0 0 0 a9 a8",
  7591. " a7 a6 a5 a4 a3 a2 a1 a0",
  7592. " o o o o o o o o";
  7593. # The information in the data sheet of April/2004 is wrong, this works:
  7594. loadpage_lo = " 0 1 0 0 0 0 0 0",
  7595. " 0 0 0 x x x x x",
  7596. " x x x x a3 a2 a1 a0",
  7597. " i i i i i i i i";
  7598. # The information in the data sheet of April/2004 is wrong, this works:
  7599. loadpage_hi = " 0 1 0 0 1 0 0 0",
  7600. " 0 0 0 x x x x x",
  7601. " x x x x a3 a2 a1 a0",
  7602. " i i i i i i i i";
  7603. # The information in the data sheet of April/2004 is wrong, this works:
  7604. writepage = " 0 1 0 0 1 1 0 0",
  7605. " 0 0 0 0 0 0 a9 a8",
  7606. " a7 a6 a5 a4 x x x x",
  7607. " x x x x x x x x";
  7608. mode = 0x41;
  7609. delay = 6;
  7610. blocksize = 32;
  7611. readsize = 256;
  7612. ;
  7613. # ATtiny2313 has Signature Bytes: 0x1E 0x91 0x0A.
  7614. memory "signature"
  7615. size = 3;
  7616. read = "0 0 1 1 0 0 0 0 0 0 0 x x x x x",
  7617. "x x x x x x a1 a0 o o o o o o o o";
  7618. ;
  7619. memory "lock"
  7620. size = 1;
  7621. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  7622. "x x x x x x x x 1 1 i i i i i i";
  7623. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  7624. "x x x x x x x x x x o o o o o o";
  7625. min_write_delay = 9000;
  7626. max_write_delay = 9000;
  7627. ;
  7628. memory "lfuse"
  7629. size = 1;
  7630. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  7631. "x x x x x x x x i i i i i i i i";
  7632. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  7633. "x x x x x x x x o o o o o o o o";
  7634. min_write_delay = 9000;
  7635. max_write_delay = 9000;
  7636. ;
  7637. memory "hfuse"
  7638. size = 1;
  7639. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  7640. "x x x x x x x x i i i i i i i i";
  7641. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  7642. "x x x x x x x x o o o o o o o o";
  7643. min_write_delay = 9000;
  7644. max_write_delay = 9000;
  7645. ;
  7646. memory "efuse"
  7647. size = 1;
  7648. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  7649. "x x x x x x x x x x x x x x x i";
  7650. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  7651. "x x x x x x x x o o o o o o o o";
  7652. min_write_delay = 9000;
  7653. max_write_delay = 9000;
  7654. ;
  7655. # The Tiny2313 has calibration data for both 4 MHz and 8 MHz.
  7656. # The information in the data sheet of April/2004 is wrong, this works:
  7657. memory "calibration"
  7658. size = 2;
  7659. read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
  7660. "0 0 0 0 0 0 0 a0 o o o o o o o o";
  7661. ;
  7662. ;
  7663. #------------------------------------------------------------
  7664. # AT90PWM2
  7665. #------------------------------------------------------------
  7666. part
  7667. id = "pwm2";
  7668. desc = "AT90PWM2";
  7669. has_debugwire = yes;
  7670. flash_instr = 0xB6, 0x01, 0x11;
  7671. eeprom_instr = 0xBD, 0xF2, 0xBD, 0xE1, 0xBB, 0xCF, 0xB4, 0x00,
  7672. 0xBE, 0x01, 0xB6, 0x01, 0xBC, 0x00, 0xBB, 0xBF,
  7673. 0x99, 0xF9, 0xBB, 0xAF;
  7674. stk500_devcode = 0x65;
  7675. ## avr910_devcode = ?;
  7676. signature = 0x1e 0x93 0x81;
  7677. pagel = 0xD8;
  7678. bs2 = 0xE2;
  7679. reset = io;
  7680. chip_erase_delay = 9000;
  7681. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  7682. "x x x x x x x x x x x x x x x x";
  7683. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
  7684. "x x x x x x x x x x x x x x x x";
  7685. timeout = 200;
  7686. stabdelay = 100;
  7687. cmdexedelay = 25;
  7688. synchloops = 32;
  7689. bytedelay = 0;
  7690. pollindex = 3;
  7691. pollvalue = 0x53;
  7692. predelay = 1;
  7693. postdelay = 1;
  7694. pollmethod = 1;
  7695. pp_controlstack =
  7696. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  7697. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  7698. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  7699. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  7700. hventerstabdelay = 100;
  7701. progmodedelay = 0;
  7702. latchcycles = 5;
  7703. togglevtg = 1;
  7704. poweroffdelay = 15;
  7705. resetdelayms = 1;
  7706. resetdelayus = 0;
  7707. hvleavestabdelay = 15;
  7708. chiperasepulsewidth = 0;
  7709. chiperasepolltimeout = 10;
  7710. programfusepulsewidth = 0;
  7711. programfusepolltimeout = 5;
  7712. programlockpulsewidth = 0;
  7713. programlockpolltimeout = 5;
  7714. memory "eeprom"
  7715. size = 512;
  7716. paged = no;
  7717. page_size = 4;
  7718. min_write_delay = 4000;
  7719. max_write_delay = 4500;
  7720. readback_p1 = 0xff;
  7721. readback_p2 = 0xff;
  7722. read = "1 0 1 0 0 0 0 0 0 0 0 x x x x a8",
  7723. "a7 a6 a5 a4 a3 a2 a1 a0 o o o o o o o o";
  7724. write = "1 1 0 0 0 0 0 0 0 0 0 x x x x a8",
  7725. "a7 a6 a5 a4 a3 a2 a1 a0 i i i i i i i i";
  7726. loadpage_lo = " 1 1 0 0 0 0 0 1",
  7727. " 0 0 0 0 0 0 0 0",
  7728. " 0 0 0 0 0 0 a1 a0",
  7729. " i i i i i i i i";
  7730. writepage = " 1 1 0 0 0 0 1 0",
  7731. " 0 0 x x x x x x",
  7732. " a7 a6 a5 a4 a3 a2 0 0",
  7733. " x x x x x x x x";
  7734. mode = 0x41;
  7735. delay = 6;
  7736. blocksize = 4;
  7737. readsize = 256;
  7738. ;
  7739. memory "flash"
  7740. paged = yes;
  7741. size = 8192;
  7742. page_size = 64;
  7743. num_pages = 128;
  7744. min_write_delay = 4500;
  7745. max_write_delay = 4500;
  7746. readback_p1 = 0xff;
  7747. readback_p2 = 0xff;
  7748. read_lo = " 0 0 1 0 0 0 0 0",
  7749. " 0 0 0 0 a11 a10 a9 a8",
  7750. " a7 a6 a5 a4 a3 a2 a1 a0",
  7751. " o o o o o o o o";
  7752. read_hi = " 0 0 1 0 1 0 0 0",
  7753. " 0 0 0 0 a11 a10 a9 a8",
  7754. " a7 a6 a5 a4 a3 a2 a1 a0",
  7755. " o o o o o o o o";
  7756. loadpage_lo = " 0 1 0 0 0 0 0 0",
  7757. " 0 0 0 x x x x x",
  7758. " x x x a4 a3 a2 a1 a0",
  7759. " i i i i i i i i";
  7760. loadpage_hi = " 0 1 0 0 1 0 0 0",
  7761. " 0 0 0 x x x x x",
  7762. " x x x a4 a3 a2 a1 a0",
  7763. " i i i i i i i i";
  7764. writepage = " 0 1 0 0 1 1 0 0",
  7765. " 0 0 0 0 a11 a10 a9 a8",
  7766. " a7 a6 a5 x x x x x",
  7767. " x x x x x x x x";
  7768. mode = 0x41;
  7769. delay = 6;
  7770. blocksize = 64;
  7771. readsize = 256;
  7772. ;
  7773. # AT90PWM2 has Signature Bytes: 0x1E 0x93 0x81.
  7774. memory "signature"
  7775. size = 3;
  7776. read = "0 0 1 1 0 0 0 0 0 0 x x x x x x",
  7777. "x x x x x x a1 a0 o o o o o o o o";
  7778. ;
  7779. memory "lock"
  7780. size = 1;
  7781. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  7782. "x x x x x x x x 1 1 i i i i i i";
  7783. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  7784. "x x x x x x x x x x o o o o o o";
  7785. min_write_delay = 9000;
  7786. max_write_delay = 9000;
  7787. ;
  7788. memory "lfuse"
  7789. size = 1;
  7790. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  7791. "x x x x x x x x i i i i i i i i";
  7792. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  7793. "x x x x x x x x o o o o o o o o";
  7794. min_write_delay = 9000;
  7795. max_write_delay = 9000;
  7796. ;
  7797. memory "hfuse"
  7798. size = 1;
  7799. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  7800. "x x x x x x x x i i i i i i i i";
  7801. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  7802. "x x x x x x x x o o o o o o o o";
  7803. min_write_delay = 9000;
  7804. max_write_delay = 9000;
  7805. ;
  7806. memory "efuse"
  7807. size = 1;
  7808. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  7809. "x x x x x x x x x x x x x x x i";
  7810. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  7811. "x x x x x x x x o o o o o o o o";
  7812. min_write_delay = 9000;
  7813. max_write_delay = 9000;
  7814. ;
  7815. memory "calibration"
  7816. size = 1;
  7817. read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
  7818. "0 0 0 0 0 0 0 0 o o o o o o o o";
  7819. ;
  7820. ;
  7821. #------------------------------------------------------------
  7822. # AT90PWM3
  7823. #------------------------------------------------------------
  7824. # Completely identical to AT90PWM2 (including the signature!)
  7825. part
  7826. id = "pwm3";
  7827. desc = "AT90PWM3";
  7828. has_debugwire = yes;
  7829. flash_instr = 0xB6, 0x01, 0x11;
  7830. eeprom_instr = 0xBD, 0xF2, 0xBD, 0xE1, 0xBB, 0xCF, 0xB4, 0x00,
  7831. 0xBE, 0x01, 0xB6, 0x01, 0xBC, 0x00, 0xBB, 0xBF,
  7832. 0x99, 0xF9, 0xBB, 0xAF;
  7833. stk500_devcode = 0x65;
  7834. ## avr910_devcode = ?;
  7835. signature = 0x1e 0x93 0x81;
  7836. pagel = 0xD8;
  7837. bs2 = 0xE2;
  7838. reset = io;
  7839. chip_erase_delay = 9000;
  7840. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  7841. "x x x x x x x x x x x x x x x x";
  7842. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
  7843. "x x x x x x x x x x x x x x x x";
  7844. timeout = 200;
  7845. stabdelay = 100;
  7846. cmdexedelay = 25;
  7847. synchloops = 32;
  7848. bytedelay = 0;
  7849. pollindex = 3;
  7850. pollvalue = 0x53;
  7851. predelay = 1;
  7852. postdelay = 1;
  7853. pollmethod = 1;
  7854. pp_controlstack =
  7855. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  7856. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  7857. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  7858. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  7859. hventerstabdelay = 100;
  7860. progmodedelay = 0;
  7861. latchcycles = 5;
  7862. togglevtg = 1;
  7863. poweroffdelay = 15;
  7864. resetdelayms = 1;
  7865. resetdelayus = 0;
  7866. hvleavestabdelay = 15;
  7867. chiperasepulsewidth = 0;
  7868. chiperasepolltimeout = 10;
  7869. programfusepulsewidth = 0;
  7870. programfusepolltimeout = 5;
  7871. programlockpulsewidth = 0;
  7872. programlockpolltimeout = 5;
  7873. memory "eeprom"
  7874. size = 512;
  7875. paged = no;
  7876. page_size = 4;
  7877. min_write_delay = 4000;
  7878. max_write_delay = 4500;
  7879. readback_p1 = 0xff;
  7880. readback_p2 = 0xff;
  7881. read = "1 0 1 0 0 0 0 0 0 0 0 x x x x a8",
  7882. "a7 a6 a5 a4 a3 a2 a1 a0 o o o o o o o o";
  7883. write = "1 1 0 0 0 0 0 0 0 0 0 x x x x a8",
  7884. "a7 a6 a5 a4 a3 a2 a1 a0 i i i i i i i i";
  7885. loadpage_lo = " 1 1 0 0 0 0 0 1",
  7886. " 0 0 0 0 0 0 0 0",
  7887. " 0 0 0 0 0 0 a1 a0",
  7888. " i i i i i i i i";
  7889. writepage = " 1 1 0 0 0 0 1 0",
  7890. " 0 0 x x x x x x",
  7891. " a7 a6 a5 a4 a3 a2 0 0",
  7892. " x x x x x x x x";
  7893. mode = 0x41;
  7894. delay = 6;
  7895. blocksize = 4;
  7896. readsize = 256;
  7897. ;
  7898. memory "flash"
  7899. paged = yes;
  7900. size = 8192;
  7901. page_size = 64;
  7902. num_pages = 128;
  7903. min_write_delay = 4500;
  7904. max_write_delay = 4500;
  7905. readback_p1 = 0xff;
  7906. readback_p2 = 0xff;
  7907. read_lo = " 0 0 1 0 0 0 0 0",
  7908. " 0 0 0 0 a11 a10 a9 a8",
  7909. " a7 a6 a5 a4 a3 a2 a1 a0",
  7910. " o o o o o o o o";
  7911. read_hi = " 0 0 1 0 1 0 0 0",
  7912. " 0 0 0 0 a11 a10 a9 a8",
  7913. " a7 a6 a5 a4 a3 a2 a1 a0",
  7914. " o o o o o o o o";
  7915. loadpage_lo = " 0 1 0 0 0 0 0 0",
  7916. " 0 0 0 x x x x x",
  7917. " x x x a4 a3 a2 a1 a0",
  7918. " i i i i i i i i";
  7919. loadpage_hi = " 0 1 0 0 1 0 0 0",
  7920. " 0 0 0 x x x x x",
  7921. " x x x a4 a3 a2 a1 a0",
  7922. " i i i i i i i i";
  7923. writepage = " 0 1 0 0 1 1 0 0",
  7924. " 0 0 0 0 a11 a10 a9 a8",
  7925. " a7 a6 a5 x x x x x",
  7926. " x x x x x x x x";
  7927. mode = 0x41;
  7928. delay = 6;
  7929. blocksize = 64;
  7930. readsize = 256;
  7931. ;
  7932. # AT90PWM2 has Signature Bytes: 0x1E 0x93 0x81.
  7933. memory "signature"
  7934. size = 3;
  7935. read = "0 0 1 1 0 0 0 0 0 0 x x x x x x",
  7936. "x x x x x x a1 a0 o o o o o o o o";
  7937. ;
  7938. memory "lock"
  7939. size = 1;
  7940. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  7941. "x x x x x x x x 1 1 i i i i i i";
  7942. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  7943. "x x x x x x x x x x o o o o o o";
  7944. min_write_delay = 9000;
  7945. max_write_delay = 9000;
  7946. ;
  7947. memory "lfuse"
  7948. size = 1;
  7949. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  7950. "x x x x x x x x i i i i i i i i";
  7951. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  7952. "x x x x x x x x o o o o o o o o";
  7953. min_write_delay = 9000;
  7954. max_write_delay = 9000;
  7955. ;
  7956. memory "hfuse"
  7957. size = 1;
  7958. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  7959. "x x x x x x x x i i i i i i i i";
  7960. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  7961. "x x x x x x x x o o o o o o o o";
  7962. min_write_delay = 9000;
  7963. max_write_delay = 9000;
  7964. ;
  7965. memory "efuse"
  7966. size = 1;
  7967. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  7968. "x x x x x x x x x x x x x x x i";
  7969. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  7970. "x x x x x x x x o o o o o o o o";
  7971. min_write_delay = 9000;
  7972. max_write_delay = 9000;
  7973. ;
  7974. memory "calibration"
  7975. size = 1;
  7976. read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
  7977. "0 0 0 0 0 0 0 0 o o o o o o o o";
  7978. ;
  7979. ;
  7980. #------------------------------------------------------------
  7981. # AT90PWM2B
  7982. #------------------------------------------------------------
  7983. # Same as AT90PWM2 but different signature.
  7984. part
  7985. id = "pwm2b";
  7986. desc = "AT90PWM2B";
  7987. has_debugwire = yes;
  7988. flash_instr = 0xB6, 0x01, 0x11;
  7989. eeprom_instr = 0xBD, 0xF2, 0xBD, 0xE1, 0xBB, 0xCF, 0xB4, 0x00,
  7990. 0xBE, 0x01, 0xB6, 0x01, 0xBC, 0x00, 0xBB, 0xBF,
  7991. 0x99, 0xF9, 0xBB, 0xAF;
  7992. stk500_devcode = 0x65;
  7993. ## avr910_devcode = ?;
  7994. signature = 0x1e 0x93 0x83;
  7995. pagel = 0xD8;
  7996. bs2 = 0xE2;
  7997. reset = io;
  7998. chip_erase_delay = 9000;
  7999. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  8000. "x x x x x x x x x x x x x x x x";
  8001. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
  8002. "x x x x x x x x x x x x x x x x";
  8003. timeout = 200;
  8004. stabdelay = 100;
  8005. cmdexedelay = 25;
  8006. synchloops = 32;
  8007. bytedelay = 0;
  8008. pollindex = 3;
  8009. pollvalue = 0x53;
  8010. predelay = 1;
  8011. postdelay = 1;
  8012. pollmethod = 1;
  8013. pp_controlstack =
  8014. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  8015. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  8016. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  8017. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  8018. hventerstabdelay = 100;
  8019. progmodedelay = 0;
  8020. latchcycles = 5;
  8021. togglevtg = 1;
  8022. poweroffdelay = 15;
  8023. resetdelayms = 1;
  8024. resetdelayus = 0;
  8025. hvleavestabdelay = 15;
  8026. chiperasepulsewidth = 0;
  8027. chiperasepolltimeout = 10;
  8028. programfusepulsewidth = 0;
  8029. programfusepolltimeout = 5;
  8030. programlockpulsewidth = 0;
  8031. programlockpolltimeout = 5;
  8032. memory "eeprom"
  8033. size = 512;
  8034. paged = no;
  8035. page_size = 4;
  8036. min_write_delay = 4000;
  8037. max_write_delay = 4500;
  8038. readback_p1 = 0xff;
  8039. readback_p2 = 0xff;
  8040. read = "1 0 1 0 0 0 0 0 0 0 0 x x x x a8",
  8041. "a7 a6 a5 a4 a3 a2 a1 a0 o o o o o o o o";
  8042. write = "1 1 0 0 0 0 0 0 0 0 0 x x x x a8",
  8043. "a7 a6 a5 a4 a3 a2 a1 a0 i i i i i i i i";
  8044. loadpage_lo = " 1 1 0 0 0 0 0 1",
  8045. " 0 0 0 0 0 0 0 0",
  8046. " 0 0 0 0 0 0 a1 a0",
  8047. " i i i i i i i i";
  8048. writepage = " 1 1 0 0 0 0 1 0",
  8049. " 0 0 x x x x x x",
  8050. " a7 a6 a5 a4 a3 a2 0 0",
  8051. " x x x x x x x x";
  8052. mode = 0x41;
  8053. delay = 6;
  8054. blocksize = 4;
  8055. readsize = 256;
  8056. ;
  8057. memory "flash"
  8058. paged = yes;
  8059. size = 8192;
  8060. page_size = 64;
  8061. num_pages = 128;
  8062. min_write_delay = 4500;
  8063. max_write_delay = 4500;
  8064. readback_p1 = 0xff;
  8065. readback_p2 = 0xff;
  8066. read_lo = " 0 0 1 0 0 0 0 0",
  8067. " 0 0 0 0 a11 a10 a9 a8",
  8068. " a7 a6 a5 a4 a3 a2 a1 a0",
  8069. " o o o o o o o o";
  8070. read_hi = " 0 0 1 0 1 0 0 0",
  8071. " 0 0 0 0 a11 a10 a9 a8",
  8072. " a7 a6 a5 a4 a3 a2 a1 a0",
  8073. " o o o o o o o o";
  8074. loadpage_lo = " 0 1 0 0 0 0 0 0",
  8075. " 0 0 0 x x x x x",
  8076. " x x x a4 a3 a2 a1 a0",
  8077. " i i i i i i i i";
  8078. loadpage_hi = " 0 1 0 0 1 0 0 0",
  8079. " 0 0 0 x x x x x",
  8080. " x x x a4 a3 a2 a1 a0",
  8081. " i i i i i i i i";
  8082. writepage = " 0 1 0 0 1 1 0 0",
  8083. " 0 0 0 0 a11 a10 a9 a8",
  8084. " a7 a6 a5 x x x x x",
  8085. " x x x x x x x x";
  8086. mode = 0x41;
  8087. delay = 6;
  8088. blocksize = 64;
  8089. readsize = 256;
  8090. ;
  8091. memory "signature"
  8092. size = 3;
  8093. read = "0 0 1 1 0 0 0 0 0 0 x x x x x x",
  8094. "x x x x x x a1 a0 o o o o o o o o";
  8095. ;
  8096. memory "lock"
  8097. size = 1;
  8098. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  8099. "x x x x x x x x 1 1 i i i i i i";
  8100. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  8101. "x x x x x x x x x x o o o o o o";
  8102. min_write_delay = 9000;
  8103. max_write_delay = 9000;
  8104. ;
  8105. memory "lfuse"
  8106. size = 1;
  8107. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  8108. "x x x x x x x x i i i i i i i i";
  8109. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  8110. "x x x x x x x x o o o o o o o o";
  8111. min_write_delay = 9000;
  8112. max_write_delay = 9000;
  8113. ;
  8114. memory "hfuse"
  8115. size = 1;
  8116. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  8117. "x x x x x x x x i i i i i i i i";
  8118. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  8119. "x x x x x x x x o o o o o o o o";
  8120. min_write_delay = 9000;
  8121. max_write_delay = 9000;
  8122. ;
  8123. memory "efuse"
  8124. size = 1;
  8125. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  8126. "x x x x x x x x x x x x x x x i";
  8127. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  8128. "x x x x x x x x o o o o o o o o";
  8129. min_write_delay = 9000;
  8130. max_write_delay = 9000;
  8131. ;
  8132. memory "calibration"
  8133. size = 1;
  8134. read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
  8135. "0 0 0 0 0 0 0 0 o o o o o o o o";
  8136. ;
  8137. ;
  8138. #------------------------------------------------------------
  8139. # AT90PWM3B
  8140. #------------------------------------------------------------
  8141. # Completely identical to AT90PWM2B (including the signature!)
  8142. part
  8143. id = "pwm3b";
  8144. desc = "AT90PWM3B";
  8145. has_debugwire = yes;
  8146. flash_instr = 0xB6, 0x01, 0x11;
  8147. eeprom_instr = 0xBD, 0xF2, 0xBD, 0xE1, 0xBB, 0xCF, 0xB4, 0x00,
  8148. 0xBE, 0x01, 0xB6, 0x01, 0xBC, 0x00, 0xBB, 0xBF,
  8149. 0x99, 0xF9, 0xBB, 0xAF;
  8150. stk500_devcode = 0x65;
  8151. ## avr910_devcode = ?;
  8152. signature = 0x1e 0x93 0x83;
  8153. pagel = 0xD8;
  8154. bs2 = 0xE2;
  8155. reset = io;
  8156. chip_erase_delay = 9000;
  8157. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  8158. "x x x x x x x x x x x x x x x x";
  8159. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
  8160. "x x x x x x x x x x x x x x x x";
  8161. timeout = 200;
  8162. stabdelay = 100;
  8163. cmdexedelay = 25;
  8164. synchloops = 32;
  8165. bytedelay = 0;
  8166. pollindex = 3;
  8167. pollvalue = 0x53;
  8168. predelay = 1;
  8169. postdelay = 1;
  8170. pollmethod = 1;
  8171. pp_controlstack =
  8172. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  8173. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  8174. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  8175. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  8176. hventerstabdelay = 100;
  8177. progmodedelay = 0;
  8178. latchcycles = 5;
  8179. togglevtg = 1;
  8180. poweroffdelay = 15;
  8181. resetdelayms = 1;
  8182. resetdelayus = 0;
  8183. hvleavestabdelay = 15;
  8184. chiperasepulsewidth = 0;
  8185. chiperasepolltimeout = 10;
  8186. programfusepulsewidth = 0;
  8187. programfusepolltimeout = 5;
  8188. programlockpulsewidth = 0;
  8189. programlockpolltimeout = 5;
  8190. memory "eeprom"
  8191. size = 512;
  8192. paged = no;
  8193. page_size = 4;
  8194. min_write_delay = 4000;
  8195. max_write_delay = 4500;
  8196. readback_p1 = 0xff;
  8197. readback_p2 = 0xff;
  8198. read = "1 0 1 0 0 0 0 0 0 0 0 x x x x a8",
  8199. "a7 a6 a5 a4 a3 a2 a1 a0 o o o o o o o o";
  8200. write = "1 1 0 0 0 0 0 0 0 0 0 x x x x a8",
  8201. "a7 a6 a5 a4 a3 a2 a1 a0 i i i i i i i i";
  8202. loadpage_lo = " 1 1 0 0 0 0 0 1",
  8203. " 0 0 0 0 0 0 0 0",
  8204. " 0 0 0 0 0 0 a1 a0",
  8205. " i i i i i i i i";
  8206. writepage = " 1 1 0 0 0 0 1 0",
  8207. " 0 0 x x x x x x",
  8208. " a7 a6 a5 a4 a3 a2 0 0",
  8209. " x x x x x x x x";
  8210. mode = 0x41;
  8211. delay = 6;
  8212. blocksize = 4;
  8213. readsize = 256;
  8214. ;
  8215. memory "flash"
  8216. paged = yes;
  8217. size = 8192;
  8218. page_size = 64;
  8219. num_pages = 128;
  8220. min_write_delay = 4500;
  8221. max_write_delay = 4500;
  8222. readback_p1 = 0xff;
  8223. readback_p2 = 0xff;
  8224. read_lo = " 0 0 1 0 0 0 0 0",
  8225. " 0 0 0 0 a11 a10 a9 a8",
  8226. " a7 a6 a5 a4 a3 a2 a1 a0",
  8227. " o o o o o o o o";
  8228. read_hi = " 0 0 1 0 1 0 0 0",
  8229. " 0 0 0 0 a11 a10 a9 a8",
  8230. " a7 a6 a5 a4 a3 a2 a1 a0",
  8231. " o o o o o o o o";
  8232. loadpage_lo = " 0 1 0 0 0 0 0 0",
  8233. " 0 0 0 x x x x x",
  8234. " x x x a4 a3 a2 a1 a0",
  8235. " i i i i i i i i";
  8236. loadpage_hi = " 0 1 0 0 1 0 0 0",
  8237. " 0 0 0 x x x x x",
  8238. " x x x a4 a3 a2 a1 a0",
  8239. " i i i i i i i i";
  8240. writepage = " 0 1 0 0 1 1 0 0",
  8241. " 0 0 0 0 a11 a10 a9 a8",
  8242. " a7 a6 a5 x x x x x",
  8243. " x x x x x x x x";
  8244. mode = 0x41;
  8245. delay = 6;
  8246. blocksize = 64;
  8247. readsize = 256;
  8248. ;
  8249. memory "signature"
  8250. size = 3;
  8251. read = "0 0 1 1 0 0 0 0 0 0 x x x x x x",
  8252. "x x x x x x a1 a0 o o o o o o o o";
  8253. ;
  8254. memory "lock"
  8255. size = 1;
  8256. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  8257. "x x x x x x x x 1 1 i i i i i i";
  8258. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  8259. "x x x x x x x x x x o o o o o o";
  8260. min_write_delay = 9000;
  8261. max_write_delay = 9000;
  8262. ;
  8263. memory "lfuse"
  8264. size = 1;
  8265. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  8266. "x x x x x x x x i i i i i i i i";
  8267. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  8268. "x x x x x x x x o o o o o o o o";
  8269. min_write_delay = 9000;
  8270. max_write_delay = 9000;
  8271. ;
  8272. memory "hfuse"
  8273. size = 1;
  8274. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  8275. "x x x x x x x x i i i i i i i i";
  8276. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  8277. "x x x x x x x x o o o o o o o o";
  8278. min_write_delay = 9000;
  8279. max_write_delay = 9000;
  8280. ;
  8281. memory "efuse"
  8282. size = 1;
  8283. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  8284. "x x x x x x x x x x x x x x x i";
  8285. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  8286. "x x x x x x x x o o o o o o o o";
  8287. min_write_delay = 9000;
  8288. max_write_delay = 9000;
  8289. ;
  8290. memory "calibration"
  8291. size = 1;
  8292. read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
  8293. "0 0 0 0 0 0 0 0 o o o o o o o o";
  8294. ;
  8295. ;
  8296. #------------------------------------------------------------
  8297. # ATtiny25
  8298. #------------------------------------------------------------
  8299. part
  8300. id = "t25";
  8301. desc = "ATtiny25";
  8302. has_debugwire = yes;
  8303. flash_instr = 0xB4, 0x02, 0x12;
  8304. eeprom_instr = 0xBB, 0xFF, 0xBB, 0xEE, 0xBB, 0xCC, 0xB2, 0x0D,
  8305. 0xBC, 0x02, 0xB4, 0x02, 0xBA, 0x0D, 0xBB, 0xBC,
  8306. 0x99, 0xE1, 0xBB, 0xAC;
  8307. ## no STK500 devcode in XML file, use the ATtiny45 one
  8308. stk500_devcode = 0x14;
  8309. ## avr910_devcode = ?;
  8310. ## Try the AT90S2313 devcode:
  8311. avr910_devcode = 0x20;
  8312. signature = 0x1e 0x91 0x08;
  8313. reset = io;
  8314. chip_erase_delay = 4500;
  8315. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  8316. "x x x x x x x x x x x x x x x x";
  8317. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
  8318. "x x x x x x x x x x x x x x x x";
  8319. timeout = 200;
  8320. stabdelay = 100;
  8321. cmdexedelay = 25;
  8322. synchloops = 32;
  8323. bytedelay = 0;
  8324. pollindex = 3;
  8325. pollvalue = 0x53;
  8326. predelay = 1;
  8327. postdelay = 1;
  8328. pollmethod = 1;
  8329. hvsp_controlstack =
  8330. 0x4C, 0x0C, 0x1C, 0x2C, 0x3C, 0x64, 0x74, 0x66,
  8331. 0x68, 0x78, 0x68, 0x68, 0x7A, 0x6A, 0x68, 0x78,
  8332. 0x78, 0x7D, 0x6D, 0x0C, 0x80, 0x40, 0x20, 0x10,
  8333. 0x11, 0x08, 0x04, 0x02, 0x03, 0x08, 0x04, 0x00;
  8334. hventerstabdelay = 100;
  8335. hvspcmdexedelay = 0;
  8336. synchcycles = 6;
  8337. latchcycles = 1;
  8338. togglevtg = 1;
  8339. poweroffdelay = 25;
  8340. resetdelayms = 1;
  8341. resetdelayus = 0;
  8342. hvleavestabdelay = 100;
  8343. resetdelay = 25;
  8344. chiperasepolltimeout = 40;
  8345. chiperasetime = 0;
  8346. programfusepolltimeout = 25;
  8347. programlockpolltimeout = 25;
  8348. memory "eeprom"
  8349. size = 128;
  8350. paged = no;
  8351. page_size = 4;
  8352. min_write_delay = 4000;
  8353. max_write_delay = 4500;
  8354. readback_p1 = 0xff;
  8355. readback_p2 = 0xff;
  8356. read = "1 0 1 0 0 0 0 0 0 0 0 x x x x x",
  8357. "x a6 a5 a4 a3 a2 a1 a0 o o o o o o o o";
  8358. write = "1 1 0 0 0 0 0 0 0 0 0 x x x x x",
  8359. "x a6 a5 a4 a3 a2 a1 a0 i i i i i i i i";
  8360. loadpage_lo = " 1 1 0 0 0 0 0 1",
  8361. " 0 0 0 0 0 0 0 0",
  8362. " 0 0 0 0 0 0 a1 a0",
  8363. " i i i i i i i i";
  8364. writepage = " 1 1 0 0 0 0 1 0",
  8365. " 0 0 x x x x x x",
  8366. " x a6 a5 a4 a3 a2 0 0",
  8367. " x x x x x x x x";
  8368. mode = 0x41;
  8369. delay = 6;
  8370. blocksize = 4;
  8371. readsize = 256;
  8372. ;
  8373. memory "flash"
  8374. paged = yes;
  8375. size = 2048;
  8376. page_size = 32;
  8377. num_pages = 64;
  8378. min_write_delay = 4500;
  8379. max_write_delay = 4500;
  8380. readback_p1 = 0xff;
  8381. readback_p2 = 0xff;
  8382. read_lo = " 0 0 1 0 0 0 0 0",
  8383. " 0 0 0 0 0 0 a9 a8",
  8384. " a7 a6 a5 a4 a3 a2 a1 a0",
  8385. " o o o o o o o o";
  8386. read_hi = " 0 0 1 0 1 0 0 0",
  8387. " 0 0 0 0 0 0 a9 a8",
  8388. " a7 a6 a5 a4 a3 a2 a1 a0",
  8389. " o o o o o o o o";
  8390. loadpage_lo = " 0 1 0 0 0 0 0 0",
  8391. " 0 0 0 x x x x x",
  8392. " x x x x a3 a2 a1 a0",
  8393. " i i i i i i i i";
  8394. loadpage_hi = " 0 1 0 0 1 0 0 0",
  8395. " 0 0 0 x x x x x",
  8396. " x x x x a3 a2 a1 a0",
  8397. " i i i i i i i i";
  8398. writepage = " 0 1 0 0 1 1 0 0",
  8399. " 0 0 0 0 0 0 a9 a8",
  8400. " a7 a6 a5 a4 x x x x",
  8401. " x x x x x x x x";
  8402. mode = 0x41;
  8403. delay = 6;
  8404. blocksize = 32;
  8405. readsize = 256;
  8406. ;
  8407. # ATtiny25 has Signature Bytes: 0x1E 0x91 0x08.
  8408. memory "signature"
  8409. size = 3;
  8410. read = "0 0 1 1 0 0 0 0 0 0 0 x x x x x",
  8411. "x x x x x x a1 a0 o o o o o o o o";
  8412. ;
  8413. memory "lock"
  8414. size = 1;
  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 "lfuse"
  8421. size = 1;
  8422. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  8423. "x x x x x x x x i i i i i i i i";
  8424. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  8425. "x x x x x x x x o o o o o o o o";
  8426. min_write_delay = 9000;
  8427. max_write_delay = 9000;
  8428. ;
  8429. memory "hfuse"
  8430. size = 1;
  8431. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  8432. "x x x x x x x x i i i i i i i i";
  8433. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  8434. "x x x x x x x x o o o o o o o o";
  8435. min_write_delay = 9000;
  8436. max_write_delay = 9000;
  8437. ;
  8438. memory "efuse"
  8439. size = 1;
  8440. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  8441. "x x x x x x x x x x x x x x x i";
  8442. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  8443. "x x x x x x x x o o o o o o o o";
  8444. min_write_delay = 9000;
  8445. max_write_delay = 9000;
  8446. ;
  8447. memory "calibration"
  8448. size = 2;
  8449. read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
  8450. "0 0 0 0 0 0 0 a0 o o o o o o o o";
  8451. ;
  8452. ;
  8453. #------------------------------------------------------------
  8454. # ATtiny45
  8455. #------------------------------------------------------------
  8456. part
  8457. id = "t45";
  8458. desc = "ATtiny45";
  8459. has_debugwire = yes;
  8460. flash_instr = 0xB4, 0x02, 0x12;
  8461. eeprom_instr = 0xBB, 0xFF, 0xBB, 0xEE, 0xBB, 0xCC, 0xB2, 0x0D,
  8462. 0xBC, 0x02, 0xB4, 0x02, 0xBA, 0x0D, 0xBB, 0xBC,
  8463. 0x99, 0xE1, 0xBB, 0xAC;
  8464. stk500_devcode = 0x14;
  8465. ## avr910_devcode = ?;
  8466. ## Try the AT90S2313 devcode:
  8467. avr910_devcode = 0x20;
  8468. signature = 0x1e 0x92 0x06;
  8469. reset = io;
  8470. chip_erase_delay = 4500;
  8471. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  8472. "x x x x x x x x x x x x x x x x";
  8473. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
  8474. "x x x x x x x x x x x x x x x x";
  8475. timeout = 200;
  8476. stabdelay = 100;
  8477. cmdexedelay = 25;
  8478. synchloops = 32;
  8479. bytedelay = 0;
  8480. pollindex = 3;
  8481. pollvalue = 0x53;
  8482. predelay = 1;
  8483. postdelay = 1;
  8484. pollmethod = 1;
  8485. hvsp_controlstack =
  8486. 0x4C, 0x0C, 0x1C, 0x2C, 0x3C, 0x64, 0x74, 0x66,
  8487. 0x68, 0x78, 0x68, 0x68, 0x7A, 0x6A, 0x68, 0x78,
  8488. 0x78, 0x7D, 0x6D, 0x0C, 0x80, 0x40, 0x20, 0x10,
  8489. 0x11, 0x08, 0x04, 0x02, 0x03, 0x08, 0x04, 0x00;
  8490. hventerstabdelay = 100;
  8491. progmodedelay = 0;
  8492. hvspcmdexedelay = 0;
  8493. synchcycles = 6;
  8494. latchcycles = 1;
  8495. togglevtg = 1;
  8496. poweroffdelay = 25;
  8497. resetdelayms = 1;
  8498. resetdelayus = 0;
  8499. hvleavestabdelay = 100;
  8500. resetdelay = 25;
  8501. chiperasepolltimeout = 40;
  8502. chiperasetime = 0;
  8503. programfusepolltimeout = 25;
  8504. programlockpolltimeout = 25;
  8505. memory "eeprom"
  8506. size = 256;
  8507. page_size = 4;
  8508. min_write_delay = 4000;
  8509. max_write_delay = 4500;
  8510. readback_p1 = 0xff;
  8511. readback_p2 = 0xff;
  8512. read = "1 0 1 0 0 0 0 0 0 0 0 x x x x x",
  8513. "a7 a6 a5 a4 a3 a2 a1 a0 o o o o o o o o";
  8514. write = "1 1 0 0 0 0 0 0 0 0 0 x x x x x",
  8515. "a7 a6 a5 a4 a3 a2 a1 a0 i i i i i i i i";
  8516. loadpage_lo = " 1 1 0 0 0 0 0 1",
  8517. " 0 0 0 0 0 0 0 0",
  8518. " 0 0 0 0 0 0 a1 a0",
  8519. " i i i i i i i i";
  8520. writepage = " 1 1 0 0 0 0 1 0",
  8521. " 0 0 x x x x x x",
  8522. " a7 a6 a5 a4 a3 a2 0 0",
  8523. " x x x x x x x x";
  8524. mode = 0x41;
  8525. delay = 6;
  8526. blocksize = 4;
  8527. readsize = 256;
  8528. ;
  8529. memory "flash"
  8530. paged = yes;
  8531. size = 4096;
  8532. page_size = 64;
  8533. num_pages = 64;
  8534. min_write_delay = 4500;
  8535. max_write_delay = 4500;
  8536. readback_p1 = 0xff;
  8537. readback_p2 = 0xff;
  8538. read_lo = " 0 0 1 0 0 0 0 0",
  8539. " 0 0 0 0 0 a10 a9 a8",
  8540. " a7 a6 a5 a4 a3 a2 a1 a0",
  8541. " o o o o o o o o";
  8542. read_hi = " 0 0 1 0 1 0 0 0",
  8543. " 0 0 0 0 0 a10 a9 a8",
  8544. " a7 a6 a5 a4 a3 a2 a1 a0",
  8545. " o o o o o o o o";
  8546. loadpage_lo = " 0 1 0 0 0 0 0 0",
  8547. " 0 0 0 x x x x x",
  8548. " x x x a4 a3 a2 a1 a0",
  8549. " i i i i i i i i";
  8550. loadpage_hi = " 0 1 0 0 1 0 0 0",
  8551. " 0 0 0 x x x x x",
  8552. " x x x a4 a3 a2 a1 a0",
  8553. " i i i i i i i i";
  8554. writepage = " 0 1 0 0 1 1 0 0",
  8555. " 0 0 0 0 0 a10 a9 a8",
  8556. " a7 a6 a5 x x x x x",
  8557. " x x x x x x x x";
  8558. mode = 0x41;
  8559. delay = 6;
  8560. blocksize = 32;
  8561. readsize = 256;
  8562. ;
  8563. # ATtiny45 has Signature Bytes: 0x1E 0x92 0x08. (Data sheet 2586C-AVR-06/05 (doc2586.pdf) indicates otherwise!)
  8564. memory "signature"
  8565. size = 3;
  8566. read = "0 0 1 1 0 0 0 0 0 0 0 x x x x x",
  8567. "x x x x x x a1 a0 o o o o o o o o";
  8568. ;
  8569. memory "lock"
  8570. size = 1;
  8571. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  8572. "x x x x x x x x 1 1 i i i i i i";
  8573. min_write_delay = 9000;
  8574. max_write_delay = 9000;
  8575. ;
  8576. memory "lfuse"
  8577. size = 1;
  8578. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  8579. "x x x x x x x x i i i i i i i i";
  8580. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  8581. "x x x x x x x x o o o o o o o o";
  8582. min_write_delay = 9000;
  8583. max_write_delay = 9000;
  8584. ;
  8585. memory "hfuse"
  8586. size = 1;
  8587. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  8588. "x x x x x x x x i i i i i i i i";
  8589. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  8590. "x x x x x x x x o o o o o o o o";
  8591. min_write_delay = 9000;
  8592. max_write_delay = 9000;
  8593. ;
  8594. memory "efuse"
  8595. size = 1;
  8596. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  8597. "x x x x x x x x x x x x x x x i";
  8598. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  8599. "x x x x x x x x o o o o o o o o";
  8600. min_write_delay = 9000;
  8601. max_write_delay = 9000;
  8602. ;
  8603. memory "calibration"
  8604. size = 2;
  8605. read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
  8606. "0 0 0 0 0 0 0 a0 o o o o o o o o";
  8607. ;
  8608. ;
  8609. #------------------------------------------------------------
  8610. # ATtiny85
  8611. #------------------------------------------------------------
  8612. part
  8613. id = "t85";
  8614. desc = "ATtiny85";
  8615. has_debugwire = yes;
  8616. flash_instr = 0xB4, 0x02, 0x12;
  8617. eeprom_instr = 0xBB, 0xFF, 0xBB, 0xEE, 0xBB, 0xCC, 0xB2, 0x0D,
  8618. 0xBC, 0x02, 0xB4, 0x02, 0xBA, 0x0D, 0xBB, 0xBC,
  8619. 0x99, 0xE1, 0xBB, 0xAC;
  8620. ## no STK500 devcode in XML file, use the ATtiny45 one
  8621. stk500_devcode = 0x14;
  8622. ## avr910_devcode = ?;
  8623. ## Try the AT90S2313 devcode:
  8624. avr910_devcode = 0x20;
  8625. signature = 0x1e 0x93 0x0b;
  8626. reset = io;
  8627. chip_erase_delay = 4500;
  8628. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  8629. "x x x x x x x x x x x x x x x x";
  8630. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
  8631. "x x x x x x x x x x x x x x x x";
  8632. timeout = 200;
  8633. stabdelay = 100;
  8634. cmdexedelay = 25;
  8635. synchloops = 32;
  8636. bytedelay = 0;
  8637. pollindex = 3;
  8638. pollvalue = 0x53;
  8639. predelay = 1;
  8640. postdelay = 1;
  8641. pollmethod = 1;
  8642. hvsp_controlstack =
  8643. 0x4C, 0x0C, 0x1C, 0x2C, 0x3C, 0x64, 0x74, 0x66,
  8644. 0x68, 0x78, 0x68, 0x68, 0x7A, 0x6A, 0x68, 0x78,
  8645. 0x78, 0x7D, 0x6D, 0x0C, 0x80, 0x40, 0x20, 0x10,
  8646. 0x11, 0x08, 0x04, 0x02, 0x03, 0x08, 0x04, 0x00;
  8647. hventerstabdelay = 100;
  8648. hvspcmdexedelay = 0;
  8649. synchcycles = 6;
  8650. latchcycles = 1;
  8651. togglevtg = 1;
  8652. poweroffdelay = 25;
  8653. resetdelayms = 1;
  8654. resetdelayus = 0;
  8655. hvleavestabdelay = 100;
  8656. resetdelay = 25;
  8657. chiperasepolltimeout = 40;
  8658. chiperasetime = 0;
  8659. programfusepolltimeout = 25;
  8660. programlockpolltimeout = 25;
  8661. memory "eeprom"
  8662. size = 512;
  8663. paged = no;
  8664. page_size = 4;
  8665. min_write_delay = 4000;
  8666. max_write_delay = 4500;
  8667. readback_p1 = 0xff;
  8668. readback_p2 = 0xff;
  8669. read = "1 0 1 0 0 0 0 0 0 0 0 x x x x a8",
  8670. "a7 a6 a5 a4 a3 a2 a1 a0 o o o o o o o o";
  8671. write = "1 1 0 0 0 0 0 0 0 0 0 x x x x a8",
  8672. "a8 a6 a5 a4 a3 a2 a1 a0 i i i i i i i i";
  8673. loadpage_lo = " 1 1 0 0 0 0 0 1",
  8674. " 0 0 0 0 0 0 0 0",
  8675. " 0 0 0 0 0 0 a1 a0",
  8676. " i i i i i i i i";
  8677. writepage = " 1 1 0 0 0 0 1 0",
  8678. " 0 0 x x x x x a8",
  8679. " a7 a6 a5 a4 a3 a2 0 0",
  8680. " x x x x x x x x";
  8681. mode = 0x41;
  8682. delay = 6;
  8683. blocksize = 4;
  8684. readsize = 256;
  8685. ;
  8686. memory "flash"
  8687. paged = yes;
  8688. size = 8192;
  8689. page_size = 64;
  8690. num_pages = 128;
  8691. min_write_delay = 4500;
  8692. max_write_delay = 4500;
  8693. readback_p1 = 0xff;
  8694. readback_p2 = 0xff;
  8695. read_lo = " 0 0 1 0 0 0 0 0",
  8696. " 0 0 0 0 a11 a10 a9 a8",
  8697. " a7 a6 a5 a4 a3 a2 a1 a0",
  8698. " o o o o o o o o";
  8699. read_hi = " 0 0 1 0 1 0 0 0",
  8700. " 0 0 0 0 a11 a10 a9 a8",
  8701. " a7 a6 a5 a4 a3 a2 a1 a0",
  8702. " o o o o o o o o";
  8703. loadpage_lo = " 0 1 0 0 0 0 0 0",
  8704. " 0 0 0 x x x x x",
  8705. " x x x a4 a3 a2 a1 a0",
  8706. " i i i i i i i i";
  8707. loadpage_hi = " 0 1 0 0 1 0 0 0",
  8708. " 0 0 0 x x x x x",
  8709. " x x x a4 a3 a2 a1 a0",
  8710. " i i i i i i i i";
  8711. writepage = " 0 1 0 0 1 1 0 0",
  8712. " 0 0 0 0 a11 a10 a9 a8",
  8713. " a7 a6 a5 x x x x x",
  8714. " x x x x x x x x";
  8715. mode = 0x41;
  8716. delay = 6;
  8717. blocksize = 32;
  8718. readsize = 256;
  8719. ;
  8720. # ATtiny85 has Signature Bytes: 0x1E 0x93 0x08.
  8721. memory "signature"
  8722. size = 3;
  8723. read = "0 0 1 1 0 0 0 0 0 0 0 x x x x x",
  8724. "x x x x x x a1 a0 o o o o o o o o";
  8725. ;
  8726. memory "lock"
  8727. size = 1;
  8728. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  8729. "x x x x x x x x 1 1 i i i i i i";
  8730. min_write_delay = 9000;
  8731. max_write_delay = 9000;
  8732. ;
  8733. memory "lfuse"
  8734. size = 1;
  8735. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  8736. "x x x x x x x x i i i i i i i i";
  8737. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  8738. "x x x x x x x x o o o o o o o o";
  8739. min_write_delay = 9000;
  8740. max_write_delay = 9000;
  8741. ;
  8742. memory "hfuse"
  8743. size = 1;
  8744. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  8745. "x x x x x x x x i i i i i i i i";
  8746. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  8747. "x x x x x x x x o o o o o o o o";
  8748. min_write_delay = 9000;
  8749. max_write_delay = 9000;
  8750. ;
  8751. memory "efuse"
  8752. size = 1;
  8753. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  8754. "x x x x x x x x x x x x x x x i";
  8755. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  8756. "x x x x x x x x o o o o o o o o";
  8757. min_write_delay = 9000;
  8758. max_write_delay = 9000;
  8759. ;
  8760. memory "calibration"
  8761. size = 2;
  8762. read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
  8763. "0 0 0 0 0 0 0 a0 o o o o o o o o";
  8764. ;
  8765. ;
  8766. #------------------------------------------------------------
  8767. # ATmega640
  8768. #------------------------------------------------------------
  8769. # Almost same as ATmega1280, except for different memory sizes
  8770. part
  8771. id = "m640";
  8772. desc = "ATMEGA640";
  8773. signature = 0x1e 0x96 0x08;
  8774. has_jtag = yes;
  8775. # stk500_devcode = 0xB2;
  8776. # avr910_devcode = 0x43;
  8777. chip_erase_delay = 9000;
  8778. pagel = 0xD7;
  8779. bs2 = 0xA0;
  8780. reset = dedicated;
  8781. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  8782. "x x x x x x x x x x x x x x x x";
  8783. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 0 0 0 0 0",
  8784. "x x x x x x x x x x x x x x x x";
  8785. timeout = 200;
  8786. stabdelay = 100;
  8787. cmdexedelay = 25;
  8788. synchloops = 32;
  8789. bytedelay = 0;
  8790. pollindex = 3;
  8791. pollvalue = 0x53;
  8792. predelay = 1;
  8793. postdelay = 1;
  8794. pollmethod = 1;
  8795. pp_controlstack =
  8796. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  8797. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  8798. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  8799. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  8800. hventerstabdelay = 100;
  8801. progmodedelay = 0;
  8802. latchcycles = 5;
  8803. togglevtg = 1;
  8804. poweroffdelay = 15;
  8805. resetdelayms = 1;
  8806. resetdelayus = 0;
  8807. hvleavestabdelay = 15;
  8808. chiperasepulsewidth = 0;
  8809. chiperasepolltimeout = 10;
  8810. programfusepulsewidth = 0;
  8811. programfusepolltimeout = 5;
  8812. programlockpulsewidth = 0;
  8813. programlockpolltimeout = 5;
  8814. idr = 0x31;
  8815. spmcr = 0x57;
  8816. rampz = 0x3b;
  8817. allowfullpagebitstream = no;
  8818. memory "eeprom"
  8819. paged = no; /* leave this "no" */
  8820. page_size = 8; /* for parallel programming */
  8821. size = 4096;
  8822. min_write_delay = 9000;
  8823. max_write_delay = 9000;
  8824. readback_p1 = 0x00;
  8825. readback_p2 = 0x00;
  8826. read = " 1 0 1 0 0 0 0 0",
  8827. " x x x x a11 a10 a9 a8",
  8828. " a7 a6 a5 a4 a3 a2 a1 a0",
  8829. " o o o o o o o o";
  8830. write = " 1 1 0 0 0 0 0 0",
  8831. " x x x x a11 a10 a9 a8",
  8832. " a7 a6 a5 a4 a3 a2 a1 a0",
  8833. " i i i i i i i i";
  8834. loadpage_lo = " 1 1 0 0 0 0 0 1",
  8835. " 0 0 0 0 0 0 0 0",
  8836. " 0 0 0 0 0 a2 a1 a0",
  8837. " i i i i i i i i";
  8838. writepage = " 1 1 0 0 0 0 1 0",
  8839. " 0 0 x x a11 a10 a9 a8",
  8840. " a7 a6 a5 a4 a3 0 0 0",
  8841. " x x x x x x x x";
  8842. mode = 0x41;
  8843. delay = 10;
  8844. blocksize = 8;
  8845. readsize = 256;
  8846. ;
  8847. memory "flash"
  8848. paged = yes;
  8849. size = 65536;
  8850. page_size = 256;
  8851. num_pages = 256;
  8852. min_write_delay = 4500;
  8853. max_write_delay = 4500;
  8854. readback_p1 = 0x00;
  8855. readback_p2 = 0x00;
  8856. read_lo = " 0 0 1 0 0 0 0 0",
  8857. " 0 a14 a13 a12 a11 a10 a9 a8",
  8858. " a7 a6 a5 a4 a3 a2 a1 a0",
  8859. " o o o o o o o o";
  8860. read_hi = " 0 0 1 0 1 0 0 0",
  8861. " 0 a14 a13 a12 a11 a10 a9 a8",
  8862. " a7 a6 a5 a4 a3 a2 a1 a0",
  8863. " o o o o o o o o";
  8864. loadpage_lo = " 0 1 0 0 0 0 0 0",
  8865. " x x x x x x x x",
  8866. " x a6 a5 a4 a3 a2 a1 a0",
  8867. " i i i i i i i i";
  8868. loadpage_hi = " 0 1 0 0 1 0 0 0",
  8869. " x x x x x x x x",
  8870. " x a6 a5 a4 a3 a2 a1 a0",
  8871. " i i i i i i i i";
  8872. writepage = " 0 1 0 0 1 1 0 0",
  8873. " 0 a14 a13 a12 a11 a10 a9 a8",
  8874. " a7 x x x x x x x",
  8875. " x x x x x x x x";
  8876. mode = 0x41;
  8877. delay = 10;
  8878. blocksize = 256;
  8879. readsize = 256;
  8880. ;
  8881. memory "lfuse"
  8882. size = 1;
  8883. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  8884. "x x x x x x x x i i i i i i i i";
  8885. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  8886. "x x x x x x x x o o o o o o o o";
  8887. min_write_delay = 9000;
  8888. max_write_delay = 9000;
  8889. ;
  8890. memory "hfuse"
  8891. size = 1;
  8892. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  8893. "x x x x x x x x i i i i i i i i";
  8894. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  8895. "x x x x x x x x o o o o o o o o";
  8896. min_write_delay = 9000;
  8897. max_write_delay = 9000;
  8898. ;
  8899. memory "efuse"
  8900. size = 1;
  8901. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  8902. "x x x x x x x x x x x x x i i i";
  8903. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  8904. "x x x x x x x x o o o o o o o o";
  8905. min_write_delay = 9000;
  8906. max_write_delay = 9000;
  8907. ;
  8908. memory "lock"
  8909. size = 1;
  8910. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  8911. "x x x x x x x x x x o o o o o o";
  8912. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  8913. "x x x x x x x x 1 1 i i i i i i";
  8914. min_write_delay = 9000;
  8915. max_write_delay = 9000;
  8916. ;
  8917. memory "calibration"
  8918. size = 1;
  8919. read = "0 0 1 1 1 0 0 0 x x x x x x x x",
  8920. "0 0 0 0 0 0 0 0 o o o o o o o o";
  8921. ;
  8922. memory "signature"
  8923. size = 3;
  8924. read = "0 0 1 1 0 0 0 0 x x x x x x x x",
  8925. "x x x x x x a1 a0 o o o o o o o o";
  8926. ;
  8927. ;
  8928. #------------------------------------------------------------
  8929. # ATmega1280
  8930. #------------------------------------------------------------
  8931. part
  8932. id = "m1280";
  8933. desc = "ATMEGA1280";
  8934. signature = 0x1e 0x97 0x03;
  8935. has_jtag = yes;
  8936. # stk500_devcode = 0xB2;
  8937. # avr910_devcode = 0x43;
  8938. chip_erase_delay = 9000;
  8939. pagel = 0xD7;
  8940. bs2 = 0xA0;
  8941. reset = dedicated;
  8942. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  8943. "x x x x x x x x x x x x x x x x";
  8944. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 0 0 0 0 0",
  8945. "x x x x x x x x x x x x x x x x";
  8946. timeout = 200;
  8947. stabdelay = 100;
  8948. cmdexedelay = 25;
  8949. synchloops = 32;
  8950. bytedelay = 0;
  8951. pollindex = 3;
  8952. pollvalue = 0x53;
  8953. predelay = 1;
  8954. postdelay = 1;
  8955. pollmethod = 1;
  8956. pp_controlstack =
  8957. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  8958. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  8959. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  8960. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  8961. hventerstabdelay = 100;
  8962. progmodedelay = 0;
  8963. latchcycles = 5;
  8964. togglevtg = 1;
  8965. poweroffdelay = 15;
  8966. resetdelayms = 1;
  8967. resetdelayus = 0;
  8968. hvleavestabdelay = 15;
  8969. chiperasepulsewidth = 0;
  8970. chiperasepolltimeout = 10;
  8971. programfusepulsewidth = 0;
  8972. programfusepolltimeout = 5;
  8973. programlockpulsewidth = 0;
  8974. programlockpolltimeout = 5;
  8975. idr = 0x31;
  8976. spmcr = 0x57;
  8977. rampz = 0x3b;
  8978. allowfullpagebitstream = no;
  8979. memory "eeprom"
  8980. paged = no; /* leave this "no" */
  8981. page_size = 8; /* for parallel programming */
  8982. size = 4096;
  8983. min_write_delay = 9000;
  8984. max_write_delay = 9000;
  8985. readback_p1 = 0x00;
  8986. readback_p2 = 0x00;
  8987. read = " 1 0 1 0 0 0 0 0",
  8988. " x x x x a11 a10 a9 a8",
  8989. " a7 a6 a5 a4 a3 a2 a1 a0",
  8990. " o o o o o o o o";
  8991. write = " 1 1 0 0 0 0 0 0",
  8992. " x x x x a11 a10 a9 a8",
  8993. " a7 a6 a5 a4 a3 a2 a1 a0",
  8994. " i i i i i i i i";
  8995. loadpage_lo = " 1 1 0 0 0 0 0 1",
  8996. " 0 0 0 0 0 0 0 0",
  8997. " 0 0 0 0 0 a2 a1 a0",
  8998. " i i i i i i i i";
  8999. writepage = " 1 1 0 0 0 0 1 0",
  9000. " 0 0 x x a11 a10 a9 a8",
  9001. " a7 a6 a5 a4 a3 0 0 0",
  9002. " x x x x x x x x";
  9003. mode = 0x41;
  9004. delay = 10;
  9005. blocksize = 8;
  9006. readsize = 256;
  9007. ;
  9008. memory "flash"
  9009. paged = yes;
  9010. size = 131072;
  9011. page_size = 256;
  9012. num_pages = 512;
  9013. min_write_delay = 4500;
  9014. max_write_delay = 4500;
  9015. readback_p1 = 0x00;
  9016. readback_p2 = 0x00;
  9017. read_lo = " 0 0 1 0 0 0 0 0",
  9018. "a15 a14 a13 a12 a11 a10 a9 a8",
  9019. " a7 a6 a5 a4 a3 a2 a1 a0",
  9020. " o o o o o o o o";
  9021. read_hi = " 0 0 1 0 1 0 0 0",
  9022. "a15 a14 a13 a12 a11 a10 a9 a8",
  9023. " a7 a6 a5 a4 a3 a2 a1 a0",
  9024. " o o o o o o o o";
  9025. loadpage_lo = " 0 1 0 0 0 0 0 0",
  9026. " x x x x x x x x",
  9027. " x a6 a5 a4 a3 a2 a1 a0",
  9028. " i i i i i i i i";
  9029. loadpage_hi = " 0 1 0 0 1 0 0 0",
  9030. " x x x x x x x x",
  9031. " x a6 a5 a4 a3 a2 a1 a0",
  9032. " i i i i i i i i";
  9033. writepage = " 0 1 0 0 1 1 0 0",
  9034. "a15 a14 a13 a12 a11 a10 a9 a8",
  9035. " a7 x x x x x x x",
  9036. " x x x x x x x x";
  9037. mode = 0x41;
  9038. delay = 10;
  9039. blocksize = 256;
  9040. readsize = 256;
  9041. ;
  9042. memory "lfuse"
  9043. size = 1;
  9044. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  9045. "x x x x x x x x i i i i i i i i";
  9046. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  9047. "x x x x x x x x o o o o o o o o";
  9048. min_write_delay = 9000;
  9049. max_write_delay = 9000;
  9050. ;
  9051. memory "hfuse"
  9052. size = 1;
  9053. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  9054. "x x x x x x x x i i i i i i i i";
  9055. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  9056. "x x x x x x x x o o o o o o o o";
  9057. min_write_delay = 9000;
  9058. max_write_delay = 9000;
  9059. ;
  9060. memory "efuse"
  9061. size = 1;
  9062. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  9063. "x x x x x x x x x x x x x i i i";
  9064. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  9065. "x x x x x x x x o o o o o o o o";
  9066. min_write_delay = 9000;
  9067. max_write_delay = 9000;
  9068. ;
  9069. memory "lock"
  9070. size = 1;
  9071. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  9072. "x x x x x x x x x x o o o o o o";
  9073. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  9074. "x x x x x x x x 1 1 i i i i i i";
  9075. min_write_delay = 9000;
  9076. max_write_delay = 9000;
  9077. ;
  9078. memory "calibration"
  9079. size = 1;
  9080. read = "0 0 1 1 1 0 0 0 x x x x x x x x",
  9081. "0 0 0 0 0 0 0 0 o o o o o o o o";
  9082. ;
  9083. memory "signature"
  9084. size = 3;
  9085. read = "0 0 1 1 0 0 0 0 x x x x x x x x",
  9086. "x x x x x x a1 a0 o o o o o o o o";
  9087. ;
  9088. ;
  9089. #------------------------------------------------------------
  9090. # ATmega1281
  9091. #------------------------------------------------------------
  9092. # Identical to ATmega1280
  9093. part
  9094. id = "m1281";
  9095. desc = "ATMEGA1281";
  9096. signature = 0x1e 0x97 0x04;
  9097. has_jtag = yes;
  9098. # stk500_devcode = 0xB2;
  9099. # avr910_devcode = 0x43;
  9100. chip_erase_delay = 9000;
  9101. pagel = 0xD7;
  9102. bs2 = 0xA0;
  9103. reset = dedicated;
  9104. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  9105. "x x x x x x x x x x x x x x x x";
  9106. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 0 0 0 0 0",
  9107. "x x x x x x x x x x x x x x x x";
  9108. timeout = 200;
  9109. stabdelay = 100;
  9110. cmdexedelay = 25;
  9111. synchloops = 32;
  9112. bytedelay = 0;
  9113. pollindex = 3;
  9114. pollvalue = 0x53;
  9115. predelay = 1;
  9116. postdelay = 1;
  9117. pollmethod = 1;
  9118. pp_controlstack =
  9119. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  9120. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  9121. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  9122. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  9123. hventerstabdelay = 100;
  9124. progmodedelay = 0;
  9125. latchcycles = 5;
  9126. togglevtg = 1;
  9127. poweroffdelay = 15;
  9128. resetdelayms = 1;
  9129. resetdelayus = 0;
  9130. hvleavestabdelay = 15;
  9131. chiperasepulsewidth = 0;
  9132. chiperasepolltimeout = 10;
  9133. programfusepulsewidth = 0;
  9134. programfusepolltimeout = 5;
  9135. programlockpulsewidth = 0;
  9136. programlockpolltimeout = 5;
  9137. idr = 0x31;
  9138. spmcr = 0x57;
  9139. rampz = 0x3b;
  9140. allowfullpagebitstream = no;
  9141. memory "eeprom"
  9142. paged = no; /* leave this "no" */
  9143. page_size = 8; /* for parallel programming */
  9144. size = 4096;
  9145. min_write_delay = 9000;
  9146. max_write_delay = 9000;
  9147. readback_p1 = 0x00;
  9148. readback_p2 = 0x00;
  9149. read = " 1 0 1 0 0 0 0 0",
  9150. " x x x x a11 a10 a9 a8",
  9151. " a7 a6 a5 a4 a3 a2 a1 a0",
  9152. " o o o o o o o o";
  9153. write = " 1 1 0 0 0 0 0 0",
  9154. " x x x x a11 a10 a9 a8",
  9155. " a7 a6 a5 a4 a3 a2 a1 a0",
  9156. " i i i i i i i i";
  9157. loadpage_lo = " 1 1 0 0 0 0 0 1",
  9158. " 0 0 0 0 0 0 0 0",
  9159. " 0 0 0 0 0 a2 a1 a0",
  9160. " i i i i i i i i";
  9161. writepage = " 1 1 0 0 0 0 1 0",
  9162. " 0 0 x x a11 a10 a9 a8",
  9163. " a7 a6 a5 a4 a3 0 0 0",
  9164. " x x x x x x x x";
  9165. mode = 0x41;
  9166. delay = 10;
  9167. blocksize = 8;
  9168. readsize = 256;
  9169. ;
  9170. memory "flash"
  9171. paged = yes;
  9172. size = 131072;
  9173. page_size = 256;
  9174. num_pages = 512;
  9175. min_write_delay = 4500;
  9176. max_write_delay = 4500;
  9177. readback_p1 = 0x00;
  9178. readback_p2 = 0x00;
  9179. read_lo = " 0 0 1 0 0 0 0 0",
  9180. "a15 a14 a13 a12 a11 a10 a9 a8",
  9181. " a7 a6 a5 a4 a3 a2 a1 a0",
  9182. " o o o o o o o o";
  9183. read_hi = " 0 0 1 0 1 0 0 0",
  9184. "a15 a14 a13 a12 a11 a10 a9 a8",
  9185. " a7 a6 a5 a4 a3 a2 a1 a0",
  9186. " o o o o o o o o";
  9187. loadpage_lo = " 0 1 0 0 0 0 0 0",
  9188. " x x x x x x x x",
  9189. " x a6 a5 a4 a3 a2 a1 a0",
  9190. " i i i i i i i i";
  9191. loadpage_hi = " 0 1 0 0 1 0 0 0",
  9192. " x x x x x x x x",
  9193. " x a6 a5 a4 a3 a2 a1 a0",
  9194. " i i i i i i i i";
  9195. writepage = " 0 1 0 0 1 1 0 0",
  9196. "a15 a14 a13 a12 a11 a10 a9 a8",
  9197. " a7 x x x x x x x",
  9198. " x x x x x x x x";
  9199. mode = 0x41;
  9200. delay = 10;
  9201. blocksize = 256;
  9202. readsize = 256;
  9203. ;
  9204. memory "lfuse"
  9205. size = 1;
  9206. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  9207. "x x x x x x x x i i i i i i i i";
  9208. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  9209. "x x x x x x x x o o o o o o o o";
  9210. min_write_delay = 9000;
  9211. max_write_delay = 9000;
  9212. ;
  9213. memory "hfuse"
  9214. size = 1;
  9215. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  9216. "x x x x x x x x i i i i i i i i";
  9217. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  9218. "x x x x x x x x o o o o o o o o";
  9219. min_write_delay = 9000;
  9220. max_write_delay = 9000;
  9221. ;
  9222. memory "efuse"
  9223. size = 1;
  9224. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  9225. "x x x x x x x x x x x x x i i i";
  9226. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  9227. "x x x x x x x x o o o o o o o o";
  9228. min_write_delay = 9000;
  9229. max_write_delay = 9000;
  9230. ;
  9231. memory "lock"
  9232. size = 1;
  9233. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  9234. "x x x x x x x x x x o o o o o o";
  9235. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  9236. "x x x x x x x x 1 1 i i i i i i";
  9237. min_write_delay = 9000;
  9238. max_write_delay = 9000;
  9239. ;
  9240. memory "calibration"
  9241. size = 1;
  9242. read = "0 0 1 1 1 0 0 0 x x x x x x x x",
  9243. "0 0 0 0 0 0 0 0 o o o o o o o o";
  9244. ;
  9245. memory "signature"
  9246. size = 3;
  9247. read = "0 0 1 1 0 0 0 0 x x x x x x x x",
  9248. "x x x x x x a1 a0 o o o o o o o o";
  9249. ;
  9250. ;
  9251. #------------------------------------------------------------
  9252. # ATmega2560
  9253. #------------------------------------------------------------
  9254. part
  9255. id = "m2560";
  9256. desc = "ATMEGA2560";
  9257. signature = 0x1e 0x98 0x01;
  9258. has_jtag = yes;
  9259. # stk500_devcode = 0xB2;
  9260. # avr910_devcode = 0x43;
  9261. chip_erase_delay = 9000;
  9262. pagel = 0xD7;
  9263. bs2 = 0xA0;
  9264. reset = dedicated;
  9265. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  9266. "x x x x x x x x x x x x x x x x";
  9267. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 0 0 0 0 0",
  9268. "x x x x x x x x x x x x x x x x";
  9269. timeout = 200;
  9270. stabdelay = 100;
  9271. cmdexedelay = 25;
  9272. synchloops = 32;
  9273. bytedelay = 0;
  9274. pollindex = 3;
  9275. pollvalue = 0x53;
  9276. predelay = 1;
  9277. postdelay = 1;
  9278. pollmethod = 1;
  9279. pp_controlstack =
  9280. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  9281. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  9282. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  9283. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x02;
  9284. hventerstabdelay = 100;
  9285. progmodedelay = 0;
  9286. latchcycles = 5;
  9287. togglevtg = 1;
  9288. poweroffdelay = 15;
  9289. resetdelayms = 1;
  9290. resetdelayus = 0;
  9291. hvleavestabdelay = 15;
  9292. chiperasepulsewidth = 0;
  9293. chiperasepolltimeout = 10;
  9294. programfusepulsewidth = 0;
  9295. programfusepolltimeout = 5;
  9296. programlockpulsewidth = 0;
  9297. programlockpolltimeout = 5;
  9298. idr = 0x31;
  9299. spmcr = 0x57;
  9300. rampz = 0x3b;
  9301. allowfullpagebitstream = no;
  9302. memory "eeprom"
  9303. paged = no; /* leave this "no" */
  9304. page_size = 8; /* for parallel programming */
  9305. size = 4096;
  9306. min_write_delay = 9000;
  9307. max_write_delay = 9000;
  9308. readback_p1 = 0x00;
  9309. readback_p2 = 0x00;
  9310. read = " 1 0 1 0 0 0 0 0",
  9311. " x x x x a11 a10 a9 a8",
  9312. " a7 a6 a5 a4 a3 a2 a1 a0",
  9313. " o o o o o o o o";
  9314. write = " 1 1 0 0 0 0 0 0",
  9315. " x x x x a11 a10 a9 a8",
  9316. " a7 a6 a5 a4 a3 a2 a1 a0",
  9317. " i i i i i i i i";
  9318. loadpage_lo = " 1 1 0 0 0 0 0 1",
  9319. " 0 0 0 0 0 0 0 0",
  9320. " 0 0 0 0 0 a2 a1 a0",
  9321. " i i i i i i i i";
  9322. writepage = " 1 1 0 0 0 0 1 0",
  9323. " 0 0 x x a11 a10 a9 a8",
  9324. " a7 a6 a5 a4 a3 0 0 0",
  9325. " x x x x x x x x";
  9326. mode = 0x41;
  9327. delay = 10;
  9328. blocksize = 8;
  9329. readsize = 256;
  9330. ;
  9331. memory "flash"
  9332. paged = yes;
  9333. size = 262144;
  9334. page_size = 256;
  9335. num_pages = 1024;
  9336. min_write_delay = 4500;
  9337. max_write_delay = 4500;
  9338. readback_p1 = 0x00;
  9339. readback_p2 = 0x00;
  9340. read_lo = " 0 0 1 0 0 0 0 0",
  9341. "a15 a14 a13 a12 a11 a10 a9 a8",
  9342. " a7 a6 a5 a4 a3 a2 a1 a0",
  9343. " o o o o o o o o";
  9344. read_hi = " 0 0 1 0 1 0 0 0",
  9345. "a15 a14 a13 a12 a11 a10 a9 a8",
  9346. " a7 a6 a5 a4 a3 a2 a1 a0",
  9347. " o o o o o o o o";
  9348. loadpage_lo = " 0 1 0 0 0 0 0 0",
  9349. " x x x x x x x x",
  9350. " x a6 a5 a4 a3 a2 a1 a0",
  9351. " i i i i i i i i";
  9352. loadpage_hi = " 0 1 0 0 1 0 0 0",
  9353. " x x x x x x x x",
  9354. " x a6 a5 a4 a3 a2 a1 a0",
  9355. " i i i i i i i i";
  9356. writepage = " 0 1 0 0 1 1 0 0",
  9357. "a15 a14 a13 a12 a11 a10 a9 a8",
  9358. " a7 x x x x x x x",
  9359. " x x x x x x x x";
  9360. load_ext_addr = " 0 1 0 0 1 1 0 1",
  9361. " 0 0 0 0 0 0 0 0",
  9362. " 0 0 0 0 0 0 0 a16",
  9363. " 0 0 0 0 0 0 0 0";
  9364. mode = 0x41;
  9365. delay = 10;
  9366. blocksize = 256;
  9367. readsize = 256;
  9368. ;
  9369. memory "lfuse"
  9370. size = 1;
  9371. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  9372. "x x x x x x x x i i i i i i i i";
  9373. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  9374. "x x x x x x x x o o o o o o o o";
  9375. min_write_delay = 9000;
  9376. max_write_delay = 9000;
  9377. ;
  9378. memory "hfuse"
  9379. size = 1;
  9380. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  9381. "x x x x x x x x i i i i i i i i";
  9382. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  9383. "x x x x x x x x o o o o o o o o";
  9384. min_write_delay = 9000;
  9385. max_write_delay = 9000;
  9386. ;
  9387. memory "efuse"
  9388. size = 1;
  9389. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  9390. "x x x x x x x x x x x x x i i i";
  9391. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  9392. "x x x x x x x x o o o o o o o o";
  9393. min_write_delay = 9000;
  9394. max_write_delay = 9000;
  9395. ;
  9396. memory "lock"
  9397. size = 1;
  9398. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  9399. "x x x x x x x x x x o o o o o o";
  9400. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  9401. "x x x x x x x x 1 1 i i i i i i";
  9402. min_write_delay = 9000;
  9403. max_write_delay = 9000;
  9404. ;
  9405. memory "calibration"
  9406. size = 1;
  9407. read = "0 0 1 1 1 0 0 0 x x x x x x x x",
  9408. "0 0 0 0 0 0 0 0 o o o o o o o o";
  9409. ;
  9410. memory "signature"
  9411. size = 3;
  9412. read = "0 0 1 1 0 0 0 0 x x x x x x x x",
  9413. "x x x x x x a1 a0 o o o o o o o o";
  9414. ;
  9415. ;
  9416. #------------------------------------------------------------
  9417. # ATmega2561
  9418. #------------------------------------------------------------
  9419. part
  9420. id = "m2561";
  9421. desc = "ATMEGA2561";
  9422. signature = 0x1e 0x98 0x02;
  9423. has_jtag = yes;
  9424. # stk500_devcode = 0xB2;
  9425. # avr910_devcode = 0x43;
  9426. chip_erase_delay = 9000;
  9427. pagel = 0xD7;
  9428. bs2 = 0xA0;
  9429. reset = dedicated;
  9430. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  9431. "x x x x x x x x x x x x x x x x";
  9432. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 0 0 0 0 0",
  9433. "x x x x x x x x x x x x x x x x";
  9434. timeout = 200;
  9435. stabdelay = 100;
  9436. cmdexedelay = 25;
  9437. synchloops = 32;
  9438. bytedelay = 0;
  9439. pollindex = 3;
  9440. pollvalue = 0x53;
  9441. predelay = 1;
  9442. postdelay = 1;
  9443. pollmethod = 1;
  9444. pp_controlstack =
  9445. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  9446. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  9447. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  9448. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x02;
  9449. hventerstabdelay = 100;
  9450. progmodedelay = 0;
  9451. latchcycles = 5;
  9452. togglevtg = 1;
  9453. poweroffdelay = 15;
  9454. resetdelayms = 1;
  9455. resetdelayus = 0;
  9456. hvleavestabdelay = 15;
  9457. chiperasepulsewidth = 0;
  9458. chiperasepolltimeout = 10;
  9459. programfusepulsewidth = 0;
  9460. programfusepolltimeout = 5;
  9461. programlockpulsewidth = 0;
  9462. programlockpolltimeout = 5;
  9463. idr = 0x31;
  9464. spmcr = 0x57;
  9465. rampz = 0x3b;
  9466. allowfullpagebitstream = no;
  9467. memory "eeprom"
  9468. paged = no; /* leave this "no" */
  9469. page_size = 8; /* for parallel programming */
  9470. size = 4096;
  9471. min_write_delay = 9000;
  9472. max_write_delay = 9000;
  9473. readback_p1 = 0x00;
  9474. readback_p2 = 0x00;
  9475. read = " 1 0 1 0 0 0 0 0",
  9476. " x x x x a11 a10 a9 a8",
  9477. " a7 a6 a5 a4 a3 a2 a1 a0",
  9478. " o o o o o o o o";
  9479. write = " 1 1 0 0 0 0 0 0",
  9480. " x x x x a11 a10 a9 a8",
  9481. " a7 a6 a5 a4 a3 a2 a1 a0",
  9482. " i i i i i i i i";
  9483. loadpage_lo = " 1 1 0 0 0 0 0 1",
  9484. " 0 0 0 0 0 0 0 0",
  9485. " 0 0 0 0 0 a2 a1 a0",
  9486. " i i i i i i i i";
  9487. writepage = " 1 1 0 0 0 0 1 0",
  9488. " 0 0 x x a11 a10 a9 a8",
  9489. " a7 a6 a5 a4 a3 0 0 0",
  9490. " x x x x x x x x";
  9491. mode = 0x41;
  9492. delay = 10;
  9493. blocksize = 8;
  9494. readsize = 256;
  9495. ;
  9496. memory "flash"
  9497. paged = yes;
  9498. size = 262144;
  9499. page_size = 256;
  9500. num_pages = 1024;
  9501. min_write_delay = 4500;
  9502. max_write_delay = 4500;
  9503. readback_p1 = 0x00;
  9504. readback_p2 = 0x00;
  9505. read_lo = " 0 0 1 0 0 0 0 0",
  9506. "a15 a14 a13 a12 a11 a10 a9 a8",
  9507. " a7 a6 a5 a4 a3 a2 a1 a0",
  9508. " o o o o o o o o";
  9509. read_hi = " 0 0 1 0 1 0 0 0",
  9510. "a15 a14 a13 a12 a11 a10 a9 a8",
  9511. " a7 a6 a5 a4 a3 a2 a1 a0",
  9512. " o o o o o o o o";
  9513. loadpage_lo = " 0 1 0 0 0 0 0 0",
  9514. " x x x x x x x x",
  9515. " x a6 a5 a4 a3 a2 a1 a0",
  9516. " i i i i i i i i";
  9517. loadpage_hi = " 0 1 0 0 1 0 0 0",
  9518. " x x x x x x x x",
  9519. " x a6 a5 a4 a3 a2 a1 a0",
  9520. " i i i i i i i i";
  9521. writepage = " 0 1 0 0 1 1 0 0",
  9522. "a15 a14 a13 a12 a11 a10 a9 a8",
  9523. " a7 x x x x x x x",
  9524. " x x x x x x x x";
  9525. load_ext_addr = " 0 1 0 0 1 1 0 1",
  9526. " 0 0 0 0 0 0 0 0",
  9527. " 0 0 0 0 0 0 0 a16",
  9528. " 0 0 0 0 0 0 0 0";
  9529. mode = 0x41;
  9530. delay = 10;
  9531. blocksize = 256;
  9532. readsize = 256;
  9533. ;
  9534. memory "lfuse"
  9535. size = 1;
  9536. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  9537. "x x x x x x x x i i i i i i i i";
  9538. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  9539. "x x x x x x x x o o o o o o o o";
  9540. min_write_delay = 9000;
  9541. max_write_delay = 9000;
  9542. ;
  9543. memory "hfuse"
  9544. size = 1;
  9545. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  9546. "x x x x x x x x i i i i i i i i";
  9547. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  9548. "x x x x x x x x o o o o o o o o";
  9549. min_write_delay = 9000;
  9550. max_write_delay = 9000;
  9551. ;
  9552. memory "efuse"
  9553. size = 1;
  9554. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  9555. "x x x x x x x x x x x x x i i i";
  9556. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  9557. "x x x x x x x x o o o o o o o o";
  9558. min_write_delay = 9000;
  9559. max_write_delay = 9000;
  9560. ;
  9561. memory "lock"
  9562. size = 1;
  9563. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  9564. "x x x x x x x x x x o o o o o o";
  9565. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  9566. "x x x x x x x x 1 1 i i i i i i";
  9567. min_write_delay = 9000;
  9568. max_write_delay = 9000;
  9569. ;
  9570. memory "calibration"
  9571. size = 1;
  9572. read = "0 0 1 1 1 0 0 0 x x x x x x x x",
  9573. "0 0 0 0 0 0 0 0 o o o o o o o o";
  9574. ;
  9575. memory "signature"
  9576. size = 3;
  9577. read = "0 0 1 1 0 0 0 0 x x x x x x x x",
  9578. "x x x x x x a1 a0 o o o o o o o o";
  9579. ;
  9580. ;
  9581. #------------------------------------------------------------
  9582. # ATmega128RFA1
  9583. #------------------------------------------------------------
  9584. # Identical to ATmega2561 but half the ROM
  9585. part
  9586. id = "m128rfa1";
  9587. desc = "ATMEGA128RFA1";
  9588. signature = 0x1e 0xa7 0x01;
  9589. has_jtag = yes;
  9590. # stk500_devcode = 0xB2;
  9591. # avr910_devcode = 0x43;
  9592. chip_erase_delay = 9000;
  9593. pagel = 0xD7;
  9594. bs2 = 0xE2;
  9595. reset = dedicated;
  9596. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  9597. "x x x x x x x x x x x x x x x x";
  9598. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 0 0 0 0 0",
  9599. "x x x x x x x x x x x x x x x x";
  9600. timeout = 200;
  9601. stabdelay = 100;
  9602. cmdexedelay = 25;
  9603. synchloops = 32;
  9604. bytedelay = 0;
  9605. pollindex = 3;
  9606. pollvalue = 0x53;
  9607. predelay = 1;
  9608. postdelay = 1;
  9609. pollmethod = 1;
  9610. pp_controlstack =
  9611. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  9612. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  9613. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  9614. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x02;
  9615. hventerstabdelay = 100;
  9616. progmodedelay = 0;
  9617. latchcycles = 5;
  9618. togglevtg = 1;
  9619. poweroffdelay = 15;
  9620. resetdelayms = 1;
  9621. resetdelayus = 0;
  9622. hvleavestabdelay = 15;
  9623. chiperasepulsewidth = 0;
  9624. chiperasepolltimeout = 10;
  9625. programfusepulsewidth = 0;
  9626. programfusepolltimeout = 5;
  9627. programlockpulsewidth = 0;
  9628. programlockpolltimeout = 5;
  9629. idr = 0x31;
  9630. spmcr = 0x57;
  9631. rampz = 0x3b;
  9632. allowfullpagebitstream = no;
  9633. memory "eeprom"
  9634. paged = no; /* leave this "no" */
  9635. page_size = 8; /* for parallel programming */
  9636. size = 4096;
  9637. min_write_delay = 9000;
  9638. max_write_delay = 9000;
  9639. readback_p1 = 0x00;
  9640. readback_p2 = 0x00;
  9641. read = " 1 0 1 0 0 0 0 0",
  9642. " x x x x a11 a10 a9 a8",
  9643. " a7 a6 a5 a4 a3 a2 a1 a0",
  9644. " o o o o o o o o";
  9645. write = " 1 1 0 0 0 0 0 0",
  9646. " x x x x a11 a10 a9 a8",
  9647. " a7 a6 a5 a4 a3 a2 a1 a0",
  9648. " i i i i i i i i";
  9649. loadpage_lo = " 1 1 0 0 0 0 0 1",
  9650. " 0 0 0 0 0 0 0 0",
  9651. " 0 0 0 0 0 a2 a1 a0",
  9652. " i i i i i i i i";
  9653. writepage = " 1 1 0 0 0 0 1 0",
  9654. " 0 0 x x a11 a10 a9 a8",
  9655. " a7 a6 a5 a4 a3 0 0 0",
  9656. " x x x x x x x x";
  9657. mode = 0x41;
  9658. delay = 10;
  9659. blocksize = 8;
  9660. readsize = 256;
  9661. ;
  9662. memory "flash"
  9663. paged = yes;
  9664. size = 131072;
  9665. page_size = 256;
  9666. num_pages = 512;
  9667. min_write_delay = 4500;
  9668. max_write_delay = 4500;
  9669. readback_p1 = 0x00;
  9670. readback_p2 = 0x00;
  9671. read_lo = " 0 0 1 0 0 0 0 0",
  9672. "a15 a14 a13 a12 a11 a10 a9 a8",
  9673. " a7 a6 a5 a4 a3 a2 a1 a0",
  9674. " o o o o o o o o";
  9675. read_hi = " 0 0 1 0 1 0 0 0",
  9676. "a15 a14 a13 a12 a11 a10 a9 a8",
  9677. " a7 a6 a5 a4 a3 a2 a1 a0",
  9678. " o o o o o o o o";
  9679. loadpage_lo = " 0 1 0 0 0 0 0 0",
  9680. " x x x x x x x x",
  9681. " x a6 a5 a4 a3 a2 a1 a0",
  9682. " i i i i i i i i";
  9683. loadpage_hi = " 0 1 0 0 1 0 0 0",
  9684. " x x x x x x x x",
  9685. " x a6 a5 a4 a3 a2 a1 a0",
  9686. " i i i i i i i i";
  9687. writepage = " 0 1 0 0 1 1 0 0",
  9688. "a15 a14 a13 a12 a11 a10 a9 a8",
  9689. " a7 x x x x x x x",
  9690. " x x x x x x x x";
  9691. mode = 0x41;
  9692. delay = 10;
  9693. blocksize = 256;
  9694. readsize = 256;
  9695. ;
  9696. memory "lfuse"
  9697. size = 1;
  9698. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  9699. "x x x x x x x x i i i i i i i i";
  9700. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  9701. "x x x x x x x x o o o o o o o o";
  9702. min_write_delay = 9000;
  9703. max_write_delay = 9000;
  9704. ;
  9705. memory "hfuse"
  9706. size = 1;
  9707. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  9708. "x x x x x x x x i i i i i i i i";
  9709. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  9710. "x x x x x x x x o o o o o o o o";
  9711. min_write_delay = 9000;
  9712. max_write_delay = 9000;
  9713. ;
  9714. memory "efuse"
  9715. size = 1;
  9716. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  9717. "x x x x x x x x x x x x x i i i";
  9718. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  9719. "x x x x x x x x o o o o o o o o";
  9720. min_write_delay = 9000;
  9721. max_write_delay = 9000;
  9722. ;
  9723. memory "lock"
  9724. size = 1;
  9725. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  9726. "x x x x x x x x x x o o o o o o";
  9727. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  9728. "x x x x x x x x 1 1 i i i i i i";
  9729. min_write_delay = 9000;
  9730. max_write_delay = 9000;
  9731. ;
  9732. memory "calibration"
  9733. size = 1;
  9734. read = "0 0 1 1 1 0 0 0 x x x x x x x x",
  9735. "0 0 0 0 0 0 0 0 o o o o o o o o";
  9736. ;
  9737. memory "signature"
  9738. size = 3;
  9739. read = "0 0 1 1 0 0 0 0 x x x x x x x x",
  9740. "x x x x x x a1 a0 o o o o o o o o";
  9741. ;
  9742. ;
  9743. #------------------------------------------------------------
  9744. # ATtiny24
  9745. #------------------------------------------------------------
  9746. part
  9747. id = "t24";
  9748. desc = "ATtiny24";
  9749. has_debugwire = yes;
  9750. flash_instr = 0xB4, 0x07, 0x17;
  9751. eeprom_instr = 0xBB, 0xFF, 0xBB, 0xEE, 0xBB, 0xCC, 0xB2, 0x0D,
  9752. 0xBC, 0x07, 0xB4, 0x07, 0xBA, 0x0D, 0xBB, 0xBC,
  9753. 0x99, 0xE1, 0xBB, 0xAC;
  9754. ## no STK500 devcode in XML file, use the ATtiny45 one
  9755. stk500_devcode = 0x14;
  9756. ## avr910_devcode = ?;
  9757. ## Try the AT90S2313 devcode:
  9758. avr910_devcode = 0x20;
  9759. signature = 0x1e 0x91 0x0b;
  9760. reset = io;
  9761. chip_erase_delay = 4500;
  9762. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  9763. "x x x x x x x x x x x x x x x x";
  9764. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
  9765. "x x x x x x x x x x x x x x x x";
  9766. timeout = 200;
  9767. stabdelay = 100;
  9768. cmdexedelay = 25;
  9769. synchloops = 32;
  9770. bytedelay = 0;
  9771. pollindex = 3;
  9772. pollvalue = 0x53;
  9773. predelay = 1;
  9774. postdelay = 1;
  9775. pollmethod = 1;
  9776. hvsp_controlstack =
  9777. 0x4C, 0x0C, 0x1C, 0x2C, 0x3C, 0x64, 0x74, 0x66,
  9778. 0x68, 0x78, 0x68, 0x68, 0x7A, 0x6A, 0x68, 0x78,
  9779. 0x78, 0x7D, 0x6D, 0x0C, 0x80, 0x40, 0x20, 0x10,
  9780. 0x11, 0x08, 0x04, 0x02, 0x03, 0x08, 0x04, 0x0F;
  9781. hventerstabdelay = 100;
  9782. hvspcmdexedelay = 0;
  9783. synchcycles = 6;
  9784. latchcycles = 1;
  9785. togglevtg = 1;
  9786. poweroffdelay = 25;
  9787. resetdelayms = 0;
  9788. resetdelayus = 70;
  9789. hvleavestabdelay = 100;
  9790. resetdelay = 25;
  9791. chiperasepolltimeout = 40;
  9792. chiperasetime = 0;
  9793. programfusepolltimeout = 25;
  9794. programlockpolltimeout = 25;
  9795. memory "eeprom"
  9796. size = 128;
  9797. paged = no;
  9798. page_size = 4;
  9799. min_write_delay = 4000;
  9800. max_write_delay = 4500;
  9801. readback_p1 = 0xff;
  9802. readback_p2 = 0xff;
  9803. read = "1 0 1 0 0 0 0 0 0 0 0 x x x x x",
  9804. "x a6 a5 a4 a3 a2 a1 a0 o o o o o o o o";
  9805. write = "1 1 0 0 0 0 0 0 0 0 0 x x x x x",
  9806. "x a6 a5 a4 a3 a2 a1 a0 i i i i i i i i";
  9807. loadpage_lo = " 1 1 0 0 0 0 0 1",
  9808. " 0 0 0 0 0 0 0 0",
  9809. " 0 0 0 0 0 0 a1 a0",
  9810. " i i i i i i i i";
  9811. writepage = " 1 1 0 0 0 0 1 0",
  9812. " 0 0 x x x x x x",
  9813. " x a6 a5 a4 a3 a2 0 0",
  9814. " x x x x x x x x";
  9815. mode = 0x41;
  9816. delay = 6;
  9817. blocksize = 4;
  9818. readsize = 256;
  9819. ;
  9820. memory "flash"
  9821. paged = yes;
  9822. size = 2048;
  9823. page_size = 32;
  9824. num_pages = 64;
  9825. min_write_delay = 4500;
  9826. max_write_delay = 4500;
  9827. readback_p1 = 0xff;
  9828. readback_p2 = 0xff;
  9829. read_lo = " 0 0 1 0 0 0 0 0",
  9830. " 0 0 0 0 0 0 a9 a8",
  9831. " a7 a6 a5 a4 a3 a2 a1 a0",
  9832. " o o o o o o o o";
  9833. read_hi = " 0 0 1 0 1 0 0 0",
  9834. " 0 0 0 0 0 0 a9 a8",
  9835. " a7 a6 a5 a4 a3 a2 a1 a0",
  9836. " o o o o o o o o";
  9837. loadpage_lo = " 0 1 0 0 0 0 0 0",
  9838. " 0 0 0 x x x x x",
  9839. " x x x x a3 a2 a1 a0",
  9840. " i i i i i i i i";
  9841. loadpage_hi = " 0 1 0 0 1 0 0 0",
  9842. " 0 0 0 x x x x x",
  9843. " x x x x a3 a2 a1 a0",
  9844. " i i i i i i i i";
  9845. writepage = " 0 1 0 0 1 1 0 0",
  9846. " 0 0 0 0 0 0 a9 a8",
  9847. " a7 a6 a5 a4 x x x x",
  9848. " x x x x x x x x";
  9849. mode = 0x41;
  9850. delay = 6;
  9851. blocksize = 32;
  9852. readsize = 256;
  9853. ;
  9854. # ATtiny24 has Signature Bytes: 0x1E 0x91 0x0B.
  9855. memory "signature"
  9856. size = 3;
  9857. read = "0 0 1 1 0 0 0 0 0 0 0 x x x x x",
  9858. "x x x x x x a1 a0 o o o o o o o o";
  9859. ;
  9860. memory "lock"
  9861. size = 1;
  9862. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  9863. "x x x x x x x x x x x x x x i i";
  9864. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  9865. "0 0 0 0 0 0 0 0 o o o o o o o o";
  9866. min_write_delay = 9000;
  9867. max_write_delay = 9000;
  9868. ;
  9869. memory "lfuse"
  9870. size = 1;
  9871. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  9872. "x x x x x x x x i i i i i i i i";
  9873. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  9874. "x x x x x x x x o o o o o o o o";
  9875. min_write_delay = 9000;
  9876. max_write_delay = 9000;
  9877. ;
  9878. memory "hfuse"
  9879. size = 1;
  9880. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  9881. "x x x x x x x x i i i i i i i i";
  9882. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  9883. "x x x x x x x x o o o o o o o o";
  9884. min_write_delay = 9000;
  9885. max_write_delay = 9000;
  9886. ;
  9887. memory "efuse"
  9888. size = 1;
  9889. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  9890. "x x x x x x x x x x x x x x x i";
  9891. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  9892. "x x x x x x x x o o o o o o o o";
  9893. min_write_delay = 9000;
  9894. max_write_delay = 9000;
  9895. ;
  9896. memory "calibration"
  9897. size = 1;
  9898. read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
  9899. "0 0 0 0 0 0 0 a0 o o o o o o o o";
  9900. ;
  9901. ;
  9902. #------------------------------------------------------------
  9903. # ATtiny44
  9904. #------------------------------------------------------------
  9905. part
  9906. id = "t44";
  9907. desc = "ATtiny44";
  9908. has_debugwire = yes;
  9909. flash_instr = 0xB4, 0x07, 0x17;
  9910. eeprom_instr = 0xBB, 0xFF, 0xBB, 0xEE, 0xBB, 0xCC, 0xB2, 0x0D,
  9911. 0xBC, 0x07, 0xB4, 0x07, 0xBA, 0x0D, 0xBB, 0xBC,
  9912. 0x99, 0xE1, 0xBB, 0xAC;
  9913. ## no STK500 devcode in XML file, use the ATtiny45 one
  9914. stk500_devcode = 0x14;
  9915. ## avr910_devcode = ?;
  9916. ## Try the AT90S2313 devcode:
  9917. avr910_devcode = 0x20;
  9918. signature = 0x1e 0x92 0x07;
  9919. reset = io;
  9920. chip_erase_delay = 4500;
  9921. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  9922. "x x x x x x x x x x x x x x x x";
  9923. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
  9924. "x x x x x x x x x x x x x x x x";
  9925. timeout = 200;
  9926. stabdelay = 100;
  9927. cmdexedelay = 25;
  9928. synchloops = 32;
  9929. bytedelay = 0;
  9930. pollindex = 3;
  9931. pollvalue = 0x53;
  9932. predelay = 1;
  9933. postdelay = 1;
  9934. pollmethod = 1;
  9935. hvsp_controlstack =
  9936. 0x4C, 0x0C, 0x1C, 0x2C, 0x3C, 0x64, 0x74, 0x66,
  9937. 0x68, 0x78, 0x68, 0x68, 0x7A, 0x6A, 0x68, 0x78,
  9938. 0x78, 0x7D, 0x6D, 0x0C, 0x80, 0x40, 0x20, 0x10,
  9939. 0x11, 0x08, 0x04, 0x02, 0x03, 0x08, 0x04, 0x0F;
  9940. hventerstabdelay = 100;
  9941. hvspcmdexedelay = 0;
  9942. synchcycles = 6;
  9943. latchcycles = 1;
  9944. togglevtg = 1;
  9945. poweroffdelay = 25;
  9946. resetdelayms = 0;
  9947. resetdelayus = 70;
  9948. hvleavestabdelay = 100;
  9949. resetdelay = 25;
  9950. chiperasepolltimeout = 40;
  9951. chiperasetime = 0;
  9952. programfusepolltimeout = 25;
  9953. programlockpolltimeout = 25;
  9954. memory "eeprom"
  9955. size = 256;
  9956. paged = no;
  9957. page_size = 4;
  9958. min_write_delay = 4000;
  9959. max_write_delay = 4500;
  9960. readback_p1 = 0xff;
  9961. readback_p2 = 0xff;
  9962. read = "1 0 1 0 0 0 0 0 0 0 0 x x x x x",
  9963. "a7 a6 a5 a4 a3 a2 a1 a0 o o o o o o o o";
  9964. write = "1 1 0 0 0 0 0 0 0 0 0 x x x x x",
  9965. "a7 a6 a5 a4 a3 a2 a1 a0 i i i i i i i i";
  9966. loadpage_lo = " 1 1 0 0 0 0 0 1",
  9967. " 0 0 0 0 0 0 0 0",
  9968. " 0 0 0 0 0 0 a1 a0",
  9969. " i i i i i i i i";
  9970. writepage = " 1 1 0 0 0 0 1 0",
  9971. " 0 0 x x x x x x",
  9972. " x a6 a5 a4 a3 a2 0 0",
  9973. " x x x x x x x x";
  9974. mode = 0x41;
  9975. delay = 6;
  9976. blocksize = 4;
  9977. readsize = 256;
  9978. ;
  9979. memory "flash"
  9980. paged = yes;
  9981. size = 4096;
  9982. page_size = 64;
  9983. num_pages = 64;
  9984. min_write_delay = 4500;
  9985. max_write_delay = 4500;
  9986. readback_p1 = 0xff;
  9987. readback_p2 = 0xff;
  9988. read_lo = " 0 0 1 0 0 0 0 0",
  9989. " 0 0 0 0 0 a10 a9 a8",
  9990. " a7 a6 a5 a4 a3 a2 a1 a0",
  9991. " o o o o o o o o";
  9992. read_hi = " 0 0 1 0 1 0 0 0",
  9993. " 0 0 0 0 0 a10 a9 a8",
  9994. " a7 a6 a5 a4 a3 a2 a1 a0",
  9995. " o o o o o o o o";
  9996. loadpage_lo = " 0 1 0 0 0 0 0 0",
  9997. " 0 0 0 x x x x x",
  9998. " x x x a4 a3 a2 a1 a0",
  9999. " i i i i i i i i";
  10000. loadpage_hi = " 0 1 0 0 1 0 0 0",
  10001. " 0 0 0 x x x x x",
  10002. " x x x a4 a3 a2 a1 a0",
  10003. " i i i i i i i i";
  10004. writepage = " 0 1 0 0 1 1 0 0",
  10005. " 0 0 0 0 0 a10 a9 a8",
  10006. " a7 a6 a5 x x x x x",
  10007. " x x x x x x x x";
  10008. mode = 0x41;
  10009. delay = 6;
  10010. blocksize = 32;
  10011. readsize = 256;
  10012. ;
  10013. # ATtiny44 has Signature Bytes: 0x1E 0x92 0x07.
  10014. memory "signature"
  10015. size = 3;
  10016. read = "0 0 1 1 0 0 0 0 0 0 0 x x x x x",
  10017. "x x x x x x a1 a0 o o o o o o o o";
  10018. ;
  10019. memory "lock"
  10020. size = 1;
  10021. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  10022. "x x x x x x x x x x x x x x i i";
  10023. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  10024. "0 0 0 0 0 0 0 0 o o o o o o o o";
  10025. min_write_delay = 9000;
  10026. max_write_delay = 9000;
  10027. ;
  10028. memory "lfuse"
  10029. size = 1;
  10030. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  10031. "x x x x x x x x i i i i i i i i";
  10032. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  10033. "x x x x x x x x o o o o o o o o";
  10034. min_write_delay = 9000;
  10035. max_write_delay = 9000;
  10036. ;
  10037. memory "hfuse"
  10038. size = 1;
  10039. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  10040. "x x x x x x x x i i i i i i i i";
  10041. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  10042. "x x x x x x x x o o o o o o o o";
  10043. min_write_delay = 9000;
  10044. max_write_delay = 9000;
  10045. ;
  10046. memory "efuse"
  10047. size = 1;
  10048. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  10049. "x x x x x x x x x x x x x x x i";
  10050. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  10051. "x x x x x x x x o o o o o o o o";
  10052. min_write_delay = 9000;
  10053. max_write_delay = 9000;
  10054. ;
  10055. memory "calibration"
  10056. size = 1;
  10057. read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
  10058. "0 0 0 0 0 0 0 a0 o o o o o o o o";
  10059. ;
  10060. ;
  10061. #------------------------------------------------------------
  10062. # ATtiny84
  10063. #------------------------------------------------------------
  10064. part
  10065. id = "t84";
  10066. desc = "ATtiny84";
  10067. has_debugwire = yes;
  10068. flash_instr = 0xB4, 0x07, 0x17;
  10069. eeprom_instr = 0xBB, 0xFF, 0xBB, 0xEE, 0xBB, 0xCC, 0xB2, 0x0D,
  10070. 0xBC, 0x07, 0xB4, 0x07, 0xBA, 0x0D, 0xBB, 0xBC,
  10071. 0x99, 0xE1, 0xBB, 0xAC;
  10072. ## no STK500 devcode in XML file, use the ATtiny45 one
  10073. stk500_devcode = 0x14;
  10074. ## avr910_devcode = ?;
  10075. ## Try the AT90S2313 devcode:
  10076. avr910_devcode = 0x20;
  10077. signature = 0x1e 0x93 0x0c;
  10078. reset = io;
  10079. chip_erase_delay = 4500;
  10080. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  10081. "x x x x x x x x x x x x x x x x";
  10082. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
  10083. "x x x x x x x x x x x x x x x x";
  10084. timeout = 200;
  10085. stabdelay = 100;
  10086. cmdexedelay = 25;
  10087. synchloops = 32;
  10088. bytedelay = 0;
  10089. pollindex = 3;
  10090. pollvalue = 0x53;
  10091. predelay = 1;
  10092. postdelay = 1;
  10093. pollmethod = 1;
  10094. hvsp_controlstack =
  10095. 0x4C, 0x0C, 0x1C, 0x2C, 0x3C, 0x64, 0x74, 0x66,
  10096. 0x68, 0x78, 0x68, 0x68, 0x7A, 0x6A, 0x68, 0x78,
  10097. 0x78, 0x7D, 0x6D, 0x0C, 0x80, 0x40, 0x20, 0x10,
  10098. 0x11, 0x08, 0x04, 0x02, 0x03, 0x08, 0x04, 0x0F;
  10099. hventerstabdelay = 100;
  10100. hvspcmdexedelay = 0;
  10101. synchcycles = 6;
  10102. latchcycles = 1;
  10103. togglevtg = 1;
  10104. poweroffdelay = 25;
  10105. resetdelayms = 0;
  10106. resetdelayus = 70;
  10107. hvleavestabdelay = 100;
  10108. resetdelay = 25;
  10109. chiperasepolltimeout = 40;
  10110. chiperasetime = 0;
  10111. programfusepolltimeout = 25;
  10112. programlockpolltimeout = 25;
  10113. memory "eeprom"
  10114. size = 512;
  10115. paged = no;
  10116. page_size = 4;
  10117. min_write_delay = 4000;
  10118. max_write_delay = 4500;
  10119. readback_p1 = 0xff;
  10120. readback_p2 = 0xff;
  10121. read = "1 0 1 0 0 0 0 0 0 0 0 x x x x a8",
  10122. "a7 a6 a5 a4 a3 a2 a1 a0 o o o o o o o o";
  10123. write = "1 1 0 0 0 0 0 0 0 0 0 x x x x a8",
  10124. "a8 a6 a5 a4 a3 a2 a1 a0 i i i i i i i i";
  10125. loadpage_lo = " 1 1 0 0 0 0 0 1",
  10126. " 0 0 0 0 0 0 0 0",
  10127. " 0 0 0 0 0 0 a1 a0",
  10128. " i i i i i i i i";
  10129. writepage = " 1 1 0 0 0 0 1 0",
  10130. " 0 0 x x x x x x",
  10131. " x a6 a5 a4 a3 a2 0 0",
  10132. " x x x x x x x x";
  10133. mode = 0x41;
  10134. delay = 6;
  10135. blocksize = 4;
  10136. readsize = 256;
  10137. ;
  10138. memory "flash"
  10139. paged = yes;
  10140. size = 8192;
  10141. page_size = 64;
  10142. num_pages = 128;
  10143. min_write_delay = 4500;
  10144. max_write_delay = 4500;
  10145. readback_p1 = 0xff;
  10146. readback_p2 = 0xff;
  10147. read_lo = " 0 0 1 0 0 0 0 0",
  10148. " 0 0 0 0 a11 a10 a9 a8",
  10149. " a7 a6 a5 a4 a3 a2 a1 a0",
  10150. " o o o o o o o o";
  10151. read_hi = " 0 0 1 0 1 0 0 0",
  10152. " 0 0 0 0 a11 a10 a9 a8",
  10153. " a7 a6 a5 a4 a3 a2 a1 a0",
  10154. " o o o o o o o o";
  10155. loadpage_lo = " 0 1 0 0 0 0 0 0",
  10156. " 0 0 0 x x x x x",
  10157. " x x x a4 a3 a2 a1 a0",
  10158. " i i i i i i i i";
  10159. loadpage_hi = " 0 1 0 0 1 0 0 0",
  10160. " 0 0 0 x x x x x",
  10161. " x x x a4 a3 a2 a1 a0",
  10162. " i i i i i i i i";
  10163. writepage = " 0 1 0 0 1 1 0 0",
  10164. " 0 0 0 0 a11 a10 a9 a8",
  10165. " a7 a6 a5 x x x x x",
  10166. " x x x x x x x x";
  10167. mode = 0x41;
  10168. delay = 6;
  10169. blocksize = 32;
  10170. readsize = 256;
  10171. ;
  10172. # ATtiny84 has Signature Bytes: 0x1E 0x93 0x0C.
  10173. memory "signature"
  10174. size = 3;
  10175. read = "0 0 1 1 0 0 0 0 0 0 0 x x x x x",
  10176. "x x x x x x a1 a0 o o o o o o o o";
  10177. ;
  10178. memory "lock"
  10179. size = 1;
  10180. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  10181. "x x x x x x x x x x x x x x i i";
  10182. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  10183. "0 0 0 0 0 0 0 0 o o o o o o o o";
  10184. min_write_delay = 9000;
  10185. max_write_delay = 9000;
  10186. ;
  10187. memory "lfuse"
  10188. size = 1;
  10189. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  10190. "x x x x x x x x i i i i i i i i";
  10191. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  10192. "x x x x x x x x o o o o o o o o";
  10193. min_write_delay = 9000;
  10194. max_write_delay = 9000;
  10195. ;
  10196. memory "hfuse"
  10197. size = 1;
  10198. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  10199. "x x x x x x x x i i i i i i i i";
  10200. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  10201. "x x x x x x x x o o o o o o o o";
  10202. min_write_delay = 9000;
  10203. max_write_delay = 9000;
  10204. ;
  10205. memory "efuse"
  10206. size = 1;
  10207. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  10208. "x x x x x x x x x x x x x x x i";
  10209. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  10210. "x x x x x x x x o o o o o o o o";
  10211. min_write_delay = 9000;
  10212. max_write_delay = 9000;
  10213. ;
  10214. memory "calibration"
  10215. size = 1;
  10216. read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
  10217. "0 0 0 0 0 0 0 a0 o o o o o o o o";
  10218. ;
  10219. ;
  10220. #------------------------------------------------------------
  10221. # ATmega32u4
  10222. #------------------------------------------------------------
  10223. part
  10224. id = "m32u4";
  10225. desc = "ATmega32U4";
  10226. signature = 0x1e 0x95 0x87;
  10227. has_jtag = yes;
  10228. # stk500_devcode = 0xB2;
  10229. # avr910_devcode = 0x43;
  10230. chip_erase_delay = 9000;
  10231. pagel = 0xD7;
  10232. bs2 = 0xA0;
  10233. reset = dedicated;
  10234. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  10235. "x x x x x x x x x x x x x x x x";
  10236. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 0 0 0 0 0",
  10237. "x x x x x x x x x x x x x x x x";
  10238. timeout = 200;
  10239. stabdelay = 100;
  10240. cmdexedelay = 25;
  10241. synchloops = 32;
  10242. bytedelay = 0;
  10243. pollindex = 3;
  10244. pollvalue = 0x53;
  10245. predelay = 1;
  10246. postdelay = 1;
  10247. pollmethod = 1;
  10248. pp_controlstack =
  10249. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  10250. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  10251. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  10252. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  10253. hventerstabdelay = 100;
  10254. progmodedelay = 0;
  10255. latchcycles = 5;
  10256. togglevtg = 1;
  10257. poweroffdelay = 15;
  10258. resetdelayms = 1;
  10259. resetdelayus = 0;
  10260. hvleavestabdelay = 15;
  10261. chiperasepulsewidth = 0;
  10262. chiperasepolltimeout = 10;
  10263. programfusepulsewidth = 0;
  10264. programfusepolltimeout = 5;
  10265. programlockpulsewidth = 0;
  10266. programlockpolltimeout = 5;
  10267. idr = 0x31;
  10268. spmcr = 0x57;
  10269. rampz = 0x3b;
  10270. allowfullpagebitstream = no;
  10271. memory "eeprom"
  10272. paged = no; /* leave this "no" */
  10273. page_size = 8; /* for parallel programming */
  10274. size = 1024;
  10275. min_write_delay = 9000;
  10276. max_write_delay = 9000;
  10277. readback_p1 = 0x00;
  10278. readback_p2 = 0x00;
  10279. read = " 1 0 1 0 0 0 0 0",
  10280. " x x x x x a10 a9 a8",
  10281. " a7 a6 a5 a4 a3 a2 a1 a0",
  10282. " o o o o o o o o";
  10283. write = " 1 1 0 0 0 0 0 0",
  10284. " x x x x x a10 a9 a8",
  10285. " a7 a6 a5 a4 a3 a2 a1 a0",
  10286. " i i i i i i i i";
  10287. loadpage_lo = " 1 1 0 0 0 0 0 1",
  10288. " 0 0 0 0 0 0 0 0",
  10289. " 0 0 0 0 0 a2 a1 a0",
  10290. " i i i i i i i i";
  10291. writepage = " 1 1 0 0 0 0 1 0",
  10292. " 0 0 x x x a10 a9 a8",
  10293. " a7 a6 a5 a4 a3 0 0 0",
  10294. " x x x x x x x x";
  10295. mode = 0x41;
  10296. delay = 10;
  10297. blocksize = 8;
  10298. readsize = 256;
  10299. ;
  10300. memory "flash"
  10301. paged = yes;
  10302. size = 32768;
  10303. page_size = 128;
  10304. num_pages = 256;
  10305. min_write_delay = 4500;
  10306. max_write_delay = 4500;
  10307. readback_p1 = 0x00;
  10308. readback_p2 = 0x00;
  10309. read_lo = " 0 0 1 0 0 0 0 0",
  10310. " 0 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. read_hi = " 0 0 1 0 1 0 0 0",
  10314. " 0 a14 a13 a12 a11 a10 a9 a8",
  10315. " a7 a6 a5 a4 a3 a2 a1 a0",
  10316. " o o o o o o o o";
  10317. loadpage_lo = " 0 1 0 0 0 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. loadpage_hi = " 0 1 0 0 1 0 0 0",
  10322. " x x x x x x x x",
  10323. " x x a5 a4 a3 a2 a1 a0",
  10324. " i i i i i i i i";
  10325. writepage = " 0 1 0 0 1 1 0 0",
  10326. " a15 a14 a13 a12 a11 a10 a9 a8",
  10327. " a7 a6 x x x x x x",
  10328. " x x x x x x x x";
  10329. mode = 0x41;
  10330. delay = 6;
  10331. blocksize = 128;
  10332. readsize = 256;
  10333. ;
  10334. memory "lfuse"
  10335. size = 1;
  10336. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  10337. "x x x x x x x x i i i i i i i i";
  10338. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  10339. "x x x x x x x x o o o o o o o o";
  10340. min_write_delay = 9000;
  10341. max_write_delay = 9000;
  10342. ;
  10343. memory "hfuse"
  10344. size = 1;
  10345. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  10346. "x x x x x x x x i i i i i i i i";
  10347. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  10348. "x x x x x x x x o o o o o o o o";
  10349. min_write_delay = 9000;
  10350. max_write_delay = 9000;
  10351. ;
  10352. memory "efuse"
  10353. size = 1;
  10354. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  10355. "x x x x x x x x x x x x i i i i";
  10356. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  10357. "x x x x x x x x o o o o o o o o";
  10358. min_write_delay = 9000;
  10359. max_write_delay = 9000;
  10360. ;
  10361. memory "lock"
  10362. size = 1;
  10363. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  10364. "x x x x x x x x x x o o o o o o";
  10365. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  10366. "x x x x x x x x 1 1 i i i i i i";
  10367. min_write_delay = 9000;
  10368. max_write_delay = 9000;
  10369. ;
  10370. memory "calibration"
  10371. size = 1;
  10372. read = "0 0 1 1 1 0 0 0 x x x x x x x x",
  10373. "0 0 0 0 0 0 0 0 o o o o o o o o";
  10374. ;
  10375. memory "signature"
  10376. size = 3;
  10377. read = "0 0 1 1 0 0 0 0 x x x x x x x x",
  10378. "x x x x x x a1 a0 o o o o o o o o";
  10379. ;
  10380. ;
  10381. #------------------------------------------------------------
  10382. # AT90USB646
  10383. #------------------------------------------------------------
  10384. part
  10385. id = "usb646";
  10386. desc = "AT90USB646";
  10387. signature = 0x1e 0x96 0x82;
  10388. has_jtag = yes;
  10389. # stk500_devcode = 0xB2;
  10390. # avr910_devcode = 0x43;
  10391. chip_erase_delay = 9000;
  10392. pagel = 0xD7;
  10393. bs2 = 0xA0;
  10394. reset = dedicated;
  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 0 0 0 0 0",
  10398. "x x x x x x x x x x x x x x x x";
  10399. timeout = 200;
  10400. stabdelay = 100;
  10401. cmdexedelay = 25;
  10402. synchloops = 32;
  10403. bytedelay = 0;
  10404. pollindex = 3;
  10405. pollvalue = 0x53;
  10406. predelay = 1;
  10407. postdelay = 1;
  10408. pollmethod = 1;
  10409. pp_controlstack =
  10410. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  10411. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  10412. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  10413. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  10414. hventerstabdelay = 100;
  10415. progmodedelay = 0;
  10416. latchcycles = 5;
  10417. togglevtg = 1;
  10418. poweroffdelay = 15;
  10419. resetdelayms = 1;
  10420. resetdelayus = 0;
  10421. hvleavestabdelay = 15;
  10422. chiperasepulsewidth = 0;
  10423. chiperasepolltimeout = 10;
  10424. programfusepulsewidth = 0;
  10425. programfusepolltimeout = 5;
  10426. programlockpulsewidth = 0;
  10427. programlockpolltimeout = 5;
  10428. idr = 0x31;
  10429. spmcr = 0x57;
  10430. rampz = 0x3b;
  10431. allowfullpagebitstream = no;
  10432. memory "eeprom"
  10433. paged = no; /* leave this "no" */
  10434. page_size = 8; /* for parallel programming */
  10435. size = 2048;
  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. " x x x x x 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. " x x x x x 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 a2 a1 a0",
  10451. " i i i i i i i i";
  10452. writepage = " 1 1 0 0 0 0 1 0",
  10453. " 0 0 x x x a10 a9 a8",
  10454. " a7 a6 a5 a4 a3 0 0 0",
  10455. " x x x x x x x x";
  10456. mode = 0x41;
  10457. delay = 10;
  10458. blocksize = 8;
  10459. readsize = 256;
  10460. ;
  10461. memory "flash"
  10462. paged = yes;
  10463. size = 65536;
  10464. page_size = 256;
  10465. num_pages = 256;
  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. " 0 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. " 0 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 a6 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 a6 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. " 0 a14 a13 a12 a11 a10 a9 a8",
  10488. " a7 x x x x x x x",
  10489. " x x x x x x x x";
  10490. mode = 0x41;
  10491. delay = 6;
  10492. blocksize = 256;
  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 x x x x 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 x x x 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 x x x 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. # AT90USB647
  10544. #------------------------------------------------------------
  10545. # identical to AT90USB646
  10546. part
  10547. id = "usb647";
  10548. desc = "AT90USB647";
  10549. signature = 0x1e 0x96 0x82;
  10550. has_jtag = yes;
  10551. # stk500_devcode = 0xB2;
  10552. # avr910_devcode = 0x43;
  10553. chip_erase_delay = 9000;
  10554. pagel = 0xD7;
  10555. bs2 = 0xA0;
  10556. reset = dedicated;
  10557. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  10558. "x x x x x x x x x x x x x x x x";
  10559. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 0 0 0 0 0",
  10560. "x x x x x x x x x x x x x x x x";
  10561. timeout = 200;
  10562. stabdelay = 100;
  10563. cmdexedelay = 25;
  10564. synchloops = 32;
  10565. bytedelay = 0;
  10566. pollindex = 3;
  10567. pollvalue = 0x53;
  10568. predelay = 1;
  10569. postdelay = 1;
  10570. pollmethod = 1;
  10571. pp_controlstack =
  10572. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  10573. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  10574. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  10575. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  10576. hventerstabdelay = 100;
  10577. progmodedelay = 0;
  10578. latchcycles = 5;
  10579. togglevtg = 1;
  10580. poweroffdelay = 15;
  10581. resetdelayms = 1;
  10582. resetdelayus = 0;
  10583. hvleavestabdelay = 15;
  10584. chiperasepulsewidth = 0;
  10585. chiperasepolltimeout = 10;
  10586. programfusepulsewidth = 0;
  10587. programfusepolltimeout = 5;
  10588. programlockpulsewidth = 0;
  10589. programlockpolltimeout = 5;
  10590. idr = 0x31;
  10591. spmcr = 0x57;
  10592. rampz = 0x3b;
  10593. allowfullpagebitstream = no;
  10594. memory "eeprom"
  10595. paged = no; /* leave this "no" */
  10596. page_size = 8; /* for parallel programming */
  10597. size = 2048;
  10598. min_write_delay = 9000;
  10599. max_write_delay = 9000;
  10600. readback_p1 = 0x00;
  10601. readback_p2 = 0x00;
  10602. read = " 1 0 1 0 0 0 0 0",
  10603. " x x x x x a10 a9 a8",
  10604. " a7 a6 a5 a4 a3 a2 a1 a0",
  10605. " o o o o o o o o";
  10606. write = " 1 1 0 0 0 0 0 0",
  10607. " x x x x x a10 a9 a8",
  10608. " a7 a6 a5 a4 a3 a2 a1 a0",
  10609. " i i i i i i i i";
  10610. loadpage_lo = " 1 1 0 0 0 0 0 1",
  10611. " 0 0 0 0 0 0 0 0",
  10612. " 0 0 0 0 0 a2 a1 a0",
  10613. " i i i i i i i i";
  10614. writepage = " 1 1 0 0 0 0 1 0",
  10615. " 0 0 x x x a10 a9 a8",
  10616. " a7 a6 a5 a4 a3 0 0 0",
  10617. " x x x x x x x x";
  10618. mode = 0x41;
  10619. delay = 10;
  10620. blocksize = 8;
  10621. readsize = 256;
  10622. ;
  10623. memory "flash"
  10624. paged = yes;
  10625. size = 65536;
  10626. page_size = 256;
  10627. num_pages = 256;
  10628. min_write_delay = 4500;
  10629. max_write_delay = 4500;
  10630. readback_p1 = 0x00;
  10631. readback_p2 = 0x00;
  10632. read_lo = " 0 0 1 0 0 0 0 0",
  10633. " 0 a14 a13 a12 a11 a10 a9 a8",
  10634. " a7 a6 a5 a4 a3 a2 a1 a0",
  10635. " o o o o o o o o";
  10636. read_hi = " 0 0 1 0 1 0 0 0",
  10637. " 0 a14 a13 a12 a11 a10 a9 a8",
  10638. " a7 a6 a5 a4 a3 a2 a1 a0",
  10639. " o o o o o o o o";
  10640. loadpage_lo = " 0 1 0 0 0 0 0 0",
  10641. " x x x x x x x x",
  10642. " x a6 a5 a4 a3 a2 a1 a0",
  10643. " i i i i i i i i";
  10644. loadpage_hi = " 0 1 0 0 1 0 0 0",
  10645. " x x x x x x x x",
  10646. " x a6 a5 a4 a3 a2 a1 a0",
  10647. " i i i i i i i i";
  10648. writepage = " 0 1 0 0 1 1 0 0",
  10649. " 0 a14 a13 a12 a11 a10 a9 a8",
  10650. " a7 x x x x x x x",
  10651. " x x x x x x x x";
  10652. mode = 0x41;
  10653. delay = 6;
  10654. blocksize = 256;
  10655. readsize = 256;
  10656. ;
  10657. memory "lfuse"
  10658. size = 1;
  10659. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  10660. "x x x x x x x x i i i i i i i i";
  10661. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  10662. "x x x x x x x x o o o o o o o o";
  10663. min_write_delay = 9000;
  10664. max_write_delay = 9000;
  10665. ;
  10666. memory "hfuse"
  10667. size = 1;
  10668. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  10669. "x x x x x x x x i i i i i i i i";
  10670. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  10671. "x x x x x x x x o o o o o o o o";
  10672. min_write_delay = 9000;
  10673. max_write_delay = 9000;
  10674. ;
  10675. memory "efuse"
  10676. size = 1;
  10677. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  10678. "x x x x x x x x x x x x i i i i";
  10679. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  10680. "x x x x x x x x o o o o o o o o";
  10681. min_write_delay = 9000;
  10682. max_write_delay = 9000;
  10683. ;
  10684. memory "lock"
  10685. size = 1;
  10686. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  10687. "x x x x x x x x x x o o o o o o";
  10688. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  10689. "x x x x x x x x 1 1 i i i i i i";
  10690. min_write_delay = 9000;
  10691. max_write_delay = 9000;
  10692. ;
  10693. memory "calibration"
  10694. size = 1;
  10695. read = "0 0 1 1 1 0 0 0 x x x x x x x x",
  10696. "0 0 0 0 0 0 0 0 o o o o o o o o";
  10697. ;
  10698. memory "signature"
  10699. size = 3;
  10700. read = "0 0 1 1 0 0 0 0 x x x x x x x x",
  10701. "x x x x x x a1 a0 o o o o o o o o";
  10702. ;
  10703. ;
  10704. #------------------------------------------------------------
  10705. # AT90USB1286
  10706. #------------------------------------------------------------
  10707. part
  10708. id = "usb1286";
  10709. desc = "AT90USB1286";
  10710. signature = 0x1e 0x97 0x82;
  10711. has_jtag = yes;
  10712. # stk500_devcode = 0xB2;
  10713. # avr910_devcode = 0x43;
  10714. chip_erase_delay = 9000;
  10715. pagel = 0xD7;
  10716. bs2 = 0xA0;
  10717. reset = dedicated;
  10718. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  10719. "x x x x x x x x x x x x x x x x";
  10720. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 0 0 0 0 0",
  10721. "x x x x x x x x x x x x x x x x";
  10722. timeout = 200;
  10723. stabdelay = 100;
  10724. cmdexedelay = 25;
  10725. synchloops = 32;
  10726. bytedelay = 0;
  10727. pollindex = 3;
  10728. pollvalue = 0x53;
  10729. predelay = 1;
  10730. postdelay = 1;
  10731. pollmethod = 1;
  10732. pp_controlstack =
  10733. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  10734. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  10735. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  10736. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  10737. hventerstabdelay = 100;
  10738. progmodedelay = 0;
  10739. latchcycles = 5;
  10740. togglevtg = 1;
  10741. poweroffdelay = 15;
  10742. resetdelayms = 1;
  10743. resetdelayus = 0;
  10744. hvleavestabdelay = 15;
  10745. chiperasepulsewidth = 0;
  10746. chiperasepolltimeout = 10;
  10747. programfusepulsewidth = 0;
  10748. programfusepolltimeout = 5;
  10749. programlockpulsewidth = 0;
  10750. programlockpolltimeout = 5;
  10751. idr = 0x31;
  10752. spmcr = 0x57;
  10753. rampz = 0x3b;
  10754. allowfullpagebitstream = no;
  10755. memory "eeprom"
  10756. paged = no; /* leave this "no" */
  10757. page_size = 8; /* for parallel programming */
  10758. size = 4096;
  10759. min_write_delay = 9000;
  10760. max_write_delay = 9000;
  10761. readback_p1 = 0x00;
  10762. readback_p2 = 0x00;
  10763. read = " 1 0 1 0 0 0 0 0",
  10764. " x x x x a11 a10 a9 a8",
  10765. " a7 a6 a5 a4 a3 a2 a1 a0",
  10766. " o o o o o o o o";
  10767. write = " 1 1 0 0 0 0 0 0",
  10768. " x x x x a11 a10 a9 a8",
  10769. " a7 a6 a5 a4 a3 a2 a1 a0",
  10770. " i i i i i i i i";
  10771. loadpage_lo = " 1 1 0 0 0 0 0 1",
  10772. " 0 0 0 0 0 0 0 0",
  10773. " 0 0 0 0 0 a2 a1 a0",
  10774. " i i i i i i i i";
  10775. writepage = " 1 1 0 0 0 0 1 0",
  10776. " 0 0 x x x a10 a9 a8",
  10777. " a7 a6 a5 a4 a3 0 0 0",
  10778. " x x x x x x x x";
  10779. mode = 0x41;
  10780. delay = 10;
  10781. blocksize = 8;
  10782. readsize = 256;
  10783. ;
  10784. memory "flash"
  10785. paged = yes;
  10786. size = 131072;
  10787. page_size = 256;
  10788. num_pages = 512;
  10789. min_write_delay = 4500;
  10790. max_write_delay = 4500;
  10791. readback_p1 = 0x00;
  10792. readback_p2 = 0x00;
  10793. read_lo = " 0 0 1 0 0 0 0 0",
  10794. "a15 a14 a13 a12 a11 a10 a9 a8",
  10795. " a7 a6 a5 a4 a3 a2 a1 a0",
  10796. " o o o o o o o o";
  10797. read_hi = " 0 0 1 0 1 0 0 0",
  10798. "a15 a14 a13 a12 a11 a10 a9 a8",
  10799. " a7 a6 a5 a4 a3 a2 a1 a0",
  10800. " o o o o o o o o";
  10801. loadpage_lo = " 0 1 0 0 0 0 0 0",
  10802. " x x x x x x x x",
  10803. " x a6 a5 a4 a3 a2 a1 a0",
  10804. " i i i i i i i i";
  10805. loadpage_hi = " 0 1 0 0 1 0 0 0",
  10806. " x x x x x x x x",
  10807. " x a6 a5 a4 a3 a2 a1 a0",
  10808. " i i i i i i i i";
  10809. writepage = " 0 1 0 0 1 1 0 0",
  10810. "a15 a14 a13 a12 a11 a10 a9 a8",
  10811. " a7 x x x x x x x",
  10812. " x x x x x x x x";
  10813. mode = 0x41;
  10814. delay = 6;
  10815. blocksize = 256;
  10816. readsize = 256;
  10817. ;
  10818. memory "lfuse"
  10819. size = 1;
  10820. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  10821. "x x x x x x x x i i i i i i i i";
  10822. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  10823. "x x x x x x x x o o o o o o o o";
  10824. min_write_delay = 9000;
  10825. max_write_delay = 9000;
  10826. ;
  10827. memory "hfuse"
  10828. size = 1;
  10829. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  10830. "x x x x x x x x i i i i i i i i";
  10831. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  10832. "x x x x x x x x o o o o o o o o";
  10833. min_write_delay = 9000;
  10834. max_write_delay = 9000;
  10835. ;
  10836. memory "efuse"
  10837. size = 1;
  10838. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  10839. "x x x x x x x x x x x x i i i i";
  10840. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  10841. "x x x x x x x x o o o o o o o o";
  10842. min_write_delay = 9000;
  10843. max_write_delay = 9000;
  10844. ;
  10845. memory "lock"
  10846. size = 1;
  10847. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  10848. "x x x x x x x x x x o o o o o o";
  10849. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  10850. "x x x x x x x x 1 1 i i i i i i";
  10851. min_write_delay = 9000;
  10852. max_write_delay = 9000;
  10853. ;
  10854. memory "calibration"
  10855. size = 1;
  10856. read = "0 0 1 1 1 0 0 0 x x x x x x x x",
  10857. "0 0 0 0 0 0 0 0 o o o o o o o o";
  10858. ;
  10859. memory "signature"
  10860. size = 3;
  10861. read = "0 0 1 1 0 0 0 0 x x x x x x x x",
  10862. "x x x x x x a1 a0 o o o o o o o o";
  10863. ;
  10864. ;
  10865. #------------------------------------------------------------
  10866. # AT90USB1287
  10867. #------------------------------------------------------------
  10868. # identical to AT90USB1286
  10869. part
  10870. id = "usb1287";
  10871. desc = "AT90USB1287";
  10872. signature = 0x1e 0x97 0x82;
  10873. has_jtag = yes;
  10874. # stk500_devcode = 0xB2;
  10875. # avr910_devcode = 0x43;
  10876. chip_erase_delay = 9000;
  10877. pagel = 0xD7;
  10878. bs2 = 0xA0;
  10879. reset = dedicated;
  10880. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  10881. "x x x x x x x x x x x x x x x x";
  10882. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 0 0 0 0 0",
  10883. "x x x x x x x x x x x x x x x x";
  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. rampz = 0x3b;
  10916. allowfullpagebitstream = no;
  10917. memory "eeprom"
  10918. paged = no; /* leave this "no" */
  10919. page_size = 8; /* for parallel programming */
  10920. size = 4096;
  10921. min_write_delay = 9000;
  10922. max_write_delay = 9000;
  10923. readback_p1 = 0x00;
  10924. readback_p2 = 0x00;
  10925. read = " 1 0 1 0 0 0 0 0",
  10926. " x x x x a11 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. " x x x x a11 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 x x x 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 = 131072;
  10949. page_size = 256;
  10950. num_pages = 512;
  10951. min_write_delay = 4500;
  10952. max_write_delay = 4500;
  10953. readback_p1 = 0x00;
  10954. readback_p2 = 0x00;
  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. " x x x x x x x x",
  10965. " x 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. " x x x x x x x x",
  10969. " x 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 x x x x x x x",
  10974. " x x x x x x x x";
  10975. mode = 0x41;
  10976. delay = 6;
  10977. blocksize = 256;
  10978. readsize = 256;
  10979. ;
  10980. memory "lfuse"
  10981. size = 1;
  10982. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  10983. "x x x x x x x x i i i i i i i i";
  10984. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  10985. "x x x x x x x x o o o o o o o o";
  10986. min_write_delay = 9000;
  10987. max_write_delay = 9000;
  10988. ;
  10989. memory "hfuse"
  10990. size = 1;
  10991. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  10992. "x x x x x x x x i i i i i i i i";
  10993. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  10994. "x x x x x x x x o o o o o o o o";
  10995. min_write_delay = 9000;
  10996. max_write_delay = 9000;
  10997. ;
  10998. memory "efuse"
  10999. size = 1;
  11000. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  11001. "x x x x x x x x x x x x i i i i";
  11002. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  11003. "x x x x x x x x o o o o o o o o";
  11004. min_write_delay = 9000;
  11005. max_write_delay = 9000;
  11006. ;
  11007. memory "lock"
  11008. size = 1;
  11009. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  11010. "x x x x x x x x x x o o o o o o";
  11011. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  11012. "x x x x x x x x 1 1 i i i i i i";
  11013. min_write_delay = 9000;
  11014. max_write_delay = 9000;
  11015. ;
  11016. memory "calibration"
  11017. size = 1;
  11018. read = "0 0 1 1 1 0 0 0 x x x x x x x x",
  11019. "0 0 0 0 0 0 0 0 o o o o o o o o";
  11020. ;
  11021. memory "signature"
  11022. size = 3;
  11023. read = "0 0 1 1 0 0 0 0 x x x x x x x x",
  11024. "x x x x x x a1 a0 o o o o o o o o";
  11025. ;
  11026. ;
  11027. #------------------------------------------------------------
  11028. # AT90USB162
  11029. #------------------------------------------------------------
  11030. part
  11031. id = "usb162";
  11032. desc = "AT90USB162";
  11033. has_jtag = no;
  11034. has_debugwire = yes;
  11035. signature = 0x1e 0x94 0x82;
  11036. chip_erase_delay = 9000;
  11037. reset = io;
  11038. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  11039. "x x x x x x x x x x x x x x x x";
  11040. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
  11041. "x x x x x x x x x x x x x x x x";
  11042. pagel = 0xD7;
  11043. bs2 = 0xC6;
  11044. timeout = 200;
  11045. stabdelay = 100;
  11046. cmdexedelay = 25;
  11047. synchloops = 32;
  11048. bytedelay = 0;
  11049. pollindex = 3;
  11050. pollvalue = 0x53;
  11051. predelay = 1;
  11052. postdelay = 1;
  11053. pollmethod = 1;
  11054. pp_controlstack =
  11055. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  11056. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  11057. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  11058. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  11059. hventerstabdelay = 100;
  11060. progmodedelay = 0;
  11061. latchcycles = 5;
  11062. togglevtg = 1;
  11063. poweroffdelay = 15;
  11064. resetdelayms = 1;
  11065. resetdelayus = 0;
  11066. hvleavestabdelay = 15;
  11067. chiperasepulsewidth = 0;
  11068. chiperasepolltimeout = 10;
  11069. programfusepulsewidth = 0;
  11070. programfusepolltimeout = 5;
  11071. programlockpulsewidth = 0;
  11072. programlockpolltimeout = 5;
  11073. memory "eeprom"
  11074. paged = no; /* leave this "no" */
  11075. page_size = 4; /* for parallel programming */
  11076. size = 512;
  11077. num_pages = 128;
  11078. min_write_delay = 9000;
  11079. max_write_delay = 9000;
  11080. readback_p1 = 0x00;
  11081. readback_p2 = 0x00;
  11082. read = " 1 0 1 0 0 0 0 0",
  11083. " 0 0 0 0 a11 a10 a9 a8",
  11084. " a7 a6 a5 a4 a3 a2 a1 a0",
  11085. " o o o o o o o o";
  11086. write = " 1 1 0 0 0 0 0 0",
  11087. " 0 0 0 0 a11 a10 a9 a8",
  11088. " a7 a6 a5 a4 a3 a2 a1 a0",
  11089. " i i i i i i i i";
  11090. loadpage_lo = " 1 1 0 0 0 0 0 1",
  11091. " 0 0 0 0 0 0 0 0",
  11092. " 0 0 0 0 0 0 a1 a0",
  11093. " i i i i i i i i";
  11094. writepage = " 1 1 0 0 0 0 1 0",
  11095. " 0 0 0 0 a11 a10 a9 a8",
  11096. " a7 a6 a5 a4 a3 a2 0 0",
  11097. " x x x x x x x x";
  11098. mode = 0x41;
  11099. delay = 20;
  11100. blocksize = 4;
  11101. readsize = 256;
  11102. ;
  11103. memory "flash"
  11104. paged = yes;
  11105. size = 16384;
  11106. page_size = 128;
  11107. num_pages = 128;
  11108. min_write_delay = 4500;
  11109. max_write_delay = 4500;
  11110. readback_p1 = 0x00;
  11111. readback_p2 = 0x00;
  11112. read_lo = " 0 0 1 0 0 0 0 0",
  11113. "a15 a14 a13 a12 a11 a10 a9 a8",
  11114. " a7 a6 a5 a4 a3 a2 a1 a0",
  11115. " o o o o o o o o";
  11116. read_hi = " 0 0 1 0 1 0 0 0",
  11117. "a15 a14 a13 a12 a11 a10 a9 a8",
  11118. " a7 a6 a5 a4 a3 a2 a1 a0",
  11119. " o o o o o o o o";
  11120. loadpage_lo = " 0 1 0 0 0 0 0 0",
  11121. " x x x x x x x x",
  11122. " x x a5 a4 a3 a2 a1 a0",
  11123. " i i i i i i i i";
  11124. loadpage_hi = " 0 1 0 0 1 0 0 0",
  11125. " x x x x x x x x",
  11126. " x x a5 a4 a3 a2 a1 a0",
  11127. " i i i i i i i i";
  11128. writepage = " 0 1 0 0 1 1 0 0",
  11129. "a15 a14 a13 a12 a11 a10 a9 a8",
  11130. " a7 a6 x x x x x x",
  11131. " x x x x x x x x";
  11132. mode = 0x41;
  11133. delay = 6;
  11134. blocksize = 128;
  11135. readsize = 256;
  11136. ;
  11137. memory "lfuse"
  11138. size = 1;
  11139. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  11140. "x x x x x x x x i i i i i i i i";
  11141. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  11142. "x x x x x x x x o o o o o o o o";
  11143. min_write_delay = 9000;
  11144. max_write_delay = 9000;
  11145. ;
  11146. memory "hfuse"
  11147. size = 1;
  11148. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  11149. "x x x x x x x x i i i i i i i i";
  11150. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  11151. "x x x x x x x x o o o o o o o o";
  11152. min_write_delay = 9000;
  11153. max_write_delay = 9000;
  11154. ;
  11155. memory "efuse"
  11156. size = 1;
  11157. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  11158. "x x x x x x x x i i i i i i i i";
  11159. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  11160. "x x x x x x x x o o o o o o o o";
  11161. min_write_delay = 9000;
  11162. max_write_delay = 9000;
  11163. ;
  11164. memory "lock"
  11165. size = 1;
  11166. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  11167. "x x x x x x x x x x o o o o o o";
  11168. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  11169. "x x x x x x x x 1 1 i i i i i i";
  11170. min_write_delay = 9000;
  11171. max_write_delay = 9000;
  11172. ;
  11173. memory "calibration"
  11174. size = 1;
  11175. read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
  11176. "0 0 0 0 0 0 0 0 o o o o o o o o";
  11177. ;
  11178. memory "signature"
  11179. size = 3;
  11180. read = "0 0 1 1 0 0 0 0 0 0 0 x x x x x",
  11181. "x x x x x x a1 a0 o o o o o o o o";
  11182. ;
  11183. ;
  11184. #------------------------------------------------------------
  11185. # AT90USB82
  11186. #------------------------------------------------------------
  11187. # Changes against AT90USB162 (beside IDs)
  11188. # memory "flash"
  11189. # size = 8192;
  11190. # num_pages = 64;
  11191. part
  11192. id = "usb82";
  11193. desc = "AT90USB82";
  11194. has_jtag = no;
  11195. has_debugwire = yes;
  11196. signature = 0x1e 0x93 0x82;
  11197. chip_erase_delay = 9000;
  11198. reset = io;
  11199. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  11200. "x x x x x x x x x x x x x x x x";
  11201. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
  11202. "x x x x x x x x x x x x x x x x";
  11203. pagel = 0xD7;
  11204. bs2 = 0xC6;
  11205. timeout = 200;
  11206. stabdelay = 100;
  11207. cmdexedelay = 25;
  11208. synchloops = 32;
  11209. bytedelay = 0;
  11210. pollindex = 3;
  11211. pollvalue = 0x53;
  11212. predelay = 1;
  11213. postdelay = 1;
  11214. pollmethod = 1;
  11215. pp_controlstack =
  11216. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  11217. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  11218. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  11219. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  11220. hventerstabdelay = 100;
  11221. progmodedelay = 0;
  11222. latchcycles = 5;
  11223. togglevtg = 1;
  11224. poweroffdelay = 15;
  11225. resetdelayms = 1;
  11226. resetdelayus = 0;
  11227. hvleavestabdelay = 15;
  11228. chiperasepulsewidth = 0;
  11229. chiperasepolltimeout = 10;
  11230. programfusepulsewidth = 0;
  11231. programfusepolltimeout = 5;
  11232. programlockpulsewidth = 0;
  11233. programlockpolltimeout = 5;
  11234. memory "eeprom"
  11235. paged = no; /* leave this "no" */
  11236. page_size = 4; /* for parallel programming */
  11237. size = 512;
  11238. num_pages = 128;
  11239. min_write_delay = 9000;
  11240. max_write_delay = 9000;
  11241. readback_p1 = 0x00;
  11242. readback_p2 = 0x00;
  11243. read = " 1 0 1 0 0 0 0 0",
  11244. " 0 0 0 0 a11 a10 a9 a8",
  11245. " a7 a6 a5 a4 a3 a2 a1 a0",
  11246. " o o o o o o o o";
  11247. write = " 1 1 0 0 0 0 0 0",
  11248. " 0 0 0 0 a11 a10 a9 a8",
  11249. " a7 a6 a5 a4 a3 a2 a1 a0",
  11250. " i i i i i i i i";
  11251. loadpage_lo = " 1 1 0 0 0 0 0 1",
  11252. " 0 0 0 0 0 0 0 0",
  11253. " 0 0 0 0 0 0 a1 a0",
  11254. " i i i i i i i i";
  11255. writepage = " 1 1 0 0 0 0 1 0",
  11256. " 0 0 0 0 a11 a10 a9 a8",
  11257. " a7 a6 a5 a4 a3 a2 0 0",
  11258. " x x x x x x x x";
  11259. mode = 0x41;
  11260. delay = 20;
  11261. blocksize = 4;
  11262. readsize = 256;
  11263. ;
  11264. memory "flash"
  11265. paged = yes;
  11266. size = 8192;
  11267. page_size = 128;
  11268. num_pages = 64;
  11269. min_write_delay = 4500;
  11270. max_write_delay = 4500;
  11271. readback_p1 = 0x00;
  11272. readback_p2 = 0x00;
  11273. read_lo = " 0 0 1 0 0 0 0 0",
  11274. "a15 a14 a13 a12 a11 a10 a9 a8",
  11275. " a7 a6 a5 a4 a3 a2 a1 a0",
  11276. " o o o o o o o o";
  11277. read_hi = " 0 0 1 0 1 0 0 0",
  11278. "a15 a14 a13 a12 a11 a10 a9 a8",
  11279. " a7 a6 a5 a4 a3 a2 a1 a0",
  11280. " o o o o o o o o";
  11281. loadpage_lo = " 0 1 0 0 0 0 0 0",
  11282. " x x x x x x x x",
  11283. " x x a5 a4 a3 a2 a1 a0",
  11284. " i i i i i i i i";
  11285. loadpage_hi = " 0 1 0 0 1 0 0 0",
  11286. " x x x x x x x x",
  11287. " x x a5 a4 a3 a2 a1 a0",
  11288. " i i i i i i i i";
  11289. writepage = " 0 1 0 0 1 1 0 0",
  11290. "a15 a14 a13 a12 a11 a10 a9 a8",
  11291. " a7 a6 x x x x x x",
  11292. " x x x x x x x x";
  11293. mode = 0x41;
  11294. delay = 6;
  11295. blocksize = 128;
  11296. readsize = 256;
  11297. ;
  11298. memory "lfuse"
  11299. size = 1;
  11300. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  11301. "x x x x x x x x i i i i i i i i";
  11302. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  11303. "x x x x x x x x o o o o o o o o";
  11304. min_write_delay = 9000;
  11305. max_write_delay = 9000;
  11306. ;
  11307. memory "hfuse"
  11308. size = 1;
  11309. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  11310. "x x x x x x x x i i i i i i i i";
  11311. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  11312. "x x x x x x x x o o o o o o o o";
  11313. min_write_delay = 9000;
  11314. max_write_delay = 9000;
  11315. ;
  11316. memory "efuse"
  11317. size = 1;
  11318. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  11319. "x x x x x x x x i i i i i i i i";
  11320. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  11321. "x x x x x x x x o o o o o o o o";
  11322. min_write_delay = 9000;
  11323. max_write_delay = 9000;
  11324. ;
  11325. memory "lock"
  11326. size = 1;
  11327. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  11328. "x x x x x x x x x x o o o o o o";
  11329. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  11330. "x x x x x x x x 1 1 i i i i i i";
  11331. min_write_delay = 9000;
  11332. max_write_delay = 9000;
  11333. ;
  11334. memory "calibration"
  11335. size = 1;
  11336. read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
  11337. "0 0 0 0 0 0 0 0 o o o o o o o o";
  11338. ;
  11339. memory "signature"
  11340. size = 3;
  11341. read = "0 0 1 1 0 0 0 0 0 0 0 x x x x x",
  11342. "x x x x x x a1 a0 o o o o o o o o";
  11343. ;
  11344. ;
  11345. #------------------------------------------------------------
  11346. # ATmega325
  11347. #------------------------------------------------------------
  11348. part
  11349. id = "m325";
  11350. desc = "ATMEGA325";
  11351. signature = 0x1e 0x95 0x05;
  11352. has_jtag = yes;
  11353. # stk500_devcode = 0x??; # No STK500v1 support?
  11354. # avr910_devcode = 0x??; # Try the ATmega16 one
  11355. avr910_devcode = 0x74;
  11356. pagel = 0xd7;
  11357. bs2 = 0xa0;
  11358. chip_erase_delay = 9000;
  11359. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  11360. "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0";
  11361. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 0 0 0 0 0",
  11362. "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0";
  11363. timeout = 200;
  11364. stabdelay = 100;
  11365. cmdexedelay = 25;
  11366. synchloops = 32;
  11367. bytedelay = 0;
  11368. pollindex = 3;
  11369. pollvalue = 0x53;
  11370. predelay = 1;
  11371. postdelay = 1;
  11372. pollmethod = 1;
  11373. pp_controlstack =
  11374. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  11375. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  11376. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  11377. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  11378. hventerstabdelay = 100;
  11379. progmodedelay = 0;
  11380. latchcycles = 5;
  11381. togglevtg = 1;
  11382. poweroffdelay = 15;
  11383. resetdelayms = 1;
  11384. resetdelayus = 0;
  11385. hvleavestabdelay = 15;
  11386. chiperasepulsewidth = 0;
  11387. chiperasepolltimeout = 10;
  11388. programfusepulsewidth = 0;
  11389. programfusepolltimeout = 5;
  11390. programlockpulsewidth = 0;
  11391. programlockpolltimeout = 5;
  11392. idr = 0x31;
  11393. spmcr = 0x57;
  11394. allowfullpagebitstream = no;
  11395. memory "eeprom"
  11396. paged = no; /* leave this "no" */
  11397. page_size = 4; /* for parallel programming */
  11398. size = 1024;
  11399. min_write_delay = 9000;
  11400. max_write_delay = 9000;
  11401. readback_p1 = 0xff;
  11402. readback_p2 = 0xff;
  11403. read = " 1 0 1 0 0 0 0 0",
  11404. " 0 0 0 0 0 0 a9 a8",
  11405. " a7 a6 a5 a4 a3 a2 a1 a0",
  11406. " o o o o o o o o";
  11407. write = " 1 1 0 0 0 0 0 0",
  11408. " 0 0 0 0 0 0 a9 a8",
  11409. " a7 a6 a5 a4 a3 a2 a1 a0",
  11410. " i i i i i i i i";
  11411. loadpage_lo = " 1 1 0 0 0 0 0 1",
  11412. " 0 0 0 0 0 0 0 0",
  11413. " 0 0 0 0 0 0 a1 a0",
  11414. " i i i i i i i i";
  11415. writepage = " 1 1 0 0 0 0 1 0",
  11416. " 0 0 0 0 0 0 a9 a8",
  11417. " a7 a6 a5 a4 a3 a2 0 0",
  11418. " x x x x x x x x";
  11419. mode = 0x41;
  11420. delay = 10;
  11421. blocksize = 4;
  11422. readsize = 256;
  11423. ;
  11424. memory "flash"
  11425. paged = yes;
  11426. size = 32768;
  11427. page_size = 128;
  11428. num_pages = 256;
  11429. min_write_delay = 4500;
  11430. max_write_delay = 4500;
  11431. readback_p1 = 0xff;
  11432. readback_p2 = 0xff;
  11433. read_lo = " 0 0 1 0 0 0 0 0",
  11434. " 0 a14 a13 a12 a11 a10 a9 a8",
  11435. " a7 a6 a5 a4 a3 a2 a1 a0",
  11436. " o o o o o o o o";
  11437. read_hi = " 0 0 1 0 1 0 0 0",
  11438. " 0 a14 a13 a12 a11 a10 a9 a8",
  11439. " a7 a6 a5 a4 a3 a2 a1 a0",
  11440. " o o o o o o o o";
  11441. loadpage_lo = " 0 1 0 0 0 0 0 0",
  11442. " 0 0 0 0 0 0 0 0",
  11443. " a7 a6 a5 a4 a3 a2 a1 a0",
  11444. " i i i i i i i i";
  11445. loadpage_hi = " 0 1 0 0 1 0 0 0",
  11446. " 0 0 0 0 0 0 0 0",
  11447. " a7 a6 a5 a4 a3 a2 a1 a0",
  11448. " i i i i i i i i";
  11449. writepage = " 0 1 0 0 1 1 0 0",
  11450. " 0 a14 a13 a12 a11 a10 a9 a8",
  11451. " a7 a6 a5 a4 a3 a2 a1 a0",
  11452. " x x x x x x x x";
  11453. mode = 0x41;
  11454. delay = 10;
  11455. blocksize = 128;
  11456. readsize = 256;
  11457. ;
  11458. memory "lock"
  11459. size = 1;
  11460. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  11461. "x x x x x x x x x x o o o o o o";
  11462. write = "1 0 1 0 1 1 0 0 1 1 1 0 0 0 0 0",
  11463. "0 0 0 0 0 0 0 0 1 1 i i i i i i";
  11464. min_write_delay = 9000;
  11465. max_write_delay = 9000;
  11466. ;
  11467. memory "lfuse"
  11468. size = 1;
  11469. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  11470. "0 0 0 0 0 0 0 0 o o o o o o o o";
  11471. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  11472. "0 0 0 0 0 0 0 0 i i i i i i i i";
  11473. min_write_delay = 9000;
  11474. max_write_delay = 9000;
  11475. ;
  11476. memory "hfuse"
  11477. size = 1;
  11478. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  11479. "0 0 0 0 0 0 0 0 o o o o o o o o";
  11480. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  11481. "0 0 0 0 0 0 0 0 i i i i i i i i";
  11482. min_write_delay = 9000;
  11483. max_write_delay = 9000;
  11484. ;
  11485. memory "efuse"
  11486. size = 1;
  11487. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  11488. "0 0 0 0 0 0 0 0 o o o o o o o o";
  11489. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  11490. "0 0 0 0 0 0 0 0 1 1 1 1 1 i i i";
  11491. min_write_delay = 9000;
  11492. max_write_delay = 9000;
  11493. ;
  11494. memory "signature"
  11495. size = 3;
  11496. read = "0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0",
  11497. "0 0 0 0 0 0 a1 a0 o o o o o o o o";
  11498. ;
  11499. memory "calibration"
  11500. size = 1;
  11501. read = "0 0 1 1 1 0 0 0 0 0 0 0 0 0 0 0",
  11502. "0 0 0 0 0 0 0 0 o o o o o o o o";
  11503. ;
  11504. ;
  11505. #------------------------------------------------------------
  11506. # ATmega645
  11507. #------------------------------------------------------------
  11508. part
  11509. id = "m645";
  11510. desc = "ATMEGA645";
  11511. signature = 0x1E 0x96 0x05;
  11512. has_jtag = yes;
  11513. # stk500_devcode = 0x??; # No STK500v1 support?
  11514. # avr910_devcode = 0x??; # Try the ATmega16 one
  11515. avr910_devcode = 0x74;
  11516. pagel = 0xd7;
  11517. bs2 = 0xa0;
  11518. chip_erase_delay = 9000;
  11519. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  11520. "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0";
  11521. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 0 0 0 0 0",
  11522. "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0";
  11523. timeout = 200;
  11524. stabdelay = 100;
  11525. cmdexedelay = 25;
  11526. synchloops = 32;
  11527. bytedelay = 0;
  11528. pollindex = 3;
  11529. pollvalue = 0x53;
  11530. predelay = 1;
  11531. postdelay = 1;
  11532. pollmethod = 1;
  11533. pp_controlstack =
  11534. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  11535. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  11536. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  11537. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  11538. hventerstabdelay = 100;
  11539. progmodedelay = 0;
  11540. latchcycles = 5;
  11541. togglevtg = 1;
  11542. poweroffdelay = 15;
  11543. resetdelayms = 1;
  11544. resetdelayus = 0;
  11545. hvleavestabdelay = 15;
  11546. chiperasepulsewidth = 0;
  11547. chiperasepolltimeout = 10;
  11548. programfusepulsewidth = 0;
  11549. programfusepolltimeout = 5;
  11550. programlockpulsewidth = 0;
  11551. programlockpolltimeout = 5;
  11552. idr = 0x31;
  11553. spmcr = 0x57;
  11554. allowfullpagebitstream = no;
  11555. memory "eeprom"
  11556. paged = no; /* leave this "no" */
  11557. page_size = 8; /* for parallel programming */
  11558. size = 2048;
  11559. min_write_delay = 9000;
  11560. max_write_delay = 9000;
  11561. readback_p1 = 0xff;
  11562. readback_p2 = 0xff;
  11563. read = " 1 0 1 0 0 0 0 0",
  11564. " 0 0 0 0 0 a10 a9 a8",
  11565. " a7 a6 a5 a4 a3 a2 a1 a0",
  11566. " o o o o o o o o";
  11567. write = " 1 1 0 0 0 0 0 0",
  11568. " 0 0 0 0 0 a10 a9 a8",
  11569. " a7 a6 a5 a4 a3 a2 a1 a0",
  11570. " i i i i i i i i";
  11571. loadpage_lo = " 1 1 0 0 0 0 0 1",
  11572. " 0 0 0 0 0 0 0 0",
  11573. " 0 0 0 0 0 a2 a1 a0",
  11574. " i i i i i i i i";
  11575. writepage = " 1 1 0 0 0 0 1 0",
  11576. " 0 0 0 0 0 a10 a9 a8",
  11577. " a7 a6 a5 a4 a3 0 0 0",
  11578. " x x x x x x x x";
  11579. mode = 0x41;
  11580. delay = 10;
  11581. blocksize = 8;
  11582. readsize = 256;
  11583. ;
  11584. memory "flash"
  11585. paged = yes;
  11586. size = 65536;
  11587. page_size = 256;
  11588. num_pages = 256;
  11589. min_write_delay = 4500;
  11590. max_write_delay = 4500;
  11591. readback_p1 = 0xff;
  11592. readback_p2 = 0xff;
  11593. read_lo = " 0 0 1 0 0 0 0 0",
  11594. " a15 a14 a13 a12 a11 a10 a9 a8",
  11595. " a7 a6 a5 a4 a3 a2 a1 a0",
  11596. " o o o o o o o o";
  11597. read_hi = " 0 0 1 0 1 0 0 0",
  11598. " a15 a14 a13 a12 a11 a10 a9 a8",
  11599. " a7 a6 a5 a4 a3 a2 a1 a0",
  11600. " o o o o o o o o";
  11601. loadpage_lo = " 0 1 0 0 0 0 0 0",
  11602. " 0 0 0 0 0 0 0 0",
  11603. " a7 a6 a5 a4 a3 a2 a1 a0",
  11604. " i i i i i i i i";
  11605. loadpage_hi = " 0 1 0 0 1 0 0 0",
  11606. " 0 0 0 0 0 0 0 0",
  11607. " a7 a6 a5 a4 a3 a2 a1 a0",
  11608. " i i i i i i i i";
  11609. writepage = " 0 1 0 0 1 1 0 0",
  11610. " a15 a14 a13 a12 a11 a10 a9 a8",
  11611. " a7 a6 a5 a4 a3 a2 a1 a0",
  11612. " 0 0 0 0 0 0 0 0";
  11613. mode = 0x41;
  11614. delay = 10;
  11615. blocksize = 128;
  11616. readsize = 256;
  11617. ;
  11618. memory "lock"
  11619. size = 1;
  11620. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  11621. "x x x x x x x x x x o o o o o o";
  11622. write = "1 0 1 0 1 1 0 0 1 1 1 0 0 0 0 0",
  11623. "0 0 0 0 0 0 0 0 1 1 i i i i i i";
  11624. min_write_delay = 9000;
  11625. max_write_delay = 9000;
  11626. ;
  11627. memory "lfuse"
  11628. size = 1;
  11629. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  11630. "0 0 0 0 0 0 0 0 o o o o o o o o";
  11631. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  11632. "0 0 0 0 0 0 0 0 i i i i i i i i";
  11633. min_write_delay = 9000;
  11634. max_write_delay = 9000;
  11635. ;
  11636. memory "hfuse"
  11637. size = 1;
  11638. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  11639. "0 0 0 0 0 0 0 0 o o o o o o o o";
  11640. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  11641. "0 0 0 0 0 0 0 0 i i i i i i i i";
  11642. min_write_delay = 9000;
  11643. max_write_delay = 9000;
  11644. ;
  11645. memory "efuse"
  11646. size = 1;
  11647. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  11648. "0 0 0 0 0 0 0 0 o o o o o o o o";
  11649. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  11650. "0 0 0 0 0 0 0 0 1 1 1 1 1 i i i";
  11651. min_write_delay = 9000;
  11652. max_write_delay = 9000;
  11653. ;
  11654. memory "signature"
  11655. size = 3;
  11656. read = "0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0",
  11657. "0 0 0 0 0 0 a1 a0 o o o o o o o o";
  11658. ;
  11659. memory "calibration"
  11660. size = 1;
  11661. read = "0 0 1 1 1 0 0 0 0 0 0 0 0 0 0 0",
  11662. "0 0 0 0 0 0 0 0 o o o o o o o o";
  11663. ;
  11664. ;
  11665. #------------------------------------------------------------
  11666. # ATmega3250
  11667. #------------------------------------------------------------
  11668. part
  11669. id = "m3250";
  11670. desc = "ATMEGA3250";
  11671. signature = 0x1E 0x95 0x06;
  11672. has_jtag = yes;
  11673. # stk500_devcode = 0x??; # No STK500v1 support?
  11674. # avr910_devcode = 0x??; # Try the ATmega16 one
  11675. avr910_devcode = 0x74;
  11676. pagel = 0xd7;
  11677. bs2 = 0xa0;
  11678. chip_erase_delay = 9000;
  11679. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  11680. "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0";
  11681. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 0 0 0 0 0",
  11682. "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0";
  11683. timeout = 200;
  11684. stabdelay = 100;
  11685. cmdexedelay = 25;
  11686. synchloops = 32;
  11687. bytedelay = 0;
  11688. pollindex = 3;
  11689. pollvalue = 0x53;
  11690. predelay = 1;
  11691. postdelay = 1;
  11692. pollmethod = 1;
  11693. pp_controlstack =
  11694. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  11695. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  11696. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  11697. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  11698. hventerstabdelay = 100;
  11699. progmodedelay = 0;
  11700. latchcycles = 5;
  11701. togglevtg = 1;
  11702. poweroffdelay = 15;
  11703. resetdelayms = 1;
  11704. resetdelayus = 0;
  11705. hvleavestabdelay = 15;
  11706. chiperasepulsewidth = 0;
  11707. chiperasepolltimeout = 10;
  11708. programfusepulsewidth = 0;
  11709. programfusepolltimeout = 5;
  11710. programlockpulsewidth = 0;
  11711. programlockpolltimeout = 5;
  11712. idr = 0x31;
  11713. spmcr = 0x57;
  11714. allowfullpagebitstream = no;
  11715. memory "eeprom"
  11716. paged = no; /* leave this "no" */
  11717. page_size = 4; /* for parallel programming */
  11718. size = 1024;
  11719. min_write_delay = 9000;
  11720. max_write_delay = 9000;
  11721. readback_p1 = 0xff;
  11722. readback_p2 = 0xff;
  11723. read = " 1 0 1 0 0 0 0 0",
  11724. " 0 0 0 0 0 0 a9 a8",
  11725. " a7 a6 a5 a4 a3 a2 a1 a0",
  11726. " o o o o o o o o";
  11727. write = " 1 1 0 0 0 0 0 0",
  11728. " 0 0 0 0 0 0 a9 a8",
  11729. " a7 a6 a5 a4 a3 a2 a1 a0",
  11730. " i i i i i i i i";
  11731. loadpage_lo = " 1 1 0 0 0 0 0 1",
  11732. " 0 0 0 0 0 0 0 0",
  11733. " 0 0 0 0 0 0 a1 a0",
  11734. " i i i i i i i i";
  11735. writepage = " 1 1 0 0 0 0 1 0",
  11736. " 0 0 0 0 0 0 a9 a8",
  11737. " a7 a6 a5 a4 a3 a2 0 0",
  11738. " x x x x x x x x";
  11739. mode = 0x41;
  11740. delay = 10;
  11741. blocksize = 4;
  11742. readsize = 256;
  11743. ;
  11744. memory "flash"
  11745. paged = yes;
  11746. size = 32768;
  11747. page_size = 128;
  11748. num_pages = 256;
  11749. min_write_delay = 4500;
  11750. max_write_delay = 4500;
  11751. readback_p1 = 0xff;
  11752. readback_p2 = 0xff;
  11753. read_lo = " 0 0 1 0 0 0 0 0",
  11754. " 0 a14 a13 a12 a11 a10 a9 a8",
  11755. " a7 a6 a5 a4 a3 a2 a1 a0",
  11756. " o o o o o o o o";
  11757. read_hi = " 0 0 1 0 1 0 0 0",
  11758. " 0 a14 a13 a12 a11 a10 a9 a8",
  11759. " a7 a6 a5 a4 a3 a2 a1 a0",
  11760. " o o o o o o o o";
  11761. loadpage_lo = " 0 1 0 0 0 0 0 0",
  11762. " 0 0 0 0 0 0 0 0",
  11763. " a7 a6 a5 a4 a3 a2 a1 a0",
  11764. " i i i i i i i i";
  11765. loadpage_hi = " 0 1 0 0 1 0 0 0",
  11766. " 0 0 0 0 0 0 0 0",
  11767. " a7 a6 a5 a4 a3 a2 a1 a0",
  11768. " i i i i i i i i";
  11769. writepage = " 0 1 0 0 1 1 0 0",
  11770. " 0 a14 a13 a12 a11 a10 a9 a8",
  11771. " a7 a6 a5 a4 a3 a2 a1 a0",
  11772. " x x x x x x x x";
  11773. mode = 0x41;
  11774. delay = 10;
  11775. blocksize = 128;
  11776. readsize = 256;
  11777. ;
  11778. memory "lock"
  11779. size = 1;
  11780. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  11781. "x x x x x x x x x x o o o o o o";
  11782. write = "1 0 1 0 1 1 0 0 1 1 1 0 0 0 0 0",
  11783. "0 0 0 0 0 0 0 0 1 1 i i i i i i";
  11784. min_write_delay = 9000;
  11785. max_write_delay = 9000;
  11786. ;
  11787. memory "lfuse"
  11788. size = 1;
  11789. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  11790. "0 0 0 0 0 0 0 0 o o o o o o o o";
  11791. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  11792. "0 0 0 0 0 0 0 0 i i i i i i i i";
  11793. min_write_delay = 9000;
  11794. max_write_delay = 9000;
  11795. ;
  11796. memory "hfuse"
  11797. size = 1;
  11798. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  11799. "0 0 0 0 0 0 0 0 o o o o o o o o";
  11800. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  11801. "0 0 0 0 0 0 0 0 i i i i i i i i";
  11802. min_write_delay = 9000;
  11803. max_write_delay = 9000;
  11804. ;
  11805. memory "efuse"
  11806. size = 1;
  11807. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  11808. "0 0 0 0 0 0 0 0 o o o o o o o o";
  11809. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  11810. "0 0 0 0 0 0 0 0 1 1 1 1 1 i i i";
  11811. min_write_delay = 9000;
  11812. max_write_delay = 9000;
  11813. ;
  11814. memory "signature"
  11815. size = 3;
  11816. read = "0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0",
  11817. "0 0 0 0 0 0 a1 a0 o o o o o o o o";
  11818. ;
  11819. memory "calibration"
  11820. size = 1;
  11821. read = "0 0 1 1 1 0 0 0 0 0 0 0 0 0 0 0",
  11822. "0 0 0 0 0 0 0 0 o o o o o o o o";
  11823. ;
  11824. ;
  11825. #------------------------------------------------------------
  11826. # ATmega6450
  11827. #------------------------------------------------------------
  11828. part
  11829. id = "m6450";
  11830. desc = "ATMEGA6450";
  11831. signature = 0x1E 0x96 0x06;
  11832. has_jtag = yes;
  11833. # stk500_devcode = 0x??; # No STK500v1 support?
  11834. # avr910_devcode = 0x??; # Try the ATmega16 one
  11835. avr910_devcode = 0x74;
  11836. pagel = 0xd7;
  11837. bs2 = 0xa0;
  11838. chip_erase_delay = 9000;
  11839. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  11840. "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0";
  11841. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 0 0 0 0 0",
  11842. "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0";
  11843. timeout = 200;
  11844. stabdelay = 100;
  11845. cmdexedelay = 25;
  11846. synchloops = 32;
  11847. bytedelay = 0;
  11848. pollindex = 3;
  11849. pollvalue = 0x53;
  11850. predelay = 1;
  11851. postdelay = 1;
  11852. pollmethod = 1;
  11853. pp_controlstack =
  11854. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  11855. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  11856. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  11857. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  11858. hventerstabdelay = 100;
  11859. progmodedelay = 0;
  11860. latchcycles = 5;
  11861. togglevtg = 1;
  11862. poweroffdelay = 15;
  11863. resetdelayms = 1;
  11864. resetdelayus = 0;
  11865. hvleavestabdelay = 15;
  11866. chiperasepulsewidth = 0;
  11867. chiperasepolltimeout = 10;
  11868. programfusepulsewidth = 0;
  11869. programfusepolltimeout = 5;
  11870. programlockpulsewidth = 0;
  11871. programlockpolltimeout = 5;
  11872. idr = 0x31;
  11873. spmcr = 0x57;
  11874. allowfullpagebitstream = no;
  11875. memory "eeprom"
  11876. paged = no; /* leave this "no" */
  11877. page_size = 8; /* for parallel programming */
  11878. size = 2048;
  11879. min_write_delay = 9000;
  11880. max_write_delay = 9000;
  11881. readback_p1 = 0xff;
  11882. readback_p2 = 0xff;
  11883. read = " 1 0 1 0 0 0 0 0",
  11884. " 0 0 0 0 0 a10 a9 a8",
  11885. " a7 a6 a5 a4 a3 a2 a1 a0",
  11886. " o o o o o o o o";
  11887. write = " 1 1 0 0 0 0 0 0",
  11888. " 0 0 0 0 0 a10 a9 a8",
  11889. " a7 a6 a5 a4 a3 a2 a1 a0",
  11890. " i i i i i i i i";
  11891. loadpage_lo = " 1 1 0 0 0 0 0 1",
  11892. " 0 0 0 0 0 0 0 0",
  11893. " 0 0 0 0 0 a2 a1 a0",
  11894. " i i i i i i i i";
  11895. writepage = " 1 1 0 0 0 0 1 0",
  11896. " 0 0 0 0 0 a10 a9 a8",
  11897. " a7 a6 a5 a4 a3 0 0 0",
  11898. " x x x x x x x x";
  11899. mode = 0x41;
  11900. delay = 10;
  11901. blocksize = 4;
  11902. readsize = 256;
  11903. ;
  11904. memory "flash"
  11905. paged = yes;
  11906. size = 65536;
  11907. page_size = 256;
  11908. num_pages = 256;
  11909. min_write_delay = 4500;
  11910. max_write_delay = 4500;
  11911. readback_p1 = 0xff;
  11912. readback_p2 = 0xff;
  11913. read_lo = " 0 0 1 0 0 0 0 0",
  11914. " a15 a14 a13 a12 a11 a10 a9 a8",
  11915. " a7 a6 a5 a4 a3 a2 a1 a0",
  11916. " o o o o o o o o";
  11917. read_hi = " 0 0 1 0 1 0 0 0",
  11918. " a15 a14 a13 a12 a11 a10 a9 a8",
  11919. " a7 a6 a5 a4 a3 a2 a1 a0",
  11920. " o o o o o o o o";
  11921. loadpage_lo = " 0 1 0 0 0 0 0 0",
  11922. " 0 0 0 0 0 0 0 0",
  11923. " a7 a6 a5 a4 a3 a2 a1 a0",
  11924. " i i i i i i i i";
  11925. loadpage_hi = " 0 1 0 0 1 0 0 0",
  11926. " 0 0 0 0 0 0 0 0",
  11927. " a7 a6 a5 a4 a3 a2 a1 a0",
  11928. " i i i i i i i i";
  11929. writepage = " 0 1 0 0 1 1 0 0",
  11930. " a15 a14 a13 a12 a11 a10 a9 a8",
  11931. " a7 a6 a5 a4 a3 a2 a1 a0",
  11932. " 0 0 0 0 0 0 0 0";
  11933. mode = 0x41;
  11934. delay = 10;
  11935. blocksize = 128;
  11936. readsize = 256;
  11937. ;
  11938. memory "lock"
  11939. size = 1;
  11940. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  11941. "x x x x x x x x x x o o o o o o";
  11942. write = "1 0 1 0 1 1 0 0 1 1 1 0 0 0 0 0",
  11943. "0 0 0 0 0 0 0 0 1 1 i i i i i i";
  11944. min_write_delay = 9000;
  11945. max_write_delay = 9000;
  11946. ;
  11947. memory "lfuse"
  11948. size = 1;
  11949. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  11950. "0 0 0 0 0 0 0 0 o o o o o o o o";
  11951. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  11952. "0 0 0 0 0 0 0 0 i i i i i i i i";
  11953. min_write_delay = 9000;
  11954. max_write_delay = 9000;
  11955. ;
  11956. memory "hfuse"
  11957. size = 1;
  11958. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  11959. "0 0 0 0 0 0 0 0 o o o o o o o o";
  11960. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  11961. "0 0 0 0 0 0 0 0 i i i i i i i i";
  11962. min_write_delay = 9000;
  11963. max_write_delay = 9000;
  11964. ;
  11965. memory "efuse"
  11966. size = 1;
  11967. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  11968. "0 0 0 0 0 0 0 0 o o o o o o o o";
  11969. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  11970. "0 0 0 0 0 0 0 0 1 1 1 1 1 i i i";
  11971. min_write_delay = 9000;
  11972. max_write_delay = 9000;
  11973. ;
  11974. memory "signature"
  11975. size = 3;
  11976. read = "0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0",
  11977. "0 0 0 0 0 0 a1 a0 o o o o o o o o";
  11978. ;
  11979. memory "calibration"
  11980. size = 1;
  11981. read = "0 0 1 1 1 0 0 0 0 0 0 0 0 0 0 0",
  11982. "0 0 0 0 0 0 0 0 o o o o o o o o";
  11983. ;
  11984. ;
  11985. #------------------------------------------------------------
  11986. # ATXMEGA64A1
  11987. #------------------------------------------------------------
  11988. part
  11989. id = "x64a1";
  11990. desc = "ATXMEGA64A1";
  11991. signature = 0x1e 0x96 0x4e;
  11992. has_jtag = yes;
  11993. has_pdi = yes;
  11994. nvm_base = 0x01c0;
  11995. memory "eeprom"
  11996. size = 0x0800;
  11997. offset = 0x08c0000;
  11998. page_size = 0x20;
  11999. readsize = 0x100;
  12000. ;
  12001. memory "application"
  12002. size = 0x00010000;
  12003. offset = 0x0800000;
  12004. page_size = 0x100;
  12005. readsize = 0x100;
  12006. ;
  12007. memory "apptable"
  12008. size = 0x00001000;
  12009. offset = 0x0080f000;
  12010. page_size = 0x100;
  12011. readsize = 0x100;
  12012. ;
  12013. memory "boot"
  12014. size = 0x00001000;
  12015. offset = 0x00810000;
  12016. page_size = 0x100;
  12017. readsize = 0x100;
  12018. ;
  12019. memory "flash"
  12020. size = 0x00011000;
  12021. offset = 0x0800000;
  12022. page_size = 0x100;
  12023. readsize = 0x100;
  12024. ;
  12025. memory "prodsig"
  12026. size = 0x200;
  12027. offset = 0x8e0200;
  12028. page_size = 0x100;
  12029. readsize = 0x100;
  12030. ;
  12031. memory "usersig"
  12032. size = 0x200;
  12033. offset = 0x8e0400;
  12034. page_size = 0x100;
  12035. readsize = 0x100;
  12036. ;
  12037. memory "signature"
  12038. size = 3;
  12039. offset = 0x1000090;
  12040. ;
  12041. memory "fuse0"
  12042. size = 1;
  12043. offset = 0x8f0020;
  12044. ;
  12045. memory "fuse1"
  12046. size = 1;
  12047. offset = 0x8f0021;
  12048. ;
  12049. memory "fuse2"
  12050. size = 1;
  12051. offset = 0x8f0022;
  12052. ;
  12053. memory "fuse4"
  12054. size = 1;
  12055. offset = 0x8f0024;
  12056. ;
  12057. memory "fuse5"
  12058. size = 1;
  12059. offset = 0x8f0025;
  12060. ;
  12061. memory "lock"
  12062. size = 1;
  12063. offset = 0x8f0027;
  12064. ;
  12065. ;
  12066. #------------------------------------------------------------
  12067. # ATXMEGA128A1
  12068. #------------------------------------------------------------
  12069. part
  12070. id = "x128a1";
  12071. desc = "ATXMEGA128A1";
  12072. signature = 0x1e 0x97 0x4c;
  12073. has_jtag = yes;
  12074. has_pdi = yes;
  12075. nvm_base = 0x01c0;
  12076. memory "eeprom"
  12077. size = 0x0800;
  12078. offset = 0x08c0000;
  12079. page_size = 0x20;
  12080. readsize = 0x100;
  12081. ;
  12082. memory "application"
  12083. size = 0x00020000;
  12084. offset = 0x0800000;
  12085. page_size = 0x100;
  12086. readsize = 0x100;
  12087. ;
  12088. memory "apptable"
  12089. size = 0x00002000;
  12090. offset = 0x0081e000;
  12091. page_size = 0x100;
  12092. readsize = 0x100;
  12093. ;
  12094. memory "boot"
  12095. size = 0x00002000;
  12096. offset = 0x00820000;
  12097. page_size = 0x100;
  12098. readsize = 0x100;
  12099. ;
  12100. memory "flash"
  12101. size = 0x00022000;
  12102. offset = 0x0800000;
  12103. page_size = 0x100;
  12104. readsize = 0x100;
  12105. ;
  12106. memory "prodsig"
  12107. size = 0x200;
  12108. offset = 0x8e0200;
  12109. page_size = 0x100;
  12110. readsize = 0x100;
  12111. ;
  12112. memory "usersig"
  12113. size = 0x200;
  12114. offset = 0x8e0400;
  12115. page_size = 0x100;
  12116. readsize = 0x100;
  12117. ;
  12118. memory "signature"
  12119. size = 3;
  12120. offset = 0x1000090;
  12121. ;
  12122. memory "fuse0"
  12123. size = 1;
  12124. offset = 0x8f0020;
  12125. ;
  12126. memory "fuse1"
  12127. size = 1;
  12128. offset = 0x8f0021;
  12129. ;
  12130. memory "fuse2"
  12131. size = 1;
  12132. offset = 0x8f0022;
  12133. ;
  12134. memory "fuse4"
  12135. size = 1;
  12136. offset = 0x8f0024;
  12137. ;
  12138. memory "fuse5"
  12139. size = 1;
  12140. offset = 0x8f0025;
  12141. ;
  12142. memory "lock"
  12143. size = 1;
  12144. offset = 0x8f0027;
  12145. ;
  12146. ;
  12147. #------------------------------------------------------------
  12148. # ATXMEGA128A1REVD
  12149. #------------------------------------------------------------
  12150. part
  12151. id = "x128a1d";
  12152. desc = "ATXMEGA128A1REVD";
  12153. signature = 0x1e 0x97 0x41;
  12154. has_jtag = yes;
  12155. has_pdi = yes;
  12156. nvm_base = 0x01c0;
  12157. memory "eeprom"
  12158. size = 0x0800;
  12159. offset = 0x08c0000;
  12160. page_size = 0x20;
  12161. readsize = 0x100;
  12162. ;
  12163. memory "application"
  12164. size = 0x00020000;
  12165. offset = 0x0800000;
  12166. page_size = 0x100;
  12167. readsize = 0x100;
  12168. ;
  12169. memory "apptable"
  12170. size = 0x00002000;
  12171. offset = 0x0081e000;
  12172. page_size = 0x100;
  12173. readsize = 0x100;
  12174. ;
  12175. memory "boot"
  12176. size = 0x00002000;
  12177. offset = 0x00820000;
  12178. page_size = 0x100;
  12179. readsize = 0x100;
  12180. ;
  12181. memory "flash"
  12182. size = 0x00022000;
  12183. offset = 0x0800000;
  12184. page_size = 0x100;
  12185. readsize = 0x100;
  12186. ;
  12187. memory "prodsig"
  12188. size = 0x200;
  12189. offset = 0x8e0200;
  12190. page_size = 0x100;
  12191. readsize = 0x100;
  12192. ;
  12193. memory "usersig"
  12194. size = 0x200;
  12195. offset = 0x8e0400;
  12196. page_size = 0x100;
  12197. readsize = 0x100;
  12198. ;
  12199. memory "signature"
  12200. size = 3;
  12201. offset = 0x1000090;
  12202. ;
  12203. memory "fuse0"
  12204. size = 1;
  12205. offset = 0x8f0020;
  12206. ;
  12207. memory "fuse1"
  12208. size = 1;
  12209. offset = 0x8f0021;
  12210. ;
  12211. memory "fuse2"
  12212. size = 1;
  12213. offset = 0x8f0022;
  12214. ;
  12215. memory "fuse4"
  12216. size = 1;
  12217. offset = 0x8f0024;
  12218. ;
  12219. memory "fuse5"
  12220. size = 1;
  12221. offset = 0x8f0025;
  12222. ;
  12223. memory "lock"
  12224. size = 1;
  12225. offset = 0x8f0027;
  12226. ;
  12227. ;
  12228. #------------------------------------------------------------
  12229. # ATXMEGA192A1
  12230. #------------------------------------------------------------
  12231. part
  12232. id = "x192a1";
  12233. desc = "ATXMEGA192A1";
  12234. signature = 0x1e 0x97 0x4e;
  12235. has_jtag = yes;
  12236. has_pdi = yes;
  12237. nvm_base = 0x01c0;
  12238. memory "eeprom"
  12239. size = 0x0800;
  12240. offset = 0x08c0000;
  12241. page_size = 0x20;
  12242. readsize = 0x100;
  12243. ;
  12244. memory "application"
  12245. size = 0x00030000;
  12246. offset = 0x0800000;
  12247. page_size = 0x100;
  12248. readsize = 0x100;
  12249. ;
  12250. memory "apptable"
  12251. size = 0x00002000;
  12252. offset = 0x0082e000;
  12253. page_size = 0x100;
  12254. readsize = 0x100;
  12255. ;
  12256. memory "boot"
  12257. size = 0x00002000;
  12258. offset = 0x00830000;
  12259. page_size = 0x100;
  12260. readsize = 0x100;
  12261. ;
  12262. memory "flash"
  12263. size = 0x00032000;
  12264. offset = 0x0800000;
  12265. page_size = 0x100;
  12266. readsize = 0x100;
  12267. ;
  12268. memory "prodsig"
  12269. size = 0x200;
  12270. offset = 0x8e0200;
  12271. page_size = 0x100;
  12272. readsize = 0x100;
  12273. ;
  12274. memory "usersig"
  12275. size = 0x200;
  12276. offset = 0x8e0400;
  12277. page_size = 0x100;
  12278. readsize = 0x100;
  12279. ;
  12280. memory "signature"
  12281. size = 3;
  12282. offset = 0x1000090;
  12283. ;
  12284. memory "fuse0"
  12285. size = 1;
  12286. offset = 0x8f0020;
  12287. ;
  12288. memory "fuse1"
  12289. size = 1;
  12290. offset = 0x8f0021;
  12291. ;
  12292. memory "fuse2"
  12293. size = 1;
  12294. offset = 0x8f0022;
  12295. ;
  12296. memory "fuse4"
  12297. size = 1;
  12298. offset = 0x8f0024;
  12299. ;
  12300. memory "fuse5"
  12301. size = 1;
  12302. offset = 0x8f0025;
  12303. ;
  12304. memory "lock"
  12305. size = 1;
  12306. offset = 0x8f0027;
  12307. ;
  12308. ;
  12309. #------------------------------------------------------------
  12310. # ATXMEGA256A1
  12311. #------------------------------------------------------------
  12312. part
  12313. id = "x256a1";
  12314. desc = "ATXMEGA256A1";
  12315. signature = 0x1e 0x98 0x46;
  12316. has_jtag = yes;
  12317. has_pdi = yes;
  12318. nvm_base = 0x01c0;
  12319. memory "eeprom"
  12320. size = 0x1000;
  12321. offset = 0x08c0000;
  12322. page_size = 0x20;
  12323. readsize = 0x100;
  12324. ;
  12325. memory "application"
  12326. size = 0x00040000;
  12327. offset = 0x0800000;
  12328. page_size = 0x100;
  12329. readsize = 0x100;
  12330. ;
  12331. memory "apptable"
  12332. size = 0x00002000;
  12333. offset = 0x0083e000;
  12334. page_size = 0x100;
  12335. readsize = 0x100;
  12336. ;
  12337. memory "boot"
  12338. size = 0x00002000;
  12339. offset = 0x00840000;
  12340. page_size = 0x100;
  12341. readsize = 0x100;
  12342. ;
  12343. memory "flash"
  12344. size = 0x00042000;
  12345. offset = 0x0800000;
  12346. page_size = 0x100;
  12347. readsize = 0x100;
  12348. ;
  12349. memory "prodsig"
  12350. size = 0x200;
  12351. offset = 0x8e0200;
  12352. page_size = 0x100;
  12353. readsize = 0x100;
  12354. ;
  12355. memory "usersig"
  12356. size = 0x200;
  12357. offset = 0x8e0400;
  12358. page_size = 0x100;
  12359. readsize = 0x100;
  12360. ;
  12361. memory "signature"
  12362. size = 3;
  12363. offset = 0x1000090;
  12364. ;
  12365. memory "fuse0"
  12366. size = 1;
  12367. offset = 0x8f0020;
  12368. ;
  12369. memory "fuse1"
  12370. size = 1;
  12371. offset = 0x8f0021;
  12372. ;
  12373. memory "fuse2"
  12374. size = 1;
  12375. offset = 0x8f0022;
  12376. ;
  12377. memory "fuse4"
  12378. size = 1;
  12379. offset = 0x8f0024;
  12380. ;
  12381. memory "fuse5"
  12382. size = 1;
  12383. offset = 0x8f0025;
  12384. ;
  12385. memory "lock"
  12386. size = 1;
  12387. offset = 0x8f0027;
  12388. ;
  12389. ;
  12390. #------------------------------------------------------------
  12391. # ATXMEGA64A3
  12392. #------------------------------------------------------------
  12393. part
  12394. id = "x64a3";
  12395. desc = "ATXMEGA64A3";
  12396. signature = 0x1e 0x96 0x42;
  12397. has_jtag = yes;
  12398. has_pdi = yes;
  12399. nvm_base = 0x01c0;
  12400. memory "eeprom"
  12401. size = 0x0800;
  12402. offset = 0x08c0000;
  12403. page_size = 0x20;
  12404. readsize = 0x100;
  12405. ;
  12406. memory "application"
  12407. size = 0x00010000;
  12408. offset = 0x0800000;
  12409. page_size = 0x100;
  12410. readsize = 0x100;
  12411. ;
  12412. memory "apptable"
  12413. size = 0x00001000;
  12414. offset = 0x0080f000;
  12415. page_size = 0x100;
  12416. readsize = 0x100;
  12417. ;
  12418. memory "boot"
  12419. size = 0x00001000;
  12420. offset = 0x00810000;
  12421. page_size = 0x100;
  12422. readsize = 0x100;
  12423. ;
  12424. memory "flash"
  12425. size = 0x00011000;
  12426. offset = 0x0800000;
  12427. page_size = 0x100;
  12428. readsize = 0x100;
  12429. ;
  12430. memory "prodsig"
  12431. size = 0x200;
  12432. offset = 0x8e0200;
  12433. page_size = 0x100;
  12434. readsize = 0x100;
  12435. ;
  12436. memory "usersig"
  12437. size = 0x200;
  12438. offset = 0x8e0400;
  12439. page_size = 0x100;
  12440. readsize = 0x100;
  12441. ;
  12442. memory "signature"
  12443. size = 3;
  12444. offset = 0x1000090;
  12445. ;
  12446. memory "fuse0"
  12447. size = 1;
  12448. offset = 0x8f0020;
  12449. ;
  12450. memory "fuse1"
  12451. size = 1;
  12452. offset = 0x8f0021;
  12453. ;
  12454. memory "fuse2"
  12455. size = 1;
  12456. offset = 0x8f0022;
  12457. ;
  12458. memory "fuse4"
  12459. size = 1;
  12460. offset = 0x8f0024;
  12461. ;
  12462. memory "fuse5"
  12463. size = 1;
  12464. offset = 0x8f0025;
  12465. ;
  12466. memory "lock"
  12467. size = 1;
  12468. offset = 0x8f0027;
  12469. ;
  12470. ;
  12471. #------------------------------------------------------------
  12472. # ATXMEGA128A3
  12473. #------------------------------------------------------------
  12474. part
  12475. id = "x128a3";
  12476. desc = "ATXMEGA128A3";
  12477. signature = 0x1e 0x97 0x42;
  12478. has_jtag = yes;
  12479. has_pdi = yes;
  12480. nvm_base = 0x01c0;
  12481. memory "eeprom"
  12482. size = 0x0800;
  12483. offset = 0x08c0000;
  12484. page_size = 0x20;
  12485. readsize = 0x100;
  12486. ;
  12487. memory "application"
  12488. size = 0x00020000;
  12489. offset = 0x0800000;
  12490. page_size = 0x100;
  12491. readsize = 0x100;
  12492. ;
  12493. memory "apptable"
  12494. size = 0x00002000;
  12495. offset = 0x0081e000;
  12496. page_size = 0x100;
  12497. readsize = 0x100;
  12498. ;
  12499. memory "boot"
  12500. size = 0x00002000;
  12501. offset = 0x00820000;
  12502. page_size = 0x100;
  12503. readsize = 0x100;
  12504. ;
  12505. memory "flash"
  12506. size = 0x00022000;
  12507. offset = 0x0800000;
  12508. page_size = 0x100;
  12509. readsize = 0x100;
  12510. ;
  12511. memory "prodsig"
  12512. size = 0x200;
  12513. offset = 0x8e0200;
  12514. page_size = 0x100;
  12515. readsize = 0x100;
  12516. ;
  12517. memory "usersig"
  12518. size = 0x200;
  12519. offset = 0x8e0400;
  12520. page_size = 0x100;
  12521. readsize = 0x100;
  12522. ;
  12523. memory "signature"
  12524. size = 3;
  12525. offset = 0x1000090;
  12526. ;
  12527. memory "fuse0"
  12528. size = 1;
  12529. offset = 0x8f0020;
  12530. ;
  12531. memory "fuse1"
  12532. size = 1;
  12533. offset = 0x8f0021;
  12534. ;
  12535. memory "fuse2"
  12536. size = 1;
  12537. offset = 0x8f0022;
  12538. ;
  12539. memory "fuse4"
  12540. size = 1;
  12541. offset = 0x8f0024;
  12542. ;
  12543. memory "fuse5"
  12544. size = 1;
  12545. offset = 0x8f0025;
  12546. ;
  12547. memory "lock"
  12548. size = 1;
  12549. offset = 0x8f0027;
  12550. ;
  12551. ;
  12552. #------------------------------------------------------------
  12553. # ATXMEGA192A3
  12554. #------------------------------------------------------------
  12555. part
  12556. id = "x192a3";
  12557. desc = "ATXMEGA192A3";
  12558. signature = 0x1e 0x97 0x44;
  12559. has_jtag = yes;
  12560. has_pdi = yes;
  12561. nvm_base = 0x01c0;
  12562. memory "eeprom"
  12563. size = 0x0800;
  12564. offset = 0x08c0000;
  12565. page_size = 0x20;
  12566. readsize = 0x100;
  12567. ;
  12568. memory "application"
  12569. size = 0x00030000;
  12570. offset = 0x0800000;
  12571. page_size = 0x100;
  12572. readsize = 0x100;
  12573. ;
  12574. memory "apptable"
  12575. size = 0x00002000;
  12576. offset = 0x0082e000;
  12577. page_size = 0x100;
  12578. readsize = 0x100;
  12579. ;
  12580. memory "boot"
  12581. size = 0x00002000;
  12582. offset = 0x00830000;
  12583. page_size = 0x100;
  12584. readsize = 0x100;
  12585. ;
  12586. memory "flash"
  12587. size = 0x00032000;
  12588. offset = 0x0800000;
  12589. page_size = 0x100;
  12590. readsize = 0x100;
  12591. ;
  12592. memory "prodsig"
  12593. size = 0x200;
  12594. offset = 0x8e0200;
  12595. page_size = 0x100;
  12596. readsize = 0x100;
  12597. ;
  12598. memory "usersig"
  12599. size = 0x200;
  12600. offset = 0x8e0400;
  12601. page_size = 0x100;
  12602. readsize = 0x100;
  12603. ;
  12604. memory "signature"
  12605. size = 3;
  12606. offset = 0x1000090;
  12607. ;
  12608. memory "fuse0"
  12609. size = 1;
  12610. offset = 0x8f0020;
  12611. ;
  12612. memory "fuse1"
  12613. size = 1;
  12614. offset = 0x8f0021;
  12615. ;
  12616. memory "fuse2"
  12617. size = 1;
  12618. offset = 0x8f0022;
  12619. ;
  12620. memory "fuse4"
  12621. size = 1;
  12622. offset = 0x8f0024;
  12623. ;
  12624. memory "fuse5"
  12625. size = 1;
  12626. offset = 0x8f0025;
  12627. ;
  12628. memory "lock"
  12629. size = 1;
  12630. offset = 0x8f0027;
  12631. ;
  12632. ;
  12633. #------------------------------------------------------------
  12634. # ATXMEGA256A3
  12635. #------------------------------------------------------------
  12636. part
  12637. id = "x256a3";
  12638. desc = "ATXMEGA256A3";
  12639. signature = 0x1e 0x98 0x42;
  12640. has_jtag = yes;
  12641. has_pdi = yes;
  12642. nvm_base = 0x01c0;
  12643. memory "eeprom"
  12644. size = 0x1000;
  12645. offset = 0x08c0000;
  12646. page_size = 0x20;
  12647. readsize = 0x100;
  12648. ;
  12649. memory "application"
  12650. size = 0x00040000;
  12651. offset = 0x0800000;
  12652. page_size = 0x100;
  12653. readsize = 0x100;
  12654. ;
  12655. memory "apptable"
  12656. size = 0x00002000;
  12657. offset = 0x0083e000;
  12658. page_size = 0x100;
  12659. readsize = 0x100;
  12660. ;
  12661. memory "boot"
  12662. size = 0x00002000;
  12663. offset = 0x00840000;
  12664. page_size = 0x100;
  12665. readsize = 0x100;
  12666. ;
  12667. memory "flash"
  12668. size = 0x00042000;
  12669. offset = 0x0800000;
  12670. page_size = 0x100;
  12671. readsize = 0x100;
  12672. ;
  12673. memory "prodsig"
  12674. size = 0x200;
  12675. offset = 0x8e0200;
  12676. page_size = 0x100;
  12677. readsize = 0x100;
  12678. ;
  12679. memory "usersig"
  12680. size = 0x200;
  12681. offset = 0x8e0400;
  12682. page_size = 0x100;
  12683. readsize = 0x100;
  12684. ;
  12685. memory "signature"
  12686. size = 3;
  12687. offset = 0x1000090;
  12688. ;
  12689. memory "fuse0"
  12690. size = 1;
  12691. offset = 0x8f0020;
  12692. ;
  12693. memory "fuse1"
  12694. size = 1;
  12695. offset = 0x8f0021;
  12696. ;
  12697. memory "fuse2"
  12698. size = 1;
  12699. offset = 0x8f0022;
  12700. ;
  12701. memory "fuse4"
  12702. size = 1;
  12703. offset = 0x8f0024;
  12704. ;
  12705. memory "fuse5"
  12706. size = 1;
  12707. offset = 0x8f0025;
  12708. ;
  12709. memory "lock"
  12710. size = 1;
  12711. offset = 0x8f0027;
  12712. ;
  12713. ;
  12714. #------------------------------------------------------------
  12715. # ATXMEGA256A3B
  12716. #------------------------------------------------------------
  12717. part
  12718. id = "x256a3b";
  12719. desc = "ATXMEGA256A3B";
  12720. signature = 0x1e 0x98 0x43;
  12721. has_jtag = yes;
  12722. has_pdi = yes;
  12723. nvm_base = 0x01c0;
  12724. memory "eeprom"
  12725. size = 0x1000;
  12726. offset = 0x08c0000;
  12727. page_size = 0x20;
  12728. readsize = 0x100;
  12729. ;
  12730. memory "application"
  12731. size = 0x00040000;
  12732. offset = 0x0800000;
  12733. page_size = 0x100;
  12734. readsize = 0x100;
  12735. ;
  12736. memory "apptable"
  12737. size = 0x00002000;
  12738. offset = 0x0083e000;
  12739. page_size = 0x100;
  12740. readsize = 0x100;
  12741. ;
  12742. memory "boot"
  12743. size = 0x00002000;
  12744. offset = 0x00840000;
  12745. page_size = 0x100;
  12746. readsize = 0x100;
  12747. ;
  12748. memory "flash"
  12749. size = 0x00042000;
  12750. offset = 0x0800000;
  12751. page_size = 0x100;
  12752. readsize = 0x100;
  12753. ;
  12754. memory "prodsig"
  12755. size = 0x200;
  12756. offset = 0x8e0200;
  12757. page_size = 0x100;
  12758. readsize = 0x100;
  12759. ;
  12760. memory "usersig"
  12761. size = 0x200;
  12762. offset = 0x8e0400;
  12763. page_size = 0x100;
  12764. readsize = 0x100;
  12765. ;
  12766. memory "signature"
  12767. size = 3;
  12768. offset = 0x1000090;
  12769. ;
  12770. memory "fuse0"
  12771. size = 1;
  12772. offset = 0x8f0020;
  12773. ;
  12774. memory "fuse1"
  12775. size = 1;
  12776. offset = 0x8f0021;
  12777. ;
  12778. memory "fuse2"
  12779. size = 1;
  12780. offset = 0x8f0022;
  12781. ;
  12782. memory "fuse4"
  12783. size = 1;
  12784. offset = 0x8f0024;
  12785. ;
  12786. memory "fuse5"
  12787. size = 1;
  12788. offset = 0x8f0025;
  12789. ;
  12790. memory "lock"
  12791. size = 1;
  12792. offset = 0x8f0027;
  12793. ;
  12794. ;
  12795. #------------------------------------------------------------
  12796. # ATXMEGA16A4
  12797. #------------------------------------------------------------
  12798. part
  12799. id = "x16a4";
  12800. desc = "ATXMEGA16A4";
  12801. signature = 0x1e 0x94 0x41;
  12802. has_jtag = yes;
  12803. has_pdi = yes;
  12804. nvm_base = 0x01c0;
  12805. memory "eeprom"
  12806. size = 0x0400;
  12807. offset = 0x08c0000;
  12808. page_size = 0x20;
  12809. readsize = 0x100;
  12810. ;
  12811. memory "application"
  12812. size = 0x00004000;
  12813. offset = 0x0800000;
  12814. page_size = 0x100;
  12815. readsize = 0x100;
  12816. ;
  12817. memory "apptable"
  12818. size = 0x00001000;
  12819. offset = 0x00803000;
  12820. page_size = 0x100;
  12821. readsize = 0x100;
  12822. ;
  12823. memory "boot"
  12824. size = 0x00001000;
  12825. offset = 0x00804000;
  12826. page_size = 0x100;
  12827. readsize = 0x100;
  12828. ;
  12829. memory "flash"
  12830. size = 0x00005000;
  12831. offset = 0x0800000;
  12832. page_size = 0x100;
  12833. readsize = 0x100;
  12834. ;
  12835. memory "prodsig"
  12836. size = 0x200;
  12837. offset = 0x8e0200;
  12838. page_size = 0x100;
  12839. readsize = 0x100;
  12840. ;
  12841. memory "usersig"
  12842. size = 0x200;
  12843. offset = 0x8e0400;
  12844. page_size = 0x100;
  12845. readsize = 0x100;
  12846. ;
  12847. memory "signature"
  12848. size = 3;
  12849. offset = 0x1000090;
  12850. ;
  12851. memory "fuse0"
  12852. size = 1;
  12853. offset = 0x8f0020;
  12854. ;
  12855. memory "fuse1"
  12856. size = 1;
  12857. offset = 0x8f0021;
  12858. ;
  12859. memory "fuse2"
  12860. size = 1;
  12861. offset = 0x8f0022;
  12862. ;
  12863. memory "fuse4"
  12864. size = 1;
  12865. offset = 0x8f0024;
  12866. ;
  12867. memory "fuse5"
  12868. size = 1;
  12869. offset = 0x8f0025;
  12870. ;
  12871. memory "lock"
  12872. size = 1;
  12873. offset = 0x8f0027;
  12874. ;
  12875. ;
  12876. #------------------------------------------------------------
  12877. # ATXMEGA32A4
  12878. #------------------------------------------------------------
  12879. part
  12880. id = "x32a4";
  12881. desc = "ATXMEGA32A4";
  12882. signature = 0x1e 0x95 0x41;
  12883. has_jtag = yes;
  12884. has_pdi = yes;
  12885. nvm_base = 0x01c0;
  12886. memory "eeprom"
  12887. size = 0x0400;
  12888. offset = 0x08c0000;
  12889. page_size = 0x20;
  12890. readsize = 0x100;
  12891. ;
  12892. memory "application"
  12893. size = 0x00008000;
  12894. offset = 0x0800000;
  12895. page_size = 0x100;
  12896. readsize = 0x100;
  12897. ;
  12898. memory "apptable"
  12899. size = 0x00001000;
  12900. offset = 0x00807000;
  12901. page_size = 0x100;
  12902. readsize = 0x100;
  12903. ;
  12904. memory "boot"
  12905. size = 0x00001000;
  12906. offset = 0x00808000;
  12907. page_size = 0x100;
  12908. readsize = 0x100;
  12909. ;
  12910. memory "flash"
  12911. size = 0x00009000;
  12912. offset = 0x0800000;
  12913. page_size = 0x100;
  12914. readsize = 0x100;
  12915. ;
  12916. memory "prodsig"
  12917. size = 0x200;
  12918. offset = 0x8e0200;
  12919. page_size = 0x100;
  12920. readsize = 0x100;
  12921. ;
  12922. memory "usersig"
  12923. size = 0x200;
  12924. offset = 0x8e0400;
  12925. page_size = 0x100;
  12926. readsize = 0x100;
  12927. ;
  12928. memory "signature"
  12929. size = 3;
  12930. offset = 0x1000090;
  12931. ;
  12932. memory "fuse0"
  12933. size = 1;
  12934. offset = 0x8f0020;
  12935. ;
  12936. memory "fuse1"
  12937. size = 1;
  12938. offset = 0x8f0021;
  12939. ;
  12940. memory "fuse2"
  12941. size = 1;
  12942. offset = 0x8f0022;
  12943. ;
  12944. memory "fuse4"
  12945. size = 1;
  12946. offset = 0x8f0024;
  12947. ;
  12948. memory "fuse5"
  12949. size = 1;
  12950. offset = 0x8f0025;
  12951. ;
  12952. memory "lock"
  12953. size = 1;
  12954. offset = 0x8f0027;
  12955. ;
  12956. ;
  12957. #------------------------------------------------------------
  12958. # ATXMEGA64A4
  12959. #------------------------------------------------------------
  12960. part
  12961. id = "x64a4";
  12962. desc = "ATXMEGA64A4";
  12963. signature = 0x1e 0x96 0x46;
  12964. has_jtag = yes;
  12965. has_pdi = yes;
  12966. nvm_base = 0x01c0;
  12967. memory "eeprom"
  12968. size = 0x0800;
  12969. offset = 0x08c0000;
  12970. page_size = 0x20;
  12971. readsize = 0x100;
  12972. ;
  12973. memory "application"
  12974. size = 0x00010000;
  12975. offset = 0x0800000;
  12976. page_size = 0x100;
  12977. readsize = 0x100;
  12978. ;
  12979. memory "apptable"
  12980. size = 0x00001000;
  12981. offset = 0x0080f000;
  12982. page_size = 0x100;
  12983. readsize = 0x100;
  12984. ;
  12985. memory "boot"
  12986. size = 0x00001000;
  12987. offset = 0x00810000;
  12988. page_size = 0x100;
  12989. readsize = 0x100;
  12990. ;
  12991. memory "flash"
  12992. size = 0x00011000;
  12993. offset = 0x0800000;
  12994. page_size = 0x100;
  12995. readsize = 0x100;
  12996. ;
  12997. memory "prodsig"
  12998. size = 0x200;
  12999. offset = 0x8e0200;
  13000. page_size = 0x100;
  13001. readsize = 0x100;
  13002. ;
  13003. memory "usersig"
  13004. size = 0x200;
  13005. offset = 0x8e0400;
  13006. page_size = 0x100;
  13007. readsize = 0x100;
  13008. ;
  13009. memory "signature"
  13010. size = 3;
  13011. offset = 0x1000090;
  13012. ;
  13013. memory "fuse0"
  13014. size = 1;
  13015. offset = 0x8f0020;
  13016. ;
  13017. memory "fuse1"
  13018. size = 1;
  13019. offset = 0x8f0021;
  13020. ;
  13021. memory "fuse2"
  13022. size = 1;
  13023. offset = 0x8f0022;
  13024. ;
  13025. memory "fuse4"
  13026. size = 1;
  13027. offset = 0x8f0024;
  13028. ;
  13029. memory "fuse5"
  13030. size = 1;
  13031. offset = 0x8f0025;
  13032. ;
  13033. memory "lock"
  13034. size = 1;
  13035. offset = 0x8f0027;
  13036. ;
  13037. ;
  13038. #------------------------------------------------------------
  13039. # ATXMEGA128A4
  13040. #------------------------------------------------------------
  13041. part
  13042. id = "x128a4";
  13043. desc = "ATXMEGA128A4";
  13044. signature = 0x1e 0x97 0x46;
  13045. has_jtag = yes;
  13046. has_pdi = yes;
  13047. nvm_base = 0x01c0;
  13048. memory "eeprom"
  13049. size = 0x0800;
  13050. offset = 0x08c0000;
  13051. page_size = 0x20;
  13052. readsize = 0x100;
  13053. ;
  13054. memory "application"
  13055. size = 0x00020000;
  13056. offset = 0x0800000;
  13057. page_size = 0x100;
  13058. readsize = 0x100;
  13059. ;
  13060. memory "apptable"
  13061. size = 0x00002000;
  13062. offset = 0x0081e000;
  13063. page_size = 0x100;
  13064. readsize = 0x100;
  13065. ;
  13066. memory "boot"
  13067. size = 0x00002000;
  13068. offset = 0x00820000;
  13069. page_size = 0x100;
  13070. readsize = 0x100;
  13071. ;
  13072. memory "flash"
  13073. size = 0x00022000;
  13074. offset = 0x0800000;
  13075. page_size = 0x100;
  13076. readsize = 0x100;
  13077. ;
  13078. memory "prodsig"
  13079. size = 0x200;
  13080. offset = 0x8e0200;
  13081. page_size = 0x100;
  13082. readsize = 0x100;
  13083. ;
  13084. memory "usersig"
  13085. size = 0x200;
  13086. offset = 0x8e0400;
  13087. page_size = 0x100;
  13088. readsize = 0x100;
  13089. ;
  13090. memory "signature"
  13091. size = 3;
  13092. offset = 0x1000090;
  13093. ;
  13094. memory "fuse0"
  13095. size = 1;
  13096. offset = 0x8f0020;
  13097. ;
  13098. memory "fuse1"
  13099. size = 1;
  13100. offset = 0x8f0021;
  13101. ;
  13102. memory "fuse2"
  13103. size = 1;
  13104. offset = 0x8f0022;
  13105. ;
  13106. memory "fuse4"
  13107. size = 1;
  13108. offset = 0x8f0024;
  13109. ;
  13110. memory "fuse5"
  13111. size = 1;
  13112. offset = 0x8f0025;
  13113. ;
  13114. memory "lock"
  13115. size = 1;
  13116. offset = 0x8f0027;
  13117. ;
  13118. ;
  13119. #------------------------------------------------------------
  13120. # AVR32UC3A0512
  13121. #------------------------------------------------------------
  13122. part
  13123. id = "ucr2";
  13124. desc = "32UC3A0512";
  13125. signature = 0xED 0xC0 0x3F;
  13126. has_jtag = yes;
  13127. is_avr32 = yes;
  13128. memory "flash"
  13129. paged = yes;
  13130. page_size = 512; # bytes
  13131. readsize = 512; # bytes
  13132. num_pages = 1024; # could be set dynamicly
  13133. size = 0x00080000; # could be set dynamicly
  13134. offset = 0x80000000;
  13135. ;
  13136. ;
  13137. #------------------------------------------------------------
  13138. # ATtiny4
  13139. #------------------------------------------------------------
  13140. part
  13141. id = "t4";
  13142. desc = "ATtiny4";
  13143. signature = 0x1e 0x8f 0x0a;
  13144. has_tpi = yes;
  13145. memory "flash"
  13146. size = 512;
  13147. offset = 0x4000;
  13148. page_size = 16;
  13149. blocksize = 128;
  13150. ;
  13151. memory "signature"
  13152. size = 3;
  13153. offset = 0x3fc0;
  13154. ;
  13155. memory "fuse"
  13156. size = 1;
  13157. offset = 0x3f40;
  13158. blocksize = 4;
  13159. ;
  13160. memory "calibration"
  13161. size = 1;
  13162. offset = 0x3f80;
  13163. ;
  13164. memory "lockbits"
  13165. size = 1;
  13166. offset = 0x3f00;
  13167. ;
  13168. ;
  13169. #------------------------------------------------------------
  13170. # ATtiny5
  13171. #------------------------------------------------------------
  13172. part
  13173. id = "t5";
  13174. desc = "ATtiny5";
  13175. signature = 0x1e 0x8f 0x09;
  13176. has_tpi = yes;
  13177. memory "flash"
  13178. size = 512;
  13179. offset = 0x4000;
  13180. page_size = 16;
  13181. blocksize = 128;
  13182. ;
  13183. memory "signature"
  13184. size = 3;
  13185. offset = 0x3fc0;
  13186. ;
  13187. memory "fuse"
  13188. size = 1;
  13189. offset = 0x3f40;
  13190. blocksize = 4;
  13191. ;
  13192. memory "calibration"
  13193. size = 1;
  13194. offset = 0x3f80;
  13195. ;
  13196. memory "lockbits"
  13197. size = 1;
  13198. offset = 0x3f00;
  13199. ;
  13200. ;
  13201. #------------------------------------------------------------
  13202. # ATtiny9
  13203. #------------------------------------------------------------
  13204. part
  13205. id = "t8";
  13206. desc = "ATtiny9";
  13207. signature = 0x1e 0x90 0x08;
  13208. has_tpi = yes;
  13209. memory "flash"
  13210. size = 1024;
  13211. offset = 0x4000;
  13212. page_size = 16;
  13213. blocksize = 128;
  13214. ;
  13215. memory "signature"
  13216. size = 3;
  13217. offset = 0x3fc0;
  13218. ;
  13219. memory "fuse"
  13220. size = 1;
  13221. offset = 0x3f40;
  13222. blocksize = 4;
  13223. ;
  13224. memory "calibration"
  13225. size = 1;
  13226. offset = 0x3f80;
  13227. ;
  13228. memory "lockbits"
  13229. size = 1;
  13230. offset = 0x3f00;
  13231. ;
  13232. ;
  13233. #------------------------------------------------------------
  13234. # ATtiny10
  13235. #------------------------------------------------------------
  13236. part
  13237. id = "t10";
  13238. desc = "ATtiny10";
  13239. signature = 0x1e 0x90 0x03;
  13240. has_tpi = yes;
  13241. memory "flash"
  13242. size = 1024;
  13243. offset = 0x4000;
  13244. page_size = 16;
  13245. blocksize = 128;
  13246. ;
  13247. memory "signature"
  13248. size = 3;
  13249. offset = 0x3fc0;
  13250. ;
  13251. memory "fuse"
  13252. size = 1;
  13253. offset = 0x3f40;
  13254. blocksize = 4;
  13255. ;
  13256. memory "calibration"
  13257. size = 1;
  13258. offset = 0x3f80;
  13259. ;
  13260. memory "lockbits"
  13261. size = 1;
  13262. offset = 0x3f00;
  13263. ;
  13264. ;