avrdude.conf 489 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479
  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 = "lpt1";
  292. default_serial = "com1";
  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. ;