avrdude.conf 471 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972
  1. # $Id: avrdude.conf.in 1371 2016-02-15 20:15:07Z joerg_wunsch $ -*- text -*-
  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. # DO NOT MODIFY THIS FILE. Modifications will be overwritten the next
  14. # time a "make install" is run. For user-specific additions, use the
  15. # "-C +filename" commandline option.
  16. #
  17. # Possible entry formats are:
  18. #
  19. # programmer
  20. # parent <id> # optional parent
  21. # id = <id1> [, <id2> [, <id3>] ...] ; # <idN> are quoted strings
  22. # desc = <description> ; # quoted string
  23. # type = <type>; # programmer type, quoted string
  24. # # supported programmer types can be listed by "-c ?type"
  25. # connection_type = parallel | serial | usb
  26. # baudrate = <num> ; # baudrate for avr910-programmer
  27. # vcc = <num1> [, <num2> ... ] ; # pin number(s)
  28. # buff = <num1> [, <num2> ... ] ; # pin number(s)
  29. # reset = <num> ; # pin number
  30. # sck = <num> ; # pin number
  31. # mosi = <num> ; # pin number
  32. # miso = <num> ; # pin number
  33. # errled = <num> ; # pin number
  34. # rdyled = <num> ; # pin number
  35. # pgmled = <num> ; # pin number
  36. # vfyled = <num> ; # pin number
  37. # usbvid = <hexnum>; # USB VID (Vendor ID)
  38. # usbpid = <hexnum> [, <hexnum> ...] # USB PID (Product ID) (1)
  39. # usbdev = <interface>; # USB interface or other device info
  40. # usbvendor = <vendorname>; # USB Vendor Name
  41. # usbproduct = <productname>; # USB Product Name
  42. # usbsn = <serialno>; # USB Serial Number
  43. #
  44. # To invert a bit, use = ~ <num>, the spaces are important.
  45. # For a pin list all pins must be inverted.
  46. # A single pin can be specified as usual = ~ <num>, for lists
  47. # specify it as follows = ~ ( <num> [, <num2> ... ] ) .
  48. #
  49. # (1) Not all programmer types can process a list of PIDs.
  50. # ;
  51. #
  52. # part
  53. # id = <id> ; # quoted string
  54. # desc = <description> ; # quoted string
  55. # has_jtag = <yes/no> ; # part has JTAG i/f
  56. # has_debugwire = <yes/no> ; # part has debugWire i/f
  57. # has_pdi = <yes/no> ; # part has PDI i/f
  58. # has_tpi = <yes/no> ; # part has TPI i/f
  59. # devicecode = <num> ; # deprecated, use stk500_devcode
  60. # stk500_devcode = <num> ; # numeric
  61. # avr910_devcode = <num> ; # numeric
  62. # signature = <num> <num> <num> ; # signature bytes
  63. # usbpid = <num> ; # DFU USB PID
  64. # chip_erase_delay = <num> ; # micro-seconds
  65. # reset = dedicated | io;
  66. # retry_pulse = reset | sck;
  67. # pgm_enable = <instruction format> ;
  68. # chip_erase = <instruction format> ;
  69. # chip_erase_delay = <num> ; # chip erase delay (us)
  70. # # STK500 parameters (parallel programming IO lines)
  71. # pagel = <num> ; # pin name in hex, i.e., 0xD7
  72. # bs2 = <num> ; # pin name in hex, i.e., 0xA0
  73. # serial = <yes/no> ; # can use serial downloading
  74. # parallel = <yes/no/pseudo>; # can use par. programming
  75. # # STK500v2 parameters, to be taken from Atmel's XML files
  76. # timeout = <num> ;
  77. # stabdelay = <num> ;
  78. # cmdexedelay = <num> ;
  79. # synchloops = <num> ;
  80. # bytedelay = <num> ;
  81. # pollvalue = <num> ;
  82. # pollindex = <num> ;
  83. # predelay = <num> ;
  84. # postdelay = <num> ;
  85. # pollmethod = <num> ;
  86. # mode = <num> ;
  87. # delay = <num> ;
  88. # blocksize = <num> ;
  89. # readsize = <num> ;
  90. # hvspcmdexedelay = <num> ;
  91. # # STK500v2 HV programming parameters, from XML
  92. # pp_controlstack = <num>, <num>, ...; # PP only
  93. # hvsp_controlstack = <num>, <num>, ...; # HVSP only
  94. # hventerstabdelay = <num>;
  95. # progmodedelay = <num>; # PP only
  96. # latchcycles = <num>;
  97. # togglevtg = <num>;
  98. # poweroffdelay = <num>;
  99. # resetdelayms = <num>;
  100. # resetdelayus = <num>;
  101. # hvleavestabdelay = <num>;
  102. # resetdelay = <num>;
  103. # synchcycles = <num>; # HVSP only
  104. # chiperasepulsewidth = <num>; # PP only
  105. # chiperasepolltimeout = <num>;
  106. # chiperasetime = <num>; # HVSP only
  107. # programfusepulsewidth = <num>; # PP only
  108. # programfusepolltimeout = <num>;
  109. # programlockpulsewidth = <num>; # PP only
  110. # programlockpolltimeout = <num>;
  111. # # JTAG ICE mkII parameters, also from XML files
  112. # allowfullpagebitstream = <yes/no> ;
  113. # enablepageprogramming = <yes/no> ;
  114. # idr = <num> ; # IO addr of IDR (OCD) reg.
  115. # rampz = <num> ; # IO addr of RAMPZ reg.
  116. # spmcr = <num> ; # mem addr of SPMC[S]R reg.
  117. # eecr = <num> ; # mem addr of EECR reg.
  118. # # (only when != 0x3c)
  119. # is_at90s1200 = <yes/no> ; # AT90S1200 part
  120. # is_avr32 = <yes/no> ; # AVR32 part
  121. #
  122. # memory <memtype>
  123. # paged = <yes/no> ; # yes / no
  124. # size = <num> ; # bytes
  125. # page_size = <num> ; # bytes
  126. # num_pages = <num> ; # numeric
  127. # min_write_delay = <num> ; # micro-seconds
  128. # max_write_delay = <num> ; # micro-seconds
  129. # readback_p1 = <num> ; # byte value
  130. # readback_p2 = <num> ; # byte value
  131. # pwroff_after_write = <yes/no> ; # yes / no
  132. # read = <instruction format> ;
  133. # write = <instruction format> ;
  134. # read_lo = <instruction format> ;
  135. # read_hi = <instruction format> ;
  136. # write_lo = <instruction format> ;
  137. # write_hi = <instruction format> ;
  138. # loadpage_lo = <instruction format> ;
  139. # loadpage_hi = <instruction format> ;
  140. # writepage = <instruction format> ;
  141. # ;
  142. # ;
  143. #
  144. # If any of the above parameters are not specified, the default value
  145. # of 0 is used for numerics or the empty string ("") for string
  146. # values. If a required parameter is left empty, AVRDUDE will
  147. # complain.
  148. #
  149. # Parts can also inherit parameters from previously defined parts
  150. # using the following syntax. In this case specified integer and
  151. # string values override parameter values from the parent part. New
  152. # memory definitions are added to the definitions inherited from the
  153. # parent.
  154. #
  155. # part parent <id> # quoted string
  156. # id = <id> ; # quoted string
  157. # <any set of other parameters from the list above>
  158. # ;
  159. #
  160. # NOTES:
  161. # * 'devicecode' is the device code used by the STK500 (see codes
  162. # listed below)
  163. # * Not all memory types will implement all instructions.
  164. # * AVR Fuse bits and Lock bits are implemented as a type of memory.
  165. # * Example memory types are:
  166. # "flash", "eeprom", "fuse", "lfuse" (low fuse), "hfuse" (high
  167. # fuse), "signature", "calibration", "lock"
  168. # * The memory type specified on the avrdude command line must match
  169. # one of the memory types defined for the specified chip.
  170. # * The pwroff_after_write flag causes avrdude to attempt to
  171. # power the device off and back on after an unsuccessful write to
  172. # the affected memory area if VCC programmer pins are defined. If
  173. # VCC pins are not defined for the programmer, a message
  174. # indicating that the device needs a power-cycle is printed out.
  175. # This flag was added to work around a problem with the
  176. # at90s4433/2333's; see the at90s4433 errata at:
  177. #
  178. # http://www.atmel.com/dyn/resources/prod_documents/doc1280.pdf
  179. #
  180. # INSTRUCTION FORMATS
  181. #
  182. # Instruction formats are specified as a comma seperated list of
  183. # string values containing information (bit specifiers) about each
  184. # of the 32 bits of the instruction. Bit specifiers may be one of
  185. # the following formats:
  186. #
  187. # '1' = the bit is always set on input as well as output
  188. #
  189. # '0' = the bit is always clear on input as well as output
  190. #
  191. # 'x' = the bit is ignored on input and output
  192. #
  193. # 'a' = the bit is an address bit, the bit-number matches this bit
  194. # specifier's position within the current instruction byte
  195. #
  196. # 'aN' = the bit is the Nth address bit, bit-number = N, i.e., a12
  197. # is address bit 12 on input, a0 is address bit 0.
  198. #
  199. # 'i' = the bit is an input data bit
  200. #
  201. # 'o' = the bit is an output data bit
  202. #
  203. # Each instruction must be composed of 32 bit specifiers. The
  204. # instruction specification closely follows the instruction data
  205. # provided in Atmel's data sheets for their parts.
  206. #
  207. # See below for some examples.
  208. #
  209. #
  210. # The following are STK500 part device codes to use for the
  211. # "devicecode" field of the part. These came from Atmel's software
  212. # section avr061.zip which accompanies the application note
  213. # AVR061 available from:
  214. #
  215. # http://www.atmel.com/dyn/resources/prod_documents/doc2525.pdf
  216. #
  217. #define ATTINY10 0x10 /* the _old_ one that never existed! */
  218. #define ATTINY11 0x11
  219. #define ATTINY12 0x12
  220. #define ATTINY15 0x13
  221. #define ATTINY13 0x14
  222. #define ATTINY22 0x20
  223. #define ATTINY26 0x21
  224. #define ATTINY28 0x22
  225. #define ATTINY2313 0x23
  226. #define AT90S1200 0x33
  227. #define AT90S2313 0x40
  228. #define AT90S2323 0x41
  229. #define AT90S2333 0x42
  230. #define AT90S2343 0x43
  231. #define AT90S4414 0x50
  232. #define AT90S4433 0x51
  233. #define AT90S4434 0x52
  234. #define ATMEGA48 0x59
  235. #define AT90S8515 0x60
  236. #define AT90S8535 0x61
  237. #define AT90C8534 0x62
  238. #define ATMEGA8515 0x63
  239. #define ATMEGA8535 0x64
  240. #define ATMEGA8 0x70
  241. #define ATMEGA88 0x73
  242. #define ATMEGA168 0x86
  243. #define ATMEGA161 0x80
  244. #define ATMEGA163 0x81
  245. #define ATMEGA16 0x82
  246. #define ATMEGA162 0x83
  247. #define ATMEGA169 0x84
  248. #define ATMEGA323 0x90
  249. #define ATMEGA32 0x91
  250. #define ATMEGA64 0xA0
  251. #define ATMEGA103 0xB1
  252. #define ATMEGA128 0xB2
  253. #define AT90CAN128 0xB3
  254. #define AT90CAN64 0xB3
  255. #define AT90CAN32 0xB3
  256. #define AT86RF401 0xD0
  257. #define AT89START 0xE0
  258. #define AT89S51 0xE0
  259. #define AT89S52 0xE1
  260. # The following table lists the devices in the original AVR910
  261. # appnote:
  262. # |Device |Signature | Code |
  263. # +-------+----------+------+
  264. # |tiny12 | 1E 90 05 | 0x55 |
  265. # |tiny15 | 1E 90 06 | 0x56 |
  266. # | | | |
  267. # | S1200 | 1E 90 01 | 0x13 |
  268. # | | | |
  269. # | S2313 | 1E 91 01 | 0x20 |
  270. # | S2323 | 1E 91 02 | 0x48 |
  271. # | S2333 | 1E 91 05 | 0x34 |
  272. # | S2343 | 1E 91 03 | 0x4C |
  273. # | | | |
  274. # | S4414 | 1E 92 01 | 0x28 |
  275. # | S4433 | 1E 92 03 | 0x30 |
  276. # | S4434 | 1E 92 02 | 0x6C |
  277. # | | | |
  278. # | S8515 | 1E 93 01 | 0x38 |
  279. # | S8535 | 1E 93 03 | 0x68 |
  280. # | | | |
  281. # |mega32 | 1E 95 01 | 0x72 |
  282. # |mega83 | 1E 93 05 | 0x65 |
  283. # |mega103| 1E 97 01 | 0x41 |
  284. # |mega161| 1E 94 01 | 0x60 |
  285. # |mega163| 1E 94 02 | 0x64 |
  286. # Appnote AVR109 also has a table of AVR910 device codes, which
  287. # lists:
  288. # dev avr910 signature
  289. # ATmega8 0x77 0x1E 0x93 0x07
  290. # ATmega8515 0x3B 0x1E 0x93 0x06
  291. # ATmega8535 0x6A 0x1E 0x93 0x08
  292. # ATmega16 0x75 0x1E 0x94 0x03
  293. # ATmega162 0x63 0x1E 0x94 0x04
  294. # ATmega163 0x66 0x1E 0x94 0x02
  295. # ATmega169 0x79 0x1E 0x94 0x05
  296. # ATmega32 0x7F 0x1E 0x95 0x02
  297. # ATmega323 0x73 0x1E 0x95 0x01
  298. # ATmega64 0x46 0x1E 0x96 0x02
  299. # ATmega128 0x44 0x1E 0x97 0x02
  300. #
  301. # These codes refer to "BOOT" device codes which are apparently
  302. # different than standard device codes, for whatever reasons
  303. # (often one above the standard code).
  304. # There are several extended versions of AVR910 implementations around
  305. # in the Internet. These add the following codes (only devices that
  306. # actually exist are listed):
  307. # ATmega8515 0x3A
  308. # ATmega128 0x43
  309. # ATmega64 0x45
  310. # ATtiny26 0x5E
  311. # ATmega8535 0x69
  312. # ATmega32 0x72
  313. # ATmega16 0x74
  314. # ATmega8 0x76
  315. # ATmega169 0x78
  316. #
  317. # Overall avrdude defaults; suitable for ~/.avrduderc
  318. #
  319. default_parallel = "/dev/parport0";
  320. default_serial = "/dev/ttyS0";
  321. # default_bitclock = 2.5;
  322. # Turn off safemode by default
  323. #default_safemode = no;
  324. #
  325. # PROGRAMMER DEFINITIONS
  326. #
  327. # http://wiring.org.co/
  328. # Basically STK500v2 protocol, with some glue to trigger the
  329. # bootloader.
  330. programmer
  331. id = "wiring";
  332. desc = "Wiring";
  333. type = "wiring";
  334. connection_type = serial;
  335. ;
  336. programmer
  337. id = "arduino";
  338. desc = "Arduino";
  339. type = "arduino";
  340. connection_type = serial;
  341. ;
  342. # this will interface with the chips on these programmers:
  343. #
  344. # http://real.kiev.ua/old/avreal/en/adapters
  345. # http://www.amontec.com/jtagkey.shtml, jtagkey-tiny.shtml
  346. # http://www.olimex.com/dev/arm-usb-ocd.html, arm-usb-tiny.html
  347. # http://www.ethernut.de/en/hardware/turtelizer/index.html
  348. # http://elk.informatik.fh-augsburg.de/hhweb/doc/openocd/usbjtag/usbjtag.html
  349. # http://dangerousprototypes.com/docs/FT2232_breakout_board
  350. # http://www.ftdichip.com/Products/Modules/DLPModules.htm,DLP-2232*,DLP-USB1232H
  351. # http://flashrom.org/FT2232SPI_Programmer
  352. #
  353. # The drivers will look for a specific device and use the first one found.
  354. # If you have mulitple devices, then look for unique information (like SN)
  355. # And fill that in here.
  356. #
  357. # Note that the pin numbers for the main ISP signals (reset, sck,
  358. # mosi, miso) are fixed and cannot be changed, since they must match
  359. # the way the Multi-Protocol Synchronous Serial Engine (MPSSE) of
  360. # these FTDI ICs has been designed.
  361. # programmer
  362. # id = "avrftdi";
  363. # desc = "FT2232D based generic programmer";
  364. # type = "avrftdi";
  365. # connection_type = usb;
  366. # usbvid = 0x0403;
  367. # usbpid = 0x6010;
  368. # usbvendor = "";
  369. # usbproduct = "";
  370. # usbdev = "A";
  371. # usbsn = "";
  372. # #ISP-signals - lower ADBUS-Nibble (default)
  373. # reset = 3;
  374. # sck = 0;
  375. # mosi = 1;
  376. # miso = 2;
  377. # #LED SIGNALs - higher ADBUS-Nibble
  378. # # errled = 4;
  379. # # rdyled = 5;
  380. # # pgmled = 6;
  381. # # vfyled = 7;
  382. # #Buffer Signal - ACBUS - Nibble
  383. # # buff = 8;
  384. # ;
  385. # This is an implementation of the above with a buffer IC (74AC244) and
  386. # 4 LEDs directly attached, all active low.
  387. # programmer
  388. # id = "2232HIO";
  389. # desc = "FT2232H based generic programmer";
  390. # type = "avrftdi";
  391. # connection_type = usb;
  392. # usbvid = 0x0403;
  393. # # Note: This PID is reserved for generic H devices and
  394. # # should be programmed into the EEPROM
  395. # # usbpid = 0x8A48;
  396. # usbpid = 0x6010;
  397. # usbdev = "A";
  398. # usbvendor = "";
  399. # usbproduct = "";
  400. # usbsn = "";
  401. # #ISP-signals
  402. # reset = 3;
  403. # sck = 0;
  404. # mosi = 1;
  405. # miso = 2;
  406. # buff = ~4;
  407. # #LED SIGNALs
  408. # errled = ~ 11;
  409. # rdyled = ~ 14;
  410. # pgmled = ~ 13;
  411. # vfyled = ~ 12;
  412. # ;
  413. # #The FT4232H can be treated as FT2232H, but it has a different USB
  414. # #device ID of 0x6011.
  415. # programmer parent "avrftdi"
  416. # id = "4232h";
  417. # desc = "FT4232H based generic programmer";
  418. # usbpid = 0x6011;
  419. # ;
  420. # programmer
  421. # id = "jtagkey";
  422. # desc = "Amontec JTAGKey, JTAGKey-Tiny and JTAGKey2";
  423. # type = "avrftdi";
  424. # connection_type = usb;
  425. # usbvid = 0x0403;
  426. # # Note: This PID is used in all JTAGKey variants
  427. # usbpid = 0xCFF8;
  428. # usbdev = "A";
  429. # usbvendor = "";
  430. # usbproduct = "";
  431. # usbsn = "";
  432. # #ISP-signals => 20 - Pin connector on JTAGKey
  433. # reset = 3; # TMS 7 violet
  434. # sck = 0; # TCK 9 white
  435. # mosi = 1; # TDI 5 green
  436. # miso = 2; # TDO 13 orange
  437. # buff = ~4;
  438. # # VTG VREF 1 brown with red tip
  439. # # GND GND 20 black
  440. # # The colors are on the 20 pin breakout cable
  441. # # from Amontec
  442. # ;
  443. # # UM232H module from FTDI and Glyn.com.au.
  444. # # See helix.air.net.au for detailed usage information.
  445. # # J1: Connect pin 2 and 3 for USB power.
  446. # # J2: Connect pin 2 and 3 for USB power.
  447. # # J2: Pin 7 is SCK
  448. # # : Pin 8 is MOSI
  449. # # : Pin 9 is MISO
  450. # # : Pin 11 is RST
  451. # # : Pin 6 is ground
  452. # # Use the -b flag to set the SPI clock rate eg -b 3750000 is the fastest I could get
  453. # # a 16MHz Atmega1280 to program reliably. The 232H is conveniently 5V tolerant.
  454. # programmer
  455. # id = "UM232H";
  456. # desc = "FT232H based module from FTDI and Glyn.com.au";
  457. # type = "avrftdi";
  458. # usbvid = 0x0403;
  459. # # Note: This PID is reserved for generic 232H devices and
  460. # # should be programmed into the EEPROM
  461. # usbpid = 0x6014;
  462. # usbdev = "A";
  463. # usbvendor = "";
  464. # usbproduct = "";
  465. # usbsn = "";
  466. # #ISP-signals
  467. # sck = 0;
  468. # mosi = 1;
  469. # miso = 2;
  470. # reset = 3;
  471. # ;
  472. # # C232HM module from FTDI and Glyn.com.au.
  473. # # : Orange is SCK
  474. # # : Yellow is MOSI
  475. # # : Green is MISO
  476. # # : Brown is RST
  477. # # : Black is ground
  478. # # Use the -b flag to set the SPI clock rate eg -b 3750000 is the fastest I could get
  479. # # a 16MHz Atmega1280 to program reliably. The 232H is conveniently 5V tolerant.
  480. # programmer
  481. # id = "C232HM";
  482. # desc = "FT232H based module from FTDI and Glyn.com.au";
  483. # type = "avrftdi";
  484. # usbvid = 0x0403;
  485. # # Note: This PID is reserved for generic 232H devices and
  486. # # should be programmed into the EEPROM
  487. # usbpid = 0x6014;
  488. # usbdev = "A";
  489. # usbvendor = "";
  490. # usbproduct = "";
  491. # usbsn = "";
  492. # #ISP-signals
  493. # sck = 0;
  494. # mosi = 1;
  495. # miso = 2;
  496. # reset = 3;
  497. # ;
  498. # # On the adapter you can read "O-Link". On the PCB is printed "OpenJTAG v3.1"
  499. # # You can find it as "OpenJTAG ARM JTAG USB" in the internet.
  500. # # (But there are also several projects called Open JTAG, eg.
  501. # # http://www.openjtag.org, which are completely different.)
  502. # # http://www.100ask.net/shop/english.html (website seems to be outdated)
  503. # # http://item.taobao.com/item.htm?id=1559277013
  504. # # http://www.micro4you.com/store/openjtag-arm-jtag-usb.html (schematics!)
  505. # # some other sources which call it O-Link
  506. # # http://www.andahammer.com/olink/
  507. # # http://www.developmentboard.net/31-o-link-debugger.html
  508. # # http://armwerks.com/catalog/o-link-debugger-copy/
  509. # # or just have a look at ebay ...
  510. # # It is basically the same entry as jtagkey with different usb ids.
  511. # programmer parent "jtagkey"
  512. # id = "o-link";
  513. # desc = "O-Link, OpenJTAG from www.100ask.net";
  514. # usbvid = 0x1457;
  515. # usbpid = 0x5118;
  516. # usbvendor = "www.100ask.net";
  517. # usbproduct = "USB<=>JTAG&RS232";
  518. # ;
  519. # # http://wiki.openmoko.org/wiki/Debug_Board_v3
  520. # programmer
  521. # id = "openmoko";
  522. # desc = "Openmoko debug board (v3)";
  523. # type = "avrftdi";
  524. # usbvid = 0x1457;
  525. # usbpid = 0x5118;
  526. # usbdev = "A";
  527. # usbvendor = "";
  528. # usbproduct = "";
  529. # usbsn = "";
  530. # reset = 3; # TMS 7
  531. # sck = 0; # TCK 9
  532. # mosi = 1; # TDI 5
  533. # miso = 2; # TDO 13
  534. # ;
  535. # # Only Rev. A boards.
  536. # # Schematic and user manual: http://www.cs.put.poznan.pl/wswitala/download/pdf/811EVBK.pdf
  537. # programmer
  538. # id = "lm3s811";
  539. # desc = "Luminary Micro LM3S811 Eval Board (Rev. A)";
  540. # type = "avrftdi";
  541. # connection_type = usb;
  542. # usbvid = 0x0403;
  543. # usbpid = 0xbcd9;
  544. # usbvendor = "LMI";
  545. # usbproduct = "LM3S811 Evaluation Board";
  546. # usbdev = "A";
  547. # usbsn = "";
  548. # #ISP-signals - lower ACBUS-Nibble (default)
  549. # reset = 3;
  550. # sck = 0;
  551. # mosi = 1;
  552. # miso = 2;
  553. # # Enable correct buffers
  554. # buff = 7;
  555. # ;
  556. # # submitted as bug #46020
  557. # programmer
  558. # id = "tumpa";
  559. # desc = "TIAO USB Multi-Protocol Adapter";
  560. # type = "avrftdi";
  561. # connection_type = usb;
  562. # usbvid = 0x0403;
  563. # usbpid = 0x8A98;
  564. # usbdev = "A";
  565. # usbvendor = "TIAO";
  566. # usbproduct = "";
  567. # usbsn = "";
  568. # sck = 0; # TCK 9
  569. # mosi = 1; # TDI 5
  570. # miso = 2; # TDO 13
  571. # reset = 3; # TMS 7
  572. # ;
  573. programmer
  574. id = "avrisp";
  575. desc = "Atmel AVR ISP";
  576. type = "stk500";
  577. connection_type = serial;
  578. ;
  579. programmer
  580. id = "avrispv2";
  581. desc = "Atmel AVR ISP V2";
  582. type = "stk500v2";
  583. connection_type = serial;
  584. ;
  585. # programmer
  586. # id = "avrispmkII";
  587. # desc = "Atmel AVR ISP mkII";
  588. # type = "stk500v2";
  589. # connection_type = usb;
  590. # ;
  591. # programmer parent "avrispmkII"
  592. # id = "avrisp2";
  593. # ;
  594. programmer
  595. id = "buspirate";
  596. desc = "The Bus Pirate";
  597. type = "buspirate";
  598. connection_type = serial;
  599. ;
  600. programmer
  601. id = "buspirate_bb";
  602. desc = "The Bus Pirate (bitbang interface, supports TPI)";
  603. type = "buspirate_bb";
  604. connection_type = serial;
  605. # pins are bits in bitbang byte (numbers are 87654321)
  606. # 1|POWER|PULLUP|AUX|MOSI|CLK|MISO|CS
  607. reset = 1;
  608. sck = 3;
  609. mosi = 4;
  610. miso = 2;
  611. #vcc = 7; This is internally set independent of this setting.
  612. ;
  613. # This is supposed to be the "default" STK500 entry.
  614. # Attempts to select the correct firmware version
  615. # by probing for it. Better use one of the entries
  616. # below instead.
  617. programmer
  618. id = "stk500";
  619. desc = "Atmel STK500";
  620. type = "stk500generic";
  621. connection_type = serial;
  622. ;
  623. programmer
  624. id = "stk500v1";
  625. desc = "Atmel STK500 Version 1.x firmware";
  626. type = "stk500";
  627. connection_type = serial;
  628. ;
  629. programmer
  630. id = "mib510";
  631. desc = "Crossbow MIB510 programming board";
  632. type = "stk500";
  633. connection_type = serial;
  634. ;
  635. programmer
  636. id = "stk500v2";
  637. desc = "Atmel STK500 Version 2.x firmware";
  638. type = "stk500v2";
  639. connection_type = serial;
  640. ;
  641. programmer
  642. id = "stk500pp";
  643. desc = "Atmel STK500 V2 in parallel programming mode";
  644. type = "stk500pp";
  645. connection_type = serial;
  646. ;
  647. programmer
  648. id = "stk500hvsp";
  649. desc = "Atmel STK500 V2 in high-voltage serial programming mode";
  650. type = "stk500hvsp";
  651. connection_type = serial;
  652. ;
  653. # programmer
  654. # id = "stk600";
  655. # desc = "Atmel STK600";
  656. # type = "stk600";
  657. # connection_type = usb;
  658. # ;
  659. # programmer
  660. # id = "stk600pp";
  661. # desc = "Atmel STK600 in parallel programming mode";
  662. # type = "stk600pp";
  663. # connection_type = usb;
  664. # ;
  665. # programmer
  666. # id = "stk600hvsp";
  667. # desc = "Atmel STK600 in high-voltage serial programming mode";
  668. # type = "stk600hvsp";
  669. # connection_type = usb;
  670. # ;
  671. programmer
  672. id = "avr910";
  673. desc = "Atmel Low Cost Serial Programmer";
  674. type = "avr910";
  675. connection_type = serial;
  676. ;
  677. # programmer
  678. # id = "ft245r";
  679. # desc = "FT245R Synchronous BitBang";
  680. # type = "ftdi_syncbb";
  681. # connection_type = usb;
  682. # miso = 1; # D1
  683. # sck = 0; # D0
  684. # mosi = 2; # D2
  685. # reset = 4; # D4
  686. # ;
  687. # programmer
  688. # id = "ft232r";
  689. # desc = "FT232R Synchronous BitBang";
  690. # type = "ftdi_syncbb";
  691. # connection_type = usb;
  692. # miso = 1; # RxD
  693. # sck = 0; # TxD
  694. # mosi = 2; # RTS
  695. # reset = 4; # DTR
  696. # ;
  697. # # see http://www.bitwizard.nl/wiki/index.php/FTDI_ATmega
  698. # programmer
  699. # id = "bwmega";
  700. # desc = "BitWizard ftdi_atmega builtin programmer";
  701. # type = "ftdi_syncbb";
  702. # connection_type = usb;
  703. # miso = 5; # DSR
  704. # sck = 6; # DCD
  705. # mosi = 3; # CTS
  706. # reset = 7; # RI
  707. # ;
  708. # # see http://www.geocities.jp/arduino_diecimila/bootloader/index_en.html
  709. # # Note: pins are numbered from 1!
  710. # programmer
  711. # id = "arduino-ft232r";
  712. # desc = "Arduino: FT232R connected to ISP";
  713. # type = "ftdi_syncbb";
  714. # connection_type = usb;
  715. # miso = 3; # CTS X3(1)
  716. # sck = 5; # DSR X3(2)
  717. # mosi = 6; # DCD X3(3)
  718. # reset = 7; # RI X3(4)
  719. # ;
  720. # # website mentioned above uses this id
  721. # programmer parent "arduino-ft232r"
  722. # id = "diecimila";
  723. # desc = "alias for arduino-ft232r";
  724. # ;
  725. # # There is a ATmega328P kit PCB called "uncompatino".
  726. # # This board allows ISP via its on-board FT232R.
  727. # # This is designed like Arduino Duemilanove but has no standard ICPS header.
  728. # # Its 4 pairs of pins are shorted to enable ftdi_syncbb.
  729. # # http://akizukidenshi.com/catalog/g/gP-07487/
  730. # # http://akizukidenshi.com/download/ds/akizuki/k6096_manual_20130816.pdf
  731. # programmer
  732. # id = "uncompatino";
  733. # desc = "uncompatino with all pairs of pins shorted";
  734. # type = "ftdi_syncbb";
  735. # connection_type = usb;
  736. # miso = 3; # cts
  737. # sck = 5; # dsr
  738. # mosi = 6; # dcd
  739. # reset = 7; # ri
  740. # ;
  741. # # FTDI USB to serial cable TTL-232R-5V with a custom adapter for ICSP
  742. # # http://www.ftdichip.com/Products/Cables/USBTTLSerial.htm
  743. # # http://www.ftdichip.com/Support/Documents/DataSheets/Cables/DS_TTL-232R_CABLES.pdf
  744. # # For ICSP pinout see for example http://www.atmel.com/images/doc2562.pdf
  745. # # (Figure 1. ISP6PIN header pinout and Table 1. Connections required for ISP ...)
  746. # # TTL-232R GND 1 Black -> ICPS GND (pin 6)
  747. # # TTL-232R CTS 2 Brown -> ICPS MOSI (pin 4)
  748. # # TTL-232R VCC 3 Red -> ICPS VCC (pin 2)
  749. # # TTL-232R TXD 4 Orange -> ICPS RESET (pin 5)
  750. # # TTL-232R RXD 5 Yellow -> ICPS SCK (pin 3)
  751. # # TTL-232R RTS 6 Green -> ICPS MISO (pin 1)
  752. # # Except for VCC and GND, you can connect arbitual pairs as long as
  753. # # the following table is adjusted.
  754. # programmer
  755. # id = "ttl232r";
  756. # desc = "FTDI TTL232R-5V with ICSP adapter";
  757. # type = "ftdi_syncbb";
  758. # connection_type = usb;
  759. # miso = 2; # rts
  760. # sck = 1; # rxd
  761. # mosi = 3; # cts
  762. # reset = 0; # txd
  763. # ;
  764. # programmer
  765. # id = "usbasp";
  766. # desc = "USBasp, http://www.fischl.de/usbasp/";
  767. # type = "usbasp";
  768. # connection_type = usb;
  769. # usbvid = 0x16C0; # VOTI
  770. # usbpid = 0x05DC; # Obdev's free shared PID
  771. # usbvendor = "www.fischl.de";
  772. # usbproduct = "USBasp";
  773. # # following variants are autodetected for id "usbasp"
  774. # # original usbasp from fischl.de
  775. # # see above "usbasp"
  776. # # old usbasp from fischl.de
  777. # #usbvid = 0x03EB; # ATMEL
  778. # #usbpid = 0xC7B4; # (unoffical) USBasp
  779. # #usbvendor = "www.fischl.de";
  780. # #usbproduct = "USBasp";
  781. # # NIBObee (only if -P nibobee is given on command line)
  782. # # see below "nibobee"
  783. # ;
  784. # programmer
  785. # id = "nibobee";
  786. # desc = "NIBObee";
  787. # type = "usbasp";
  788. # connection_type = usb;
  789. # usbvid = 0x16C0; # VOTI
  790. # usbpid = 0x092F; # NIBObee PID
  791. # usbvendor = "www.nicai-systems.com";
  792. # usbproduct = "NIBObee";
  793. # ;
  794. # programmer
  795. # id = "usbasp-clone";
  796. # desc = "Any usbasp clone with correct VID/PID";
  797. # type = "usbasp";
  798. # connection_type = usb;
  799. # usbvid = 0x16C0; # VOTI
  800. # usbpid = 0x05DC; # Obdev's free shared PID
  801. # #usbvendor = "";
  802. # #usbproduct = "";
  803. # ;
  804. # programmer
  805. # id = "usbtiny";
  806. # desc = "USBtiny simple USB programmer, http://www.ladyada.net/make/usbtinyisp/";
  807. # type = "usbtiny";
  808. # connection_type = usb;
  809. # usbvid = 0x1781;
  810. # usbpid = 0x0c9f;
  811. # ;
  812. programmer
  813. id = "butterfly";
  814. desc = "Atmel Butterfly Development Board";
  815. type = "butterfly";
  816. connection_type = serial;
  817. ;
  818. programmer
  819. id = "avr109";
  820. desc = "Atmel AppNote AVR109 Boot Loader";
  821. type = "butterfly";
  822. connection_type = serial;
  823. ;
  824. programmer
  825. id = "avr911";
  826. desc = "Atmel AppNote AVR911 AVROSP";
  827. type = "butterfly";
  828. connection_type = serial;
  829. ;
  830. # suggested in http://forum.mikrokopter.de/topic-post48317.html
  831. programmer
  832. id = "mkbutterfly";
  833. desc = "Mikrokopter.de Butterfly";
  834. type = "butterfly_mk";
  835. connection_type = serial;
  836. ;
  837. programmer parent "mkbutterfly"
  838. id = "butterfly_mk";
  839. ;
  840. # programmer
  841. # id = "jtagmkI";
  842. # desc = "Atmel JTAG ICE (mkI)";
  843. # baudrate = 115200; # default is 115200
  844. # type = "jtagmki";
  845. # connection_type = serial;
  846. # ;
  847. # # easier to type
  848. # programmer parent "jtagmkI"
  849. # id = "jtag1";
  850. # ;
  851. # # easier to type
  852. # programmer parent "jtag1"
  853. # id = "jtag1slow";
  854. # baudrate = 19200;
  855. # ;
  856. # # The JTAG ICE mkII has both, serial and USB connectivity. As it is
  857. # # mostly used through USB these days (AVR Studio 5 only supporting it
  858. # # that way), we make connection_type = usb the default. Users are
  859. # # still free to use a serial port with the -P option.
  860. # programmer
  861. # id = "jtagmkII";
  862. # desc = "Atmel JTAG ICE mkII";
  863. # baudrate = 19200; # default is 19200
  864. # type = "jtagmkii";
  865. # connection_type = usb;
  866. # ;
  867. # # easier to type
  868. # programmer parent "jtagmkII"
  869. # id = "jtag2slow";
  870. # ;
  871. # # JTAG ICE mkII @ 115200 Bd
  872. # programmer parent "jtag2slow"
  873. # id = "jtag2fast";
  874. # baudrate = 115200;
  875. # ;
  876. # # make the fast one the default, people will love that
  877. # programmer parent "jtag2fast"
  878. # id = "jtag2";
  879. # ;
  880. # # JTAG ICE mkII in ISP mode
  881. # programmer
  882. # id = "jtag2isp";
  883. # desc = "Atmel JTAG ICE mkII in ISP mode";
  884. # baudrate = 115200;
  885. # type = "jtagmkii_isp";
  886. # connection_type = usb;
  887. # ;
  888. # # JTAG ICE mkII in debugWire mode
  889. # programmer
  890. # id = "jtag2dw";
  891. # desc = "Atmel JTAG ICE mkII in debugWire mode";
  892. # baudrate = 115200;
  893. # type = "jtagmkii_dw";
  894. # connection_type = usb;
  895. # ;
  896. # # JTAG ICE mkII in AVR32 mode
  897. # programmer
  898. # id = "jtagmkII_avr32";
  899. # desc = "Atmel JTAG ICE mkII im AVR32 mode";
  900. # baudrate = 115200;
  901. # type = "jtagmkii_avr32";
  902. # connection_type = usb;
  903. # ;
  904. # # JTAG ICE mkII in AVR32 mode
  905. # programmer
  906. # id = "jtag2avr32";
  907. # desc = "Atmel JTAG ICE mkII im AVR32 mode";
  908. # baudrate = 115200;
  909. # type = "jtagmkii_avr32";
  910. # connection_type = usb;
  911. # ;
  912. # # JTAG ICE mkII in PDI mode
  913. # programmer
  914. # id = "jtag2pdi";
  915. # desc = "Atmel JTAG ICE mkII PDI mode";
  916. # baudrate = 115200;
  917. # type = "jtagmkii_pdi";
  918. # connection_type = usb;
  919. # ;
  920. # # AVR Dragon in JTAG mode
  921. # programmer
  922. # id = "dragon_jtag";
  923. # desc = "Atmel AVR Dragon in JTAG mode";
  924. # baudrate = 115200;
  925. # type = "dragon_jtag";
  926. # connection_type = usb;
  927. # ;
  928. # # AVR Dragon in ISP mode
  929. # programmer
  930. # id = "dragon_isp";
  931. # desc = "Atmel AVR Dragon in ISP mode";
  932. # baudrate = 115200;
  933. # type = "dragon_isp";
  934. # connection_type = usb;
  935. # ;
  936. # # AVR Dragon in PP mode
  937. # programmer
  938. # id = "dragon_pp";
  939. # desc = "Atmel AVR Dragon in PP mode";
  940. # baudrate = 115200;
  941. # type = "dragon_pp";
  942. # connection_type = usb;
  943. # ;
  944. # # AVR Dragon in HVSP mode
  945. # programmer
  946. # id = "dragon_hvsp";
  947. # desc = "Atmel AVR Dragon in HVSP mode";
  948. # baudrate = 115200;
  949. # type = "dragon_hvsp";
  950. # connection_type = usb;
  951. # ;
  952. # # AVR Dragon in debugWire mode
  953. # programmer
  954. # id = "dragon_dw";
  955. # desc = "Atmel AVR Dragon in debugWire mode";
  956. # baudrate = 115200;
  957. # type = "dragon_dw";
  958. # connection_type = usb;
  959. # ;
  960. # # AVR Dragon in PDI mode
  961. # programmer
  962. # id = "dragon_pdi";
  963. # desc = "Atmel AVR Dragon in PDI mode";
  964. # baudrate = 115200;
  965. # type = "dragon_pdi";
  966. # connection_type = usb;
  967. # ;
  968. # programmer
  969. # id = "jtag3";
  970. # desc = "Atmel AVR JTAGICE3 in JTAG mode";
  971. # type = "jtagice3";
  972. # connection_type = usb;
  973. # usbpid = 0x2110, 0x2140;
  974. # ;
  975. # programmer
  976. # id = "jtag3pdi";
  977. # desc = "Atmel AVR JTAGICE3 in PDI mode";
  978. # type = "jtagice3_pdi";
  979. # connection_type = usb;
  980. # usbpid = 0x2110, 0x2140;
  981. # ;
  982. # programmer
  983. # id = "jtag3dw";
  984. # desc = "Atmel AVR JTAGICE3 in debugWIRE mode";
  985. # type = "jtagice3_dw";
  986. # connection_type = usb;
  987. # usbpid = 0x2110, 0x2140;
  988. # ;
  989. # programmer
  990. # id = "jtag3isp";
  991. # desc = "Atmel AVR JTAGICE3 in ISP mode";
  992. # type = "jtagice3_isp";
  993. # connection_type = usb;
  994. # usbpid = 0x2110, 0x2140;
  995. # ;
  996. # programmer
  997. # id = "xplainedpro";
  998. # desc = "Atmel AVR XplainedPro in JTAG mode";
  999. # type = "jtagice3";
  1000. # connection_type = usb;
  1001. # usbpid = 0x2111;
  1002. # ;
  1003. # programmer
  1004. # id = "xplainedmini";
  1005. # desc = "Atmel AVR XplainedMini in ISP mode";
  1006. # type = "jtagice3_isp";
  1007. # connection_type = usb;
  1008. # usbpid = 0x2145;
  1009. # ;
  1010. # programmer
  1011. # id = "xplainedmini_dw";
  1012. # desc = "Atmel AVR XplainedMini in debugWIRE mode";
  1013. # type = "jtagice3_dw";
  1014. # connection_type = usb;
  1015. # usbpid = 0x2145;
  1016. # ;
  1017. # programmer
  1018. # id = "atmelice";
  1019. # desc = "Atmel-ICE (ARM/AVR) in JTAG mode";
  1020. # type = "jtagice3";
  1021. # connection_type = usb;
  1022. # usbpid = 0x2141;
  1023. # ;
  1024. # programmer
  1025. # id = "atmelice_pdi";
  1026. # desc = "Atmel-ICE (ARM/AVR) in PDI mode";
  1027. # type = "jtagice3_pdi";
  1028. # connection_type = usb;
  1029. # usbpid = 0x2141;
  1030. # ;
  1031. # programmer
  1032. # id = "atmelice_dw";
  1033. # desc = "Atmel-ICE (ARM/AVR) in debugWIRE mode";
  1034. # type = "jtagice3_dw";
  1035. # connection_type = usb;
  1036. # usbpid = 0x2141;
  1037. # ;
  1038. # programmer
  1039. # id = "atmelice_isp";
  1040. # desc = "Atmel-ICE (ARM/AVR) in ISP mode";
  1041. # type = "jtagice3_isp";
  1042. # connection_type = usb;
  1043. # usbpid = 0x2141;
  1044. # ;
  1045. programmer
  1046. id = "pavr";
  1047. desc = "Jason Kyle's pAVR Serial Programmer";
  1048. type = "avr910";
  1049. connection_type = serial;
  1050. ;
  1051. # programmer
  1052. # id = "pickit2";
  1053. # desc = "MicroChip's PICkit2 Programmer";
  1054. # type = "pickit2";
  1055. # connection_type = usb;
  1056. # ;
  1057. # programmer
  1058. # id = "flip1";
  1059. # desc = "FLIP USB DFU protocol version 1 (doc7618)";
  1060. # type = "flip1";
  1061. # connection_type = usb;
  1062. # ;
  1063. # programmer
  1064. # id = "flip2";
  1065. # desc = "FLIP USB DFU protocol version 2 (AVR4023)";
  1066. # type = "flip2";
  1067. # connection_type = usb;
  1068. # ;
  1069. # Parallel port programmers.
  1070. # programmer
  1071. # id = "bsd";
  1072. # desc = "Brian Dean's Programmer, http://www.bsdhome.com/avrdude/";
  1073. # type = "par";
  1074. # connection_type = parallel;
  1075. # vcc = 2, 3, 4, 5;
  1076. # reset = 7;
  1077. # sck = 8;
  1078. # mosi = 9;
  1079. # miso = 10;
  1080. # ;
  1081. # programmer
  1082. # id = "stk200";
  1083. # desc = "STK200";
  1084. # type = "par";
  1085. # connection_type = parallel;
  1086. # buff = 4, 5;
  1087. # sck = 6;
  1088. # mosi = 7;
  1089. # reset = 9;
  1090. # miso = 10;
  1091. # ;
  1092. # The programming dongle used by the popular Ponyprog
  1093. # utility. It is almost similar to the STK200 one,
  1094. # except that there is a LED indicating that the
  1095. # programming is currently in progress.
  1096. # programmer parent "stk200"
  1097. # id = "pony-stk200";
  1098. # desc = "Pony Prog STK200";
  1099. # pgmled = 8;
  1100. # ;
  1101. # programmer
  1102. # id = "dt006";
  1103. # desc = "Dontronics DT006";
  1104. # type = "par";
  1105. # connection_type = parallel;
  1106. # reset = 4;
  1107. # sck = 5;
  1108. # mosi = 2;
  1109. # miso = 11;
  1110. # ;
  1111. # programmer parent "dt006"
  1112. # id = "bascom";
  1113. # desc = "Bascom SAMPLE programming cable";
  1114. # ;
  1115. # programmer
  1116. # id = "alf";
  1117. # desc = "Nightshade ALF-PgmAVR, http://nightshade.homeip.net/";
  1118. # type = "par";
  1119. # connection_type = parallel;
  1120. # vcc = 2, 3, 4, 5;
  1121. # buff = 6;
  1122. # reset = 7;
  1123. # sck = 8;
  1124. # mosi = 9;
  1125. # miso = 10;
  1126. # errled = 1;
  1127. # rdyled = 14;
  1128. # pgmled = 16;
  1129. # vfyled = 17;
  1130. # ;
  1131. # programmer
  1132. # id = "sp12";
  1133. # desc = "Steve Bolt's Programmer";
  1134. # type = "par";
  1135. # connection_type = parallel;
  1136. # vcc = 4,5,6,7,8;
  1137. # reset = 3;
  1138. # sck = 2;
  1139. # mosi = 9;
  1140. # miso = 11;
  1141. # ;
  1142. # programmer
  1143. # id = "picoweb";
  1144. # desc = "Picoweb Programming Cable, http://www.picoweb.net/";
  1145. # type = "par";
  1146. # connection_type = parallel;
  1147. # reset = 2;
  1148. # sck = 3;
  1149. # mosi = 4;
  1150. # miso = 13;
  1151. # ;
  1152. # programmer
  1153. # id = "abcmini";
  1154. # desc = "ABCmini Board, aka Dick Smith HOTCHIP";
  1155. # type = "par";
  1156. # connection_type = parallel;
  1157. # reset = 4;
  1158. # sck = 3;
  1159. # mosi = 2;
  1160. # miso = 10;
  1161. # ;
  1162. # programmer
  1163. # id = "futurlec";
  1164. # desc = "Futurlec.com programming cable.";
  1165. # type = "par";
  1166. # connection_type = parallel;
  1167. # reset = 3;
  1168. # sck = 2;
  1169. # mosi = 1;
  1170. # miso = 10;
  1171. # ;
  1172. # From the contributor of the "xil" jtag cable:
  1173. # The "vcc" definition isn't really vcc (the cable gets its power from
  1174. # the programming circuit) but is necessary to switch one of the
  1175. # buffer lines (trying to add it to the "buff" lines doesn't work in
  1176. # avrdude versions before 5.5j).
  1177. # With this, TMS connects to RESET, TDI to MOSI, TDO to MISO and TCK
  1178. # to SCK (plus vcc/gnd of course)
  1179. # programmer
  1180. # id = "xil";
  1181. # desc = "Xilinx JTAG cable";
  1182. # type = "par";
  1183. # connection_type = parallel;
  1184. # mosi = 2;
  1185. # sck = 3;
  1186. # reset = 4;
  1187. # buff = 5;
  1188. # miso = 13;
  1189. # vcc = 6;
  1190. # ;
  1191. # programmer
  1192. # id = "dapa";
  1193. # desc = "Direct AVR Parallel Access cable";
  1194. # type = "par";
  1195. # connection_type = parallel;
  1196. # vcc = 3;
  1197. # reset = 16;
  1198. # sck = 1;
  1199. # mosi = 2;
  1200. # miso = 11;
  1201. # ;
  1202. # programmer
  1203. # id = "atisp";
  1204. # desc = "AT-ISP V1.1 programming cable for AVR-SDK1 from <http://micro-research.co.th/> micro-research.co.th";
  1205. # type = "par";
  1206. # connection_type = parallel;
  1207. # reset = ~6;
  1208. # sck = ~8;
  1209. # mosi = ~7;
  1210. # miso = ~10;
  1211. # ;
  1212. # programmer
  1213. # id = "ere-isp-avr";
  1214. # desc = "ERE ISP-AVR <http://www.ere.co.th/download/sch050713.pdf>";
  1215. # type = "par";
  1216. # connection_type = parallel;
  1217. # reset = ~4;
  1218. # sck = 3;
  1219. # mosi = 2;
  1220. # miso = 10;
  1221. # ;
  1222. # programmer
  1223. # id = "blaster";
  1224. # desc = "Altera ByteBlaster";
  1225. # type = "par";
  1226. # connection_type = parallel;
  1227. # sck = 2;
  1228. # miso = 11;
  1229. # reset = 3;
  1230. # mosi = 8;
  1231. # buff = 14;
  1232. # ;
  1233. # It is almost same as pony-stk200, except vcc on pin 5 to auto
  1234. # disconnect port (download on http://electropol.free.fr/spip/spip.php?article27)
  1235. # programmer parent "pony-stk200"
  1236. # id = "frank-stk200";
  1237. # desc = "Frank STK200";
  1238. # buff = ; # delete buff pin assignment
  1239. # vcc = 5;
  1240. # ;
  1241. # The AT98ISP Cable is a simple parallel dongle for AT89 family.
  1242. # http://www.atmel.com/dyn/products/tools_card.asp?tool_id=2877
  1243. # programmer
  1244. # id = "89isp";
  1245. # desc = "Atmel at89isp cable";
  1246. # type = "par";
  1247. # connection_type = parallel;
  1248. # reset = 17;
  1249. # sck = 1;
  1250. # mosi = 2;
  1251. # miso = 10;
  1252. # ;
  1253. #This programmer bitbangs GPIO lines using the Linux sysfs GPIO interface
  1254. #
  1255. #To enable it set the configuration below to match the GPIO lines connected to the
  1256. #relevant ISP header pins and uncomment the entry definition. In case you don't
  1257. #have the required permissions to edit this system wide config file put the
  1258. #entry in a separate <your name>.conf file and use it with -C+<your name>.conf
  1259. #on the command line.
  1260. #
  1261. #To check if your avrdude build has support for the linuxgpio programmer compiled in,
  1262. #use -c?type on the command line and look for linuxgpio in the list. If it's not available
  1263. #you need pass the --enable-linuxgpio=yes option to configure and recompile avrdude.
  1264. #
  1265. #programmer
  1266. # id = "linuxgpio";
  1267. # desc = "Use the Linux sysfs interface to bitbang GPIO lines";
  1268. # type = "linuxgpio";
  1269. # reset = ?;
  1270. # sck = ?;
  1271. # mosi = ?;
  1272. # miso = ?;
  1273. #;
  1274. # some ultra cheap programmers use bitbanging on the
  1275. # serialport.
  1276. #
  1277. # PC - DB9 - Pins for RS232:
  1278. #
  1279. # GND 5 -- |O
  1280. # | O| <- 9 RI
  1281. # DTR 4 <- |O |
  1282. # | O| <- 8 CTS
  1283. # TXD 3 <- |O |
  1284. # | O| -> 7 RTS
  1285. # RXD 2 -> |O |
  1286. # | O| <- 6 DSR
  1287. # DCD 1 -> |O
  1288. #
  1289. # Using RXD is currently not supported.
  1290. # Using RI is not supported under Win32 but is supported under Posix.
  1291. # serial ponyprog design (dasa2 in uisp)
  1292. # reset=!txd sck=rts mosi=dtr miso=cts
  1293. programmer
  1294. id = "ponyser";
  1295. desc = "design ponyprog serial, reset=!txd sck=rts mosi=dtr miso=cts";
  1296. type = "serbb";
  1297. connection_type = serial;
  1298. reset = ~3;
  1299. sck = 7;
  1300. mosi = 4;
  1301. miso = 8;
  1302. ;
  1303. # Same as above, different name
  1304. # reset=!txd sck=rts mosi=dtr miso=cts
  1305. programmer parent "ponyser"
  1306. id = "siprog";
  1307. desc = "Lancos SI-Prog <http://www.lancos.com/siprogsch.html>";
  1308. ;
  1309. # unknown (dasa in uisp)
  1310. # reset=rts sck=dtr mosi=txd miso=cts
  1311. programmer
  1312. id = "dasa";
  1313. desc = "serial port banging, reset=rts sck=dtr mosi=txd miso=cts";
  1314. type = "serbb";
  1315. connection_type = serial;
  1316. reset = 7;
  1317. sck = 4;
  1318. mosi = 3;
  1319. miso = 8;
  1320. ;
  1321. # unknown (dasa3 in uisp)
  1322. # reset=!dtr sck=rts mosi=txd miso=cts
  1323. programmer
  1324. id = "dasa3";
  1325. desc = "serial port banging, reset=!dtr sck=rts mosi=txd miso=cts";
  1326. type = "serbb";
  1327. connection_type = serial;
  1328. reset = ~4;
  1329. sck = 7;
  1330. mosi = 3;
  1331. miso = 8;
  1332. ;
  1333. # C2N232i (jumper configuration "auto")
  1334. # reset=dtr sck=!rts mosi=!txd miso=!cts
  1335. programmer
  1336. id = "c2n232i";
  1337. desc = "serial port banging, reset=dtr sck=!rts mosi=!txd miso=!cts";
  1338. type = "serbb";
  1339. connection_type = serial;
  1340. reset = 4;
  1341. sck = ~7;
  1342. mosi = ~3;
  1343. miso = ~8;
  1344. ;
  1345. #
  1346. # PART DEFINITIONS
  1347. #
  1348. #------------------------------------------------------------
  1349. # ATtiny11
  1350. #------------------------------------------------------------
  1351. # This is an HVSP-only device.
  1352. part
  1353. id = "t11";
  1354. desc = "ATtiny11";
  1355. stk500_devcode = 0x11;
  1356. signature = 0x1e 0x90 0x04;
  1357. chip_erase_delay = 20000;
  1358. timeout = 200;
  1359. hvsp_controlstack =
  1360. 0x4C, 0x0C, 0x1C, 0x2C, 0x3C, 0x64, 0x74, 0x00,
  1361. 0x68, 0x78, 0x68, 0x68, 0x00, 0x00, 0x68, 0x78,
  1362. 0x78, 0x00, 0x6D, 0x0C, 0x80, 0x40, 0x20, 0x10,
  1363. 0x11, 0x08, 0x04, 0x02, 0x03, 0x08, 0x04, 0x00;
  1364. hventerstabdelay = 100;
  1365. progmodedelay = 0;
  1366. hvspcmdexedelay = 0;
  1367. synchcycles = 6;
  1368. latchcycles = 1;
  1369. togglevtg = 1;
  1370. poweroffdelay = 25;
  1371. resetdelayms = 0;
  1372. resetdelayus = 50;
  1373. hvleavestabdelay = 100;
  1374. resetdelay = 25;
  1375. chiperasepolltimeout = 40;
  1376. chiperasetime = 0;
  1377. programfusepolltimeout = 25;
  1378. programlockpolltimeout = 25;
  1379. memory "eeprom"
  1380. size = 64;
  1381. blocksize = 64;
  1382. readsize = 256;
  1383. delay = 5;
  1384. ;
  1385. memory "flash"
  1386. size = 1024;
  1387. blocksize = 128;
  1388. readsize = 256;
  1389. delay = 3;
  1390. ;
  1391. memory "signature"
  1392. size = 3;
  1393. ;
  1394. memory "lock"
  1395. size = 1;
  1396. ;
  1397. memory "calibration"
  1398. size = 1;
  1399. ;
  1400. memory "fuse"
  1401. size = 1;
  1402. ;
  1403. ;
  1404. #------------------------------------------------------------
  1405. # ATtiny12
  1406. #------------------------------------------------------------
  1407. part
  1408. id = "t12";
  1409. desc = "ATtiny12";
  1410. stk500_devcode = 0x12;
  1411. avr910_devcode = 0x55;
  1412. signature = 0x1e 0x90 0x05;
  1413. chip_erase_delay = 20000;
  1414. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  1415. "x x x x x x x x x x x x x x x x";
  1416. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
  1417. "x x x x x x x x x x x x x x x x";
  1418. timeout = 200;
  1419. stabdelay = 100;
  1420. cmdexedelay = 25;
  1421. synchloops = 32;
  1422. bytedelay = 0;
  1423. pollindex = 3;
  1424. pollvalue = 0x53;
  1425. predelay = 1;
  1426. postdelay = 1;
  1427. pollmethod = 0;
  1428. hvsp_controlstack =
  1429. 0x4C, 0x0C, 0x1C, 0x2C, 0x3C, 0x64, 0x74, 0x00,
  1430. 0x68, 0x78, 0x68, 0x68, 0x00, 0x00, 0x68, 0x78,
  1431. 0x78, 0x00, 0x6D, 0x0C, 0x80, 0x40, 0x20, 0x10,
  1432. 0x11, 0x08, 0x04, 0x02, 0x03, 0x08, 0x04, 0x00;
  1433. hventerstabdelay = 100;
  1434. hvspcmdexedelay = 0;
  1435. synchcycles = 6;
  1436. latchcycles = 1;
  1437. togglevtg = 1;
  1438. poweroffdelay = 25;
  1439. resetdelayms = 0;
  1440. resetdelayus = 50;
  1441. hvleavestabdelay = 100;
  1442. resetdelay = 25;
  1443. chiperasepolltimeout = 40;
  1444. chiperasetime = 0;
  1445. programfusepolltimeout = 25;
  1446. programlockpolltimeout = 25;
  1447. memory "eeprom"
  1448. size = 64;
  1449. min_write_delay = 9000;
  1450. max_write_delay = 20000;
  1451. readback_p1 = 0xff;
  1452. readback_p2 = 0xff;
  1453. read = "1 0 1 0 0 0 0 0 x x x x x x x x",
  1454. "x x a5 a4 a3 a2 a1 a0 o o o o o o o o";
  1455. write = "1 1 0 0 0 0 0 0 x x x x x x x x",
  1456. "x x a5 a4 a3 a2 a1 a0 i i i i i i i i";
  1457. mode = 0x04;
  1458. delay = 8;
  1459. blocksize = 64;
  1460. readsize = 256;
  1461. ;
  1462. memory "flash"
  1463. size = 1024;
  1464. min_write_delay = 4500;
  1465. max_write_delay = 20000;
  1466. readback_p1 = 0xff;
  1467. readback_p2 = 0xff;
  1468. read_lo = " 0 0 1 0 0 0 0 0",
  1469. " x x x x x x x a8",
  1470. " a7 a6 a5 a4 a3 a2 a1 a0",
  1471. " o o o o o o o o";
  1472. read_hi = " 0 0 1 0 1 0 0 0",
  1473. " x x x x x x x a8",
  1474. " a7 a6 a5 a4 a3 a2 a1 a0",
  1475. " o o o o o o o o";
  1476. write_lo = " 0 1 0 0 0 0 0 0",
  1477. " x x x x x x x a8",
  1478. " a7 a6 a5 a4 a3 a2 a1 a0",
  1479. " i i i i i i i i";
  1480. write_hi = " 0 1 0 0 1 0 0 0",
  1481. " x x x x x x x a8",
  1482. " a7 a6 a5 a4 a3 a2 a1 a0",
  1483. " i i i i i i i i";
  1484. mode = 0x04;
  1485. delay = 5;
  1486. blocksize = 128;
  1487. readsize = 256;
  1488. ;
  1489. memory "signature"
  1490. size = 3;
  1491. read = "0 0 1 1 0 0 0 0 x x x x x x x x",
  1492. "0 0 0 0 0 0 a1 a0 o o o o o o o o";
  1493. ;
  1494. memory "lock"
  1495. size = 1;
  1496. read = "0 1 0 1 1 0 0 0 x x x x x x x x",
  1497. "x x x x x x x x x x x x x o o x";
  1498. write = "1 0 1 0 1 1 0 0 1 1 1 1 1 i i 1",
  1499. "x x x x x x x x x x x x x x x x";
  1500. min_write_delay = 9000;
  1501. max_write_delay = 9000;
  1502. ;
  1503. memory "calibration"
  1504. size = 1;
  1505. read = "0 0 1 1 1 0 0 0 x x x x x x x x",
  1506. "0 0 0 0 0 0 0 0 o o o o o o o o";
  1507. ;
  1508. memory "fuse"
  1509. size = 1;
  1510. read = "0 1 0 1 0 0 0 0 x x x x x x x x",
  1511. "x x x x x x x x o o o o o o o o";
  1512. write = "1 0 1 0 1 1 0 0 1 0 1 x x x x x",
  1513. "x x x x x x x x i i i i i i i i";
  1514. min_write_delay = 9000;
  1515. max_write_delay = 9000;
  1516. ;
  1517. ;
  1518. #------------------------------------------------------------
  1519. # ATtiny13
  1520. #------------------------------------------------------------
  1521. part
  1522. id = "t13";
  1523. desc = "ATtiny13";
  1524. has_debugwire = yes;
  1525. flash_instr = 0xB4, 0x0E, 0x1E;
  1526. eeprom_instr = 0xBB, 0xFE, 0xBB, 0xEE, 0xBB, 0xCC, 0xB2, 0x0D,
  1527. 0xBC, 0x0E, 0xB4, 0x0E, 0xBA, 0x0D, 0xBB, 0xBC,
  1528. 0x99, 0xE1, 0xBB, 0xAC;
  1529. stk500_devcode = 0x14;
  1530. signature = 0x1e 0x90 0x07;
  1531. chip_erase_delay = 4000;
  1532. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  1533. "x x x x x x x x x x x x x x x x";
  1534. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
  1535. "x x x x x x x x x x x x x x x x";
  1536. timeout = 200;
  1537. stabdelay = 100;
  1538. cmdexedelay = 25;
  1539. synchloops = 32;
  1540. bytedelay = 0;
  1541. pollindex = 3;
  1542. pollvalue = 0x53;
  1543. predelay = 1;
  1544. postdelay = 1;
  1545. pollmethod = 1;
  1546. hvsp_controlstack =
  1547. 0x4C, 0x0C, 0x1C, 0x2C, 0x3C, 0x64, 0x74, 0x66,
  1548. 0x68, 0x78, 0x68, 0x68, 0x7A, 0x6A, 0x68, 0x78,
  1549. 0x78, 0x7D, 0x6D, 0x0C, 0x80, 0x40, 0x20, 0x10,
  1550. 0x11, 0x08, 0x04, 0x02, 0x03, 0x08, 0x04, 0x00;
  1551. hventerstabdelay = 100;
  1552. progmodedelay = 0;
  1553. hvspcmdexedelay = 0;
  1554. synchcycles = 6;
  1555. latchcycles = 1;
  1556. togglevtg = 1;
  1557. poweroffdelay = 25;
  1558. resetdelayms = 0;
  1559. resetdelayus = 90;
  1560. hvleavestabdelay = 100;
  1561. resetdelay = 25;
  1562. chiperasepolltimeout = 40;
  1563. chiperasetime = 0;
  1564. programfusepolltimeout = 25;
  1565. programlockpolltimeout = 25;
  1566. ocdrev = 0;
  1567. memory "eeprom"
  1568. size = 64;
  1569. page_size = 4;
  1570. min_write_delay = 4000;
  1571. max_write_delay = 4000;
  1572. readback_p1 = 0xff;
  1573. readback_p2 = 0xff;
  1574. read = "1 0 1 0 0 0 0 0 0 0 0 x x x x x",
  1575. "x x a5 a4 a3 a2 a1 a0 o o o o o o o o";
  1576. write = "1 1 0 0 0 0 0 0 0 0 0 x x x x x",
  1577. "x x a5 a4 a3 a2 a1 a0 i i i i i i i i";
  1578. loadpage_lo = " 1 1 0 0 0 0 0 1",
  1579. " 0 0 0 0 0 0 0 0",
  1580. " 0 0 0 0 0 0 a1 a0",
  1581. " i i i i i i i i";
  1582. writepage = " 1 1 0 0 0 0 1 0",
  1583. " 0 0 x x x x x x",
  1584. " x x a5 a4 a3 a2 0 0",
  1585. " x x x x x x x x";
  1586. mode = 0x41;
  1587. delay = 5;
  1588. blocksize = 4;
  1589. readsize = 256;
  1590. ;
  1591. memory "flash"
  1592. paged = yes;
  1593. size = 1024;
  1594. page_size = 32;
  1595. num_pages = 32;
  1596. min_write_delay = 4500;
  1597. max_write_delay = 4500;
  1598. readback_p1 = 0xff;
  1599. readback_p2 = 0xff;
  1600. read_lo = " 0 0 1 0 0 0 0 0",
  1601. " 0 0 0 0 0 0 0 a8",
  1602. " a7 a6 a5 a4 a3 a2 a1 a0",
  1603. " o o o o o o o o";
  1604. read_hi = " 0 0 1 0 1 0 0 0",
  1605. " 0 0 0 0 0 0 0 a8",
  1606. " a7 a6 a5 a4 a3 a2 a1 a0",
  1607. " o o o o o o o o";
  1608. loadpage_lo = " 0 1 0 0 0 0 0 0",
  1609. " 0 0 0 x x x x x",
  1610. " x x x x a3 a2 a1 a0",
  1611. " i i i i i i i i";
  1612. loadpage_hi = " 0 1 0 0 1 0 0 0",
  1613. " 0 0 0 x x x x x",
  1614. " x x x x a3 a2 a1 a0",
  1615. " i i i i i i i i";
  1616. writepage = " 0 1 0 0 1 1 0 0",
  1617. " 0 0 0 0 0 0 0 a8",
  1618. " a7 a6 a5 a4 x x x x",
  1619. " x x x x x x x x";
  1620. mode = 0x41;
  1621. delay = 6;
  1622. blocksize = 32;
  1623. readsize = 256;
  1624. ;
  1625. memory "signature"
  1626. size = 3;
  1627. read = "0 0 1 1 0 0 0 0 0 0 0 x x x x x",
  1628. "x x x x x x a1 a0 o o o o o o o o";
  1629. ;
  1630. memory "lock"
  1631. size = 1;
  1632. min_write_delay = 4500;
  1633. max_write_delay = 4500;
  1634. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  1635. "x x x x x x x x x x o o o o o o";
  1636. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  1637. "x x x x x x x x 1 1 i i i i i i";
  1638. ;
  1639. memory "calibration"
  1640. size = 2;
  1641. read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
  1642. "0 0 0 0 0 0 0 a0 o o o o o o o o";
  1643. ;
  1644. memory "lfuse"
  1645. size = 1;
  1646. min_write_delay = 4500;
  1647. max_write_delay = 4500;
  1648. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  1649. "x x x x x x x x i i i i i i i i";
  1650. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  1651. "x x x x x x x x o o o o o o o o";
  1652. ;
  1653. memory "hfuse"
  1654. size = 1;
  1655. min_write_delay = 4500;
  1656. max_write_delay = 4500;
  1657. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  1658. "x x x x x x x x i i i i i i i i";
  1659. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  1660. "x x x x x x x x o o o o o o o o";
  1661. ;
  1662. ;
  1663. #------------------------------------------------------------
  1664. # ATtiny15
  1665. #------------------------------------------------------------
  1666. part
  1667. id = "t15";
  1668. desc = "ATtiny15";
  1669. stk500_devcode = 0x13;
  1670. avr910_devcode = 0x56;
  1671. signature = 0x1e 0x90 0x06;
  1672. chip_erase_delay = 8200;
  1673. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  1674. "x x x x x x x x x x x x x x x x";
  1675. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
  1676. "x x x x x x x x x x x x x x x x";
  1677. timeout = 200;
  1678. stabdelay = 100;
  1679. cmdexedelay = 25;
  1680. synchloops = 32;
  1681. bytedelay = 0;
  1682. pollindex = 3;
  1683. pollvalue = 0x53;
  1684. predelay = 1;
  1685. postdelay = 1;
  1686. pollmethod = 0;
  1687. hvsp_controlstack =
  1688. 0x4C, 0x0C, 0x1C, 0x2C, 0x3C, 0x64, 0x74, 0x00,
  1689. 0x68, 0x78, 0x68, 0x68, 0x00, 0x00, 0x68, 0x78,
  1690. 0x78, 0x00, 0x6D, 0x0C, 0x80, 0x40, 0x20, 0x10,
  1691. 0x11, 0x08, 0x04, 0x02, 0x03, 0x08, 0x04, 0x00;
  1692. hventerstabdelay = 100;
  1693. hvspcmdexedelay = 5;
  1694. synchcycles = 6;
  1695. latchcycles = 16;
  1696. togglevtg = 1;
  1697. poweroffdelay = 25;
  1698. resetdelayms = 0;
  1699. resetdelayus = 50;
  1700. hvleavestabdelay = 100;
  1701. resetdelay = 25;
  1702. chiperasepolltimeout = 40;
  1703. chiperasetime = 0;
  1704. programfusepolltimeout = 25;
  1705. programlockpolltimeout = 25;
  1706. memory "eeprom"
  1707. size = 64;
  1708. min_write_delay = 8200;
  1709. max_write_delay = 8200;
  1710. readback_p1 = 0xff;
  1711. readback_p2 = 0xff;
  1712. read = "1 0 1 0 0 0 0 0 x x x x x x x x",
  1713. "x x a5 a4 a3 a2 a1 a0 o o o o o o o o";
  1714. write = "1 1 0 0 0 0 0 0 x x x x x x x x",
  1715. "x x a5 a4 a3 a2 a1 a0 i i i i i i i i";
  1716. mode = 0x04;
  1717. delay = 10;
  1718. blocksize = 64;
  1719. readsize = 256;
  1720. ;
  1721. memory "flash"
  1722. size = 1024;
  1723. min_write_delay = 4100;
  1724. max_write_delay = 4100;
  1725. readback_p1 = 0xff;
  1726. readback_p2 = 0xff;
  1727. read_lo = " 0 0 1 0 0 0 0 0",
  1728. " x x x x x x x a8",
  1729. " a7 a6 a5 a4 a3 a2 a1 a0",
  1730. " o o o o o o o o";
  1731. read_hi = " 0 0 1 0 1 0 0 0",
  1732. " x x x x x x x a8",
  1733. " a7 a6 a5 a4 a3 a2 a1 a0",
  1734. " o o o o o o o o";
  1735. write_lo = " 0 1 0 0 0 0 0 0",
  1736. " x x x x x x x a8",
  1737. " a7 a6 a5 a4 a3 a2 a1 a0",
  1738. " i i i i i i i i";
  1739. write_hi = " 0 1 0 0 1 0 0 0",
  1740. " x x x x x x x a8",
  1741. " a7 a6 a5 a4 a3 a2 a1 a0",
  1742. " i i i i i i i i";
  1743. mode = 0x04;
  1744. delay = 5;
  1745. blocksize = 128;
  1746. readsize = 256;
  1747. ;
  1748. memory "signature"
  1749. size = 3;
  1750. read = "0 0 1 1 0 0 0 0 x x x x x x x x",
  1751. "0 0 0 0 0 0 a1 a0 o o o o o o o o";
  1752. ;
  1753. memory "lock"
  1754. size = 1;
  1755. read = "0 1 0 1 1 0 0 0 x x x x x x x x",
  1756. "x x x x x x x x x x x x x o o x";
  1757. write = "1 0 1 0 1 1 0 0 1 1 1 1 1 i i 1",
  1758. "x x x x x x x x x x x x x x x x";
  1759. min_write_delay = 9000;
  1760. max_write_delay = 9000;
  1761. ;
  1762. memory "calibration"
  1763. size = 1;
  1764. read = "0 0 1 1 1 0 0 0 x x x x x x x x",
  1765. "0 0 0 0 0 0 0 0 o o o o o o o o";
  1766. ;
  1767. memory "fuse"
  1768. size = 1;
  1769. read = "0 1 0 1 0 0 0 0 x x x x x x x x",
  1770. "x x x x x x x x o o o o x x o o";
  1771. write = "1 0 1 0 1 1 0 0 1 0 1 x x x x x",
  1772. "x x x x x x x x i i i i 1 1 i i";
  1773. min_write_delay = 9000;
  1774. max_write_delay = 9000;
  1775. ;
  1776. ;
  1777. #------------------------------------------------------------
  1778. # AT90s1200
  1779. #------------------------------------------------------------
  1780. part
  1781. id = "1200";
  1782. desc = "AT90S1200";
  1783. is_at90s1200 = yes;
  1784. stk500_devcode = 0x33;
  1785. avr910_devcode = 0x13;
  1786. signature = 0x1e 0x90 0x01;
  1787. pagel = 0xd7;
  1788. bs2 = 0xa0;
  1789. chip_erase_delay = 20000;
  1790. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  1791. "x x x x x x x x x x x x x x x x";
  1792. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 0 0 0 0 0",
  1793. "x x x x x x x x x x x x x x x x";
  1794. timeout = 200;
  1795. stabdelay = 100;
  1796. cmdexedelay = 25;
  1797. synchloops = 1;
  1798. bytedelay = 0;
  1799. pollindex = 0;
  1800. pollvalue = 0xFF;
  1801. predelay = 1;
  1802. postdelay = 1;
  1803. pollmethod = 0;
  1804. pp_controlstack =
  1805. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  1806. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  1807. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  1808. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  1809. hventerstabdelay = 100;
  1810. progmodedelay = 0;
  1811. latchcycles = 0;
  1812. togglevtg = 0;
  1813. poweroffdelay = 0;
  1814. resetdelayms = 0;
  1815. resetdelayus = 0;
  1816. hvleavestabdelay = 15;
  1817. chiperasepulsewidth = 15;
  1818. chiperasepolltimeout = 0;
  1819. programfusepulsewidth = 2;
  1820. programfusepolltimeout = 0;
  1821. programlockpulsewidth = 0;
  1822. programlockpolltimeout = 1;
  1823. memory "eeprom"
  1824. size = 64;
  1825. min_write_delay = 4000;
  1826. max_write_delay = 9000;
  1827. readback_p1 = 0x00;
  1828. readback_p2 = 0xff;
  1829. read = "1 0 1 0 0 0 0 0 x x x x x x x x",
  1830. "x x a5 a4 a3 a2 a1 a0 o o o o o o o o";
  1831. write = "1 1 0 0 0 0 0 0 x x x x x x x x",
  1832. "x x a5 a4 a3 a2 a1 a0 i i i i i i i i";
  1833. mode = 0x04;
  1834. delay = 20;
  1835. blocksize = 32;
  1836. readsize = 256;
  1837. ;
  1838. memory "flash"
  1839. size = 1024;
  1840. min_write_delay = 4000;
  1841. max_write_delay = 9000;
  1842. readback_p1 = 0xff;
  1843. readback_p2 = 0xff;
  1844. read_lo = " 0 0 1 0 0 0 0 0",
  1845. " x x x x x x x a8",
  1846. " a7 a6 a5 a4 a3 a2 a1 a0",
  1847. " o o o o o o o o";
  1848. read_hi = " 0 0 1 0 1 0 0 0",
  1849. " x x x x x x x a8",
  1850. " a7 a6 a5 a4 a3 a2 a1 a0",
  1851. " o o o o o o o o";
  1852. write_lo = " 0 1 0 0 0 0 0 0",
  1853. " x x x x x x x a8",
  1854. " a7 a6 a5 a4 a3 a2 a1 a0",
  1855. " i i i i i i i i";
  1856. write_hi = " 0 1 0 0 1 0 0 0",
  1857. " x x x x x x x a8",
  1858. " a7 a6 a5 a4 a3 a2 a1 a0",
  1859. " i i i i i i i i";
  1860. mode = 0x02;
  1861. delay = 15;
  1862. blocksize = 128;
  1863. readsize = 256;
  1864. ;
  1865. memory "signature"
  1866. size = 3;
  1867. read = "0 0 1 1 0 0 0 0 x x x x x x x x",
  1868. "x x x x x x a1 a0 o o o o o o o o";
  1869. ;
  1870. memory "fuse"
  1871. size = 1;
  1872. ;
  1873. memory "lock"
  1874. size = 1;
  1875. min_write_delay = 9000;
  1876. max_write_delay = 20000;
  1877. write = "1 0 1 0 1 1 0 0 1 1 1 1 1 i i 1",
  1878. "x x x x x x x x x x x x x x x x";
  1879. ;
  1880. ;
  1881. #------------------------------------------------------------
  1882. # AT90s4414
  1883. #------------------------------------------------------------
  1884. part
  1885. id = "4414";
  1886. desc = "AT90S4414";
  1887. stk500_devcode = 0x50;
  1888. avr910_devcode = 0x28;
  1889. signature = 0x1e 0x92 0x01;
  1890. chip_erase_delay = 20000;
  1891. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  1892. "x x x x x x x x x x x x x x x x";
  1893. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 0 0 0 0 0",
  1894. "x x x x x x x x x x x x x x x x";
  1895. timeout = 200;
  1896. stabdelay = 100;
  1897. cmdexedelay = 25;
  1898. synchloops = 32;
  1899. bytedelay = 0;
  1900. pollindex = 3;
  1901. pollvalue = 0x53;
  1902. predelay = 1;
  1903. postdelay = 1;
  1904. pollmethod = 0;
  1905. pp_controlstack =
  1906. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  1907. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  1908. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  1909. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x01;
  1910. hventerstabdelay = 100;
  1911. progmodedelay = 0;
  1912. latchcycles = 0;
  1913. togglevtg = 0;
  1914. poweroffdelay = 0;
  1915. resetdelayms = 0;
  1916. resetdelayus = 0;
  1917. hvleavestabdelay = 15;
  1918. chiperasepulsewidth = 15;
  1919. chiperasepolltimeout = 0;
  1920. programfusepulsewidth = 2;
  1921. programfusepolltimeout = 0;
  1922. programlockpulsewidth = 0;
  1923. programlockpolltimeout = 1;
  1924. memory "eeprom"
  1925. size = 256;
  1926. min_write_delay = 9000;
  1927. max_write_delay = 20000;
  1928. readback_p1 = 0x80;
  1929. readback_p2 = 0x7f;
  1930. read = " 1 0 1 0 0 0 0 0 x x x x x x x a8",
  1931. "a7 a6 a5 a4 a3 a2 a1 a0 o o o o o o o o";
  1932. write = " 1 1 0 0 0 0 0 0 x x x x x x x a8",
  1933. "a7 a6 a5 a4 a3 a2 a1 a0 i i i i i i i i";
  1934. mode = 0x04;
  1935. delay = 12;
  1936. blocksize = 64;
  1937. readsize = 256;
  1938. ;
  1939. memory "flash"
  1940. size = 4096;
  1941. min_write_delay = 9000;
  1942. max_write_delay = 20000;
  1943. readback_p1 = 0x7f;
  1944. readback_p2 = 0x7f;
  1945. read_lo = " 0 0 1 0 0 0 0 0",
  1946. " x x x x a11 a10 a9 a8",
  1947. " a7 a6 a5 a4 a3 a2 a1 a0",
  1948. " o o o o o o o o";
  1949. read_hi = " 0 0 1 0 1 0 0 0",
  1950. " x x x x a11 a10 a9 a8",
  1951. " a7 a6 a5 a4 a3 a2 a1 a0",
  1952. " o o o o o o o o";
  1953. write_lo = " 0 1 0 0 0 0 0 0",
  1954. " x x x x a11 a10 a9 a8",
  1955. " a7 a6 a5 a4 a3 a2 a1 a0",
  1956. " i i i i i i i i";
  1957. write_hi = " 0 1 0 0 1 0 0 0",
  1958. " x x x x a11 a10 a9 a8",
  1959. " a7 a6 a5 a4 a3 a2 a1 a0",
  1960. " i i i i i i i i";
  1961. mode = 0x04;
  1962. delay = 12;
  1963. blocksize = 64;
  1964. readsize = 256;
  1965. ;
  1966. memory "signature"
  1967. size = 3;
  1968. read = "0 0 1 1 0 0 0 0 x x x x x x x x",
  1969. "x x x x x x a1 a0 o o o o o o o o";
  1970. ;
  1971. memory "fuse"
  1972. size = 1;
  1973. ;
  1974. memory "lock"
  1975. size = 1;
  1976. write = "1 0 1 0 1 1 0 0 1 1 1 1 1 i i 1",
  1977. "x x x x x x x x x x x x x x x x";
  1978. min_write_delay = 9000;
  1979. max_write_delay = 9000;
  1980. ;
  1981. ;
  1982. #------------------------------------------------------------
  1983. # AT90s2313
  1984. #------------------------------------------------------------
  1985. part
  1986. id = "2313";
  1987. desc = "AT90S2313";
  1988. stk500_devcode = 0x40;
  1989. avr910_devcode = 0x20;
  1990. signature = 0x1e 0x91 0x01;
  1991. chip_erase_delay = 20000;
  1992. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  1993. "x x x x x x x x x x x x x x x x";
  1994. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 0 0 0 0 0",
  1995. "x x x x x x x x x x x x x x x x";
  1996. timeout = 200;
  1997. stabdelay = 100;
  1998. cmdexedelay = 25;
  1999. synchloops = 32;
  2000. bytedelay = 0;
  2001. pollindex = 3;
  2002. pollvalue = 0x53;
  2003. predelay = 1;
  2004. postdelay = 1;
  2005. pollmethod = 0;
  2006. pp_controlstack =
  2007. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  2008. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  2009. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  2010. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  2011. hventerstabdelay = 100;
  2012. progmodedelay = 0;
  2013. latchcycles = 0;
  2014. togglevtg = 0;
  2015. poweroffdelay = 0;
  2016. resetdelayms = 0;
  2017. resetdelayus = 0;
  2018. hvleavestabdelay = 15;
  2019. chiperasepulsewidth = 15;
  2020. chiperasepolltimeout = 0;
  2021. programfusepulsewidth = 2;
  2022. programfusepolltimeout = 0;
  2023. programlockpulsewidth = 0;
  2024. programlockpolltimeout = 1;
  2025. memory "eeprom"
  2026. size = 128;
  2027. min_write_delay = 4000;
  2028. max_write_delay = 9000;
  2029. readback_p1 = 0x80;
  2030. readback_p2 = 0x7f;
  2031. read = "1 0 1 0 0 0 0 0 x x x x x x x x",
  2032. "x a6 a5 a4 a3 a2 a1 a0 o o o o o o o o";
  2033. write = "1 1 0 0 0 0 0 0 x x x x x x x x",
  2034. "x a6 a5 a4 a3 a2 a1 a0 i i i i i i i i";
  2035. mode = 0x04;
  2036. delay = 12;
  2037. blocksize = 64;
  2038. readsize = 256;
  2039. ;
  2040. memory "flash"
  2041. size = 2048;
  2042. min_write_delay = 4000;
  2043. max_write_delay = 9000;
  2044. readback_p1 = 0x7f;
  2045. readback_p2 = 0x7f;
  2046. read_lo = " 0 0 1 0 0 0 0 0",
  2047. " x x x x x x a9 a8",
  2048. " a7 a6 a5 a4 a3 a2 a1 a0",
  2049. " o o o o o o o o";
  2050. read_hi = " 0 0 1 0 1 0 0 0",
  2051. " x x x x x x a9 a8",
  2052. " a7 a6 a5 a4 a3 a2 a1 a0",
  2053. " o o o o o o o o";
  2054. write_lo = " 0 1 0 0 0 0 0 0",
  2055. " x x x x x x a9 a8",
  2056. " a7 a6 a5 a4 a3 a2 a1 a0",
  2057. " i i i i i i i i";
  2058. write_hi = " 0 1 0 0 1 0 0 0",
  2059. " x x x x x x a9 a8",
  2060. " a7 a6 a5 a4 a3 a2 a1 a0",
  2061. " i i i i i i i i";
  2062. mode = 0x04;
  2063. delay = 12;
  2064. blocksize = 128;
  2065. readsize = 256;
  2066. ;
  2067. memory "signature"
  2068. size = 3;
  2069. read = "0 0 1 1 0 0 0 0 x x x x x x x x",
  2070. "x x x x x x a1 a0 o o o o o o o o";
  2071. ;
  2072. memory "fuse"
  2073. size = 1;
  2074. ;
  2075. memory "lock"
  2076. size = 1;
  2077. write = "1 0 1 0 1 1 0 0 1 1 1 x x i i x",
  2078. "x x x x x x x x x x x x x x x x";
  2079. min_write_delay = 9000;
  2080. max_write_delay = 9000;
  2081. ;
  2082. ;
  2083. #------------------------------------------------------------
  2084. # AT90s2333
  2085. #------------------------------------------------------------
  2086. part
  2087. id = "2333";
  2088. ##### WARNING: No XML file for device 'AT90S2333'! #####
  2089. desc = "AT90S2333";
  2090. stk500_devcode = 0x42;
  2091. avr910_devcode = 0x34;
  2092. signature = 0x1e 0x91 0x05;
  2093. chip_erase_delay = 20000;
  2094. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  2095. "x x x x x x x x x x x x x x x x";
  2096. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 0 0 0 0 0",
  2097. "x x x x x x x x x x x x x x x x";
  2098. timeout = 200;
  2099. stabdelay = 100;
  2100. cmdexedelay = 25;
  2101. synchloops = 32;
  2102. bytedelay = 0;
  2103. pollindex = 3;
  2104. pollvalue = 0x53;
  2105. predelay = 1;
  2106. postdelay = 1;
  2107. pollmethod = 0;
  2108. pp_controlstack =
  2109. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  2110. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  2111. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  2112. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  2113. hventerstabdelay = 100;
  2114. progmodedelay = 0;
  2115. latchcycles = 0;
  2116. togglevtg = 0;
  2117. poweroffdelay = 0;
  2118. resetdelayms = 0;
  2119. resetdelayus = 0;
  2120. hvleavestabdelay = 15;
  2121. chiperasepulsewidth = 15;
  2122. chiperasepolltimeout = 0;
  2123. programfusepulsewidth = 2;
  2124. programfusepolltimeout = 0;
  2125. programlockpulsewidth = 0;
  2126. programlockpolltimeout = 1;
  2127. memory "eeprom"
  2128. size = 128;
  2129. min_write_delay = 9000;
  2130. max_write_delay = 20000;
  2131. readback_p1 = 0x00;
  2132. readback_p2 = 0xff;
  2133. read = "1 0 1 0 0 0 0 0 x x x x x x x x",
  2134. "x a6 a5 a4 a3 a2 a1 a0 o o o o o o o o";
  2135. write = "1 1 0 0 0 0 0 0 x x x x x x x x",
  2136. "x a6 a5 a4 a3 a2 a1 a0 i i i i i i i i";
  2137. mode = 0x04;
  2138. delay = 12;
  2139. blocksize = 128;
  2140. readsize = 256;
  2141. ;
  2142. memory "flash"
  2143. size = 2048;
  2144. min_write_delay = 9000;
  2145. max_write_delay = 20000;
  2146. readback_p1 = 0xff;
  2147. readback_p2 = 0xff;
  2148. read_lo = " 0 0 1 0 0 0 0 0",
  2149. " x x x x x x a9 a8",
  2150. " a7 a6 a5 a4 a3 a2 a1 a0",
  2151. " o o o o o o o o";
  2152. read_hi = " 0 0 1 0 1 0 0 0",
  2153. " x x x x x x a9 a8",
  2154. " a7 a6 a5 a4 a3 a2 a1 a0",
  2155. " o o o o o o o o";
  2156. write_lo = " 0 1 0 0 0 0 0 0",
  2157. " x x x x x x a9 a8",
  2158. " a7 a6 a5 a4 a3 a2 a1 a0",
  2159. " i i i i i i i i";
  2160. write_hi = " 0 1 0 0 1 0 0 0",
  2161. " x x x x x x a9 a8",
  2162. " a7 a6 a5 a4 a3 a2 a1 a0",
  2163. " i i i i i i i i";
  2164. mode = 0x04;
  2165. delay = 12;
  2166. blocksize = 128;
  2167. readsize = 256;
  2168. ;
  2169. memory "signature"
  2170. size = 3;
  2171. read = "0 0 1 1 0 0 0 0 x x x x x x x x",
  2172. "x x x x x x a1 a0 o o o o o o o o";
  2173. ;
  2174. memory "fuse"
  2175. size = 1;
  2176. min_write_delay = 9000;
  2177. max_write_delay = 20000;
  2178. pwroff_after_write = yes;
  2179. read = "0 1 0 1 0 0 0 0 x x x x x x x x",
  2180. "x x x x x x x x x x o o o o o o";
  2181. write = "1 0 1 0 1 1 0 0 1 0 1 i i i i i",
  2182. "x x x x x x x x x x x x x x x x";
  2183. ;
  2184. memory "lock"
  2185. size = 1;
  2186. min_write_delay = 9000;
  2187. max_write_delay = 20000;
  2188. read = "0 1 0 1 1 0 0 0 x x x x x x x x",
  2189. "x x x x x x x x x x x x x o o x";
  2190. write = "1 0 1 0 1 1 0 0 1 1 1 1 1 i i 1",
  2191. "x x x x x x x x x x x x x x x x";
  2192. ;
  2193. ;
  2194. #------------------------------------------------------------
  2195. # AT90s2343 (also AT90s2323 and ATtiny22)
  2196. #------------------------------------------------------------
  2197. part
  2198. id = "2343";
  2199. desc = "AT90S2343";
  2200. stk500_devcode = 0x43;
  2201. avr910_devcode = 0x4c;
  2202. signature = 0x1e 0x91 0x03;
  2203. chip_erase_delay = 18000;
  2204. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  2205. "x x x x x x x x x x x x x x x x";
  2206. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
  2207. "x x x x x x x x x x x x x x x x";
  2208. timeout = 200;
  2209. stabdelay = 100;
  2210. cmdexedelay = 25;
  2211. synchloops = 32;
  2212. bytedelay = 0;
  2213. pollindex = 3;
  2214. pollvalue = 0x53;
  2215. predelay = 1;
  2216. postdelay = 1;
  2217. pollmethod = 0;
  2218. hvsp_controlstack =
  2219. 0x4C, 0x0C, 0x1C, 0x2C, 0x3C, 0x64, 0x74, 0x00,
  2220. 0x68, 0x78, 0x68, 0x68, 0x00, 0x00, 0x68, 0x78,
  2221. 0x78, 0x00, 0x6D, 0x0C, 0x80, 0x40, 0x20, 0x10,
  2222. 0x11, 0x08, 0x04, 0x02, 0x03, 0x08, 0x04, 0x00;
  2223. hventerstabdelay = 100;
  2224. hvspcmdexedelay = 0;
  2225. synchcycles = 6;
  2226. latchcycles = 1;
  2227. togglevtg = 0;
  2228. poweroffdelay = 25;
  2229. resetdelayms = 0;
  2230. resetdelayus = 50;
  2231. hvleavestabdelay = 100;
  2232. resetdelay = 25;
  2233. chiperasepolltimeout = 40;
  2234. chiperasetime = 0;
  2235. programfusepolltimeout = 25;
  2236. programlockpolltimeout = 25;
  2237. memory "eeprom"
  2238. size = 128;
  2239. min_write_delay = 9000;
  2240. max_write_delay = 20000;
  2241. readback_p1 = 0x00;
  2242. readback_p2 = 0xff;
  2243. read = "1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0",
  2244. "x a6 a5 a4 a3 a2 a1 a0 o o o o o o o o";
  2245. write = "1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0",
  2246. "x a6 a5 a4 a3 a2 a1 a0 i i i i i i i i";
  2247. mode = 0x04;
  2248. delay = 12;
  2249. blocksize = 64;
  2250. readsize = 256;
  2251. ;
  2252. memory "flash"
  2253. size = 2048;
  2254. min_write_delay = 9000;
  2255. max_write_delay = 20000;
  2256. readback_p1 = 0xff;
  2257. readback_p2 = 0xff;
  2258. read_lo = " 0 0 1 0 0 0 0 0",
  2259. " x x x x x x a9 a8",
  2260. " a7 a6 a5 a4 a3 a2 a1 a0",
  2261. " o o o o o o o o";
  2262. read_hi = " 0 0 1 0 1 0 0 0",
  2263. " x x x x x x a9 a8",
  2264. " a7 a6 a5 a4 a3 a2 a1 a0",
  2265. " o o o o o o o o";
  2266. write_lo = " 0 1 0 0 0 0 0 0",
  2267. " x x x x x x a9 a8",
  2268. " a7 a6 a5 a4 a3 a2 a1 a0",
  2269. " i i i i i i i i";
  2270. write_hi = " 0 1 0 0 1 0 0 0",
  2271. " x x x x x x a9 a8",
  2272. " a7 a6 a5 a4 a3 a2 a1 a0",
  2273. " i i i i i i i i";
  2274. mode = 0x04;
  2275. delay = 12;
  2276. blocksize = 128;
  2277. readsize = 128;
  2278. ;
  2279. memory "signature"
  2280. size = 3;
  2281. read = "0 0 1 1 0 0 0 0 x x x x x x x x",
  2282. "x x x x x x a1 a0 o o o o o o o o";
  2283. ;
  2284. memory "fuse"
  2285. size = 1;
  2286. min_write_delay = 9000;
  2287. max_write_delay = 20000;
  2288. read = "0 1 0 1 1 0 0 0 x x x x x x x x",
  2289. "x x x x x x x x o o o x x x x o";
  2290. write = "1 0 1 0 1 1 0 0 1 0 1 1 1 1 1 i",
  2291. "x x x x x x x x x x x x x x x x";
  2292. ;
  2293. memory "lock"
  2294. size = 1;
  2295. min_write_delay = 9000;
  2296. max_write_delay = 20000;
  2297. read = "0 1 0 1 1 0 0 0 x x x x x x x x",
  2298. "x x x x x x x x o o o x x x x o";
  2299. write = "1 0 1 0 1 1 0 0 1 1 1 1 1 i i 1",
  2300. "x x x x x x x x x x x x x x x x";
  2301. ;
  2302. ;
  2303. #------------------------------------------------------------
  2304. # AT90s4433
  2305. #------------------------------------------------------------
  2306. part
  2307. id = "4433";
  2308. desc = "AT90S4433";
  2309. stk500_devcode = 0x51;
  2310. avr910_devcode = 0x30;
  2311. signature = 0x1e 0x92 0x03;
  2312. chip_erase_delay = 20000;
  2313. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  2314. "x x x x x x x x x x x x x x x x";
  2315. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 0 0 0 0 0",
  2316. "x x x x x x x x x x x x x x x x";
  2317. timeout = 200;
  2318. stabdelay = 100;
  2319. cmdexedelay = 25;
  2320. synchloops = 32;
  2321. bytedelay = 0;
  2322. pollindex = 3;
  2323. pollvalue = 0x53;
  2324. predelay = 1;
  2325. postdelay = 1;
  2326. pollmethod = 0;
  2327. pp_controlstack =
  2328. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  2329. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  2330. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  2331. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  2332. hventerstabdelay = 100;
  2333. progmodedelay = 0;
  2334. latchcycles = 0;
  2335. togglevtg = 0;
  2336. poweroffdelay = 0;
  2337. resetdelayms = 0;
  2338. resetdelayus = 0;
  2339. hvleavestabdelay = 15;
  2340. chiperasepulsewidth = 15;
  2341. chiperasepolltimeout = 0;
  2342. programfusepulsewidth = 2;
  2343. programfusepolltimeout = 0;
  2344. programlockpulsewidth = 0;
  2345. programlockpolltimeout = 1;
  2346. memory "eeprom"
  2347. size = 256;
  2348. min_write_delay = 9000;
  2349. max_write_delay = 20000;
  2350. readback_p1 = 0x00;
  2351. readback_p2 = 0xff;
  2352. read = " 1 0 1 0 0 0 0 0 x x x x x x x x",
  2353. "a7 a6 a5 a4 a3 a2 a1 a0 o o o o o o o o";
  2354. write = " 1 1 0 0 0 0 0 0 x x x x x x x x",
  2355. "a7 a6 a5 a4 a3 a2 a1 a0 i i i i i i i i";
  2356. mode = 0x04;
  2357. delay = 12;
  2358. blocksize = 128;
  2359. readsize = 256;
  2360. ;
  2361. memory "flash"
  2362. size = 4096;
  2363. min_write_delay = 9000;
  2364. max_write_delay = 20000;
  2365. readback_p1 = 0xff;
  2366. readback_p2 = 0xff;
  2367. read_lo = " 0 0 1 0 0 0 0 0",
  2368. " x x x x x a10 a9 a8",
  2369. " a7 a6 a5 a4 a3 a2 a1 a0",
  2370. " o o o o o o o o";
  2371. read_hi = " 0 0 1 0 1 0 0 0",
  2372. " x x x x x a10 a9 a8",
  2373. " a7 a6 a5 a4 a3 a2 a1 a0",
  2374. " o o o o o o o o";
  2375. write_lo = " 0 1 0 0 0 0 0 0",
  2376. " x x x x x a10 a9 a8",
  2377. " a7 a6 a5 a4 a3 a2 a1 a0",
  2378. " i i i i i i i i";
  2379. write_hi = " 0 1 0 0 1 0 0 0",
  2380. " x x x x x a10 a9 a8",
  2381. " a7 a6 a5 a4 a3 a2 a1 a0",
  2382. " i i i i i i i i";
  2383. mode = 0x04;
  2384. delay = 12;
  2385. blocksize = 128;
  2386. readsize = 256;
  2387. ;
  2388. memory "signature"
  2389. size = 3;
  2390. read = "0 0 1 1 0 0 0 0 x x x x x x x x",
  2391. "x x x x x x a1 a0 o o o o o o o o";
  2392. ;
  2393. memory "fuse"
  2394. size = 1;
  2395. min_write_delay = 9000;
  2396. max_write_delay = 20000;
  2397. pwroff_after_write = yes;
  2398. read = "0 1 0 1 0 0 0 0 x x x x x x x x",
  2399. "x x x x x x x x x x o o o o o o";
  2400. write = "1 0 1 0 1 1 0 0 1 0 1 i i i i i",
  2401. "x x x x x x x x x x x x x x x x";
  2402. ;
  2403. memory "lock"
  2404. size = 1;
  2405. min_write_delay = 9000;
  2406. max_write_delay = 20000;
  2407. read = "0 1 0 1 1 0 0 0 x x x x x x x x",
  2408. "x x x x x x x x x x x x x o o x";
  2409. write = "1 0 1 0 1 1 0 0 1 1 1 1 1 i i 1",
  2410. "x x x x x x x x x x x x x x x x";
  2411. ;
  2412. ;
  2413. #------------------------------------------------------------
  2414. # AT90s4434
  2415. #------------------------------------------------------------
  2416. part
  2417. id = "4434";
  2418. ##### WARNING: No XML file for device 'AT90S4434'! #####
  2419. desc = "AT90S4434";
  2420. stk500_devcode = 0x52;
  2421. avr910_devcode = 0x6c;
  2422. signature = 0x1e 0x92 0x02;
  2423. chip_erase_delay = 20000;
  2424. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  2425. "x x x x x x x x x x x x x x x x";
  2426. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 0 0 0 0 0",
  2427. "x x x x x x x x x x x x x x x x";
  2428. memory "eeprom"
  2429. size = 256;
  2430. min_write_delay = 9000;
  2431. max_write_delay = 20000;
  2432. readback_p1 = 0x00;
  2433. readback_p2 = 0xff;
  2434. read = " 1 0 1 0 0 0 0 0 x x x x x x x x",
  2435. "a7 a6 a5 a4 a3 a2 a1 a0 o o o o o o o o";
  2436. write = " 1 1 0 0 0 0 0 0 x x x x x x x x",
  2437. "a7 a6 a5 a4 a3 a2 a1 a0 i i i i i i i i";
  2438. ;
  2439. memory "flash"
  2440. size = 4096;
  2441. min_write_delay = 9000;
  2442. max_write_delay = 20000;
  2443. readback_p1 = 0xff;
  2444. readback_p2 = 0xff;
  2445. read_lo = " 0 0 1 0 0 0 0 0",
  2446. " x x x x x a10 a9 a8",
  2447. " a7 a6 a5 a4 a3 a2 a1 a0",
  2448. " o o o o o o o o";
  2449. read_hi = " 0 0 1 0 1 0 0 0",
  2450. " x x x x x a10 a9 a8",
  2451. " a7 a6 a5 a4 a3 a2 a1 a0",
  2452. " o o o o o o o o";
  2453. write_lo = " 0 1 0 0 0 0 0 0",
  2454. " x x x x x a10 a9 a8",
  2455. " a7 a6 a5 a4 a3 a2 a1 a0",
  2456. " i i i i i i i i";
  2457. write_hi = " 0 1 0 0 1 0 0 0",
  2458. " x x x x x a10 a9 a8",
  2459. " a7 a6 a5 a4 a3 a2 a1 a0",
  2460. " i i i i i i i i";
  2461. ;
  2462. memory "signature"
  2463. size = 3;
  2464. read = "0 0 1 1 0 0 0 0 x x x x x x x x",
  2465. "x x x x x x a1 a0 o o o o o o o o";
  2466. ;
  2467. memory "fuse"
  2468. size = 1;
  2469. min_write_delay = 9000;
  2470. max_write_delay = 20000;
  2471. read = "0 1 0 1 0 0 0 0 x x x x x x x x",
  2472. "x x x x x x x x x x o o o o o o";
  2473. write = "1 0 1 0 1 1 0 0 1 0 1 i i i i i",
  2474. "x x x x x x x x x x x x x x x x";
  2475. ;
  2476. memory "lock"
  2477. size = 1;
  2478. min_write_delay = 9000;
  2479. max_write_delay = 20000;
  2480. read = "0 1 0 1 1 0 0 0 x x x x x x x x",
  2481. "x x x x x x x x x x x x x o o x";
  2482. write = "1 0 1 0 1 1 0 0 1 1 1 1 1 i i 1",
  2483. "x x x x x x x x x x x x x x x x";
  2484. ;
  2485. ;
  2486. #------------------------------------------------------------
  2487. # AT90s8515
  2488. #------------------------------------------------------------
  2489. part
  2490. id = "8515";
  2491. desc = "AT90S8515";
  2492. stk500_devcode = 0x60;
  2493. avr910_devcode = 0x38;
  2494. signature = 0x1e 0x93 0x01;
  2495. chip_erase_delay = 20000;
  2496. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  2497. "x x x x x x x x x x x x x x x x";
  2498. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
  2499. "x x x x x x x x x x x x x x x x";
  2500. timeout = 200;
  2501. stabdelay = 100;
  2502. cmdexedelay = 25;
  2503. synchloops = 32;
  2504. bytedelay = 0;
  2505. pollindex = 3;
  2506. pollvalue = 0x53;
  2507. predelay = 1;
  2508. postdelay = 1;
  2509. pollmethod = 0;
  2510. pp_controlstack =
  2511. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  2512. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  2513. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  2514. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  2515. hventerstabdelay = 100;
  2516. progmodedelay = 0;
  2517. latchcycles = 0;
  2518. togglevtg = 0;
  2519. poweroffdelay = 0;
  2520. resetdelayms = 0;
  2521. resetdelayus = 0;
  2522. hvleavestabdelay = 15;
  2523. resetdelay = 15;
  2524. chiperasepulsewidth = 15;
  2525. chiperasepolltimeout = 0;
  2526. programfusepulsewidth = 2;
  2527. programfusepolltimeout = 0;
  2528. programlockpulsewidth = 0;
  2529. programlockpolltimeout = 1;
  2530. memory "eeprom"
  2531. size = 512;
  2532. min_write_delay = 4000;
  2533. max_write_delay = 9000;
  2534. readback_p1 = 0x80;
  2535. readback_p2 = 0x7f;
  2536. read = " 1 0 1 0 0 0 0 0 x x x x x x x a8",
  2537. "a7 a6 a5 a4 a3 a2 a1 a0 o o o o o o o o";
  2538. write = " 1 1 0 0 0 0 0 0 x x x x x x x a8",
  2539. "a7 a6 a5 a4 a3 a2 a1 a0 i i i i i i i i";
  2540. mode = 0x04;
  2541. delay = 12;
  2542. blocksize = 128;
  2543. readsize = 256;
  2544. ;
  2545. memory "flash"
  2546. size = 8192;
  2547. min_write_delay = 4000;
  2548. max_write_delay = 9000;
  2549. readback_p1 = 0x7f;
  2550. readback_p2 = 0x7f;
  2551. read_lo = " 0 0 1 0 0 0 0 0",
  2552. " x x x x a11 a10 a9 a8",
  2553. " a7 a6 a5 a4 a3 a2 a1 a0",
  2554. " o o o o o o o o";
  2555. read_hi = " 0 0 1 0 1 0 0 0",
  2556. " x x x x a11 a10 a9 a8",
  2557. " a7 a6 a5 a4 a3 a2 a1 a0",
  2558. " o o o o o o o o";
  2559. write_lo = " 0 1 0 0 0 0 0 0",
  2560. " x x x x a11 a10 a9 a8",
  2561. " a7 a6 a5 a4 a3 a2 a1 a0",
  2562. " i i i i i i i i";
  2563. write_hi = " 0 1 0 0 1 0 0 0",
  2564. " x x x x a11 a10 a9 a8",
  2565. " a7 a6 a5 a4 a3 a2 a1 a0",
  2566. " i i i i i i i i";
  2567. mode = 0x04;
  2568. delay = 12;
  2569. blocksize = 128;
  2570. readsize = 256;
  2571. ;
  2572. memory "signature"
  2573. size = 3;
  2574. read = "0 0 1 1 0 0 0 0 x x x x x x x x",
  2575. "x x x x x x a1 a0 o o o o o o o o";
  2576. ;
  2577. memory "fuse"
  2578. size = 1;
  2579. ;
  2580. memory "lock"
  2581. size = 1;
  2582. write = "1 0 1 0 1 1 0 0 1 1 1 1 1 i i 1",
  2583. "x x x x x x x x x x x x x x x x";
  2584. min_write_delay = 9000;
  2585. max_write_delay = 9000;
  2586. ;
  2587. ;
  2588. #------------------------------------------------------------
  2589. # AT90s8535
  2590. #------------------------------------------------------------
  2591. part
  2592. id = "8535";
  2593. desc = "AT90S8535";
  2594. stk500_devcode = 0x61;
  2595. avr910_devcode = 0x68;
  2596. signature = 0x1e 0x93 0x03;
  2597. chip_erase_delay = 20000;
  2598. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  2599. "x x x x x x x x x x x x x x x x";
  2600. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 0 0 0 0 0",
  2601. "x x x x x x x x x x x x x x x x";
  2602. timeout = 200;
  2603. stabdelay = 100;
  2604. cmdexedelay = 25;
  2605. synchloops = 32;
  2606. bytedelay = 0;
  2607. pollindex = 3;
  2608. pollvalue = 0x53;
  2609. predelay = 1;
  2610. postdelay = 1;
  2611. pollmethod = 0;
  2612. pp_controlstack =
  2613. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  2614. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  2615. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  2616. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  2617. hventerstabdelay = 100;
  2618. progmodedelay = 0;
  2619. latchcycles = 0;
  2620. togglevtg = 0;
  2621. poweroffdelay = 0;
  2622. resetdelayms = 0;
  2623. resetdelayus = 0;
  2624. hvleavestabdelay = 15;
  2625. chiperasepulsewidth = 15;
  2626. chiperasepolltimeout = 0;
  2627. programfusepulsewidth = 2;
  2628. programfusepolltimeout = 0;
  2629. programlockpulsewidth = 0;
  2630. programlockpolltimeout = 1;
  2631. memory "eeprom"
  2632. size = 512;
  2633. min_write_delay = 9000;
  2634. max_write_delay = 20000;
  2635. readback_p1 = 0x00;
  2636. readback_p2 = 0xff;
  2637. read = " 1 0 1 0 0 0 0 0 x x x x x x x a8",
  2638. "a7 a6 a5 a4 a3 a2 a1 a0 o o o o o o o o";
  2639. write = " 1 1 0 0 0 0 0 0 x x x x x x x a8",
  2640. "a7 a6 a5 a4 a3 a2 a1 a0 i i i i i i i i";
  2641. mode = 0x04;
  2642. delay = 12;
  2643. blocksize = 128;
  2644. readsize = 256;
  2645. ;
  2646. memory "flash"
  2647. size = 8192;
  2648. min_write_delay = 9000;
  2649. max_write_delay = 20000;
  2650. readback_p1 = 0xff;
  2651. readback_p2 = 0xff;
  2652. read_lo = " 0 0 1 0 0 0 0 0",
  2653. " x x x x a11 a10 a9 a8",
  2654. " a7 a6 a5 a4 a3 a2 a1 a0",
  2655. " o o o o o o o o";
  2656. read_hi = " 0 0 1 0 1 0 0 0",
  2657. " x x x x a11 a10 a9 a8",
  2658. " a7 a6 a5 a4 a3 a2 a1 a0",
  2659. " o o o o o o o o";
  2660. write_lo = " 0 1 0 0 0 0 0 0",
  2661. " x x x x a11 a10 a9 a8",
  2662. " a7 a6 a5 a4 a3 a2 a1 a0",
  2663. " i i i i i i i i";
  2664. write_hi = " 0 1 0 0 1 0 0 0",
  2665. " x x x x a11 a10 a9 a8",
  2666. " a7 a6 a5 a4 a3 a2 a1 a0",
  2667. " i i i i i i i i";
  2668. mode = 0x04;
  2669. delay = 12;
  2670. blocksize = 128;
  2671. readsize = 256;
  2672. ;
  2673. memory "signature"
  2674. size = 3;
  2675. read = "0 0 1 1 0 0 0 0 x x x x x x x x",
  2676. "x x x x x x a1 a0 o o o o o o o o";
  2677. ;
  2678. memory "fuse"
  2679. size = 1;
  2680. read = "0 1 0 1 1 0 0 0 x x x x x x x x",
  2681. "x x x x x x x x x x x x x x x o";
  2682. write = "1 0 1 0 1 1 0 0 1 0 1 1 1 1 1 i",
  2683. "x x x x x x x x x x x x x x x x";
  2684. min_write_delay = 9000;
  2685. max_write_delay = 9000;
  2686. ;
  2687. memory "lock"
  2688. size = 1;
  2689. read = "0 1 0 1 1 0 0 0 x x x x x x x x",
  2690. "x x x x x x x x o o x x x x x x";
  2691. write = "1 0 1 0 1 1 0 0 1 1 1 1 1 i i 1",
  2692. "x x x x x x x x x x x x x x x x";
  2693. min_write_delay = 9000;
  2694. max_write_delay = 9000;
  2695. ;
  2696. ;
  2697. #------------------------------------------------------------
  2698. # ATmega103
  2699. #------------------------------------------------------------
  2700. part
  2701. id = "m103";
  2702. desc = "ATmega103";
  2703. stk500_devcode = 0xB1;
  2704. avr910_devcode = 0x41;
  2705. signature = 0x1e 0x97 0x01;
  2706. chip_erase_delay = 112000;
  2707. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  2708. "x x x x x x x x x x x x x x x x";
  2709. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 0 0 0 0 0",
  2710. "x x x x x x x x x x x x x x x x";
  2711. timeout = 200;
  2712. stabdelay = 100;
  2713. cmdexedelay = 25;
  2714. synchloops = 32;
  2715. bytedelay = 0;
  2716. pollindex = 3;
  2717. pollvalue = 0x53;
  2718. predelay = 1;
  2719. postdelay = 1;
  2720. pollmethod = 0;
  2721. pp_controlstack =
  2722. 0x0E, 0x1E, 0x8E, 0x9E, 0x2E, 0x3E, 0xAE, 0xBE,
  2723. 0x4E, 0x5E, 0xCE, 0xDE, 0x6E, 0x7E, 0xEE, 0xDE,
  2724. 0x66, 0x76, 0xE6, 0xF6, 0x6A, 0x7A, 0xEA, 0x7A,
  2725. 0x7F, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  2726. hventerstabdelay = 100;
  2727. progmodedelay = 0;
  2728. latchcycles = 0;
  2729. togglevtg = 0;
  2730. poweroffdelay = 0;
  2731. resetdelayms = 0;
  2732. resetdelayus = 0;
  2733. hvleavestabdelay = 15;
  2734. chiperasepulsewidth = 15;
  2735. chiperasepolltimeout = 0;
  2736. programfusepulsewidth = 2;
  2737. programfusepolltimeout = 0;
  2738. programlockpulsewidth = 0;
  2739. programlockpolltimeout = 10;
  2740. memory "eeprom"
  2741. size = 4096;
  2742. min_write_delay = 4000;
  2743. max_write_delay = 9000;
  2744. readback_p1 = 0x80;
  2745. readback_p2 = 0x7f;
  2746. read = " 1 0 1 0 0 0 0 0",
  2747. " x x x x a11 a10 a9 a8",
  2748. " a7 a6 a5 a4 a3 a2 a1 a0",
  2749. " o o o o o o o o";
  2750. write = " 1 1 0 0 0 0 0 0",
  2751. " x x x x a11 a10 a9 a8",
  2752. " a7 a6 a5 a4 a3 a2 a1 a0",
  2753. " i i i i i i i i";
  2754. mode = 0x04;
  2755. delay = 12;
  2756. blocksize = 64;
  2757. readsize = 256;
  2758. ;
  2759. memory "flash"
  2760. paged = yes;
  2761. size = 131072;
  2762. page_size = 256;
  2763. num_pages = 512;
  2764. min_write_delay = 22000;
  2765. max_write_delay = 56000;
  2766. readback_p1 = 0xff;
  2767. readback_p2 = 0xff;
  2768. read_lo = " 0 0 1 0 0 0 0 0",
  2769. "a15 a14 a13 a12 a11 a10 a9 a8",
  2770. " a7 a6 a5 a4 a3 a2 a1 a0",
  2771. " o o o o o o o o";
  2772. read_hi = " 0 0 1 0 1 0 0 0",
  2773. "a15 a14 a13 a12 a11 a10 a9 a8",
  2774. " a7 a6 a5 a4 a3 a2 a1 a0",
  2775. " o o o o o o o o";
  2776. loadpage_lo = " 0 1 0 0 0 0 0 0",
  2777. " x x x x x x x x",
  2778. " x a6 a5 a4 a3 a2 a1 a0",
  2779. " i i i i i i i i";
  2780. loadpage_hi = " 0 1 0 0 1 0 0 0",
  2781. " x x x x x x x x",
  2782. " x a6 a5 a4 a3 a2 a1 a0",
  2783. " i i i i i i i i";
  2784. writepage = " 0 1 0 0 1 1 0 0",
  2785. "a15 a14 a13 a12 a11 a10 a9 a8",
  2786. " a7 x x x x x x x",
  2787. " x x x x x x x x";
  2788. mode = 0x11;
  2789. delay = 70;
  2790. blocksize = 256;
  2791. readsize = 256;
  2792. ;
  2793. memory "fuse"
  2794. size = 1;
  2795. read = "0 1 0 1 0 0 0 0 x x x x x x x x",
  2796. "x x x x x x x x x x o x o 1 o o";
  2797. write = "1 0 1 0 1 1 0 0 1 0 1 1 i 1 i i",
  2798. "x x x x x x x x x x x x x x x x";
  2799. min_write_delay = 9000;
  2800. max_write_delay = 9000;
  2801. ;
  2802. memory "lock"
  2803. size = 1;
  2804. read = "0 1 0 1 1 0 0 0 x x x x x x x x",
  2805. "x x x x x x x x x x x x x o o x";
  2806. write = "1 0 1 0 1 1 0 0 1 1 1 1 1 i i 1",
  2807. "x x x x x x x x x x x x x x x x";
  2808. min_write_delay = 9000;
  2809. max_write_delay = 9000;
  2810. ;
  2811. memory "signature"
  2812. size = 3;
  2813. read = "0 0 1 1 0 0 0 0 x x x x x x x x",
  2814. "x x x x x x a1 a0 o o o o o o o o";
  2815. ;
  2816. ;
  2817. #------------------------------------------------------------
  2818. # ATmega64
  2819. #------------------------------------------------------------
  2820. part
  2821. id = "m64";
  2822. desc = "ATmega64";
  2823. has_jtag = yes;
  2824. stk500_devcode = 0xA0;
  2825. avr910_devcode = 0x45;
  2826. signature = 0x1e 0x96 0x02;
  2827. chip_erase_delay = 9000;
  2828. pagel = 0xD7;
  2829. bs2 = 0xA0;
  2830. reset = dedicated;
  2831. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  2832. "x x x x x x x x x x x x x x x x";
  2833. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 0 0 0 0 0",
  2834. "x x x x x x x x x x x x x x x x";
  2835. timeout = 200;
  2836. stabdelay = 100;
  2837. cmdexedelay = 25;
  2838. synchloops = 32;
  2839. bytedelay = 0;
  2840. pollindex = 3;
  2841. pollvalue = 0x53;
  2842. predelay = 1;
  2843. postdelay = 1;
  2844. pollmethod = 0;
  2845. pp_controlstack =
  2846. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  2847. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  2848. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  2849. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  2850. hventerstabdelay = 100;
  2851. progmodedelay = 0;
  2852. latchcycles = 6;
  2853. togglevtg = 0;
  2854. poweroffdelay = 0;
  2855. resetdelayms = 0;
  2856. resetdelayus = 0;
  2857. hvleavestabdelay = 15;
  2858. chiperasepulsewidth = 0;
  2859. chiperasepolltimeout = 10;
  2860. programfusepulsewidth = 0;
  2861. programfusepolltimeout = 5;
  2862. programlockpulsewidth = 0;
  2863. programlockpolltimeout = 5;
  2864. idr = 0x22;
  2865. spmcr = 0x68;
  2866. allowfullpagebitstream = yes;
  2867. ocdrev = 2;
  2868. memory "eeprom"
  2869. paged = no; /* leave this "no" */
  2870. page_size = 8; /* for parallel programming */
  2871. size = 2048;
  2872. min_write_delay = 9000;
  2873. max_write_delay = 9000;
  2874. readback_p1 = 0xff;
  2875. readback_p2 = 0xff;
  2876. read = " 1 0 1 0 0 0 0 0",
  2877. " x x x x a11 a10 a9 a8",
  2878. " a7 a6 a5 a4 a3 a2 a1 a0",
  2879. " o o o o o o o o";
  2880. write = " 1 1 0 0 0 0 0 0",
  2881. " x x x x a11 a10 a9 a8",
  2882. " a7 a6 a5 a4 a3 a2 a1 a0",
  2883. " i i i i i i i i";
  2884. mode = 0x04;
  2885. delay = 20;
  2886. blocksize = 64;
  2887. readsize = 256;
  2888. ;
  2889. memory "flash"
  2890. paged = yes;
  2891. size = 65536;
  2892. page_size = 256;
  2893. num_pages = 256;
  2894. min_write_delay = 4500;
  2895. max_write_delay = 4500;
  2896. readback_p1 = 0xff;
  2897. readback_p2 = 0xff;
  2898. read_lo = " 0 0 1 0 0 0 0 0",
  2899. " x a14 a13 a12 a11 a10 a9 a8",
  2900. " a7 a6 a5 a4 a3 a2 a1 a0",
  2901. " o o o o o o o o";
  2902. read_hi = " 0 0 1 0 1 0 0 0",
  2903. " x a14 a13 a12 a11 a10 a9 a8",
  2904. " a7 a6 a5 a4 a3 a2 a1 a0",
  2905. " o o o o o o o o";
  2906. loadpage_lo = " 0 1 0 0 0 0 0 0",
  2907. " x x x x x x x x",
  2908. " x a6 a5 a4 a3 a2 a1 a0",
  2909. " i i i i i i i i";
  2910. loadpage_hi = " 0 1 0 0 1 0 0 0",
  2911. " x x x x x x x x",
  2912. " x a6 a5 a4 a3 a2 a1 a0",
  2913. " i i i i i i i i";
  2914. writepage = " 0 1 0 0 1 1 0 0",
  2915. " x a14 a13 a12 a11 a10 a9 a8",
  2916. " a7 x x x x x x x",
  2917. " x x x x x x x x";
  2918. mode = 0x21;
  2919. delay = 6;
  2920. blocksize = 128;
  2921. readsize = 256;
  2922. ;
  2923. memory "lfuse"
  2924. size = 1;
  2925. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  2926. "x x x x x x x x i i i i i i i i";
  2927. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  2928. "x x x x x x x x o o o o o o o o";
  2929. min_write_delay = 9000;
  2930. max_write_delay = 9000;
  2931. ;
  2932. memory "hfuse"
  2933. size = 1;
  2934. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  2935. "x x x x x x x x i i i i i i i i";
  2936. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  2937. "x x x x x x x x o o o o o o o o";
  2938. min_write_delay = 9000;
  2939. max_write_delay = 9000;
  2940. ;
  2941. memory "efuse"
  2942. size = 1;
  2943. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  2944. "x x x x x x x x x x x x x x i i";
  2945. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  2946. "x x x x x x x x o o o o o o o o";
  2947. min_write_delay = 9000;
  2948. max_write_delay = 9000;
  2949. ;
  2950. memory "lock"
  2951. size = 1;
  2952. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  2953. "x x x x x x x x x x o o o o o o";
  2954. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  2955. "x x x x x x x x 1 1 i i i i i i";
  2956. min_write_delay = 9000;
  2957. max_write_delay = 9000;
  2958. ;
  2959. memory "calibration"
  2960. size = 4;
  2961. read = "0 0 1 1 1 0 0 0 x x x x x x x x",
  2962. "0 0 0 0 0 0 a1 a0 o o o o o o o o";
  2963. ;
  2964. memory "signature"
  2965. size = 3;
  2966. read = "0 0 1 1 0 0 0 0 x x x x x x x x",
  2967. "x x x x x x a1 a0 o o o o o o o o";
  2968. ;
  2969. ;
  2970. #------------------------------------------------------------
  2971. # ATmega128
  2972. #------------------------------------------------------------
  2973. part
  2974. id = "m128";
  2975. desc = "ATmega128";
  2976. has_jtag = yes;
  2977. stk500_devcode = 0xB2;
  2978. avr910_devcode = 0x43;
  2979. signature = 0x1e 0x97 0x02;
  2980. chip_erase_delay = 9000;
  2981. pagel = 0xD7;
  2982. bs2 = 0xA0;
  2983. reset = dedicated;
  2984. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  2985. "x x x x x x x x x x x x x x x x";
  2986. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 0 0 0 0 0",
  2987. "x x x x x x x x x x x x x x x x";
  2988. timeout = 200;
  2989. stabdelay = 100;
  2990. cmdexedelay = 25;
  2991. synchloops = 32;
  2992. bytedelay = 0;
  2993. pollindex = 3;
  2994. pollvalue = 0x53;
  2995. predelay = 1;
  2996. postdelay = 1;
  2997. pollmethod = 0;
  2998. pp_controlstack =
  2999. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  3000. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  3001. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  3002. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  3003. hventerstabdelay = 100;
  3004. progmodedelay = 0;
  3005. latchcycles = 6;
  3006. togglevtg = 0;
  3007. poweroffdelay = 0;
  3008. resetdelayms = 0;
  3009. resetdelayus = 0;
  3010. hvleavestabdelay = 15;
  3011. chiperasepulsewidth = 0;
  3012. chiperasepolltimeout = 10;
  3013. programfusepulsewidth = 0;
  3014. programfusepolltimeout = 5;
  3015. programlockpulsewidth = 0;
  3016. programlockpolltimeout = 5;
  3017. idr = 0x22;
  3018. spmcr = 0x68;
  3019. rampz = 0x3b;
  3020. allowfullpagebitstream = yes;
  3021. ocdrev = 1;
  3022. memory "eeprom"
  3023. paged = no; /* leave this "no" */
  3024. page_size = 8; /* for parallel programming */
  3025. size = 4096;
  3026. min_write_delay = 9000;
  3027. max_write_delay = 9000;
  3028. readback_p1 = 0xff;
  3029. readback_p2 = 0xff;
  3030. read = " 1 0 1 0 0 0 0 0",
  3031. " x x x x a11 a10 a9 a8",
  3032. " a7 a6 a5 a4 a3 a2 a1 a0",
  3033. " o o o o o o o o";
  3034. write = " 1 1 0 0 0 0 0 0",
  3035. " x x x x a11 a10 a9 a8",
  3036. " a7 a6 a5 a4 a3 a2 a1 a0",
  3037. " i i i i i i i i";
  3038. mode = 0x04;
  3039. delay = 12;
  3040. blocksize = 64;
  3041. readsize = 256;
  3042. ;
  3043. memory "flash"
  3044. paged = yes;
  3045. size = 131072;
  3046. page_size = 256;
  3047. num_pages = 512;
  3048. min_write_delay = 4500;
  3049. max_write_delay = 4500;
  3050. readback_p1 = 0xff;
  3051. readback_p2 = 0xff;
  3052. read_lo = " 0 0 1 0 0 0 0 0",
  3053. "a15 a14 a13 a12 a11 a10 a9 a8",
  3054. " a7 a6 a5 a4 a3 a2 a1 a0",
  3055. " o o o o o o o o";
  3056. read_hi = " 0 0 1 0 1 0 0 0",
  3057. "a15 a14 a13 a12 a11 a10 a9 a8",
  3058. " a7 a6 a5 a4 a3 a2 a1 a0",
  3059. " o o o o o o o o";
  3060. loadpage_lo = " 0 1 0 0 0 0 0 0",
  3061. " x x x x x x x x",
  3062. " x a6 a5 a4 a3 a2 a1 a0",
  3063. " i i i i i i i i";
  3064. loadpage_hi = " 0 1 0 0 1 0 0 0",
  3065. " x x x x x x x x",
  3066. " x a6 a5 a4 a3 a2 a1 a0",
  3067. " i i i i i i i i";
  3068. writepage = " 0 1 0 0 1 1 0 0",
  3069. "a15 a14 a13 a12 a11 a10 a9 a8",
  3070. " a7 x x x x x x x",
  3071. " x x x x x x x x";
  3072. mode = 0x21;
  3073. delay = 6;
  3074. blocksize = 128;
  3075. readsize = 256;
  3076. ;
  3077. memory "lfuse"
  3078. size = 1;
  3079. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  3080. "x x x x x x x x i i i i i i i i";
  3081. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  3082. "x x x x x x x x o o o o o o o o";
  3083. min_write_delay = 9000;
  3084. max_write_delay = 9000;
  3085. ;
  3086. memory "hfuse"
  3087. size = 1;
  3088. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  3089. "x x x x x x x x i i i i i i i i";
  3090. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  3091. "x x x x x x x x o o o o o o o o";
  3092. min_write_delay = 9000;
  3093. max_write_delay = 9000;
  3094. ;
  3095. memory "efuse"
  3096. size = 1;
  3097. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  3098. "x x x x x x x x x x x x x x i i";
  3099. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  3100. "x x x x x x x x o o o o o o o o";
  3101. min_write_delay = 9000;
  3102. max_write_delay = 9000;
  3103. ;
  3104. memory "lock"
  3105. size = 1;
  3106. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  3107. "x x x x x x x x x x o o o o o o";
  3108. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  3109. "x x x x x x x x 1 1 i i i i i i";
  3110. min_write_delay = 9000;
  3111. max_write_delay = 9000;
  3112. ;
  3113. memory "calibration"
  3114. size = 4;
  3115. read = "0 0 1 1 1 0 0 0 x x x x x x x x",
  3116. "0 0 0 0 0 0 a1 a0 o o o o o o o o";
  3117. ;
  3118. memory "signature"
  3119. size = 3;
  3120. read = "0 0 1 1 0 0 0 0 x x x x x x x x",
  3121. "x x x x x x a1 a0 o o o o o o o o";
  3122. ;
  3123. ;
  3124. #------------------------------------------------------------
  3125. # AT90CAN128
  3126. #------------------------------------------------------------
  3127. part
  3128. id = "c128";
  3129. desc = "AT90CAN128";
  3130. has_jtag = yes;
  3131. stk500_devcode = 0xB3;
  3132. # avr910_devcode = 0x43;
  3133. signature = 0x1e 0x97 0x81;
  3134. chip_erase_delay = 9000;
  3135. pagel = 0xD7;
  3136. bs2 = 0xA0;
  3137. reset = dedicated;
  3138. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  3139. "x x x x x x x x x x x x x x x x";
  3140. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
  3141. "x x x x x x x x x x x x x x x x";
  3142. timeout = 200;
  3143. stabdelay = 100;
  3144. cmdexedelay = 25;
  3145. synchloops = 32;
  3146. bytedelay = 0;
  3147. pollindex = 3;
  3148. pollvalue = 0x53;
  3149. predelay = 1;
  3150. postdelay = 1;
  3151. pollmethod = 1;
  3152. pp_controlstack =
  3153. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  3154. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  3155. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  3156. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x01;
  3157. hventerstabdelay = 100;
  3158. progmodedelay = 0;
  3159. latchcycles = 6;
  3160. togglevtg = 0;
  3161. poweroffdelay = 0;
  3162. resetdelayms = 0;
  3163. resetdelayus = 0;
  3164. hvleavestabdelay = 15;
  3165. chiperasepulsewidth = 0;
  3166. chiperasepolltimeout = 10;
  3167. programfusepulsewidth = 0;
  3168. programfusepolltimeout = 5;
  3169. programlockpulsewidth = 0;
  3170. programlockpolltimeout = 5;
  3171. idr = 0x31;
  3172. spmcr = 0x57;
  3173. rampz = 0x3b;
  3174. eecr = 0x3f;
  3175. allowfullpagebitstream = no;
  3176. ocdrev = 3;
  3177. memory "eeprom"
  3178. paged = no; /* leave this "no" */
  3179. page_size = 8; /* for parallel programming */
  3180. size = 4096;
  3181. min_write_delay = 9000;
  3182. max_write_delay = 9000;
  3183. readback_p1 = 0xff;
  3184. readback_p2 = 0xff;
  3185. read = " 1 0 1 0 0 0 0 0",
  3186. " 0 0 0 x a11 a10 a9 a8",
  3187. " a7 a6 a5 a4 a3 a2 a1 a0",
  3188. " o o o o o o o o";
  3189. write = " 1 1 0 0 0 0 0 0",
  3190. " 0 0 0 x a11 a10 a9 a8",
  3191. " a7 a6 a5 a4 a3 a2 a1 a0",
  3192. " i i i i i i i i";
  3193. loadpage_lo = " 1 1 0 0 0 0 0 1",
  3194. " 0 0 0 0 0 0 0 0",
  3195. " 0 0 0 0 0 a2 a1 a0",
  3196. " i i i i i i i i";
  3197. writepage = " 1 1 0 0 0 0 1 0",
  3198. " 0 0 x x a11 a10 a9 a8",
  3199. " a7 a6 a5 a4 a3 0 0 0",
  3200. " x x x x x x x x";
  3201. mode = 0x41;
  3202. delay = 20;
  3203. blocksize = 8;
  3204. readsize = 256;
  3205. ;
  3206. memory "flash"
  3207. paged = yes;
  3208. size = 131072;
  3209. page_size = 256;
  3210. num_pages = 512;
  3211. min_write_delay = 4500;
  3212. max_write_delay = 4500;
  3213. readback_p1 = 0xff;
  3214. readback_p2 = 0xff;
  3215. read_lo = " 0 0 1 0 0 0 0 0",
  3216. "a15 a14 a13 a12 a11 a10 a9 a8",
  3217. " a7 a6 a5 a4 a3 a2 a1 a0",
  3218. " o o o o o o o o";
  3219. read_hi = " 0 0 1 0 1 0 0 0",
  3220. "a15 a14 a13 a12 a11 a10 a9 a8",
  3221. " a7 a6 a5 a4 a3 a2 a1 a0",
  3222. " o o o o o o o o";
  3223. loadpage_lo = " 0 1 0 0 0 0 0 0",
  3224. " 0 0 0 x x x x x",
  3225. " x a6 a5 a4 a3 a2 a1 a0",
  3226. " i i i i i i i i";
  3227. loadpage_hi = " 0 1 0 0 1 0 0 0",
  3228. " 0 0 0 x x x x x",
  3229. " x a6 a5 a4 a3 a2 a1 a0",
  3230. " i i i i i i i i";
  3231. writepage = " 0 1 0 0 1 1 0 0",
  3232. "a15 a14 a13 a12 a11 a10 a9 a8",
  3233. " a7 x x x x x x x",
  3234. " x x x x x x x x";
  3235. mode = 0x41;
  3236. delay = 6;
  3237. blocksize = 256;
  3238. readsize = 256;
  3239. ;
  3240. memory "lfuse"
  3241. size = 1;
  3242. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  3243. "x x x x x x x x i i i i i i i i";
  3244. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  3245. "x x x x x x x x o o o o o o o o";
  3246. min_write_delay = 9000;
  3247. max_write_delay = 9000;
  3248. ;
  3249. memory "hfuse"
  3250. size = 1;
  3251. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  3252. "x x x x x x x x i i i i i i i i";
  3253. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  3254. "x x x x x x x x o o o o o o o o";
  3255. min_write_delay = 9000;
  3256. max_write_delay = 9000;
  3257. ;
  3258. memory "efuse"
  3259. size = 1;
  3260. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  3261. "x x x x x x x x x x x x i i i i";
  3262. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  3263. "x x x x x x x x o o o o o o o o";
  3264. min_write_delay = 9000;
  3265. max_write_delay = 9000;
  3266. ;
  3267. memory "lock"
  3268. size = 1;
  3269. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  3270. "x x x x x x x x x x o o o o o o";
  3271. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  3272. "x x x x x x x x 1 1 i i i i i i";
  3273. min_write_delay = 9000;
  3274. max_write_delay = 9000;
  3275. ;
  3276. memory "calibration"
  3277. size = 1;
  3278. read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
  3279. "0 0 0 0 0 0 0 0 o o o o o o o o";
  3280. ;
  3281. memory "signature"
  3282. size = 3;
  3283. read = "0 0 1 1 0 0 0 0 x x x x x x x x",
  3284. "x x x x x x a1 a0 o o o o o o o o";
  3285. ;
  3286. ;
  3287. #------------------------------------------------------------
  3288. # AT90CAN64
  3289. #------------------------------------------------------------
  3290. part
  3291. id = "c64";
  3292. desc = "AT90CAN64";
  3293. has_jtag = yes;
  3294. stk500_devcode = 0xB3;
  3295. # avr910_devcode = 0x43;
  3296. signature = 0x1e 0x96 0x81;
  3297. chip_erase_delay = 9000;
  3298. pagel = 0xD7;
  3299. bs2 = 0xA0;
  3300. reset = dedicated;
  3301. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  3302. "x x x x x x x x x x x x x x x x";
  3303. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
  3304. "x x x x x x x x x x x x x x x x";
  3305. timeout = 200;
  3306. stabdelay = 100;
  3307. cmdexedelay = 25;
  3308. synchloops = 32;
  3309. bytedelay = 0;
  3310. pollindex = 3;
  3311. pollvalue = 0x53;
  3312. predelay = 1;
  3313. postdelay = 1;
  3314. pollmethod = 1;
  3315. pp_controlstack =
  3316. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  3317. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  3318. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  3319. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x01;
  3320. hventerstabdelay = 100;
  3321. progmodedelay = 0;
  3322. latchcycles = 6;
  3323. togglevtg = 0;
  3324. poweroffdelay = 0;
  3325. resetdelayms = 0;
  3326. resetdelayus = 0;
  3327. hvleavestabdelay = 15;
  3328. chiperasepulsewidth = 0;
  3329. chiperasepolltimeout = 10;
  3330. programfusepulsewidth = 0;
  3331. programfusepolltimeout = 5;
  3332. programlockpulsewidth = 0;
  3333. programlockpolltimeout = 5;
  3334. idr = 0x31;
  3335. spmcr = 0x57;
  3336. rampz = 0x3b;
  3337. eecr = 0x3f;
  3338. allowfullpagebitstream = no;
  3339. ocdrev = 3;
  3340. memory "eeprom"
  3341. paged = no; /* leave this "no" */
  3342. page_size = 8; /* for parallel programming */
  3343. size = 2048;
  3344. min_write_delay = 9000;
  3345. max_write_delay = 9000;
  3346. readback_p1 = 0xff;
  3347. readback_p2 = 0xff;
  3348. read = " 1 0 1 0 0 0 0 0",
  3349. " 0 0 0 x x a10 a9 a8",
  3350. " a7 a6 a5 a4 a3 a2 a1 a0",
  3351. " o o o o o o o o";
  3352. write = " 1 1 0 0 0 0 0 0",
  3353. " 0 0 0 x x a10 a9 a8",
  3354. " a7 a6 a5 a4 a3 a2 a1 a0",
  3355. " i i i i i i i i";
  3356. loadpage_lo = " 1 1 0 0 0 0 0 1",
  3357. " 0 0 0 0 0 0 0 0",
  3358. " 0 0 0 0 0 a2 a1 a0",
  3359. " i i i i i i i i";
  3360. writepage = " 1 1 0 0 0 0 1 0",
  3361. " 0 0 x x x a10 a9 a8",
  3362. " a7 a6 a5 a4 a3 0 0 0",
  3363. " x x x x x x x x";
  3364. mode = 0x41;
  3365. delay = 20;
  3366. blocksize = 8;
  3367. readsize = 256;
  3368. ;
  3369. memory "flash"
  3370. paged = yes;
  3371. size = 65536;
  3372. page_size = 256;
  3373. num_pages = 256;
  3374. min_write_delay = 4500;
  3375. max_write_delay = 4500;
  3376. readback_p1 = 0xff;
  3377. readback_p2 = 0xff;
  3378. read_lo = " 0 0 1 0 0 0 0 0",
  3379. "a15 a14 a13 a12 a11 a10 a9 a8",
  3380. " a7 a6 a5 a4 a3 a2 a1 a0",
  3381. " o o o o o o o o";
  3382. read_hi = " 0 0 1 0 1 0 0 0",
  3383. "a15 a14 a13 a12 a11 a10 a9 a8",
  3384. " a7 a6 a5 a4 a3 a2 a1 a0",
  3385. " o o o o o o o o";
  3386. loadpage_lo = " 0 1 0 0 0 0 0 0",
  3387. " 0 0 0 x x x x x",
  3388. " x a6 a5 a4 a3 a2 a1 a0",
  3389. " i i i i i i i i";
  3390. loadpage_hi = " 0 1 0 0 1 0 0 0",
  3391. " 0 0 0 x x x x x",
  3392. " x a6 a5 a4 a3 a2 a1 a0",
  3393. " i i i i i i i i";
  3394. writepage = " 0 1 0 0 1 1 0 0",
  3395. "a15 a14 a13 a12 a11 a10 a9 a8",
  3396. " a7 x x x x x x x",
  3397. " x x x x x x x x";
  3398. mode = 0x41;
  3399. delay = 6;
  3400. blocksize = 256;
  3401. readsize = 256;
  3402. ;
  3403. memory "lfuse"
  3404. size = 1;
  3405. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  3406. "x x x x x x x x i i i i i i i i";
  3407. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  3408. "x x x x x x x x o o o o o o o o";
  3409. min_write_delay = 9000;
  3410. max_write_delay = 9000;
  3411. ;
  3412. memory "hfuse"
  3413. size = 1;
  3414. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  3415. "x x x x x x x x i i i i i i i i";
  3416. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  3417. "x x x x x x x x o o o o o o o o";
  3418. min_write_delay = 9000;
  3419. max_write_delay = 9000;
  3420. ;
  3421. memory "efuse"
  3422. size = 1;
  3423. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  3424. "x x x x x x x x x x x x i i i i";
  3425. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  3426. "x x x x x x x x o o o o o o o o";
  3427. min_write_delay = 9000;
  3428. max_write_delay = 9000;
  3429. ;
  3430. memory "lock"
  3431. size = 1;
  3432. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  3433. "x x x x x x x x x x o o o o o o";
  3434. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  3435. "x x x x x x x x 1 1 i i i i i i";
  3436. min_write_delay = 9000;
  3437. max_write_delay = 9000;
  3438. ;
  3439. memory "calibration"
  3440. size = 1;
  3441. read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
  3442. "0 0 0 0 0 0 0 0 o o o o o o o o";
  3443. ;
  3444. memory "signature"
  3445. size = 3;
  3446. read = "0 0 1 1 0 0 0 0 x x x x x x x x",
  3447. "x x x x x x a1 a0 o o o o o o o o";
  3448. ;
  3449. ;
  3450. #------------------------------------------------------------
  3451. # AT90CAN32
  3452. #------------------------------------------------------------
  3453. part
  3454. id = "c32";
  3455. desc = "AT90CAN32";
  3456. has_jtag = yes;
  3457. stk500_devcode = 0xB3;
  3458. # avr910_devcode = 0x43;
  3459. signature = 0x1e 0x95 0x81;
  3460. chip_erase_delay = 9000;
  3461. pagel = 0xD7;
  3462. bs2 = 0xA0;
  3463. reset = dedicated;
  3464. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  3465. "x x x x x x x x x x x x x x x x";
  3466. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
  3467. "x x x x x x x x x x x x x x x x";
  3468. timeout = 200;
  3469. stabdelay = 100;
  3470. cmdexedelay = 25;
  3471. synchloops = 32;
  3472. bytedelay = 0;
  3473. pollindex = 3;
  3474. pollvalue = 0x53;
  3475. predelay = 1;
  3476. postdelay = 1;
  3477. pollmethod = 1;
  3478. pp_controlstack =
  3479. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  3480. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  3481. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  3482. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x01;
  3483. hventerstabdelay = 100;
  3484. progmodedelay = 0;
  3485. latchcycles = 6;
  3486. togglevtg = 0;
  3487. poweroffdelay = 0;
  3488. resetdelayms = 0;
  3489. resetdelayus = 0;
  3490. hvleavestabdelay = 15;
  3491. chiperasepulsewidth = 0;
  3492. chiperasepolltimeout = 10;
  3493. programfusepulsewidth = 0;
  3494. programfusepolltimeout = 5;
  3495. programlockpulsewidth = 0;
  3496. programlockpolltimeout = 5;
  3497. idr = 0x31;
  3498. spmcr = 0x57;
  3499. rampz = 0x3b;
  3500. eecr = 0x3f;
  3501. allowfullpagebitstream = no;
  3502. ocdrev = 3;
  3503. memory "eeprom"
  3504. paged = no; /* leave this "no" */
  3505. page_size = 8; /* for parallel programming */
  3506. size = 1024;
  3507. min_write_delay = 9000;
  3508. max_write_delay = 9000;
  3509. readback_p1 = 0xff;
  3510. readback_p2 = 0xff;
  3511. read = " 1 0 1 0 0 0 0 0",
  3512. " 0 0 0 x x x a9 a8",
  3513. " a7 a6 a5 a4 a3 a2 a1 a0",
  3514. " o o o o o o o o";
  3515. write = " 1 1 0 0 0 0 0 0",
  3516. " 0 0 0 x x x a9 a8",
  3517. " a7 a6 a5 a4 a3 a2 a1 a0",
  3518. " i i i i i i i i";
  3519. loadpage_lo = " 1 1 0 0 0 0 0 1",
  3520. " 0 0 0 0 0 0 0 0",
  3521. " 0 0 0 0 0 a2 a1 a0",
  3522. " i i i i i i i i";
  3523. writepage = " 1 1 0 0 0 0 1 0",
  3524. " 0 0 x x x x a9 a8",
  3525. " a7 a6 a5 a4 a3 0 0 0",
  3526. " x x x x x x x x";
  3527. mode = 0x41;
  3528. delay = 20;
  3529. blocksize = 8;
  3530. readsize = 256;
  3531. ;
  3532. memory "flash"
  3533. paged = yes;
  3534. size = 32768;
  3535. page_size = 256;
  3536. num_pages = 128;
  3537. min_write_delay = 4500;
  3538. max_write_delay = 4500;
  3539. readback_p1 = 0xff;
  3540. readback_p2 = 0xff;
  3541. read_lo = " 0 0 1 0 0 0 0 0",
  3542. "a15 a14 a13 a12 a11 a10 a9 a8",
  3543. " a7 a6 a5 a4 a3 a2 a1 a0",
  3544. " o o o o o o o o";
  3545. read_hi = " 0 0 1 0 1 0 0 0",
  3546. "a15 a14 a13 a12 a11 a10 a9 a8",
  3547. " a7 a6 a5 a4 a3 a2 a1 a0",
  3548. " o o o o o o o o";
  3549. loadpage_lo = " 0 1 0 0 0 0 0 0",
  3550. " 0 0 0 x x x x x",
  3551. " x a6 a5 a4 a3 a2 a1 a0",
  3552. " i i i i i i i i";
  3553. loadpage_hi = " 0 1 0 0 1 0 0 0",
  3554. " 0 0 0 x x x x x",
  3555. " x a6 a5 a4 a3 a2 a1 a0",
  3556. " i i i i i i i i";
  3557. writepage = " 0 1 0 0 1 1 0 0",
  3558. "a15 a14 a13 a12 a11 a10 a9 a8",
  3559. " a7 x x x x x x x",
  3560. " x x x x x x x x";
  3561. mode = 0x41;
  3562. delay = 6;
  3563. blocksize = 256;
  3564. readsize = 256;
  3565. ;
  3566. memory "lfuse"
  3567. size = 1;
  3568. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  3569. "x x x x x x x x i i i i i i i i";
  3570. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  3571. "x x x x x x x x o o o o o o o o";
  3572. min_write_delay = 9000;
  3573. max_write_delay = 9000;
  3574. ;
  3575. memory "hfuse"
  3576. size = 1;
  3577. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  3578. "x x x x x x x x i i i i i i i i";
  3579. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  3580. "x x x x x x x x o o o o o o o o";
  3581. min_write_delay = 9000;
  3582. max_write_delay = 9000;
  3583. ;
  3584. memory "efuse"
  3585. size = 1;
  3586. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  3587. "x x x x x x x x x x x x i i i i";
  3588. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  3589. "x x x x x x x x o o o o o o o o";
  3590. min_write_delay = 9000;
  3591. max_write_delay = 9000;
  3592. ;
  3593. memory "lock"
  3594. size = 1;
  3595. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  3596. "x x x x x x x x x x o o o o o o";
  3597. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  3598. "x x x x x x x x 1 1 i i i i i i";
  3599. min_write_delay = 9000;
  3600. max_write_delay = 9000;
  3601. ;
  3602. memory "calibration"
  3603. size = 1;
  3604. read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
  3605. "0 0 0 0 0 0 0 0 o o o o o o o o";
  3606. ;
  3607. memory "signature"
  3608. size = 3;
  3609. read = "0 0 1 1 0 0 0 0 x x x x x x x x",
  3610. "x x x x x x a1 a0 o o o o o o o o";
  3611. ;
  3612. ;
  3613. #------------------------------------------------------------
  3614. # ATmega16
  3615. #------------------------------------------------------------
  3616. part
  3617. id = "m16";
  3618. desc = "ATmega16";
  3619. has_jtag = yes;
  3620. stk500_devcode = 0x82;
  3621. avr910_devcode = 0x74;
  3622. signature = 0x1e 0x94 0x03;
  3623. pagel = 0xd7;
  3624. bs2 = 0xa0;
  3625. chip_erase_delay = 9000;
  3626. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  3627. "x x x x x x x x x x x x x x x x";
  3628. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
  3629. "x x x x x x x x x x x x x x x x";
  3630. timeout = 200;
  3631. stabdelay = 100;
  3632. cmdexedelay = 25;
  3633. synchloops = 32;
  3634. bytedelay = 0;
  3635. pollindex = 3;
  3636. pollvalue = 0x53;
  3637. predelay = 1;
  3638. postdelay = 1;
  3639. pollmethod = 0;
  3640. pp_controlstack =
  3641. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  3642. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  3643. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  3644. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  3645. hventerstabdelay = 100;
  3646. progmodedelay = 100;
  3647. latchcycles = 6;
  3648. togglevtg = 0;
  3649. poweroffdelay = 0;
  3650. resetdelayms = 0;
  3651. resetdelayus = 0;
  3652. hvleavestabdelay = 15;
  3653. resetdelay = 15;
  3654. chiperasepulsewidth = 0;
  3655. chiperasepolltimeout = 10;
  3656. programfusepulsewidth = 0;
  3657. programfusepolltimeout = 5;
  3658. programlockpulsewidth = 0;
  3659. programlockpolltimeout = 5;
  3660. idr = 0x31;
  3661. spmcr = 0x57;
  3662. allowfullpagebitstream = yes;
  3663. ocdrev = 2;
  3664. memory "eeprom"
  3665. paged = no; /* leave this "no" */
  3666. page_size = 4; /* for parallel programming */
  3667. size = 512;
  3668. min_write_delay = 9000;
  3669. max_write_delay = 9000;
  3670. readback_p1 = 0xff;
  3671. readback_p2 = 0xff;
  3672. read = " 1 0 1 0 0 0 0 0",
  3673. " 0 0 x x x x a9 a8",
  3674. " a7 a6 a5 a4 a3 a2 a1 a0",
  3675. " o o o o o o o o";
  3676. write = " 1 1 0 0 0 0 0 0",
  3677. " 0 0 x x x x a9 a8",
  3678. " a7 a6 a5 a4 a3 a2 a1 a0",
  3679. " i i i i i i i i";
  3680. loadpage_lo = " 1 1 0 0 0 0 0 1",
  3681. " 0 0 0 0 0 0 0 0",
  3682. " 0 0 0 0 0 0 a1 a0",
  3683. " i i i i i i i i";
  3684. writepage = " 1 1 0 0 0 0 1 0",
  3685. " 0 0 x x x x a9 a8",
  3686. " a7 a6 a5 a4 a3 a2 0 0",
  3687. " x x x x x x x x";
  3688. mode = 0x04;
  3689. delay = 10;
  3690. blocksize = 128;
  3691. readsize = 256;
  3692. ;
  3693. memory "flash"
  3694. paged = yes;
  3695. size = 16384;
  3696. page_size = 128;
  3697. num_pages = 128;
  3698. min_write_delay = 4500;
  3699. max_write_delay = 4500;
  3700. readback_p1 = 0xff;
  3701. readback_p2 = 0xff;
  3702. read_lo = " 0 0 1 0 0 0 0 0",
  3703. " 0 0 a13 a12 a11 a10 a9 a8",
  3704. " a7 a6 a5 a4 a3 a2 a1 a0",
  3705. " o o o o o o o o";
  3706. read_hi = " 0 0 1 0 1 0 0 0",
  3707. " 0 0 a13 a12 a11 a10 a9 a8",
  3708. " a7 a6 a5 a4 a3 a2 a1 a0",
  3709. " o o o o o o o o";
  3710. loadpage_lo = " 0 1 0 0 0 0 0 0",
  3711. " 0 0 x x x x x x",
  3712. " x x a5 a4 a3 a2 a1 a0",
  3713. " i i i i i i i i";
  3714. loadpage_hi = " 0 1 0 0 1 0 0 0",
  3715. " 0 0 x x x x x x",
  3716. " x x a5 a4 a3 a2 a1 a0",
  3717. " i i i i i i i i";
  3718. writepage = " 0 1 0 0 1 1 0 0",
  3719. " 0 0 a13 a12 a11 a10 a9 a8",
  3720. " a7 a6 x x x x x x",
  3721. " x x x x x x x x";
  3722. mode = 0x21;
  3723. delay = 6;
  3724. blocksize = 128;
  3725. readsize = 256;
  3726. ;
  3727. memory "lock"
  3728. size = 1;
  3729. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  3730. "x x x x x x x x x x o o o o o o";
  3731. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  3732. "x x x x x x x x 1 1 i i i i i i";
  3733. min_write_delay = 9000;
  3734. max_write_delay = 9000;
  3735. ;
  3736. memory "lfuse"
  3737. size = 1;
  3738. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  3739. "x x x x x x x x o o o o o o o o";
  3740. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  3741. "x x x x x x x x i i i i i i i i";
  3742. min_write_delay = 9000;
  3743. max_write_delay = 9000;
  3744. ;
  3745. memory "hfuse"
  3746. size = 1;
  3747. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  3748. "x x x x x x x x o o o o o o o o";
  3749. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  3750. "x x x x x x x x i i i i i i i i";
  3751. min_write_delay = 9000;
  3752. max_write_delay = 9000;
  3753. ;
  3754. memory "signature"
  3755. size = 3;
  3756. read = "0 0 1 1 0 0 0 0 x x x x x x x x",
  3757. "x x x x x x a1 a0 o o o o o o o o";
  3758. ;
  3759. memory "calibration"
  3760. size = 4;
  3761. read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
  3762. "0 0 0 0 0 0 a1 a0 o o o o o o o o";
  3763. ;
  3764. ;
  3765. #------------------------------------------------------------
  3766. # ATmega164P
  3767. #------------------------------------------------------------
  3768. # close to ATmega16
  3769. part parent "m16"
  3770. id = "m164p";
  3771. desc = "ATmega164P";
  3772. signature = 0x1e 0x94 0x0a;
  3773. progmodedelay = 0;
  3774. latchcycles = 5;
  3775. togglevtg = 1;
  3776. poweroffdelay = 15;
  3777. resetdelayms = 1;
  3778. allowfullpagebitstream = no;
  3779. chip_erase_delay = 55000;
  3780. ocdrev = 3;
  3781. ;
  3782. #------------------------------------------------------------
  3783. # ATmega324P
  3784. #------------------------------------------------------------
  3785. # similar to ATmega164P
  3786. part
  3787. id = "m324p";
  3788. desc = "ATmega324P";
  3789. has_jtag = yes;
  3790. stk500_devcode = 0x82; # no STK500v1 support, use the ATmega16 one
  3791. avr910_devcode = 0x74;
  3792. signature = 0x1e 0x95 0x08;
  3793. pagel = 0xd7;
  3794. bs2 = 0xa0;
  3795. chip_erase_delay = 55000;
  3796. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  3797. "x x x x x x x x x x x x x x x x";
  3798. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
  3799. "x x x x x x x x x x x x x x x x";
  3800. timeout = 200;
  3801. stabdelay = 100;
  3802. cmdexedelay = 25;
  3803. synchloops = 32;
  3804. bytedelay = 0;
  3805. pollindex = 3;
  3806. pollvalue = 0x53;
  3807. predelay = 1;
  3808. postdelay = 1;
  3809. pollmethod = 0;
  3810. pp_controlstack =
  3811. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  3812. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  3813. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  3814. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  3815. hventerstabdelay = 100;
  3816. progmodedelay = 0;
  3817. latchcycles = 5;
  3818. togglevtg = 1;
  3819. poweroffdelay = 15;
  3820. resetdelayms = 1;
  3821. resetdelayus = 0;
  3822. hvleavestabdelay = 15;
  3823. chiperasepulsewidth = 0;
  3824. chiperasepolltimeout = 10;
  3825. programfusepulsewidth = 0;
  3826. programfusepolltimeout = 5;
  3827. programlockpulsewidth = 0;
  3828. programlockpolltimeout = 5;
  3829. idr = 0x31;
  3830. spmcr = 0x57;
  3831. allowfullpagebitstream = no;
  3832. ocdrev = 3;
  3833. memory "eeprom"
  3834. paged = no; /* leave this "no" */
  3835. page_size = 4; /* for parallel programming */
  3836. size = 1024;
  3837. min_write_delay = 9000;
  3838. max_write_delay = 9000;
  3839. readback_p1 = 0xff;
  3840. readback_p2 = 0xff;
  3841. read = " 1 0 1 0 0 0 0 0",
  3842. " 0 0 x x x a10 a9 a8",
  3843. " a7 a6 a5 a4 a3 a2 a1 a0",
  3844. " o o o o o o o o";
  3845. write = " 1 1 0 0 0 0 0 0",
  3846. " 0 0 x x x a10 a9 a8",
  3847. " a7 a6 a5 a4 a3 a2 a1 a0",
  3848. " i i i i i i i i";
  3849. loadpage_lo = " 1 1 0 0 0 0 0 1",
  3850. " 0 0 0 0 0 0 0 0",
  3851. " 0 0 0 0 0 0 a1 a0",
  3852. " i i i i i i i i";
  3853. writepage = " 1 1 0 0 0 0 1 0",
  3854. " 0 0 x x x a10 a9 a8",
  3855. " a7 a6 a5 a4 a3 a2 0 0",
  3856. " x x x x x x x x";
  3857. mode = 0x41;
  3858. delay = 10;
  3859. blocksize = 128;
  3860. readsize = 256;
  3861. ;
  3862. memory "flash"
  3863. paged = yes;
  3864. size = 32768;
  3865. page_size = 128;
  3866. num_pages = 256;
  3867. min_write_delay = 4500;
  3868. max_write_delay = 4500;
  3869. readback_p1 = 0xff;
  3870. readback_p2 = 0xff;
  3871. read_lo = " 0 0 1 0 0 0 0 0",
  3872. " 0 a14 a13 a12 a11 a10 a9 a8",
  3873. " a7 a6 a5 a4 a3 a2 a1 a0",
  3874. " o o o o o o o o";
  3875. read_hi = " 0 0 1 0 1 0 0 0",
  3876. " 0 a14 a13 a12 a11 a10 a9 a8",
  3877. " a7 a6 a5 a4 a3 a2 a1 a0",
  3878. " o o o o o o o o";
  3879. loadpage_lo = " 0 1 0 0 0 0 0 0",
  3880. " 0 0 x x x x x x",
  3881. " x x a5 a4 a3 a2 a1 a0",
  3882. " i i i i i i i i";
  3883. loadpage_hi = " 0 1 0 0 1 0 0 0",
  3884. " 0 0 x x x x x x",
  3885. " x x a5 a4 a3 a2 a1 a0",
  3886. " i i i i i i i i";
  3887. writepage = " 0 1 0 0 1 1 0 0",
  3888. " 0 a14 a13 a12 a11 a10 a9 a8",
  3889. " a7 a6 x x x x x x",
  3890. " x x x x x x x x";
  3891. mode = 0x21;
  3892. delay = 6;
  3893. blocksize = 256;
  3894. readsize = 256;
  3895. ;
  3896. memory "lock"
  3897. size = 1;
  3898. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  3899. "x x x x x x x x x x o o o o o o";
  3900. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  3901. "x x x x x x x x 1 1 i i i i i i";
  3902. min_write_delay = 9000;
  3903. max_write_delay = 9000;
  3904. ;
  3905. memory "lfuse"
  3906. size = 1;
  3907. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  3908. "x x x x x x x x o o o o o o o o";
  3909. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  3910. "x x x x x x x x i i i i i i i i";
  3911. min_write_delay = 9000;
  3912. max_write_delay = 9000;
  3913. ;
  3914. memory "hfuse"
  3915. size = 1;
  3916. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  3917. "x x x x x x x x o o o o o o o o";
  3918. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  3919. "x x x x x x x x i i i i i i i i";
  3920. min_write_delay = 9000;
  3921. max_write_delay = 9000;
  3922. ;
  3923. memory "efuse"
  3924. size = 1;
  3925. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  3926. "x x x x x x x x o o o o o o o o";
  3927. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  3928. "x x x x x x x x 1 1 1 1 1 i i i";
  3929. min_write_delay = 9000;
  3930. max_write_delay = 9000;
  3931. ;
  3932. memory "signature"
  3933. size = 3;
  3934. read = "0 0 1 1 0 0 0 0 x x x x x x x x",
  3935. "x x x x x x a1 a0 o o o o o o o o";
  3936. ;
  3937. memory "calibration"
  3938. size = 1;
  3939. read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
  3940. "0 0 0 0 0 0 0 0 o o o o o o o o";
  3941. ;
  3942. ;
  3943. #------------------------------------------------------------
  3944. # ATmega324PA
  3945. #------------------------------------------------------------
  3946. # similar to ATmega324P
  3947. part parent "m324p"
  3948. id = "m324pa";
  3949. desc = "ATmega324PA";
  3950. signature = 0x1e 0x95 0x11;
  3951. ocdrev = 3;
  3952. ;
  3953. #------------------------------------------------------------
  3954. # ATmega644
  3955. #------------------------------------------------------------
  3956. # similar to ATmega164
  3957. part
  3958. id = "m644";
  3959. desc = "ATmega644";
  3960. has_jtag = yes;
  3961. stk500_devcode = 0x82; # no STK500v1 support, use the ATmega16 one
  3962. avr910_devcode = 0x74;
  3963. signature = 0x1e 0x96 0x09;
  3964. pagel = 0xd7;
  3965. bs2 = 0xa0;
  3966. chip_erase_delay = 55000;
  3967. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  3968. "x x x x x x x x x x x x x x x x";
  3969. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
  3970. "x x x x x x x x x x x x x x x x";
  3971. timeout = 200;
  3972. stabdelay = 100;
  3973. cmdexedelay = 25;
  3974. synchloops = 32;
  3975. bytedelay = 0;
  3976. pollindex = 3;
  3977. pollvalue = 0x53;
  3978. predelay = 1;
  3979. postdelay = 1;
  3980. pollmethod = 0;
  3981. pp_controlstack =
  3982. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  3983. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  3984. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  3985. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x02;
  3986. hventerstabdelay = 100;
  3987. progmodedelay = 0;
  3988. latchcycles = 6;
  3989. togglevtg = 0;
  3990. poweroffdelay = 0;
  3991. resetdelayms = 0;
  3992. resetdelayus = 0;
  3993. hvleavestabdelay = 15;
  3994. chiperasepulsewidth = 0;
  3995. chiperasepolltimeout = 10;
  3996. programfusepulsewidth = 0;
  3997. programfusepolltimeout = 5;
  3998. programlockpulsewidth = 0;
  3999. programlockpolltimeout = 5;
  4000. idr = 0x31;
  4001. spmcr = 0x57;
  4002. allowfullpagebitstream = no;
  4003. ocdrev = 3;
  4004. memory "eeprom"
  4005. paged = no; /* leave this "no" */
  4006. page_size = 8; /* for parallel programming */
  4007. size = 2048;
  4008. min_write_delay = 9000;
  4009. max_write_delay = 9000;
  4010. readback_p1 = 0xff;
  4011. readback_p2 = 0xff;
  4012. read = " 1 0 1 0 0 0 0 0",
  4013. " 0 0 x x a11 a10 a9 a8",
  4014. " a7 a6 a5 a4 a3 a2 a1 a0",
  4015. " o o o o o o o o";
  4016. write = " 1 1 0 0 0 0 0 0",
  4017. " 0 0 x x a11 a10 a9 a8",
  4018. " a7 a6 a5 a4 a3 a2 a1 a0",
  4019. " i i i i i i i i";
  4020. loadpage_lo = " 1 1 0 0 0 0 0 1",
  4021. " 0 0 0 0 0 0 0 0",
  4022. " 0 0 0 0 0 a2 a1 a0",
  4023. " i i i i i i i i";
  4024. writepage = " 1 1 0 0 0 0 1 0",
  4025. " 0 0 x x a11 a10 a9 a8",
  4026. " a7 a6 a5 a4 a3 0 0 0",
  4027. " x x x x x x x x";
  4028. mode = 0x41;
  4029. delay = 10;
  4030. blocksize = 128;
  4031. readsize = 256;
  4032. ;
  4033. memory "flash"
  4034. paged = yes;
  4035. size = 65536;
  4036. page_size = 256;
  4037. num_pages = 256;
  4038. min_write_delay = 4500;
  4039. max_write_delay = 4500;
  4040. readback_p1 = 0xff;
  4041. readback_p2 = 0xff;
  4042. read_lo = " 0 0 1 0 0 0 0 0",
  4043. "a15 a14 a13 a12 a11 a10 a9 a8",
  4044. " a7 a6 a5 a4 a3 a2 a1 a0",
  4045. " o o o o o o o o";
  4046. read_hi = " 0 0 1 0 1 0 0 0",
  4047. "a15 a14 a13 a12 a11 a10 a9 a8",
  4048. " a7 a6 a5 a4 a3 a2 a1 a0",
  4049. " o o o o o o o o";
  4050. loadpage_lo = " 0 1 0 0 0 0 0 0",
  4051. " 0 0 x x x x x x",
  4052. " x a6 a5 a4 a3 a2 a1 a0",
  4053. " i i i i i i i i";
  4054. loadpage_hi = " 0 1 0 0 1 0 0 0",
  4055. " 0 0 x x x x x x",
  4056. " x a6 a5 a4 a3 a2 a1 a0",
  4057. " i i i i i i i i";
  4058. writepage = " 0 1 0 0 1 1 0 0",
  4059. "a15 a14 a13 a12 a11 a10 a9 a8",
  4060. " a7 x x x x x x x",
  4061. " x x x x x x x x";
  4062. mode = 0x21;
  4063. delay = 6;
  4064. blocksize = 256;
  4065. readsize = 256;
  4066. ;
  4067. memory "lock"
  4068. size = 1;
  4069. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  4070. "x x x x x x x x x x o o o o o o";
  4071. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  4072. "x x x x x x x x 1 1 i i i i i i";
  4073. min_write_delay = 9000;
  4074. max_write_delay = 9000;
  4075. ;
  4076. memory "lfuse"
  4077. size = 1;
  4078. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  4079. "x x x x x x x x o o o o o o o o";
  4080. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  4081. "x x x x x x x x i i i i i i i i";
  4082. min_write_delay = 9000;
  4083. max_write_delay = 9000;
  4084. ;
  4085. memory "hfuse"
  4086. size = 1;
  4087. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  4088. "x x x x x x x x o o o o o o o o";
  4089. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  4090. "x x x x x x x x i i i i i i i i";
  4091. min_write_delay = 9000;
  4092. max_write_delay = 9000;
  4093. ;
  4094. memory "efuse"
  4095. size = 1;
  4096. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  4097. "x x x x x x x x o o o o o o o o";
  4098. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  4099. "x x x x x x x x 1 1 1 1 1 i i i";
  4100. min_write_delay = 9000;
  4101. max_write_delay = 9000;
  4102. ;
  4103. memory "signature"
  4104. size = 3;
  4105. read = "0 0 1 1 0 0 0 0 x x x x x x x x",
  4106. "x x x x x x a1 a0 o o o o o o o o";
  4107. ;
  4108. memory "calibration"
  4109. size = 1;
  4110. read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
  4111. "0 0 0 0 0 0 0 0 o o o o o o o o";
  4112. ;
  4113. ;
  4114. #------------------------------------------------------------
  4115. # ATmega644P
  4116. #------------------------------------------------------------
  4117. # similar to ATmega164p
  4118. part parent "m644"
  4119. id = "m644p";
  4120. desc = "ATmega644P";
  4121. signature = 0x1e 0x96 0x0a;
  4122. ocdrev = 3;
  4123. ;
  4124. #------------------------------------------------------------
  4125. # ATmega1284
  4126. #------------------------------------------------------------
  4127. # similar to ATmega164
  4128. part
  4129. id = "m1284";
  4130. desc = "ATmega1284";
  4131. has_jtag = yes;
  4132. stk500_devcode = 0x82; # no STK500v1 support, use the ATmega16 one
  4133. avr910_devcode = 0x74;
  4134. signature = 0x1e 0x97 0x06;
  4135. pagel = 0xd7;
  4136. bs2 = 0xa0;
  4137. chip_erase_delay = 55000;
  4138. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  4139. "x x x x x x x x x x x x x x x x";
  4140. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
  4141. "x x x x x x x x x x x x x x x x";
  4142. timeout = 200;
  4143. stabdelay = 100;
  4144. cmdexedelay = 25;
  4145. synchloops = 32;
  4146. bytedelay = 0;
  4147. pollindex = 3;
  4148. pollvalue = 0x53;
  4149. predelay = 1;
  4150. postdelay = 1;
  4151. pollmethod = 1;
  4152. pp_controlstack =
  4153. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  4154. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  4155. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  4156. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x02;
  4157. hventerstabdelay = 100;
  4158. progmodedelay = 0;
  4159. latchcycles = 6;
  4160. togglevtg = 1;
  4161. poweroffdelay = 15;
  4162. resetdelayms = 1;
  4163. resetdelayus = 0;
  4164. hvleavestabdelay = 15;
  4165. chiperasepulsewidth = 0;
  4166. chiperasepolltimeout = 10;
  4167. programfusepulsewidth = 0;
  4168. programfusepolltimeout = 5;
  4169. programlockpulsewidth = 0;
  4170. programlockpolltimeout = 5;
  4171. idr = 0x31;
  4172. spmcr = 0x57;
  4173. allowfullpagebitstream = no;
  4174. ocdrev = 3;
  4175. memory "eeprom"
  4176. paged = no; /* leave this "no" */
  4177. page_size = 8; /* for parallel programming */
  4178. size = 4096;
  4179. min_write_delay = 9000;
  4180. max_write_delay = 9000;
  4181. readback_p1 = 0xff;
  4182. readback_p2 = 0xff;
  4183. read = " 1 0 1 0 0 0 0 0",
  4184. " 0 0 x x a11 a10 a9 a8",
  4185. " a7 a6 a5 a4 a3 a2 a1 a0",
  4186. " o o o o o o o o";
  4187. write = " 1 1 0 0 0 0 0 0",
  4188. " 0 0 x x a11 a10 a9 a8",
  4189. " a7 a6 a5 a4 a3 a2 a1 a0",
  4190. " i i i i i i i i";
  4191. loadpage_lo = " 1 1 0 0 0 0 0 1",
  4192. " 0 0 0 0 0 0 0 0",
  4193. " 0 0 0 0 0 a2 a1 a0",
  4194. " i i i i i i i i";
  4195. writepage = " 1 1 0 0 0 0 1 0",
  4196. " 0 0 x x a11 a10 a9 a8",
  4197. " a7 a6 a5 a4 a3 0 0 0",
  4198. " x x x x x x x x";
  4199. mode = 0x41;
  4200. delay = 10;
  4201. blocksize = 128;
  4202. readsize = 256;
  4203. ;
  4204. memory "flash"
  4205. paged = yes;
  4206. size = 131072;
  4207. page_size = 256;
  4208. num_pages = 512;
  4209. min_write_delay = 4500;
  4210. max_write_delay = 4500;
  4211. readback_p1 = 0xff;
  4212. readback_p2 = 0xff;
  4213. read_lo = " 0 0 1 0 0 0 0 0",
  4214. "a15 a14 a13 a12 a11 a10 a9 a8",
  4215. " a7 a6 a5 a4 a3 a2 a1 a0",
  4216. " o o o o o o o o";
  4217. read_hi = " 0 0 1 0 1 0 0 0",
  4218. "a15 a14 a13 a12 a11 a10 a9 a8",
  4219. " a7 a6 a5 a4 a3 a2 a1 a0",
  4220. " o o o o o o o o";
  4221. loadpage_lo = " 0 1 0 0 0 0 0 0",
  4222. " 0 0 x x x x x x",
  4223. " x a6 a5 a4 a3 a2 a1 a0",
  4224. " i i i i i i i i";
  4225. loadpage_hi = " 0 1 0 0 1 0 0 0",
  4226. " 0 0 x x x x x x",
  4227. " x a6 a5 a4 a3 a2 a1 a0",
  4228. " i i i i i i i i";
  4229. writepage = " 0 1 0 0 1 1 0 0",
  4230. "a15 a14 a13 a12 a11 a10 a9 a8",
  4231. " a7 x x x x x x x",
  4232. " x x x x x x x x";
  4233. mode = 0x41;
  4234. delay = 10;
  4235. blocksize = 256;
  4236. readsize = 256;
  4237. ;
  4238. memory "lock"
  4239. size = 1;
  4240. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  4241. "x x x x x x x x x x o o o o o o";
  4242. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  4243. "x x x x x x x x 1 1 i i i i i i";
  4244. min_write_delay = 9000;
  4245. max_write_delay = 9000;
  4246. ;
  4247. memory "lfuse"
  4248. size = 1;
  4249. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  4250. "x x x x x x x x o o o o o o o o";
  4251. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  4252. "x x x x x x x x i i i i i i i i";
  4253. min_write_delay = 9000;
  4254. max_write_delay = 9000;
  4255. ;
  4256. memory "hfuse"
  4257. size = 1;
  4258. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  4259. "x x x x x x x x o o o o o o o o";
  4260. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  4261. "x x x x x x x x i i i i i i i i";
  4262. min_write_delay = 9000;
  4263. max_write_delay = 9000;
  4264. ;
  4265. memory "efuse"
  4266. size = 1;
  4267. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  4268. "x x x x x x x x o o o o o o o o";
  4269. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  4270. "x x x x x x x x 1 1 1 1 1 i i i";
  4271. min_write_delay = 9000;
  4272. max_write_delay = 9000;
  4273. ;
  4274. memory "signature"
  4275. size = 3;
  4276. read = "0 0 1 1 0 0 0 0 x x x x x x x x",
  4277. "x x x x x x a1 a0 o o o o o o o o";
  4278. ;
  4279. memory "calibration"
  4280. size = 1;
  4281. read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
  4282. "0 0 0 0 0 0 0 0 o o o o o o o o";
  4283. ;
  4284. ;
  4285. #------------------------------------------------------------
  4286. # ATmega1284P
  4287. #------------------------------------------------------------
  4288. # similar to ATmega164p
  4289. part
  4290. id = "m1284p";
  4291. desc = "ATmega1284P";
  4292. has_jtag = yes;
  4293. stk500_devcode = 0x82; # no STK500v1 support, use the ATmega16 one
  4294. avr910_devcode = 0x74;
  4295. signature = 0x1e 0x97 0x05;
  4296. pagel = 0xd7;
  4297. bs2 = 0xa0;
  4298. chip_erase_delay = 55000;
  4299. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  4300. "x x x x x x x x x x x x x x x x";
  4301. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
  4302. "x x x x x x x x x x x x x x x x";
  4303. timeout = 200;
  4304. stabdelay = 100;
  4305. cmdexedelay = 25;
  4306. synchloops = 32;
  4307. bytedelay = 0;
  4308. pollindex = 3;
  4309. pollvalue = 0x53;
  4310. predelay = 1;
  4311. postdelay = 1;
  4312. pollmethod = 1;
  4313. pp_controlstack =
  4314. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  4315. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  4316. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  4317. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x02;
  4318. hventerstabdelay = 100;
  4319. progmodedelay = 0;
  4320. latchcycles = 6;
  4321. togglevtg = 1;
  4322. poweroffdelay = 15;
  4323. resetdelayms = 1;
  4324. resetdelayus = 0;
  4325. hvleavestabdelay = 15;
  4326. chiperasepulsewidth = 0;
  4327. chiperasepolltimeout = 10;
  4328. programfusepulsewidth = 0;
  4329. programfusepolltimeout = 5;
  4330. programlockpulsewidth = 0;
  4331. programlockpolltimeout = 5;
  4332. idr = 0x31;
  4333. spmcr = 0x57;
  4334. allowfullpagebitstream = no;
  4335. ocdrev = 3;
  4336. memory "eeprom"
  4337. paged = no; /* leave this "no" */
  4338. page_size = 8; /* for parallel programming */
  4339. size = 4096;
  4340. min_write_delay = 9000;
  4341. max_write_delay = 9000;
  4342. readback_p1 = 0xff;
  4343. readback_p2 = 0xff;
  4344. read = " 1 0 1 0 0 0 0 0",
  4345. " 0 0 x x a11 a10 a9 a8",
  4346. " a7 a6 a5 a4 a3 a2 a1 a0",
  4347. " o o o o o o o o";
  4348. write = " 1 1 0 0 0 0 0 0",
  4349. " 0 0 x x a11 a10 a9 a8",
  4350. " a7 a6 a5 a4 a3 a2 a1 a0",
  4351. " i i i i i i i i";
  4352. loadpage_lo = " 1 1 0 0 0 0 0 1",
  4353. " 0 0 0 0 0 0 0 0",
  4354. " 0 0 0 0 0 a2 a1 a0",
  4355. " i i i i i i i i";
  4356. writepage = " 1 1 0 0 0 0 1 0",
  4357. " 0 0 x x a11 a10 a9 a8",
  4358. " a7 a6 a5 a4 a3 0 0 0",
  4359. " x x x x x x x x";
  4360. mode = 0x41;
  4361. delay = 10;
  4362. blocksize = 128;
  4363. readsize = 256;
  4364. ;
  4365. memory "flash"
  4366. paged = yes;
  4367. size = 131072;
  4368. page_size = 256;
  4369. num_pages = 512;
  4370. min_write_delay = 4500;
  4371. max_write_delay = 4500;
  4372. readback_p1 = 0xff;
  4373. readback_p2 = 0xff;
  4374. read_lo = " 0 0 1 0 0 0 0 0",
  4375. "a15 a14 a13 a12 a11 a10 a9 a8",
  4376. " a7 a6 a5 a4 a3 a2 a1 a0",
  4377. " o o o o o o o o";
  4378. read_hi = " 0 0 1 0 1 0 0 0",
  4379. "a15 a14 a13 a12 a11 a10 a9 a8",
  4380. " a7 a6 a5 a4 a3 a2 a1 a0",
  4381. " o o o o o o o o";
  4382. loadpage_lo = " 0 1 0 0 0 0 0 0",
  4383. " 0 0 x x x x x x",
  4384. " x a6 a5 a4 a3 a2 a1 a0",
  4385. " i i i i i i i i";
  4386. loadpage_hi = " 0 1 0 0 1 0 0 0",
  4387. " 0 0 x x x x x x",
  4388. " x a6 a5 a4 a3 a2 a1 a0",
  4389. " i i i i i i i i";
  4390. writepage = " 0 1 0 0 1 1 0 0",
  4391. "a15 a14 a13 a12 a11 a10 a9 a8",
  4392. " a7 x x x x x x x",
  4393. " x x x x x x x x";
  4394. mode = 0x41;
  4395. delay = 10;
  4396. blocksize = 256;
  4397. readsize = 256;
  4398. ;
  4399. memory "lock"
  4400. size = 1;
  4401. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  4402. "x x x x x x x x x x o o o o o o";
  4403. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  4404. "x x x x x x x x 1 1 i i i i i i";
  4405. min_write_delay = 9000;
  4406. max_write_delay = 9000;
  4407. ;
  4408. memory "lfuse"
  4409. size = 1;
  4410. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  4411. "x x x x x x x x o o o o o o o o";
  4412. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  4413. "x x x x x x x x i i i i i i i i";
  4414. min_write_delay = 9000;
  4415. max_write_delay = 9000;
  4416. ;
  4417. memory "hfuse"
  4418. size = 1;
  4419. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  4420. "x x x x x x x x o o o o o o o o";
  4421. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  4422. "x x x x x x x x i i i i i i i i";
  4423. min_write_delay = 9000;
  4424. max_write_delay = 9000;
  4425. ;
  4426. memory "efuse"
  4427. size = 1;
  4428. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  4429. "x x x x x x x x o o o o o o o o";
  4430. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  4431. "x x x x x x x x 1 1 1 1 1 i i i";
  4432. min_write_delay = 9000;
  4433. max_write_delay = 9000;
  4434. ;
  4435. memory "signature"
  4436. size = 3;
  4437. read = "0 0 1 1 0 0 0 0 x x x x x x x x",
  4438. "x x x x x x a1 a0 o o o o o o o o";
  4439. ;
  4440. memory "calibration"
  4441. size = 1;
  4442. read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
  4443. "0 0 0 0 0 0 0 0 o o o o o o o o";
  4444. ;
  4445. ;
  4446. #------------------------------------------------------------
  4447. # ATmega162
  4448. #------------------------------------------------------------
  4449. part
  4450. id = "m162";
  4451. desc = "ATmega162";
  4452. has_jtag = yes;
  4453. stk500_devcode = 0x83;
  4454. avr910_devcode = 0x63;
  4455. signature = 0x1e 0x94 0x04;
  4456. chip_erase_delay = 9000;
  4457. pagel = 0xd7;
  4458. bs2 = 0xa0;
  4459. idr = 0x04;
  4460. spmcr = 0x57;
  4461. allowfullpagebitstream = yes;
  4462. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  4463. "x x x x x x x x x x x x x x x x";
  4464. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
  4465. "x x x x x x x x x x x x x x x x";
  4466. ocdrev = 2;
  4467. memory "flash"
  4468. paged = yes;
  4469. size = 16384;
  4470. page_size = 128;
  4471. num_pages = 128;
  4472. min_write_delay = 4500;
  4473. max_write_delay = 4500;
  4474. readback_p1 = 0xff;
  4475. readback_p2 = 0xff;
  4476. read_lo = " 0 0 1 0 0 0 0 0",
  4477. " 0 0 a13 a12 a11 a10 a9 a8",
  4478. " a7 a6 a5 a4 a3 a2 a1 a0",
  4479. " o o o o o o o o";
  4480. read_hi = " 0 0 1 0 1 0 0 0",
  4481. " 0 0 a13 a12 a11 a10 a9 a8",
  4482. " a7 a6 a5 a4 a3 a2 a1 a0",
  4483. " o o o o o o o o";
  4484. loadpage_lo = " 0 1 0 0 0 0 0 0",
  4485. " 0 0 x x x x x x",
  4486. " x x a5 a4 a3 a2 a1 a0",
  4487. " i i i i i i i i";
  4488. loadpage_hi = " 0 1 0 0 1 0 0 0",
  4489. " 0 0 x x x x x x",
  4490. " x x a5 a4 a3 a2 a1 a0",
  4491. " i i i i i i i i";
  4492. writepage = " 0 1 0 0 1 1 0 0",
  4493. " 0 0 a13 a12 a11 a10 a9 a8",
  4494. " a7 a6 x x x x x x",
  4495. " x x x x x x x x";
  4496. mode = 0x41;
  4497. delay = 10;
  4498. blocksize = 128;
  4499. readsize = 256;
  4500. ;
  4501. timeout = 200;
  4502. stabdelay = 100;
  4503. cmdexedelay = 25;
  4504. synchloops = 32;
  4505. bytedelay = 0;
  4506. pollindex = 3;
  4507. pollvalue = 0x53;
  4508. predelay = 1;
  4509. postdelay = 1;
  4510. pollmethod = 0;
  4511. pp_controlstack =
  4512. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  4513. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  4514. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  4515. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  4516. hventerstabdelay = 100;
  4517. progmodedelay = 0;
  4518. latchcycles = 6;
  4519. togglevtg = 0;
  4520. poweroffdelay = 0;
  4521. resetdelayms = 0;
  4522. resetdelayus = 0;
  4523. hvleavestabdelay = 15;
  4524. chiperasepulsewidth = 0;
  4525. chiperasepolltimeout = 10;
  4526. programfusepulsewidth = 0;
  4527. programfusepolltimeout = 5;
  4528. programlockpulsewidth = 0;
  4529. programlockpolltimeout = 5;
  4530. memory "eeprom"
  4531. paged = no; /* leave this "no" */
  4532. page_size = 4; /* for parallel programming */
  4533. size = 512;
  4534. min_write_delay = 9000;
  4535. max_write_delay = 9000;
  4536. readback_p1 = 0xff;
  4537. readback_p2 = 0xff;
  4538. read = " 1 0 1 0 0 0 0 0",
  4539. " 0 0 x x x x a9 a8",
  4540. " a7 a6 a5 a4 a3 a2 a1 a0",
  4541. " o o o o o o o o";
  4542. write = " 1 1 0 0 0 0 0 0",
  4543. " 0 0 x x x x a9 a8",
  4544. " a7 a6 a5 a4 a3 a2 a1 a0",
  4545. " i i i i i i i i";
  4546. loadpage_lo = " 1 1 0 0 0 0 0 1",
  4547. " 0 0 0 0 0 0 0 0",
  4548. " 0 0 0 0 0 0 a1 a0",
  4549. " i i i i i i i i";
  4550. writepage = " 1 1 0 0 0 0 1 0",
  4551. " 0 0 x x x x a9 a8",
  4552. " a7 a6 a5 a4 a3 a2 0 0",
  4553. " x x x x x x x x";
  4554. mode = 0x41;
  4555. delay = 20;
  4556. blocksize = 4;
  4557. readsize = 256;
  4558. ;
  4559. memory "lfuse"
  4560. size = 1;
  4561. min_write_delay = 16000;
  4562. max_write_delay = 16000;
  4563. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  4564. "x x x x x x x x o o o o o o o o";
  4565. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  4566. "x x x x x x x x i i i i i i i i";
  4567. ;
  4568. memory "hfuse"
  4569. size = 1;
  4570. min_write_delay = 16000;
  4571. max_write_delay = 16000;
  4572. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  4573. "x x x x x x x x o o o o o o o o";
  4574. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  4575. "x x x x x x x x i i i i i i i i";
  4576. ;
  4577. memory "efuse"
  4578. size = 1;
  4579. min_write_delay = 16000;
  4580. max_write_delay = 16000;
  4581. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  4582. "x x x x x x x x o o o o o o o o";
  4583. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  4584. "x x x x x x x x 1 1 1 1 1 i i i";
  4585. ;
  4586. memory "lock"
  4587. size = 1;
  4588. min_write_delay = 16000;
  4589. max_write_delay = 16000;
  4590. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  4591. "x x x x x x x x x x o o o o o o";
  4592. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  4593. "x x x x x x x x 1 1 i i i i i i";
  4594. ;
  4595. memory "signature"
  4596. size = 3;
  4597. read = "0 0 1 1 0 0 0 0 0 0 x x x x x x",
  4598. "x x x x x x a1 a0 o o o o o o o o";
  4599. ;
  4600. memory "calibration"
  4601. size = 1;
  4602. read = "0 0 1 1 1 0 0 0 0 0 x x x x x x",
  4603. "0 0 0 0 0 0 0 0 o o o o o o o o";
  4604. ;
  4605. ;
  4606. #------------------------------------------------------------
  4607. # ATmega163
  4608. #------------------------------------------------------------
  4609. part
  4610. id = "m163";
  4611. desc = "ATmega163";
  4612. stk500_devcode = 0x81;
  4613. avr910_devcode = 0x64;
  4614. signature = 0x1e 0x94 0x02;
  4615. chip_erase_delay = 32000;
  4616. pagel = 0xd7;
  4617. bs2 = 0xa0;
  4618. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  4619. "x x x x x x x x x x x x x x x x";
  4620. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 0 0 0 0 0",
  4621. "x x x x x x x x x x x x x x x x";
  4622. timeout = 200;
  4623. stabdelay = 100;
  4624. cmdexedelay = 25;
  4625. synchloops = 32;
  4626. bytedelay = 0;
  4627. pollindex = 3;
  4628. pollvalue = 0x53;
  4629. predelay = 1;
  4630. postdelay = 1;
  4631. pollmethod = 0;
  4632. pp_controlstack =
  4633. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  4634. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  4635. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  4636. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  4637. hventerstabdelay = 100;
  4638. progmodedelay = 0;
  4639. latchcycles = 0;
  4640. togglevtg = 0;
  4641. poweroffdelay = 0;
  4642. resetdelayms = 0;
  4643. resetdelayus = 0;
  4644. hvleavestabdelay = 15;
  4645. chiperasepulsewidth = 0;
  4646. chiperasepolltimeout = 30;
  4647. programfusepulsewidth = 0;
  4648. programfusepolltimeout = 2;
  4649. programlockpulsewidth = 0;
  4650. programlockpolltimeout = 2;
  4651. memory "eeprom"
  4652. size = 512;
  4653. min_write_delay = 4000;
  4654. max_write_delay = 4000;
  4655. readback_p1 = 0xff;
  4656. readback_p2 = 0xff;
  4657. read = " 1 0 1 0 0 0 0 0",
  4658. " x x x x x x x a8",
  4659. " a7 a6 a5 a4 a3 a2 a1 a0",
  4660. " o o o o o o o o";
  4661. write = " 1 1 0 0 0 0 0 0",
  4662. " x x x x x x x a8",
  4663. " a7 a6 a5 a4 a3 a2 a1 a0",
  4664. " i i i i i i i i";
  4665. mode = 0x41;
  4666. delay = 20;
  4667. blocksize = 4;
  4668. readsize = 256;
  4669. ;
  4670. memory "flash"
  4671. paged = yes;
  4672. size = 16384;
  4673. page_size = 128;
  4674. num_pages = 128;
  4675. min_write_delay = 16000;
  4676. max_write_delay = 16000;
  4677. readback_p1 = 0xff;
  4678. readback_p2 = 0xff;
  4679. read_lo = " 0 0 1 0 0 0 0 0",
  4680. " x x x a12 a11 a10 a9 a8",
  4681. " a7 a6 a5 a4 a3 a2 a1 a0",
  4682. " o o o o o o o o";
  4683. read_hi = " 0 0 1 0 1 0 0 0",
  4684. " x x x a12 a11 a10 a9 a8",
  4685. " a7 a6 a5 a4 a3 a2 a1 a0",
  4686. " o o o o o o o o";
  4687. loadpage_lo = " 0 1 0 0 0 0 0 0",
  4688. " x x x x x x x x",
  4689. " x x a5 a4 a3 a2 a1 a0",
  4690. " i i i i i i i i";
  4691. loadpage_hi = " 0 1 0 0 1 0 0 0",
  4692. " x x x x x x x x",
  4693. " x x a5 a4 a3 a2 a1 a0",
  4694. " i i i i i i i i";
  4695. writepage = " 0 1 0 0 1 1 0 0",
  4696. " x x x a12 a11 a10 a9 a8",
  4697. " a7 a6 x x x x x x",
  4698. " x x x x x x x x";
  4699. mode = 0x11;
  4700. delay = 20;
  4701. blocksize = 128;
  4702. readsize = 256;
  4703. ;
  4704. memory "lfuse"
  4705. size = 1;
  4706. min_write_delay = 2000;
  4707. max_write_delay = 2000;
  4708. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  4709. "x x x x x x x x o o x x o o o o";
  4710. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  4711. "x x x x x x x x i i 1 1 i i i i";
  4712. ;
  4713. memory "hfuse"
  4714. size = 1;
  4715. min_write_delay = 2000;
  4716. max_write_delay = 2000;
  4717. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  4718. "x x x x x x x x x x x x 1 o o o";
  4719. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  4720. "x x x x x x x x 1 1 1 1 1 i i i";
  4721. ;
  4722. memory "lock"
  4723. size = 1;
  4724. min_write_delay = 2000;
  4725. max_write_delay = 2000;
  4726. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  4727. "x x x x 0 x x x x x o o o o o o";
  4728. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  4729. "x x x x x x x x 1 1 i i i i i i";
  4730. ;
  4731. memory "signature"
  4732. size = 3;
  4733. read = "0 0 1 1 0 0 0 0 x x x x x x x x",
  4734. "x x x x x x a1 a0 o o o o o o o o";
  4735. ;
  4736. memory "calibration"
  4737. size = 1;
  4738. read = "0 0 1 1 1 0 0 0 x x x x x x x x",
  4739. "0 0 0 0 0 0 0 0 o o o o o o o o";
  4740. ;
  4741. ;
  4742. #------------------------------------------------------------
  4743. # ATmega169
  4744. #------------------------------------------------------------
  4745. part
  4746. id = "m169";
  4747. desc = "ATmega169";
  4748. has_jtag = yes;
  4749. stk500_devcode = 0x85;
  4750. avr910_devcode = 0x78;
  4751. signature = 0x1e 0x94 0x05;
  4752. chip_erase_delay = 9000;
  4753. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  4754. "x x x x x x x x x x x x x x x x";
  4755. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 0 0 0 0 0",
  4756. "x x x x x x x x x x x x x x x x";
  4757. timeout = 200;
  4758. stabdelay = 100;
  4759. cmdexedelay = 25;
  4760. synchloops = 32;
  4761. bytedelay = 0;
  4762. pollindex = 3;
  4763. pollvalue = 0x53;
  4764. predelay = 1;
  4765. postdelay = 1;
  4766. pollmethod = 1;
  4767. pp_controlstack =
  4768. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  4769. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  4770. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  4771. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  4772. hventerstabdelay = 100;
  4773. progmodedelay = 0;
  4774. latchcycles = 5;
  4775. togglevtg = 1;
  4776. poweroffdelay = 15;
  4777. resetdelayms = 1;
  4778. resetdelayus = 0;
  4779. hvleavestabdelay = 15;
  4780. chiperasepulsewidth = 0;
  4781. chiperasepolltimeout = 10;
  4782. programfusepulsewidth = 0;
  4783. programfusepolltimeout = 5;
  4784. programlockpulsewidth = 0;
  4785. programlockpolltimeout = 5;
  4786. idr = 0x31;
  4787. spmcr = 0x57;
  4788. ocdrev = 2;
  4789. memory "eeprom"
  4790. paged = no; /* leave this "no" */
  4791. page_size = 4; /* for parallel programming */
  4792. size = 512;
  4793. min_write_delay = 9000;
  4794. max_write_delay = 9000;
  4795. readback_p1 = 0xff;
  4796. readback_p2 = 0xff;
  4797. read = " 1 0 1 0 0 0 0 0",
  4798. " x x x x x x x a8",
  4799. " a7 a6 a5 a4 a3 a2 a1 a0",
  4800. " o o o o o o o o";
  4801. write = " 1 1 0 0 0 0 0 0",
  4802. " x x x x x x x a8",
  4803. " a7 a6 a5 a4 a3 a2 a1 a0",
  4804. " i i i i i i i i";
  4805. loadpage_lo = " 1 1 0 0 0 0 0 1",
  4806. " 0 0 0 0 0 0 0 0",
  4807. " 0 0 0 0 0 0 a1 a0",
  4808. " i i i i i i i i";
  4809. writepage = " 1 1 0 0 0 0 1 0",
  4810. " 0 0 x x x x x a8",
  4811. " a7 a6 a5 a4 a3 a2 0 0",
  4812. " x x x x x x x x";
  4813. mode = 0x41;
  4814. delay = 20;
  4815. blocksize = 4;
  4816. readsize = 256;
  4817. ;
  4818. memory "flash"
  4819. paged = yes;
  4820. size = 16384;
  4821. page_size = 128;
  4822. num_pages = 128;
  4823. min_write_delay = 4500;
  4824. max_write_delay = 4500;
  4825. readback_p1 = 0xff;
  4826. readback_p2 = 0xff;
  4827. read_lo = " 0 0 1 0 0 0 0 0",
  4828. " x x x a12 a11 a10 a9 a8",
  4829. " a7 a6 a5 a4 a3 a2 a1 a0",
  4830. " o o o o o o o o";
  4831. read_hi = " 0 0 1 0 1 0 0 0",
  4832. " x x x a12 a11 a10 a9 a8",
  4833. " a7 a6 a5 a4 a3 a2 a1 a0",
  4834. " o o o o o o o o";
  4835. loadpage_lo = " 0 1 0 0 0 0 0 0",
  4836. " x x x x x x x x",
  4837. " x x a5 a4 a3 a2 a1 a0",
  4838. " i i i i i i i i";
  4839. loadpage_hi = " 0 1 0 0 1 0 0 0",
  4840. " x x x x x x x x",
  4841. " x x a5 a4 a3 a2 a1 a0",
  4842. " i i i i i i i i";
  4843. writepage = " 0 1 0 0 1 1 0 0",
  4844. " x x x a12 a11 a10 a9 a8",
  4845. " a7 a6 x x x x x x",
  4846. " x x x x x x x x";
  4847. mode = 0x41;
  4848. delay = 6;
  4849. blocksize = 128;
  4850. readsize = 256;
  4851. ;
  4852. memory "lfuse"
  4853. size = 1;
  4854. min_write_delay = 2000;
  4855. max_write_delay = 2000;
  4856. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  4857. "x x x x x x x x o o o o o o o o";
  4858. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  4859. "x x x x x x x x i i i i i i i i";
  4860. ;
  4861. memory "hfuse"
  4862. size = 1;
  4863. min_write_delay = 2000;
  4864. max_write_delay = 2000;
  4865. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  4866. "x x x x x x x x o o o o o o o o";
  4867. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  4868. "x x x x x x x x i i i i i i i i";
  4869. ;
  4870. memory "efuse"
  4871. size = 1;
  4872. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  4873. "x x x x x x x x x x x x i i i i";
  4874. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  4875. "x x x x x x x x o o o o o o o o";
  4876. ;
  4877. memory "lock"
  4878. size = 1;
  4879. min_write_delay = 2000;
  4880. max_write_delay = 2000;
  4881. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  4882. "x x x x x x x x x x o o o o o o";
  4883. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  4884. "x x x x x x x x 1 1 i i i i i i";
  4885. ;
  4886. memory "signature"
  4887. size = 3;
  4888. read = "0 0 1 1 0 0 0 0 0 0 0 x x x x x",
  4889. "x x x x x x a1 a0 o o o o o o o o";
  4890. ;
  4891. memory "calibration"
  4892. size = 1;
  4893. read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
  4894. "0 0 0 0 0 0 0 0 o o o o o o o o";
  4895. ;
  4896. ;
  4897. #------------------------------------------------------------
  4898. # ATmega329
  4899. #------------------------------------------------------------
  4900. part
  4901. id = "m329";
  4902. desc = "ATmega329";
  4903. has_jtag = yes;
  4904. # stk500_devcode = 0x85; # no STK500 support, only STK500v2
  4905. # avr910_devcode = 0x?; # try the ATmega169 one:
  4906. avr910_devcode = 0x75;
  4907. signature = 0x1e 0x95 0x03;
  4908. chip_erase_delay = 9000;
  4909. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  4910. "x x x x x x x x x x x x x x x x";
  4911. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 0 0 0 0 0",
  4912. "x x x x x x x x x x x x x x x x";
  4913. timeout = 200;
  4914. stabdelay = 100;
  4915. cmdexedelay = 25;
  4916. synchloops = 32;
  4917. bytedelay = 0;
  4918. pollindex = 3;
  4919. pollvalue = 0x53;
  4920. predelay = 1;
  4921. postdelay = 1;
  4922. pollmethod = 1;
  4923. pp_controlstack =
  4924. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  4925. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  4926. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  4927. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  4928. hventerstabdelay = 100;
  4929. progmodedelay = 0;
  4930. latchcycles = 5;
  4931. togglevtg = 1;
  4932. poweroffdelay = 15;
  4933. resetdelayms = 1;
  4934. resetdelayus = 0;
  4935. hvleavestabdelay = 15;
  4936. chiperasepulsewidth = 0;
  4937. chiperasepolltimeout = 10;
  4938. programfusepulsewidth = 0;
  4939. programfusepolltimeout = 5;
  4940. programlockpulsewidth = 0;
  4941. programlockpolltimeout = 5;
  4942. idr = 0x31;
  4943. spmcr = 0x57;
  4944. ocdrev = 3;
  4945. memory "eeprom"
  4946. paged = no; /* leave this "no" */
  4947. page_size = 4; /* for parallel programming */
  4948. size = 1024;
  4949. min_write_delay = 9000;
  4950. max_write_delay = 9000;
  4951. readback_p1 = 0xff;
  4952. readback_p2 = 0xff;
  4953. read = " 1 0 1 0 0 0 0 0",
  4954. " x x x x x x a9 a8",
  4955. " a7 a6 a5 a4 a3 a2 a1 a0",
  4956. " o o o o o o o o";
  4957. write = " 1 1 0 0 0 0 0 0",
  4958. " x x x x x x a9 a8",
  4959. " a7 a6 a5 a4 a3 a2 a1 a0",
  4960. " i i i i i i i i";
  4961. loadpage_lo = " 1 1 0 0 0 0 0 1",
  4962. " 0 0 0 0 0 0 0 0",
  4963. " 0 0 0 0 0 0 a1 a0",
  4964. " i i i i i i i i";
  4965. writepage = " 1 1 0 0 0 0 1 0",
  4966. " 0 0 x x x x a9 a8",
  4967. " a7 a6 a5 a4 a3 a2 0 0",
  4968. " x x x x x x x x";
  4969. mode = 0x41;
  4970. delay = 20;
  4971. blocksize = 8;
  4972. readsize = 256;
  4973. ;
  4974. memory "flash"
  4975. paged = yes;
  4976. size = 32768;
  4977. page_size = 128;
  4978. num_pages = 256;
  4979. min_write_delay = 4500;
  4980. max_write_delay = 4500;
  4981. readback_p1 = 0xff;
  4982. readback_p2 = 0xff;
  4983. read_lo = " 0 0 1 0 0 0 0 0",
  4984. " x a14 a13 a12 a11 a10 a9 a8",
  4985. " a7 a6 a5 a4 a3 a2 a1 a0",
  4986. " o o o o o o o o";
  4987. read_hi = " 0 0 1 0 1 0 0 0",
  4988. " x a14 a13 a12 a11 a10 a9 a8",
  4989. " a7 a6 a5 a4 a3 a2 a1 a0",
  4990. " o o o o o o o o";
  4991. loadpage_lo = " 0 1 0 0 0 0 0 0",
  4992. " x x x x x x x x",
  4993. " x x a5 a4 a3 a2 a1 a0",
  4994. " i i i i i i i i";
  4995. loadpage_hi = " 0 1 0 0 1 0 0 0",
  4996. " x x x x x x x x",
  4997. " x x a5 a4 a3 a2 a1 a0",
  4998. " i i i i i i i i";
  4999. writepage = " 0 1 0 0 1 1 0 0",
  5000. " x x x a12 a11 a10 a9 a8",
  5001. " a7 a6 x x x x x x",
  5002. " x x x x x x x x";
  5003. mode = 0x41;
  5004. delay = 6;
  5005. blocksize = 256;
  5006. readsize = 256;
  5007. ;
  5008. memory "lfuse"
  5009. size = 1;
  5010. min_write_delay = 4500;
  5011. max_write_delay = 4500;
  5012. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  5013. "x x x x x x x x o o o o o o o o";
  5014. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  5015. "x x x x x x x x i i i i i i i i";
  5016. ;
  5017. memory "hfuse"
  5018. size = 1;
  5019. min_write_delay = 4500;
  5020. max_write_delay = 4500;
  5021. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  5022. "x x x x x x x x o o o o o o o o";
  5023. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  5024. "x x x x x x x x i i i i i i i i";
  5025. ;
  5026. memory "efuse"
  5027. size = 1;
  5028. min_write_delay = 4500;
  5029. max_write_delay = 4500;
  5030. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  5031. "x x x x x x x x o o o o o o o o";
  5032. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  5033. "x x x x x x x x x x x x x i i i";
  5034. ;
  5035. memory "lock"
  5036. size = 1;
  5037. min_write_delay = 4500;
  5038. max_write_delay = 4500;
  5039. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  5040. "x x x x x x x x x x o o o o o o";
  5041. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  5042. "x x x x x x x x 1 1 i i i i i i";
  5043. ;
  5044. memory "signature"
  5045. size = 3;
  5046. read = "0 0 1 1 0 0 0 0 0 0 0 x x x x x",
  5047. "x x x x x x a1 a0 o o o o o o o o";
  5048. ;
  5049. memory "calibration"
  5050. size = 1;
  5051. read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
  5052. "0 0 0 0 0 0 0 0 o o o o o o o o";
  5053. ;
  5054. ;
  5055. #------------------------------------------------------------
  5056. # ATmega329P
  5057. #------------------------------------------------------------
  5058. # Identical to ATmega329 except of the signature
  5059. part parent "m329"
  5060. id = "m329p";
  5061. desc = "ATmega329P";
  5062. signature = 0x1e 0x95 0x0b;
  5063. ocdrev = 3;
  5064. ;
  5065. #------------------------------------------------------------
  5066. # ATmega3290
  5067. #------------------------------------------------------------
  5068. # identical to ATmega329
  5069. part parent "m329"
  5070. id = "m3290";
  5071. desc = "ATmega3290";
  5072. signature = 0x1e 0x95 0x04;
  5073. ocdrev = 3;
  5074. ;
  5075. #------------------------------------------------------------
  5076. # ATmega3290P
  5077. #------------------------------------------------------------
  5078. # identical to ATmega3290 except of the signature
  5079. part parent "m3290"
  5080. id = "m3290p";
  5081. desc = "ATmega3290P";
  5082. signature = 0x1e 0x95 0x0c;
  5083. ocdrev = 3;
  5084. ;
  5085. #------------------------------------------------------------
  5086. # ATmega649
  5087. #------------------------------------------------------------
  5088. part
  5089. id = "m649";
  5090. desc = "ATmega649";
  5091. has_jtag = yes;
  5092. # stk500_devcode = 0x85; # no STK500 support, only STK500v2
  5093. # avr910_devcode = 0x?; # try the ATmega169 one:
  5094. avr910_devcode = 0x75;
  5095. signature = 0x1e 0x96 0x03;
  5096. chip_erase_delay = 9000;
  5097. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  5098. "x x x x x x x x x x x x x x x x";
  5099. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 0 0 0 0 0",
  5100. "x x x x x x x x x x x x x x x x";
  5101. timeout = 200;
  5102. stabdelay = 100;
  5103. cmdexedelay = 25;
  5104. synchloops = 32;
  5105. bytedelay = 0;
  5106. pollindex = 3;
  5107. pollvalue = 0x53;
  5108. predelay = 1;
  5109. postdelay = 1;
  5110. pollmethod = 1;
  5111. pp_controlstack =
  5112. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  5113. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  5114. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  5115. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  5116. hventerstabdelay = 100;
  5117. progmodedelay = 0;
  5118. latchcycles = 5;
  5119. togglevtg = 1;
  5120. poweroffdelay = 15;
  5121. resetdelayms = 1;
  5122. resetdelayus = 0;
  5123. hvleavestabdelay = 15;
  5124. chiperasepulsewidth = 0;
  5125. chiperasepolltimeout = 10;
  5126. programfusepulsewidth = 0;
  5127. programfusepolltimeout = 5;
  5128. programlockpulsewidth = 0;
  5129. programlockpolltimeout = 5;
  5130. idr = 0x31;
  5131. spmcr = 0x57;
  5132. ocdrev = 3;
  5133. memory "eeprom"
  5134. paged = no; /* leave this "no" */
  5135. page_size = 8; /* for parallel programming */
  5136. size = 2048;
  5137. min_write_delay = 9000;
  5138. max_write_delay = 9000;
  5139. readback_p1 = 0xff;
  5140. readback_p2 = 0xff;
  5141. read = " 1 0 1 0 0 0 0 0",
  5142. " x x x x x a10 a9 a8",
  5143. " a7 a6 a5 a4 a3 a2 a1 a0",
  5144. " o o o o o o o o";
  5145. write = " 1 1 0 0 0 0 0 0",
  5146. " x x x x x a10 a9 a8",
  5147. " a7 a6 a5 a4 a3 a2 a1 a0",
  5148. " i i i i i i i i";
  5149. loadpage_lo = " 1 1 0 0 0 0 0 1",
  5150. " 0 0 0 0 0 0 0 0",
  5151. " 0 0 0 0 0 a2 a1 a0",
  5152. " i i i i i i i i";
  5153. writepage = " 1 1 0 0 0 0 1 0",
  5154. " 0 0 x x x a10 a9 a8",
  5155. " a7 a6 a5 a4 a3 0 0 0",
  5156. " x x x x x x x x";
  5157. mode = 0x41;
  5158. delay = 20;
  5159. blocksize = 8;
  5160. readsize = 256;
  5161. ;
  5162. memory "flash"
  5163. paged = yes;
  5164. size = 65536;
  5165. page_size = 256;
  5166. num_pages = 256;
  5167. min_write_delay = 4500;
  5168. max_write_delay = 4500;
  5169. readback_p1 = 0xff;
  5170. readback_p2 = 0xff;
  5171. read_lo = " 0 0 1 0 0 0 0 0",
  5172. "a15 a14 a13 a12 a11 a10 a9 a8",
  5173. " a7 a6 a5 a4 a3 a2 a1 a0",
  5174. " o o o o o o o o";
  5175. read_hi = " 0 0 1 0 1 0 0 0",
  5176. "a15 a14 a13 a12 a11 a10 a9 a8",
  5177. " a7 a6 a5 a4 a3 a2 a1 a0",
  5178. " o o o o o o o o";
  5179. loadpage_lo = " 0 1 0 0 0 0 0 0",
  5180. " x x x x x x x x",
  5181. " x a6 a5 a4 a3 a2 a1 a0",
  5182. " i i i i i i i i";
  5183. loadpage_hi = " 0 1 0 0 1 0 0 0",
  5184. " x x x x x x x x",
  5185. " x a6 a5 a4 a3 a2 a1 a0",
  5186. " i i i i i i i i";
  5187. writepage = " 0 1 0 0 1 1 0 0",
  5188. " x x x a12 a11 a10 a9 a8",
  5189. " a7 x x x x x x x",
  5190. " x x x x x x x x";
  5191. mode = 0x41;
  5192. delay = 6;
  5193. blocksize = 256;
  5194. readsize = 256;
  5195. ;
  5196. memory "lfuse"
  5197. size = 1;
  5198. min_write_delay = 4500;
  5199. max_write_delay = 4500;
  5200. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  5201. "x x x x x x x x o o o o o o o o";
  5202. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  5203. "x x x x x x x x i i i i i i i i";
  5204. ;
  5205. memory "hfuse"
  5206. size = 1;
  5207. min_write_delay = 4500;
  5208. max_write_delay = 4500;
  5209. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  5210. "x x x x x x x x o o o o o o o o";
  5211. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  5212. "x x x x x x x x i i i i i i i i";
  5213. ;
  5214. memory "efuse"
  5215. size = 1;
  5216. min_write_delay = 4500;
  5217. max_write_delay = 4500;
  5218. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  5219. "x x x x x x x x o o o o o o o o";
  5220. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  5221. "x x x x x x x x x x x x x i i i";
  5222. ;
  5223. memory "lock"
  5224. size = 1;
  5225. min_write_delay = 4500;
  5226. max_write_delay = 4500;
  5227. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  5228. "x x x x x x x x x x o o o o o o";
  5229. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  5230. "x x x x x x x x 1 1 i i i i i i";
  5231. ;
  5232. memory "signature"
  5233. size = 3;
  5234. read = "0 0 1 1 0 0 0 0 0 0 0 x x x x x",
  5235. "x x x x x x a1 a0 o o o o o o o o";
  5236. ;
  5237. memory "calibration"
  5238. size = 1;
  5239. read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
  5240. "0 0 0 0 0 0 0 0 o o o o o o o o";
  5241. ;
  5242. ;
  5243. #------------------------------------------------------------
  5244. # ATmega6490
  5245. #------------------------------------------------------------
  5246. # identical to ATmega649
  5247. part parent "m649"
  5248. id = "m6490";
  5249. desc = "ATmega6490";
  5250. signature = 0x1e 0x96 0x04;
  5251. ocdrev = 3;
  5252. ;
  5253. #------------------------------------------------------------
  5254. # ATmega32
  5255. #------------------------------------------------------------
  5256. part
  5257. id = "m32";
  5258. desc = "ATmega32";
  5259. has_jtag = yes;
  5260. stk500_devcode = 0x91;
  5261. avr910_devcode = 0x72;
  5262. signature = 0x1e 0x95 0x02;
  5263. chip_erase_delay = 9000;
  5264. pagel = 0xd7;
  5265. bs2 = 0xa0;
  5266. reset = dedicated;
  5267. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  5268. "x x x x x x x x x x x x x x x x";
  5269. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 0 0 0 0 0",
  5270. "x x x x x x x x x x x x x x x x";
  5271. timeout = 200;
  5272. stabdelay = 100;
  5273. cmdexedelay = 25;
  5274. synchloops = 32;
  5275. bytedelay = 0;
  5276. pollindex = 3;
  5277. pollvalue = 0x53;
  5278. predelay = 1;
  5279. postdelay = 1;
  5280. pollmethod = 0;
  5281. pp_controlstack =
  5282. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  5283. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  5284. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  5285. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  5286. hventerstabdelay = 100;
  5287. progmodedelay = 0;
  5288. latchcycles = 6;
  5289. togglevtg = 0;
  5290. poweroffdelay = 0;
  5291. resetdelayms = 0;
  5292. resetdelayus = 0;
  5293. hvleavestabdelay = 15;
  5294. chiperasepulsewidth = 0;
  5295. chiperasepolltimeout = 10;
  5296. programfusepulsewidth = 0;
  5297. programfusepolltimeout = 5;
  5298. programlockpulsewidth = 0;
  5299. programlockpolltimeout = 5;
  5300. idr = 0x31;
  5301. spmcr = 0x57;
  5302. allowfullpagebitstream = yes;
  5303. ocdrev = 2;
  5304. memory "eeprom"
  5305. paged = no; /* leave this "no" */
  5306. page_size = 4; /* for parallel programming */
  5307. size = 1024;
  5308. min_write_delay = 9000;
  5309. max_write_delay = 9000;
  5310. readback_p1 = 0xff;
  5311. readback_p2 = 0xff;
  5312. read = " 1 0 1 0 0 0 0 0",
  5313. " 0 0 x x x x a9 a8",
  5314. " a7 a6 a5 a4 a3 a2 a1 a0",
  5315. " o o o o o o o o";
  5316. write = " 1 1 0 0 0 0 0 0",
  5317. " 0 0 x x x x a9 a8",
  5318. " a7 a6 a5 a4 a3 a2 a1 a0",
  5319. " i i i i i i i i";
  5320. loadpage_lo = " 1 1 0 0 0 0 0 1",
  5321. " 0 0 0 0 0 0 0 0",
  5322. " 0 0 0 0 0 0 a1 a0",
  5323. " i i i i i i i i";
  5324. writepage = " 1 1 0 0 0 0 1 0",
  5325. " 0 0 x x x x a9 a8",
  5326. " a7 a6 a5 a4 a3 a2 0 0",
  5327. " x x x x x x x x";
  5328. mode = 0x04;
  5329. delay = 10;
  5330. blocksize = 64;
  5331. readsize = 256;
  5332. ;
  5333. memory "flash"
  5334. paged = yes;
  5335. size = 32768;
  5336. page_size = 128;
  5337. num_pages = 256;
  5338. min_write_delay = 4500;
  5339. max_write_delay = 4500;
  5340. readback_p1 = 0xff;
  5341. readback_p2 = 0xff;
  5342. read_lo = " 0 0 1 0 0 0 0 0",
  5343. " 0 0 a13 a12 a11 a10 a9 a8",
  5344. " a7 a6 a5 a4 a3 a2 a1 a0",
  5345. " o o o o o o o o";
  5346. read_hi = " 0 0 1 0 1 0 0 0",
  5347. " 0 0 a13 a12 a11 a10 a9 a8",
  5348. " a7 a6 a5 a4 a3 a2 a1 a0",
  5349. " o o o o o o o o";
  5350. loadpage_lo = " 0 1 0 0 0 0 0 0",
  5351. " 0 0 x x x x x x",
  5352. " x x a5 a4 a3 a2 a1 a0",
  5353. " i i i i i i i i";
  5354. loadpage_hi = " 0 1 0 0 1 0 0 0",
  5355. " 0 0 x x x x x x",
  5356. " x x a5 a4 a3 a2 a1 a0",
  5357. " i i i i i i i i";
  5358. writepage = " 0 1 0 0 1 1 0 0",
  5359. " 0 0 a13 a12 a11 a10 a9 a8",
  5360. " a7 a6 x x x x x x",
  5361. " x x x x x x x x";
  5362. mode = 0x21;
  5363. delay = 6;
  5364. blocksize = 64;
  5365. readsize = 256;
  5366. ;
  5367. memory "lfuse"
  5368. size = 1;
  5369. min_write_delay = 2000;
  5370. max_write_delay = 2000;
  5371. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  5372. "x x x x x x x x o o o o o o o o";
  5373. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  5374. "x x x x x x x x i i i i i i i i";
  5375. ;
  5376. memory "hfuse"
  5377. size = 1;
  5378. min_write_delay = 2000;
  5379. max_write_delay = 2000;
  5380. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  5381. "x x x x x x x x o o o o o o o o";
  5382. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  5383. "x x x x x x x x i i i i i i i i";
  5384. ;
  5385. memory "lock"
  5386. size = 1;
  5387. min_write_delay = 2000;
  5388. max_write_delay = 2000;
  5389. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  5390. "x x x x x x x x x x o o o o o o";
  5391. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  5392. "x x x x x x x x 1 1 i i i i i i";
  5393. ;
  5394. memory "signature"
  5395. size = 3;
  5396. read = "0 0 1 1 0 0 0 0 x x x x x x x x",
  5397. "x x x x x x a1 a0 o o o o o o o o";
  5398. ;
  5399. memory "calibration"
  5400. size = 4;
  5401. read = "0 0 1 1 1 0 0 0 0 0 x x x x x x",
  5402. "0 0 0 0 0 0 a1 a0 o o o o o o o o";
  5403. ;
  5404. ;
  5405. #------------------------------------------------------------
  5406. # ATmega161
  5407. #------------------------------------------------------------
  5408. part
  5409. id = "m161";
  5410. desc = "ATmega161";
  5411. stk500_devcode = 0x80;
  5412. avr910_devcode = 0x60;
  5413. signature = 0x1e 0x94 0x01;
  5414. chip_erase_delay = 28000;
  5415. pagel = 0xd7;
  5416. bs2 = 0xa0;
  5417. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  5418. "x x x x x x x x x x x x x x x x";
  5419. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 0 0 0 0 0",
  5420. "x x x x x x x x x x x x x x x x";
  5421. timeout = 200;
  5422. stabdelay = 100;
  5423. cmdexedelay = 25;
  5424. synchloops = 32;
  5425. bytedelay = 0;
  5426. pollindex = 3;
  5427. pollvalue = 0x53;
  5428. predelay = 1;
  5429. postdelay = 1;
  5430. pollmethod = 0;
  5431. pp_controlstack =
  5432. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  5433. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  5434. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  5435. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  5436. hventerstabdelay = 100;
  5437. progmodedelay = 0;
  5438. latchcycles = 0;
  5439. togglevtg = 0;
  5440. poweroffdelay = 0;
  5441. resetdelayms = 0;
  5442. resetdelayus = 0;
  5443. hvleavestabdelay = 15;
  5444. chiperasepulsewidth = 0;
  5445. chiperasepolltimeout = 30;
  5446. programfusepulsewidth = 0;
  5447. programfusepolltimeout = 2;
  5448. programlockpulsewidth = 0;
  5449. programlockpolltimeout = 2;
  5450. memory "eeprom"
  5451. size = 512;
  5452. min_write_delay = 3400;
  5453. max_write_delay = 3400;
  5454. readback_p1 = 0xff;
  5455. readback_p2 = 0xff;
  5456. read = " 1 0 1 0 0 0 0 0",
  5457. " x x x x x x x a8",
  5458. " a7 a6 a5 a4 a3 a2 a1 a0",
  5459. " o o o o o o o o";
  5460. write = " 1 1 0 0 0 0 0 0",
  5461. " x x x x x x x a8",
  5462. " a7 a6 a5 a4 a3 a2 a1 a0",
  5463. " i i i i i i i i";
  5464. mode = 0x04;
  5465. delay = 5;
  5466. blocksize = 128;
  5467. readsize = 256;
  5468. ;
  5469. memory "flash"
  5470. paged = yes;
  5471. size = 16384;
  5472. page_size = 128;
  5473. num_pages = 128;
  5474. min_write_delay = 14000;
  5475. max_write_delay = 14000;
  5476. readback_p1 = 0xff;
  5477. readback_p2 = 0xff;
  5478. read_lo = " 0 0 1 0 0 0 0 0",
  5479. " x x x a12 a11 a10 a9 a8",
  5480. " a7 a6 a5 a4 a3 a2 a1 a0",
  5481. " o o o o o o o o";
  5482. read_hi = " 0 0 1 0 1 0 0 0",
  5483. " x x x a12 a11 a10 a9 a8",
  5484. " a7 a6 a5 a4 a3 a2 a1 a0",
  5485. " o o o o o o o o";
  5486. loadpage_lo = " 0 1 0 0 0 0 0 0",
  5487. " x x x x x x x x",
  5488. " x x a5 a4 a3 a2 a1 a0",
  5489. " i i i i i i i i";
  5490. loadpage_hi = " 0 1 0 0 1 0 0 0",
  5491. " x x x x x x x x",
  5492. " x x a5 a4 a3 a2 a1 a0",
  5493. " i i i i i i i i";
  5494. writepage = " 0 1 0 0 1 1 0 0",
  5495. " x x x a12 a11 a10 a9 a8",
  5496. " a7 a6 x x x x x x",
  5497. " x x x x x x x x";
  5498. mode = 0x21;
  5499. delay = 16;
  5500. blocksize = 128;
  5501. readsize = 256;
  5502. ;
  5503. memory "fuse"
  5504. size = 1;
  5505. min_write_delay = 2000;
  5506. max_write_delay = 2000;
  5507. read = "0 1 0 1 0 0 0 0 x x x x x x x x",
  5508. "x x x x x x x x x o x o o o o o";
  5509. write = "1 0 1 0 1 1 0 0 1 0 1 x x x x x",
  5510. "x x x x x x x x 1 i 1 i i i i i";
  5511. ;
  5512. memory "lock"
  5513. size = 1;
  5514. min_write_delay = 2000;
  5515. max_write_delay = 2000;
  5516. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  5517. "x x x x x x x x x x o o o o o o";
  5518. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  5519. "x x x x x x x x 1 1 i i i i i i";
  5520. ;
  5521. memory "signature"
  5522. size = 3;
  5523. read = "0 0 1 1 0 0 0 0 x x x x x x x x",
  5524. "x x x x x x a1 a0 o o o o o o o o";
  5525. ;
  5526. ;
  5527. #------------------------------------------------------------
  5528. # ATmega8
  5529. #------------------------------------------------------------
  5530. part
  5531. id = "m8";
  5532. desc = "ATmega8";
  5533. stk500_devcode = 0x70;
  5534. avr910_devcode = 0x76;
  5535. signature = 0x1e 0x93 0x07;
  5536. pagel = 0xd7;
  5537. bs2 = 0xc2;
  5538. chip_erase_delay = 10000;
  5539. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  5540. "x x x x x x x x x x x x x x x x";
  5541. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
  5542. "x x x x x x x x x x x x x x x x";
  5543. timeout = 200;
  5544. stabdelay = 100;
  5545. cmdexedelay = 25;
  5546. synchloops = 32;
  5547. bytedelay = 0;
  5548. pollindex = 3;
  5549. pollvalue = 0x53;
  5550. predelay = 1;
  5551. postdelay = 1;
  5552. pollmethod = 0;
  5553. pp_controlstack =
  5554. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  5555. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  5556. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  5557. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  5558. hventerstabdelay = 100;
  5559. progmodedelay = 0;
  5560. latchcycles = 5;
  5561. togglevtg = 1;
  5562. poweroffdelay = 15;
  5563. resetdelayms = 2;
  5564. resetdelayus = 0;
  5565. hvleavestabdelay = 15;
  5566. resetdelay = 15;
  5567. chiperasepulsewidth = 0;
  5568. chiperasepolltimeout = 10;
  5569. programfusepulsewidth = 0;
  5570. programfusepolltimeout = 5;
  5571. programlockpulsewidth = 0;
  5572. programlockpolltimeout = 5;
  5573. memory "eeprom"
  5574. size = 512;
  5575. page_size = 4;
  5576. min_write_delay = 9000;
  5577. max_write_delay = 9000;
  5578. readback_p1 = 0xff;
  5579. readback_p2 = 0xff;
  5580. read = " 1 0 1 0 0 0 0 0",
  5581. " 0 0 x x x x x a8",
  5582. " a7 a6 a5 a4 a3 a2 a1 a0",
  5583. " o o o o o o o o";
  5584. write = " 1 1 0 0 0 0 0 0",
  5585. " 0 0 x x x x x a8",
  5586. " a7 a6 a5 a4 a3 a2 a1 a0",
  5587. " i i i i i i i i";
  5588. mode = 0x04;
  5589. delay = 20;
  5590. blocksize = 128;
  5591. readsize = 256;
  5592. ;
  5593. memory "flash"
  5594. paged = yes;
  5595. size = 8192;
  5596. page_size = 64;
  5597. num_pages = 128;
  5598. min_write_delay = 4500;
  5599. max_write_delay = 4500;
  5600. readback_p1 = 0xff;
  5601. readback_p2 = 0x00;
  5602. read_lo = " 0 0 1 0 0 0 0 0",
  5603. " 0 0 0 0 a11 a10 a9 a8",
  5604. " a7 a6 a5 a4 a3 a2 a1 a0",
  5605. " o o o o o o o o";
  5606. read_hi = " 0 0 1 0 1 0 0 0",
  5607. " 0 0 0 0 a11 a10 a9 a8",
  5608. " a7 a6 a5 a4 a3 a2 a1 a0",
  5609. " o o o o o o o o";
  5610. loadpage_lo = " 0 1 0 0 0 0 0 0",
  5611. " 0 0 0 0 x x x x",
  5612. " x x x a4 a3 a2 a1 a0",
  5613. " i i i i i i i i";
  5614. loadpage_hi = " 0 1 0 0 1 0 0 0",
  5615. " 0 0 0 0 x x x x",
  5616. " x x x a4 a3 a2 a1 a0",
  5617. " i i i i i i i i";
  5618. writepage = " 0 1 0 0 1 1 0 0",
  5619. " 0 0 0 0 a11 a10 a9 a8",
  5620. " a7 a6 a5 x x x x x",
  5621. " x x x x x x x x";
  5622. mode = 0x21;
  5623. delay = 10;
  5624. blocksize = 64;
  5625. readsize = 256;
  5626. ;
  5627. memory "lfuse"
  5628. size = 1;
  5629. min_write_delay = 2000;
  5630. max_write_delay = 2000;
  5631. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  5632. "x x x x x x x x o o o o o o o o";
  5633. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  5634. "x x x x x x x x i i i i i i i i";
  5635. ;
  5636. memory "hfuse"
  5637. size = 1;
  5638. min_write_delay = 2000;
  5639. max_write_delay = 2000;
  5640. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  5641. "x x x x x x x x o o o o o o o o";
  5642. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  5643. "x x x x x x x x i i i i i i i i";
  5644. ;
  5645. memory "lock"
  5646. size = 1;
  5647. min_write_delay = 2000;
  5648. max_write_delay = 2000;
  5649. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  5650. "x x x x x x x x x x o o o o o o";
  5651. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  5652. "x x x x x x x x 1 1 i i i i i i";
  5653. ;
  5654. memory "calibration"
  5655. size = 4;
  5656. read = "0 0 1 1 1 0 0 0 0 0 x x x x x x",
  5657. "0 0 0 0 0 0 a1 a0 o o o o o o o o";
  5658. ;
  5659. memory "signature"
  5660. size = 3;
  5661. read = "0 0 1 1 0 0 0 0 x x x x x x x x",
  5662. "x x x x x x a1 a0 o o o o o o o o";
  5663. ;
  5664. ;
  5665. #------------------------------------------------------------
  5666. # ATmega8515
  5667. #------------------------------------------------------------
  5668. part
  5669. id = "m8515";
  5670. desc = "ATmega8515";
  5671. stk500_devcode = 0x63;
  5672. avr910_devcode = 0x3A;
  5673. signature = 0x1e 0x93 0x06;
  5674. chip_erase_delay = 9000;
  5675. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  5676. "x x x x x x x x x x x x x x x x";
  5677. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
  5678. "x x x x x x x x x x x x x x x x";
  5679. timeout = 200;
  5680. stabdelay = 100;
  5681. cmdexedelay = 25;
  5682. synchloops = 32;
  5683. bytedelay = 0;
  5684. pollindex = 3;
  5685. pollvalue = 0x53;
  5686. predelay = 1;
  5687. postdelay = 1;
  5688. pollmethod = 0;
  5689. pp_controlstack =
  5690. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  5691. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  5692. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  5693. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  5694. hventerstabdelay = 100;
  5695. progmodedelay = 0;
  5696. latchcycles = 6;
  5697. togglevtg = 0;
  5698. poweroffdelay = 0;
  5699. resetdelayms = 0;
  5700. resetdelayus = 0;
  5701. hvleavestabdelay = 15;
  5702. chiperasepulsewidth = 0;
  5703. chiperasepolltimeout = 10;
  5704. programfusepulsewidth = 0;
  5705. programfusepolltimeout = 5;
  5706. programlockpulsewidth = 0;
  5707. programlockpolltimeout = 5;
  5708. memory "eeprom"
  5709. size = 512;
  5710. min_write_delay = 9000;
  5711. max_write_delay = 9000;
  5712. readback_p1 = 0xff;
  5713. readback_p2 = 0xff;
  5714. read = " 1 0 1 0 0 0 0 0",
  5715. " 0 0 x x x x x a8",
  5716. " a7 a6 a5 a4 a3 a2 a1 a0",
  5717. " o o o o o o o o";
  5718. write = " 1 1 0 0 0 0 0 0",
  5719. " 0 0 x x x x x a8",
  5720. " a7 a6 a5 a4 a3 a2 a1 a0",
  5721. " i i i i i i i i";
  5722. mode = 0x04;
  5723. delay = 20;
  5724. blocksize = 128;
  5725. readsize = 256;
  5726. ;
  5727. memory "flash"
  5728. paged = yes;
  5729. size = 8192;
  5730. page_size = 64;
  5731. num_pages = 128;
  5732. min_write_delay = 4500;
  5733. max_write_delay = 4500;
  5734. readback_p1 = 0xff;
  5735. readback_p2 = 0xff;
  5736. read_lo = " 0 0 1 0 0 0 0 0",
  5737. " 0 0 0 0 a11 a10 a9 a8",
  5738. " a7 a6 a5 a4 a3 a2 a1 a0",
  5739. " o o o o o o o o";
  5740. read_hi = " 0 0 1 0 1 0 0 0",
  5741. " 0 0 0 0 a11 a10 a9 a8",
  5742. " a7 a6 a5 a4 a3 a2 a1 a0",
  5743. " o o o o o o o o";
  5744. loadpage_lo = " 0 1 0 0 0 0 0 0",
  5745. " 0 0 0 0 x x x x",
  5746. " x x x a4 a3 a2 a1 a0",
  5747. " i i i i i i i i";
  5748. loadpage_hi = " 0 1 0 0 1 0 0 0",
  5749. " 0 0 0 0 x x x x",
  5750. " x x x a4 a3 a2 a1 a0",
  5751. " i i i i i i i i";
  5752. writepage = " 0 1 0 0 1 1 0 0",
  5753. " 0 0 0 0 a11 a10 a9 a8",
  5754. " a7 a6 a5 x x x x x",
  5755. " x x x x x x x x";
  5756. mode = 0x21;
  5757. delay = 6;
  5758. blocksize = 64;
  5759. readsize = 256;
  5760. ;
  5761. memory "lfuse"
  5762. size = 1;
  5763. min_write_delay = 4500;
  5764. max_write_delay = 4500;
  5765. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  5766. "x x x x x x x x o o o o o o o o";
  5767. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  5768. "x x x x x x x x i i i i i i i i";
  5769. ;
  5770. memory "hfuse"
  5771. size = 1;
  5772. min_write_delay = 4500;
  5773. max_write_delay = 4500;
  5774. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  5775. "x x x x x x x x o o o o o o o o";
  5776. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  5777. "x x x x x x x x i i i i i i i i";
  5778. ;
  5779. memory "lock"
  5780. size = 1;
  5781. min_write_delay = 4500;
  5782. max_write_delay = 4500;
  5783. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  5784. "x x x x x x x x x x o o o o o o";
  5785. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  5786. "x x x x x x x x 1 1 i i i i i i";
  5787. ;
  5788. memory "calibration"
  5789. size = 4;
  5790. read = "0 0 1 1 1 0 0 0 0 0 x x x x x x",
  5791. "0 0 0 0 0 0 a1 a0 o o o o o o o o";
  5792. ;
  5793. memory "signature"
  5794. size = 3;
  5795. read = "0 0 1 1 0 0 0 0 x x x x x x x x",
  5796. "x x x x x x a1 a0 o o o o o o o o";
  5797. ;
  5798. ;
  5799. #------------------------------------------------------------
  5800. # ATmega8535
  5801. #------------------------------------------------------------
  5802. part
  5803. id = "m8535";
  5804. desc = "ATmega8535";
  5805. stk500_devcode = 0x64;
  5806. avr910_devcode = 0x69;
  5807. signature = 0x1e 0x93 0x08;
  5808. pagel = 0xd7;
  5809. bs2 = 0xa0;
  5810. chip_erase_delay = 9000;
  5811. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  5812. "x x x x x x x x x x x x x x x x";
  5813. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
  5814. "x x x x x x x x x x x x x x x x";
  5815. timeout = 200;
  5816. stabdelay = 100;
  5817. cmdexedelay = 25;
  5818. synchloops = 32;
  5819. bytedelay = 0;
  5820. pollindex = 3;
  5821. pollvalue = 0x53;
  5822. predelay = 1;
  5823. postdelay = 1;
  5824. pollmethod = 0;
  5825. pp_controlstack =
  5826. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  5827. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  5828. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  5829. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  5830. hventerstabdelay = 100;
  5831. progmodedelay = 0;
  5832. latchcycles = 6;
  5833. togglevtg = 0;
  5834. poweroffdelay = 0;
  5835. resetdelayms = 0;
  5836. resetdelayus = 0;
  5837. hvleavestabdelay = 15;
  5838. chiperasepulsewidth = 0;
  5839. chiperasepolltimeout = 10;
  5840. programfusepulsewidth = 0;
  5841. programfusepolltimeout = 5;
  5842. programlockpulsewidth = 0;
  5843. programlockpolltimeout = 5;
  5844. memory "eeprom"
  5845. size = 512;
  5846. min_write_delay = 9000;
  5847. max_write_delay = 9000;
  5848. readback_p1 = 0xff;
  5849. readback_p2 = 0xff;
  5850. read = " 1 0 1 0 0 0 0 0",
  5851. " 0 0 x x x x x a8",
  5852. " a7 a6 a5 a4 a3 a2 a1 a0",
  5853. " o o o o o o o o";
  5854. write = " 1 1 0 0 0 0 0 0",
  5855. " 0 0 x x x x x a8",
  5856. " a7 a6 a5 a4 a3 a2 a1 a0",
  5857. " i i i i i i i i";
  5858. mode = 0x04;
  5859. delay = 20;
  5860. blocksize = 128;
  5861. readsize = 256;
  5862. ;
  5863. memory "flash"
  5864. paged = yes;
  5865. size = 8192;
  5866. page_size = 64;
  5867. num_pages = 128;
  5868. min_write_delay = 4500;
  5869. max_write_delay = 4500;
  5870. readback_p1 = 0xff;
  5871. readback_p2 = 0xff;
  5872. read_lo = " 0 0 1 0 0 0 0 0",
  5873. " 0 0 0 0 a11 a10 a9 a8",
  5874. " a7 a6 a5 a4 a3 a2 a1 a0",
  5875. " o o o o o o o o";
  5876. read_hi = " 0 0 1 0 1 0 0 0",
  5877. " 0 0 0 0 a11 a10 a9 a8",
  5878. " a7 a6 a5 a4 a3 a2 a1 a0",
  5879. " o o o o o o o o";
  5880. loadpage_lo = " 0 1 0 0 0 0 0 0",
  5881. " 0 0 0 0 x x x x",
  5882. " x x x a4 a3 a2 a1 a0",
  5883. " i i i i i i i i";
  5884. loadpage_hi = " 0 1 0 0 1 0 0 0",
  5885. " 0 0 0 0 x x x x",
  5886. " x x x a4 a3 a2 a1 a0",
  5887. " i i i i i i i i";
  5888. writepage = " 0 1 0 0 1 1 0 0",
  5889. " 0 0 0 0 a11 a10 a9 a8",
  5890. " a7 a6 a5 x x x x x",
  5891. " x x x x x x x x";
  5892. mode = 0x21;
  5893. delay = 6;
  5894. blocksize = 64;
  5895. readsize = 256;
  5896. ;
  5897. memory "lfuse"
  5898. size = 1;
  5899. min_write_delay = 2000;
  5900. max_write_delay = 2000;
  5901. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  5902. "x x x x x x x x o o o o o o o o";
  5903. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  5904. "x x x x x x x x i i i i i i i i";
  5905. ;
  5906. memory "hfuse"
  5907. size = 1;
  5908. min_write_delay = 2000;
  5909. max_write_delay = 2000;
  5910. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  5911. "x x x x x x x x o o o o o o o o";
  5912. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  5913. "x x x x x x x x i i i i i i i i";
  5914. ;
  5915. memory "lock"
  5916. size = 1;
  5917. min_write_delay = 2000;
  5918. max_write_delay = 2000;
  5919. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  5920. "x x x x x x x x x x o o o o o o";
  5921. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  5922. "x x x x x x x x 1 1 i i i i i i";
  5923. ;
  5924. memory "calibration"
  5925. size = 4;
  5926. read = "0 0 1 1 1 0 0 0 0 0 x x x x x x",
  5927. "0 0 0 0 0 0 a1 a0 o o o o o o o o";
  5928. ;
  5929. memory "signature"
  5930. size = 3;
  5931. read = "0 0 1 1 0 0 0 0 x x x x x x x x",
  5932. "x x x x x x a1 a0 o o o o o o o o";
  5933. ;
  5934. ;
  5935. #------------------------------------------------------------
  5936. # ATtiny26
  5937. #------------------------------------------------------------
  5938. part
  5939. id = "t26";
  5940. desc = "ATtiny26";
  5941. stk500_devcode = 0x21;
  5942. avr910_devcode = 0x5e;
  5943. signature = 0x1e 0x91 0x09;
  5944. pagel = 0xb3;
  5945. bs2 = 0xb2;
  5946. chip_erase_delay = 9000;
  5947. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  5948. "x x x x x x x x x x x x x x x x";
  5949. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
  5950. "x x x x x x x x x x x x x x x x";
  5951. timeout = 200;
  5952. stabdelay = 100;
  5953. cmdexedelay = 25;
  5954. synchloops = 32;
  5955. bytedelay = 0;
  5956. pollindex = 3;
  5957. pollvalue = 0x53;
  5958. predelay = 1;
  5959. postdelay = 1;
  5960. pollmethod = 0;
  5961. pp_controlstack =
  5962. 0xC4, 0xE4, 0xC4, 0xE4, 0xCC, 0xEC, 0xCC, 0xEC,
  5963. 0xD4, 0xF4, 0xD4, 0xF4, 0xDC, 0xFC, 0xDC, 0xFC,
  5964. 0xC8, 0xE8, 0xD8, 0xF8, 0x4C, 0x6C, 0x5C, 0x7C,
  5965. 0xEC, 0xBC, 0x00, 0x06, 0x00, 0x00, 0x00, 0x00;
  5966. hventerstabdelay = 100;
  5967. progmodedelay = 0;
  5968. latchcycles = 5;
  5969. togglevtg = 1;
  5970. poweroffdelay = 15;
  5971. resetdelayms = 2;
  5972. resetdelayus = 0;
  5973. hvleavestabdelay = 15;
  5974. chiperasepulsewidth = 0;
  5975. chiperasepolltimeout = 10;
  5976. programfusepulsewidth = 0;
  5977. programfusepolltimeout = 5;
  5978. programlockpulsewidth = 0;
  5979. programlockpolltimeout = 5;
  5980. memory "eeprom"
  5981. size = 128;
  5982. min_write_delay = 9000;
  5983. max_write_delay = 9000;
  5984. readback_p1 = 0xff;
  5985. readback_p2 = 0xff;
  5986. read = "1 0 1 0 0 0 0 0 x x x x x x x x",
  5987. "x a6 a5 a4 a3 a2 a1 a0 o o o o o o o o";
  5988. write = "1 1 0 0 0 0 0 0 x x x x x x x x",
  5989. "x a6 a5 a4 a3 a2 a1 a0 i i i i i i i i";
  5990. mode = 0x04;
  5991. delay = 10;
  5992. blocksize = 64;
  5993. readsize = 256;
  5994. ;
  5995. memory "flash"
  5996. paged = yes;
  5997. size = 2048;
  5998. page_size = 32;
  5999. num_pages = 64;
  6000. min_write_delay = 4500;
  6001. max_write_delay = 4500;
  6002. readback_p1 = 0xff;
  6003. readback_p2 = 0xff;
  6004. read_lo = " 0 0 1 0 0 0 0 0",
  6005. " x x x x x x a9 a8",
  6006. " a7 a6 a5 a4 a3 a2 a1 a0",
  6007. " o o o o o o o o";
  6008. read_hi = " 0 0 1 0 1 0 0 0",
  6009. " x x x x x x a9 a8",
  6010. " a7 a6 a5 a4 a3 a2 a1 a0",
  6011. " o o o o o o o o";
  6012. loadpage_lo = " 0 1 0 0 0 0 0 0",
  6013. " x x x x x x x x",
  6014. " x x x x a3 a2 a1 a0",
  6015. " i i i i i i i i";
  6016. loadpage_hi = " 0 1 0 0 1 0 0 0",
  6017. " x x x x x x x x",
  6018. " x x x x a3 a2 a1 a0",
  6019. " i i i i i i i i";
  6020. writepage = " 0 1 0 0 1 1 0 0",
  6021. " x x x x x x a9 a8",
  6022. " a7 a6 a5 a4 x x x x",
  6023. " x x x x x x x x";
  6024. mode = 0x21;
  6025. delay = 6;
  6026. blocksize = 16;
  6027. readsize = 256;
  6028. ;
  6029. memory "signature"
  6030. size = 3;
  6031. read = "0 0 1 1 0 0 0 0 x x x x x x x x",
  6032. "0 0 0 0 0 0 a1 a0 o o o o o o o o";
  6033. ;
  6034. memory "lock"
  6035. size = 1;
  6036. read = "0 1 0 1 1 0 0 0 x x x x x x x x",
  6037. "x x x x x x x x x x x x x x o o";
  6038. write = "1 0 1 0 1 1 0 0 1 1 1 1 1 1 i i",
  6039. "x x x x x x x x x x x x x x x x";
  6040. min_write_delay = 9000;
  6041. max_write_delay = 9000;
  6042. ;
  6043. memory "lfuse"
  6044. size = 1;
  6045. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  6046. "x x x x x x x x i i i i i i i i";
  6047. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  6048. "x x x x x x x x o o o o o o o o";
  6049. min_write_delay = 9000;
  6050. max_write_delay = 9000;
  6051. ;
  6052. memory "hfuse"
  6053. size = 1;
  6054. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  6055. "x x x x x x x x x x x i i i i i";
  6056. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  6057. "x x x x x x x x o o o o o o o o";
  6058. min_write_delay = 9000;
  6059. max_write_delay = 9000;
  6060. ;
  6061. memory "calibration"
  6062. size = 4;
  6063. read = "0 0 1 1 1 0 0 0 x x x x x x x x",
  6064. "0 0 0 0 0 0 a1 a0 o o o o o o o o";
  6065. ;
  6066. ;
  6067. #------------------------------------------------------------
  6068. # ATtiny261
  6069. #------------------------------------------------------------
  6070. # Close to ATtiny26
  6071. part
  6072. id = "t261";
  6073. desc = "ATtiny261";
  6074. has_debugwire = yes;
  6075. flash_instr = 0xB4, 0x00, 0x10;
  6076. eeprom_instr = 0xBB, 0xFF, 0xBB, 0xEE, 0xBB, 0xCC, 0xB2, 0x0D,
  6077. 0xBC, 0x00, 0xB4, 0x00, 0xBA, 0x0D, 0xBB, 0xBC,
  6078. 0x99, 0xE1, 0xBB, 0xAC;
  6079. # stk500_devcode = 0x21;
  6080. # avr910_devcode = 0x5e;
  6081. signature = 0x1e 0x91 0x0c;
  6082. pagel = 0xb3;
  6083. bs2 = 0xb2;
  6084. chip_erase_delay = 4000;
  6085. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  6086. "x x x x x x x x x x x x x x x x";
  6087. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
  6088. "x x x x x x x x x x x x x x x x";
  6089. timeout = 200;
  6090. stabdelay = 100;
  6091. cmdexedelay = 25;
  6092. synchloops = 32;
  6093. bytedelay = 0;
  6094. pollindex = 3;
  6095. pollvalue = 0x53;
  6096. predelay = 1;
  6097. postdelay = 1;
  6098. pollmethod = 0;
  6099. pp_controlstack =
  6100. 0xC4, 0xE4, 0xC4, 0xE4, 0xCC, 0xEC, 0xCC, 0xEC,
  6101. 0xD4, 0xF4, 0xD4, 0xF4, 0xDC, 0xFC, 0xDC, 0xFC,
  6102. 0xC8, 0xE8, 0xD8, 0xF8, 0x4C, 0x6C, 0x5C, 0x7C,
  6103. 0xEC, 0xBC, 0x00, 0x06, 0x00, 0x00, 0x00, 0x00;
  6104. hventerstabdelay = 100;
  6105. progmodedelay = 0;
  6106. latchcycles = 5;
  6107. togglevtg = 1;
  6108. poweroffdelay = 15;
  6109. resetdelayms = 2;
  6110. resetdelayus = 0;
  6111. hvleavestabdelay = 15;
  6112. chiperasepulsewidth = 0;
  6113. chiperasepolltimeout = 10;
  6114. programfusepulsewidth = 0;
  6115. programfusepolltimeout = 5;
  6116. programlockpulsewidth = 0;
  6117. programlockpolltimeout = 5;
  6118. ocdrev = 1;
  6119. memory "eeprom"
  6120. paged = no;
  6121. size = 128;
  6122. page_size = 4;
  6123. num_pages = 32;
  6124. min_write_delay = 4000;
  6125. max_write_delay = 4000;
  6126. readback_p1 = 0xff;
  6127. readback_p2 = 0xff;
  6128. read = "1 0 1 0 0 0 0 0 x x x x x x x x",
  6129. "x a6 a5 a4 a3 a2 a1 a0 o o o o o o o o";
  6130. write = "1 1 0 0 0 0 0 0 x x x x x x x x",
  6131. "x a6 a5 a4 a3 a2 a1 a0 i i i i i i i i";
  6132. loadpage_lo = " 1 1 0 0 0 0 0 1",
  6133. " 0 0 0 0 0 0 0 0",
  6134. " 0 0 0 0 0 0 a1 a0",
  6135. " i i i i i i i i";
  6136. writepage = " 1 1 0 0 0 0 1 0",
  6137. " 0 0 x x x x x x",
  6138. " x a6 a5 a4 a3 a2 0 0",
  6139. " x x x x x x x x";
  6140. mode = 0x41;
  6141. delay = 10;
  6142. blocksize = 4;
  6143. readsize = 256;
  6144. ;
  6145. memory "flash"
  6146. paged = yes;
  6147. size = 2048;
  6148. page_size = 32;
  6149. num_pages = 64;
  6150. min_write_delay = 4500;
  6151. max_write_delay = 4500;
  6152. readback_p1 = 0xff;
  6153. readback_p2 = 0xff;
  6154. read_lo = " 0 0 1 0 0 0 0 0",
  6155. " x x x x x x a9 a8",
  6156. " a7 a6 a5 a4 a3 a2 a1 a0",
  6157. " o o o o o o o o";
  6158. read_hi = " 0 0 1 0 1 0 0 0",
  6159. " x x x x x x a9 a8",
  6160. " a7 a6 a5 a4 a3 a2 a1 a0",
  6161. " o o o o o o o o";
  6162. loadpage_lo = " 0 1 0 0 0 0 0 0",
  6163. " x x x x x x x x",
  6164. " x x x x a3 a2 a1 a0",
  6165. " i i i i i i i i";
  6166. loadpage_hi = " 0 1 0 0 1 0 0 0",
  6167. " x x x x x x x x",
  6168. " x x x x a3 a2 a1 a0",
  6169. " i i i i i i i i";
  6170. writepage = " 0 1 0 0 1 1 0 0",
  6171. " x x x x x x a9 a8",
  6172. " a7 a6 a5 a4 x x x x",
  6173. " x x x x x x x x";
  6174. mode = 0x41;
  6175. delay = 6;
  6176. blocksize = 32;
  6177. readsize = 256;
  6178. ;
  6179. memory "signature"
  6180. size = 3;
  6181. read = "0 0 1 1 0 0 0 0 x x x x x x x x",
  6182. "0 0 0 0 0 0 a1 a0 o o o o o o o o";
  6183. ;
  6184. memory "lock"
  6185. size = 1;
  6186. read = "0 1 0 1 1 0 0 0 x x x x x x x x",
  6187. "x x x x x x x x x x x x x x o o";
  6188. write = "1 0 1 0 1 1 0 0 1 1 1 1 1 1 i i",
  6189. "x x x x x x x x x x x x x x x x";
  6190. min_write_delay = 4500;
  6191. max_write_delay = 4500;
  6192. ;
  6193. memory "lfuse"
  6194. size = 1;
  6195. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  6196. "x x x x x x x x i i i i i i i i";
  6197. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  6198. "x x x x x x x x o o o o o o o o";
  6199. min_write_delay = 4500;
  6200. max_write_delay = 4500;
  6201. ;
  6202. memory "hfuse"
  6203. size = 1;
  6204. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  6205. "x x x x x x x x i i i i i i i i";
  6206. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  6207. "x x x x x x x x o o o o o o o o";
  6208. min_write_delay = 4500;
  6209. max_write_delay = 4500;
  6210. ;
  6211. memory "efuse"
  6212. size = 1;
  6213. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  6214. "x x x x x x x x x x x x x x x i";
  6215. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  6216. "x x x x x x x x o o o o o o o o";
  6217. min_write_delay = 4500;
  6218. max_write_delay = 4500;
  6219. ;
  6220. memory "calibration"
  6221. size = 1;
  6222. read = "0 0 1 1 1 0 0 0 x x x x x x x x",
  6223. "0 0 0 0 0 0 0 0 o o o o o o o o";
  6224. ;
  6225. ;
  6226. #------------------------------------------------------------
  6227. # ATtiny461
  6228. #------------------------------------------------------------
  6229. # Close to ATtiny261
  6230. part
  6231. id = "t461";
  6232. desc = "ATtiny461";
  6233. has_debugwire = yes;
  6234. flash_instr = 0xB4, 0x00, 0x10;
  6235. eeprom_instr = 0xBB, 0xFF, 0xBB, 0xEE, 0xBB, 0xCC, 0xB2, 0x0D,
  6236. 0xBC, 0x00, 0xB4, 0x00, 0xBA, 0x0D, 0xBB, 0xBC,
  6237. 0x99, 0xE1, 0xBB, 0xAC;
  6238. # stk500_devcode = 0x21;
  6239. # avr910_devcode = 0x5e;
  6240. signature = 0x1e 0x92 0x08;
  6241. pagel = 0xb3;
  6242. bs2 = 0xb2;
  6243. chip_erase_delay = 4000;
  6244. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  6245. "x x x x x x x x x x x x x x x x";
  6246. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
  6247. "x x x x x x x x x x x x x x x x";
  6248. timeout = 200;
  6249. stabdelay = 100;
  6250. cmdexedelay = 25;
  6251. synchloops = 32;
  6252. bytedelay = 0;
  6253. pollindex = 3;
  6254. pollvalue = 0x53;
  6255. predelay = 1;
  6256. postdelay = 1;
  6257. pollmethod = 0;
  6258. pp_controlstack =
  6259. 0xC4, 0xE4, 0xC4, 0xE4, 0xCC, 0xEC, 0xCC, 0xEC,
  6260. 0xD4, 0xF4, 0xD4, 0xF4, 0xDC, 0xFC, 0xDC, 0xFC,
  6261. 0xC8, 0xE8, 0xD8, 0xF8, 0x4C, 0x6C, 0x5C, 0x7C,
  6262. 0xEC, 0xBC, 0x00, 0x06, 0x00, 0x00, 0x00, 0x00;
  6263. hventerstabdelay = 100;
  6264. progmodedelay = 0;
  6265. latchcycles = 5;
  6266. togglevtg = 1;
  6267. poweroffdelay = 15;
  6268. resetdelayms = 2;
  6269. resetdelayus = 0;
  6270. hvleavestabdelay = 15;
  6271. chiperasepulsewidth = 0;
  6272. chiperasepolltimeout = 10;
  6273. programfusepulsewidth = 0;
  6274. programfusepolltimeout = 5;
  6275. programlockpulsewidth = 0;
  6276. programlockpolltimeout = 5;
  6277. ocdrev = 1;
  6278. memory "eeprom"
  6279. paged = no;
  6280. size = 256;
  6281. page_size = 4;
  6282. num_pages = 64;
  6283. min_write_delay = 4000;
  6284. max_write_delay = 4000;
  6285. readback_p1 = 0xff;
  6286. readback_p2 = 0xff;
  6287. read = " 1 0 1 0 0 0 0 0 x x x x x x x x",
  6288. "a7 a6 a5 a4 a3 a2 a1 a0 o o o o o o o o";
  6289. write = " 1 1 0 0 0 0 0 0 x x x x x x x x",
  6290. "a7 a6 a5 a4 a3 a2 a1 a0 i i i i i i i i";
  6291. loadpage_lo = " 1 1 0 0 0 0 0 1",
  6292. " 0 0 0 0 0 0 0 0",
  6293. " 0 0 0 0 0 0 a1 a0",
  6294. " i i i i i i i i";
  6295. writepage = " 1 1 0 0 0 0 1 0",
  6296. " 0 0 x x x x x x",
  6297. " a7 a6 a5 a4 a3 a2 0 0",
  6298. " x x x x x x x x";
  6299. mode = 0x41;
  6300. delay = 10;
  6301. blocksize = 4;
  6302. readsize = 256;
  6303. ;
  6304. memory "flash"
  6305. paged = yes;
  6306. size = 4096;
  6307. page_size = 64;
  6308. num_pages = 64;
  6309. min_write_delay = 4500;
  6310. max_write_delay = 4500;
  6311. readback_p1 = 0xff;
  6312. readback_p2 = 0xff;
  6313. read_lo = " 0 0 1 0 0 0 0 0",
  6314. " x x x x x a10 a9 a8",
  6315. " a7 a6 a5 a4 a3 a2 a1 a0",
  6316. " o o o o o o o o";
  6317. read_hi = " 0 0 1 0 1 0 0 0",
  6318. " x x x x x a10 a9 a8",
  6319. " a7 a6 a5 a4 a3 a2 a1 a0",
  6320. " o o o o o o o o";
  6321. loadpage_lo = " 0 1 0 0 0 0 0 0",
  6322. " x x x x x x x x",
  6323. " x x x a4 a3 a2 a1 a0",
  6324. " i i i i i i i i";
  6325. loadpage_hi = " 0 1 0 0 1 0 0 0",
  6326. " x x x x x x x x",
  6327. " x x x a4 a3 a2 a1 a0",
  6328. " i i i i i i i i";
  6329. writepage = " 0 1 0 0 1 1 0 0",
  6330. " x x x x x a10 a9 a8",
  6331. " a7 a6 a5 x x x x x",
  6332. " x x x x x x x x";
  6333. mode = 0x41;
  6334. delay = 6;
  6335. blocksize = 64;
  6336. readsize = 256;
  6337. ;
  6338. memory "signature"
  6339. size = 3;
  6340. read = "0 0 1 1 0 0 0 0 x x x x x x x x",
  6341. "0 0 0 0 0 0 a1 a0 o o o o o o o o";
  6342. ;
  6343. memory "lock"
  6344. size = 1;
  6345. read = "0 1 0 1 1 0 0 0 x x x x x x x x",
  6346. "x x x x x x x x x x x x x x o o";
  6347. write = "1 0 1 0 1 1 0 0 1 1 1 1 1 1 i i",
  6348. "x x x x x x x x x x x x x x x x";
  6349. min_write_delay = 4500;
  6350. max_write_delay = 4500;
  6351. ;
  6352. memory "lfuse"
  6353. size = 1;
  6354. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  6355. "x x x x x x x x i i i i i i i i";
  6356. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  6357. "x x x x x x x x o o o o o o o o";
  6358. min_write_delay = 4500;
  6359. max_write_delay = 4500;
  6360. ;
  6361. memory "hfuse"
  6362. size = 1;
  6363. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  6364. "x x x x x x x x i i i i i i i i";
  6365. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  6366. "x x x x x x x x o o o o o o o o";
  6367. min_write_delay = 4500;
  6368. max_write_delay = 4500;
  6369. ;
  6370. memory "efuse"
  6371. size = 1;
  6372. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  6373. "x x x x x x x x x x x x x x x i";
  6374. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  6375. "x x x x x x x x o o o o o o o o";
  6376. min_write_delay = 4500;
  6377. max_write_delay = 4500;
  6378. ;
  6379. memory "calibration"
  6380. size = 1;
  6381. read = "0 0 1 1 1 0 0 0 x x x x x x x x",
  6382. "0 0 0 0 0 0 0 0 o o o o o o o o";
  6383. ;
  6384. ;
  6385. #------------------------------------------------------------
  6386. # ATtiny861
  6387. #------------------------------------------------------------
  6388. # Close to ATtiny461
  6389. part
  6390. id = "t861";
  6391. desc = "ATtiny861";
  6392. has_debugwire = yes;
  6393. flash_instr = 0xB4, 0x00, 0x10;
  6394. eeprom_instr = 0xBB, 0xFF, 0xBB, 0xEE, 0xBB, 0xCC, 0xB2, 0x0D,
  6395. 0xBC, 0x00, 0xB4, 0x00, 0xBA, 0x0D, 0xBB, 0xBC,
  6396. 0x99, 0xE1, 0xBB, 0xAC;
  6397. # stk500_devcode = 0x21;
  6398. # avr910_devcode = 0x5e;
  6399. signature = 0x1e 0x93 0x0d;
  6400. pagel = 0xb3;
  6401. bs2 = 0xb2;
  6402. chip_erase_delay = 4000;
  6403. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  6404. "x x x x x x x x x x x x x x x x";
  6405. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
  6406. "x x x x x x x x x x x x x x x x";
  6407. timeout = 200;
  6408. stabdelay = 100;
  6409. cmdexedelay = 25;
  6410. synchloops = 32;
  6411. bytedelay = 0;
  6412. pollindex = 3;
  6413. pollvalue = 0x53;
  6414. predelay = 1;
  6415. postdelay = 1;
  6416. pollmethod = 0;
  6417. pp_controlstack =
  6418. 0xC4, 0xE4, 0xC4, 0xE4, 0xCC, 0xEC, 0xCC, 0xEC,
  6419. 0xD4, 0xF4, 0xD4, 0xF4, 0xDC, 0xFC, 0xDC, 0xFC,
  6420. 0xC8, 0xE8, 0xD8, 0xF8, 0x4C, 0x6C, 0x5C, 0x7C,
  6421. 0xEC, 0xBC, 0x00, 0x06, 0x00, 0x00, 0x00, 0x00;
  6422. hventerstabdelay = 100;
  6423. progmodedelay = 0;
  6424. latchcycles = 5;
  6425. togglevtg = 1;
  6426. poweroffdelay = 15;
  6427. resetdelayms = 2;
  6428. resetdelayus = 0;
  6429. hvleavestabdelay = 15;
  6430. chiperasepulsewidth = 0;
  6431. chiperasepolltimeout = 10;
  6432. programfusepulsewidth = 0;
  6433. programfusepolltimeout = 5;
  6434. programlockpulsewidth = 0;
  6435. programlockpolltimeout = 5;
  6436. ocdrev = 1;
  6437. memory "eeprom"
  6438. paged = no;
  6439. size = 512;
  6440. num_pages = 128;
  6441. page_size = 4;
  6442. min_write_delay = 4000;
  6443. max_write_delay = 4000;
  6444. readback_p1 = 0xff;
  6445. readback_p2 = 0xff;
  6446. read = " 1 0 1 0 0 0 0 0 x x x x x x x a8",
  6447. "a7 a6 a5 a4 a3 a2 a1 a0 o o o o o o o o";
  6448. write = " 1 1 0 0 0 0 0 0 x x x x x x x a8",
  6449. "a7 a6 a5 a4 a3 a2 a1 a0 i i i i i i i i";
  6450. loadpage_lo = " 1 1 0 0 0 0 0 1",
  6451. " 0 0 0 0 0 0 0 0",
  6452. " 0 0 0 0 0 0 a1 a0",
  6453. " i i i i i i i i";
  6454. writepage = " 1 1 0 0 0 0 1 0",
  6455. " 0 0 x x x x x a8",
  6456. " a7 a6 a5 a4 a3 a2 0 0",
  6457. " x x x x x x x x";
  6458. mode = 0x41;
  6459. delay = 10;
  6460. blocksize = 4;
  6461. readsize = 256;
  6462. ;
  6463. memory "flash"
  6464. paged = yes;
  6465. size = 8192;
  6466. page_size = 64;
  6467. num_pages = 128;
  6468. min_write_delay = 4500;
  6469. max_write_delay = 4500;
  6470. readback_p1 = 0xff;
  6471. readback_p2 = 0xff;
  6472. read_lo = " 0 0 1 0 0 0 0 0",
  6473. " x x x x a11 a10 a9 a8",
  6474. " a7 a6 a5 a4 a3 a2 a1 a0",
  6475. " o o o o o o o o";
  6476. read_hi = " 0 0 1 0 1 0 0 0",
  6477. " x x x x a11 a10 a9 a8",
  6478. " a7 a6 a5 a4 a3 a2 a1 a0",
  6479. " o o o o o o o o";
  6480. loadpage_lo = " 0 1 0 0 0 0 0 0",
  6481. " x x x x x x x x",
  6482. " x x x a4 a3 a2 a1 a0",
  6483. " i i i i i i i i";
  6484. loadpage_hi = " 0 1 0 0 1 0 0 0",
  6485. " x x x x x x x x",
  6486. " x x x a4 a3 a2 a1 a0",
  6487. " i i i i i i i i";
  6488. writepage = " 0 1 0 0 1 1 0 0",
  6489. " x x x x a11 a10 a9 a8",
  6490. " a7 a6 a5 x x x x x",
  6491. " x x x x x x x x";
  6492. mode = 0x41;
  6493. delay = 6;
  6494. blocksize = 64;
  6495. readsize = 256;
  6496. ;
  6497. memory "signature"
  6498. size = 3;
  6499. read = "0 0 1 1 0 0 0 0 x x x x x x x x",
  6500. "0 0 0 0 0 0 a1 a0 o o o o o o o o";
  6501. ;
  6502. memory "lock"
  6503. size = 1;
  6504. read = "0 1 0 1 1 0 0 0 x x x x x x x x",
  6505. "x x x x x x x x x x x x x x o o";
  6506. write = "1 0 1 0 1 1 0 0 1 1 1 1 1 1 i i",
  6507. "x x x x x x x x x x x x x x x x";
  6508. min_write_delay = 4500;
  6509. max_write_delay = 4500;
  6510. ;
  6511. memory "lfuse"
  6512. size = 1;
  6513. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  6514. "x x x x x x x x i i i i i i i i";
  6515. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  6516. "x x x x x x x x o o o o o o o o";
  6517. min_write_delay = 4500;
  6518. max_write_delay = 4500;
  6519. ;
  6520. memory "hfuse"
  6521. size = 1;
  6522. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  6523. "x x x x x x x x i i i i i i i i";
  6524. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  6525. "x x x x x x x x o o o o o o o o";
  6526. min_write_delay = 4500;
  6527. max_write_delay = 4500;
  6528. ;
  6529. memory "efuse"
  6530. size = 1;
  6531. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  6532. "x x x x x x x x x x x x x x x i";
  6533. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  6534. "x x x x x x x x o o o o o o o o";
  6535. min_write_delay = 4500;
  6536. max_write_delay = 4500;
  6537. ;
  6538. memory "calibration"
  6539. size = 1;
  6540. read = "0 0 1 1 1 0 0 0 x x x x x x x x",
  6541. "0 0 0 0 0 0 0 0 o o o o o o o o";
  6542. ;
  6543. ;
  6544. #------------------------------------------------------------
  6545. # ATtiny28
  6546. #------------------------------------------------------------
  6547. # This is an HVPP-only device.
  6548. part
  6549. id = "t28";
  6550. desc = "ATtiny28";
  6551. stk500_devcode = 0x22;
  6552. avr910_devcode = 0x5c;
  6553. signature = 0x1e 0x91 0x07;
  6554. pp_controlstack =
  6555. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  6556. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  6557. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  6558. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  6559. hventerstabdelay = 100;
  6560. progmodedelay = 0;
  6561. latchcycles = 0;
  6562. togglevtg = 0;
  6563. poweroffdelay = 0;
  6564. resetdelayms = 0;
  6565. resetdelayus = 0;
  6566. hvleavestabdelay = 15;
  6567. resetdelay = 15;
  6568. chiperasepulsewidth = 0;
  6569. chiperasepolltimeout = 10;
  6570. programfusepulsewidth = 0;
  6571. programfusepolltimeout = 5;
  6572. programlockpulsewidth = 0;
  6573. programlockpolltimeout = 5;
  6574. memory "flash"
  6575. size = 2048;
  6576. page_size = 2;
  6577. readsize = 256;
  6578. delay = 5;
  6579. ;
  6580. memory "signature"
  6581. size = 3;
  6582. ;
  6583. memory "lock"
  6584. size = 1;
  6585. ;
  6586. memory "calibration"
  6587. size = 1;
  6588. ;
  6589. memory "fuse"
  6590. size = 1;
  6591. ;
  6592. ;
  6593. #------------------------------------------------------------
  6594. # ATmega48
  6595. #------------------------------------------------------------
  6596. part
  6597. id = "m48";
  6598. desc = "ATmega48";
  6599. has_debugwire = yes;
  6600. flash_instr = 0xB6, 0x01, 0x11;
  6601. eeprom_instr = 0xBD, 0xF2, 0xBD, 0xE1, 0xBB, 0xCF, 0xB4, 0x00,
  6602. 0xBE, 0x01, 0xB6, 0x01, 0xBC, 0x00, 0xBB, 0xBF,
  6603. 0x99, 0xF9, 0xBB, 0xAF;
  6604. stk500_devcode = 0x59;
  6605. # avr910_devcode = 0x;
  6606. signature = 0x1e 0x92 0x05;
  6607. pagel = 0xd7;
  6608. bs2 = 0xc2;
  6609. chip_erase_delay = 45000;
  6610. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  6611. "x x x x x x x x x x x x x x x x";
  6612. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
  6613. "x x x x x x x x x x x x x x x x";
  6614. timeout = 200;
  6615. stabdelay = 100;
  6616. cmdexedelay = 25;
  6617. synchloops = 32;
  6618. bytedelay = 0;
  6619. pollindex = 3;
  6620. pollvalue = 0x53;
  6621. predelay = 1;
  6622. postdelay = 1;
  6623. pollmethod = 1;
  6624. pp_controlstack =
  6625. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  6626. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  6627. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  6628. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  6629. hventerstabdelay = 100;
  6630. progmodedelay = 0;
  6631. latchcycles = 5;
  6632. togglevtg = 1;
  6633. poweroffdelay = 15;
  6634. resetdelayms = 1;
  6635. resetdelayus = 0;
  6636. hvleavestabdelay = 15;
  6637. resetdelay = 15;
  6638. chiperasepulsewidth = 0;
  6639. chiperasepolltimeout = 10;
  6640. programfusepulsewidth = 0;
  6641. programfusepolltimeout = 5;
  6642. programlockpulsewidth = 0;
  6643. programlockpolltimeout = 5;
  6644. ocdrev = 1;
  6645. memory "eeprom"
  6646. paged = no;
  6647. page_size = 4;
  6648. size = 256;
  6649. min_write_delay = 3600;
  6650. max_write_delay = 3600;
  6651. readback_p1 = 0xff;
  6652. readback_p2 = 0xff;
  6653. read = " 1 0 1 0 0 0 0 0",
  6654. " 0 0 0 x x x x x",
  6655. " a7 a6 a5 a4 a3 a2 a1 a0",
  6656. " o o o o o o o o";
  6657. write = " 1 1 0 0 0 0 0 0",
  6658. " 0 0 0 x x x x x",
  6659. " a7 a6 a5 a4 a3 a2 a1 a0",
  6660. " i i i i i i i i";
  6661. loadpage_lo = " 1 1 0 0 0 0 0 1",
  6662. " 0 0 0 0 0 0 0 0",
  6663. " 0 0 0 0 0 0 a1 a0",
  6664. " i i i i i i i i";
  6665. writepage = " 1 1 0 0 0 0 1 0",
  6666. " 0 0 x x x x x x",
  6667. " a7 a6 a5 a4 a3 a2 0 0",
  6668. " x x x x x x x x";
  6669. mode = 0x41;
  6670. delay = 20;
  6671. blocksize = 4;
  6672. readsize = 256;
  6673. ;
  6674. memory "flash"
  6675. paged = yes;
  6676. size = 4096;
  6677. page_size = 64;
  6678. num_pages = 64;
  6679. min_write_delay = 4500;
  6680. max_write_delay = 4500;
  6681. readback_p1 = 0x00;
  6682. readback_p2 = 0x00;
  6683. read_lo = " 0 0 1 0 0 0 0 0",
  6684. " 0 0 0 0 0 a10 a9 a8",
  6685. " a7 a6 a5 a4 a3 a2 a1 a0",
  6686. " o o o o o o o o";
  6687. read_hi = " 0 0 1 0 1 0 0 0",
  6688. " 0 0 0 0 0 a10 a9 a8",
  6689. " a7 a6 a5 a4 a3 a2 a1 a0",
  6690. " o o o o o o o o";
  6691. loadpage_lo = " 0 1 0 0 0 0 0 0",
  6692. " 0 0 0 x x x x x",
  6693. " x x x a4 a3 a2 a1 a0",
  6694. " i i i i i i i i";
  6695. loadpage_hi = " 0 1 0 0 1 0 0 0",
  6696. " 0 0 0 x x x x x",
  6697. " x x x a4 a3 a2 a1 a0",
  6698. " i i i i i i i i";
  6699. writepage = " 0 1 0 0 1 1 0 0",
  6700. " 0 0 0 0 0 a10 a9 a8",
  6701. " a7 a6 a5 x x x x x",
  6702. " x x x x x x x x";
  6703. mode = 0x41;
  6704. delay = 6;
  6705. blocksize = 64;
  6706. readsize = 256;
  6707. ;
  6708. memory "lfuse"
  6709. size = 1;
  6710. min_write_delay = 4500;
  6711. max_write_delay = 4500;
  6712. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  6713. "x x x x x x x x o o o o o o o o";
  6714. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  6715. "x x x x x x x x i i i i i i i i";
  6716. ;
  6717. memory "hfuse"
  6718. size = 1;
  6719. min_write_delay = 4500;
  6720. max_write_delay = 4500;
  6721. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  6722. "x x x x x x x x o o o o o o o o";
  6723. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  6724. "x x x x x x x x i i i i i i i i";
  6725. ;
  6726. memory "efuse"
  6727. size = 1;
  6728. min_write_delay = 4500;
  6729. max_write_delay = 4500;
  6730. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  6731. "x x x x x x x x o o o o o o o o";
  6732. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  6733. "x x x x x x x x x x x x x x x i";
  6734. ;
  6735. memory "lock"
  6736. size = 1;
  6737. min_write_delay = 4500;
  6738. max_write_delay = 4500;
  6739. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  6740. "x x x x x x x x x x o o o o o o";
  6741. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  6742. "x x x x x x x x 1 1 i i i i i i";
  6743. ;
  6744. memory "calibration"
  6745. size = 1;
  6746. read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
  6747. "0 0 0 0 0 0 0 0 o o o o o o o o";
  6748. ;
  6749. memory "signature"
  6750. size = 3;
  6751. read = "0 0 1 1 0 0 0 0 0 0 0 x x x x x",
  6752. "x x x x x x a1 a0 o o o o o o o o";
  6753. ;
  6754. ;
  6755. #------------------------------------------------------------
  6756. # ATmega48P
  6757. #------------------------------------------------------------
  6758. part parent "m48"
  6759. id = "m48p";
  6760. desc = "ATmega48P";
  6761. signature = 0x1e 0x92 0x0a;
  6762. ocdrev = 1;
  6763. ;
  6764. #------------------------------------------------------------
  6765. # ATmega48PB
  6766. #------------------------------------------------------------
  6767. part parent "m48"
  6768. id = "m48pb";
  6769. desc = "ATmega48PB";
  6770. signature = 0x1e 0x92 0x10;
  6771. ocdrev = 1;
  6772. ;
  6773. #------------------------------------------------------------
  6774. # ATmega88
  6775. #------------------------------------------------------------
  6776. part
  6777. id = "m88";
  6778. desc = "ATmega88";
  6779. has_debugwire = yes;
  6780. flash_instr = 0xB6, 0x01, 0x11;
  6781. eeprom_instr = 0xBD, 0xF2, 0xBD, 0xE1, 0xBB, 0xCF, 0xB4, 0x00,
  6782. 0xBE, 0x01, 0xB6, 0x01, 0xBC, 0x00, 0xBB, 0xBF,
  6783. 0x99, 0xF9, 0xBB, 0xAF;
  6784. stk500_devcode = 0x73;
  6785. # avr910_devcode = 0x;
  6786. signature = 0x1e 0x93 0x0a;
  6787. pagel = 0xd7;
  6788. bs2 = 0xc2;
  6789. chip_erase_delay = 9000;
  6790. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  6791. "x x x x x x x x x x x x x x x x";
  6792. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
  6793. "x x x x x x x x x x x x x x x x";
  6794. timeout = 200;
  6795. stabdelay = 100;
  6796. cmdexedelay = 25;
  6797. synchloops = 32;
  6798. bytedelay = 0;
  6799. pollindex = 3;
  6800. pollvalue = 0x53;
  6801. predelay = 1;
  6802. postdelay = 1;
  6803. pollmethod = 1;
  6804. pp_controlstack =
  6805. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  6806. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  6807. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  6808. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  6809. hventerstabdelay = 100;
  6810. progmodedelay = 0;
  6811. latchcycles = 5;
  6812. togglevtg = 1;
  6813. poweroffdelay = 15;
  6814. resetdelayms = 1;
  6815. resetdelayus = 0;
  6816. hvleavestabdelay = 15;
  6817. resetdelay = 15;
  6818. chiperasepulsewidth = 0;
  6819. chiperasepolltimeout = 10;
  6820. programfusepulsewidth = 0;
  6821. programfusepolltimeout = 5;
  6822. programlockpulsewidth = 0;
  6823. programlockpolltimeout = 5;
  6824. ocdrev = 1;
  6825. memory "eeprom"
  6826. paged = no;
  6827. page_size = 4;
  6828. size = 512;
  6829. min_write_delay = 3600;
  6830. max_write_delay = 3600;
  6831. readback_p1 = 0xff;
  6832. readback_p2 = 0xff;
  6833. read = " 1 0 1 0 0 0 0 0",
  6834. " 0 0 0 x x x x a8",
  6835. " a7 a6 a5 a4 a3 a2 a1 a0",
  6836. " o o o o o o o o";
  6837. write = " 1 1 0 0 0 0 0 0",
  6838. " 0 0 0 x x x x a8",
  6839. " a7 a6 a5 a4 a3 a2 a1 a0",
  6840. " i i i i i i i i";
  6841. loadpage_lo = " 1 1 0 0 0 0 0 1",
  6842. " 0 0 0 0 0 0 0 0",
  6843. " 0 0 0 0 0 0 a1 a0",
  6844. " i i i i i i i i";
  6845. writepage = " 1 1 0 0 0 0 1 0",
  6846. " 0 0 x x x x x a8",
  6847. " a7 a6 a5 a4 a3 a2 0 0",
  6848. " x x x x x x x x";
  6849. mode = 0x41;
  6850. delay = 20;
  6851. blocksize = 4;
  6852. readsize = 256;
  6853. ;
  6854. memory "flash"
  6855. paged = yes;
  6856. size = 8192;
  6857. page_size = 64;
  6858. num_pages = 128;
  6859. min_write_delay = 4500;
  6860. max_write_delay = 4500;
  6861. readback_p1 = 0xff;
  6862. readback_p2 = 0xff;
  6863. read_lo = " 0 0 1 0 0 0 0 0",
  6864. " 0 0 0 0 a11 a10 a9 a8",
  6865. " a7 a6 a5 a4 a3 a2 a1 a0",
  6866. " o o o o o o o o";
  6867. read_hi = " 0 0 1 0 1 0 0 0",
  6868. " 0 0 0 0 a11 a10 a9 a8",
  6869. " a7 a6 a5 a4 a3 a2 a1 a0",
  6870. " o o o o o o o o";
  6871. loadpage_lo = " 0 1 0 0 0 0 0 0",
  6872. " 0 0 0 x x x x x",
  6873. " x x x a4 a3 a2 a1 a0",
  6874. " i i i i i i i i";
  6875. loadpage_hi = " 0 1 0 0 1 0 0 0",
  6876. " 0 0 0 x x x x x",
  6877. " x x x a4 a3 a2 a1 a0",
  6878. " i i i i i i i i";
  6879. writepage = " 0 1 0 0 1 1 0 0",
  6880. " 0 0 0 0 a11 a10 a9 a8",
  6881. " a7 a6 a5 x x x x x",
  6882. " x x x x x x x x";
  6883. mode = 0x41;
  6884. delay = 6;
  6885. blocksize = 64;
  6886. readsize = 256;
  6887. ;
  6888. memory "lfuse"
  6889. size = 1;
  6890. min_write_delay = 4500;
  6891. max_write_delay = 4500;
  6892. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  6893. "x x x x x x x x o o o o o o o o";
  6894. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  6895. "x x x x x x x x i i i i i i i i";
  6896. ;
  6897. memory "hfuse"
  6898. size = 1;
  6899. min_write_delay = 4500;
  6900. max_write_delay = 4500;
  6901. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  6902. "x x x x x x x x o o o o o o o o";
  6903. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  6904. "x x x x x x x x i i i i i i i i";
  6905. ;
  6906. memory "efuse"
  6907. size = 1;
  6908. min_write_delay = 4500;
  6909. max_write_delay = 4500;
  6910. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  6911. "x x x x x x x x o o o o o o o o";
  6912. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  6913. "x x x x x x x x x x x x x i i i";
  6914. ;
  6915. memory "lock"
  6916. size = 1;
  6917. min_write_delay = 4500;
  6918. max_write_delay = 4500;
  6919. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  6920. "x x x x x x x x x x o o o o o o";
  6921. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  6922. "x x x x x x x x 1 1 i i i i i i";
  6923. ;
  6924. memory "calibration"
  6925. size = 1;
  6926. read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
  6927. "0 0 0 0 0 0 0 0 o o o o o o o o";
  6928. ;
  6929. memory "signature"
  6930. size = 3;
  6931. read = "0 0 1 1 0 0 0 0 0 0 0 x x x x x",
  6932. "x x x x x x a1 a0 o o o o o o o o";
  6933. ;
  6934. ;
  6935. #------------------------------------------------------------
  6936. # ATmega88P
  6937. #------------------------------------------------------------
  6938. part parent "m88"
  6939. id = "m88p";
  6940. desc = "ATmega88P";
  6941. signature = 0x1e 0x93 0x0f;
  6942. ocdrev = 1;
  6943. ;
  6944. #------------------------------------------------------------
  6945. # ATmega88PB
  6946. #------------------------------------------------------------
  6947. part parent "m88"
  6948. id = "m88pb";
  6949. desc = "ATmega88PB";
  6950. signature = 0x1e 0x93 0x16;
  6951. ocdrev = 1;
  6952. ;
  6953. #------------------------------------------------------------
  6954. # ATmega168
  6955. #------------------------------------------------------------
  6956. part
  6957. id = "m168";
  6958. desc = "ATmega168";
  6959. has_debugwire = yes;
  6960. flash_instr = 0xB6, 0x01, 0x11;
  6961. eeprom_instr = 0xBD, 0xF2, 0xBD, 0xE1, 0xBB, 0xCF, 0xB4, 0x00,
  6962. 0xBE, 0x01, 0xB6, 0x01, 0xBC, 0x00, 0xBB, 0xBF,
  6963. 0x99, 0xF9, 0xBB, 0xAF;
  6964. stk500_devcode = 0x86;
  6965. # avr910_devcode = 0x;
  6966. signature = 0x1e 0x94 0x06;
  6967. pagel = 0xd7;
  6968. bs2 = 0xc2;
  6969. chip_erase_delay = 9000;
  6970. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  6971. "x x x x x x x x x x x x x x x x";
  6972. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
  6973. "x x x x x x x x x x x x x x x x";
  6974. timeout = 200;
  6975. stabdelay = 100;
  6976. cmdexedelay = 25;
  6977. synchloops = 32;
  6978. bytedelay = 0;
  6979. pollindex = 3;
  6980. pollvalue = 0x53;
  6981. predelay = 1;
  6982. postdelay = 1;
  6983. pollmethod = 1;
  6984. pp_controlstack =
  6985. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  6986. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  6987. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  6988. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  6989. hventerstabdelay = 100;
  6990. progmodedelay = 0;
  6991. latchcycles = 5;
  6992. togglevtg = 1;
  6993. poweroffdelay = 15;
  6994. resetdelayms = 1;
  6995. resetdelayus = 0;
  6996. hvleavestabdelay = 15;
  6997. resetdelay = 15;
  6998. chiperasepulsewidth = 0;
  6999. chiperasepolltimeout = 10;
  7000. programfusepulsewidth = 0;
  7001. programfusepolltimeout = 5;
  7002. programlockpulsewidth = 0;
  7003. programlockpolltimeout = 5;
  7004. ocdrev = 1;
  7005. memory "eeprom"
  7006. paged = no;
  7007. page_size = 4;
  7008. size = 512;
  7009. min_write_delay = 3600;
  7010. max_write_delay = 3600;
  7011. readback_p1 = 0xff;
  7012. readback_p2 = 0xff;
  7013. read = " 1 0 1 0 0 0 0 0",
  7014. " 0 0 0 x x x x a8",
  7015. " a7 a6 a5 a4 a3 a2 a1 a0",
  7016. " o o o o o o o o";
  7017. write = " 1 1 0 0 0 0 0 0",
  7018. " 0 0 0 x x x x a8",
  7019. " a7 a6 a5 a4 a3 a2 a1 a0",
  7020. " i i i i i i i i";
  7021. loadpage_lo = " 1 1 0 0 0 0 0 1",
  7022. " 0 0 0 0 0 0 0 0",
  7023. " 0 0 0 0 0 0 a1 a0",
  7024. " i i i i i i i i";
  7025. writepage = " 1 1 0 0 0 0 1 0",
  7026. " 0 0 x x x x x a8",
  7027. " a7 a6 a5 a4 a3 a2 0 0",
  7028. " x x x x x x x x";
  7029. mode = 0x41;
  7030. delay = 20;
  7031. blocksize = 4;
  7032. readsize = 256;
  7033. ;
  7034. memory "flash"
  7035. paged = yes;
  7036. size = 16384;
  7037. page_size = 128;
  7038. num_pages = 128;
  7039. min_write_delay = 4500;
  7040. max_write_delay = 4500;
  7041. readback_p1 = 0xff;
  7042. readback_p2 = 0xff;
  7043. read_lo = " 0 0 1 0 0 0 0 0",
  7044. " 0 0 0 a12 a11 a10 a9 a8",
  7045. " a7 a6 a5 a4 a3 a2 a1 a0",
  7046. " o o o o o o o o";
  7047. read_hi = " 0 0 1 0 1 0 0 0",
  7048. " 0 0 0 a12 a11 a10 a9 a8",
  7049. " a7 a6 a5 a4 a3 a2 a1 a0",
  7050. " o o o o o o o o";
  7051. loadpage_lo = " 0 1 0 0 0 0 0 0",
  7052. " 0 0 0 x x x x x",
  7053. " x x a5 a4 a3 a2 a1 a0",
  7054. " i i i i i i i i";
  7055. loadpage_hi = " 0 1 0 0 1 0 0 0",
  7056. " 0 0 0 x x x x x",
  7057. " x x a5 a4 a3 a2 a1 a0",
  7058. " i i i i i i i i";
  7059. writepage = " 0 1 0 0 1 1 0 0",
  7060. " 0 0 0 a12 a11 a10 a9 a8",
  7061. " a7 a6 x x x x x x",
  7062. " x x x x x x x x";
  7063. mode = 0x41;
  7064. delay = 6;
  7065. blocksize = 128;
  7066. readsize = 256;
  7067. ;
  7068. memory "lfuse"
  7069. size = 1;
  7070. min_write_delay = 4500;
  7071. max_write_delay = 4500;
  7072. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  7073. "x x x x x x x x o o o o o o o o";
  7074. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  7075. "x x x x x x x x i i i i i i i i";
  7076. ;
  7077. memory "hfuse"
  7078. size = 1;
  7079. min_write_delay = 4500;
  7080. max_write_delay = 4500;
  7081. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  7082. "x x x x x x x x o o o o o o o o";
  7083. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  7084. "x x x x x x x x i i i i i i i i";
  7085. ;
  7086. memory "efuse"
  7087. size = 1;
  7088. min_write_delay = 4500;
  7089. max_write_delay = 4500;
  7090. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  7091. "x x x x x x x x o o o o o o o o";
  7092. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  7093. "x x x x x x x x x x x x x i i i";
  7094. ;
  7095. memory "lock"
  7096. size = 1;
  7097. min_write_delay = 4500;
  7098. max_write_delay = 4500;
  7099. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  7100. "x x x x x x x x x x o o o o o o";
  7101. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  7102. "x x x x x x x x 1 1 i i i i i i";
  7103. ;
  7104. memory "calibration"
  7105. size = 1;
  7106. read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
  7107. "0 0 0 0 0 0 0 0 o o o o o o o o";
  7108. ;
  7109. memory "signature"
  7110. size = 3;
  7111. read = "0 0 1 1 0 0 0 0 0 0 0 x x x x x",
  7112. "x x x x x x a1 a0 o o o o o o o o";
  7113. ;
  7114. ;
  7115. #------------------------------------------------------------
  7116. # ATmega168P
  7117. #------------------------------------------------------------
  7118. part parent "m168"
  7119. id = "m168p";
  7120. desc = "ATmega168P";
  7121. signature = 0x1e 0x94 0x0b;
  7122. ocdrev = 1;
  7123. ;
  7124. #------------------------------------------------------------
  7125. # ATmega168PB
  7126. #------------------------------------------------------------
  7127. part parent "m168"
  7128. id = "m168pb";
  7129. desc = "ATmega168PB";
  7130. signature = 0x1e 0x94 0x15;
  7131. ocdrev = 1;
  7132. ;
  7133. #------------------------------------------------------------
  7134. # ATtiny88
  7135. #------------------------------------------------------------
  7136. part
  7137. id = "t88";
  7138. desc = "ATtiny88";
  7139. has_debugwire = yes;
  7140. flash_instr = 0xB6, 0x01, 0x11;
  7141. eeprom_instr = 0xBD, 0xF2, 0xBD, 0xE1, 0xBB, 0xCF, 0xB4, 0x00,
  7142. 0xBE, 0x01, 0xB6, 0x01, 0xBC, 0x00, 0xBB, 0xBF,
  7143. 0x99, 0xF9, 0xBB, 0xAF;
  7144. stk500_devcode = 0x73;
  7145. # avr910_devcode = 0x;
  7146. signature = 0x1e 0x93 0x11;
  7147. pagel = 0xd7;
  7148. bs2 = 0xc2;
  7149. chip_erase_delay = 9000;
  7150. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  7151. "x x x x x x x x x x x x x x x x";
  7152. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
  7153. "x x x x x x x x x x x x x x x x";
  7154. timeout = 200;
  7155. stabdelay = 100;
  7156. cmdexedelay = 25;
  7157. synchloops = 32;
  7158. bytedelay = 0;
  7159. pollindex = 3;
  7160. pollvalue = 0x53;
  7161. predelay = 1;
  7162. postdelay = 1;
  7163. pollmethod = 1;
  7164. pp_controlstack =
  7165. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  7166. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  7167. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  7168. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  7169. hventerstabdelay = 100;
  7170. progmodedelay = 0;
  7171. latchcycles = 5;
  7172. togglevtg = 1;
  7173. poweroffdelay = 15;
  7174. resetdelayms = 1;
  7175. resetdelayus = 0;
  7176. hvleavestabdelay = 15;
  7177. resetdelay = 15;
  7178. chiperasepulsewidth = 0;
  7179. chiperasepolltimeout = 10;
  7180. programfusepulsewidth = 0;
  7181. programfusepolltimeout = 5;
  7182. programlockpulsewidth = 0;
  7183. programlockpolltimeout = 5;
  7184. ocdrev = 1;
  7185. memory "eeprom"
  7186. paged = no;
  7187. page_size = 4;
  7188. size = 64;
  7189. min_write_delay = 3600;
  7190. max_write_delay = 3600;
  7191. readback_p1 = 0xff;
  7192. readback_p2 = 0xff;
  7193. read = " 1 0 1 0 0 0 0 0",
  7194. " 0 0 0 x x x x x",
  7195. " x a6 a5 a4 a3 a2 a1 a0",
  7196. " o o o o o o o o";
  7197. write = " 1 1 0 0 0 0 0 0",
  7198. " 0 0 0 x x x x x",
  7199. " x a6 a5 a4 a3 a2 a1 a0",
  7200. " i i i i i i i i";
  7201. loadpage_lo = " 1 1 0 0 0 0 0 1",
  7202. " 0 0 0 0 0 0 0 0",
  7203. " 0 0 0 0 0 0 a1 a0",
  7204. " i i i i i i i i";
  7205. writepage = " 1 1 0 0 0 0 1 0",
  7206. " 0 0 x x x x x x",
  7207. " x a6 a5 a4 a3 a2 0 0",
  7208. " x x x x x x x x";
  7209. mode = 0x41;
  7210. delay = 20;
  7211. blocksize = 4;
  7212. readsize = 64;
  7213. ;
  7214. memory "flash"
  7215. paged = yes;
  7216. size = 8192;
  7217. page_size = 64;
  7218. num_pages = 128;
  7219. min_write_delay = 4500;
  7220. max_write_delay = 4500;
  7221. readback_p1 = 0xff;
  7222. readback_p2 = 0xff;
  7223. read_lo = " 0 0 1 0 0 0 0 0",
  7224. " 0 0 0 0 a11 a10 a9 a8",
  7225. " a7 a6 a5 a4 a3 a2 a1 a0",
  7226. " o o o o o o o o";
  7227. read_hi = " 0 0 1 0 1 0 0 0",
  7228. " 0 0 0 0 a11 a10 a9 a8",
  7229. " a7 a6 a5 a4 a3 a2 a1 a0",
  7230. " o o o o o o o o";
  7231. loadpage_lo = " 0 1 0 0 0 0 0 0",
  7232. " 0 0 0 x x x x x",
  7233. " x x x a4 a3 a2 a1 a0",
  7234. " i i i i i i i i";
  7235. loadpage_hi = " 0 1 0 0 1 0 0 0",
  7236. " 0 0 0 x x x x x",
  7237. " x x x a4 a3 a2 a1 a0",
  7238. " i i i i i i i i";
  7239. writepage = " 0 1 0 0 1 1 0 0",
  7240. " 0 0 0 0 a11 a10 a9 a8",
  7241. " a7 a6 a5 x x x x x",
  7242. " x x x x x x x x";
  7243. mode = 0x41;
  7244. delay = 6;
  7245. blocksize = 64;
  7246. readsize = 256;
  7247. ;
  7248. memory "lfuse"
  7249. size = 1;
  7250. min_write_delay = 4500;
  7251. max_write_delay = 4500;
  7252. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  7253. "x x x x x x x x o o o o o o o o";
  7254. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  7255. "x x x x x x x x i i i i i i i i";
  7256. ;
  7257. memory "hfuse"
  7258. size = 1;
  7259. min_write_delay = 4500;
  7260. max_write_delay = 4500;
  7261. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  7262. "x x x x x x x x o o o o o o o o";
  7263. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  7264. "x x x x x x x x i i i i i i i i";
  7265. ;
  7266. memory "efuse"
  7267. size = 1;
  7268. min_write_delay = 4500;
  7269. max_write_delay = 4500;
  7270. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  7271. "x x x x x x x x o o o o o o o o";
  7272. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  7273. "x x x x x x x x x x x x x x x i";
  7274. ;
  7275. memory "lock"
  7276. size = 1;
  7277. min_write_delay = 4500;
  7278. max_write_delay = 4500;
  7279. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  7280. "x x x x x x x x x x o o o o o o";
  7281. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  7282. "x x x x x x x x 1 1 i i i i i i";
  7283. ;
  7284. memory "calibration"
  7285. size = 1;
  7286. read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
  7287. "0 0 0 0 0 0 0 0 o o o o o o o o";
  7288. ;
  7289. memory "signature"
  7290. size = 3;
  7291. read = "0 0 1 1 0 0 0 0 0 0 0 x x x x x",
  7292. "x x x x x x a1 a0 o o o o o o o o";
  7293. ;
  7294. ;
  7295. #------------------------------------------------------------
  7296. # ATmega328
  7297. #------------------------------------------------------------
  7298. part
  7299. id = "m328";
  7300. desc = "ATmega328";
  7301. has_debugwire = yes;
  7302. flash_instr = 0xB6, 0x01, 0x11;
  7303. eeprom_instr = 0xBD, 0xF2, 0xBD, 0xE1, 0xBB, 0xCF, 0xB4, 0x00,
  7304. 0xBE, 0x01, 0xB6, 0x01, 0xBC, 0x00, 0xBB, 0xBF,
  7305. 0x99, 0xF9, 0xBB, 0xAF;
  7306. stk500_devcode = 0x86;
  7307. # avr910_devcode = 0x;
  7308. signature = 0x1e 0x95 0x14;
  7309. pagel = 0xd7;
  7310. bs2 = 0xc2;
  7311. chip_erase_delay = 9000;
  7312. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  7313. "x x x x x x x x x x x x x x x x";
  7314. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
  7315. "x x x x x x x x x x x x x x x x";
  7316. timeout = 200;
  7317. stabdelay = 100;
  7318. cmdexedelay = 25;
  7319. synchloops = 32;
  7320. bytedelay = 0;
  7321. pollindex = 3;
  7322. pollvalue = 0x53;
  7323. predelay = 1;
  7324. postdelay = 1;
  7325. pollmethod = 1;
  7326. pp_controlstack =
  7327. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  7328. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  7329. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  7330. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  7331. hventerstabdelay = 100;
  7332. progmodedelay = 0;
  7333. latchcycles = 5;
  7334. togglevtg = 1;
  7335. poweroffdelay = 15;
  7336. resetdelayms = 1;
  7337. resetdelayus = 0;
  7338. hvleavestabdelay = 15;
  7339. resetdelay = 15;
  7340. chiperasepulsewidth = 0;
  7341. chiperasepolltimeout = 10;
  7342. programfusepulsewidth = 0;
  7343. programfusepolltimeout = 5;
  7344. programlockpulsewidth = 0;
  7345. programlockpolltimeout = 5;
  7346. ocdrev = 1;
  7347. memory "eeprom"
  7348. paged = no;
  7349. page_size = 4;
  7350. size = 1024;
  7351. min_write_delay = 3600;
  7352. max_write_delay = 3600;
  7353. readback_p1 = 0xff;
  7354. readback_p2 = 0xff;
  7355. read = " 1 0 1 0 0 0 0 0",
  7356. " 0 0 0 x x x a9 a8",
  7357. " a7 a6 a5 a4 a3 a2 a1 a0",
  7358. " o o o o o o o o";
  7359. write = " 1 1 0 0 0 0 0 0",
  7360. " 0 0 0 x x x a9 a8",
  7361. " a7 a6 a5 a4 a3 a2 a1 a0",
  7362. " i i i i i i i i";
  7363. loadpage_lo = " 1 1 0 0 0 0 0 1",
  7364. " 0 0 0 0 0 0 0 0",
  7365. " 0 0 0 0 0 0 a1 a0",
  7366. " i i i i i i i i";
  7367. writepage = " 1 1 0 0 0 0 1 0",
  7368. " 0 0 x x x x a9 a8",
  7369. " a7 a6 a5 a4 a3 a2 0 0",
  7370. " x x x x x x x x";
  7371. mode = 0x41;
  7372. delay = 20;
  7373. blocksize = 4;
  7374. readsize = 256;
  7375. ;
  7376. memory "flash"
  7377. paged = yes;
  7378. size = 32768;
  7379. page_size = 128;
  7380. num_pages = 256;
  7381. min_write_delay = 4500;
  7382. max_write_delay = 4500;
  7383. readback_p1 = 0xff;
  7384. readback_p2 = 0xff;
  7385. read_lo = " 0 0 1 0 0 0 0 0",
  7386. " 0 0 a13 a12 a11 a10 a9 a8",
  7387. " a7 a6 a5 a4 a3 a2 a1 a0",
  7388. " o o o o o o o o";
  7389. read_hi = " 0 0 1 0 1 0 0 0",
  7390. " 0 0 a13 a12 a11 a10 a9 a8",
  7391. " a7 a6 a5 a4 a3 a2 a1 a0",
  7392. " o o o o o o o o";
  7393. loadpage_lo = " 0 1 0 0 0 0 0 0",
  7394. " 0 0 0 x x x x x",
  7395. " x x a5 a4 a3 a2 a1 a0",
  7396. " i i i i i i i i";
  7397. loadpage_hi = " 0 1 0 0 1 0 0 0",
  7398. " 0 0 0 x x x x x",
  7399. " x x a5 a4 a3 a2 a1 a0",
  7400. " i i i i i i i i";
  7401. writepage = " 0 1 0 0 1 1 0 0",
  7402. " 0 0 a13 a12 a11 a10 a9 a8",
  7403. " a7 a6 x x x x x x",
  7404. " x x x x x x x x";
  7405. mode = 0x41;
  7406. delay = 6;
  7407. blocksize = 128;
  7408. readsize = 256;
  7409. ;
  7410. memory "lfuse"
  7411. size = 1;
  7412. min_write_delay = 4500;
  7413. max_write_delay = 4500;
  7414. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  7415. "x x x x x x x x o o o o o o o o";
  7416. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  7417. "x x x x x x x x i i i i i i i i";
  7418. ;
  7419. memory "hfuse"
  7420. size = 1;
  7421. min_write_delay = 4500;
  7422. max_write_delay = 4500;
  7423. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  7424. "x x x x x x x x o o o o o o o o";
  7425. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  7426. "x x x x x x x x i i i i i i i i";
  7427. ;
  7428. memory "efuse"
  7429. size = 1;
  7430. min_write_delay = 4500;
  7431. max_write_delay = 4500;
  7432. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  7433. "x x x x x x x x o o o o o o o o";
  7434. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  7435. "x x x x x x x x x x x x x i i i";
  7436. ;
  7437. memory "lock"
  7438. size = 1;
  7439. min_write_delay = 4500;
  7440. max_write_delay = 4500;
  7441. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  7442. "x x x x x x x x x x o o o o o o";
  7443. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  7444. "x x x x x x x x 1 1 i i i i i i";
  7445. ;
  7446. memory "calibration"
  7447. size = 1;
  7448. read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
  7449. "0 0 0 0 0 0 0 0 o o o o o o o o";
  7450. ;
  7451. memory "signature"
  7452. size = 3;
  7453. read = "0 0 1 1 0 0 0 0 0 0 0 x x x x x",
  7454. "x x x x x x a1 a0 o o o o o o o o";
  7455. ;
  7456. ;
  7457. part parent "m328"
  7458. id = "m328p";
  7459. desc = "ATmega328P";
  7460. signature = 0x1e 0x95 0x0F;
  7461. ocdrev = 1;
  7462. ;
  7463. #------------------------------------------------------------
  7464. # ATmega32m1
  7465. #------------------------------------------------------------
  7466. part parent "m328"
  7467. id = "m32m1";
  7468. desc = "ATmega32M1";
  7469. # stk500_devcode = 0x;
  7470. # avr910_devcode = 0x;
  7471. signature = 0x1e 0x95 0x84;
  7472. bs2 = 0xe2;
  7473. memory "efuse"
  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 o o o o o 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 i i i i i i";
  7478. ;
  7479. ;
  7480. #------------------------------------------------------------
  7481. # ATtiny2313
  7482. #------------------------------------------------------------
  7483. part
  7484. id = "t2313";
  7485. desc = "ATtiny2313";
  7486. has_debugwire = yes;
  7487. flash_instr = 0xB2, 0x0F, 0x1F;
  7488. eeprom_instr = 0xBB, 0xFE, 0xBB, 0xEE, 0xBB, 0xCC, 0xB2, 0x0D,
  7489. 0xBA, 0x0F, 0xB2, 0x0F, 0xBA, 0x0D, 0xBB, 0xBC,
  7490. 0x99, 0xE1, 0xBB, 0xAC;
  7491. stk500_devcode = 0x23;
  7492. ## Use the ATtiny26 devcode:
  7493. avr910_devcode = 0x5e;
  7494. signature = 0x1e 0x91 0x0a;
  7495. pagel = 0xD4;
  7496. bs2 = 0xD6;
  7497. reset = io;
  7498. chip_erase_delay = 9000;
  7499. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  7500. "x x x x x x x x x x x x x x x x";
  7501. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
  7502. "x x x x x x x x x x x x x x x x";
  7503. timeout = 200;
  7504. stabdelay = 100;
  7505. cmdexedelay = 25;
  7506. synchloops = 32;
  7507. bytedelay = 0;
  7508. pollindex = 3;
  7509. pollvalue = 0x53;
  7510. predelay = 1;
  7511. postdelay = 1;
  7512. pollmethod = 1;
  7513. pp_controlstack =
  7514. 0x0E, 0x1E, 0x0E, 0x1E, 0x2E, 0x3E, 0x2E, 0x3E,
  7515. 0x4E, 0x5E, 0x4E, 0x5E, 0x6E, 0x7E, 0x6E, 0x7E,
  7516. 0x26, 0x36, 0x66, 0x76, 0x2A, 0x3A, 0x6A, 0x7A,
  7517. 0x2E, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  7518. hventerstabdelay = 100;
  7519. progmodedelay = 0;
  7520. latchcycles = 5;
  7521. togglevtg = 1;
  7522. poweroffdelay = 15;
  7523. resetdelayms = 1;
  7524. resetdelayus = 0;
  7525. hvleavestabdelay = 15;
  7526. chiperasepulsewidth = 0;
  7527. chiperasepolltimeout = 10;
  7528. programfusepulsewidth = 0;
  7529. programfusepolltimeout = 5;
  7530. programlockpulsewidth = 0;
  7531. programlockpolltimeout = 5;
  7532. ocdrev = 0;
  7533. memory "eeprom"
  7534. size = 128;
  7535. paged = no;
  7536. page_size = 4;
  7537. min_write_delay = 4000;
  7538. max_write_delay = 4500;
  7539. readback_p1 = 0xff;
  7540. readback_p2 = 0xff;
  7541. read = "1 0 1 0 0 0 0 0 0 0 0 x x x x x",
  7542. "x a6 a5 a4 a3 a2 a1 a0 o o o o o o o o";
  7543. write = "1 1 0 0 0 0 0 0 0 0 0 x x x x x",
  7544. "x a6 a5 a4 a3 a2 a1 a0 i i i i i i i i";
  7545. loadpage_lo = " 1 1 0 0 0 0 0 1",
  7546. " 0 0 0 0 0 0 0 0",
  7547. " 0 0 0 0 0 0 a1 a0",
  7548. " i i i i i i i i";
  7549. writepage = " 1 1 0 0 0 0 1 0",
  7550. " 0 0 x x x x x x",
  7551. " x a6 a5 a4 a3 a2 0 0",
  7552. " x x x x x x x x";
  7553. mode = 0x41;
  7554. delay = 6;
  7555. blocksize = 4;
  7556. readsize = 256;
  7557. ;
  7558. memory "flash"
  7559. paged = yes;
  7560. size = 2048;
  7561. page_size = 32;
  7562. num_pages = 64;
  7563. min_write_delay = 4500;
  7564. max_write_delay = 4500;
  7565. readback_p1 = 0xff;
  7566. readback_p2 = 0xff;
  7567. read_lo = " 0 0 1 0 0 0 0 0",
  7568. " 0 0 0 0 0 0 a9 a8",
  7569. " a7 a6 a5 a4 a3 a2 a1 a0",
  7570. " o o o o o o o o";
  7571. read_hi = " 0 0 1 0 1 0 0 0",
  7572. " 0 0 0 0 0 0 a9 a8",
  7573. " a7 a6 a5 a4 a3 a2 a1 a0",
  7574. " o o o o o o o o";
  7575. # The information in the data sheet of April/2004 is wrong, this works:
  7576. loadpage_lo = " 0 1 0 0 0 0 0 0",
  7577. " 0 0 0 x x x x x",
  7578. " x x x x a3 a2 a1 a0",
  7579. " i i i i i i i i";
  7580. # The information in the data sheet of April/2004 is wrong, this works:
  7581. loadpage_hi = " 0 1 0 0 1 0 0 0",
  7582. " 0 0 0 x x x x x",
  7583. " x x x x a3 a2 a1 a0",
  7584. " i i i i i i i i";
  7585. # The information in the data sheet of April/2004 is wrong, this works:
  7586. writepage = " 0 1 0 0 1 1 0 0",
  7587. " 0 0 0 0 0 0 a9 a8",
  7588. " a7 a6 a5 a4 x x x x",
  7589. " x x x x x x x x";
  7590. mode = 0x41;
  7591. delay = 6;
  7592. blocksize = 32;
  7593. readsize = 256;
  7594. ;
  7595. # ATtiny2313 has Signature Bytes: 0x1E 0x91 0x0A.
  7596. memory "signature"
  7597. size = 3;
  7598. read = "0 0 1 1 0 0 0 0 0 0 0 x x x x x",
  7599. "x x x x x x a1 a0 o o o o o o o o";
  7600. ;
  7601. memory "lock"
  7602. size = 1;
  7603. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  7604. "x x x x x x x x 1 1 i i i i i i";
  7605. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  7606. "x x x x x x x x x x o o o o o o";
  7607. min_write_delay = 9000;
  7608. max_write_delay = 9000;
  7609. ;
  7610. memory "lfuse"
  7611. size = 1;
  7612. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  7613. "x x x x x x x x i i i i i i i i";
  7614. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  7615. "x x x x x x x x o o o o o o o o";
  7616. min_write_delay = 9000;
  7617. max_write_delay = 9000;
  7618. ;
  7619. memory "hfuse"
  7620. size = 1;
  7621. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  7622. "x x x x x x x x i i i i i i i i";
  7623. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  7624. "x x x x x x x x o o o o o o o o";
  7625. min_write_delay = 9000;
  7626. max_write_delay = 9000;
  7627. ;
  7628. memory "efuse"
  7629. size = 1;
  7630. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  7631. "x x x x x x x x x x x x x x x i";
  7632. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 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. # The Tiny2313 has calibration data for both 4 MHz and 8 MHz.
  7638. # The information in the data sheet of April/2004 is wrong, this works:
  7639. memory "calibration"
  7640. size = 2;
  7641. read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
  7642. "0 0 0 0 0 0 0 a0 o o o o o o o o";
  7643. ;
  7644. ;
  7645. #------------------------------------------------------------
  7646. # ATtiny4313
  7647. #------------------------------------------------------------
  7648. part
  7649. id = "t4313";
  7650. desc = "ATtiny4313";
  7651. has_debugwire = yes;
  7652. flash_instr = 0xB2, 0x0F, 0x1F;
  7653. eeprom_instr = 0xBB, 0xFE, 0xBB, 0xEE, 0xBB, 0xCC, 0xB2, 0x0D,
  7654. 0xBA, 0x0F, 0xB2, 0x0F, 0xBA, 0x0D, 0xBB, 0xBC,
  7655. 0x99, 0xE1, 0xBB, 0xAC;
  7656. stk500_devcode = 0x23;
  7657. ## Use the ATtiny26 devcode:
  7658. avr910_devcode = 0x5e;
  7659. signature = 0x1e 0x92 0x0d;
  7660. pagel = 0xD4;
  7661. bs2 = 0xD6;
  7662. reset = io;
  7663. chip_erase_delay = 9000;
  7664. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  7665. "x x x x x x x x x x x x x x x x";
  7666. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
  7667. "x x x x x x x x x x x x x x x x";
  7668. timeout = 200;
  7669. stabdelay = 100;
  7670. cmdexedelay = 25;
  7671. synchloops = 32;
  7672. bytedelay = 0;
  7673. pollindex = 3;
  7674. pollvalue = 0x53;
  7675. predelay = 1;
  7676. postdelay = 1;
  7677. pollmethod = 1;
  7678. pp_controlstack =
  7679. 0x0E, 0x1E, 0x0E, 0x1E, 0x2E, 0x3E, 0x2E, 0x3E,
  7680. 0x4E, 0x5E, 0x4E, 0x5E, 0x6E, 0x7E, 0x6E, 0x7E,
  7681. 0x26, 0x36, 0x66, 0x76, 0x2A, 0x3A, 0x6A, 0x7A,
  7682. 0x2E, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  7683. hventerstabdelay = 100;
  7684. progmodedelay = 0;
  7685. latchcycles = 5;
  7686. togglevtg = 1;
  7687. poweroffdelay = 15;
  7688. resetdelayms = 1;
  7689. resetdelayus = 0;
  7690. hvleavestabdelay = 15;
  7691. chiperasepulsewidth = 0;
  7692. chiperasepolltimeout = 10;
  7693. programfusepulsewidth = 0;
  7694. programfusepolltimeout = 5;
  7695. programlockpulsewidth = 0;
  7696. programlockpolltimeout = 5;
  7697. ocdrev = 0;
  7698. memory "eeprom"
  7699. size = 256;
  7700. paged = no;
  7701. page_size = 4;
  7702. min_write_delay = 4000;
  7703. max_write_delay = 4500;
  7704. readback_p1 = 0xff;
  7705. readback_p2 = 0xff;
  7706. read = "1 0 1 0 0 0 0 0 0 0 0 x x x x x",
  7707. "a7 a6 a5 a4 a3 a2 a1 a0 o o o o o o o o";
  7708. write = "1 1 0 0 0 0 0 0 0 0 0 x x x x x",
  7709. "a7 a6 a5 a4 a3 a2 a1 a0 i i i i i i i i";
  7710. loadpage_lo = " 1 1 0 0 0 0 0 1",
  7711. " 0 0 0 0 0 0 0 0",
  7712. " 0 0 0 0 0 0 a1 a0",
  7713. " i i i i i i i i";
  7714. writepage = " 1 1 0 0 0 0 1 0",
  7715. " 0 0 x x x x x x",
  7716. " a7 a6 a5 a4 a3 a2 0 0",
  7717. " x x x x x x x x";
  7718. mode = 0x41;
  7719. delay = 6;
  7720. blocksize = 4;
  7721. readsize = 256;
  7722. ;
  7723. memory "flash"
  7724. paged = yes;
  7725. size = 4096;
  7726. page_size = 64;
  7727. num_pages = 64;
  7728. min_write_delay = 4500;
  7729. max_write_delay = 4500;
  7730. readback_p1 = 0xff;
  7731. readback_p2 = 0xff;
  7732. read_lo = " 0 0 1 0 0 0 0 0",
  7733. " 0 0 0 0 0 a10 a9 a8",
  7734. " a7 a6 a5 a4 a3 a2 a1 a0",
  7735. " o o o o o o o o";
  7736. read_hi = " 0 0 1 0 1 0 0 0",
  7737. " 0 0 0 0 0 a10 a9 a8",
  7738. " a7 a6 a5 a4 a3 a2 a1 a0",
  7739. " o o o o o o o o";
  7740. loadpage_lo = " 0 1 0 0 0 0 0 0",
  7741. " 0 0 0 x x x x x",
  7742. " x x x a4 a3 a2 a1 a0",
  7743. " i i i i i i i i";
  7744. loadpage_hi = " 0 1 0 0 1 0 0 0",
  7745. " 0 0 0 x x x x x",
  7746. " x x x a4 a3 a2 a1 a0",
  7747. " i i i i i i i i";
  7748. writepage = " 0 1 0 0 1 1 0 0",
  7749. " 0 0 0 0 0 a10 a9 a8",
  7750. " a7 a6 a5 x x x x x",
  7751. " x x x x x x x x";
  7752. mode = 0x41;
  7753. delay = 6;
  7754. blocksize = 32;
  7755. readsize = 256;
  7756. ;
  7757. # ATtiny4313 has Signature Bytes: 0x1E 0x92 0x0D.
  7758. memory "signature"
  7759. size = 3;
  7760. read = "0 0 1 1 0 0 0 0 0 0 0 x x x x x",
  7761. "x x x x x x a1 a0 o o o o o o o o";
  7762. ;
  7763. memory "lock"
  7764. size = 1;
  7765. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  7766. "x x x x x x x x 1 1 i i i i i i";
  7767. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  7768. "x x x x x x x x x x o o o o o o";
  7769. min_write_delay = 9000;
  7770. max_write_delay = 9000;
  7771. ;
  7772. memory "lfuse"
  7773. size = 1;
  7774. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  7775. "x x x x x x x x i i i i i i i i";
  7776. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  7777. "x x x x x x x x o o o o o o o o";
  7778. min_write_delay = 9000;
  7779. max_write_delay = 9000;
  7780. ;
  7781. memory "hfuse"
  7782. size = 1;
  7783. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  7784. "x x x x x x x x i i i i i i i i";
  7785. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  7786. "x x x x x x x x o o o o o o o o";
  7787. min_write_delay = 9000;
  7788. max_write_delay = 9000;
  7789. ;
  7790. memory "efuse"
  7791. size = 1;
  7792. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  7793. "x x x x x x x x x x x x x x x i";
  7794. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  7795. "x x x x x x x x o o o o o o o o";
  7796. min_write_delay = 9000;
  7797. max_write_delay = 9000;
  7798. ;
  7799. memory "calibration"
  7800. size = 2;
  7801. read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
  7802. "0 0 0 0 0 0 0 a0 o o o o o o o o";
  7803. ;
  7804. ;
  7805. #------------------------------------------------------------
  7806. # AT90PWM2
  7807. #------------------------------------------------------------
  7808. part
  7809. id = "pwm2";
  7810. desc = "AT90PWM2";
  7811. has_debugwire = yes;
  7812. flash_instr = 0xB6, 0x01, 0x11;
  7813. eeprom_instr = 0xBD, 0xF2, 0xBD, 0xE1, 0xBB, 0xCF, 0xB4, 0x00,
  7814. 0xBE, 0x01, 0xB6, 0x01, 0xBC, 0x00, 0xBB, 0xBF,
  7815. 0x99, 0xF9, 0xBB, 0xAF;
  7816. stk500_devcode = 0x65;
  7817. ## avr910_devcode = ?;
  7818. signature = 0x1e 0x93 0x81;
  7819. pagel = 0xD8;
  7820. bs2 = 0xE2;
  7821. reset = io;
  7822. chip_erase_delay = 9000;
  7823. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  7824. "x x x x x x x x x x x x x x x x";
  7825. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
  7826. "x x x x x x x x x x x x x x x x";
  7827. timeout = 200;
  7828. stabdelay = 100;
  7829. cmdexedelay = 25;
  7830. synchloops = 32;
  7831. bytedelay = 0;
  7832. pollindex = 3;
  7833. pollvalue = 0x53;
  7834. predelay = 1;
  7835. postdelay = 1;
  7836. pollmethod = 1;
  7837. pp_controlstack =
  7838. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  7839. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  7840. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  7841. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  7842. hventerstabdelay = 100;
  7843. progmodedelay = 0;
  7844. latchcycles = 5;
  7845. togglevtg = 1;
  7846. poweroffdelay = 15;
  7847. resetdelayms = 1;
  7848. resetdelayus = 0;
  7849. hvleavestabdelay = 15;
  7850. chiperasepulsewidth = 0;
  7851. chiperasepolltimeout = 10;
  7852. programfusepulsewidth = 0;
  7853. programfusepolltimeout = 5;
  7854. programlockpulsewidth = 0;
  7855. programlockpolltimeout = 5;
  7856. memory "eeprom"
  7857. size = 512;
  7858. paged = no;
  7859. page_size = 4;
  7860. min_write_delay = 4000;
  7861. max_write_delay = 4500;
  7862. readback_p1 = 0xff;
  7863. readback_p2 = 0xff;
  7864. read = "1 0 1 0 0 0 0 0 0 0 0 x x x x a8",
  7865. "a7 a6 a5 a4 a3 a2 a1 a0 o o o o o o o o";
  7866. write = "1 1 0 0 0 0 0 0 0 0 0 x x x x a8",
  7867. "a7 a6 a5 a4 a3 a2 a1 a0 i i i i i i i i";
  7868. loadpage_lo = " 1 1 0 0 0 0 0 1",
  7869. " 0 0 0 0 0 0 0 0",
  7870. " 0 0 0 0 0 0 a1 a0",
  7871. " i i i i i i i i";
  7872. writepage = " 1 1 0 0 0 0 1 0",
  7873. " 0 0 x x x x x x",
  7874. " a7 a6 a5 a4 a3 a2 0 0",
  7875. " x x x x x x x x";
  7876. mode = 0x41;
  7877. delay = 6;
  7878. blocksize = 4;
  7879. readsize = 256;
  7880. ;
  7881. memory "flash"
  7882. paged = yes;
  7883. size = 8192;
  7884. page_size = 64;
  7885. num_pages = 128;
  7886. min_write_delay = 4500;
  7887. max_write_delay = 4500;
  7888. readback_p1 = 0xff;
  7889. readback_p2 = 0xff;
  7890. read_lo = " 0 0 1 0 0 0 0 0",
  7891. " 0 0 0 0 a11 a10 a9 a8",
  7892. " a7 a6 a5 a4 a3 a2 a1 a0",
  7893. " o o o o o o o o";
  7894. read_hi = " 0 0 1 0 1 0 0 0",
  7895. " 0 0 0 0 a11 a10 a9 a8",
  7896. " a7 a6 a5 a4 a3 a2 a1 a0",
  7897. " o o o o o o o o";
  7898. loadpage_lo = " 0 1 0 0 0 0 0 0",
  7899. " 0 0 0 x x x x x",
  7900. " x x x a4 a3 a2 a1 a0",
  7901. " i i i i i i i i";
  7902. loadpage_hi = " 0 1 0 0 1 0 0 0",
  7903. " 0 0 0 x x x x x",
  7904. " x x x a4 a3 a2 a1 a0",
  7905. " i i i i i i i i";
  7906. writepage = " 0 1 0 0 1 1 0 0",
  7907. " 0 0 0 0 a11 a10 a9 a8",
  7908. " a7 a6 a5 x x x x x",
  7909. " x x x x x x x x";
  7910. mode = 0x41;
  7911. delay = 6;
  7912. blocksize = 64;
  7913. readsize = 256;
  7914. ;
  7915. # AT90PWM2 has Signature Bytes: 0x1E 0x93 0x81.
  7916. memory "signature"
  7917. size = 3;
  7918. read = "0 0 1 1 0 0 0 0 0 0 x x x x x x",
  7919. "x x x x x x a1 a0 o o o o o o o o";
  7920. ;
  7921. memory "lock"
  7922. size = 1;
  7923. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  7924. "x x x x x x x x 1 1 i i i i i i";
  7925. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  7926. "x x x x x x x x x x o o o o o o";
  7927. min_write_delay = 9000;
  7928. max_write_delay = 9000;
  7929. ;
  7930. memory "lfuse"
  7931. size = 1;
  7932. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  7933. "x x x x x x x x i i i i i i i i";
  7934. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  7935. "x x x x x x x x o o o o o o o o";
  7936. min_write_delay = 9000;
  7937. max_write_delay = 9000;
  7938. ;
  7939. memory "hfuse"
  7940. size = 1;
  7941. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  7942. "x x x x x x x x i i i i i i i i";
  7943. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  7944. "x x x x x x x x o o o o o o o o";
  7945. min_write_delay = 9000;
  7946. max_write_delay = 9000;
  7947. ;
  7948. memory "efuse"
  7949. size = 1;
  7950. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  7951. "x x x x x x x x i i i i i i i i";
  7952. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  7953. "x x x x x x x x o o o o o o o o";
  7954. min_write_delay = 9000;
  7955. max_write_delay = 9000;
  7956. ;
  7957. memory "calibration"
  7958. size = 1;
  7959. read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
  7960. "0 0 0 0 0 0 0 0 o o o o o o o o";
  7961. ;
  7962. ;
  7963. #------------------------------------------------------------
  7964. # AT90PWM3
  7965. #------------------------------------------------------------
  7966. # Completely identical to AT90PWM2 (including the signature!)
  7967. part parent "pwm2"
  7968. id = "pwm3";
  7969. desc = "AT90PWM3";
  7970. ;
  7971. #------------------------------------------------------------
  7972. # AT90PWM2B
  7973. #------------------------------------------------------------
  7974. # Same as AT90PWM2 but different signature.
  7975. part parent "pwm2"
  7976. id = "pwm2b";
  7977. desc = "AT90PWM2B";
  7978. signature = 0x1e 0x93 0x83;
  7979. ocdrev = 1;
  7980. ;
  7981. #------------------------------------------------------------
  7982. # AT90PWM3B
  7983. #------------------------------------------------------------
  7984. # Completely identical to AT90PWM2B (including the signature!)
  7985. part parent "pwm2b"
  7986. id = "pwm3b";
  7987. desc = "AT90PWM3B";
  7988. ocdrev = 1;
  7989. ;
  7990. #------------------------------------------------------------
  7991. # AT90PWM316
  7992. #------------------------------------------------------------
  7993. # Similar to AT90PWM3B, but with 16 kiB flash, 512 B EEPROM, and 1024 B SRAM.
  7994. part parent "pwm3b"
  7995. id = "pwm316";
  7996. desc = "AT90PWM316";
  7997. signature = 0x1e 0x94 0x83;
  7998. ocdrev = 1;
  7999. memory "flash"
  8000. paged = yes;
  8001. size = 16384;
  8002. page_size = 128;
  8003. num_pages = 128;
  8004. min_write_delay = 4500;
  8005. max_write_delay = 4500;
  8006. readback_p1 = 0xff;
  8007. readback_p2 = 0xff;
  8008. read_lo = " 0 0 1 0 0 0 0 0",
  8009. " 0 0 a13 a12 a11 a10 a9 a8",
  8010. " a7 a6 a5 a4 a3 a2 a1 a0",
  8011. " o o o o o o o o";
  8012. read_hi = " 0 0 1 0 1 0 0 0",
  8013. " 0 0 a13 a12 a11 a10 a9 a8",
  8014. " a7 a6 a5 a4 a3 a2 a1 a0",
  8015. " o o o o o o o o";
  8016. loadpage_lo = " 0 1 0 0 0 0 0 0",
  8017. " 0 0 x x x x x x",
  8018. " x x a5 a4 a3 a2 a1 a0",
  8019. " i i i i i i i i";
  8020. loadpage_hi = " 0 1 0 0 1 0 0 0",
  8021. " 0 0 x x x x x x",
  8022. " x x a5 a4 a3 a2 a1 a0",
  8023. " i i i i i i i i";
  8024. writepage = " 0 1 0 0 1 1 0 0",
  8025. " 0 0 a13 a12 a11 a10 a9 a8",
  8026. " a7 a6 x x x x x x",
  8027. " x x x x x x x x";
  8028. mode = 0x21;
  8029. delay = 6;
  8030. blocksize = 128;
  8031. readsize = 256;
  8032. ;
  8033. ;
  8034. #------------------------------------------------------------
  8035. # AT90PWM216
  8036. #------------------------------------------------------------
  8037. # Completely identical to AT90PWM316 (including the signature!)
  8038. part parent "pwm316"
  8039. id = "pwm216";
  8040. desc = "AT90PWM216";
  8041. ;
  8042. #------------------------------------------------------------
  8043. # ATtiny25
  8044. #------------------------------------------------------------
  8045. part
  8046. id = "t25";
  8047. desc = "ATtiny25";
  8048. has_debugwire = yes;
  8049. flash_instr = 0xB4, 0x02, 0x12;
  8050. eeprom_instr = 0xBB, 0xFF, 0xBB, 0xEE, 0xBB, 0xCC, 0xB2, 0x0D,
  8051. 0xBC, 0x02, 0xB4, 0x02, 0xBA, 0x0D, 0xBB, 0xBC,
  8052. 0x99, 0xE1, 0xBB, 0xAC;
  8053. ## no STK500 devcode in XML file, use the ATtiny45 one
  8054. stk500_devcode = 0x14;
  8055. ## avr910_devcode = ?;
  8056. ## Try the AT90S2313 devcode:
  8057. avr910_devcode = 0x20;
  8058. signature = 0x1e 0x91 0x08;
  8059. reset = io;
  8060. chip_erase_delay = 4500;
  8061. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  8062. "x x x x x x x x x x x x x x x x";
  8063. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
  8064. "x x x x x x x x x x x x x x x x";
  8065. timeout = 200;
  8066. stabdelay = 100;
  8067. cmdexedelay = 25;
  8068. synchloops = 32;
  8069. bytedelay = 0;
  8070. pollindex = 3;
  8071. pollvalue = 0x53;
  8072. predelay = 1;
  8073. postdelay = 1;
  8074. pollmethod = 1;
  8075. hvsp_controlstack =
  8076. 0x4C, 0x0C, 0x1C, 0x2C, 0x3C, 0x64, 0x74, 0x66,
  8077. 0x68, 0x78, 0x68, 0x68, 0x7A, 0x6A, 0x68, 0x78,
  8078. 0x78, 0x7D, 0x6D, 0x0C, 0x80, 0x40, 0x20, 0x10,
  8079. 0x11, 0x08, 0x04, 0x02, 0x03, 0x08, 0x04, 0x00;
  8080. hventerstabdelay = 100;
  8081. hvspcmdexedelay = 0;
  8082. synchcycles = 6;
  8083. latchcycles = 1;
  8084. togglevtg = 1;
  8085. poweroffdelay = 25;
  8086. resetdelayms = 1;
  8087. resetdelayus = 0;
  8088. hvleavestabdelay = 100;
  8089. resetdelay = 25;
  8090. chiperasepolltimeout = 40;
  8091. chiperasetime = 0;
  8092. programfusepolltimeout = 25;
  8093. programlockpolltimeout = 25;
  8094. ocdrev = 1;
  8095. memory "eeprom"
  8096. size = 128;
  8097. paged = no;
  8098. page_size = 4;
  8099. min_write_delay = 4000;
  8100. max_write_delay = 4500;
  8101. readback_p1 = 0xff;
  8102. readback_p2 = 0xff;
  8103. read = "1 0 1 0 0 0 0 0 0 0 0 x x x x x",
  8104. "x a6 a5 a4 a3 a2 a1 a0 o o o o o o o o";
  8105. write = "1 1 0 0 0 0 0 0 0 0 0 x x x x x",
  8106. "x a6 a5 a4 a3 a2 a1 a0 i i i i i i i i";
  8107. loadpage_lo = " 1 1 0 0 0 0 0 1",
  8108. " 0 0 0 0 0 0 0 0",
  8109. " 0 0 0 0 0 0 a1 a0",
  8110. " i i i i i i i i";
  8111. writepage = " 1 1 0 0 0 0 1 0",
  8112. " 0 0 x x x x x x",
  8113. " x a6 a5 a4 a3 a2 0 0",
  8114. " x x x x x x x x";
  8115. mode = 0x41;
  8116. delay = 6;
  8117. blocksize = 4;
  8118. readsize = 256;
  8119. ;
  8120. memory "flash"
  8121. paged = yes;
  8122. size = 2048;
  8123. page_size = 32;
  8124. num_pages = 64;
  8125. min_write_delay = 4500;
  8126. max_write_delay = 4500;
  8127. readback_p1 = 0xff;
  8128. readback_p2 = 0xff;
  8129. read_lo = " 0 0 1 0 0 0 0 0",
  8130. " 0 0 0 0 0 0 a9 a8",
  8131. " a7 a6 a5 a4 a3 a2 a1 a0",
  8132. " o o o o o o o o";
  8133. read_hi = " 0 0 1 0 1 0 0 0",
  8134. " 0 0 0 0 0 0 a9 a8",
  8135. " a7 a6 a5 a4 a3 a2 a1 a0",
  8136. " o o o o o o o o";
  8137. loadpage_lo = " 0 1 0 0 0 0 0 0",
  8138. " 0 0 0 x x x x x",
  8139. " x x x x a3 a2 a1 a0",
  8140. " i i i i i i i i";
  8141. loadpage_hi = " 0 1 0 0 1 0 0 0",
  8142. " 0 0 0 x x x x x",
  8143. " x x x x a3 a2 a1 a0",
  8144. " i i i i i i i i";
  8145. writepage = " 0 1 0 0 1 1 0 0",
  8146. " 0 0 0 0 0 0 a9 a8",
  8147. " a7 a6 a5 a4 x x x x",
  8148. " x x x x x x x x";
  8149. mode = 0x41;
  8150. delay = 6;
  8151. blocksize = 32;
  8152. readsize = 256;
  8153. ;
  8154. # ATtiny25 has Signature Bytes: 0x1E 0x91 0x08.
  8155. memory "signature"
  8156. size = 3;
  8157. read = "0 0 1 1 0 0 0 0 0 0 0 x x x x x",
  8158. "x x x x x x a1 a0 o o o o o o o o";
  8159. ;
  8160. memory "lock"
  8161. size = 1;
  8162. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  8163. "x x x x x x x x 1 1 i i i i i i";
  8164. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  8165. "0 0 0 0 0 0 0 0 o o o o o o o o";
  8166. min_write_delay = 9000;
  8167. max_write_delay = 9000;
  8168. ;
  8169. memory "lfuse"
  8170. size = 1;
  8171. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  8172. "x x x x x x x x i i i i i i i i";
  8173. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  8174. "x x x x x x x x o o o o o o o o";
  8175. min_write_delay = 9000;
  8176. max_write_delay = 9000;
  8177. ;
  8178. memory "hfuse"
  8179. size = 1;
  8180. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  8181. "x x x x x x x x i i i i i i i i";
  8182. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  8183. "x x x x x x x x o o o o o o o o";
  8184. min_write_delay = 9000;
  8185. max_write_delay = 9000;
  8186. ;
  8187. memory "efuse"
  8188. size = 1;
  8189. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  8190. "x x x x x x x x x x x x x x x i";
  8191. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  8192. "x x x x x x x x o o o o o o o o";
  8193. min_write_delay = 9000;
  8194. max_write_delay = 9000;
  8195. ;
  8196. memory "calibration"
  8197. size = 1;
  8198. read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
  8199. "0 0 0 0 0 0 0 a0 o o o o o o o o";
  8200. ;
  8201. ;
  8202. #------------------------------------------------------------
  8203. # ATtiny45
  8204. #------------------------------------------------------------
  8205. part
  8206. id = "t45";
  8207. desc = "ATtiny45";
  8208. has_debugwire = yes;
  8209. flash_instr = 0xB4, 0x02, 0x12;
  8210. eeprom_instr = 0xBB, 0xFF, 0xBB, 0xEE, 0xBB, 0xCC, 0xB2, 0x0D,
  8211. 0xBC, 0x02, 0xB4, 0x02, 0xBA, 0x0D, 0xBB, 0xBC,
  8212. 0x99, 0xE1, 0xBB, 0xAC;
  8213. stk500_devcode = 0x14;
  8214. ## avr910_devcode = ?;
  8215. ## Try the AT90S2313 devcode:
  8216. avr910_devcode = 0x20;
  8217. signature = 0x1e 0x92 0x06;
  8218. reset = io;
  8219. chip_erase_delay = 4500;
  8220. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  8221. "x x x x x x x x x x x x x x x x";
  8222. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
  8223. "x x x x x x x x x x x x x x x x";
  8224. timeout = 200;
  8225. stabdelay = 100;
  8226. cmdexedelay = 25;
  8227. synchloops = 32;
  8228. bytedelay = 0;
  8229. pollindex = 3;
  8230. pollvalue = 0x53;
  8231. predelay = 1;
  8232. postdelay = 1;
  8233. pollmethod = 1;
  8234. hvsp_controlstack =
  8235. 0x4C, 0x0C, 0x1C, 0x2C, 0x3C, 0x64, 0x74, 0x66,
  8236. 0x68, 0x78, 0x68, 0x68, 0x7A, 0x6A, 0x68, 0x78,
  8237. 0x78, 0x7D, 0x6D, 0x0C, 0x80, 0x40, 0x20, 0x10,
  8238. 0x11, 0x08, 0x04, 0x02, 0x03, 0x08, 0x04, 0x00;
  8239. hventerstabdelay = 100;
  8240. progmodedelay = 0;
  8241. hvspcmdexedelay = 0;
  8242. synchcycles = 6;
  8243. latchcycles = 1;
  8244. togglevtg = 1;
  8245. poweroffdelay = 25;
  8246. resetdelayms = 1;
  8247. resetdelayus = 0;
  8248. hvleavestabdelay = 100;
  8249. resetdelay = 25;
  8250. chiperasepolltimeout = 40;
  8251. chiperasetime = 0;
  8252. programfusepolltimeout = 25;
  8253. programlockpolltimeout = 25;
  8254. ocdrev = 1;
  8255. memory "eeprom"
  8256. size = 256;
  8257. page_size = 4;
  8258. min_write_delay = 4000;
  8259. max_write_delay = 4500;
  8260. readback_p1 = 0xff;
  8261. readback_p2 = 0xff;
  8262. read = "1 0 1 0 0 0 0 0 0 0 0 x x x x x",
  8263. "a7 a6 a5 a4 a3 a2 a1 a0 o o o o o o o o";
  8264. write = "1 1 0 0 0 0 0 0 0 0 0 x x x x x",
  8265. "a7 a6 a5 a4 a3 a2 a1 a0 i i i i i i i i";
  8266. loadpage_lo = " 1 1 0 0 0 0 0 1",
  8267. " 0 0 0 0 0 0 0 0",
  8268. " 0 0 0 0 0 0 a1 a0",
  8269. " i i i i i i i i";
  8270. writepage = " 1 1 0 0 0 0 1 0",
  8271. " 0 0 x x x x x x",
  8272. " a7 a6 a5 a4 a3 a2 0 0",
  8273. " x x x x x x x x";
  8274. mode = 0x41;
  8275. delay = 6;
  8276. blocksize = 4;
  8277. readsize = 256;
  8278. ;
  8279. memory "flash"
  8280. paged = yes;
  8281. size = 4096;
  8282. page_size = 64;
  8283. num_pages = 64;
  8284. min_write_delay = 4500;
  8285. max_write_delay = 4500;
  8286. readback_p1 = 0xff;
  8287. readback_p2 = 0xff;
  8288. read_lo = " 0 0 1 0 0 0 0 0",
  8289. " 0 0 0 0 0 a10 a9 a8",
  8290. " a7 a6 a5 a4 a3 a2 a1 a0",
  8291. " o o o o o o o o";
  8292. read_hi = " 0 0 1 0 1 0 0 0",
  8293. " 0 0 0 0 0 a10 a9 a8",
  8294. " a7 a6 a5 a4 a3 a2 a1 a0",
  8295. " o o o o o o o o";
  8296. loadpage_lo = " 0 1 0 0 0 0 0 0",
  8297. " 0 0 0 x x x x x",
  8298. " x x x a4 a3 a2 a1 a0",
  8299. " i i i i i i i i";
  8300. loadpage_hi = " 0 1 0 0 1 0 0 0",
  8301. " 0 0 0 x x x x x",
  8302. " x x x a4 a3 a2 a1 a0",
  8303. " i i i i i i i i";
  8304. writepage = " 0 1 0 0 1 1 0 0",
  8305. " 0 0 0 0 0 a10 a9 a8",
  8306. " a7 a6 a5 x x x x x",
  8307. " x x x x x x x x";
  8308. mode = 0x41;
  8309. delay = 6;
  8310. blocksize = 32;
  8311. readsize = 256;
  8312. ;
  8313. # ATtiny45 has Signature Bytes: 0x1E 0x92 0x08. (Data sheet 2586C-AVR-06/05 (doc2586.pdf) indicates otherwise!)
  8314. memory "signature"
  8315. size = 3;
  8316. read = "0 0 1 1 0 0 0 0 0 0 0 x x x x x",
  8317. "x x x x x x a1 a0 o o o o o o o o";
  8318. ;
  8319. memory "lock"
  8320. size = 1;
  8321. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  8322. "x x x x x x x x 1 1 i i i i i i";
  8323. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  8324. "0 0 0 0 0 0 0 0 o o o o o o o o";
  8325. min_write_delay = 9000;
  8326. max_write_delay = 9000;
  8327. ;
  8328. memory "lfuse"
  8329. size = 1;
  8330. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  8331. "x x x x x x x x i i i i i i i i";
  8332. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  8333. "x x x x x x x x o o o o o o o o";
  8334. min_write_delay = 9000;
  8335. max_write_delay = 9000;
  8336. ;
  8337. memory "hfuse"
  8338. size = 1;
  8339. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  8340. "x x x x x x x x i i i i i i i i";
  8341. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  8342. "x x x x x x x x o o o o o o o o";
  8343. min_write_delay = 9000;
  8344. max_write_delay = 9000;
  8345. ;
  8346. memory "efuse"
  8347. size = 1;
  8348. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  8349. "x x x x x x x x x x x x x x x i";
  8350. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  8351. "x x x x x x x x o o o o o o o o";
  8352. min_write_delay = 9000;
  8353. max_write_delay = 9000;
  8354. ;
  8355. memory "calibration"
  8356. size = 1;
  8357. read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
  8358. "0 0 0 0 0 0 0 a0 o o o o o o o o";
  8359. ;
  8360. ;
  8361. #------------------------------------------------------------
  8362. # ATtiny85
  8363. #------------------------------------------------------------
  8364. part
  8365. id = "t85";
  8366. desc = "ATtiny85";
  8367. has_debugwire = yes;
  8368. flash_instr = 0xB4, 0x02, 0x12;
  8369. eeprom_instr = 0xBB, 0xFF, 0xBB, 0xEE, 0xBB, 0xCC, 0xB2, 0x0D,
  8370. 0xBC, 0x02, 0xB4, 0x02, 0xBA, 0x0D, 0xBB, 0xBC,
  8371. 0x99, 0xE1, 0xBB, 0xAC;
  8372. ## no STK500 devcode in XML file, use the ATtiny45 one
  8373. stk500_devcode = 0x14;
  8374. ## avr910_devcode = ?;
  8375. ## Try the AT90S2313 devcode:
  8376. avr910_devcode = 0x20;
  8377. signature = 0x1e 0x93 0x0b;
  8378. reset = io;
  8379. chip_erase_delay = 4500;
  8380. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  8381. "x x x x x x x x x x x x x x x x";
  8382. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
  8383. "x x x x x x x x x x x x x x x x";
  8384. timeout = 200;
  8385. stabdelay = 100;
  8386. cmdexedelay = 25;
  8387. synchloops = 32;
  8388. bytedelay = 0;
  8389. pollindex = 3;
  8390. pollvalue = 0x53;
  8391. predelay = 1;
  8392. postdelay = 1;
  8393. pollmethod = 1;
  8394. hvsp_controlstack =
  8395. 0x4C, 0x0C, 0x1C, 0x2C, 0x3C, 0x64, 0x74, 0x66,
  8396. 0x68, 0x78, 0x68, 0x68, 0x7A, 0x6A, 0x68, 0x78,
  8397. 0x78, 0x7D, 0x6D, 0x0C, 0x80, 0x40, 0x20, 0x10,
  8398. 0x11, 0x08, 0x04, 0x02, 0x03, 0x08, 0x04, 0x00;
  8399. hventerstabdelay = 100;
  8400. hvspcmdexedelay = 0;
  8401. synchcycles = 6;
  8402. latchcycles = 1;
  8403. togglevtg = 1;
  8404. poweroffdelay = 25;
  8405. resetdelayms = 1;
  8406. resetdelayus = 0;
  8407. hvleavestabdelay = 100;
  8408. resetdelay = 25;
  8409. chiperasepolltimeout = 40;
  8410. chiperasetime = 0;
  8411. programfusepolltimeout = 25;
  8412. programlockpolltimeout = 25;
  8413. ocdrev = 1;
  8414. memory "eeprom"
  8415. size = 512;
  8416. paged = no;
  8417. page_size = 4;
  8418. min_write_delay = 4000;
  8419. max_write_delay = 4500;
  8420. readback_p1 = 0xff;
  8421. readback_p2 = 0xff;
  8422. read = "1 0 1 0 0 0 0 0 0 0 0 x x x x a8",
  8423. "a7 a6 a5 a4 a3 a2 a1 a0 o o o o o o o o";
  8424. write = "1 1 0 0 0 0 0 0 0 0 0 x x x x a8",
  8425. "a7 a6 a5 a4 a3 a2 a1 a0 i i i i i i i i";
  8426. loadpage_lo = " 1 1 0 0 0 0 0 1",
  8427. " 0 0 0 0 0 0 0 0",
  8428. " 0 0 0 0 0 0 a1 a0",
  8429. " i i i i i i i i";
  8430. writepage = " 1 1 0 0 0 0 1 0",
  8431. " 0 0 x x x x x a8",
  8432. " a7 a6 a5 a4 a3 a2 0 0",
  8433. " x x x x x x x x";
  8434. mode = 0x41;
  8435. delay = 6;
  8436. blocksize = 4;
  8437. readsize = 256;
  8438. ;
  8439. memory "flash"
  8440. paged = yes;
  8441. size = 8192;
  8442. page_size = 64;
  8443. num_pages = 128;
  8444. min_write_delay = 4500;
  8445. max_write_delay = 4500;
  8446. readback_p1 = 0xff;
  8447. readback_p2 = 0xff;
  8448. read_lo = " 0 0 1 0 0 0 0 0",
  8449. " 0 0 0 0 a11 a10 a9 a8",
  8450. " a7 a6 a5 a4 a3 a2 a1 a0",
  8451. " o o o o o o o o";
  8452. read_hi = " 0 0 1 0 1 0 0 0",
  8453. " 0 0 0 0 a11 a10 a9 a8",
  8454. " a7 a6 a5 a4 a3 a2 a1 a0",
  8455. " o o o o o o o o";
  8456. loadpage_lo = " 0 1 0 0 0 0 0 0",
  8457. " 0 0 0 x x x x x",
  8458. " x x x a4 a3 a2 a1 a0",
  8459. " i i i i i i i i";
  8460. loadpage_hi = " 0 1 0 0 1 0 0 0",
  8461. " 0 0 0 x x x x x",
  8462. " x x x a4 a3 a2 a1 a0",
  8463. " i i i i i i i i";
  8464. writepage = " 0 1 0 0 1 1 0 0",
  8465. " 0 0 0 0 a11 a10 a9 a8",
  8466. " a7 a6 a5 x x x x x",
  8467. " x x x x x x x x";
  8468. mode = 0x41;
  8469. delay = 6;
  8470. blocksize = 32;
  8471. readsize = 256;
  8472. ;
  8473. # ATtiny85 has Signature Bytes: 0x1E 0x93 0x08.
  8474. memory "signature"
  8475. size = 3;
  8476. read = "0 0 1 1 0 0 0 0 0 0 0 x x x x x",
  8477. "x x x x x x a1 a0 o o o o o o o o";
  8478. ;
  8479. memory "lock"
  8480. size = 1;
  8481. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  8482. "x x x x x x x x 1 1 i i i i i i";
  8483. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  8484. "0 0 0 0 0 0 0 0 o o o o o o o o";
  8485. min_write_delay = 9000;
  8486. max_write_delay = 9000;
  8487. ;
  8488. memory "lfuse"
  8489. size = 1;
  8490. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  8491. "x x x x x x x x i i i i i i i i";
  8492. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  8493. "x x x x x x x x o o o o o o o o";
  8494. min_write_delay = 9000;
  8495. max_write_delay = 9000;
  8496. ;
  8497. memory "hfuse"
  8498. size = 1;
  8499. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  8500. "x x x x x x x x i i i i i i i i";
  8501. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  8502. "x x x x x x x x o o o o o o o o";
  8503. min_write_delay = 9000;
  8504. max_write_delay = 9000;
  8505. ;
  8506. memory "efuse"
  8507. size = 1;
  8508. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  8509. "x x x x x x x x x x x x x x x i";
  8510. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  8511. "x x x x x x x x o o o o o o o o";
  8512. min_write_delay = 9000;
  8513. max_write_delay = 9000;
  8514. ;
  8515. memory "calibration"
  8516. size = 1;
  8517. read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
  8518. "0 0 0 0 0 0 0 a0 o o o o o o o o";
  8519. ;
  8520. ;
  8521. #------------------------------------------------------------
  8522. # ATmega640
  8523. #------------------------------------------------------------
  8524. # Almost same as ATmega1280, except for different memory sizes
  8525. part
  8526. id = "m640";
  8527. desc = "ATmega640";
  8528. signature = 0x1e 0x96 0x08;
  8529. has_jtag = yes;
  8530. # stk500_devcode = 0xB2;
  8531. # avr910_devcode = 0x43;
  8532. chip_erase_delay = 9000;
  8533. pagel = 0xD7;
  8534. bs2 = 0xA0;
  8535. reset = dedicated;
  8536. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  8537. "x x x x x x x x x x x x x x x x";
  8538. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 0 0 0 0 0",
  8539. "x x x x x x x x x x x x x x x x";
  8540. timeout = 200;
  8541. stabdelay = 100;
  8542. cmdexedelay = 25;
  8543. synchloops = 32;
  8544. bytedelay = 0;
  8545. pollindex = 3;
  8546. pollvalue = 0x53;
  8547. predelay = 1;
  8548. postdelay = 1;
  8549. pollmethod = 1;
  8550. pp_controlstack =
  8551. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  8552. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  8553. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  8554. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  8555. hventerstabdelay = 100;
  8556. progmodedelay = 0;
  8557. latchcycles = 5;
  8558. togglevtg = 1;
  8559. poweroffdelay = 15;
  8560. resetdelayms = 1;
  8561. resetdelayus = 0;
  8562. hvleavestabdelay = 15;
  8563. chiperasepulsewidth = 0;
  8564. chiperasepolltimeout = 10;
  8565. programfusepulsewidth = 0;
  8566. programfusepolltimeout = 5;
  8567. programlockpulsewidth = 0;
  8568. programlockpolltimeout = 5;
  8569. idr = 0x31;
  8570. spmcr = 0x57;
  8571. rampz = 0x3b;
  8572. allowfullpagebitstream = no;
  8573. ocdrev = 3;
  8574. memory "eeprom"
  8575. paged = no; /* leave this "no" */
  8576. page_size = 8; /* for parallel programming */
  8577. size = 4096;
  8578. min_write_delay = 9000;
  8579. max_write_delay = 9000;
  8580. readback_p1 = 0x00;
  8581. readback_p2 = 0x00;
  8582. read = " 1 0 1 0 0 0 0 0",
  8583. " x x x x a11 a10 a9 a8",
  8584. " a7 a6 a5 a4 a3 a2 a1 a0",
  8585. " o o o o o o o o";
  8586. write = " 1 1 0 0 0 0 0 0",
  8587. " x x x x a11 a10 a9 a8",
  8588. " a7 a6 a5 a4 a3 a2 a1 a0",
  8589. " i i i i i i i i";
  8590. loadpage_lo = " 1 1 0 0 0 0 0 1",
  8591. " 0 0 0 0 0 0 0 0",
  8592. " 0 0 0 0 0 a2 a1 a0",
  8593. " i i i i i i i i";
  8594. writepage = " 1 1 0 0 0 0 1 0",
  8595. " 0 0 x x a11 a10 a9 a8",
  8596. " a7 a6 a5 a4 a3 0 0 0",
  8597. " x x x x x x x x";
  8598. mode = 0x41;
  8599. delay = 10;
  8600. blocksize = 8;
  8601. readsize = 256;
  8602. ;
  8603. memory "flash"
  8604. paged = yes;
  8605. size = 65536;
  8606. page_size = 256;
  8607. num_pages = 256;
  8608. min_write_delay = 4500;
  8609. max_write_delay = 4500;
  8610. readback_p1 = 0x00;
  8611. readback_p2 = 0x00;
  8612. read_lo = " 0 0 1 0 0 0 0 0",
  8613. " 0 a14 a13 a12 a11 a10 a9 a8",
  8614. " a7 a6 a5 a4 a3 a2 a1 a0",
  8615. " o o o o o o o o";
  8616. read_hi = " 0 0 1 0 1 0 0 0",
  8617. " 0 a14 a13 a12 a11 a10 a9 a8",
  8618. " a7 a6 a5 a4 a3 a2 a1 a0",
  8619. " o o o o o o o o";
  8620. loadpage_lo = " 0 1 0 0 0 0 0 0",
  8621. " x x x x x x x x",
  8622. " x a6 a5 a4 a3 a2 a1 a0",
  8623. " i i i i i i i i";
  8624. loadpage_hi = " 0 1 0 0 1 0 0 0",
  8625. " x x x x x x x x",
  8626. " x a6 a5 a4 a3 a2 a1 a0",
  8627. " i i i i i i i i";
  8628. writepage = " 0 1 0 0 1 1 0 0",
  8629. " 0 a14 a13 a12 a11 a10 a9 a8",
  8630. " a7 x x x x x x x",
  8631. " x x x x x x x x";
  8632. mode = 0x41;
  8633. delay = 10;
  8634. blocksize = 256;
  8635. readsize = 256;
  8636. ;
  8637. memory "lfuse"
  8638. size = 1;
  8639. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  8640. "x x x x x x x x i i i i i i i i";
  8641. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  8642. "x x x x x x x x o o o o o o o o";
  8643. min_write_delay = 9000;
  8644. max_write_delay = 9000;
  8645. ;
  8646. memory "hfuse"
  8647. size = 1;
  8648. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  8649. "x x x x x x x x i i i i i i i i";
  8650. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  8651. "x x x x x x x x o o o o o o o o";
  8652. min_write_delay = 9000;
  8653. max_write_delay = 9000;
  8654. ;
  8655. memory "efuse"
  8656. size = 1;
  8657. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  8658. "x x x x x x x x x x x x x i i i";
  8659. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  8660. "x x x x x x x x o o o o o o o o";
  8661. min_write_delay = 9000;
  8662. max_write_delay = 9000;
  8663. ;
  8664. memory "lock"
  8665. size = 1;
  8666. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  8667. "x x x x x x x x x x o o o o o o";
  8668. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  8669. "x x x x x x x x 1 1 i i i i i i";
  8670. min_write_delay = 9000;
  8671. max_write_delay = 9000;
  8672. ;
  8673. memory "calibration"
  8674. size = 1;
  8675. read = "0 0 1 1 1 0 0 0 x x x x x x x x",
  8676. "0 0 0 0 0 0 0 0 o o o o o o o o";
  8677. ;
  8678. memory "signature"
  8679. size = 3;
  8680. read = "0 0 1 1 0 0 0 0 x x x x x x x x",
  8681. "x x x x x x a1 a0 o o o o o o o o";
  8682. ;
  8683. ;
  8684. #------------------------------------------------------------
  8685. # ATmega1280
  8686. #------------------------------------------------------------
  8687. part
  8688. id = "m1280";
  8689. desc = "ATmega1280";
  8690. signature = 0x1e 0x97 0x03;
  8691. has_jtag = yes;
  8692. # stk500_devcode = 0xB2;
  8693. # avr910_devcode = 0x43;
  8694. chip_erase_delay = 9000;
  8695. pagel = 0xD7;
  8696. bs2 = 0xA0;
  8697. reset = dedicated;
  8698. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  8699. "x x x x x x x x x x x x x x x x";
  8700. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 0 0 0 0 0",
  8701. "x x x x x x x x x x x x x x x x";
  8702. timeout = 200;
  8703. stabdelay = 100;
  8704. cmdexedelay = 25;
  8705. synchloops = 32;
  8706. bytedelay = 0;
  8707. pollindex = 3;
  8708. pollvalue = 0x53;
  8709. predelay = 1;
  8710. postdelay = 1;
  8711. pollmethod = 1;
  8712. pp_controlstack =
  8713. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  8714. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  8715. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  8716. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  8717. hventerstabdelay = 100;
  8718. progmodedelay = 0;
  8719. latchcycles = 5;
  8720. togglevtg = 1;
  8721. poweroffdelay = 15;
  8722. resetdelayms = 1;
  8723. resetdelayus = 0;
  8724. hvleavestabdelay = 15;
  8725. chiperasepulsewidth = 0;
  8726. chiperasepolltimeout = 10;
  8727. programfusepulsewidth = 0;
  8728. programfusepolltimeout = 5;
  8729. programlockpulsewidth = 0;
  8730. programlockpolltimeout = 5;
  8731. idr = 0x31;
  8732. spmcr = 0x57;
  8733. rampz = 0x3b;
  8734. allowfullpagebitstream = no;
  8735. ocdrev = 3;
  8736. memory "eeprom"
  8737. paged = no; /* leave this "no" */
  8738. page_size = 8; /* for parallel programming */
  8739. size = 4096;
  8740. min_write_delay = 9000;
  8741. max_write_delay = 9000;
  8742. readback_p1 = 0x00;
  8743. readback_p2 = 0x00;
  8744. read = " 1 0 1 0 0 0 0 0",
  8745. " x x x x a11 a10 a9 a8",
  8746. " a7 a6 a5 a4 a3 a2 a1 a0",
  8747. " o o o o o o o o";
  8748. write = " 1 1 0 0 0 0 0 0",
  8749. " x x x x a11 a10 a9 a8",
  8750. " a7 a6 a5 a4 a3 a2 a1 a0",
  8751. " i i i i i i i i";
  8752. loadpage_lo = " 1 1 0 0 0 0 0 1",
  8753. " 0 0 0 0 0 0 0 0",
  8754. " 0 0 0 0 0 a2 a1 a0",
  8755. " i i i i i i i i";
  8756. writepage = " 1 1 0 0 0 0 1 0",
  8757. " 0 0 x x a11 a10 a9 a8",
  8758. " a7 a6 a5 a4 a3 0 0 0",
  8759. " x x x x x x x x";
  8760. mode = 0x41;
  8761. delay = 10;
  8762. blocksize = 8;
  8763. readsize = 256;
  8764. ;
  8765. memory "flash"
  8766. paged = yes;
  8767. size = 131072;
  8768. page_size = 256;
  8769. num_pages = 512;
  8770. min_write_delay = 4500;
  8771. max_write_delay = 4500;
  8772. readback_p1 = 0x00;
  8773. readback_p2 = 0x00;
  8774. read_lo = " 0 0 1 0 0 0 0 0",
  8775. "a15 a14 a13 a12 a11 a10 a9 a8",
  8776. " a7 a6 a5 a4 a3 a2 a1 a0",
  8777. " o o o o o o o o";
  8778. read_hi = " 0 0 1 0 1 0 0 0",
  8779. "a15 a14 a13 a12 a11 a10 a9 a8",
  8780. " a7 a6 a5 a4 a3 a2 a1 a0",
  8781. " o o o o o o o o";
  8782. loadpage_lo = " 0 1 0 0 0 0 0 0",
  8783. " x x x x x x x x",
  8784. " x a6 a5 a4 a3 a2 a1 a0",
  8785. " i i i i i i i i";
  8786. loadpage_hi = " 0 1 0 0 1 0 0 0",
  8787. " x x x x x x x x",
  8788. " x a6 a5 a4 a3 a2 a1 a0",
  8789. " i i i i i i i i";
  8790. writepage = " 0 1 0 0 1 1 0 0",
  8791. "a15 a14 a13 a12 a11 a10 a9 a8",
  8792. " a7 x x x x x x x",
  8793. " x x x x x x x x";
  8794. mode = 0x41;
  8795. delay = 10;
  8796. blocksize = 256;
  8797. readsize = 256;
  8798. ;
  8799. memory "lfuse"
  8800. size = 1;
  8801. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  8802. "x x x x x x x x i i i i i i i i";
  8803. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  8804. "x x x x x x x x o o o o o o o o";
  8805. min_write_delay = 9000;
  8806. max_write_delay = 9000;
  8807. ;
  8808. memory "hfuse"
  8809. size = 1;
  8810. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  8811. "x x x x x x x x i i i i i i i i";
  8812. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  8813. "x x x x x x x x o o o o o o o o";
  8814. min_write_delay = 9000;
  8815. max_write_delay = 9000;
  8816. ;
  8817. memory "efuse"
  8818. size = 1;
  8819. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  8820. "x x x x x x x x x x x x x i i i";
  8821. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  8822. "x x x x x x x x o o o o o o o o";
  8823. min_write_delay = 9000;
  8824. max_write_delay = 9000;
  8825. ;
  8826. memory "lock"
  8827. size = 1;
  8828. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  8829. "x x x x x x x x x x o o o o o o";
  8830. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  8831. "x x x x x x x x 1 1 i i i i i i";
  8832. min_write_delay = 9000;
  8833. max_write_delay = 9000;
  8834. ;
  8835. memory "calibration"
  8836. size = 1;
  8837. read = "0 0 1 1 1 0 0 0 x x x x x x x x",
  8838. "0 0 0 0 0 0 0 0 o o o o o o o o";
  8839. ;
  8840. memory "signature"
  8841. size = 3;
  8842. read = "0 0 1 1 0 0 0 0 x x x x x x x x",
  8843. "x x x x x x a1 a0 o o o o o o o o";
  8844. ;
  8845. ;
  8846. #------------------------------------------------------------
  8847. # ATmega1281
  8848. #------------------------------------------------------------
  8849. # Identical to ATmega1280
  8850. part parent "m1280"
  8851. id = "m1281";
  8852. desc = "ATmega1281";
  8853. signature = 0x1e 0x97 0x04;
  8854. ocdrev = 3;
  8855. ;
  8856. #------------------------------------------------------------
  8857. # ATmega2560
  8858. #------------------------------------------------------------
  8859. part
  8860. id = "m2560";
  8861. desc = "ATmega2560";
  8862. signature = 0x1e 0x98 0x01;
  8863. has_jtag = yes;
  8864. stk500_devcode = 0xB2;
  8865. # avr910_devcode = 0x43;
  8866. chip_erase_delay = 9000;
  8867. pagel = 0xD7;
  8868. bs2 = 0xA0;
  8869. reset = dedicated;
  8870. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  8871. "x x x x x x x x x x x x x x x x";
  8872. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 0 0 0 0 0",
  8873. "x x x x x x x x x x x x x x x x";
  8874. timeout = 200;
  8875. stabdelay = 100;
  8876. cmdexedelay = 25;
  8877. synchloops = 32;
  8878. bytedelay = 0;
  8879. pollindex = 3;
  8880. pollvalue = 0x53;
  8881. predelay = 1;
  8882. postdelay = 1;
  8883. pollmethod = 1;
  8884. pp_controlstack =
  8885. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  8886. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  8887. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  8888. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x02;
  8889. hventerstabdelay = 100;
  8890. progmodedelay = 0;
  8891. latchcycles = 5;
  8892. togglevtg = 1;
  8893. poweroffdelay = 15;
  8894. resetdelayms = 1;
  8895. resetdelayus = 0;
  8896. hvleavestabdelay = 15;
  8897. chiperasepulsewidth = 0;
  8898. chiperasepolltimeout = 10;
  8899. programfusepulsewidth = 0;
  8900. programfusepolltimeout = 5;
  8901. programlockpulsewidth = 0;
  8902. programlockpolltimeout = 5;
  8903. idr = 0x31;
  8904. spmcr = 0x57;
  8905. rampz = 0x3b;
  8906. allowfullpagebitstream = no;
  8907. ocdrev = 4;
  8908. memory "eeprom"
  8909. paged = no; /* leave this "no" */
  8910. page_size = 8; /* for parallel programming */
  8911. size = 4096;
  8912. min_write_delay = 9000;
  8913. max_write_delay = 9000;
  8914. readback_p1 = 0x00;
  8915. readback_p2 = 0x00;
  8916. read = " 1 0 1 0 0 0 0 0",
  8917. " x x x x a11 a10 a9 a8",
  8918. " a7 a6 a5 a4 a3 a2 a1 a0",
  8919. " o o o o o o o o";
  8920. write = " 1 1 0 0 0 0 0 0",
  8921. " x x x x a11 a10 a9 a8",
  8922. " a7 a6 a5 a4 a3 a2 a1 a0",
  8923. " i i i i i i i i";
  8924. loadpage_lo = " 1 1 0 0 0 0 0 1",
  8925. " 0 0 0 0 0 0 0 0",
  8926. " 0 0 0 0 0 a2 a1 a0",
  8927. " i i i i i i i i";
  8928. writepage = " 1 1 0 0 0 0 1 0",
  8929. " 0 0 x x a11 a10 a9 a8",
  8930. " a7 a6 a5 a4 a3 0 0 0",
  8931. " x x x x x x x x";
  8932. mode = 0x41;
  8933. delay = 10;
  8934. blocksize = 8;
  8935. readsize = 256;
  8936. ;
  8937. memory "flash"
  8938. paged = yes;
  8939. size = 262144;
  8940. page_size = 256;
  8941. num_pages = 1024;
  8942. min_write_delay = 4500;
  8943. max_write_delay = 4500;
  8944. readback_p1 = 0x00;
  8945. readback_p2 = 0x00;
  8946. read_lo = " 0 0 1 0 0 0 0 0",
  8947. "a15 a14 a13 a12 a11 a10 a9 a8",
  8948. " a7 a6 a5 a4 a3 a2 a1 a0",
  8949. " o o o o o o o o";
  8950. read_hi = " 0 0 1 0 1 0 0 0",
  8951. "a15 a14 a13 a12 a11 a10 a9 a8",
  8952. " a7 a6 a5 a4 a3 a2 a1 a0",
  8953. " o o o o o o o o";
  8954. loadpage_lo = " 0 1 0 0 0 0 0 0",
  8955. " x x x x x x x x",
  8956. " x a6 a5 a4 a3 a2 a1 a0",
  8957. " i i i i i i i i";
  8958. loadpage_hi = " 0 1 0 0 1 0 0 0",
  8959. " x x x x x x x x",
  8960. " x a6 a5 a4 a3 a2 a1 a0",
  8961. " i i i i i i i i";
  8962. writepage = " 0 1 0 0 1 1 0 0",
  8963. "a15 a14 a13 a12 a11 a10 a9 a8",
  8964. " a7 x x x x x x x",
  8965. " x x x x x x x x";
  8966. load_ext_addr = " 0 1 0 0 1 1 0 1",
  8967. " 0 0 0 0 0 0 0 0",
  8968. " 0 0 0 0 0 0 0 a16",
  8969. " 0 0 0 0 0 0 0 0";
  8970. mode = 0x41;
  8971. delay = 10;
  8972. blocksize = 256;
  8973. readsize = 256;
  8974. ;
  8975. memory "lfuse"
  8976. size = 1;
  8977. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  8978. "x x x x x x x x i i i i i i i i";
  8979. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  8980. "x x x x x x x x o o o o o o o o";
  8981. min_write_delay = 9000;
  8982. max_write_delay = 9000;
  8983. ;
  8984. memory "hfuse"
  8985. size = 1;
  8986. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  8987. "x x x x x x x x i i i i i i i i";
  8988. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  8989. "x x x x x x x x o o o o o o o o";
  8990. min_write_delay = 9000;
  8991. max_write_delay = 9000;
  8992. ;
  8993. memory "efuse"
  8994. size = 1;
  8995. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  8996. "x x x x x x x x x x x x x i i i";
  8997. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  8998. "x x x x x x x x o o o o o o o o";
  8999. min_write_delay = 9000;
  9000. max_write_delay = 9000;
  9001. ;
  9002. memory "lock"
  9003. size = 1;
  9004. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  9005. "x x x x x x x x x x o o o o o o";
  9006. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  9007. "x x x x x x x x 1 1 i i i i i i";
  9008. min_write_delay = 9000;
  9009. max_write_delay = 9000;
  9010. ;
  9011. memory "calibration"
  9012. size = 1;
  9013. read = "0 0 1 1 1 0 0 0 x x x x x x x x",
  9014. "0 0 0 0 0 0 0 0 o o o o o o o o";
  9015. ;
  9016. memory "signature"
  9017. size = 3;
  9018. read = "0 0 1 1 0 0 0 0 x x x x x x x x",
  9019. "x x x x x x a1 a0 o o o o o o o o";
  9020. ;
  9021. ;
  9022. #------------------------------------------------------------
  9023. # ATmega2561
  9024. #------------------------------------------------------------
  9025. part parent "m2560"
  9026. id = "m2561";
  9027. desc = "ATmega2561";
  9028. signature = 0x1e 0x98 0x02;
  9029. ocdrev = 4;
  9030. ;
  9031. #------------------------------------------------------------
  9032. # ATmega128RFA1
  9033. #------------------------------------------------------------
  9034. # Identical to ATmega2561 but half the ROM
  9035. part parent "m2561"
  9036. id = "m128rfa1";
  9037. desc = "ATmega128RFA1";
  9038. signature = 0x1e 0xa7 0x01;
  9039. chip_erase_delay = 55000;
  9040. bs2 = 0xE2;
  9041. ocdrev = 3;
  9042. memory "flash"
  9043. paged = yes;
  9044. size = 131072;
  9045. page_size = 256;
  9046. num_pages = 512;
  9047. min_write_delay = 50000;
  9048. max_write_delay = 50000;
  9049. readback_p1 = 0x00;
  9050. readback_p2 = 0x00;
  9051. read_lo = " 0 0 1 0 0 0 0 0",
  9052. "a15 a14 a13 a12 a11 a10 a9 a8",
  9053. " a7 a6 a5 a4 a3 a2 a1 a0",
  9054. " o o o o o o o o";
  9055. read_hi = " 0 0 1 0 1 0 0 0",
  9056. "a15 a14 a13 a12 a11 a10 a9 a8",
  9057. " a7 a6 a5 a4 a3 a2 a1 a0",
  9058. " o o o o o o o o";
  9059. loadpage_lo = " 0 1 0 0 0 0 0 0",
  9060. " x x x x x x x x",
  9061. " x a6 a5 a4 a3 a2 a1 a0",
  9062. " i i i i i i i i";
  9063. loadpage_hi = " 0 1 0 0 1 0 0 0",
  9064. " x x x x x x x x",
  9065. " x a6 a5 a4 a3 a2 a1 a0",
  9066. " i i i i i i i i";
  9067. writepage = " 0 1 0 0 1 1 0 0",
  9068. "a15 a14 a13 a12 a11 a10 a9 a8",
  9069. " a7 x x x x x x x",
  9070. " x x x x x x x x";
  9071. mode = 0x41;
  9072. delay = 20;
  9073. blocksize = 256;
  9074. readsize = 256;
  9075. ;
  9076. ;
  9077. #------------------------------------------------------------
  9078. # ATmega256RFR2
  9079. #------------------------------------------------------------
  9080. part parent "m2561"
  9081. id = "m256rfr2";
  9082. desc = "ATmega256RFR2";
  9083. signature = 0x1e 0xa8 0x02;
  9084. chip_erase_delay = 18500;
  9085. bs2 = 0xE2;
  9086. memory "eeprom"
  9087. paged = no; /* leave this "no" */
  9088. page_size = 8; /* for parallel programming */
  9089. size = 8192;
  9090. min_write_delay = 13000;
  9091. max_write_delay = 13000;
  9092. readback_p1 = 0x00;
  9093. readback_p2 = 0x00;
  9094. read = " 1 0 1 0 0 0 0 0",
  9095. " x x x a12 a11 a10 a9 a8",
  9096. " a7 a6 a5 a4 a3 a2 a1 a0",
  9097. " o o o o o o o o";
  9098. write = " 1 1 0 0 0 0 0 0",
  9099. " x x x a12 a11 a10 a9 a8",
  9100. " a7 a6 a5 a4 a3 a2 a1 a0",
  9101. " i i i i i i i i";
  9102. loadpage_lo = " 1 1 0 0 0 0 0 1",
  9103. " 0 0 0 0 0 0 0 0",
  9104. " 0 0 0 0 0 a2 a1 a0",
  9105. " i i i i i i i i";
  9106. writepage = " 1 1 0 0 0 0 1 0",
  9107. " 0 0 x a12 a11 a10 a9 a8",
  9108. " a7 a6 a5 a4 a3 0 0 0",
  9109. " x x x x x x x x";
  9110. mode = 0x41;
  9111. delay = 10;
  9112. blocksize = 8;
  9113. readsize = 256;
  9114. ;
  9115. ocdrev = 4;
  9116. ;
  9117. #------------------------------------------------------------
  9118. # ATmega128RFR2
  9119. #------------------------------------------------------------
  9120. part parent "m128rfa1"
  9121. id = "m128rfr2";
  9122. desc = "ATmega128RFR2";
  9123. signature = 0x1e 0xa7 0x02;
  9124. ocdrev = 3;
  9125. ;
  9126. #------------------------------------------------------------
  9127. # ATmega64RFR2
  9128. #------------------------------------------------------------
  9129. part parent "m128rfa1"
  9130. id = "m64rfr2";
  9131. desc = "ATmega64RFR2";
  9132. signature = 0x1e 0xa6 0x02;
  9133. ocdrev = 3;
  9134. memory "flash"
  9135. paged = yes;
  9136. size = 65536;
  9137. page_size = 256;
  9138. num_pages = 256;
  9139. min_write_delay = 50000;
  9140. max_write_delay = 50000;
  9141. readback_p1 = 0x00;
  9142. readback_p2 = 0x00;
  9143. read_lo = " 0 0 1 0 0 0 0 0",
  9144. " 0 a14 a13 a12 a11 a10 a9 a8",
  9145. " a7 a6 a5 a4 a3 a2 a1 a0",
  9146. " o o o o o o o o";
  9147. read_hi = " 0 0 1 0 1 0 0 0",
  9148. " 0 a14 a13 a12 a11 a10 a9 a8",
  9149. " a7 a6 a5 a4 a3 a2 a1 a0",
  9150. " o o o o o o o o";
  9151. loadpage_lo = " 0 1 0 0 0 0 0 0",
  9152. " x x x x x x x x",
  9153. " x a6 a5 a4 a3 a2 a1 a0",
  9154. " i i i i i i i i";
  9155. loadpage_hi = " 0 1 0 0 1 0 0 0",
  9156. " x x x x x x x x",
  9157. " x a6 a5 a4 a3 a2 a1 a0",
  9158. " i i i i i i i i";
  9159. writepage = " 0 1 0 0 1 1 0 0",
  9160. " 0 a14 a13 a12 a11 a10 a9 a8",
  9161. " a7 x x x x x x x",
  9162. " x x x x x x x x";
  9163. mode = 0x41;
  9164. delay = 20;
  9165. blocksize = 256;
  9166. readsize = 256;
  9167. ;
  9168. memory "eeprom"
  9169. paged = no; /* leave this "no" */
  9170. page_size = 8; /* for parallel programming */
  9171. size = 2048;
  9172. min_write_delay = 13000;
  9173. max_write_delay = 13000;
  9174. readback_p1 = 0x00;
  9175. readback_p2 = 0x00;
  9176. read = " 1 0 1 0 0 0 0 0",
  9177. " x x x x x a10 a9 a8",
  9178. " a7 a6 a5 a4 a3 a2 a1 a0",
  9179. " o o o o o o o o";
  9180. write = " 1 1 0 0 0 0 0 0",
  9181. " x x x x x a10 a9 a8",
  9182. " a7 a6 a5 a4 a3 a2 a1 a0",
  9183. " i i i i i i i i";
  9184. loadpage_lo = " 1 1 0 0 0 0 0 1",
  9185. " 0 0 0 0 0 0 0 0",
  9186. " 0 0 0 0 0 a2 a1 a0",
  9187. " i i i i i i i i";
  9188. writepage = " 1 1 0 0 0 0 1 0",
  9189. " 0 0 x x x a10 a9 a8",
  9190. " a7 a6 a5 a4 a3 0 0 0",
  9191. " x x x x x x x x";
  9192. mode = 0x41;
  9193. delay = 10;
  9194. blocksize = 8;
  9195. readsize = 256;
  9196. ;
  9197. ;
  9198. #------------------------------------------------------------
  9199. # ATmega2564RFR2
  9200. #------------------------------------------------------------
  9201. part parent "m256rfr2"
  9202. id = "m2564rfr2";
  9203. desc = "ATmega2564RFR2";
  9204. signature = 0x1e 0xa8 0x03;
  9205. ;
  9206. #------------------------------------------------------------
  9207. # ATmega1284RFR2
  9208. #------------------------------------------------------------
  9209. part parent "m128rfr2"
  9210. id = "m1284rfr2";
  9211. desc = "ATmega1284RFR2";
  9212. signature = 0x1e 0xa7 0x03;
  9213. ;
  9214. #------------------------------------------------------------
  9215. # ATmega644RFR2
  9216. #------------------------------------------------------------
  9217. part parent "m64rfr2"
  9218. id = "m644rfr2";
  9219. desc = "ATmega644RFR2";
  9220. signature = 0x1e 0xa6 0x03;
  9221. ;
  9222. #------------------------------------------------------------
  9223. # ATtiny24
  9224. #------------------------------------------------------------
  9225. part
  9226. id = "t24";
  9227. desc = "ATtiny24";
  9228. has_debugwire = yes;
  9229. flash_instr = 0xB4, 0x07, 0x17;
  9230. eeprom_instr = 0xBB, 0xFF, 0xBB, 0xEE, 0xBB, 0xCC, 0xB2, 0x0D,
  9231. 0xBC, 0x07, 0xB4, 0x07, 0xBA, 0x0D, 0xBB, 0xBC,
  9232. 0x99, 0xE1, 0xBB, 0xAC;
  9233. ## no STK500 devcode in XML file, use the ATtiny45 one
  9234. stk500_devcode = 0x14;
  9235. ## avr910_devcode = ?;
  9236. ## Try the AT90S2313 devcode:
  9237. avr910_devcode = 0x20;
  9238. signature = 0x1e 0x91 0x0b;
  9239. reset = io;
  9240. chip_erase_delay = 4500;
  9241. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  9242. "x x x x x x x x x x x x x x x x";
  9243. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
  9244. "x x x x x x x x x x x x x x x x";
  9245. timeout = 200;
  9246. stabdelay = 100;
  9247. cmdexedelay = 25;
  9248. synchloops = 32;
  9249. bytedelay = 0;
  9250. pollindex = 3;
  9251. pollvalue = 0x53;
  9252. predelay = 1;
  9253. postdelay = 1;
  9254. pollmethod = 1;
  9255. hvsp_controlstack =
  9256. 0x4C, 0x0C, 0x1C, 0x2C, 0x3C, 0x64, 0x74, 0x66,
  9257. 0x68, 0x78, 0x68, 0x68, 0x7A, 0x6A, 0x68, 0x78,
  9258. 0x78, 0x7D, 0x6D, 0x0C, 0x80, 0x40, 0x20, 0x10,
  9259. 0x11, 0x08, 0x04, 0x02, 0x03, 0x08, 0x04, 0x0F;
  9260. hventerstabdelay = 100;
  9261. hvspcmdexedelay = 0;
  9262. synchcycles = 6;
  9263. latchcycles = 1;
  9264. togglevtg = 1;
  9265. poweroffdelay = 25;
  9266. resetdelayms = 0;
  9267. resetdelayus = 70;
  9268. hvleavestabdelay = 100;
  9269. resetdelay = 25;
  9270. chiperasepolltimeout = 40;
  9271. chiperasetime = 0;
  9272. programfusepolltimeout = 25;
  9273. programlockpolltimeout = 25;
  9274. ocdrev = 1;
  9275. memory "eeprom"
  9276. size = 128;
  9277. paged = no;
  9278. page_size = 4;
  9279. min_write_delay = 4000;
  9280. max_write_delay = 4500;
  9281. readback_p1 = 0xff;
  9282. readback_p2 = 0xff;
  9283. read = "1 0 1 0 0 0 0 0 0 0 0 x x x x x",
  9284. "x a6 a5 a4 a3 a2 a1 a0 o o o o o o o o";
  9285. write = "1 1 0 0 0 0 0 0 0 0 0 x x x x x",
  9286. "x a6 a5 a4 a3 a2 a1 a0 i i i i i i i i";
  9287. loadpage_lo = " 1 1 0 0 0 0 0 1",
  9288. " 0 0 0 0 0 0 0 0",
  9289. " 0 0 0 0 0 0 a1 a0",
  9290. " i i i i i i i i";
  9291. writepage = " 1 1 0 0 0 0 1 0",
  9292. " 0 0 x x x x x x",
  9293. " x a6 a5 a4 a3 a2 0 0",
  9294. " x x x x x x x x";
  9295. mode = 0x41;
  9296. delay = 6;
  9297. blocksize = 4;
  9298. readsize = 256;
  9299. ;
  9300. memory "flash"
  9301. paged = yes;
  9302. size = 2048;
  9303. page_size = 32;
  9304. num_pages = 64;
  9305. min_write_delay = 4500;
  9306. max_write_delay = 4500;
  9307. readback_p1 = 0xff;
  9308. readback_p2 = 0xff;
  9309. read_lo = " 0 0 1 0 0 0 0 0",
  9310. " 0 0 0 0 0 0 a9 a8",
  9311. " a7 a6 a5 a4 a3 a2 a1 a0",
  9312. " o o o o o o o o";
  9313. read_hi = " 0 0 1 0 1 0 0 0",
  9314. " 0 0 0 0 0 0 a9 a8",
  9315. " a7 a6 a5 a4 a3 a2 a1 a0",
  9316. " o o o o o o o o";
  9317. loadpage_lo = " 0 1 0 0 0 0 0 0",
  9318. " 0 0 0 x x x x x",
  9319. " x x x x a3 a2 a1 a0",
  9320. " i i i i i i i i";
  9321. loadpage_hi = " 0 1 0 0 1 0 0 0",
  9322. " 0 0 0 x x x x x",
  9323. " x x x x a3 a2 a1 a0",
  9324. " i i i i i i i i";
  9325. writepage = " 0 1 0 0 1 1 0 0",
  9326. " 0 0 0 0 0 0 a9 a8",
  9327. " a7 a6 a5 a4 x x x x",
  9328. " x x x x x x x x";
  9329. mode = 0x41;
  9330. delay = 6;
  9331. blocksize = 32;
  9332. readsize = 256;
  9333. ;
  9334. # ATtiny24 has Signature Bytes: 0x1E 0x91 0x0B.
  9335. memory "signature"
  9336. size = 3;
  9337. read = "0 0 1 1 0 0 0 0 0 0 0 x x x x x",
  9338. "x x x x x x a1 a0 o o o o o o o o";
  9339. ;
  9340. memory "lock"
  9341. size = 1;
  9342. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  9343. "x x x x x x x x x x x x x x i i";
  9344. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  9345. "0 0 0 0 0 0 0 0 o o o o o o o o";
  9346. min_write_delay = 9000;
  9347. max_write_delay = 9000;
  9348. ;
  9349. memory "lfuse"
  9350. size = 1;
  9351. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  9352. "x x x x x x x x i i i i i i i i";
  9353. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  9354. "x x x x x x x x o o o o o o o o";
  9355. min_write_delay = 9000;
  9356. max_write_delay = 9000;
  9357. ;
  9358. memory "hfuse"
  9359. size = 1;
  9360. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  9361. "x x x x x x x x i i i i i i i i";
  9362. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  9363. "x x x x x x x x o o o o o o o o";
  9364. min_write_delay = 9000;
  9365. max_write_delay = 9000;
  9366. ;
  9367. memory "efuse"
  9368. size = 1;
  9369. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  9370. "x x x x x x x x x x x x x x x i";
  9371. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  9372. "x x x x x x x x o o o o o o o o";
  9373. min_write_delay = 9000;
  9374. max_write_delay = 9000;
  9375. ;
  9376. memory "calibration"
  9377. size = 1;
  9378. read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
  9379. "0 0 0 0 0 0 0 a0 o o o o o o o o";
  9380. ;
  9381. ;
  9382. #------------------------------------------------------------
  9383. # ATtiny44
  9384. #------------------------------------------------------------
  9385. part
  9386. id = "t44";
  9387. desc = "ATtiny44";
  9388. has_debugwire = yes;
  9389. flash_instr = 0xB4, 0x07, 0x17;
  9390. eeprom_instr = 0xBB, 0xFF, 0xBB, 0xEE, 0xBB, 0xCC, 0xB2, 0x0D,
  9391. 0xBC, 0x07, 0xB4, 0x07, 0xBA, 0x0D, 0xBB, 0xBC,
  9392. 0x99, 0xE1, 0xBB, 0xAC;
  9393. ## no STK500 devcode in XML file, use the ATtiny45 one
  9394. stk500_devcode = 0x14;
  9395. ## avr910_devcode = ?;
  9396. ## Try the AT90S2313 devcode:
  9397. avr910_devcode = 0x20;
  9398. signature = 0x1e 0x92 0x07;
  9399. reset = io;
  9400. chip_erase_delay = 4500;
  9401. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  9402. "x x x x x x x x x x x x x x x x";
  9403. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
  9404. "x x x x x x x x x x x x x x x x";
  9405. timeout = 200;
  9406. stabdelay = 100;
  9407. cmdexedelay = 25;
  9408. synchloops = 32;
  9409. bytedelay = 0;
  9410. pollindex = 3;
  9411. pollvalue = 0x53;
  9412. predelay = 1;
  9413. postdelay = 1;
  9414. pollmethod = 1;
  9415. hvsp_controlstack =
  9416. 0x4C, 0x0C, 0x1C, 0x2C, 0x3C, 0x64, 0x74, 0x66,
  9417. 0x68, 0x78, 0x68, 0x68, 0x7A, 0x6A, 0x68, 0x78,
  9418. 0x78, 0x7D, 0x6D, 0x0C, 0x80, 0x40, 0x20, 0x10,
  9419. 0x11, 0x08, 0x04, 0x02, 0x03, 0x08, 0x04, 0x0F;
  9420. hventerstabdelay = 100;
  9421. hvspcmdexedelay = 0;
  9422. synchcycles = 6;
  9423. latchcycles = 1;
  9424. togglevtg = 1;
  9425. poweroffdelay = 25;
  9426. resetdelayms = 0;
  9427. resetdelayus = 70;
  9428. hvleavestabdelay = 100;
  9429. resetdelay = 25;
  9430. chiperasepolltimeout = 40;
  9431. chiperasetime = 0;
  9432. programfusepolltimeout = 25;
  9433. programlockpolltimeout = 25;
  9434. ocdrev = 1;
  9435. memory "eeprom"
  9436. size = 256;
  9437. paged = no;
  9438. page_size = 4;
  9439. min_write_delay = 4000;
  9440. max_write_delay = 4500;
  9441. readback_p1 = 0xff;
  9442. readback_p2 = 0xff;
  9443. read = "1 0 1 0 0 0 0 0 0 0 0 x x x x x",
  9444. "a7 a6 a5 a4 a3 a2 a1 a0 o o o o o o o o";
  9445. write = "1 1 0 0 0 0 0 0 0 0 0 x x x x x",
  9446. "a7 a6 a5 a4 a3 a2 a1 a0 i i i i i i i i";
  9447. loadpage_lo = " 1 1 0 0 0 0 0 1",
  9448. " 0 0 0 0 0 0 0 0",
  9449. " 0 0 0 0 0 0 a1 a0",
  9450. " i i i i i i i i";
  9451. writepage = " 1 1 0 0 0 0 1 0",
  9452. " 0 0 x x x x x x",
  9453. " x a6 a5 a4 a3 a2 0 0",
  9454. " x x x x x x x x";
  9455. mode = 0x41;
  9456. delay = 6;
  9457. blocksize = 4;
  9458. readsize = 256;
  9459. ;
  9460. memory "flash"
  9461. paged = yes;
  9462. size = 4096;
  9463. page_size = 64;
  9464. num_pages = 64;
  9465. min_write_delay = 4500;
  9466. max_write_delay = 4500;
  9467. readback_p1 = 0xff;
  9468. readback_p2 = 0xff;
  9469. read_lo = " 0 0 1 0 0 0 0 0",
  9470. " 0 0 0 0 0 a10 a9 a8",
  9471. " a7 a6 a5 a4 a3 a2 a1 a0",
  9472. " o o o o o o o o";
  9473. read_hi = " 0 0 1 0 1 0 0 0",
  9474. " 0 0 0 0 0 a10 a9 a8",
  9475. " a7 a6 a5 a4 a3 a2 a1 a0",
  9476. " o o o o o o o o";
  9477. loadpage_lo = " 0 1 0 0 0 0 0 0",
  9478. " 0 0 0 x x x x x",
  9479. " x x x a4 a3 a2 a1 a0",
  9480. " i i i i i i i i";
  9481. loadpage_hi = " 0 1 0 0 1 0 0 0",
  9482. " 0 0 0 x x x x x",
  9483. " x x x a4 a3 a2 a1 a0",
  9484. " i i i i i i i i";
  9485. writepage = " 0 1 0 0 1 1 0 0",
  9486. " 0 0 0 0 0 a10 a9 a8",
  9487. " a7 a6 a5 x x x x x",
  9488. " x x x x x x x x";
  9489. mode = 0x41;
  9490. delay = 6;
  9491. blocksize = 32;
  9492. readsize = 256;
  9493. ;
  9494. # ATtiny44 has Signature Bytes: 0x1E 0x92 0x07.
  9495. memory "signature"
  9496. size = 3;
  9497. read = "0 0 1 1 0 0 0 0 0 0 0 x x x x x",
  9498. "x x x x x x a1 a0 o o o o o o o o";
  9499. ;
  9500. memory "lock"
  9501. size = 1;
  9502. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  9503. "x x x x x x x x x x x x x x i i";
  9504. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  9505. "0 0 0 0 0 0 0 0 o o o o o o o o";
  9506. min_write_delay = 9000;
  9507. max_write_delay = 9000;
  9508. ;
  9509. memory "lfuse"
  9510. size = 1;
  9511. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  9512. "x x x x x x x x i i i i i i i i";
  9513. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  9514. "x x x x x x x x o o o o o o o o";
  9515. min_write_delay = 9000;
  9516. max_write_delay = 9000;
  9517. ;
  9518. memory "hfuse"
  9519. size = 1;
  9520. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  9521. "x x x x x x x x i i i i i i i i";
  9522. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  9523. "x x x x x x x x o o o o o o o o";
  9524. min_write_delay = 9000;
  9525. max_write_delay = 9000;
  9526. ;
  9527. memory "efuse"
  9528. size = 1;
  9529. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  9530. "x x x x x x x x x x x x x x x i";
  9531. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  9532. "x x x x x x x x o o o o o o o o";
  9533. min_write_delay = 9000;
  9534. max_write_delay = 9000;
  9535. ;
  9536. memory "calibration"
  9537. size = 1;
  9538. read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
  9539. "0 0 0 0 0 0 0 a0 o o o o o o o o";
  9540. ;
  9541. ;
  9542. #------------------------------------------------------------
  9543. # ATtiny84
  9544. #------------------------------------------------------------
  9545. part
  9546. id = "t84";
  9547. desc = "ATtiny84";
  9548. has_debugwire = yes;
  9549. flash_instr = 0xB4, 0x07, 0x17;
  9550. eeprom_instr = 0xBB, 0xFF, 0xBB, 0xEE, 0xBB, 0xCC, 0xB2, 0x0D,
  9551. 0xBC, 0x07, 0xB4, 0x07, 0xBA, 0x0D, 0xBB, 0xBC,
  9552. 0x99, 0xE1, 0xBB, 0xAC;
  9553. ## no STK500 devcode in XML file, use the ATtiny45 one
  9554. stk500_devcode = 0x14;
  9555. ## avr910_devcode = ?;
  9556. ## Try the AT90S2313 devcode:
  9557. avr910_devcode = 0x20;
  9558. signature = 0x1e 0x93 0x0c;
  9559. reset = io;
  9560. chip_erase_delay = 4500;
  9561. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  9562. "x x x x x x x x x x x x x x x x";
  9563. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
  9564. "x x x x x x x x x x x x x x x x";
  9565. timeout = 200;
  9566. stabdelay = 100;
  9567. cmdexedelay = 25;
  9568. synchloops = 32;
  9569. bytedelay = 0;
  9570. pollindex = 3;
  9571. pollvalue = 0x53;
  9572. predelay = 1;
  9573. postdelay = 1;
  9574. pollmethod = 1;
  9575. hvsp_controlstack =
  9576. 0x4C, 0x0C, 0x1C, 0x2C, 0x3C, 0x64, 0x74, 0x66,
  9577. 0x68, 0x78, 0x68, 0x68, 0x7A, 0x6A, 0x68, 0x78,
  9578. 0x78, 0x7D, 0x6D, 0x0C, 0x80, 0x40, 0x20, 0x10,
  9579. 0x11, 0x08, 0x04, 0x02, 0x03, 0x08, 0x04, 0x0F;
  9580. hventerstabdelay = 100;
  9581. hvspcmdexedelay = 0;
  9582. synchcycles = 6;
  9583. latchcycles = 1;
  9584. togglevtg = 1;
  9585. poweroffdelay = 25;
  9586. resetdelayms = 0;
  9587. resetdelayus = 70;
  9588. hvleavestabdelay = 100;
  9589. resetdelay = 25;
  9590. chiperasepolltimeout = 40;
  9591. chiperasetime = 0;
  9592. programfusepolltimeout = 25;
  9593. programlockpolltimeout = 25;
  9594. ocdrev = 1;
  9595. memory "eeprom"
  9596. size = 512;
  9597. paged = no;
  9598. page_size = 4;
  9599. min_write_delay = 4000;
  9600. max_write_delay = 4500;
  9601. readback_p1 = 0xff;
  9602. readback_p2 = 0xff;
  9603. read = "1 0 1 0 0 0 0 0 0 0 0 x x x x a8",
  9604. "a7 a6 a5 a4 a3 a2 a1 a0 o o o o o o o o";
  9605. write = "1 1 0 0 0 0 0 0 0 0 0 x x x x a8",
  9606. "a7 a6 a5 a4 a3 a2 a1 a0 i i i i i i i i";
  9607. loadpage_lo = " 1 1 0 0 0 0 0 1",
  9608. " 0 0 0 0 0 0 0 0",
  9609. " 0 0 0 0 0 0 a1 a0",
  9610. " i i i i i i i i";
  9611. writepage = " 1 1 0 0 0 0 1 0",
  9612. " 0 0 x x x x x x",
  9613. " x a6 a5 a4 a3 a2 0 0",
  9614. " x x x x x x x x";
  9615. mode = 0x41;
  9616. delay = 6;
  9617. blocksize = 4;
  9618. readsize = 256;
  9619. ;
  9620. memory "flash"
  9621. paged = yes;
  9622. size = 8192;
  9623. page_size = 64;
  9624. num_pages = 128;
  9625. min_write_delay = 4500;
  9626. max_write_delay = 4500;
  9627. readback_p1 = 0xff;
  9628. readback_p2 = 0xff;
  9629. read_lo = " 0 0 1 0 0 0 0 0",
  9630. " 0 0 0 0 a11 a10 a9 a8",
  9631. " a7 a6 a5 a4 a3 a2 a1 a0",
  9632. " o o o o o o o o";
  9633. read_hi = " 0 0 1 0 1 0 0 0",
  9634. " 0 0 0 0 a11 a10 a9 a8",
  9635. " a7 a6 a5 a4 a3 a2 a1 a0",
  9636. " o o o o o o o o";
  9637. loadpage_lo = " 0 1 0 0 0 0 0 0",
  9638. " 0 0 0 x x x x x",
  9639. " x x x a4 a3 a2 a1 a0",
  9640. " i i i i i i i i";
  9641. loadpage_hi = " 0 1 0 0 1 0 0 0",
  9642. " 0 0 0 x x x x x",
  9643. " x x x a4 a3 a2 a1 a0",
  9644. " i i i i i i i i";
  9645. writepage = " 0 1 0 0 1 1 0 0",
  9646. " 0 0 0 0 a11 a10 a9 a8",
  9647. " a7 a6 a5 x x x x x",
  9648. " x x x x x x x x";
  9649. mode = 0x41;
  9650. delay = 6;
  9651. blocksize = 32;
  9652. readsize = 256;
  9653. ;
  9654. # ATtiny84 has Signature Bytes: 0x1E 0x93 0x0C.
  9655. memory "signature"
  9656. size = 3;
  9657. read = "0 0 1 1 0 0 0 0 0 0 0 x x x x x",
  9658. "x x x x x x a1 a0 o o o o o o o o";
  9659. ;
  9660. memory "lock"
  9661. size = 1;
  9662. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  9663. "x x x x x x x x x x x x x x i i";
  9664. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  9665. "0 0 0 0 0 0 0 0 o o o o o o o o";
  9666. min_write_delay = 9000;
  9667. max_write_delay = 9000;
  9668. ;
  9669. memory "lfuse"
  9670. size = 1;
  9671. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  9672. "x x x x x x x x i i i i i i i i";
  9673. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  9674. "x x x x x x x x o o o o o o o o";
  9675. min_write_delay = 9000;
  9676. max_write_delay = 9000;
  9677. ;
  9678. memory "hfuse"
  9679. size = 1;
  9680. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  9681. "x x x x x x x x i i i i i i i i";
  9682. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  9683. "x x x x x x x x o o o o o o o o";
  9684. min_write_delay = 9000;
  9685. max_write_delay = 9000;
  9686. ;
  9687. memory "efuse"
  9688. size = 1;
  9689. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  9690. "x x x x x x x x x x x x x x x i";
  9691. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  9692. "x x x x x x x x o o o o o o o o";
  9693. min_write_delay = 9000;
  9694. max_write_delay = 9000;
  9695. ;
  9696. memory "calibration"
  9697. size = 1;
  9698. read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
  9699. "0 0 0 0 0 0 0 a0 o o o o o o o o";
  9700. ;
  9701. ;
  9702. #------------------------------------------------------------
  9703. # ATtiny43U
  9704. #------------------------------------------------------------
  9705. part
  9706. id = "t43u";
  9707. desc = "ATtiny43u";
  9708. has_debugwire = yes;
  9709. flash_instr = 0xB4, 0x07, 0x17;
  9710. eeprom_instr = 0xBB, 0xFF, 0xBB, 0xEE, 0xBB, 0xCC, 0xB2, 0x0D,
  9711. 0xBC, 0x07, 0xB4, 0x07, 0xBA, 0x0D, 0xBB, 0xBC,
  9712. 0x99, 0xE1, 0xBB, 0xAC;
  9713. stk500_devcode = 0x14;
  9714. ## avr910_devcode = ?;
  9715. ## Try the AT90S2313 devcode:
  9716. avr910_devcode = 0x20;
  9717. signature = 0x1e 0x92 0x0C;
  9718. reset = io;
  9719. chip_erase_delay = 1000;
  9720. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  9721. "x x x x x x x x x x x x x x x x";
  9722. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
  9723. "x x x x x x x x x x x x x x x x";
  9724. timeout = 200;
  9725. stabdelay = 100;
  9726. cmdexedelay = 25;
  9727. synchloops = 32;
  9728. bytedelay = 0;
  9729. pollindex = 3;
  9730. pollvalue = 0x53;
  9731. predelay = 1;
  9732. postdelay = 1;
  9733. pollmethod = 1;
  9734. pp_controlstack = 0x0E, 0x1E, 0x0E, 0x1E, 0x2E, 0x3E, 0x2E, 0x3E, 0x4E, 0x5E,
  9735. 0x4E, 0x5E, 0x6E, 0x7E, 0x6E, 0x7E, 0x06, 0x16, 0x46, 0x56,
  9736. 0x0A, 0x1A, 0x4A, 0x5A, 0x1E, 0x7C, 0x00, 0x01, 0x00, 0x00,
  9737. 0x00, 0x00;
  9738. hventerstabdelay = 100;
  9739. progmodedelay = 0;
  9740. hvspcmdexedelay = 0;
  9741. latchcycles = 5;
  9742. togglevtg = 1;
  9743. poweroffdelay = 20;
  9744. resetdelayms = 1;
  9745. resetdelayus = 0;
  9746. hvleavestabdelay = 15;
  9747. resetdelay = 15;
  9748. chiperasepulsewidth = 0;
  9749. chiperasepolltimeout = 10;
  9750. programfusepulsewidth = 0;
  9751. programfusepolltimeout = 5;
  9752. programlockpulsewidth = 0;
  9753. programlockpolltimeout = 5;
  9754. memory "eeprom"
  9755. size = 64;
  9756. paged = yes;
  9757. page_size = 4;
  9758. num_pages = 16;
  9759. min_write_delay = 4000;
  9760. max_write_delay = 4500;
  9761. readback_p1 = 0xff;
  9762. readback_p2 = 0xff;
  9763. read = "1 0 1 0 0 0 0 0 0 0 0 x x x x x",
  9764. "0 0 a4 a3 a2 a1 a0 o o o o o o o o";
  9765. write = "1 1 0 0 0 0 0 0 0 0 0 x x x x x",
  9766. "0 0 a5 a4 a3 a2 a1 a0 i i i i i i i i";
  9767. loadpage_lo = " 1 1 0 0 0 0 0 1",
  9768. " 0 0 0 0 0 0 0 0",
  9769. " 0 0 0 0 0 0 a1 a0",
  9770. " i i i i i i i i";
  9771. writepage = " 1 1 0 0 0 0 1 0",
  9772. " 0 0 x x x x x x",
  9773. " 0 0 a5 a4 a3 a2 0 0",
  9774. " x x x x x x x x";
  9775. mode = 0x41;
  9776. delay = 5;
  9777. blocksize = 4;
  9778. readsize = 256;
  9779. ;
  9780. memory "flash"
  9781. paged = yes;
  9782. size = 4096;
  9783. page_size = 64;
  9784. num_pages = 64;
  9785. min_write_delay = 4500;
  9786. max_write_delay = 4500;
  9787. readback_p1 = 0xff;
  9788. readback_p2 = 0xff;
  9789. read_lo = " 0 0 1 0 0 0 0 0",
  9790. " 0 0 0 0 0 a10 a9 a8",
  9791. " a7 a6 a5 a4 a3 a2 a1 a0",
  9792. " o o o o o o o o";
  9793. read_hi = " 0 0 1 0 1 0 0 0",
  9794. " 0 0 0 0 0 a10 a9 a8",
  9795. " a7 a6 a5 a4 a3 a2 a1 a0",
  9796. " o o o o o o o o";
  9797. loadpage_lo = " 0 1 0 0 0 0 0 0",
  9798. " 0 0 0 x x x x x",
  9799. " x x x a4 a3 a2 a1 a0",
  9800. " i i i i i i i i";
  9801. loadpage_hi = " 0 1 0 0 1 0 0 0",
  9802. " 0 0 0 x x x x x",
  9803. " x x x a4 a3 a2 a1 a0",
  9804. " i i i i i i i i";
  9805. writepage = " 0 1 0 0 1 1 0 0",
  9806. " 0 0 0 0 0 a10 a9 a8",
  9807. " a7 a6 a5 x x x x x",
  9808. " x x x x x x x x";
  9809. mode = 0x41;
  9810. delay = 10;
  9811. blocksize = 64;
  9812. readsize = 256;
  9813. ;
  9814. memory "signature"
  9815. size = 3;
  9816. read = "0 0 1 1 0 0 0 0 0 0 0 x x x x x",
  9817. "x x x x x x a1 a0 o o o o o o o o";
  9818. ;
  9819. memory "lock"
  9820. size = 1;
  9821. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  9822. "x x x x x x x x 1 1 i i i i i i";
  9823. min_write_delay = 4500;
  9824. max_write_delay = 4500;
  9825. ;
  9826. memory "lfuse"
  9827. size = 1;
  9828. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  9829. "x x x x x x x x i i i i i i i i";
  9830. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  9831. "x x x x x x x x o o o o o o o o";
  9832. min_write_delay = 4500;
  9833. max_write_delay = 4500;
  9834. ;
  9835. memory "hfuse"
  9836. size = 1;
  9837. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  9838. "x x x x x x x x i i i i i i i i";
  9839. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  9840. "x x x x x x x x o o o o o o o o";
  9841. min_write_delay = 4500;
  9842. max_write_delay = 4500;
  9843. ;
  9844. memory "efuse"
  9845. size = 1;
  9846. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  9847. "x x x x x x x x x x x x x x x i";
  9848. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  9849. "x x x x x x x x o o o o o o o o";
  9850. min_write_delay = 4500;
  9851. max_write_delay = 4500;
  9852. ;
  9853. memory "calibration"
  9854. size = 2;
  9855. read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
  9856. "0 0 0 0 0 0 0 a0 o o o o o o o o";
  9857. ;
  9858. ;
  9859. #------------------------------------------------------------
  9860. # ATmega32u4
  9861. #------------------------------------------------------------
  9862. part
  9863. id = "m32u4";
  9864. desc = "ATmega32U4";
  9865. signature = 0x1e 0x95 0x87;
  9866. usbpid = 0x2ff4;
  9867. has_jtag = yes;
  9868. # stk500_devcode = 0xB2;
  9869. # avr910_devcode = 0x43;
  9870. chip_erase_delay = 9000;
  9871. pagel = 0xD7;
  9872. bs2 = 0xA0;
  9873. reset = dedicated;
  9874. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  9875. "x x x x x x x x x x x x x x x x";
  9876. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 0 0 0 0 0",
  9877. "x x x x x x x x x x x x x x x x";
  9878. timeout = 200;
  9879. stabdelay = 100;
  9880. cmdexedelay = 25;
  9881. synchloops = 32;
  9882. bytedelay = 0;
  9883. pollindex = 3;
  9884. pollvalue = 0x53;
  9885. predelay = 1;
  9886. postdelay = 1;
  9887. pollmethod = 1;
  9888. pp_controlstack =
  9889. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  9890. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  9891. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  9892. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  9893. hventerstabdelay = 100;
  9894. progmodedelay = 0;
  9895. latchcycles = 5;
  9896. togglevtg = 1;
  9897. poweroffdelay = 15;
  9898. resetdelayms = 1;
  9899. resetdelayus = 0;
  9900. hvleavestabdelay = 15;
  9901. chiperasepulsewidth = 0;
  9902. chiperasepolltimeout = 10;
  9903. programfusepulsewidth = 0;
  9904. programfusepolltimeout = 5;
  9905. programlockpulsewidth = 0;
  9906. programlockpolltimeout = 5;
  9907. idr = 0x31;
  9908. spmcr = 0x57;
  9909. rampz = 0x3b;
  9910. allowfullpagebitstream = no;
  9911. ocdrev = 3;
  9912. memory "eeprom"
  9913. paged = no; /* leave this "no" */
  9914. page_size = 4; /* for parallel programming */
  9915. size = 1024;
  9916. min_write_delay = 9000;
  9917. max_write_delay = 9000;
  9918. readback_p1 = 0x00;
  9919. readback_p2 = 0x00;
  9920. read = " 1 0 1 0 0 0 0 0",
  9921. " x x x x x a10 a9 a8",
  9922. " a7 a6 a5 a4 a3 a2 a1 a0",
  9923. " o o o o o o o o";
  9924. write = " 1 1 0 0 0 0 0 0",
  9925. " x x x x x a10 a9 a8",
  9926. " a7 a6 a5 a4 a3 a2 a1 a0",
  9927. " i i i i i i i i";
  9928. loadpage_lo = " 1 1 0 0 0 0 0 1",
  9929. " 0 0 0 0 0 0 0 0",
  9930. " 0 0 0 0 0 a2 a1 a0",
  9931. " i i i i i i i i";
  9932. writepage = " 1 1 0 0 0 0 1 0",
  9933. " 0 0 x x x a10 a9 a8",
  9934. " a7 a6 a5 a4 a3 0 0 0",
  9935. " x x x x x x x x";
  9936. mode = 0x41;
  9937. delay = 20;
  9938. blocksize = 4;
  9939. readsize = 256;
  9940. ;
  9941. memory "flash"
  9942. paged = yes;
  9943. size = 32768;
  9944. page_size = 128;
  9945. num_pages = 256;
  9946. min_write_delay = 4500;
  9947. max_write_delay = 4500;
  9948. readback_p1 = 0x00;
  9949. readback_p2 = 0x00;
  9950. read_lo = " 0 0 1 0 0 0 0 0",
  9951. " 0 a14 a13 a12 a11 a10 a9 a8",
  9952. " a7 a6 a5 a4 a3 a2 a1 a0",
  9953. " o o o o o o o o";
  9954. read_hi = " 0 0 1 0 1 0 0 0",
  9955. " 0 a14 a13 a12 a11 a10 a9 a8",
  9956. " a7 a6 a5 a4 a3 a2 a1 a0",
  9957. " o o o o o o o o";
  9958. loadpage_lo = " 0 1 0 0 0 0 0 0",
  9959. " x x x x x x x x",
  9960. " x x a5 a4 a3 a2 a1 a0",
  9961. " i i i i i i i i";
  9962. loadpage_hi = " 0 1 0 0 1 0 0 0",
  9963. " x x x x x x x x",
  9964. " x x a5 a4 a3 a2 a1 a0",
  9965. " i i i i i i i i";
  9966. writepage = " 0 1 0 0 1 1 0 0",
  9967. " a15 a14 a13 a12 a11 a10 a9 a8",
  9968. " a7 a6 x x x x x x",
  9969. " x x x x x x x x";
  9970. mode = 0x41;
  9971. delay = 6;
  9972. blocksize = 128;
  9973. readsize = 256;
  9974. ;
  9975. memory "lfuse"
  9976. size = 1;
  9977. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  9978. "x x x x x x x x i i i i i i i i";
  9979. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  9980. "x x x x x x x x o o o o o o o o";
  9981. min_write_delay = 9000;
  9982. max_write_delay = 9000;
  9983. ;
  9984. memory "hfuse"
  9985. size = 1;
  9986. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  9987. "x x x x x x x x i i i i i i i i";
  9988. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  9989. "x x x x x x x x o o o o o o o o";
  9990. min_write_delay = 9000;
  9991. max_write_delay = 9000;
  9992. ;
  9993. memory "efuse"
  9994. size = 1;
  9995. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  9996. "x x x x x x x x x x x x i i i i";
  9997. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  9998. "x x x x x x x x o o o o o o o o";
  9999. min_write_delay = 9000;
  10000. max_write_delay = 9000;
  10001. ;
  10002. memory "lock"
  10003. size = 1;
  10004. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  10005. "x x x x x x x x x x o o o o o o";
  10006. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  10007. "x x x x x x x x 1 1 i i i i i i";
  10008. min_write_delay = 9000;
  10009. max_write_delay = 9000;
  10010. ;
  10011. memory "calibration"
  10012. size = 1;
  10013. read = "0 0 1 1 1 0 0 0 x x x x x x x x",
  10014. "0 0 0 0 0 0 0 0 o o o o o o o o";
  10015. ;
  10016. memory "signature"
  10017. size = 3;
  10018. read = "0 0 1 1 0 0 0 0 x x x x x x x x",
  10019. "x x x x x x a1 a0 o o o o o o o o";
  10020. ;
  10021. ;
  10022. #------------------------------------------------------------
  10023. # AT90USB646
  10024. #------------------------------------------------------------
  10025. part
  10026. id = "usb646";
  10027. desc = "AT90USB646";
  10028. signature = 0x1e 0x96 0x82;
  10029. usbpid = 0x2ff9;
  10030. has_jtag = yes;
  10031. # stk500_devcode = 0xB2;
  10032. # avr910_devcode = 0x43;
  10033. chip_erase_delay = 9000;
  10034. pagel = 0xD7;
  10035. bs2 = 0xA0;
  10036. reset = dedicated;
  10037. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  10038. "x x x x x x x x x x x x x x x x";
  10039. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 0 0 0 0 0",
  10040. "x x x x x x x x x x x x x x x x";
  10041. timeout = 200;
  10042. stabdelay = 100;
  10043. cmdexedelay = 25;
  10044. synchloops = 32;
  10045. bytedelay = 0;
  10046. pollindex = 3;
  10047. pollvalue = 0x53;
  10048. predelay = 1;
  10049. postdelay = 1;
  10050. pollmethod = 1;
  10051. pp_controlstack =
  10052. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  10053. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  10054. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  10055. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  10056. hventerstabdelay = 100;
  10057. progmodedelay = 0;
  10058. latchcycles = 5;
  10059. togglevtg = 1;
  10060. poweroffdelay = 15;
  10061. resetdelayms = 1;
  10062. resetdelayus = 0;
  10063. hvleavestabdelay = 15;
  10064. chiperasepulsewidth = 0;
  10065. chiperasepolltimeout = 10;
  10066. programfusepulsewidth = 0;
  10067. programfusepolltimeout = 5;
  10068. programlockpulsewidth = 0;
  10069. programlockpolltimeout = 5;
  10070. idr = 0x31;
  10071. spmcr = 0x57;
  10072. rampz = 0x3b;
  10073. allowfullpagebitstream = no;
  10074. ocdrev = 3;
  10075. memory "eeprom"
  10076. paged = no; /* leave this "no" */
  10077. page_size = 8; /* for parallel programming */
  10078. size = 2048;
  10079. min_write_delay = 9000;
  10080. max_write_delay = 9000;
  10081. readback_p1 = 0x00;
  10082. readback_p2 = 0x00;
  10083. read = " 1 0 1 0 0 0 0 0",
  10084. " x x x x x a10 a9 a8",
  10085. " a7 a6 a5 a4 a3 a2 a1 a0",
  10086. " o o o o o o o o";
  10087. write = " 1 1 0 0 0 0 0 0",
  10088. " x x x x x a10 a9 a8",
  10089. " a7 a6 a5 a4 a3 a2 a1 a0",
  10090. " i i i i i i i i";
  10091. loadpage_lo = " 1 1 0 0 0 0 0 1",
  10092. " 0 0 0 0 0 0 0 0",
  10093. " 0 0 0 0 0 a2 a1 a0",
  10094. " i i i i i i i i";
  10095. writepage = " 1 1 0 0 0 0 1 0",
  10096. " 0 0 x x x a10 a9 a8",
  10097. " a7 a6 a5 a4 a3 0 0 0",
  10098. " x x x x x x x x";
  10099. mode = 0x41;
  10100. delay = 10;
  10101. blocksize = 8;
  10102. readsize = 256;
  10103. ;
  10104. memory "flash"
  10105. paged = yes;
  10106. size = 65536;
  10107. page_size = 256;
  10108. num_pages = 256;
  10109. min_write_delay = 4500;
  10110. max_write_delay = 4500;
  10111. readback_p1 = 0x00;
  10112. readback_p2 = 0x00;
  10113. read_lo = " 0 0 1 0 0 0 0 0",
  10114. " 0 a14 a13 a12 a11 a10 a9 a8",
  10115. " a7 a6 a5 a4 a3 a2 a1 a0",
  10116. " o o o o o o o o";
  10117. read_hi = " 0 0 1 0 1 0 0 0",
  10118. " 0 a14 a13 a12 a11 a10 a9 a8",
  10119. " a7 a6 a5 a4 a3 a2 a1 a0",
  10120. " o o o o o o o o";
  10121. loadpage_lo = " 0 1 0 0 0 0 0 0",
  10122. " x x x x x x x x",
  10123. " x a6 a5 a4 a3 a2 a1 a0",
  10124. " i i i i i i i i";
  10125. loadpage_hi = " 0 1 0 0 1 0 0 0",
  10126. " x x x x x x x x",
  10127. " x a6 a5 a4 a3 a2 a1 a0",
  10128. " i i i i i i i i";
  10129. writepage = " 0 1 0 0 1 1 0 0",
  10130. " 0 a14 a13 a12 a11 a10 a9 a8",
  10131. " a7 x x x x x x x",
  10132. " x x x x x x x x";
  10133. mode = 0x41;
  10134. delay = 6;
  10135. blocksize = 256;
  10136. readsize = 256;
  10137. ;
  10138. memory "lfuse"
  10139. size = 1;
  10140. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  10141. "x x x x x x x x i i i i i i i i";
  10142. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  10143. "x x x x x x x x o o o o o o o o";
  10144. min_write_delay = 9000;
  10145. max_write_delay = 9000;
  10146. ;
  10147. memory "hfuse"
  10148. size = 1;
  10149. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  10150. "x x x x x x x x i i i i i i i i";
  10151. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  10152. "x x x x x x x x o o o o o o o o";
  10153. min_write_delay = 9000;
  10154. max_write_delay = 9000;
  10155. ;
  10156. memory "efuse"
  10157. size = 1;
  10158. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  10159. "x x x x x x x x x x x x i i i i";
  10160. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  10161. "x x x x x x x x o o o o o o o o";
  10162. min_write_delay = 9000;
  10163. max_write_delay = 9000;
  10164. ;
  10165. memory "lock"
  10166. size = 1;
  10167. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  10168. "x x x x x x x x x x o o o o o o";
  10169. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  10170. "x x x x x x x x 1 1 i i i i i i";
  10171. min_write_delay = 9000;
  10172. max_write_delay = 9000;
  10173. ;
  10174. memory "calibration"
  10175. size = 1;
  10176. read = "0 0 1 1 1 0 0 0 x x x x x x x x",
  10177. "0 0 0 0 0 0 0 0 o o o o o o o o";
  10178. ;
  10179. memory "signature"
  10180. size = 3;
  10181. read = "0 0 1 1 0 0 0 0 x x x x x x x x",
  10182. "x x x x x x a1 a0 o o o o o o o o";
  10183. ;
  10184. ;
  10185. #------------------------------------------------------------
  10186. # AT90USB647
  10187. #------------------------------------------------------------
  10188. # identical to AT90USB646
  10189. part parent "usb646"
  10190. id = "usb647";
  10191. desc = "AT90USB647";
  10192. signature = 0x1e 0x96 0x82;
  10193. ocdrev = 3;
  10194. ;
  10195. #------------------------------------------------------------
  10196. # AT90USB1286
  10197. #------------------------------------------------------------
  10198. part
  10199. id = "usb1286";
  10200. desc = "AT90USB1286";
  10201. signature = 0x1e 0x97 0x82;
  10202. usbpid = 0x2ffb;
  10203. has_jtag = yes;
  10204. # stk500_devcode = 0xB2;
  10205. # avr910_devcode = 0x43;
  10206. chip_erase_delay = 9000;
  10207. pagel = 0xD7;
  10208. bs2 = 0xA0;
  10209. reset = dedicated;
  10210. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  10211. "x x x x x x x x x x x x x x x x";
  10212. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 0 0 0 0 0",
  10213. "x x x x x x x x x x x x x x x x";
  10214. timeout = 200;
  10215. stabdelay = 100;
  10216. cmdexedelay = 25;
  10217. synchloops = 32;
  10218. bytedelay = 0;
  10219. pollindex = 3;
  10220. pollvalue = 0x53;
  10221. predelay = 1;
  10222. postdelay = 1;
  10223. pollmethod = 1;
  10224. pp_controlstack =
  10225. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  10226. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  10227. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  10228. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  10229. hventerstabdelay = 100;
  10230. progmodedelay = 0;
  10231. latchcycles = 5;
  10232. togglevtg = 1;
  10233. poweroffdelay = 15;
  10234. resetdelayms = 1;
  10235. resetdelayus = 0;
  10236. hvleavestabdelay = 15;
  10237. chiperasepulsewidth = 0;
  10238. chiperasepolltimeout = 10;
  10239. programfusepulsewidth = 0;
  10240. programfusepolltimeout = 5;
  10241. programlockpulsewidth = 0;
  10242. programlockpolltimeout = 5;
  10243. idr = 0x31;
  10244. spmcr = 0x57;
  10245. rampz = 0x3b;
  10246. allowfullpagebitstream = no;
  10247. ocdrev = 3;
  10248. memory "eeprom"
  10249. paged = no; /* leave this "no" */
  10250. page_size = 8; /* for parallel programming */
  10251. size = 4096;
  10252. min_write_delay = 9000;
  10253. max_write_delay = 9000;
  10254. readback_p1 = 0x00;
  10255. readback_p2 = 0x00;
  10256. read = " 1 0 1 0 0 0 0 0",
  10257. " x x x x a11 a10 a9 a8",
  10258. " a7 a6 a5 a4 a3 a2 a1 a0",
  10259. " o o o o o o o o";
  10260. write = " 1 1 0 0 0 0 0 0",
  10261. " x x x x a11 a10 a9 a8",
  10262. " a7 a6 a5 a4 a3 a2 a1 a0",
  10263. " i i i i i i i i";
  10264. loadpage_lo = " 1 1 0 0 0 0 0 1",
  10265. " 0 0 0 0 0 0 0 0",
  10266. " 0 0 0 0 0 a2 a1 a0",
  10267. " i i i i i i i i";
  10268. writepage = " 1 1 0 0 0 0 1 0",
  10269. " 0 0 x x x a10 a9 a8",
  10270. " a7 a6 a5 a4 a3 0 0 0",
  10271. " x x x x x x x x";
  10272. mode = 0x41;
  10273. delay = 10;
  10274. blocksize = 8;
  10275. readsize = 256;
  10276. ;
  10277. memory "flash"
  10278. paged = yes;
  10279. size = 131072;
  10280. page_size = 256;
  10281. num_pages = 512;
  10282. min_write_delay = 4500;
  10283. max_write_delay = 4500;
  10284. readback_p1 = 0x00;
  10285. readback_p2 = 0x00;
  10286. read_lo = " 0 0 1 0 0 0 0 0",
  10287. "a15 a14 a13 a12 a11 a10 a9 a8",
  10288. " a7 a6 a5 a4 a3 a2 a1 a0",
  10289. " o o o o o o o o";
  10290. read_hi = " 0 0 1 0 1 0 0 0",
  10291. "a15 a14 a13 a12 a11 a10 a9 a8",
  10292. " a7 a6 a5 a4 a3 a2 a1 a0",
  10293. " o o o o o o o o";
  10294. loadpage_lo = " 0 1 0 0 0 0 0 0",
  10295. " x x x x x x x x",
  10296. " x a6 a5 a4 a3 a2 a1 a0",
  10297. " i i i i i i i i";
  10298. loadpage_hi = " 0 1 0 0 1 0 0 0",
  10299. " x x x x x x x x",
  10300. " x a6 a5 a4 a3 a2 a1 a0",
  10301. " i i i i i i i i";
  10302. writepage = " 0 1 0 0 1 1 0 0",
  10303. "a15 a14 a13 a12 a11 a10 a9 a8",
  10304. " a7 x x x x x x x",
  10305. " x x x x x x x x";
  10306. mode = 0x41;
  10307. delay = 6;
  10308. blocksize = 256;
  10309. readsize = 256;
  10310. ;
  10311. memory "lfuse"
  10312. size = 1;
  10313. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  10314. "x x x x x x x x i i i i i i i i";
  10315. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  10316. "x x x x x x x x o o o o o o o o";
  10317. min_write_delay = 9000;
  10318. max_write_delay = 9000;
  10319. ;
  10320. memory "hfuse"
  10321. size = 1;
  10322. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  10323. "x x x x x x x x i i i i i i i i";
  10324. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  10325. "x x x x x x x x o o o o o o o o";
  10326. min_write_delay = 9000;
  10327. max_write_delay = 9000;
  10328. ;
  10329. memory "efuse"
  10330. size = 1;
  10331. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  10332. "x x x x x x x x x x x x i i i i";
  10333. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  10334. "x x x x x x x x o o o o o o o o";
  10335. min_write_delay = 9000;
  10336. max_write_delay = 9000;
  10337. ;
  10338. memory "lock"
  10339. size = 1;
  10340. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  10341. "x x x x x x x x x x o o o o o o";
  10342. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  10343. "x x x x x x x x 1 1 i i i i i i";
  10344. min_write_delay = 9000;
  10345. max_write_delay = 9000;
  10346. ;
  10347. memory "calibration"
  10348. size = 1;
  10349. read = "0 0 1 1 1 0 0 0 x x x x x x x x",
  10350. "0 0 0 0 0 0 0 0 o o o o o o o o";
  10351. ;
  10352. memory "signature"
  10353. size = 3;
  10354. read = "0 0 1 1 0 0 0 0 x x x x x x x x",
  10355. "x x x x x x a1 a0 o o o o o o o o";
  10356. ;
  10357. ;
  10358. #------------------------------------------------------------
  10359. # AT90USB1287
  10360. #------------------------------------------------------------
  10361. # identical to AT90USB1286
  10362. part parent "usb1286"
  10363. id = "usb1287";
  10364. desc = "AT90USB1287";
  10365. signature = 0x1e 0x97 0x82;
  10366. ocdrev = 3;
  10367. ;
  10368. #------------------------------------------------------------
  10369. # AT90USB162
  10370. #------------------------------------------------------------
  10371. part
  10372. id = "usb162";
  10373. desc = "AT90USB162";
  10374. has_jtag = no;
  10375. has_debugwire = yes;
  10376. signature = 0x1e 0x94 0x82;
  10377. usbpid = 0x2ffa;
  10378. chip_erase_delay = 9000;
  10379. reset = io;
  10380. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  10381. "x x x x x x x x x x x x x x x x";
  10382. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
  10383. "x x x x x x x x x x x x x x x x";
  10384. pagel = 0xD7;
  10385. bs2 = 0xC6;
  10386. timeout = 200;
  10387. stabdelay = 100;
  10388. cmdexedelay = 25;
  10389. synchloops = 32;
  10390. bytedelay = 0;
  10391. pollindex = 3;
  10392. pollvalue = 0x53;
  10393. predelay = 1;
  10394. postdelay = 1;
  10395. pollmethod = 1;
  10396. pp_controlstack =
  10397. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  10398. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  10399. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  10400. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  10401. hventerstabdelay = 100;
  10402. progmodedelay = 0;
  10403. latchcycles = 5;
  10404. togglevtg = 1;
  10405. poweroffdelay = 15;
  10406. resetdelayms = 1;
  10407. resetdelayus = 0;
  10408. hvleavestabdelay = 15;
  10409. chiperasepulsewidth = 0;
  10410. chiperasepolltimeout = 10;
  10411. programfusepulsewidth = 0;
  10412. programfusepolltimeout = 5;
  10413. programlockpulsewidth = 0;
  10414. programlockpolltimeout = 5;
  10415. ocdrev = 1;
  10416. memory "eeprom"
  10417. paged = no; /* leave this "no" */
  10418. page_size = 4; /* for parallel programming */
  10419. size = 512;
  10420. num_pages = 128;
  10421. min_write_delay = 9000;
  10422. max_write_delay = 9000;
  10423. readback_p1 = 0x00;
  10424. readback_p2 = 0x00;
  10425. read = " 1 0 1 0 0 0 0 0",
  10426. " 0 0 0 0 a11 a10 a9 a8",
  10427. " a7 a6 a5 a4 a3 a2 a1 a0",
  10428. " o o o o o o o o";
  10429. write = " 1 1 0 0 0 0 0 0",
  10430. " 0 0 0 0 a11 a10 a9 a8",
  10431. " a7 a6 a5 a4 a3 a2 a1 a0",
  10432. " i i i i i i i i";
  10433. loadpage_lo = " 1 1 0 0 0 0 0 1",
  10434. " 0 0 0 0 0 0 0 0",
  10435. " 0 0 0 0 0 0 a1 a0",
  10436. " i i i i i i i i";
  10437. writepage = " 1 1 0 0 0 0 1 0",
  10438. " 0 0 0 0 a11 a10 a9 a8",
  10439. " a7 a6 a5 a4 a3 a2 0 0",
  10440. " x x x x x x x x";
  10441. mode = 0x41;
  10442. delay = 20;
  10443. blocksize = 4;
  10444. readsize = 256;
  10445. ;
  10446. memory "flash"
  10447. paged = yes;
  10448. size = 16384;
  10449. page_size = 128;
  10450. num_pages = 128;
  10451. min_write_delay = 4500;
  10452. max_write_delay = 4500;
  10453. readback_p1 = 0x00;
  10454. readback_p2 = 0x00;
  10455. read_lo = " 0 0 1 0 0 0 0 0",
  10456. "a15 a14 a13 a12 a11 a10 a9 a8",
  10457. " a7 a6 a5 a4 a3 a2 a1 a0",
  10458. " o o o o o o o o";
  10459. read_hi = " 0 0 1 0 1 0 0 0",
  10460. "a15 a14 a13 a12 a11 a10 a9 a8",
  10461. " a7 a6 a5 a4 a3 a2 a1 a0",
  10462. " o o o o o o o o";
  10463. loadpage_lo = " 0 1 0 0 0 0 0 0",
  10464. " x x x x x x x x",
  10465. " x x a5 a4 a3 a2 a1 a0",
  10466. " i i i i i i i i";
  10467. loadpage_hi = " 0 1 0 0 1 0 0 0",
  10468. " x x x x x x x x",
  10469. " x x a5 a4 a3 a2 a1 a0",
  10470. " i i i i i i i i";
  10471. writepage = " 0 1 0 0 1 1 0 0",
  10472. "a15 a14 a13 a12 a11 a10 a9 a8",
  10473. " a7 a6 x x x x x x",
  10474. " x x x x x x x x";
  10475. mode = 0x41;
  10476. delay = 6;
  10477. blocksize = 128;
  10478. readsize = 256;
  10479. ;
  10480. memory "lfuse"
  10481. size = 1;
  10482. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  10483. "x x x x x x x x i i i i i i i i";
  10484. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  10485. "x x x x x x x x o o o o o o o o";
  10486. min_write_delay = 9000;
  10487. max_write_delay = 9000;
  10488. ;
  10489. memory "hfuse"
  10490. size = 1;
  10491. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  10492. "x x x x x x x x i i i i i i i i";
  10493. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  10494. "x x x x x x x x o o o o o o o o";
  10495. min_write_delay = 9000;
  10496. max_write_delay = 9000;
  10497. ;
  10498. memory "efuse"
  10499. size = 1;
  10500. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  10501. "x x x x x x x x i i i i i i i i";
  10502. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  10503. "x x x x x x x x o o o o o o o o";
  10504. min_write_delay = 9000;
  10505. max_write_delay = 9000;
  10506. ;
  10507. memory "lock"
  10508. size = 1;
  10509. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  10510. "x x x x x x x x x x o o o o o o";
  10511. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  10512. "x x x x x x x x 1 1 i i i i i i";
  10513. min_write_delay = 9000;
  10514. max_write_delay = 9000;
  10515. ;
  10516. memory "calibration"
  10517. size = 1;
  10518. read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
  10519. "0 0 0 0 0 0 0 0 o o o o o o o o";
  10520. ;
  10521. memory "signature"
  10522. size = 3;
  10523. read = "0 0 1 1 0 0 0 0 0 0 0 x x x x x",
  10524. "x x x x x x a1 a0 o o o o o o o o";
  10525. ;
  10526. ;
  10527. #------------------------------------------------------------
  10528. # AT90USB82
  10529. #------------------------------------------------------------
  10530. # Changes against AT90USB162 (beside IDs)
  10531. # memory "flash"
  10532. # size = 8192;
  10533. # num_pages = 64;
  10534. part
  10535. id = "usb82";
  10536. desc = "AT90USB82";
  10537. has_jtag = no;
  10538. has_debugwire = yes;
  10539. signature = 0x1e 0x93 0x82;
  10540. usbpid = 0x2ff7;
  10541. chip_erase_delay = 9000;
  10542. reset = io;
  10543. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  10544. "x x x x x x x x x x x x x x x x";
  10545. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
  10546. "x x x x x x x x x x x x x x x x";
  10547. pagel = 0xD7;
  10548. bs2 = 0xC6;
  10549. timeout = 200;
  10550. stabdelay = 100;
  10551. cmdexedelay = 25;
  10552. synchloops = 32;
  10553. bytedelay = 0;
  10554. pollindex = 3;
  10555. pollvalue = 0x53;
  10556. predelay = 1;
  10557. postdelay = 1;
  10558. pollmethod = 1;
  10559. pp_controlstack =
  10560. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  10561. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  10562. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  10563. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  10564. hventerstabdelay = 100;
  10565. progmodedelay = 0;
  10566. latchcycles = 5;
  10567. togglevtg = 1;
  10568. poweroffdelay = 15;
  10569. resetdelayms = 1;
  10570. resetdelayus = 0;
  10571. hvleavestabdelay = 15;
  10572. chiperasepulsewidth = 0;
  10573. chiperasepolltimeout = 10;
  10574. programfusepulsewidth = 0;
  10575. programfusepolltimeout = 5;
  10576. programlockpulsewidth = 0;
  10577. programlockpolltimeout = 5;
  10578. ocdrev = 1;
  10579. memory "eeprom"
  10580. paged = no; /* leave this "no" */
  10581. page_size = 4; /* for parallel programming */
  10582. size = 512;
  10583. num_pages = 128;
  10584. min_write_delay = 9000;
  10585. max_write_delay = 9000;
  10586. readback_p1 = 0x00;
  10587. readback_p2 = 0x00;
  10588. read = " 1 0 1 0 0 0 0 0",
  10589. " 0 0 0 0 a11 a10 a9 a8",
  10590. " a7 a6 a5 a4 a3 a2 a1 a0",
  10591. " o o o o o o o o";
  10592. write = " 1 1 0 0 0 0 0 0",
  10593. " 0 0 0 0 a11 a10 a9 a8",
  10594. " a7 a6 a5 a4 a3 a2 a1 a0",
  10595. " i i i i i i i i";
  10596. loadpage_lo = " 1 1 0 0 0 0 0 1",
  10597. " 0 0 0 0 0 0 0 0",
  10598. " 0 0 0 0 0 0 a1 a0",
  10599. " i i i i i i i i";
  10600. writepage = " 1 1 0 0 0 0 1 0",
  10601. " 0 0 0 0 a11 a10 a9 a8",
  10602. " a7 a6 a5 a4 a3 a2 0 0",
  10603. " x x x x x x x x";
  10604. mode = 0x41;
  10605. delay = 20;
  10606. blocksize = 4;
  10607. readsize = 256;
  10608. ;
  10609. memory "flash"
  10610. paged = yes;
  10611. size = 8192;
  10612. page_size = 128;
  10613. num_pages = 64;
  10614. min_write_delay = 4500;
  10615. max_write_delay = 4500;
  10616. readback_p1 = 0x00;
  10617. readback_p2 = 0x00;
  10618. read_lo = " 0 0 1 0 0 0 0 0",
  10619. "a15 a14 a13 a12 a11 a10 a9 a8",
  10620. " a7 a6 a5 a4 a3 a2 a1 a0",
  10621. " o o o o o o o o";
  10622. read_hi = " 0 0 1 0 1 0 0 0",
  10623. "a15 a14 a13 a12 a11 a10 a9 a8",
  10624. " a7 a6 a5 a4 a3 a2 a1 a0",
  10625. " o o o o o o o o";
  10626. loadpage_lo = " 0 1 0 0 0 0 0 0",
  10627. " x x x x x x x x",
  10628. " x x a5 a4 a3 a2 a1 a0",
  10629. " i i i i i i i i";
  10630. loadpage_hi = " 0 1 0 0 1 0 0 0",
  10631. " x x x x x x x x",
  10632. " x x a5 a4 a3 a2 a1 a0",
  10633. " i i i i i i i i";
  10634. writepage = " 0 1 0 0 1 1 0 0",
  10635. "a15 a14 a13 a12 a11 a10 a9 a8",
  10636. " a7 a6 x x x x x x",
  10637. " x x x x x x x x";
  10638. mode = 0x41;
  10639. delay = 6;
  10640. blocksize = 128;
  10641. readsize = 256;
  10642. ;
  10643. memory "lfuse"
  10644. size = 1;
  10645. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  10646. "x x x x x x x x i i i i i i i i";
  10647. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  10648. "x x x x x x x x o o o o o o o o";
  10649. min_write_delay = 9000;
  10650. max_write_delay = 9000;
  10651. ;
  10652. memory "hfuse"
  10653. size = 1;
  10654. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  10655. "x x x x x x x x i i i i i i i i";
  10656. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  10657. "x x x x x x x x o o o o o o o o";
  10658. min_write_delay = 9000;
  10659. max_write_delay = 9000;
  10660. ;
  10661. memory "efuse"
  10662. size = 1;
  10663. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  10664. "x x x x x x x x i i i i i i i i";
  10665. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  10666. "x x x x x x x x o o o o o o o o";
  10667. min_write_delay = 9000;
  10668. max_write_delay = 9000;
  10669. ;
  10670. memory "lock"
  10671. size = 1;
  10672. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  10673. "x x x x x x x x x x o o o o o o";
  10674. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  10675. "x x x x x x x x 1 1 i i i i i i";
  10676. min_write_delay = 9000;
  10677. max_write_delay = 9000;
  10678. ;
  10679. memory "calibration"
  10680. size = 1;
  10681. read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
  10682. "0 0 0 0 0 0 0 0 o o o o o o o o";
  10683. ;
  10684. memory "signature"
  10685. size = 3;
  10686. read = "0 0 1 1 0 0 0 0 0 0 0 x x x x x",
  10687. "x x x x x x a1 a0 o o o o o o o o";
  10688. ;
  10689. ;
  10690. #------------------------------------------------------------
  10691. # ATmega32U2
  10692. #------------------------------------------------------------
  10693. # Changes against AT90USB162 (beside IDs)
  10694. # memory "flash"
  10695. # size = 32768;
  10696. # num_pages = 256;
  10697. # memory "eeprom"
  10698. # size = 1024;
  10699. # num_pages = 256;
  10700. part
  10701. id = "m32u2";
  10702. desc = "ATmega32U2";
  10703. has_jtag = no;
  10704. has_debugwire = yes;
  10705. signature = 0x1e 0x95 0x8a;
  10706. usbpid = 0x2ff0;
  10707. chip_erase_delay = 9000;
  10708. reset = io;
  10709. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  10710. "x x x x x x x x x x x x x x x x";
  10711. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
  10712. "x x x x x x x x x x x x x x x x";
  10713. pagel = 0xD7;
  10714. bs2 = 0xC6;
  10715. timeout = 200;
  10716. stabdelay = 100;
  10717. cmdexedelay = 25;
  10718. synchloops = 32;
  10719. bytedelay = 0;
  10720. pollindex = 3;
  10721. pollvalue = 0x53;
  10722. predelay = 1;
  10723. postdelay = 1;
  10724. pollmethod = 1;
  10725. pp_controlstack =
  10726. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  10727. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  10728. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  10729. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  10730. hventerstabdelay = 100;
  10731. progmodedelay = 0;
  10732. latchcycles = 5;
  10733. togglevtg = 1;
  10734. poweroffdelay = 15;
  10735. resetdelayms = 1;
  10736. resetdelayus = 0;
  10737. hvleavestabdelay = 15;
  10738. chiperasepulsewidth = 0;
  10739. chiperasepolltimeout = 10;
  10740. programfusepulsewidth = 0;
  10741. programfusepolltimeout = 5;
  10742. programlockpulsewidth = 0;
  10743. programlockpolltimeout = 5;
  10744. ocdrev = 1;
  10745. memory "eeprom"
  10746. paged = no; /* leave this "no" */
  10747. page_size = 4; /* for parallel programming */
  10748. size = 1024;
  10749. num_pages = 256;
  10750. min_write_delay = 9000;
  10751. max_write_delay = 9000;
  10752. readback_p1 = 0x00;
  10753. readback_p2 = 0x00;
  10754. read = " 1 0 1 0 0 0 0 0",
  10755. " 0 0 0 0 a11 a10 a9 a8",
  10756. " a7 a6 a5 a4 a3 a2 a1 a0",
  10757. " o o o o o o o o";
  10758. write = " 1 1 0 0 0 0 0 0",
  10759. " 0 0 0 0 a11 a10 a9 a8",
  10760. " a7 a6 a5 a4 a3 a2 a1 a0",
  10761. " i i i i i i i i";
  10762. loadpage_lo = " 1 1 0 0 0 0 0 1",
  10763. " 0 0 0 0 0 0 0 0",
  10764. " 0 0 0 0 0 0 a1 a0",
  10765. " i i i i i i i i";
  10766. writepage = " 1 1 0 0 0 0 1 0",
  10767. " 0 0 0 0 a11 a10 a9 a8",
  10768. " a7 a6 a5 a4 a3 a2 0 0",
  10769. " x x x x x x x x";
  10770. mode = 0x41;
  10771. delay = 20;
  10772. blocksize = 4;
  10773. readsize = 256;
  10774. ;
  10775. memory "flash"
  10776. paged = yes;
  10777. size = 32768;
  10778. page_size = 128;
  10779. num_pages = 256;
  10780. min_write_delay = 4500;
  10781. max_write_delay = 4500;
  10782. readback_p1 = 0x00;
  10783. readback_p2 = 0x00;
  10784. read_lo = " 0 0 1 0 0 0 0 0",
  10785. "a15 a14 a13 a12 a11 a10 a9 a8",
  10786. " a7 a6 a5 a4 a3 a2 a1 a0",
  10787. " o o o o o o o o";
  10788. read_hi = " 0 0 1 0 1 0 0 0",
  10789. "a15 a14 a13 a12 a11 a10 a9 a8",
  10790. " a7 a6 a5 a4 a3 a2 a1 a0",
  10791. " o o o o o o o o";
  10792. loadpage_lo = " 0 1 0 0 0 0 0 0",
  10793. " x x x x x x x x",
  10794. " x x a5 a4 a3 a2 a1 a0",
  10795. " i i i i i i i i";
  10796. loadpage_hi = " 0 1 0 0 1 0 0 0",
  10797. " x x x x x x x x",
  10798. " x x a5 a4 a3 a2 a1 a0",
  10799. " i i i i i i i i";
  10800. writepage = " 0 1 0 0 1 1 0 0",
  10801. "a15 a14 a13 a12 a11 a10 a9 a8",
  10802. " a7 a6 x x x x x x",
  10803. " x x x x x x x x";
  10804. mode = 0x41;
  10805. delay = 6;
  10806. blocksize = 128;
  10807. readsize = 256;
  10808. ;
  10809. memory "lfuse"
  10810. size = 1;
  10811. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  10812. "x x x x x x x x i i i i i i i i";
  10813. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  10814. "x x x x x x x x o o o o o o o o";
  10815. min_write_delay = 9000;
  10816. max_write_delay = 9000;
  10817. ;
  10818. memory "hfuse"
  10819. size = 1;
  10820. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 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 1 0 0 0 0 0 0 0 1 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 "efuse"
  10828. size = 1;
  10829. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 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 0 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 "lock"
  10837. size = 1;
  10838. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  10839. "x x x x x x x x x x o o o o o o";
  10840. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  10841. "x x x x x x x x 1 1 i i i i i i";
  10842. min_write_delay = 9000;
  10843. max_write_delay = 9000;
  10844. ;
  10845. memory "calibration"
  10846. size = 1;
  10847. read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
  10848. "0 0 0 0 0 0 0 0 o o o o o o o o";
  10849. ;
  10850. memory "signature"
  10851. size = 3;
  10852. read = "0 0 1 1 0 0 0 0 0 0 0 x x x x x",
  10853. "x x x x x x a1 a0 o o o o o o o o";
  10854. ;
  10855. ;
  10856. #------------------------------------------------------------
  10857. # ATmega16U2
  10858. #------------------------------------------------------------
  10859. # Changes against ATmega32U2 (beside IDs)
  10860. # memory "flash"
  10861. # size = 16384;
  10862. # num_pages = 128;
  10863. # memory "eeprom"
  10864. # size = 512;
  10865. # num_pages = 128;
  10866. part
  10867. id = "m16u2";
  10868. desc = "ATmega16U2";
  10869. has_jtag = no;
  10870. has_debugwire = yes;
  10871. signature = 0x1e 0x94 0x89;
  10872. usbpid = 0x2fef;
  10873. chip_erase_delay = 9000;
  10874. reset = io;
  10875. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  10876. "x x x x x x x x x x x x x x x x";
  10877. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
  10878. "x x x x x x x x x x x x x x x x";
  10879. pagel = 0xD7;
  10880. bs2 = 0xC6;
  10881. timeout = 200;
  10882. stabdelay = 100;
  10883. cmdexedelay = 25;
  10884. synchloops = 32;
  10885. bytedelay = 0;
  10886. pollindex = 3;
  10887. pollvalue = 0x53;
  10888. predelay = 1;
  10889. postdelay = 1;
  10890. pollmethod = 1;
  10891. pp_controlstack =
  10892. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  10893. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  10894. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  10895. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  10896. hventerstabdelay = 100;
  10897. progmodedelay = 0;
  10898. latchcycles = 5;
  10899. togglevtg = 1;
  10900. poweroffdelay = 15;
  10901. resetdelayms = 1;
  10902. resetdelayus = 0;
  10903. hvleavestabdelay = 15;
  10904. chiperasepulsewidth = 0;
  10905. chiperasepolltimeout = 10;
  10906. programfusepulsewidth = 0;
  10907. programfusepolltimeout = 5;
  10908. programlockpulsewidth = 0;
  10909. programlockpolltimeout = 5;
  10910. ocdrev = 1;
  10911. memory "eeprom"
  10912. paged = no; /* leave this "no" */
  10913. page_size = 4; /* for parallel programming */
  10914. size = 512;
  10915. num_pages = 128;
  10916. min_write_delay = 9000;
  10917. max_write_delay = 9000;
  10918. readback_p1 = 0x00;
  10919. readback_p2 = 0x00;
  10920. read = " 1 0 1 0 0 0 0 0",
  10921. " 0 0 0 0 a11 a10 a9 a8",
  10922. " a7 a6 a5 a4 a3 a2 a1 a0",
  10923. " o o o o o o o o";
  10924. write = " 1 1 0 0 0 0 0 0",
  10925. " 0 0 0 0 a11 a10 a9 a8",
  10926. " a7 a6 a5 a4 a3 a2 a1 a0",
  10927. " i i i i i i i i";
  10928. loadpage_lo = " 1 1 0 0 0 0 0 1",
  10929. " 0 0 0 0 0 0 0 0",
  10930. " 0 0 0 0 0 0 a1 a0",
  10931. " i i i i i i i i";
  10932. writepage = " 1 1 0 0 0 0 1 0",
  10933. " 0 0 0 0 a11 a10 a9 a8",
  10934. " a7 a6 a5 a4 a3 a2 0 0",
  10935. " x x x x x x x x";
  10936. mode = 0x41;
  10937. delay = 20;
  10938. blocksize = 4;
  10939. readsize = 256;
  10940. ;
  10941. memory "flash"
  10942. paged = yes;
  10943. size = 16384;
  10944. page_size = 128;
  10945. num_pages = 128;
  10946. min_write_delay = 4500;
  10947. max_write_delay = 4500;
  10948. readback_p1 = 0x00;
  10949. readback_p2 = 0x00;
  10950. read_lo = " 0 0 1 0 0 0 0 0",
  10951. "a15 a14 a13 a12 a11 a10 a9 a8",
  10952. " a7 a6 a5 a4 a3 a2 a1 a0",
  10953. " o o o o o o o o";
  10954. read_hi = " 0 0 1 0 1 0 0 0",
  10955. "a15 a14 a13 a12 a11 a10 a9 a8",
  10956. " a7 a6 a5 a4 a3 a2 a1 a0",
  10957. " o o o o o o o o";
  10958. loadpage_lo = " 0 1 0 0 0 0 0 0",
  10959. " x x x x x x x x",
  10960. " x x a5 a4 a3 a2 a1 a0",
  10961. " i i i i i i i i";
  10962. loadpage_hi = " 0 1 0 0 1 0 0 0",
  10963. " x x x x x x x x",
  10964. " x x a5 a4 a3 a2 a1 a0",
  10965. " i i i i i i i i";
  10966. writepage = " 0 1 0 0 1 1 0 0",
  10967. "a15 a14 a13 a12 a11 a10 a9 a8",
  10968. " a7 a6 x x x x x x",
  10969. " x x x x x x x x";
  10970. mode = 0x41;
  10971. delay = 6;
  10972. blocksize = 128;
  10973. readsize = 256;
  10974. ;
  10975. memory "lfuse"
  10976. size = 1;
  10977. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  10978. "x x x x x x x x i i i i i i i i";
  10979. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  10980. "x x x x x x x x o o o o o o o o";
  10981. min_write_delay = 9000;
  10982. max_write_delay = 9000;
  10983. ;
  10984. memory "hfuse"
  10985. size = 1;
  10986. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  10987. "x x x x x x x x i i i i i i i i";
  10988. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  10989. "x x x x x x x x o o o o o o o o";
  10990. min_write_delay = 9000;
  10991. max_write_delay = 9000;
  10992. ;
  10993. memory "efuse"
  10994. size = 1;
  10995. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  10996. "x x x x x x x x i i i i i i i i";
  10997. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  10998. "x x x x x x x x o o o o o o o o";
  10999. min_write_delay = 9000;
  11000. max_write_delay = 9000;
  11001. ;
  11002. memory "lock"
  11003. size = 1;
  11004. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  11005. "x x x x x x x x x x o o o o o o";
  11006. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  11007. "x x x x x x x x 1 1 i i i i i i";
  11008. min_write_delay = 9000;
  11009. max_write_delay = 9000;
  11010. ;
  11011. memory "calibration"
  11012. size = 1;
  11013. read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
  11014. "0 0 0 0 0 0 0 0 o o o o o o o o";
  11015. ;
  11016. memory "signature"
  11017. size = 3;
  11018. read = "0 0 1 1 0 0 0 0 0 0 0 x x x x x",
  11019. "x x x x x x a1 a0 o o o o o o o o";
  11020. ;
  11021. ;
  11022. #------------------------------------------------------------
  11023. # ATmega8U2
  11024. #------------------------------------------------------------
  11025. # Changes against ATmega16U2 (beside IDs)
  11026. # memory "flash"
  11027. # size = 8192;
  11028. # page_size = 64;
  11029. # blocksize = 64;
  11030. part
  11031. id = "m8u2";
  11032. desc = "ATmega8U2";
  11033. has_jtag = no;
  11034. has_debugwire = yes;
  11035. signature = 0x1e 0x93 0x89;
  11036. usbpid = 0x2fee;
  11037. chip_erase_delay = 9000;
  11038. reset = io;
  11039. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  11040. "x x x x x x x x x x x x x x x x";
  11041. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
  11042. "x x x x x x x x x x x x x x x x";
  11043. pagel = 0xD7;
  11044. bs2 = 0xC6;
  11045. timeout = 200;
  11046. stabdelay = 100;
  11047. cmdexedelay = 25;
  11048. synchloops = 32;
  11049. bytedelay = 0;
  11050. pollindex = 3;
  11051. pollvalue = 0x53;
  11052. predelay = 1;
  11053. postdelay = 1;
  11054. pollmethod = 1;
  11055. pp_controlstack =
  11056. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  11057. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  11058. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  11059. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  11060. hventerstabdelay = 100;
  11061. progmodedelay = 0;
  11062. latchcycles = 5;
  11063. togglevtg = 1;
  11064. poweroffdelay = 15;
  11065. resetdelayms = 1;
  11066. resetdelayus = 0;
  11067. hvleavestabdelay = 15;
  11068. chiperasepulsewidth = 0;
  11069. chiperasepolltimeout = 10;
  11070. programfusepulsewidth = 0;
  11071. programfusepolltimeout = 5;
  11072. programlockpulsewidth = 0;
  11073. programlockpolltimeout = 5;
  11074. ocdrev = 1;
  11075. memory "eeprom"
  11076. paged = no; /* leave this "no" */
  11077. page_size = 4; /* for parallel programming */
  11078. size = 512;
  11079. num_pages = 128;
  11080. min_write_delay = 9000;
  11081. max_write_delay = 9000;
  11082. readback_p1 = 0x00;
  11083. readback_p2 = 0x00;
  11084. read = " 1 0 1 0 0 0 0 0",
  11085. " 0 0 0 0 a11 a10 a9 a8",
  11086. " a7 a6 a5 a4 a3 a2 a1 a0",
  11087. " o o o o o o o o";
  11088. write = " 1 1 0 0 0 0 0 0",
  11089. " 0 0 0 0 a11 a10 a9 a8",
  11090. " a7 a6 a5 a4 a3 a2 a1 a0",
  11091. " i i i i i i i i";
  11092. loadpage_lo = " 1 1 0 0 0 0 0 1",
  11093. " 0 0 0 0 0 0 0 0",
  11094. " 0 0 0 0 0 0 a1 a0",
  11095. " i i i i i i i i";
  11096. writepage = " 1 1 0 0 0 0 1 0",
  11097. " 0 0 0 0 a11 a10 a9 a8",
  11098. " a7 a6 a5 a4 a3 a2 0 0",
  11099. " x x x x x x x x";
  11100. mode = 0x41;
  11101. delay = 20;
  11102. blocksize = 4;
  11103. readsize = 256;
  11104. ;
  11105. memory "flash"
  11106. paged = yes;
  11107. size = 8192;
  11108. page_size = 128;
  11109. num_pages = 64;
  11110. min_write_delay = 4500;
  11111. max_write_delay = 4500;
  11112. readback_p1 = 0x00;
  11113. readback_p2 = 0x00;
  11114. read_lo = " 0 0 1 0 0 0 0 0",
  11115. "a15 a14 a13 a12 a11 a10 a9 a8",
  11116. " a7 a6 a5 a4 a3 a2 a1 a0",
  11117. " o o o o o o o o";
  11118. read_hi = " 0 0 1 0 1 0 0 0",
  11119. "a15 a14 a13 a12 a11 a10 a9 a8",
  11120. " a7 a6 a5 a4 a3 a2 a1 a0",
  11121. " o o o o o o o o";
  11122. loadpage_lo = " 0 1 0 0 0 0 0 0",
  11123. " x x x x x x x x",
  11124. " x x a5 a4 a3 a2 a1 a0",
  11125. " i i i i i i i i";
  11126. loadpage_hi = " 0 1 0 0 1 0 0 0",
  11127. " x x x x x x x x",
  11128. " x x a5 a4 a3 a2 a1 a0",
  11129. " i i i i i i i i";
  11130. writepage = " 0 1 0 0 1 1 0 0",
  11131. "a15 a14 a13 a12 a11 a10 a9 a8",
  11132. " a7 a6 x x x x x x",
  11133. " x x x x x x x x";
  11134. mode = 0x41;
  11135. delay = 6;
  11136. blocksize = 128;
  11137. readsize = 256;
  11138. ;
  11139. memory "lfuse"
  11140. size = 1;
  11141. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  11142. "x x x x x x x x i i i i i i i i";
  11143. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  11144. "x x x x x x x x o o o o o o o o";
  11145. min_write_delay = 9000;
  11146. max_write_delay = 9000;
  11147. ;
  11148. memory "hfuse"
  11149. size = 1;
  11150. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  11151. "x x x x x x x x i i i i i i i i";
  11152. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  11153. "x x x x x x x x o o o o o o o o";
  11154. min_write_delay = 9000;
  11155. max_write_delay = 9000;
  11156. ;
  11157. memory "efuse"
  11158. size = 1;
  11159. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  11160. "x x x x x x x x i i i i i i i i";
  11161. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  11162. "x x x x x x x x o o o o o o o o";
  11163. min_write_delay = 9000;
  11164. max_write_delay = 9000;
  11165. ;
  11166. memory "lock"
  11167. size = 1;
  11168. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  11169. "x x x x x x x x x x o o o o o o";
  11170. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  11171. "x x x x x x x x 1 1 i i i i i i";
  11172. min_write_delay = 9000;
  11173. max_write_delay = 9000;
  11174. ;
  11175. memory "calibration"
  11176. size = 1;
  11177. read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
  11178. "0 0 0 0 0 0 0 0 o o o o o o o o";
  11179. ;
  11180. memory "signature"
  11181. size = 3;
  11182. read = "0 0 1 1 0 0 0 0 0 0 0 x x x x x",
  11183. "x x x x x x a1 a0 o o o o o o o o";
  11184. ;
  11185. ;
  11186. #------------------------------------------------------------
  11187. # ATmega325
  11188. #------------------------------------------------------------
  11189. part
  11190. id = "m325";
  11191. desc = "ATmega325";
  11192. signature = 0x1e 0x95 0x05;
  11193. has_jtag = yes;
  11194. # stk500_devcode = 0x??; # No STK500v1 support?
  11195. # avr910_devcode = 0x??; # Try the ATmega16 one
  11196. avr910_devcode = 0x74;
  11197. pagel = 0xd7;
  11198. bs2 = 0xa0;
  11199. chip_erase_delay = 9000;
  11200. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  11201. "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0";
  11202. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 0 0 0 0 0",
  11203. "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0";
  11204. timeout = 200;
  11205. stabdelay = 100;
  11206. cmdexedelay = 25;
  11207. synchloops = 32;
  11208. bytedelay = 0;
  11209. pollindex = 3;
  11210. pollvalue = 0x53;
  11211. predelay = 1;
  11212. postdelay = 1;
  11213. pollmethod = 1;
  11214. pp_controlstack =
  11215. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  11216. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  11217. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  11218. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  11219. hventerstabdelay = 100;
  11220. progmodedelay = 0;
  11221. latchcycles = 5;
  11222. togglevtg = 1;
  11223. poweroffdelay = 15;
  11224. resetdelayms = 1;
  11225. resetdelayus = 0;
  11226. hvleavestabdelay = 15;
  11227. chiperasepulsewidth = 0;
  11228. chiperasepolltimeout = 10;
  11229. programfusepulsewidth = 0;
  11230. programfusepolltimeout = 5;
  11231. programlockpulsewidth = 0;
  11232. programlockpolltimeout = 5;
  11233. idr = 0x31;
  11234. spmcr = 0x57;
  11235. allowfullpagebitstream = no;
  11236. ocdrev = 3;
  11237. memory "eeprom"
  11238. paged = no; /* leave this "no" */
  11239. page_size = 4; /* for parallel programming */
  11240. size = 1024;
  11241. min_write_delay = 9000;
  11242. max_write_delay = 9000;
  11243. readback_p1 = 0xff;
  11244. readback_p2 = 0xff;
  11245. read = " 1 0 1 0 0 0 0 0",
  11246. " 0 0 0 0 0 0 a9 a8",
  11247. " a7 a6 a5 a4 a3 a2 a1 a0",
  11248. " o o o o o o o o";
  11249. write = " 1 1 0 0 0 0 0 0",
  11250. " 0 0 0 0 0 0 a9 a8",
  11251. " a7 a6 a5 a4 a3 a2 a1 a0",
  11252. " i i i i i i i i";
  11253. loadpage_lo = " 1 1 0 0 0 0 0 1",
  11254. " 0 0 0 0 0 0 0 0",
  11255. " 0 0 0 0 0 0 a1 a0",
  11256. " i i i i i i i i";
  11257. writepage = " 1 1 0 0 0 0 1 0",
  11258. " 0 0 0 0 0 0 a9 a8",
  11259. " a7 a6 a5 a4 a3 a2 0 0",
  11260. " x x x x x x x x";
  11261. mode = 0x41;
  11262. delay = 10;
  11263. blocksize = 4;
  11264. readsize = 256;
  11265. ;
  11266. memory "flash"
  11267. paged = yes;
  11268. size = 32768;
  11269. page_size = 128;
  11270. num_pages = 256;
  11271. min_write_delay = 4500;
  11272. max_write_delay = 4500;
  11273. readback_p1 = 0xff;
  11274. readback_p2 = 0xff;
  11275. read_lo = " 0 0 1 0 0 0 0 0",
  11276. " 0 a14 a13 a12 a11 a10 a9 a8",
  11277. " a7 a6 a5 a4 a3 a2 a1 a0",
  11278. " o o o o o o o o";
  11279. read_hi = " 0 0 1 0 1 0 0 0",
  11280. " 0 a14 a13 a12 a11 a10 a9 a8",
  11281. " a7 a6 a5 a4 a3 a2 a1 a0",
  11282. " o o o o o o o o";
  11283. loadpage_lo = " 0 1 0 0 0 0 0 0",
  11284. " 0 0 0 0 0 0 0 0",
  11285. " a7 a6 a5 a4 a3 a2 a1 a0",
  11286. " i i i i i i i i";
  11287. loadpage_hi = " 0 1 0 0 1 0 0 0",
  11288. " 0 0 0 0 0 0 0 0",
  11289. " a7 a6 a5 a4 a3 a2 a1 a0",
  11290. " i i i i i i i i";
  11291. writepage = " 0 1 0 0 1 1 0 0",
  11292. " 0 a14 a13 a12 a11 a10 a9 a8",
  11293. " a7 a6 a5 a4 a3 a2 a1 a0",
  11294. " x x x x x x x x";
  11295. mode = 0x41;
  11296. delay = 10;
  11297. blocksize = 128;
  11298. readsize = 256;
  11299. ;
  11300. memory "lock"
  11301. size = 1;
  11302. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  11303. "x x x x x x x x x x o o o o o o";
  11304. write = "1 0 1 0 1 1 0 0 1 1 1 0 0 0 0 0",
  11305. "0 0 0 0 0 0 0 0 1 1 i i i i i i";
  11306. min_write_delay = 9000;
  11307. max_write_delay = 9000;
  11308. ;
  11309. memory "lfuse"
  11310. size = 1;
  11311. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  11312. "0 0 0 0 0 0 0 0 o o o o o o o o";
  11313. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  11314. "0 0 0 0 0 0 0 0 i i i i i i i i";
  11315. min_write_delay = 9000;
  11316. max_write_delay = 9000;
  11317. ;
  11318. memory "hfuse"
  11319. size = 1;
  11320. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  11321. "0 0 0 0 0 0 0 0 o o o o o o o o";
  11322. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  11323. "0 0 0 0 0 0 0 0 i i i i i i i i";
  11324. min_write_delay = 9000;
  11325. max_write_delay = 9000;
  11326. ;
  11327. memory "efuse"
  11328. size = 1;
  11329. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  11330. "0 0 0 0 0 0 0 0 o o o o o o o o";
  11331. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  11332. "0 0 0 0 0 0 0 0 1 1 1 1 1 i i i";
  11333. min_write_delay = 9000;
  11334. max_write_delay = 9000;
  11335. ;
  11336. memory "signature"
  11337. size = 3;
  11338. read = "0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0",
  11339. "0 0 0 0 0 0 a1 a0 o o o o o o o o";
  11340. ;
  11341. memory "calibration"
  11342. size = 1;
  11343. read = "0 0 1 1 1 0 0 0 0 0 0 0 0 0 0 0",
  11344. "0 0 0 0 0 0 0 0 o o o o o o o o";
  11345. ;
  11346. ;
  11347. #------------------------------------------------------------
  11348. # ATmega645
  11349. #------------------------------------------------------------
  11350. part
  11351. id = "m645";
  11352. desc = "ATmega645";
  11353. signature = 0x1E 0x96 0x05;
  11354. has_jtag = yes;
  11355. # stk500_devcode = 0x??; # No STK500v1 support?
  11356. # avr910_devcode = 0x??; # Try the ATmega16 one
  11357. avr910_devcode = 0x74;
  11358. pagel = 0xd7;
  11359. bs2 = 0xa0;
  11360. chip_erase_delay = 9000;
  11361. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  11362. "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0";
  11363. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 0 0 0 0 0",
  11364. "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0";
  11365. timeout = 200;
  11366. stabdelay = 100;
  11367. cmdexedelay = 25;
  11368. synchloops = 32;
  11369. bytedelay = 0;
  11370. pollindex = 3;
  11371. pollvalue = 0x53;
  11372. predelay = 1;
  11373. postdelay = 1;
  11374. pollmethod = 1;
  11375. pp_controlstack =
  11376. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  11377. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  11378. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  11379. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  11380. hventerstabdelay = 100;
  11381. progmodedelay = 0;
  11382. latchcycles = 5;
  11383. togglevtg = 1;
  11384. poweroffdelay = 15;
  11385. resetdelayms = 1;
  11386. resetdelayus = 0;
  11387. hvleavestabdelay = 15;
  11388. chiperasepulsewidth = 0;
  11389. chiperasepolltimeout = 10;
  11390. programfusepulsewidth = 0;
  11391. programfusepolltimeout = 5;
  11392. programlockpulsewidth = 0;
  11393. programlockpolltimeout = 5;
  11394. idr = 0x31;
  11395. spmcr = 0x57;
  11396. allowfullpagebitstream = no;
  11397. ocdrev = 3;
  11398. memory "eeprom"
  11399. paged = no; /* leave this "no" */
  11400. page_size = 8; /* for parallel programming */
  11401. size = 2048;
  11402. min_write_delay = 9000;
  11403. max_write_delay = 9000;
  11404. readback_p1 = 0xff;
  11405. readback_p2 = 0xff;
  11406. read = " 1 0 1 0 0 0 0 0",
  11407. " 0 0 0 0 0 a10 a9 a8",
  11408. " a7 a6 a5 a4 a3 a2 a1 a0",
  11409. " o o o o o o o o";
  11410. write = " 1 1 0 0 0 0 0 0",
  11411. " 0 0 0 0 0 a10 a9 a8",
  11412. " a7 a6 a5 a4 a3 a2 a1 a0",
  11413. " i i i i i i i i";
  11414. loadpage_lo = " 1 1 0 0 0 0 0 1",
  11415. " 0 0 0 0 0 0 0 0",
  11416. " 0 0 0 0 0 a2 a1 a0",
  11417. " i i i i i i i i";
  11418. writepage = " 1 1 0 0 0 0 1 0",
  11419. " 0 0 0 0 0 a10 a9 a8",
  11420. " a7 a6 a5 a4 a3 0 0 0",
  11421. " x x x x x x x x";
  11422. mode = 0x41;
  11423. delay = 10;
  11424. blocksize = 8;
  11425. readsize = 256;
  11426. ;
  11427. memory "flash"
  11428. paged = yes;
  11429. size = 65536;
  11430. page_size = 256;
  11431. num_pages = 256;
  11432. min_write_delay = 4500;
  11433. max_write_delay = 4500;
  11434. readback_p1 = 0xff;
  11435. readback_p2 = 0xff;
  11436. read_lo = " 0 0 1 0 0 0 0 0",
  11437. " a15 a14 a13 a12 a11 a10 a9 a8",
  11438. " a7 a6 a5 a4 a3 a2 a1 a0",
  11439. " o o o o o o o o";
  11440. read_hi = " 0 0 1 0 1 0 0 0",
  11441. " a15 a14 a13 a12 a11 a10 a9 a8",
  11442. " a7 a6 a5 a4 a3 a2 a1 a0",
  11443. " o o o o o o o o";
  11444. loadpage_lo = " 0 1 0 0 0 0 0 0",
  11445. " 0 0 0 0 0 0 0 0",
  11446. " a7 a6 a5 a4 a3 a2 a1 a0",
  11447. " i i i i i i i i";
  11448. loadpage_hi = " 0 1 0 0 1 0 0 0",
  11449. " 0 0 0 0 0 0 0 0",
  11450. " a7 a6 a5 a4 a3 a2 a1 a0",
  11451. " i i i i i i i i";
  11452. writepage = " 0 1 0 0 1 1 0 0",
  11453. " a15 a14 a13 a12 a11 a10 a9 a8",
  11454. " a7 a6 a5 a4 a3 a2 a1 a0",
  11455. " 0 0 0 0 0 0 0 0";
  11456. mode = 0x41;
  11457. delay = 10;
  11458. blocksize = 128;
  11459. readsize = 256;
  11460. ;
  11461. memory "lock"
  11462. size = 1;
  11463. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  11464. "x x x x x x x x x x o o o o o o";
  11465. write = "1 0 1 0 1 1 0 0 1 1 1 0 0 0 0 0",
  11466. "0 0 0 0 0 0 0 0 1 1 i i i i i i";
  11467. min_write_delay = 9000;
  11468. max_write_delay = 9000;
  11469. ;
  11470. memory "lfuse"
  11471. size = 1;
  11472. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  11473. "0 0 0 0 0 0 0 0 o o o o o o o o";
  11474. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  11475. "0 0 0 0 0 0 0 0 i i i i i i i i";
  11476. min_write_delay = 9000;
  11477. max_write_delay = 9000;
  11478. ;
  11479. memory "hfuse"
  11480. size = 1;
  11481. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  11482. "0 0 0 0 0 0 0 0 o o o o o o o o";
  11483. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  11484. "0 0 0 0 0 0 0 0 i i i i i i i i";
  11485. min_write_delay = 9000;
  11486. max_write_delay = 9000;
  11487. ;
  11488. memory "efuse"
  11489. size = 1;
  11490. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  11491. "0 0 0 0 0 0 0 0 o o o o o o o o";
  11492. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  11493. "0 0 0 0 0 0 0 0 1 1 1 1 1 i i i";
  11494. min_write_delay = 9000;
  11495. max_write_delay = 9000;
  11496. ;
  11497. memory "signature"
  11498. size = 3;
  11499. read = "0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0",
  11500. "0 0 0 0 0 0 a1 a0 o o o o o o o o";
  11501. ;
  11502. memory "calibration"
  11503. size = 1;
  11504. read = "0 0 1 1 1 0 0 0 0 0 0 0 0 0 0 0",
  11505. "0 0 0 0 0 0 0 0 o o o o o o o o";
  11506. ;
  11507. ;
  11508. #------------------------------------------------------------
  11509. # ATmega3250
  11510. #------------------------------------------------------------
  11511. part parent "m325"
  11512. id = "m3250";
  11513. desc = "ATmega3250";
  11514. signature = 0x1E 0x95 0x06;
  11515. ocdrev = 3;
  11516. ;
  11517. #------------------------------------------------------------
  11518. # ATmega6450
  11519. #------------------------------------------------------------
  11520. part parent "m645"
  11521. id = "m6450";
  11522. desc = "ATmega6450";
  11523. signature = 0x1E 0x96 0x06;
  11524. ocdrev = 3;
  11525. ;
  11526. #------------------------------------------------------------
  11527. # AVR XMEGA family common values
  11528. #------------------------------------------------------------
  11529. part
  11530. id = ".xmega";
  11531. desc = "AVR XMEGA family common values";
  11532. has_pdi = yes;
  11533. nvm_base = 0x01c0;
  11534. mcu_base = 0x0090;
  11535. memory "signature"
  11536. size = 3;
  11537. offset = 0x1000090;
  11538. ;
  11539. memory "prodsig"
  11540. size = 0x32;
  11541. offset = 0x8e0200;
  11542. page_size = 0x32;
  11543. readsize = 0x32;
  11544. ;
  11545. memory "fuse1"
  11546. size = 1;
  11547. offset = 0x8f0021;
  11548. ;
  11549. memory "fuse2"
  11550. size = 1;
  11551. offset = 0x8f0022;
  11552. ;
  11553. memory "fuse4"
  11554. size = 1;
  11555. offset = 0x8f0024;
  11556. ;
  11557. memory "fuse5"
  11558. size = 1;
  11559. offset = 0x8f0025;
  11560. ;
  11561. memory "lock"
  11562. size = 1;
  11563. offset = 0x8f0027;
  11564. ;
  11565. memory "data"
  11566. # SRAM, only used to supply the offset
  11567. offset = 0x1000000;
  11568. ;
  11569. ;
  11570. #------------------------------------------------------------
  11571. # ATxmega16A4U
  11572. #------------------------------------------------------------
  11573. part parent ".xmega"
  11574. id = "x16a4u";
  11575. desc = "ATxmega16A4U";
  11576. signature = 0x1e 0x94 0x41;
  11577. usbpid = 0x2fe3;
  11578. memory "eeprom"
  11579. size = 0x400;
  11580. offset = 0x8c0000;
  11581. page_size = 0x20;
  11582. readsize = 0x100;
  11583. ;
  11584. memory "application"
  11585. size = 0x4000;
  11586. offset = 0x800000;
  11587. page_size = 0x100;
  11588. readsize = 0x100;
  11589. ;
  11590. memory "apptable"
  11591. size = 0x1000;
  11592. offset = 0x803000;
  11593. page_size = 0x100;
  11594. readsize = 0x100;
  11595. ;
  11596. memory "boot"
  11597. size = 0x1000;
  11598. offset = 0x804000;
  11599. page_size = 0x100;
  11600. readsize = 0x100;
  11601. ;
  11602. memory "flash"
  11603. size = 0x5000;
  11604. offset = 0x800000;
  11605. page_size = 0x100;
  11606. readsize = 0x100;
  11607. ;
  11608. memory "usersig"
  11609. size = 0x100;
  11610. offset = 0x8e0400;
  11611. page_size = 0x100;
  11612. readsize = 0x100;
  11613. ;
  11614. ;
  11615. #------------------------------------------------------------
  11616. # ATxmega16C4
  11617. #------------------------------------------------------------
  11618. part parent "x16a4u"
  11619. id = "x16c4";
  11620. desc = "ATxmega16C4";
  11621. signature = 0x1e 0x95 0x44;
  11622. ;
  11623. #------------------------------------------------------------
  11624. # ATxmega16D4
  11625. #------------------------------------------------------------
  11626. part parent "x16a4u"
  11627. id = "x16d4";
  11628. desc = "ATxmega16D4";
  11629. signature = 0x1e 0x94 0x42;
  11630. ;
  11631. #------------------------------------------------------------
  11632. # ATxmega16A4
  11633. #------------------------------------------------------------
  11634. part parent "x16a4u"
  11635. id = "x16a4";
  11636. desc = "ATxmega16A4";
  11637. signature = 0x1e 0x94 0x41;
  11638. has_jtag = yes;
  11639. memory "fuse0"
  11640. size = 1;
  11641. offset = 0x8f0020;
  11642. ;
  11643. ;
  11644. #------------------------------------------------------------
  11645. # ATxmega32A4U
  11646. #------------------------------------------------------------
  11647. part parent ".xmega"
  11648. id = "x32a4u";
  11649. desc = "ATxmega32A4U";
  11650. signature = 0x1e 0x95 0x41;
  11651. usbpid = 0x2fe4;
  11652. memory "eeprom"
  11653. size = 0x400;
  11654. offset = 0x8c0000;
  11655. page_size = 0x20;
  11656. readsize = 0x100;
  11657. ;
  11658. memory "application"
  11659. size = 0x8000;
  11660. offset = 0x800000;
  11661. page_size = 0x100;
  11662. readsize = 0x100;
  11663. ;
  11664. memory "apptable"
  11665. size = 0x1000;
  11666. offset = 0x807000;
  11667. page_size = 0x100;
  11668. readsize = 0x100;
  11669. ;
  11670. memory "boot"
  11671. size = 0x1000;
  11672. offset = 0x808000;
  11673. page_size = 0x100;
  11674. readsize = 0x100;
  11675. ;
  11676. memory "flash"
  11677. size = 0x9000;
  11678. offset = 0x800000;
  11679. page_size = 0x100;
  11680. readsize = 0x100;
  11681. ;
  11682. memory "usersig"
  11683. size = 0x100;
  11684. offset = 0x8e0400;
  11685. page_size = 0x100;
  11686. readsize = 0x100;
  11687. ;
  11688. ;
  11689. #------------------------------------------------------------
  11690. # ATxmega32C4
  11691. #------------------------------------------------------------
  11692. part parent "x32a4u"
  11693. id = "x32c4";
  11694. desc = "ATxmega32C4";
  11695. signature = 0x1e 0x94 0x43;
  11696. ;
  11697. #------------------------------------------------------------
  11698. # ATxmega32D4
  11699. #------------------------------------------------------------
  11700. part parent "x32a4u"
  11701. id = "x32d4";
  11702. desc = "ATxmega32D4";
  11703. signature = 0x1e 0x95 0x42;
  11704. ;
  11705. #------------------------------------------------------------
  11706. # ATxmega32A4
  11707. #------------------------------------------------------------
  11708. part parent "x32a4u"
  11709. id = "x32a4";
  11710. desc = "ATxmega32A4";
  11711. signature = 0x1e 0x95 0x41;
  11712. has_jtag = yes;
  11713. memory "fuse0"
  11714. size = 1;
  11715. offset = 0x8f0020;
  11716. ;
  11717. ;
  11718. #------------------------------------------------------------
  11719. # ATxmega64A4U
  11720. #------------------------------------------------------------
  11721. part parent ".xmega"
  11722. id = "x64a4u";
  11723. desc = "ATxmega64A4U";
  11724. signature = 0x1e 0x96 0x46;
  11725. usbpid = 0x2fe5;
  11726. memory "eeprom"
  11727. size = 0x800;
  11728. offset = 0x8c0000;
  11729. page_size = 0x20;
  11730. readsize = 0x100;
  11731. ;
  11732. memory "application"
  11733. size = 0x10000;
  11734. offset = 0x800000;
  11735. page_size = 0x100;
  11736. readsize = 0x100;
  11737. ;
  11738. memory "apptable"
  11739. size = 0x1000;
  11740. offset = 0x80f000;
  11741. page_size = 0x100;
  11742. readsize = 0x100;
  11743. ;
  11744. memory "boot"
  11745. size = 0x1000;
  11746. offset = 0x810000;
  11747. page_size = 0x100;
  11748. readsize = 0x100;
  11749. ;
  11750. memory "flash"
  11751. size = 0x11000;
  11752. offset = 0x800000;
  11753. page_size = 0x100;
  11754. readsize = 0x100;
  11755. ;
  11756. memory "usersig"
  11757. size = 0x100;
  11758. offset = 0x8e0400;
  11759. page_size = 0x100;
  11760. readsize = 0x100;
  11761. ;
  11762. ;
  11763. #------------------------------------------------------------
  11764. # ATxmega64C3
  11765. #------------------------------------------------------------
  11766. part parent "x64a4u"
  11767. id = "x64c3";
  11768. desc = "ATxmega64C3";
  11769. signature = 0x1e 0x96 0x49;
  11770. usbpid = 0x2fd6;
  11771. ;
  11772. #------------------------------------------------------------
  11773. # ATxmega64D3
  11774. #------------------------------------------------------------
  11775. part parent "x64a4u"
  11776. id = "x64d3";
  11777. desc = "ATxmega64D3";
  11778. signature = 0x1e 0x96 0x4a;
  11779. ;
  11780. #------------------------------------------------------------
  11781. # ATxmega64D4
  11782. #------------------------------------------------------------
  11783. part parent "x64a4u"
  11784. id = "x64d4";
  11785. desc = "ATxmega64D4";
  11786. signature = 0x1e 0x96 0x47;
  11787. ;
  11788. #------------------------------------------------------------
  11789. # ATxmega64A1
  11790. #------------------------------------------------------------
  11791. part parent "x64a4u"
  11792. id = "x64a1";
  11793. desc = "ATxmega64A1";
  11794. signature = 0x1e 0x96 0x4e;
  11795. has_jtag = yes;
  11796. memory "fuse0"
  11797. size = 1;
  11798. offset = 0x8f0020;
  11799. ;
  11800. ;
  11801. #------------------------------------------------------------
  11802. # ATxmega64A1U
  11803. #------------------------------------------------------------
  11804. part parent "x64a1"
  11805. id = "x64a1u";
  11806. desc = "ATxmega64A1U";
  11807. signature = 0x1e 0x96 0x4e;
  11808. usbpid = 0x2fe8;
  11809. ;
  11810. #------------------------------------------------------------
  11811. # ATxmega64A3
  11812. #------------------------------------------------------------
  11813. part parent "x64a1"
  11814. id = "x64a3";
  11815. desc = "ATxmega64A3";
  11816. signature = 0x1e 0x96 0x42;
  11817. ;
  11818. #------------------------------------------------------------
  11819. # ATxmega64A3U
  11820. #------------------------------------------------------------
  11821. part parent "x64a1"
  11822. id = "x64a3u";
  11823. desc = "ATxmega64A3U";
  11824. signature = 0x1e 0x96 0x42;
  11825. usbpid = 0x2fe5;
  11826. ;
  11827. #------------------------------------------------------------
  11828. # ATxmega64A4
  11829. #------------------------------------------------------------
  11830. part parent "x64a1"
  11831. id = "x64a4";
  11832. desc = "ATxmega64A4";
  11833. signature = 0x1e 0x96 0x46;
  11834. ;
  11835. #------------------------------------------------------------
  11836. # ATxmega64B1
  11837. #------------------------------------------------------------
  11838. part parent "x64a1"
  11839. id = "x64b1";
  11840. desc = "ATxmega64B1";
  11841. signature = 0x1e 0x96 0x52;
  11842. usbpid = 0x2fe1;
  11843. ;
  11844. #------------------------------------------------------------
  11845. # ATxmega64B3
  11846. #------------------------------------------------------------
  11847. part parent "x64a1"
  11848. id = "x64b3";
  11849. desc = "ATxmega64B3";
  11850. signature = 0x1e 0x96 0x51;
  11851. usbpid = 0x2fdf;
  11852. ;
  11853. #------------------------------------------------------------
  11854. # ATxmega128C3
  11855. #------------------------------------------------------------
  11856. part parent ".xmega"
  11857. id = "x128c3";
  11858. desc = "ATxmega128C3";
  11859. signature = 0x1e 0x97 0x52;
  11860. usbpid = 0x2fd7;
  11861. memory "eeprom"
  11862. size = 0x800;
  11863. offset = 0x8c0000;
  11864. page_size = 0x20;
  11865. readsize = 0x100;
  11866. ;
  11867. memory "application"
  11868. size = 0x20000;
  11869. offset = 0x800000;
  11870. page_size = 0x200;
  11871. readsize = 0x100;
  11872. ;
  11873. memory "apptable"
  11874. size = 0x2000;
  11875. offset = 0x81e000;
  11876. page_size = 0x200;
  11877. readsize = 0x100;
  11878. ;
  11879. memory "boot"
  11880. size = 0x2000;
  11881. offset = 0x820000;
  11882. page_size = 0x200;
  11883. readsize = 0x100;
  11884. ;
  11885. memory "flash"
  11886. size = 0x22000;
  11887. offset = 0x800000;
  11888. page_size = 0x200;
  11889. readsize = 0x100;
  11890. ;
  11891. memory "usersig"
  11892. size = 0x200;
  11893. offset = 0x8e0400;
  11894. page_size = 0x200;
  11895. readsize = 0x100;
  11896. ;
  11897. ;
  11898. #------------------------------------------------------------
  11899. # ATxmega128D3
  11900. #------------------------------------------------------------
  11901. part parent "x128c3"
  11902. id = "x128d3";
  11903. desc = "ATxmega128D3";
  11904. signature = 0x1e 0x97 0x48;
  11905. ;
  11906. #------------------------------------------------------------
  11907. # ATxmega128D4
  11908. #------------------------------------------------------------
  11909. part parent "x128c3"
  11910. id = "x128d4";
  11911. desc = "ATxmega128D4";
  11912. signature = 0x1e 0x97 0x47;
  11913. ;
  11914. #------------------------------------------------------------
  11915. # ATxmega128A1
  11916. #------------------------------------------------------------
  11917. part parent "x128c3"
  11918. id = "x128a1";
  11919. desc = "ATxmega128A1";
  11920. signature = 0x1e 0x97 0x4c;
  11921. has_jtag = yes;
  11922. memory "fuse0"
  11923. size = 1;
  11924. offset = 0x8f0020;
  11925. ;
  11926. ;
  11927. #------------------------------------------------------------
  11928. # ATxmega128A1 revision D
  11929. #------------------------------------------------------------
  11930. part parent "x128a1"
  11931. id = "x128a1d";
  11932. desc = "ATxmega128A1revD";
  11933. signature = 0x1e 0x97 0x41;
  11934. ;
  11935. #------------------------------------------------------------
  11936. # ATxmega128A1U
  11937. #------------------------------------------------------------
  11938. part parent "x128a1"
  11939. id = "x128a1u";
  11940. desc = "ATxmega128A1U";
  11941. signature = 0x1e 0x97 0x4c;
  11942. usbpid = 0x2fed;
  11943. ;
  11944. #------------------------------------------------------------
  11945. # ATxmega128A3
  11946. #------------------------------------------------------------
  11947. part parent "x128a1"
  11948. id = "x128a3";
  11949. desc = "ATxmega128A3";
  11950. signature = 0x1e 0x97 0x42;
  11951. ;
  11952. #------------------------------------------------------------
  11953. # ATxmega128A3U
  11954. #------------------------------------------------------------
  11955. part parent "x128a1"
  11956. id = "x128a3u";
  11957. desc = "ATxmega128A3U";
  11958. signature = 0x1e 0x97 0x42;
  11959. usbpid = 0x2fe6;
  11960. ;
  11961. #------------------------------------------------------------
  11962. # ATxmega128A4
  11963. #------------------------------------------------------------
  11964. part parent ".xmega"
  11965. id = "x128a4";
  11966. desc = "ATxmega128A4";
  11967. signature = 0x1e 0x97 0x46;
  11968. has_jtag = yes;
  11969. memory "eeprom"
  11970. size = 0x800;
  11971. offset = 0x8c0000;
  11972. page_size = 0x20;
  11973. readsize = 0x100;
  11974. ;
  11975. memory "application"
  11976. size = 0x20000;
  11977. offset = 0x800000;
  11978. page_size = 0x200;
  11979. readsize = 0x100;
  11980. ;
  11981. memory "apptable"
  11982. size = 0x1000;
  11983. offset = 0x81f000;
  11984. page_size = 0x200;
  11985. readsize = 0x100;
  11986. ;
  11987. memory "boot"
  11988. size = 0x2000;
  11989. offset = 0x820000;
  11990. page_size = 0x200;
  11991. readsize = 0x100;
  11992. ;
  11993. memory "flash"
  11994. size = 0x22000;
  11995. offset = 0x800000;
  11996. page_size = 0x200;
  11997. readsize = 0x100;
  11998. ;
  11999. memory "usersig"
  12000. size = 0x200;
  12001. offset = 0x8e0400;
  12002. page_size = 0x200;
  12003. readsize = 0x100;
  12004. ;
  12005. memory "fuse0"
  12006. size = 1;
  12007. offset = 0x8f0020;
  12008. ;
  12009. ;
  12010. #------------------------------------------------------------
  12011. # ATxmega128A4U
  12012. #------------------------------------------------------------
  12013. part parent ".xmega"
  12014. id = "x128a4u";
  12015. desc = "ATxmega128A4U";
  12016. signature = 0x1e 0x97 0x46;
  12017. usbpid = 0x2fde;
  12018. memory "eeprom"
  12019. size = 0x800;
  12020. offset = 0x8c0000;
  12021. page_size = 0x20;
  12022. readsize = 0x100;
  12023. ;
  12024. memory "application"
  12025. size = 0x20000;
  12026. offset = 0x800000;
  12027. page_size = 0x100;
  12028. readsize = 0x100;
  12029. ;
  12030. memory "apptable"
  12031. size = 0x1000;
  12032. offset = 0x81f000;
  12033. page_size = 0x100;
  12034. readsize = 0x100;
  12035. ;
  12036. memory "boot"
  12037. size = 0x2000;
  12038. offset = 0x820000;
  12039. page_size = 0x100;
  12040. readsize = 0x100;
  12041. ;
  12042. memory "flash"
  12043. size = 0x22000;
  12044. offset = 0x800000;
  12045. page_size = 0x100;
  12046. readsize = 0x100;
  12047. ;
  12048. memory "usersig"
  12049. size = 0x100;
  12050. offset = 0x8e0400;
  12051. page_size = 0x100;
  12052. readsize = 0x100;
  12053. ;
  12054. ;
  12055. #------------------------------------------------------------
  12056. # ATxmega128B1
  12057. #------------------------------------------------------------
  12058. part parent ".xmega"
  12059. id = "x128b1";
  12060. desc = "ATxmega128B1";
  12061. signature = 0x1e 0x97 0x4d;
  12062. usbpid = 0x2fea;
  12063. has_jtag = yes;
  12064. memory "eeprom"
  12065. size = 0x800;
  12066. offset = 0x8c0000;
  12067. page_size = 0x20;
  12068. readsize = 0x100;
  12069. ;
  12070. memory "application"
  12071. size = 0x20000;
  12072. offset = 0x800000;
  12073. page_size = 0x100;
  12074. readsize = 0x100;
  12075. ;
  12076. memory "apptable"
  12077. size = 0x2000;
  12078. offset = 0x81e000;
  12079. page_size = 0x100;
  12080. readsize = 0x100;
  12081. ;
  12082. memory "boot"
  12083. size = 0x2000;
  12084. offset = 0x820000;
  12085. page_size = 0x100;
  12086. readsize = 0x100;
  12087. ;
  12088. memory "flash"
  12089. size = 0x22000;
  12090. offset = 0x800000;
  12091. page_size = 0x100;
  12092. readsize = 0x100;
  12093. ;
  12094. memory "usersig"
  12095. size = 0x100;
  12096. offset = 0x8e0400;
  12097. page_size = 0x100;
  12098. readsize = 0x100;
  12099. ;
  12100. memory "fuse0"
  12101. size = 1;
  12102. offset = 0x8f0020;
  12103. ;
  12104. ;
  12105. #------------------------------------------------------------
  12106. # ATxmega128B3
  12107. #------------------------------------------------------------
  12108. part parent "x128b1"
  12109. id = "x128b3";
  12110. desc = "ATxmega128B3";
  12111. signature = 0x1e 0x97 0x4b;
  12112. usbpid = 0x2fe0;
  12113. ;
  12114. #------------------------------------------------------------
  12115. # ATxmega192C3
  12116. #------------------------------------------------------------
  12117. part parent ".xmega"
  12118. id = "x192c3";
  12119. desc = "ATxmega192C3";
  12120. signature = 0x1e 0x97 0x51;
  12121. # usbpid = 0x2f??;
  12122. memory "eeprom"
  12123. size = 0x800;
  12124. offset = 0x8c0000;
  12125. page_size = 0x20;
  12126. readsize = 0x100;
  12127. ;
  12128. memory "application"
  12129. size = 0x30000;
  12130. offset = 0x800000;
  12131. page_size = 0x200;
  12132. readsize = 0x100;
  12133. ;
  12134. memory "apptable"
  12135. size = 0x2000;
  12136. offset = 0x82e000;
  12137. page_size = 0x200;
  12138. readsize = 0x100;
  12139. ;
  12140. memory "boot"
  12141. size = 0x2000;
  12142. offset = 0x830000;
  12143. page_size = 0x200;
  12144. readsize = 0x100;
  12145. ;
  12146. memory "flash"
  12147. size = 0x32000;
  12148. offset = 0x800000;
  12149. page_size = 0x200;
  12150. readsize = 0x100;
  12151. ;
  12152. memory "usersig"
  12153. size = 0x200;
  12154. offset = 0x8e0400;
  12155. page_size = 0x200;
  12156. readsize = 0x100;
  12157. ;
  12158. ;
  12159. #------------------------------------------------------------
  12160. # ATxmega192D3
  12161. #------------------------------------------------------------
  12162. part parent "x192c3"
  12163. id = "x192d3";
  12164. desc = "ATxmega192D3";
  12165. signature = 0x1e 0x97 0x49;
  12166. ;
  12167. #------------------------------------------------------------
  12168. # ATxmega192A1
  12169. #------------------------------------------------------------
  12170. part parent "x192c3"
  12171. id = "x192a1";
  12172. desc = "ATxmega192A1";
  12173. signature = 0x1e 0x97 0x4e;
  12174. has_jtag = yes;
  12175. memory "fuse0"
  12176. size = 1;
  12177. offset = 0x8f0020;
  12178. ;
  12179. ;
  12180. #------------------------------------------------------------
  12181. # ATxmega192A3
  12182. #------------------------------------------------------------
  12183. part parent "x192a1"
  12184. id = "x192a3";
  12185. desc = "ATxmega192A3";
  12186. signature = 0x1e 0x97 0x44;
  12187. ;
  12188. #------------------------------------------------------------
  12189. # ATxmega192A3U
  12190. #------------------------------------------------------------
  12191. part parent "x192a1"
  12192. id = "x192a3u";
  12193. desc = "ATxmega192A3U";
  12194. signature = 0x1e 0x97 0x44;
  12195. usbpid = 0x2fe7;
  12196. ;
  12197. #------------------------------------------------------------
  12198. # ATxmega256C3
  12199. #------------------------------------------------------------
  12200. part parent ".xmega"
  12201. id = "x256c3";
  12202. desc = "ATxmega256C3";
  12203. signature = 0x1e 0x98 0x46;
  12204. usbpid = 0x2fda;
  12205. memory "eeprom"
  12206. size = 0x1000;
  12207. offset = 0x8c0000;
  12208. page_size = 0x20;
  12209. readsize = 0x100;
  12210. ;
  12211. memory "application"
  12212. size = 0x40000;
  12213. offset = 0x800000;
  12214. page_size = 0x200;
  12215. readsize = 0x100;
  12216. ;
  12217. memory "apptable"
  12218. size = 0x2000;
  12219. offset = 0x83e000;
  12220. page_size = 0x200;
  12221. readsize = 0x100;
  12222. ;
  12223. memory "boot"
  12224. size = 0x2000;
  12225. offset = 0x840000;
  12226. page_size = 0x200;
  12227. readsize = 0x100;
  12228. ;
  12229. memory "flash"
  12230. size = 0x42000;
  12231. offset = 0x800000;
  12232. page_size = 0x200;
  12233. readsize = 0x100;
  12234. ;
  12235. memory "usersig"
  12236. size = 0x200;
  12237. offset = 0x8e0400;
  12238. page_size = 0x200;
  12239. readsize = 0x100;
  12240. ;
  12241. ;
  12242. #------------------------------------------------------------
  12243. # ATxmega256D3
  12244. #------------------------------------------------------------
  12245. part parent "x256c3"
  12246. id = "x256d3";
  12247. desc = "ATxmega256D3";
  12248. signature = 0x1e 0x98 0x44;
  12249. ;
  12250. #------------------------------------------------------------
  12251. # ATxmega256A1
  12252. #------------------------------------------------------------
  12253. part parent "x256c3"
  12254. id = "x256a1";
  12255. desc = "ATxmega256A1";
  12256. signature = 0x1e 0x98 0x46;
  12257. has_jtag = yes;
  12258. memory "fuse0"
  12259. size = 1;
  12260. offset = 0x8f0020;
  12261. ;
  12262. ;
  12263. #------------------------------------------------------------
  12264. # ATxmega256A3
  12265. #------------------------------------------------------------
  12266. part parent "x256a1"
  12267. id = "x256a3";
  12268. desc = "ATxmega256A3";
  12269. signature = 0x1e 0x98 0x42;
  12270. ;
  12271. #------------------------------------------------------------
  12272. # ATxmega256A3U
  12273. #------------------------------------------------------------
  12274. part parent "x256a1"
  12275. id = "x256a3u";
  12276. desc = "ATxmega256A3U";
  12277. signature = 0x1e 0x98 0x42;
  12278. usbpid = 0x2fec;
  12279. ;
  12280. #------------------------------------------------------------
  12281. # ATxmega256A3B
  12282. #------------------------------------------------------------
  12283. part parent "x256a1"
  12284. id = "x256a3b";
  12285. desc = "ATxmega256A3B";
  12286. signature = 0x1e 0x98 0x43;
  12287. ;
  12288. #------------------------------------------------------------
  12289. # ATxmega256A3BU
  12290. #------------------------------------------------------------
  12291. part parent "x256a1"
  12292. id = "x256a3bu";
  12293. desc = "ATxmega256A3BU";
  12294. signature = 0x1e 0x98 0x43;
  12295. usbpid = 0x2fe2;
  12296. ;
  12297. #------------------------------------------------------------
  12298. # ATxmega384C3
  12299. #------------------------------------------------------------
  12300. part parent ".xmega"
  12301. id = "x384c3";
  12302. desc = "ATxmega384C3";
  12303. signature = 0x1e 0x98 0x45;
  12304. usbpid = 0x2fdb;
  12305. memory "eeprom"
  12306. size = 0x1000;
  12307. offset = 0x8c0000;
  12308. page_size = 0x20;
  12309. readsize = 0x100;
  12310. ;
  12311. memory "application"
  12312. size = 0x60000;
  12313. offset = 0x800000;
  12314. page_size = 0x200;
  12315. readsize = 0x100;
  12316. ;
  12317. memory "apptable"
  12318. size = 0x2000;
  12319. offset = 0x85e000;
  12320. page_size = 0x200;
  12321. readsize = 0x100;
  12322. ;
  12323. memory "boot"
  12324. size = 0x2000;
  12325. offset = 0x860000;
  12326. page_size = 0x200;
  12327. readsize = 0x100;
  12328. ;
  12329. memory "flash"
  12330. size = 0x62000;
  12331. offset = 0x800000;
  12332. page_size = 0x200;
  12333. readsize = 0x100;
  12334. ;
  12335. memory "usersig"
  12336. size = 0x200;
  12337. offset = 0x8e0400;
  12338. page_size = 0x200;
  12339. readsize = 0x100;
  12340. ;
  12341. ;
  12342. #------------------------------------------------------------
  12343. # ATxmega384D3
  12344. #------------------------------------------------------------
  12345. part parent "x384c3"
  12346. id = "x384d3";
  12347. desc = "ATxmega384D3";
  12348. signature = 0x1e 0x98 0x47;
  12349. ;
  12350. #------------------------------------------------------------
  12351. # ATxmega8E5
  12352. #------------------------------------------------------------
  12353. part parent ".xmega"
  12354. id = "x8e5";
  12355. desc = "ATxmega8E5";
  12356. signature = 0x1e 0x93 0x41;
  12357. memory "eeprom"
  12358. size = 0x0200;
  12359. offset = 0x08c0000;
  12360. page_size = 0x20;
  12361. readsize = 0x100;
  12362. ;
  12363. memory "application"
  12364. size = 0x2000;
  12365. offset = 0x0800000;
  12366. page_size = 0x80;
  12367. readsize = 0x100;
  12368. ;
  12369. memory "apptable"
  12370. size = 0x800;
  12371. offset = 0x00801800;
  12372. page_size = 0x80;
  12373. readsize = 0x100;
  12374. ;
  12375. memory "boot"
  12376. size = 0x800;
  12377. offset = 0x00802000;
  12378. page_size = 0x80;
  12379. readsize = 0x100;
  12380. ;
  12381. memory "flash"
  12382. size = 0x2800;
  12383. offset = 0x0800000;
  12384. page_size = 0x80;
  12385. readsize = 0x100;
  12386. ;
  12387. memory "usersig"
  12388. size = 0x80;
  12389. offset = 0x8e0400;
  12390. page_size = 0x80;
  12391. readsize = 0x100;
  12392. ;
  12393. ;
  12394. #------------------------------------------------------------
  12395. # ATxmega16E5
  12396. #------------------------------------------------------------
  12397. part parent ".xmega"
  12398. id = "x16e5";
  12399. desc = "ATxmega16E5";
  12400. signature = 0x1e 0x94 0x45;
  12401. memory "eeprom"
  12402. size = 0x0200;
  12403. offset = 0x08c0000;
  12404. page_size = 0x20;
  12405. readsize = 0x100;
  12406. ;
  12407. memory "application"
  12408. size = 0x4000;
  12409. offset = 0x0800000;
  12410. page_size = 0x80;
  12411. readsize = 0x100;
  12412. ;
  12413. memory "apptable"
  12414. size = 0x1000;
  12415. offset = 0x00803000;
  12416. page_size = 0x80;
  12417. readsize = 0x100;
  12418. ;
  12419. memory "boot"
  12420. size = 0x1000;
  12421. offset = 0x00804000;
  12422. page_size = 0x80;
  12423. readsize = 0x100;
  12424. ;
  12425. memory "flash"
  12426. size = 0x5000;
  12427. offset = 0x0800000;
  12428. page_size = 0x80;
  12429. readsize = 0x100;
  12430. ;
  12431. memory "usersig"
  12432. size = 0x80;
  12433. offset = 0x8e0400;
  12434. page_size = 0x80;
  12435. readsize = 0x100;
  12436. ;
  12437. ;
  12438. #------------------------------------------------------------
  12439. # ATxmega32E5
  12440. #------------------------------------------------------------
  12441. part parent ".xmega"
  12442. id = "x32e5";
  12443. desc = "ATxmega32E5";
  12444. signature = 0x1e 0x95 0x4c;
  12445. memory "eeprom"
  12446. size = 0x0400;
  12447. offset = 0x08c0000;
  12448. page_size = 0x20;
  12449. readsize = 0x100;
  12450. ;
  12451. memory "application"
  12452. size = 0x8000;
  12453. offset = 0x0800000;
  12454. page_size = 0x80;
  12455. readsize = 0x100;
  12456. ;
  12457. memory "apptable"
  12458. size = 0x1000;
  12459. offset = 0x00807000;
  12460. page_size = 0x80;
  12461. readsize = 0x100;
  12462. ;
  12463. memory "boot"
  12464. size = 0x1000;
  12465. offset = 0x00808000;
  12466. page_size = 0x80;
  12467. readsize = 0x100;
  12468. ;
  12469. memory "flash"
  12470. size = 0x9000;
  12471. offset = 0x0800000;
  12472. page_size = 0x80;
  12473. readsize = 0x100;
  12474. ;
  12475. memory "usersig"
  12476. size = 0x80;
  12477. offset = 0x8e0400;
  12478. page_size = 0x80;
  12479. readsize = 0x100;
  12480. ;
  12481. ;
  12482. #------------------------------------------------------------
  12483. # AVR32UC3A0512
  12484. #------------------------------------------------------------
  12485. part
  12486. id = "uc3a0512";
  12487. desc = "AT32UC3A0512";
  12488. signature = 0xED 0xC0 0x3F;
  12489. has_jtag = yes;
  12490. is_avr32 = yes;
  12491. memory "flash"
  12492. paged = yes;
  12493. page_size = 512; # bytes
  12494. readsize = 512; # bytes
  12495. num_pages = 1024; # could be set dynamicly
  12496. size = 0x00080000; # could be set dynamicly
  12497. offset = 0x80000000;
  12498. ;
  12499. ;
  12500. part parent "uc3a0512"
  12501. id = "ucr2";
  12502. desc = "deprecated, use 'uc3a0512'";
  12503. ;
  12504. #------------------------------------------------------------
  12505. # ATtiny1634.
  12506. #------------------------------------------------------------
  12507. part
  12508. id = "t1634";
  12509. desc = "ATtiny1634";
  12510. has_debugwire = yes;
  12511. flash_instr = 0xB6, 0x01, 0x11;
  12512. eeprom_instr = 0xBD, 0xF2, 0xBD, 0xE1, 0xBB, 0xCF, 0xB4, 0x00,
  12513. 0xBE, 0x01, 0xB6, 0x01, 0xBC, 0x00, 0xBB, 0xBF,
  12514. 0x99, 0xF9, 0xBB, 0xAF;
  12515. stk500_devcode = 0x86;
  12516. # avr910_devcode = 0x;
  12517. signature = 0x1e 0x94 0x12;
  12518. pagel = 0xB3;
  12519. bs2 = 0xB1;
  12520. reset = io;
  12521. chip_erase_delay = 9000;
  12522. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  12523. "x x x x x x x x x x x x x x x x";
  12524. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
  12525. "x x x x x x x x x x x x x x x x";
  12526. timeout = 200;
  12527. stabdelay = 100;
  12528. cmdexedelay = 25;
  12529. synchloops = 32;
  12530. bytedelay = 0;
  12531. pollindex = 3;
  12532. pollvalue = 0x53;
  12533. predelay = 1;
  12534. postdelay = 1;
  12535. pollmethod = 1;
  12536. pp_controlstack =
  12537. 0x0E, 0x1E, 0x0E, 0x1E, 0x2E, 0x3E, 0x2E, 0x3E,
  12538. 0x4E, 0x5E, 0x4E, 0x5E, 0x6E, 0x7E, 0x6E, 0x7E,
  12539. 0x26, 0x36, 0x66, 0x76, 0x2A, 0x3A, 0x6A, 0x7A,
  12540. 0x2E, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  12541. hventerstabdelay = 100;
  12542. progmodedelay = 0;
  12543. latchcycles = 0;
  12544. togglevtg = 1;
  12545. poweroffdelay = 15;
  12546. resetdelayms = 1;
  12547. resetdelayus = 0;
  12548. hvleavestabdelay = 15;
  12549. resetdelay = 15;
  12550. chiperasepulsewidth = 0;
  12551. chiperasepolltimeout = 10;
  12552. programfusepulsewidth = 0;
  12553. programfusepolltimeout = 5;
  12554. programlockpulsewidth = 0;
  12555. programlockpolltimeout = 5;
  12556. memory "eeprom"
  12557. paged = no;
  12558. page_size = 4;
  12559. size = 256;
  12560. min_write_delay = 3600;
  12561. max_write_delay = 3600;
  12562. readback_p1 = 0xff;
  12563. readback_p2 = 0xff;
  12564. read = " 1 0 1 0 0 0 0 0",
  12565. " 0 0 0 x x x x a8",
  12566. " a7 a6 a5 a4 a3 a2 a1 a0",
  12567. " o o o o o o o o";
  12568. write = " 1 1 0 0 0 0 0 0",
  12569. " 0 0 0 x x x x a8",
  12570. " a7 a6 a5 a4 a3 a2 a1 a0",
  12571. " i i i i i i i i";
  12572. loadpage_lo = " 1 1 0 0 0 0 0 1",
  12573. " 0 0 0 0 0 0 0 0",
  12574. " 0 0 0 0 0 0 a1 a0",
  12575. " i i i i i i i i";
  12576. writepage = " 1 1 0 0 0 0 1 0",
  12577. " 0 0 x x x x x a8",
  12578. " a7 a6 a5 a4 a3 a2 0 0",
  12579. " x x x x x x x x";
  12580. mode = 0x41;
  12581. delay = 5;
  12582. blocksize = 4;
  12583. readsize = 256;
  12584. ;
  12585. memory "flash"
  12586. paged = yes;
  12587. size = 16384;
  12588. page_size = 32;
  12589. num_pages = 512;
  12590. min_write_delay = 4500;
  12591. max_write_delay = 4500;
  12592. readback_p1 = 0xff;
  12593. readback_p2 = 0xff;
  12594. read_lo = " 0 0 1 0 0 0 0 0",
  12595. " 0 0 0 a12 a11 a10 a9 a8",
  12596. " a7 a6 a5 a4 a3 a2 a1 a0",
  12597. " o o o o o o o o";
  12598. read_hi = " 0 0 1 0 1 0 0 0",
  12599. " 0 0 0 a12 a11 a10 a9 a8",
  12600. " a7 a6 a5 a4 a3 a2 a1 a0",
  12601. " o o o o o o o o";
  12602. loadpage_lo = " 0 1 0 0 0 0 0 0",
  12603. " 0 0 0 x x x x x",
  12604. " x x a5 a4 a3 a2 a1 a0",
  12605. " i i i i i i i i";
  12606. loadpage_hi = " 0 1 0 0 1 0 0 0",
  12607. " 0 0 0 x x x x x",
  12608. " x x a5 a4 a3 a2 a1 a0",
  12609. " i i i i i i i i";
  12610. writepage = " 0 1 0 0 1 1 0 0",
  12611. " 0 0 0 a12 a11 a10 a9 a8",
  12612. " a7 a6 x x x x x x",
  12613. " x x x x x x x x";
  12614. mode = 0x41;
  12615. delay = 6;
  12616. blocksize = 128;
  12617. readsize = 256;
  12618. ;
  12619. memory "lfuse"
  12620. size = 1;
  12621. min_write_delay = 4500;
  12622. max_write_delay = 4500;
  12623. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  12624. "x x x x x x x x o o o o o o o o";
  12625. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  12626. "x x x x x x x x i i i i i i i i";
  12627. ;
  12628. memory "hfuse"
  12629. size = 1;
  12630. min_write_delay = 4500;
  12631. max_write_delay = 4500;
  12632. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  12633. "x x x x x x x x o o o o o o o o";
  12634. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  12635. "x x x x x x x x i i i i i i i i";
  12636. ;
  12637. memory "efuse"
  12638. size = 1;
  12639. min_write_delay = 4500;
  12640. max_write_delay = 4500;
  12641. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  12642. "x x x x x x x x o o o o o o o o";
  12643. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  12644. "x x x x x x x x x x x i i i i i";
  12645. ;
  12646. memory "lock"
  12647. size = 1;
  12648. min_write_delay = 4500;
  12649. max_write_delay = 4500;
  12650. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  12651. "x x x x x x x x x x x x x x o o";
  12652. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  12653. "x x x x x x x x 1 1 1 1 1 1 i i";
  12654. ;
  12655. memory "calibration"
  12656. size = 1;
  12657. read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
  12658. "0 0 0 0 0 0 0 0 o o o o o o o o";
  12659. ;
  12660. memory "signature"
  12661. size = 3;
  12662. read = "0 0 1 1 0 0 0 0 0 0 0 x x x x x",
  12663. "x x x x x x a1 a0 o o o o o o o o";
  12664. ;
  12665. ;
  12666. #------------------------------------------------------------
  12667. # Common values for reduced core tinys (4/5/9/10/20/40)
  12668. #------------------------------------------------------------
  12669. part
  12670. id = ".reduced_core_tiny";
  12671. desc = "Common values for reduced core tinys";
  12672. has_tpi = yes;
  12673. memory "signature"
  12674. size = 3;
  12675. offset = 0x3fc0;
  12676. page_size = 16;
  12677. ;
  12678. memory "fuse"
  12679. size = 1;
  12680. offset = 0x3f40;
  12681. page_size = 16;
  12682. blocksize = 4;
  12683. ;
  12684. memory "calibration"
  12685. size = 1;
  12686. offset = 0x3f80;
  12687. page_size = 16;
  12688. ;
  12689. memory "lockbits"
  12690. size = 1;
  12691. offset = 0x3f00;
  12692. page_size = 16;
  12693. ;
  12694. ;
  12695. #------------------------------------------------------------
  12696. # ATtiny4
  12697. #------------------------------------------------------------
  12698. part parent ".reduced_core_tiny"
  12699. id = "t4";
  12700. desc = "ATtiny4";
  12701. signature = 0x1e 0x8f 0x0a;
  12702. memory "flash"
  12703. size = 512;
  12704. offset = 0x4000;
  12705. page_size = 16;
  12706. blocksize = 128;
  12707. ;
  12708. ;
  12709. #------------------------------------------------------------
  12710. # ATtiny5
  12711. #------------------------------------------------------------
  12712. part parent "t4"
  12713. id = "t5";
  12714. desc = "ATtiny5";
  12715. signature = 0x1e 0x8f 0x09;
  12716. ;
  12717. #------------------------------------------------------------
  12718. # ATtiny9
  12719. #------------------------------------------------------------
  12720. part parent ".reduced_core_tiny"
  12721. id = "t9";
  12722. desc = "ATtiny9";
  12723. signature = 0x1e 0x90 0x08;
  12724. memory "flash"
  12725. size = 1024;
  12726. offset = 0x4000;
  12727. page_size = 16;
  12728. blocksize = 128;
  12729. ;
  12730. ;
  12731. #------------------------------------------------------------
  12732. # ATtiny10
  12733. #------------------------------------------------------------
  12734. part parent "t9"
  12735. id = "t10";
  12736. desc = "ATtiny10";
  12737. signature = 0x1e 0x90 0x03;
  12738. ;
  12739. #------------------------------------------------------------
  12740. # ATtiny20
  12741. #------------------------------------------------------------
  12742. part parent ".reduced_core_tiny"
  12743. id = "t20";
  12744. desc = "ATtiny20";
  12745. signature = 0x1e 0x91 0x0F;
  12746. memory "flash"
  12747. size = 2048;
  12748. offset = 0x4000;
  12749. page_size = 16;
  12750. blocksize = 128;
  12751. ;
  12752. ;
  12753. #------------------------------------------------------------
  12754. # ATtiny40
  12755. #------------------------------------------------------------
  12756. part parent ".reduced_core_tiny"
  12757. id = "t40";
  12758. desc = "ATtiny40";
  12759. signature = 0x1e 0x92 0x0E;
  12760. memory "flash"
  12761. size = 4096;
  12762. offset = 0x4000;
  12763. page_size = 64;
  12764. blocksize = 128;
  12765. ;
  12766. ;
  12767. #------------------------------------------------------------
  12768. # ATmega406
  12769. #------------------------------------------------------------
  12770. part
  12771. id = "m406";
  12772. desc = "ATMEGA406";
  12773. has_jtag = yes;
  12774. signature = 0x1e 0x95 0x07;
  12775. # STK500 parameters (parallel programming IO lines)
  12776. pagel = 0xa7;
  12777. bs2 = 0xa0;
  12778. serial = no;
  12779. parallel = yes;
  12780. # STK500v2 HV programming parameters, from XML
  12781. pp_controlstack = 0x0e, 0x1e, 0x0f, 0x1f, 0x2e, 0x3e, 0x2f, 0x3f,
  12782. 0x4e, 0x5e, 0x4f, 0x5f, 0x6e, 0x7e, 0x6f, 0x7f,
  12783. 0x66, 0x76, 0x67, 0x77, 0x6a, 0x7a, 0x6b, 0x7b,
  12784. 0xbe, 0xfd, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  12785. # JTAG ICE mkII parameters, also from XML files
  12786. allowfullpagebitstream = no;
  12787. enablepageprogramming = yes;
  12788. idr = 0x51;
  12789. rampz = 0x00;
  12790. spmcr = 0x57;
  12791. eecr = 0x3f;
  12792. memory "eeprom"
  12793. paged = no;
  12794. size = 512;
  12795. page_size = 4;
  12796. blocksize = 4;
  12797. readsize = 4;
  12798. num_pages = 128;
  12799. ;
  12800. memory "flash"
  12801. paged = yes;
  12802. size = 40960;
  12803. page_size = 128;
  12804. blocksize = 128;
  12805. readsize = 128;
  12806. num_pages = 320;
  12807. ;
  12808. memory "hfuse"
  12809. size = 1;
  12810. ;
  12811. memory "lfuse"
  12812. size = 1;
  12813. ;
  12814. memory "lockbits"
  12815. size = 1;
  12816. ;
  12817. memory "signature"
  12818. size = 3;
  12819. ;
  12820. ;