My Marlin configs for Fabrikator Mini and CTC i3 Pro B
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

avrdude.conf 403KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104
  1. # $Id: avrdude.conf.in,v 1.122 2007/05/16 21:29:36 joerg_wunsch Exp $
  2. #
  3. # AVRDUDE Configuration File
  4. #
  5. # This file contains configuration data used by AVRDUDE which describes
  6. # the programming hardware pinouts and also provides part definitions.
  7. # AVRDUDE's "-C" command line option specifies the location of the
  8. # configuration file. The "-c" option names the programmer configuration
  9. # which must match one of the entry's "id" parameter. The "-p" option
  10. # identifies which part AVRDUDE is going to be programming and must match
  11. # one of the parts' "id" parameter.
  12. #
  13. # Possible entry formats are:
  14. #
  15. # programmer
  16. # id = <id1> [, <id2> [, <id3>] ...] ; # <idN> are quoted strings
  17. # desc = <description> ; # quoted string
  18. # type = par | stk500 | stk500v2 | stk500pp | stk500hvsp | stk500generic |
  19. # avr910 | butterfly | usbasp |
  20. # jtagmki | jtagmkii | jtagmkii_isp | jtagmkii_dw |
  21. # dragon_dw | dragon_jtag | dragon_isp | dragon_pp |
  22. # dragon_hvsp; # programmer type
  23. # baudrate = <num> ; # baudrate for avr910-programmer
  24. # vcc = <num1> [, <num2> ... ] ; # pin number(s)
  25. # reset = <num> ; # pin number
  26. # sck = <num> ; # pin number
  27. # mosi = <num> ; # pin number
  28. # miso = <num> ; # pin number
  29. # errled = <num> ; # pin number
  30. # rdyled = <num> ; # pin number
  31. # pgmled = <num> ; # pin number
  32. # vfyled = <num> ; # pin number
  33. # ;
  34. #
  35. # part
  36. # id = <id> ; # quoted string
  37. # desc = <description> ; # quoted string
  38. # has_jtag = <yes/no> ; # part has JTAG i/f
  39. # has_debugwire = <yes/no> ; # part has debugWire i/f
  40. # devicecode = <num> ; # deprecated, use stk500_devcode
  41. # stk500_devcode = <num> ; # numeric
  42. # avr910_devcode = <num> ; # numeric
  43. # signature = <num> <num> <num> ; # signature bytes
  44. # chip_erase_delay = <num> ; # micro-seconds
  45. # reset = dedicated | io;
  46. # retry_pulse = reset | sck;
  47. # pgm_enable = <instruction format> ;
  48. # chip_erase = <instruction format> ;
  49. # chip_erase_delay = <num> ; # chip erase delay (us)
  50. # # STK500 parameters (parallel programming IO lines)
  51. # pagel = <num> ; # pin name in hex, i.e., 0xD7
  52. # bs2 = <num> ; # pin name in hex, i.e., 0xA0
  53. # serial = <yes/no> ; # can use serial downloading
  54. # parallel = <yes/no/pseudo>; # can use par. programming
  55. # # STK500v2 parameters, to be taken from Atmel's XML files
  56. # timeout = <num> ;
  57. # stabdelay = <num> ;
  58. # cmdexedelay = <num> ;
  59. # synchloops = <num> ;
  60. # bytedelay = <num> ;
  61. # pollvalue = <num> ;
  62. # pollindex = <num> ;
  63. # predelay = <num> ;
  64. # postdelay = <num> ;
  65. # pollmethod = <num> ;
  66. # mode = <num> ;
  67. # delay = <num> ;
  68. # blocksize = <num> ;
  69. # readsize = <num> ;
  70. # hvspcmdexedelay = <num> ;
  71. # # STK500v2 HV programming parameters, from XML
  72. # pp_controlstack = <num>, <num>, ...; # PP only
  73. # hvsp_controlstack = <num>, <num>, ...; # HVSP only
  74. # hventerstabdelay = <num>;
  75. # progmodedelay = <num>; # PP only
  76. # latchcycles = <num>;
  77. # togglevtg = <num>;
  78. # poweroffdelay = <num>;
  79. # resetdelayms = <num>;
  80. # resetdelayus = <num>;
  81. # hvleavestabdelay = <num>;
  82. # resetdelay = <num>;
  83. # synchcycles = <num>; # HVSP only
  84. # chiperasepulsewidth = <num>; # PP only
  85. # chiperasepolltimeout = <num>;
  86. # chiperasetime = <num>; # HVSP only
  87. # programfusepulsewidth = <num>; # PP only
  88. # programfusepolltimeout = <num>;
  89. # programlockpulsewidth = <num>; # PP only
  90. # programlockpolltimeout = <num>;
  91. # # JTAG ICE mkII parameters, also from XML files
  92. # allowfullpagebitstream = <yes/no> ;
  93. # enablepageprogramming = <yes/no> ;
  94. # idr = <num> ; # IO addr of IDR (OCD) reg.
  95. # rampz = <num> ; # IO addr of RAMPZ reg.
  96. # spmcr = <num> ; # mem addr of SPMC[S]R reg.
  97. # eecr = <num> ; # mem addr of EECR reg.
  98. # # (only when != 0x3c)
  99. #
  100. # memory <memtype>
  101. # paged = <yes/no> ; # yes / no
  102. # size = <num> ; # bytes
  103. # page_size = <num> ; # bytes
  104. # num_pages = <num> ; # numeric
  105. # min_write_delay = <num> ; # micro-seconds
  106. # max_write_delay = <num> ; # micro-seconds
  107. # readback_p1 = <num> ; # byte value
  108. # readback_p2 = <num> ; # byte value
  109. # pwroff_after_write = <yes/no> ; # yes / no
  110. # read = <instruction format> ;
  111. # write = <instruction format> ;
  112. # read_lo = <instruction format> ;
  113. # read_hi = <instruction format> ;
  114. # write_lo = <instruction format> ;
  115. # write_hi = <instruction format> ;
  116. # loadpage_lo = <instruction format> ;
  117. # loadpage_hi = <instruction format> ;
  118. # writepage = <instruction format> ;
  119. # ;
  120. # ;
  121. #
  122. # If any of the above parameters are not specified, the default value
  123. # of 0 is used for numerics or the empty string ("") for string
  124. # values. If a required parameter is left empty, AVRDUDE will
  125. # complain.
  126. #
  127. # NOTES:
  128. # * 'devicecode' is the device code used by the STK500 (see codes
  129. # listed below)
  130. # * Not all memory types will implement all instructions.
  131. # * AVR Fuse bits and Lock bits are implemented as a type of memory.
  132. # * Example memory types are:
  133. # "flash", "eeprom", "fuse", "lfuse" (low fuse), "hfuse" (high
  134. # fuse), "signature", "calibration", "lock"
  135. # * The memory type specified on the avrdude command line must match
  136. # one of the memory types defined for the specified chip.
  137. # * The pwroff_after_write flag causes avrdude to attempt to
  138. # power the device off and back on after an unsuccessful write to
  139. # the affected memory area if VCC programmer pins are defined. If
  140. # VCC pins are not defined for the programmer, a message
  141. # indicating that the device needs a power-cycle is printed out.
  142. # This flag was added to work around a problem with the
  143. # at90s4433/2333's; see the at90s4433 errata at:
  144. #
  145. # http://www.atmel.com/atmel/acrobat/doc1280.pdf
  146. #
  147. # INSTRUCTION FORMATS
  148. #
  149. # Instruction formats are specified as a comma seperated list of
  150. # string values containing information (bit specifiers) about each
  151. # of the 32 bits of the instruction. Bit specifiers may be one of
  152. # the following formats:
  153. #
  154. # '1' = the bit is always set on input as well as output
  155. #
  156. # '0' = the bit is always clear on input as well as output
  157. #
  158. # 'x' = the bit is ignored on input and output
  159. #
  160. # 'a' = the bit is an address bit, the bit-number matches this bit
  161. # specifier's position within the current instruction byte
  162. #
  163. # 'aN' = the bit is the Nth address bit, bit-number = N, i.e., a12
  164. # is address bit 12 on input, a0 is address bit 0.
  165. #
  166. # 'i' = the bit is an input data bit
  167. #
  168. # 'o' = the bit is an output data bit
  169. #
  170. # Each instruction must be composed of 32 bit specifiers. The
  171. # instruction specification closely follows the instruction data
  172. # provided in Atmel's data sheets for their parts.
  173. #
  174. # See below for some examples.
  175. #
  176. #
  177. # The following are STK500 part device codes to use for the
  178. # "devicecode" field of the part. These came from Atmel's software
  179. # section avr061.zip which accompanies the application note
  180. # AVR061 available from:
  181. #
  182. # http://www.atmel.com/atmel/acrobat/doc2525.pdf
  183. #
  184. #define ATTINY10 0x10
  185. #define ATTINY11 0x11
  186. #define ATTINY12 0x12
  187. #define ATTINY15 0x13
  188. #define ATTINY13 0x14
  189. #define ATTINY22 0x20
  190. #define ATTINY26 0x21
  191. #define ATTINY28 0x22
  192. #define ATTINY2313 0x23
  193. #define AT90S1200 0x33
  194. #define AT90S2313 0x40
  195. #define AT90S2323 0x41
  196. #define AT90S2333 0x42
  197. #define AT90S2343 0x43
  198. #define AT90S4414 0x50
  199. #define AT90S4433 0x51
  200. #define AT90S4434 0x52
  201. #define ATMEGA48 0x59
  202. #define AT90S8515 0x60
  203. #define AT90S8535 0x61
  204. #define AT90C8534 0x62
  205. #define ATMEGA8515 0x63
  206. #define ATMEGA8535 0x64
  207. #define ATMEGA8 0x70
  208. #define ATMEGA88 0x73
  209. #define ATMEGA168 0x86
  210. #define ATMEGA161 0x80
  211. #define ATMEGA163 0x81
  212. #define ATMEGA16 0x82
  213. #define ATMEGA162 0x83
  214. #define ATMEGA169 0x84
  215. #define ATMEGA323 0x90
  216. #define ATMEGA32 0x91
  217. #define ATMEGA64 0xA0
  218. #define ATMEGA103 0xB1
  219. #define ATMEGA128 0xB2
  220. #define AT90CAN128 0xB3
  221. #define AT86RF401 0xD0
  222. #define AT89START 0xE0
  223. #define AT89S51 0xE0
  224. #define AT89S52 0xE1
  225. # The following table lists the devices in the original AVR910
  226. # appnote:
  227. # |Device |Signature | Code |
  228. # +-------+----------+------+
  229. # |tiny12 | 1E 90 05 | 0x55 |
  230. # |tiny15 | 1E 90 06 | 0x56 |
  231. # | | | |
  232. # | S1200 | 1E 90 01 | 0x13 |
  233. # | | | |
  234. # | S2313 | 1E 91 01 | 0x20 |
  235. # | S2323 | 1E 91 02 | 0x48 |
  236. # | S2333 | 1E 91 05 | 0x34 |
  237. # | S2343 | 1E 91 03 | 0x4C |
  238. # | | | |
  239. # | S4414 | 1E 92 01 | 0x28 |
  240. # | S4433 | 1E 92 03 | 0x30 |
  241. # | S4434 | 1E 92 02 | 0x6C |
  242. # | | | |
  243. # | S8515 | 1E 93 01 | 0x38 |
  244. # | S8535 | 1E 93 03 | 0x68 |
  245. # | | | |
  246. # |mega32 | 1E 95 01 | 0x72 |
  247. # |mega83 | 1E 93 05 | 0x65 |
  248. # |mega103| 1E 97 01 | 0x41 |
  249. # |mega161| 1E 94 01 | 0x60 |
  250. # |mega163| 1E 94 02 | 0x64 |
  251. # Appnote AVR109 also has a table of AVR910 device codes, which
  252. # lists:
  253. # dev avr910 signature
  254. # ATmega8 0x77 0x1E 0x93 0x07
  255. # ATmega8515 0x3B 0x1E 0x93 0x06
  256. # ATmega8535 0x6A 0x1E 0x93 0x08
  257. # ATmega16 0x75 0x1E 0x94 0x03
  258. # ATmega162 0x63 0x1E 0x94 0x04
  259. # ATmega163 0x66 0x1E 0x94 0x02
  260. # ATmega169 0x79 0x1E 0x94 0x05
  261. # ATmega32 0x7F 0x1E 0x95 0x02
  262. # ATmega323 0x73 0x1E 0x95 0x01
  263. # ATmega64 0x46 0x1E 0x96 0x02
  264. # ATmega128 0x44 0x1E 0x97 0x02
  265. #
  266. # These codes refer to "BOOT" device codes which are apparently
  267. # different than standard device codes, for whatever reasons
  268. # (often one above the standard code).
  269. # There are several extended versions of AVR910 implementations around
  270. # in the Internet. These add the following codes (only devices that
  271. # actually exist are listed):
  272. # ATmega8515 0x3A
  273. # ATmega128 0x43
  274. # ATmega64 0x45
  275. # ATtiny26 0x5E
  276. # ATmega8535 0x69
  277. # ATmega32 0x72
  278. # ATmega16 0x74
  279. # ATmega8 0x76
  280. # ATmega169 0x78
  281. #
  282. # Overall avrdude defaults
  283. #
  284. default_parallel = "lpt1";
  285. default_serial = "com1";
  286. #
  287. # PROGRAMMER DEFINITIONS
  288. #
  289. programmer
  290. id = "avrisp";
  291. desc = "Atmel AVR ISP";
  292. type = stk500;
  293. ;
  294. programmer
  295. id = "avrispv2";
  296. desc = "Atmel AVR ISP V2";
  297. type = stk500v2;
  298. ;
  299. programmer
  300. id = "avrispmkII";
  301. desc = "Atmel AVR ISP mkII";
  302. type = stk500v2;
  303. ;
  304. programmer
  305. id = "avrisp2";
  306. desc = "Atmel AVR ISP mkII";
  307. type = stk500v2;
  308. ;
  309. # This is supposed to be the "default" STK500 entry.
  310. # Attempts to select the correct firmware version
  311. # by probing for it. Better use one of the entries
  312. # below instead.
  313. programmer
  314. id = "stk500";
  315. desc = "Atmel STK500";
  316. type = stk500generic;
  317. ;
  318. programmer
  319. id = "stk500v1";
  320. desc = "Atmel STK500 Version 1.x firmware";
  321. type = stk500;
  322. ;
  323. programmer
  324. id = "stk500v2";
  325. desc = "Atmel STK500 Version 2.x firmware";
  326. type = stk500v2;
  327. ;
  328. programmer
  329. id = "stk500pp";
  330. desc = "Atmel STK500 V2 in parallel programming mode";
  331. type = stk500pp;
  332. ;
  333. programmer
  334. id = "stk500hvsp";
  335. desc = "Atmel STK500 V2 in high-voltage serial programming mode";
  336. type = stk500hvsp;
  337. ;
  338. programmer
  339. id = "avr910";
  340. desc = "Atmel Low Cost Serial Programmer";
  341. type = avr910;
  342. ;
  343. programmer
  344. id = "usbasp";
  345. desc = "USBasp, http://www.fischl.de/usbasp/";
  346. type = usbasp;
  347. ;
  348. programmer
  349. id = "usbtiny";
  350. desc = "USBtiny simple USB programmer";
  351. type = usbtiny;
  352. ;
  353. programmer
  354. id = "butterfly";
  355. desc = "Atmel Butterfly Development Board";
  356. type = butterfly;
  357. ;
  358. programmer
  359. id = "avr109";
  360. desc = "Atmel AppNote AVR109 Boot Loader";
  361. type = butterfly;
  362. ;
  363. programmer
  364. id = "avr911";
  365. desc = "Atmel AppNote AVR911 AVROSP";
  366. type = butterfly;
  367. ;
  368. programmer
  369. id = "jtagmkI";
  370. desc = "Atmel JTAG ICE (mkI)";
  371. baudrate = 115200; # default is 115200
  372. type = jtagmki;
  373. ;
  374. # easier to type
  375. programmer
  376. id = "jtag1";
  377. desc = "Atmel JTAG ICE (mkI)";
  378. baudrate = 115200; # default is 115200
  379. type = jtagmki;
  380. ;
  381. # easier to type
  382. programmer
  383. id = "jtag1slow";
  384. desc = "Atmel JTAG ICE (mkI)";
  385. baudrate = 19200;
  386. type = jtagmki;
  387. ;
  388. programmer
  389. id = "jtagmkII";
  390. desc = "Atmel JTAG ICE mkII";
  391. baudrate = 19200; # default is 19200
  392. type = jtagmkii;
  393. ;
  394. # easier to type
  395. programmer
  396. id = "jtag2slow";
  397. desc = "Atmel JTAG ICE mkII";
  398. baudrate = 19200; # default is 19200
  399. type = jtagmkii;
  400. ;
  401. # JTAG ICE mkII @ 115200 Bd
  402. programmer
  403. id = "jtag2fast";
  404. desc = "Atmel JTAG ICE mkII";
  405. baudrate = 115200;
  406. type = jtagmkii;
  407. ;
  408. # make the fast one the default, people will love that
  409. programmer
  410. id = "jtag2";
  411. desc = "Atmel JTAG ICE mkII";
  412. baudrate = 115200;
  413. type = jtagmkii;
  414. ;
  415. # JTAG ICE mkII in ISP mode
  416. programmer
  417. id = "jtag2isp";
  418. desc = "Atmel JTAG ICE mkII in ISP mode";
  419. baudrate = 115200;
  420. type = jtagmkii_isp;
  421. ;
  422. # JTAG ICE mkII in debugWire mode
  423. programmer
  424. id = "jtag2dw";
  425. desc = "Atmel JTAG ICE mkII in debugWire mode";
  426. baudrate = 115200;
  427. type = jtagmkii_dw;
  428. ;
  429. # AVR Dragon in JTAG mode
  430. programmer
  431. id = "dragon_jtag";
  432. desc = "Atmel AVR Dragon in JTAG mode";
  433. baudrate = 115200;
  434. type = dragon_jtag;
  435. ;
  436. # AVR Dragon in ISP mode
  437. programmer
  438. id = "dragon_isp";
  439. desc = "Atmel AVR Dragon in ISP mode";
  440. baudrate = 115200;
  441. type = dragon_isp;
  442. ;
  443. # AVR Dragon in PP mode
  444. programmer
  445. id = "dragon_pp";
  446. desc = "Atmel AVR Dragon in PP mode";
  447. baudrate = 115200;
  448. type = dragon_pp;
  449. ;
  450. # AVR Dragon in HVSP mode
  451. programmer
  452. id = "dragon_hvsp";
  453. desc = "Atmel AVR Dragon in HVSP mode";
  454. baudrate = 115200;
  455. type = dragon_hvsp;
  456. ;
  457. # AVR Dragon in debugWire mode
  458. programmer
  459. id = "dragon_dw";
  460. desc = "Atmel AVR Dragon in debugWire mode";
  461. baudrate = 115200;
  462. type = dragon_dw;
  463. ;
  464. programmer
  465. id = "pavr";
  466. desc = "Jason Kyle's pAVR Serial Programmer";
  467. type = avr910;
  468. ;
  469. # Parallel port programmers.
  470. programmer
  471. id = "bsd";
  472. desc = "Brian Dean's Programmer, http://www.bsdhome.com/avrdude/";
  473. type = par;
  474. vcc = 2, 3, 4, 5;
  475. reset = 7;
  476. sck = 8;
  477. mosi = 9;
  478. miso = 10;
  479. ;
  480. programmer
  481. id = "stk200";
  482. desc = "STK200";
  483. type = par;
  484. buff = 4, 5;
  485. sck = 6;
  486. mosi = 7;
  487. reset = 9;
  488. miso = 10;
  489. ;
  490. # The programming dongle used by the popular Ponyprog
  491. # utility. It is almost similar to the STK200 one,
  492. # except that there is a LED indicating that the
  493. # programming is currently in progress.
  494. programmer
  495. id = "pony-stk200";
  496. desc = "Pony Prog STK200";
  497. type = par;
  498. buff = 4, 5;
  499. sck = 6;
  500. mosi = 7;
  501. reset = 9;
  502. miso = 10;
  503. pgmled = 8;
  504. ;
  505. programmer
  506. id = "dt006";
  507. desc = "Dontronics DT006";
  508. type = par;
  509. reset = 4;
  510. sck = 5;
  511. mosi = 2;
  512. miso = 11;
  513. ;
  514. programmer
  515. id = "bascom";
  516. desc = "Bascom SAMPLE programming cable";
  517. type = par;
  518. reset = 4;
  519. sck = 5;
  520. mosi = 2;
  521. miso = 11;
  522. ;
  523. programmer
  524. id = "alf";
  525. desc = "Nightshade ALF-PgmAVR, http://nightshade.homeip.net/";
  526. type = par;
  527. vcc = 2, 3, 4, 5;
  528. buff = 6;
  529. reset = 7;
  530. sck = 8;
  531. mosi = 9;
  532. miso = 10;
  533. errled = 1;
  534. rdyled = 14;
  535. pgmled = 16;
  536. vfyled = 17;
  537. ;
  538. programmer
  539. id = "sp12";
  540. desc = "Steve Bolt's Programmer";
  541. type = par;
  542. vcc = 4,5,6,7,8;
  543. reset = 3;
  544. sck = 2;
  545. mosi = 9;
  546. miso = 11;
  547. ;
  548. programmer
  549. id = "picoweb";
  550. desc = "Picoweb Programming Cable, http://www.picoweb.net/";
  551. type = par;
  552. reset = 2;
  553. sck = 3;
  554. mosi = 4;
  555. miso = 13;
  556. ;
  557. programmer
  558. id = "abcmini";
  559. desc = "ABCmini Board, aka Dick Smith HOTCHIP";
  560. type = par;
  561. reset = 4;
  562. sck = 3;
  563. mosi = 2;
  564. miso = 10;
  565. ;
  566. programmer
  567. id = "futurlec";
  568. desc = "Futurlec.com programming cable.";
  569. type = par;
  570. reset = 3;
  571. sck = 2;
  572. mosi = 1;
  573. miso = 10;
  574. ;
  575. # From the contributor of the "xil" jtag cable:
  576. # The "vcc" definition isn't really vcc (the cable gets its power from
  577. # the programming circuit) but is necessary to switch one of the
  578. # buffer lines (trying to add it to the "buff" lines doesn't work).
  579. # With this, TMS connects to RESET, TDI to MOSI, TDO to MISO and TCK
  580. # to SCK (plus vcc/gnd of course)
  581. programmer
  582. id = "xil";
  583. desc = "Xilinx JTAG cable";
  584. type = par;
  585. mosi = 2;
  586. sck = 3;
  587. reset = 4;
  588. buff = 5;
  589. miso = 13;
  590. vcc = 6;
  591. ;
  592. programmer
  593. id = "dapa";
  594. desc = "Direct AVR Parallel Access cable";
  595. type = par;
  596. vcc = 3;
  597. reset = 16;
  598. sck = 1;
  599. mosi = 2;
  600. miso = 11;
  601. ;
  602. programmer
  603. id = "atisp";
  604. desc = "AT-ISP V1.1 programming cable for AVR-SDK1 from <http://micro-research.co.th/> micro-research.co.th";
  605. type = par;
  606. reset = ~6;
  607. sck = ~8;
  608. mosi = ~7;
  609. miso = ~10;
  610. ;
  611. programmer
  612. id = "ere-isp-avr";
  613. desc = "ERE ISP-AVR <http://www.ere.co.th/download/sch050713.pdf>";
  614. type = par;
  615. reset = ~4;
  616. sck = 3;
  617. mosi = 2;
  618. miso = 10;
  619. ;
  620. programmer
  621. id = "blaster";
  622. desc = "Altera ByteBlaster";
  623. type = par;
  624. sck = 2;
  625. miso = 11;
  626. reset = 3;
  627. mosi = 8;
  628. buff = 14;
  629. ;
  630. # It is almost same as pony-stk200, except vcc on pin 5 to auto
  631. # disconnect port (download on http://electropol.free.fr)
  632. programmer
  633. id = "frank-stk200";
  634. desc = "Frank STK200";
  635. type = par;
  636. vcc = 5;
  637. sck = 6;
  638. mosi = 7;
  639. reset = 9;
  640. miso = 10;
  641. pgmled = 8;
  642. ;
  643. #
  644. # some ultra cheap programmers use bitbanging on the
  645. # serialport.
  646. #
  647. # PC - DB9 - Pins for RS232:
  648. #
  649. # GND 5 -- |O
  650. # | O| <- 9 RI
  651. # DTR 4 <- |O |
  652. # | O| <- 8 CTS
  653. # TXD 3 <- |O |
  654. # | O| -> 7 RTS
  655. # RXD 2 -> |O |
  656. # | O| <- 6 DSR
  657. # DCD 1 -> |O
  658. #
  659. # Using RXD is currently not supported.
  660. # Using RI is not supported under Win32 but is supported under Posix.
  661. # serial ponyprog design (dasa2 in uisp)
  662. # reset=!txd sck=rts mosi=dtr miso=cts
  663. programmer
  664. id = "ponyser";
  665. desc = "design ponyprog serial, reset=!txd sck=rts mosi=dtr miso=cts";
  666. type = serbb;
  667. reset = ~3;
  668. sck = 7;
  669. mosi = 4;
  670. miso = 8;
  671. ;
  672. # Same as above, different name
  673. # reset=!txd sck=rts mosi=dtr miso=cts
  674. programmer
  675. id = "siprog";
  676. desc = "Lancos SI-Prog <http://www.lancos.com/siprogsch.html>";
  677. type = serbb;
  678. reset = ~3;
  679. sck = 7;
  680. mosi = 4;
  681. miso = 8;
  682. ;
  683. # unknown (dasa in uisp)
  684. # reset=rts sck=dtr mosi=txd miso=cts
  685. programmer
  686. id = "dasa";
  687. desc = "serial port banging, reset=rts sck=dtr mosi=txd miso=cts";
  688. type = serbb;
  689. reset = 7;
  690. sck = 4;
  691. mosi = 3;
  692. miso = 8;
  693. ;
  694. # unknown (dasa3 in uisp)
  695. # reset=!dtr sck=rts mosi=txd miso=cts
  696. programmer
  697. id = "dasa3";
  698. desc = "serial port banging, reset=!dtr sck=rts mosi=txd miso=cts";
  699. type = serbb;
  700. reset = ~4;
  701. sck = 7;
  702. mosi = 3;
  703. miso = 8;
  704. ;
  705. #
  706. # PART DEFINITIONS
  707. #
  708. #------------------------------------------------------------
  709. # ATtiny11
  710. #------------------------------------------------------------
  711. # This is an HVSP-only device.
  712. part
  713. id = "t11";
  714. desc = "ATtiny11";
  715. stk500_devcode = 0x11;
  716. signature = 0x1e 0x90 0x04;
  717. chip_erase_delay = 20000;
  718. timeout = 200;
  719. hvsp_controlstack =
  720. 0x4C, 0x0C, 0x1C, 0x2C, 0x3C, 0x64, 0x74, 0x00,
  721. 0x68, 0x78, 0x68, 0x68, 0x00, 0x00, 0x68, 0x78,
  722. 0x78, 0x00, 0x6D, 0x0C, 0x80, 0x40, 0x20, 0x10,
  723. 0x11, 0x08, 0x04, 0x02, 0x03, 0x08, 0x04, 0x00;
  724. hventerstabdelay = 100;
  725. progmodedelay = 0;
  726. hvspcmdexedelay = 0;
  727. synchcycles = 6;
  728. latchcycles = 1;
  729. togglevtg = 1;
  730. poweroffdelay = 25;
  731. resetdelayms = 0;
  732. resetdelayus = 50;
  733. hvleavestabdelay = 100;
  734. resetdelay = 25;
  735. chiperasepolltimeout = 40;
  736. chiperasetime = 0;
  737. programfusepolltimeout = 25;
  738. programlockpolltimeout = 25;
  739. memory "eeprom"
  740. size = 64;
  741. blocksize = 64;
  742. readsize = 256;
  743. delay = 5;
  744. ;
  745. memory "flash"
  746. size = 1024;
  747. blocksize = 128;
  748. readsize = 256;
  749. delay = 3;
  750. ;
  751. memory "signature"
  752. size = 3;
  753. ;
  754. memory "lock"
  755. size = 1;
  756. ;
  757. memory "calibration"
  758. size = 1;
  759. ;
  760. memory "fuse"
  761. size = 1;
  762. ;
  763. ;
  764. #------------------------------------------------------------
  765. # ATtiny12
  766. #------------------------------------------------------------
  767. part
  768. id = "t12";
  769. desc = "ATtiny12";
  770. stk500_devcode = 0x12;
  771. avr910_devcode = 0x55;
  772. signature = 0x1e 0x90 0x05;
  773. chip_erase_delay = 20000;
  774. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  775. "x x x x x x x x x x x x x x x x";
  776. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
  777. "x x x x x x x x x x x x x x x x";
  778. timeout = 200;
  779. stabdelay = 100;
  780. cmdexedelay = 25;
  781. synchloops = 32;
  782. bytedelay = 0;
  783. pollindex = 3;
  784. pollvalue = 0x53;
  785. predelay = 1;
  786. postdelay = 1;
  787. pollmethod = 0;
  788. hvsp_controlstack =
  789. 0x4C, 0x0C, 0x1C, 0x2C, 0x3C, 0x64, 0x74, 0x00,
  790. 0x68, 0x78, 0x68, 0x68, 0x00, 0x00, 0x68, 0x78,
  791. 0x78, 0x00, 0x6D, 0x0C, 0x80, 0x40, 0x20, 0x10,
  792. 0x11, 0x08, 0x04, 0x02, 0x03, 0x08, 0x04, 0x00;
  793. hventerstabdelay = 100;
  794. hvspcmdexedelay = 0;
  795. synchcycles = 6;
  796. latchcycles = 1;
  797. togglevtg = 1;
  798. poweroffdelay = 25;
  799. resetdelayms = 0;
  800. resetdelayus = 50;
  801. hvleavestabdelay = 100;
  802. resetdelay = 25;
  803. chiperasepolltimeout = 40;
  804. chiperasetime = 0;
  805. programfusepolltimeout = 25;
  806. programlockpolltimeout = 25;
  807. memory "eeprom"
  808. size = 64;
  809. min_write_delay = 9000;
  810. max_write_delay = 20000;
  811. readback_p1 = 0xff;
  812. readback_p2 = 0xff;
  813. read = "1 0 1 0 0 0 0 0 x x x x x x x x",
  814. "x x a5 a4 a3 a2 a1 a0 o o o o o o o o";
  815. write = "1 1 0 0 0 0 0 0 x x x x x x x x",
  816. "x x a5 a4 a3 a2 a1 a0 i i i i i i i i";
  817. mode = 0x04;
  818. delay = 8;
  819. blocksize = 64;
  820. readsize = 256;
  821. ;
  822. memory "flash"
  823. size = 1024;
  824. min_write_delay = 4500;
  825. max_write_delay = 20000;
  826. readback_p1 = 0xff;
  827. readback_p2 = 0xff;
  828. read_lo = " 0 0 1 0 0 0 0 0",
  829. " x x x x x x x a8",
  830. " a7 a6 a5 a4 a3 a2 a1 a0",
  831. " o o o o o o o o";
  832. read_hi = " 0 0 1 0 1 0 0 0",
  833. " x x x x x x x a8",
  834. " a7 a6 a5 a4 a3 a2 a1 a0",
  835. " o o o o o o o o";
  836. write_lo = " 0 1 0 0 0 0 0 0",
  837. " x x x x x x x a8",
  838. " a7 a6 a5 a4 a3 a2 a1 a0",
  839. " i i i i i i i i";
  840. write_hi = " 0 1 0 0 1 0 0 0",
  841. " x x x x x x x a8",
  842. " a7 a6 a5 a4 a3 a2 a1 a0",
  843. " i i i i i i i i";
  844. mode = 0x04;
  845. delay = 5;
  846. blocksize = 128;
  847. readsize = 256;
  848. ;
  849. memory "signature"
  850. size = 3;
  851. read = "0 0 1 1 0 0 0 0 x x x x x x x x",
  852. "0 0 0 0 0 0 a1 a0 o o o o o o o o";
  853. ;
  854. memory "lock"
  855. size = 1;
  856. read = "0 1 0 1 1 0 0 0 x x x x x x x x",
  857. "x x x x x x x x x x x x x o o x";
  858. write = "1 0 1 0 1 1 0 0 1 1 1 1 1 i i 1",
  859. "x x x x x x x x x x x x x x x x";
  860. min_write_delay = 9000;
  861. max_write_delay = 9000;
  862. ;
  863. memory "calibration"
  864. size = 1;
  865. read = "0 0 1 1 1 0 0 0 x x x x x x x x",
  866. "0 0 0 0 0 0 0 0 o o o o o o o o";
  867. ;
  868. memory "fuse"
  869. size = 1;
  870. read = "0 1 0 1 0 0 0 0 x x x x x x x x",
  871. "x x x x x x x x o o o o o o o o";
  872. write = "1 0 1 0 1 1 0 0 1 0 1 x x x x x",
  873. "x x x x x x x x i i i i i i i i";
  874. min_write_delay = 9000;
  875. max_write_delay = 9000;
  876. ;
  877. ;
  878. #------------------------------------------------------------
  879. # ATtiny13
  880. #------------------------------------------------------------
  881. part
  882. id = "t13";
  883. desc = "ATtiny13";
  884. has_debugwire = yes;
  885. flash_instr = 0xB4, 0x0E, 0x1E;
  886. eeprom_instr = 0xBB, 0xFE, 0xBB, 0xEE, 0xBB, 0xCC, 0xB2, 0x0D,
  887. 0xBC, 0x0E, 0xB4, 0x0E, 0xBA, 0x0D, 0xBB, 0xBC,
  888. 0x99, 0xE1, 0xBB, 0xAC;
  889. stk500_devcode = 0x14;
  890. signature = 0x1e 0x90 0x07;
  891. chip_erase_delay = 4000;
  892. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  893. "x x x x x x x x x x x x x x x x";
  894. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
  895. "x x x x x x x x x x x x x x x x";
  896. timeout = 200;
  897. stabdelay = 100;
  898. cmdexedelay = 25;
  899. synchloops = 32;
  900. bytedelay = 0;
  901. pollindex = 3;
  902. pollvalue = 0x53;
  903. predelay = 1;
  904. postdelay = 1;
  905. pollmethod = 1;
  906. hvsp_controlstack =
  907. 0x4C, 0x0C, 0x1C, 0x2C, 0x3C, 0x64, 0x74, 0x66,
  908. 0x68, 0x78, 0x68, 0x68, 0x7A, 0x6A, 0x68, 0x78,
  909. 0x78, 0x7D, 0x6D, 0x0C, 0x80, 0x40, 0x20, 0x10,
  910. 0x11, 0x08, 0x04, 0x02, 0x03, 0x08, 0x04, 0x00;
  911. hventerstabdelay = 100;
  912. progmodedelay = 0;
  913. hvspcmdexedelay = 0;
  914. synchcycles = 6;
  915. latchcycles = 1;
  916. togglevtg = 1;
  917. poweroffdelay = 25;
  918. resetdelayms = 0;
  919. resetdelayus = 90;
  920. hvleavestabdelay = 100;
  921. resetdelay = 25;
  922. chiperasepolltimeout = 40;
  923. chiperasetime = 0;
  924. programfusepolltimeout = 25;
  925. programlockpolltimeout = 25;
  926. memory "eeprom"
  927. size = 64;
  928. page_size = 4;
  929. min_write_delay = 4000;
  930. max_write_delay = 4000;
  931. readback_p1 = 0xff;
  932. readback_p2 = 0xff;
  933. read = "1 0 1 0 0 0 0 0 0 0 0 x x x x x",
  934. "x x a5 a4 a3 a2 a1 a0 o o o o o o o o";
  935. write = "1 1 0 0 0 0 0 0 0 0 0 x x x x x",
  936. "x x a5 a4 a3 a2 a1 a0 i i i i i i i i";
  937. loadpage_lo = " 1 1 0 0 0 0 0 1",
  938. " 0 0 0 0 0 0 0 0",
  939. " 0 0 0 0 0 0 a1 a0",
  940. " i i i i i i i i";
  941. writepage = " 1 1 0 0 0 0 1 0",
  942. " 0 0 x x x x x x",
  943. " x x a5 a4 a3 a2 0 0",
  944. " x x x x x x x x";
  945. mode = 0x41;
  946. delay = 5;
  947. blocksize = 4;
  948. readsize = 256;
  949. ;
  950. memory "flash"
  951. paged = yes;
  952. size = 1024;
  953. page_size = 32;
  954. num_pages = 32;
  955. min_write_delay = 4500;
  956. max_write_delay = 4500;
  957. readback_p1 = 0xff;
  958. readback_p2 = 0xff;
  959. read_lo = " 0 0 1 0 0 0 0 0",
  960. " 0 0 0 0 0 0 0 a8",
  961. " a7 a6 a5 a4 a3 a2 a1 a0",
  962. " o o o o o o o o";
  963. read_hi = " 0 0 1 0 1 0 0 0",
  964. " 0 0 0 0 0 0 0 a8",
  965. " a7 a6 a5 a4 a3 a2 a1 a0",
  966. " o o o o o o o o";
  967. loadpage_lo = " 0 1 0 0 0 0 0 0",
  968. " 0 0 0 x x x x x",
  969. " x x x x a3 a2 a1 a0",
  970. " i i i i i i i i";
  971. loadpage_hi = " 0 1 0 0 1 0 0 0",
  972. " 0 0 0 x x x x x",
  973. " x x x x a3 a2 a1 a0",
  974. " i i i i i i i i";
  975. writepage = " 0 1 0 0 1 1 0 0",
  976. " 0 0 0 0 0 0 0 a8",
  977. " a7 a6 a5 a4 x x x x",
  978. " x x x x x x x x";
  979. mode = 0x41;
  980. delay = 6;
  981. blocksize = 32;
  982. readsize = 256;
  983. ;
  984. memory "signature"
  985. size = 3;
  986. read = "0 0 1 1 0 0 0 0 0 0 0 x x x x x",
  987. "x x x x x x a1 a0 o o o o o o o o";
  988. ;
  989. memory "lock"
  990. size = 1;
  991. min_write_delay = 4500;
  992. max_write_delay = 4500;
  993. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  994. "x x x x x x x x x x o o o o o o";
  995. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  996. "x x x x x x x x 1 1 i i i i i i";
  997. ;
  998. memory "calibration"
  999. size = 2;
  1000. read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
  1001. "0 0 0 0 0 0 0 a0 o o o o o o o o";
  1002. ;
  1003. memory "lfuse"
  1004. size = 1;
  1005. min_write_delay = 4500;
  1006. max_write_delay = 4500;
  1007. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  1008. "x x x x x x x x i i i i i i i i";
  1009. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  1010. "x x x x x x x x o o o o o o o o";
  1011. ;
  1012. memory "hfuse"
  1013. size = 1;
  1014. min_write_delay = 4500;
  1015. max_write_delay = 4500;
  1016. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  1017. "x x x x x x x x i i i i i i i i";
  1018. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  1019. "x x x x x x x x o o o o o o o o";
  1020. ;
  1021. ;
  1022. #------------------------------------------------------------
  1023. # ATtiny15
  1024. #------------------------------------------------------------
  1025. part
  1026. id = "t15";
  1027. desc = "ATtiny15";
  1028. stk500_devcode = 0x13;
  1029. avr910_devcode = 0x56;
  1030. signature = 0x1e 0x90 0x06;
  1031. chip_erase_delay = 8200;
  1032. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  1033. "x x x x x x x x x x x x x x x x";
  1034. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
  1035. "x x x x x x x x x x x x x x x x";
  1036. timeout = 200;
  1037. stabdelay = 100;
  1038. cmdexedelay = 25;
  1039. synchloops = 32;
  1040. bytedelay = 0;
  1041. pollindex = 3;
  1042. pollvalue = 0x53;
  1043. predelay = 1;
  1044. postdelay = 1;
  1045. pollmethod = 0;
  1046. hvsp_controlstack =
  1047. 0x4C, 0x0C, 0x1C, 0x2C, 0x3C, 0x64, 0x74, 0x00,
  1048. 0x68, 0x78, 0x68, 0x68, 0x00, 0x00, 0x68, 0x78,
  1049. 0x78, 0x00, 0x6D, 0x0C, 0x80, 0x40, 0x20, 0x10,
  1050. 0x11, 0x08, 0x04, 0x02, 0x03, 0x08, 0x04, 0x00;
  1051. hventerstabdelay = 100;
  1052. hvspcmdexedelay = 5;
  1053. synchcycles = 6;
  1054. latchcycles = 16;
  1055. togglevtg = 1;
  1056. poweroffdelay = 25;
  1057. resetdelayms = 0;
  1058. resetdelayus = 50;
  1059. hvleavestabdelay = 100;
  1060. resetdelay = 25;
  1061. chiperasepolltimeout = 40;
  1062. chiperasetime = 0;
  1063. programfusepolltimeout = 25;
  1064. programlockpolltimeout = 25;
  1065. memory "eeprom"
  1066. size = 64;
  1067. min_write_delay = 8200;
  1068. max_write_delay = 8200;
  1069. readback_p1 = 0xff;
  1070. readback_p2 = 0xff;
  1071. read = "1 0 1 0 0 0 0 0 x x x x x x x x",
  1072. "x x a5 a4 a3 a2 a1 a0 o o o o o o o o";
  1073. write = "1 1 0 0 0 0 0 0 x x x x x x x x",
  1074. "x x a5 a4 a3 a2 a1 a0 i i i i i i i i";
  1075. mode = 0x04;
  1076. delay = 10;
  1077. blocksize = 64;
  1078. readsize = 256;
  1079. ;
  1080. memory "flash"
  1081. size = 1024;
  1082. min_write_delay = 4100;
  1083. max_write_delay = 4100;
  1084. readback_p1 = 0xff;
  1085. readback_p2 = 0xff;
  1086. read_lo = " 0 0 1 0 0 0 0 0",
  1087. " x x x x x x x a8",
  1088. " a7 a6 a5 a4 a3 a2 a1 a0",
  1089. " o o o o o o o o";
  1090. read_hi = " 0 0 1 0 1 0 0 0",
  1091. " x x x x x x x a8",
  1092. " a7 a6 a5 a4 a3 a2 a1 a0",
  1093. " o o o o o o o o";
  1094. write_lo = " 0 1 0 0 0 0 0 0",
  1095. " x x x x x x x a8",
  1096. " a7 a6 a5 a4 a3 a2 a1 a0",
  1097. " i i i i i i i i";
  1098. write_hi = " 0 1 0 0 1 0 0 0",
  1099. " x x x x x x x a8",
  1100. " a7 a6 a5 a4 a3 a2 a1 a0",
  1101. " i i i i i i i i";
  1102. mode = 0x04;
  1103. delay = 5;
  1104. blocksize = 128;
  1105. readsize = 256;
  1106. ;
  1107. memory "signature"
  1108. size = 3;
  1109. read = "0 0 1 1 0 0 0 0 x x x x x x x x",
  1110. "0 0 0 0 0 0 a1 a0 o o o o o o o o";
  1111. ;
  1112. memory "lock"
  1113. size = 1;
  1114. read = "0 1 0 1 1 0 0 0 x x x x x x x x",
  1115. "x x x x x x x x x x x x x o o x";
  1116. write = "1 0 1 0 1 1 0 0 1 1 1 1 1 i i 1",
  1117. "x x x x x x x x x x x x x x x x";
  1118. min_write_delay = 9000;
  1119. max_write_delay = 9000;
  1120. ;
  1121. memory "calibration"
  1122. size = 1;
  1123. read = "0 0 1 1 1 0 0 0 x x x x x x x x",
  1124. "0 0 0 0 0 0 0 0 o o o o o o o o";
  1125. ;
  1126. memory "fuse"
  1127. size = 1;
  1128. read = "0 1 0 1 0 0 0 0 x x x x x x x x",
  1129. "x x x x x x x x o o o o x x o o";
  1130. write = "1 0 1 0 1 1 0 0 1 0 1 x x x x x",
  1131. "x x x x x x x x i i i i 1 1 i i";
  1132. min_write_delay = 9000;
  1133. max_write_delay = 9000;
  1134. ;
  1135. ;
  1136. #------------------------------------------------------------
  1137. # AT90s1200
  1138. #------------------------------------------------------------
  1139. part
  1140. id = "1200";
  1141. desc = "AT90S1200";
  1142. stk500_devcode = 0x33;
  1143. avr910_devcode = 0x13;
  1144. signature = 0x1e 0x90 0x01;
  1145. pagel = 0xd7;
  1146. bs2 = 0xa0;
  1147. chip_erase_delay = 20000;
  1148. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  1149. "x x x x x x x x x x x x x x x x";
  1150. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 0 0 0 0 0",
  1151. "x x x x x x x x x x x x x x x x";
  1152. timeout = 200;
  1153. stabdelay = 100;
  1154. cmdexedelay = 25;
  1155. synchloops = 1;
  1156. bytedelay = 0;
  1157. pollindex = 0;
  1158. pollvalue = 0xFF;
  1159. predelay = 1;
  1160. postdelay = 1;
  1161. pollmethod = 0;
  1162. pp_controlstack =
  1163. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  1164. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  1165. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  1166. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  1167. hventerstabdelay = 100;
  1168. progmodedelay = 0;
  1169. latchcycles = 0;
  1170. togglevtg = 0;
  1171. poweroffdelay = 0;
  1172. resetdelayms = 0;
  1173. resetdelayus = 0;
  1174. hvleavestabdelay = 15;
  1175. chiperasepulsewidth = 15;
  1176. chiperasepolltimeout = 0;
  1177. programfusepulsewidth = 2;
  1178. programfusepolltimeout = 0;
  1179. programlockpulsewidth = 0;
  1180. programlockpolltimeout = 1;
  1181. memory "eeprom"
  1182. size = 64;
  1183. min_write_delay = 4000;
  1184. max_write_delay = 9000;
  1185. readback_p1 = 0x00;
  1186. readback_p2 = 0xff;
  1187. read = "1 0 1 0 0 0 0 0 x x x x x x x x",
  1188. "x x a5 a4 a3 a2 a1 a0 o o o o o o o o";
  1189. write = "1 1 0 0 0 0 0 0 x x x x x x x x",
  1190. "x x a5 a4 a3 a2 a1 a0 i i i i i i i i";
  1191. mode = 0x04;
  1192. delay = 20;
  1193. blocksize = 32;
  1194. readsize = 256;
  1195. ;
  1196. memory "flash"
  1197. size = 1024;
  1198. min_write_delay = 4000;
  1199. max_write_delay = 9000;
  1200. readback_p1 = 0xff;
  1201. readback_p2 = 0xff;
  1202. read_lo = " 0 0 1 0 0 0 0 0",
  1203. " x x x x x x x a8",
  1204. " a7 a6 a5 a4 a3 a2 a1 a0",
  1205. " o o o o o o o o";
  1206. read_hi = " 0 0 1 0 1 0 0 0",
  1207. " x x x x x x x a8",
  1208. " a7 a6 a5 a4 a3 a2 a1 a0",
  1209. " o o o o o o o o";
  1210. write_lo = " 0 1 0 0 0 0 0 0",
  1211. " x x x x x x x a8",
  1212. " a7 a6 a5 a4 a3 a2 a1 a0",
  1213. " i i i i i i i i";
  1214. write_hi = " 0 1 0 0 1 0 0 0",
  1215. " x x x x x x x a8",
  1216. " a7 a6 a5 a4 a3 a2 a1 a0",
  1217. " i i i i i i i i";
  1218. mode = 0x02;
  1219. delay = 15;
  1220. blocksize = 128;
  1221. readsize = 256;
  1222. ;
  1223. memory "signature"
  1224. size = 3;
  1225. read = "0 0 1 1 0 0 0 0 x x x x x x x x",
  1226. "x x x x x x a1 a0 o o o o o o o o";
  1227. ;
  1228. memory "fuse"
  1229. size = 1;
  1230. ;
  1231. memory "lock"
  1232. size = 1;
  1233. min_write_delay = 9000;
  1234. max_write_delay = 20000;
  1235. write = "1 0 1 0 1 1 0 0 1 1 1 1 1 i i 1",
  1236. "x x x x x x x x x x x x x x x x";
  1237. ;
  1238. ;
  1239. #------------------------------------------------------------
  1240. # AT90s4414
  1241. #------------------------------------------------------------
  1242. part
  1243. id = "4414";
  1244. desc = "AT90S4414";
  1245. stk500_devcode = 0x50;
  1246. avr910_devcode = 0x28;
  1247. signature = 0x1e 0x92 0x01;
  1248. chip_erase_delay = 20000;
  1249. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  1250. "x x x x x x x x x x x x x x x x";
  1251. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 0 0 0 0 0",
  1252. "x x x x x x x x x x x x x x x x";
  1253. timeout = 200;
  1254. stabdelay = 100;
  1255. cmdexedelay = 25;
  1256. synchloops = 32;
  1257. bytedelay = 0;
  1258. pollindex = 3;
  1259. pollvalue = 0x53;
  1260. predelay = 1;
  1261. postdelay = 1;
  1262. pollmethod = 0;
  1263. pp_controlstack =
  1264. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  1265. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  1266. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  1267. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x01;
  1268. hventerstabdelay = 100;
  1269. progmodedelay = 0;
  1270. latchcycles = 0;
  1271. togglevtg = 0;
  1272. poweroffdelay = 0;
  1273. resetdelayms = 0;
  1274. resetdelayus = 0;
  1275. hvleavestabdelay = 15;
  1276. chiperasepulsewidth = 15;
  1277. chiperasepolltimeout = 0;
  1278. programfusepulsewidth = 2;
  1279. programfusepolltimeout = 0;
  1280. programlockpulsewidth = 0;
  1281. programlockpolltimeout = 1;
  1282. memory "eeprom"
  1283. size = 256;
  1284. min_write_delay = 9000;
  1285. max_write_delay = 20000;
  1286. readback_p1 = 0x80;
  1287. readback_p2 = 0x7f;
  1288. read = " 1 0 1 0 0 0 0 0 x x x x x x x a8",
  1289. "a7 a6 a5 a4 a3 a2 a1 a0 o o o o o o o o";
  1290. write = " 1 1 0 0 0 0 0 0 x x x x x x x a8",
  1291. "a7 a6 a5 a4 a3 a2 a1 a0 i i i i i i i i";
  1292. mode = 0x04;
  1293. delay = 12;
  1294. blocksize = 64;
  1295. readsize = 256;
  1296. ;
  1297. memory "flash"
  1298. size = 4096;
  1299. min_write_delay = 9000;
  1300. max_write_delay = 20000;
  1301. readback_p1 = 0x7f;
  1302. readback_p2 = 0x7f;
  1303. read_lo = " 0 0 1 0 0 0 0 0",
  1304. " x x x x a11 a10 a9 a8",
  1305. " a7 a6 a5 a4 a3 a2 a1 a0",
  1306. " o o o o o o o o";
  1307. read_hi = " 0 0 1 0 1 0 0 0",
  1308. " x x x x a11 a10 a9 a8",
  1309. " a7 a6 a5 a4 a3 a2 a1 a0",
  1310. " o o o o o o o o";
  1311. write_lo = " 0 1 0 0 0 0 0 0",
  1312. " x x x x a11 a10 a9 a8",
  1313. " a7 a6 a5 a4 a3 a2 a1 a0",
  1314. " i i i i i i i i";
  1315. write_hi = " 0 1 0 0 1 0 0 0",
  1316. " x x x x a11 a10 a9 a8",
  1317. " a7 a6 a5 a4 a3 a2 a1 a0",
  1318. " i i i i i i i i";
  1319. mode = 0x04;
  1320. delay = 12;
  1321. blocksize = 64;
  1322. readsize = 256;
  1323. ;
  1324. memory "signature"
  1325. size = 3;
  1326. read = "0 0 1 1 0 0 0 0 x x x x x x x x",
  1327. "x x x x x x a1 a0 o o o o o o o o";
  1328. ;
  1329. memory "fuse"
  1330. size = 1;
  1331. ;
  1332. memory "lock"
  1333. size = 1;
  1334. write = "1 0 1 0 1 1 0 0 1 1 1 1 1 i i 1",
  1335. "x x x x x x x x x x x x x x x x";
  1336. min_write_delay = 9000;
  1337. max_write_delay = 9000;
  1338. ;
  1339. ;
  1340. #------------------------------------------------------------
  1341. # AT90s2313
  1342. #------------------------------------------------------------
  1343. part
  1344. id = "2313";
  1345. desc = "AT90S2313";
  1346. stk500_devcode = 0x40;
  1347. avr910_devcode = 0x20;
  1348. signature = 0x1e 0x91 0x01;
  1349. chip_erase_delay = 20000;
  1350. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  1351. "x x x x x x x x x x x x x x x x";
  1352. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 0 0 0 0 0",
  1353. "x x x x x x x x x x x x x x x x";
  1354. timeout = 200;
  1355. stabdelay = 100;
  1356. cmdexedelay = 25;
  1357. synchloops = 32;
  1358. bytedelay = 0;
  1359. pollindex = 3;
  1360. pollvalue = 0x53;
  1361. predelay = 1;
  1362. postdelay = 1;
  1363. pollmethod = 0;
  1364. pp_controlstack =
  1365. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  1366. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  1367. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  1368. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  1369. hventerstabdelay = 100;
  1370. progmodedelay = 0;
  1371. latchcycles = 0;
  1372. togglevtg = 0;
  1373. poweroffdelay = 0;
  1374. resetdelayms = 0;
  1375. resetdelayus = 0;
  1376. hvleavestabdelay = 15;
  1377. chiperasepulsewidth = 15;
  1378. chiperasepolltimeout = 0;
  1379. programfusepulsewidth = 2;
  1380. programfusepolltimeout = 0;
  1381. programlockpulsewidth = 0;
  1382. programlockpolltimeout = 1;
  1383. memory "eeprom"
  1384. size = 128;
  1385. min_write_delay = 4000;
  1386. max_write_delay = 9000;
  1387. readback_p1 = 0x80;
  1388. readback_p2 = 0x7f;
  1389. read = "1 0 1 0 0 0 0 0 x x x x x x x x",
  1390. "x a6 a5 a4 a3 a2 a1 a0 o o o o o o o o";
  1391. write = "1 1 0 0 0 0 0 0 x x x x x x x x",
  1392. "x a6 a5 a4 a3 a2 a1 a0 i i i i i i i i";
  1393. mode = 0x04;
  1394. delay = 12;
  1395. blocksize = 64;
  1396. readsize = 256;
  1397. ;
  1398. memory "flash"
  1399. size = 2048;
  1400. min_write_delay = 4000;
  1401. max_write_delay = 9000;
  1402. readback_p1 = 0x7f;
  1403. readback_p2 = 0x7f;
  1404. read_lo = " 0 0 1 0 0 0 0 0",
  1405. " x x x x x x a9 a8",
  1406. " a7 a6 a5 a4 a3 a2 a1 a0",
  1407. " o o o o o o o o";
  1408. read_hi = " 0 0 1 0 1 0 0 0",
  1409. " x x x x x x a9 a8",
  1410. " a7 a6 a5 a4 a3 a2 a1 a0",
  1411. " o o o o o o o o";
  1412. write_lo = " 0 1 0 0 0 0 0 0",
  1413. " x x x x x x a9 a8",
  1414. " a7 a6 a5 a4 a3 a2 a1 a0",
  1415. " i i i i i i i i";
  1416. write_hi = " 0 1 0 0 1 0 0 0",
  1417. " x x x x x x a9 a8",
  1418. " a7 a6 a5 a4 a3 a2 a1 a0",
  1419. " i i i i i i i i";
  1420. mode = 0x04;
  1421. delay = 12;
  1422. blocksize = 128;
  1423. readsize = 256;
  1424. ;
  1425. memory "signature"
  1426. size = 3;
  1427. read = "0 0 1 1 0 0 0 0 x x x x x x x x",
  1428. "x x x x x x a1 a0 o o o o o o o o";
  1429. ;
  1430. memory "fuse"
  1431. size = 1;
  1432. ;
  1433. memory "lock"
  1434. size = 1;
  1435. write = "1 0 1 0 1 1 0 0 1 1 1 x x i i x",
  1436. "x x x x x x x x x x x x x x x x";
  1437. min_write_delay = 9000;
  1438. max_write_delay = 9000;
  1439. ;
  1440. ;
  1441. #------------------------------------------------------------
  1442. # AT90s2333
  1443. #------------------------------------------------------------
  1444. part
  1445. id = "2333";
  1446. ##### WARNING: No XML file for device 'AT90S2333'! #####
  1447. desc = "AT90S2333";
  1448. stk500_devcode = 0x42;
  1449. avr910_devcode = 0x34;
  1450. signature = 0x1e 0x91 0x05;
  1451. chip_erase_delay = 20000;
  1452. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  1453. "x x x x x x x x x x x x x x x x";
  1454. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 0 0 0 0 0",
  1455. "x x x x x x x x x x x x x x x x";
  1456. memory "eeprom"
  1457. size = 128;
  1458. min_write_delay = 9000;
  1459. max_write_delay = 20000;
  1460. readback_p1 = 0x00;
  1461. readback_p2 = 0xff;
  1462. read = "1 0 1 0 0 0 0 0 x x x x x x x x",
  1463. "x a6 a5 a4 a3 a2 a1 a0 o o o o o o o o";
  1464. write = "1 1 0 0 0 0 0 0 x x x x x x x x",
  1465. "x a6 a5 a4 a3 a2 a1 a0 i i i i i i i i";
  1466. ;
  1467. memory "flash"
  1468. size = 2048;
  1469. min_write_delay = 9000;
  1470. max_write_delay = 20000;
  1471. readback_p1 = 0xff;
  1472. readback_p2 = 0xff;
  1473. read_lo = " 0 0 1 0 0 0 0 0",
  1474. " x x x x x x a9 a8",
  1475. " a7 a6 a5 a4 a3 a2 a1 a0",
  1476. " o o o o o o o o";
  1477. read_hi = " 0 0 1 0 1 0 0 0",
  1478. " x x x x x x a9 a8",
  1479. " a7 a6 a5 a4 a3 a2 a1 a0",
  1480. " o o o o o o o o";
  1481. write_lo = " 0 1 0 0 0 0 0 0",
  1482. " x x x x x x a9 a8",
  1483. " a7 a6 a5 a4 a3 a2 a1 a0",
  1484. " i i i i i i i i";
  1485. write_hi = " 0 1 0 0 1 0 0 0",
  1486. " x x x x x x a9 a8",
  1487. " a7 a6 a5 a4 a3 a2 a1 a0",
  1488. " i i i i i i i i";
  1489. ;
  1490. memory "signature"
  1491. size = 3;
  1492. read = "0 0 1 1 0 0 0 0 x x x x x x x x",
  1493. "x x x x x x a1 a0 o o o o o o o o";
  1494. ;
  1495. memory "fuse"
  1496. size = 1;
  1497. min_write_delay = 9000;
  1498. max_write_delay = 20000;
  1499. pwroff_after_write = yes;
  1500. read = "0 1 0 1 0 0 0 0 x x x x x x x x",
  1501. "x x x x x x x x x x o o o o o o";
  1502. write = "1 0 1 0 1 1 0 0 1 0 1 i i i i i",
  1503. "x x x x x x x x x x x x x x x x";
  1504. ;
  1505. memory "lock"
  1506. size = 1;
  1507. min_write_delay = 9000;
  1508. max_write_delay = 20000;
  1509. read = "0 1 0 1 1 0 0 0 x x x x x x x x",
  1510. "x x x x x x x x x x x x x o o x";
  1511. write = "1 0 1 0 1 1 0 0 1 1 1 1 1 i i 1",
  1512. "x x x x x x x x x x x x x x x x";
  1513. ;
  1514. ;
  1515. #------------------------------------------------------------
  1516. # ATmega1284P
  1517. #------------------------------------------------------------
  1518. # similar to ATmega164p
  1519. part
  1520. id = "m1284p";
  1521. desc = "ATMEGA1284P";
  1522. has_jtag = yes;
  1523. stk500_devcode = 0x82; # no STK500v1 support, use the ATmega16 one
  1524. avr910_devcode = 0x74;
  1525. signature = 0x1e 0x97 0x05;
  1526. pagel = 0xd7;
  1527. bs2 = 0xa0;
  1528. chip_erase_delay = 9000;
  1529. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  1530. "x x x x x x x x x x x x x x x x";
  1531. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
  1532. "x x x x x x x x x x x x x x x x";
  1533. timeout = 200;
  1534. stabdelay = 100;
  1535. cmdexedelay = 25;
  1536. synchloops = 32;
  1537. bytedelay = 0;
  1538. pollindex = 3;
  1539. pollvalue = 0x53;
  1540. predelay = 1;
  1541. postdelay = 1;
  1542. pollmethod = 1;
  1543. pp_controlstack =
  1544. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  1545. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  1546. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  1547. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x02;
  1548. hventerstabdelay = 100;
  1549. progmodedelay = 0;
  1550. latchcycles = 6;
  1551. togglevtg = 1;
  1552. poweroffdelay = 15;
  1553. resetdelayms = 1;
  1554. resetdelayus = 0;
  1555. hvleavestabdelay = 15;
  1556. chiperasepulsewidth = 0;
  1557. chiperasepolltimeout = 10;
  1558. programfusepulsewidth = 0;
  1559. programfusepolltimeout = 5;
  1560. programlockpulsewidth = 0;
  1561. programlockpolltimeout = 5;
  1562. idr = 0x31;
  1563. spmcr = 0x57;
  1564. allowfullpagebitstream = no;
  1565. memory "eeprom"
  1566. paged = no; /* leave this "no" */
  1567. page_size = 8; /* for parallel programming */
  1568. size = 4096;
  1569. min_write_delay = 9000;
  1570. max_write_delay = 9000;
  1571. readback_p1 = 0xff;
  1572. readback_p2 = 0xff;
  1573. read = " 1 0 1 0 0 0 0 0",
  1574. " 0 0 x x a11 a10 a9 a8",
  1575. " a7 a6 a5 a4 a3 a2 a1 a0",
  1576. " o o o o o o o o";
  1577. write = " 1 1 0 0 0 0 0 0",
  1578. " 0 0 x x a11 a10 a9 a8",
  1579. " a7 a6 a5 a4 a3 a2 a1 a0",
  1580. " i i i i i i i i";
  1581. loadpage_lo = " 1 1 0 0 0 0 0 1",
  1582. " 0 0 0 0 0 0 0 0",
  1583. " 0 0 0 0 0 a2 a1 a0",
  1584. " i i i i i i i i";
  1585. writepage = " 1 1 0 0 0 0 1 0",
  1586. " 0 0 x x a11 a10 a9 a8",
  1587. " a7 a6 a5 a4 a3 0 0 0",
  1588. " x x x x x x x x";
  1589. mode = 0x41;
  1590. delay = 10;
  1591. blocksize = 128;
  1592. readsize = 256;
  1593. ;
  1594. memory "flash"
  1595. paged = yes;
  1596. size = 131072;
  1597. page_size = 256;
  1598. num_pages = 512;
  1599. min_write_delay = 4500;
  1600. max_write_delay = 4500;
  1601. readback_p1 = 0xff;
  1602. readback_p2 = 0xff;
  1603. read_lo = " 0 0 1 0 0 0 0 0",
  1604. "a15 a14 a13 a12 a11 a10 a9 a8",
  1605. " a7 a6 a5 a4 a3 a2 a1 a0",
  1606. " o o o o o o o o";
  1607. read_hi = " 0 0 1 0 1 0 0 0",
  1608. "a15 a14 a13 a12 a11 a10 a9 a8",
  1609. " a7 a6 a5 a4 a3 a2 a1 a0",
  1610. " o o o o o o o o";
  1611. loadpage_lo = " 0 1 0 0 0 0 0 0",
  1612. " 0 0 x x x x x x",
  1613. " x a6 a5 a4 a3 a2 a1 a0",
  1614. " i i i i i i i i";
  1615. loadpage_hi = " 0 1 0 0 1 0 0 0",
  1616. " 0 0 x x x x x x",
  1617. " x a6 a5 a4 a3 a2 a1 a0",
  1618. " i i i i i i i i";
  1619. writepage = " 0 1 0 0 1 1 0 0",
  1620. "a15 a14 a13 a12 a11 a10 a9 a8",
  1621. " a7 x x x x x x x",
  1622. " x x x x x x x x";
  1623. mode = 0x41;
  1624. delay = 10;
  1625. blocksize = 256;
  1626. readsize = 256;
  1627. ;
  1628. memory "lock"
  1629. size = 1;
  1630. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  1631. "x x x x x x x x x x o o o o o o";
  1632. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  1633. "x x x x x x x x 1 1 i i i i i i";
  1634. min_write_delay = 9000;
  1635. max_write_delay = 9000;
  1636. ;
  1637. memory "lfuse"
  1638. size = 1;
  1639. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  1640. "x x x x x x x x o o o o o o o o";
  1641. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  1642. "x x x x x x x x i i i i i i i i";
  1643. min_write_delay = 9000;
  1644. max_write_delay = 9000;
  1645. ;
  1646. memory "hfuse"
  1647. size = 1;
  1648. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  1649. "x x x x x x x x o o o o o o o o";
  1650. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  1651. "x x x x x x x x i i i i i i i i";
  1652. min_write_delay = 9000;
  1653. max_write_delay = 9000;
  1654. ;
  1655. memory "efuse"
  1656. size = 1;
  1657. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  1658. "x x x x x x x x o o o o o o o o";
  1659. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  1660. "x x x x x x x x 1 1 1 1 1 i i i";
  1661. min_write_delay = 9000;
  1662. max_write_delay = 9000;
  1663. ;
  1664. memory "signature"
  1665. size = 3;
  1666. read = "0 0 1 1 0 0 0 0 x x x x x x x x",
  1667. "x x x x x x a1 a0 o o o o o o o o";
  1668. ;
  1669. memory "calibration"
  1670. size = 1;
  1671. read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
  1672. "0 0 0 0 0 0 0 0 o o o o o o o o";
  1673. ;
  1674. ;
  1675. #------------------------------------------------------------
  1676. # AT90s2343 (also AT90s2323 and ATtiny22)
  1677. #------------------------------------------------------------
  1678. part
  1679. id = "2343";
  1680. desc = "AT90S2343";
  1681. stk500_devcode = 0x43;
  1682. avr910_devcode = 0x4c;
  1683. signature = 0x1e 0x91 0x03;
  1684. chip_erase_delay = 18000;
  1685. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  1686. "x x x x x x x x x x x x x x x x";
  1687. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
  1688. "x x x x x x x x x x x x x x x x";
  1689. timeout = 200;
  1690. stabdelay = 100;
  1691. cmdexedelay = 25;
  1692. synchloops = 32;
  1693. bytedelay = 0;
  1694. pollindex = 3;
  1695. pollvalue = 0x53;
  1696. predelay = 1;
  1697. postdelay = 1;
  1698. pollmethod = 0;
  1699. hvsp_controlstack =
  1700. 0x4C, 0x0C, 0x1C, 0x2C, 0x3C, 0x64, 0x74, 0x00,
  1701. 0x68, 0x78, 0x68, 0x68, 0x00, 0x00, 0x68, 0x78,
  1702. 0x78, 0x00, 0x6D, 0x0C, 0x80, 0x40, 0x20, 0x10,
  1703. 0x11, 0x08, 0x04, 0x02, 0x03, 0x08, 0x04, 0x00;
  1704. hventerstabdelay = 100;
  1705. hvspcmdexedelay = 0;
  1706. synchcycles = 6;
  1707. latchcycles = 1;
  1708. togglevtg = 0;
  1709. poweroffdelay = 25;
  1710. resetdelayms = 0;
  1711. resetdelayus = 50;
  1712. hvleavestabdelay = 100;
  1713. resetdelay = 25;
  1714. chiperasepolltimeout = 40;
  1715. chiperasetime = 0;
  1716. programfusepolltimeout = 25;
  1717. programlockpolltimeout = 25;
  1718. memory "eeprom"
  1719. size = 128;
  1720. min_write_delay = 9000;
  1721. max_write_delay = 20000;
  1722. readback_p1 = 0x00;
  1723. readback_p2 = 0xff;
  1724. read = "1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0",
  1725. "x a6 a5 a4 a3 a2 a1 a0 o o o o o o o o";
  1726. write = "1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0",
  1727. "x a6 a5 a4 a3 a2 a1 a0 i i i i i i i i";
  1728. mode = 0x04;
  1729. delay = 12;
  1730. blocksize = 64;
  1731. readsize = 256;
  1732. ;
  1733. memory "flash"
  1734. size = 2048;
  1735. min_write_delay = 9000;
  1736. max_write_delay = 20000;
  1737. readback_p1 = 0xff;
  1738. readback_p2 = 0xff;
  1739. read_lo = " 0 0 1 0 0 0 0 0",
  1740. " x x x x x x a9 a8",
  1741. " a7 a6 a5 a4 a3 a2 a1 a0",
  1742. " o o o o o o o o";
  1743. read_hi = " 0 0 1 0 1 0 0 0",
  1744. " x x x x x x a9 a8",
  1745. " a7 a6 a5 a4 a3 a2 a1 a0",
  1746. " o o o o o o o o";
  1747. write_lo = " 0 1 0 0 0 0 0 0",
  1748. " x x x x x x a9 a8",
  1749. " a7 a6 a5 a4 a3 a2 a1 a0",
  1750. " i i i i i i i i";
  1751. write_hi = " 0 1 0 0 1 0 0 0",
  1752. " x x x x x x a9 a8",
  1753. " a7 a6 a5 a4 a3 a2 a1 a0",
  1754. " i i i i i i i i";
  1755. mode = 0x04;
  1756. delay = 12;
  1757. blocksize = 128;
  1758. readsize = 128;
  1759. ;
  1760. memory "signature"
  1761. size = 3;
  1762. read = "0 0 1 1 0 0 0 0 x x x x x x x x",
  1763. "x x x x x x a1 a0 o o o o o o o o";
  1764. ;
  1765. memory "fuse"
  1766. size = 1;
  1767. min_write_delay = 9000;
  1768. max_write_delay = 20000;
  1769. read = "0 1 0 1 1 0 0 0 x x x x x x x x",
  1770. "x x x x x x x x o o o x x x x o";
  1771. write = "1 0 1 0 1 1 0 0 1 0 1 1 1 1 1 i",
  1772. "x x x x x x x x x x x x x x x x";
  1773. ;
  1774. memory "lock"
  1775. size = 1;
  1776. min_write_delay = 9000;
  1777. max_write_delay = 20000;
  1778. read = "0 1 0 1 1 0 0 0 x x x x x x x x",
  1779. "x x x x x x x x o o o x x x x o";
  1780. write = "1 0 1 0 1 1 0 0 1 1 1 1 1 i i 1",
  1781. "x x x x x x x x x x x x x x x x";
  1782. ;
  1783. ;
  1784. #------------------------------------------------------------
  1785. # AT90s4433
  1786. #------------------------------------------------------------
  1787. part
  1788. id = "4433";
  1789. desc = "AT90S4433";
  1790. stk500_devcode = 0x51;
  1791. avr910_devcode = 0x30;
  1792. signature = 0x1e 0x92 0x03;
  1793. chip_erase_delay = 20000;
  1794. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  1795. "x x x x x x x x x x x x x x x x";
  1796. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 0 0 0 0 0",
  1797. "x x x x x x x x x x x x x x x x";
  1798. timeout = 200;
  1799. stabdelay = 100;
  1800. cmdexedelay = 25;
  1801. synchloops = 32;
  1802. bytedelay = 0;
  1803. pollindex = 3;
  1804. pollvalue = 0x53;
  1805. predelay = 1;
  1806. postdelay = 1;
  1807. pollmethod = 0;
  1808. pp_controlstack =
  1809. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  1810. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  1811. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  1812. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  1813. hventerstabdelay = 100;
  1814. progmodedelay = 0;
  1815. latchcycles = 0;
  1816. togglevtg = 0;
  1817. poweroffdelay = 0;
  1818. resetdelayms = 0;
  1819. resetdelayus = 0;
  1820. hvleavestabdelay = 15;
  1821. chiperasepulsewidth = 15;
  1822. chiperasepolltimeout = 0;
  1823. programfusepulsewidth = 2;
  1824. programfusepolltimeout = 0;
  1825. programlockpulsewidth = 0;
  1826. programlockpolltimeout = 1;
  1827. memory "eeprom"
  1828. size = 256;
  1829. min_write_delay = 9000;
  1830. max_write_delay = 20000;
  1831. readback_p1 = 0x00;
  1832. readback_p2 = 0xff;
  1833. read = " 1 0 1 0 0 0 0 0 x x x x x x x x",
  1834. "a7 a6 a5 a4 a3 a2 a1 a0 o o o o o o o o";
  1835. write = " 1 1 0 0 0 0 0 0 x x x x x x x x",
  1836. "a7 a6 a5 a4 a3 a2 a1 a0 i i i i i i i i";
  1837. mode = 0x04;
  1838. delay = 12;
  1839. blocksize = 128;
  1840. readsize = 256;
  1841. ;
  1842. memory "flash"
  1843. size = 4096;
  1844. min_write_delay = 9000;
  1845. max_write_delay = 20000;
  1846. readback_p1 = 0xff;
  1847. readback_p2 = 0xff;
  1848. read_lo = " 0 0 1 0 0 0 0 0",
  1849. " x x x x x a10 a9 a8",
  1850. " a7 a6 a5 a4 a3 a2 a1 a0",
  1851. " o o o o o o o o";
  1852. read_hi = " 0 0 1 0 1 0 0 0",
  1853. " x x x x x a10 a9 a8",
  1854. " a7 a6 a5 a4 a3 a2 a1 a0",
  1855. " o o o o o o o o";
  1856. write_lo = " 0 1 0 0 0 0 0 0",
  1857. " x x x x x a10 a9 a8",
  1858. " a7 a6 a5 a4 a3 a2 a1 a0",
  1859. " i i i i i i i i";
  1860. write_hi = " 0 1 0 0 1 0 0 0",
  1861. " x x x x x a10 a9 a8",
  1862. " a7 a6 a5 a4 a3 a2 a1 a0",
  1863. " i i i i i i i i";
  1864. mode = 0x04;
  1865. delay = 12;
  1866. blocksize = 128;
  1867. readsize = 256;
  1868. ;
  1869. memory "signature"
  1870. size = 3;
  1871. read = "0 0 1 1 0 0 0 0 x x x x x x x x",
  1872. "x x x x x x a1 a0 o o o o o o o o";
  1873. ;
  1874. memory "fuse"
  1875. size = 1;
  1876. min_write_delay = 9000;
  1877. max_write_delay = 20000;
  1878. pwroff_after_write = yes;
  1879. read = "0 1 0 1 0 0 0 0 x x x x x x x x",
  1880. "x x x x x x x x x x o o o o o o";
  1881. write = "1 0 1 0 1 1 0 0 1 0 1 i i i i i",
  1882. "x x x x x x x x x x x x x x x x";
  1883. ;
  1884. memory "lock"
  1885. size = 1;
  1886. min_write_delay = 9000;
  1887. max_write_delay = 20000;
  1888. read = "0 1 0 1 1 0 0 0 x x x x x x x x",
  1889. "x x x x x x x x x x x x x o o x";
  1890. write = "1 0 1 0 1 1 0 0 1 1 1 1 1 i i 1",
  1891. "x x x x x x x x x x x x x x x x";
  1892. ;
  1893. ;
  1894. #------------------------------------------------------------
  1895. # AT90s4434
  1896. #------------------------------------------------------------
  1897. part
  1898. id = "4434";
  1899. ##### WARNING: No XML file for device 'AT90S4434'! #####
  1900. desc = "AT90S4434";
  1901. stk500_devcode = 0x52;
  1902. avr910_devcode = 0x6c;
  1903. signature = 0x1e 0x92 0x02;
  1904. chip_erase_delay = 20000;
  1905. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  1906. "x x x x x x x x x x x x x x x x";
  1907. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 0 0 0 0 0",
  1908. "x x x x x x x x x x x x x x x x";
  1909. memory "eeprom"
  1910. size = 256;
  1911. min_write_delay = 9000;
  1912. max_write_delay = 20000;
  1913. readback_p1 = 0x00;
  1914. readback_p2 = 0xff;
  1915. read = " 1 0 1 0 0 0 0 0 x x x x x x x x",
  1916. "a7 a6 a5 a4 a3 a2 a1 a0 o o o o o o o o";
  1917. write = " 1 1 0 0 0 0 0 0 x x x x x x x x",
  1918. "a7 a6 a5 a4 a3 a2 a1 a0 i i i i i i i i";
  1919. ;
  1920. memory "flash"
  1921. size = 4096;
  1922. min_write_delay = 9000;
  1923. max_write_delay = 20000;
  1924. readback_p1 = 0xff;
  1925. readback_p2 = 0xff;
  1926. read_lo = " 0 0 1 0 0 0 0 0",
  1927. " x x x x x a10 a9 a8",
  1928. " a7 a6 a5 a4 a3 a2 a1 a0",
  1929. " o o o o o o o o";
  1930. read_hi = " 0 0 1 0 1 0 0 0",
  1931. " x x x x x a10 a9 a8",
  1932. " a7 a6 a5 a4 a3 a2 a1 a0",
  1933. " o o o o o o o o";
  1934. write_lo = " 0 1 0 0 0 0 0 0",
  1935. " x x x x x a10 a9 a8",
  1936. " a7 a6 a5 a4 a3 a2 a1 a0",
  1937. " i i i i i i i i";
  1938. write_hi = " 0 1 0 0 1 0 0 0",
  1939. " x x x x x a10 a9 a8",
  1940. " a7 a6 a5 a4 a3 a2 a1 a0",
  1941. " i i i i i i i i";
  1942. ;
  1943. memory "signature"
  1944. size = 3;
  1945. read = "0 0 1 1 0 0 0 0 x x x x x x x x",
  1946. "x x x x x x a1 a0 o o o o o o o o";
  1947. ;
  1948. memory "fuse"
  1949. size = 1;
  1950. min_write_delay = 9000;
  1951. max_write_delay = 20000;
  1952. read = "0 1 0 1 0 0 0 0 x x x x x x x x",
  1953. "x x x x x x x x x x o o o o o o";
  1954. write = "1 0 1 0 1 1 0 0 1 0 1 i i i i i",
  1955. "x x x x x x x x x x x x x x x x";
  1956. ;
  1957. memory "lock"
  1958. size = 1;
  1959. min_write_delay = 9000;
  1960. max_write_delay = 20000;
  1961. read = "0 1 0 1 1 0 0 0 x x x x x x x x",
  1962. "x x x x x x x x x x x x x o o x";
  1963. write = "1 0 1 0 1 1 0 0 1 1 1 1 1 i i 1",
  1964. "x x x x x x x x x x x x x x x x";
  1965. ;
  1966. ;
  1967. #------------------------------------------------------------
  1968. # AT90s8515
  1969. #------------------------------------------------------------
  1970. part
  1971. id = "8515";
  1972. desc = "AT90S8515";
  1973. stk500_devcode = 0x60;
  1974. avr910_devcode = 0x38;
  1975. signature = 0x1e 0x93 0x01;
  1976. chip_erase_delay = 20000;
  1977. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  1978. "x x x x x x x x x x x x x x x x";
  1979. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
  1980. "x x x x x x x x x x x x x x x x";
  1981. timeout = 200;
  1982. stabdelay = 100;
  1983. cmdexedelay = 25;
  1984. synchloops = 32;
  1985. bytedelay = 0;
  1986. pollindex = 3;
  1987. pollvalue = 0x53;
  1988. predelay = 1;
  1989. postdelay = 1;
  1990. pollmethod = 0;
  1991. pp_controlstack =
  1992. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  1993. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  1994. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  1995. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  1996. hventerstabdelay = 100;
  1997. progmodedelay = 0;
  1998. latchcycles = 0;
  1999. togglevtg = 0;
  2000. poweroffdelay = 0;
  2001. resetdelayms = 0;
  2002. resetdelayus = 0;
  2003. hvleavestabdelay = 15;
  2004. resetdelay = 15;
  2005. chiperasepulsewidth = 15;
  2006. chiperasepolltimeout = 0;
  2007. programfusepulsewidth = 2;
  2008. programfusepolltimeout = 0;
  2009. programlockpulsewidth = 0;
  2010. programlockpolltimeout = 1;
  2011. memory "eeprom"
  2012. size = 512;
  2013. min_write_delay = 4000;
  2014. max_write_delay = 9000;
  2015. readback_p1 = 0x80;
  2016. readback_p2 = 0x7f;
  2017. read = " 1 0 1 0 0 0 0 0 x x x x x x x a8",
  2018. "a7 a6 a5 a4 a3 a2 a1 a0 o o o o o o o o";
  2019. write = " 1 1 0 0 0 0 0 0 x x x x x x x a8",
  2020. "a7 a6 a5 a4 a3 a2 a1 a0 i i i i i i i i";
  2021. mode = 0x04;
  2022. delay = 12;
  2023. blocksize = 128;
  2024. readsize = 256;
  2025. ;
  2026. memory "flash"
  2027. size = 8192;
  2028. min_write_delay = 4000;
  2029. max_write_delay = 9000;
  2030. readback_p1 = 0x7f;
  2031. readback_p2 = 0x7f;
  2032. read_lo = " 0 0 1 0 0 0 0 0",
  2033. " x x x x a11 a10 a9 a8",
  2034. " a7 a6 a5 a4 a3 a2 a1 a0",
  2035. " o o o o o o o o";
  2036. read_hi = " 0 0 1 0 1 0 0 0",
  2037. " x x x x a11 a10 a9 a8",
  2038. " a7 a6 a5 a4 a3 a2 a1 a0",
  2039. " o o o o o o o o";
  2040. write_lo = " 0 1 0 0 0 0 0 0",
  2041. " x x x x a11 a10 a9 a8",
  2042. " a7 a6 a5 a4 a3 a2 a1 a0",
  2043. " i i i i i i i i";
  2044. write_hi = " 0 1 0 0 1 0 0 0",
  2045. " x x x x a11 a10 a9 a8",
  2046. " a7 a6 a5 a4 a3 a2 a1 a0",
  2047. " i i i i i i i i";
  2048. mode = 0x04;
  2049. delay = 12;
  2050. blocksize = 128;
  2051. readsize = 256;
  2052. ;
  2053. memory "signature"
  2054. size = 3;
  2055. read = "0 0 1 1 0 0 0 0 x x x x x x x x",
  2056. "x x x x x x a1 a0 o o o o o o o o";
  2057. ;
  2058. memory "fuse"
  2059. size = 1;
  2060. ;
  2061. memory "lock"
  2062. size = 1;
  2063. write = "1 0 1 0 1 1 0 0 1 1 1 1 1 i i 1",
  2064. "x x x x x x x x x x x x x x x x";
  2065. min_write_delay = 9000;
  2066. max_write_delay = 9000;
  2067. ;
  2068. ;
  2069. #------------------------------------------------------------
  2070. # AT90s8535
  2071. #------------------------------------------------------------
  2072. part
  2073. id = "8535";
  2074. desc = "AT90S8535";
  2075. stk500_devcode = 0x61;
  2076. avr910_devcode = 0x68;
  2077. signature = 0x1e 0x93 0x03;
  2078. chip_erase_delay = 20000;
  2079. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  2080. "x x x x x x x x x x x x x x x x";
  2081. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 0 0 0 0 0",
  2082. "x x x x x x x x x x x x x x x x";
  2083. timeout = 200;
  2084. stabdelay = 100;
  2085. cmdexedelay = 25;
  2086. synchloops = 32;
  2087. bytedelay = 0;
  2088. pollindex = 3;
  2089. pollvalue = 0x53;
  2090. predelay = 1;
  2091. postdelay = 1;
  2092. pollmethod = 0;
  2093. pp_controlstack =
  2094. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  2095. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  2096. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  2097. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  2098. hventerstabdelay = 100;
  2099. progmodedelay = 0;
  2100. latchcycles = 0;
  2101. togglevtg = 0;
  2102. poweroffdelay = 0;
  2103. resetdelayms = 0;
  2104. resetdelayus = 0;
  2105. hvleavestabdelay = 15;
  2106. chiperasepulsewidth = 15;
  2107. chiperasepolltimeout = 0;
  2108. programfusepulsewidth = 2;
  2109. programfusepolltimeout = 0;
  2110. programlockpulsewidth = 0;
  2111. programlockpolltimeout = 1;
  2112. memory "eeprom"
  2113. size = 512;
  2114. min_write_delay = 9000;
  2115. max_write_delay = 20000;
  2116. readback_p1 = 0x00;
  2117. readback_p2 = 0xff;
  2118. read = " 1 0 1 0 0 0 0 0 x x x x x x x a8",
  2119. "a7 a6 a5 a4 a3 a2 a1 a0 o o o o o o o o";
  2120. write = " 1 1 0 0 0 0 0 0 x x x x x x x a8",
  2121. "a7 a6 a5 a4 a3 a2 a1 a0 i i i i i i i i";
  2122. mode = 0x04;
  2123. delay = 12;
  2124. blocksize = 128;
  2125. readsize = 256;
  2126. ;
  2127. memory "flash"
  2128. size = 8192;
  2129. min_write_delay = 9000;
  2130. max_write_delay = 20000;
  2131. readback_p1 = 0xff;
  2132. readback_p2 = 0xff;
  2133. read_lo = " 0 0 1 0 0 0 0 0",
  2134. " x x x x a11 a10 a9 a8",
  2135. " a7 a6 a5 a4 a3 a2 a1 a0",
  2136. " o o o o o o o o";
  2137. read_hi = " 0 0 1 0 1 0 0 0",
  2138. " x x x x a11 a10 a9 a8",
  2139. " a7 a6 a5 a4 a3 a2 a1 a0",
  2140. " o o o o o o o o";
  2141. write_lo = " 0 1 0 0 0 0 0 0",
  2142. " x x x x a11 a10 a9 a8",
  2143. " a7 a6 a5 a4 a3 a2 a1 a0",
  2144. " i i i i i i i i";
  2145. write_hi = " 0 1 0 0 1 0 0 0",
  2146. " x x x x a11 a10 a9 a8",
  2147. " a7 a6 a5 a4 a3 a2 a1 a0",
  2148. " i i i i i i i i";
  2149. mode = 0x04;
  2150. delay = 12;
  2151. blocksize = 128;
  2152. readsize = 256;
  2153. ;
  2154. memory "signature"
  2155. size = 3;
  2156. read = "0 0 1 1 0 0 0 0 x x x x x x x x",
  2157. "x x x x x x a1 a0 o o o o o o o o";
  2158. ;
  2159. memory "fuse"
  2160. size = 1;
  2161. read = "0 1 0 1 1 0 0 0 x x x x x x x x",
  2162. "x x x x x x x x x x x x x x x o";
  2163. write = "1 0 1 0 1 1 0 0 1 0 1 1 1 1 1 i",
  2164. "x x x x x x x x x x x x x x x x";
  2165. min_write_delay = 9000;
  2166. max_write_delay = 9000;
  2167. ;
  2168. memory "lock"
  2169. size = 1;
  2170. read = "0 1 0 1 1 0 0 0 x x x x x x x x",
  2171. "x x x x x x x x o o x x x x x x";
  2172. write = "1 0 1 0 1 1 0 0 1 1 1 1 1 i i 1",
  2173. "x x x x x x x x x x x x x x x x";
  2174. min_write_delay = 9000;
  2175. max_write_delay = 9000;
  2176. ;
  2177. ;
  2178. #------------------------------------------------------------
  2179. # ATmega103
  2180. #------------------------------------------------------------
  2181. part
  2182. id = "m103";
  2183. desc = "ATMEGA103";
  2184. stk500_devcode = 0xB1;
  2185. avr910_devcode = 0x41;
  2186. signature = 0x1e 0x97 0x01;
  2187. chip_erase_delay = 112000;
  2188. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  2189. "x x x x x x x x x x x x x x x x";
  2190. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 0 0 0 0 0",
  2191. "x x x x x x x x x x x x x x x x";
  2192. timeout = 200;
  2193. stabdelay = 100;
  2194. cmdexedelay = 25;
  2195. synchloops = 32;
  2196. bytedelay = 0;
  2197. pollindex = 3;
  2198. pollvalue = 0x53;
  2199. predelay = 1;
  2200. postdelay = 1;
  2201. pollmethod = 0;
  2202. pp_controlstack =
  2203. 0x0E, 0x1E, 0x8E, 0x9E, 0x2E, 0x3E, 0xAE, 0xBE,
  2204. 0x4E, 0x5E, 0xCE, 0xDE, 0x6E, 0x7E, 0xEE, 0xDE,
  2205. 0x66, 0x76, 0xE6, 0xF6, 0x6A, 0x7A, 0xEA, 0x7A,
  2206. 0x7F, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  2207. hventerstabdelay = 100;
  2208. progmodedelay = 0;
  2209. latchcycles = 0;
  2210. togglevtg = 0;
  2211. poweroffdelay = 0;
  2212. resetdelayms = 0;
  2213. resetdelayus = 0;
  2214. hvleavestabdelay = 15;
  2215. chiperasepulsewidth = 15;
  2216. chiperasepolltimeout = 0;
  2217. programfusepulsewidth = 2;
  2218. programfusepolltimeout = 0;
  2219. programlockpulsewidth = 0;
  2220. programlockpolltimeout = 10;
  2221. memory "eeprom"
  2222. size = 4096;
  2223. min_write_delay = 4000;
  2224. max_write_delay = 9000;
  2225. readback_p1 = 0x80;
  2226. readback_p2 = 0x7f;
  2227. read = " 1 0 1 0 0 0 0 0",
  2228. " x x x x a11 a10 a9 a8",
  2229. " a7 a6 a5 a4 a3 a2 a1 a0",
  2230. " o o o o o o o o";
  2231. write = " 1 1 0 0 0 0 0 0",
  2232. " x x x x a11 a10 a9 a8",
  2233. " a7 a6 a5 a4 a3 a2 a1 a0",
  2234. " i i i i i i i i";
  2235. mode = 0x04;
  2236. delay = 12;
  2237. blocksize = 64;
  2238. readsize = 256;
  2239. ;
  2240. memory "flash"
  2241. paged = yes;
  2242. size = 131072;
  2243. page_size = 256;
  2244. num_pages = 512;
  2245. min_write_delay = 22000;
  2246. max_write_delay = 56000;
  2247. readback_p1 = 0xff;
  2248. readback_p2 = 0xff;
  2249. read_lo = " 0 0 1 0 0 0 0 0",
  2250. "a15 a14 a13 a12 a11 a10 a9 a8",
  2251. " a7 a6 a5 a4 a3 a2 a1 a0",
  2252. " o o o o o o o o";
  2253. read_hi = " 0 0 1 0 1 0 0 0",
  2254. "a15 a14 a13 a12 a11 a10 a9 a8",
  2255. " a7 a6 a5 a4 a3 a2 a1 a0",
  2256. " o o o o o o o o";
  2257. loadpage_lo = " 0 1 0 0 0 0 0 0",
  2258. " x x x x x x x x",
  2259. " x a6 a5 a4 a3 a2 a1 a0",
  2260. " i i i i i i i i";
  2261. loadpage_hi = " 0 1 0 0 1 0 0 0",
  2262. " x x x x x x x x",
  2263. " x a6 a5 a4 a3 a2 a1 a0",
  2264. " i i i i i i i i";
  2265. writepage = " 0 1 0 0 1 1 0 0",
  2266. "a15 a14 a13 a12 a11 a10 a9 a8",
  2267. " a7 x x x x x x x",
  2268. " x x x x x x x x";
  2269. mode = 0x11;
  2270. delay = 70;
  2271. blocksize = 256;
  2272. readsize = 256;
  2273. ;
  2274. memory "fuse"
  2275. size = 1;
  2276. read = "0 1 0 1 0 0 0 0 x x x x x x x x",
  2277. "x x x x x x x x x x o x o 1 o o";
  2278. write = "1 0 1 0 1 1 0 0 1 0 1 1 i 1 i i",
  2279. "x x x x x x x x x x x x x x x x";
  2280. min_write_delay = 9000;
  2281. max_write_delay = 9000;
  2282. ;
  2283. memory "lock"
  2284. size = 1;
  2285. read = "0 1 0 1 1 0 0 0 x x x x x x x x",
  2286. "x x x x x x x x x x x x x o o x";
  2287. write = "1 0 1 0 1 1 0 0 1 1 1 1 1 i i 1",
  2288. "x x x x x x x x x x x x x x x x";
  2289. min_write_delay = 9000;
  2290. max_write_delay = 9000;
  2291. ;
  2292. memory "signature"
  2293. size = 3;
  2294. read = "0 0 1 1 0 0 0 0 x x x x x x x x",
  2295. "x x x x x x a1 a0 o o o o o o o o";
  2296. ;
  2297. ;
  2298. #------------------------------------------------------------
  2299. # ATmega64
  2300. #------------------------------------------------------------
  2301. part
  2302. id = "m64";
  2303. desc = "ATMEGA64";
  2304. has_jtag = yes;
  2305. stk500_devcode = 0xA0;
  2306. avr910_devcode = 0x45;
  2307. signature = 0x1e 0x96 0x02;
  2308. chip_erase_delay = 9000;
  2309. pagel = 0xD7;
  2310. bs2 = 0xA0;
  2311. reset = dedicated;
  2312. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  2313. "x x x x x x x x x x x x x x x x";
  2314. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 0 0 0 0 0",
  2315. "x x x x x x x x x x x x x x x x";
  2316. timeout = 200;
  2317. stabdelay = 100;
  2318. cmdexedelay = 25;
  2319. synchloops = 32;
  2320. bytedelay = 0;
  2321. pollindex = 3;
  2322. pollvalue = 0x53;
  2323. predelay = 1;
  2324. postdelay = 1;
  2325. pollmethod = 0;
  2326. pp_controlstack =
  2327. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  2328. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  2329. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  2330. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  2331. hventerstabdelay = 100;
  2332. progmodedelay = 0;
  2333. latchcycles = 6;
  2334. togglevtg = 0;
  2335. poweroffdelay = 0;
  2336. resetdelayms = 0;
  2337. resetdelayus = 0;
  2338. hvleavestabdelay = 15;
  2339. chiperasepulsewidth = 0;
  2340. chiperasepolltimeout = 10;
  2341. programfusepulsewidth = 0;
  2342. programfusepolltimeout = 5;
  2343. programlockpulsewidth = 0;
  2344. programlockpolltimeout = 5;
  2345. idr = 0x22;
  2346. spmcr = 0x68;
  2347. allowfullpagebitstream = yes;
  2348. memory "eeprom"
  2349. paged = no; /* leave this "no" */
  2350. page_size = 8; /* for parallel programming */
  2351. size = 2048;
  2352. min_write_delay = 9000;
  2353. max_write_delay = 9000;
  2354. readback_p1 = 0xff;
  2355. readback_p2 = 0xff;
  2356. read = " 1 0 1 0 0 0 0 0",
  2357. " x x x x a11 a10 a9 a8",
  2358. " a7 a6 a5 a4 a3 a2 a1 a0",
  2359. " o o o o o o o o";
  2360. write = " 1 1 0 0 0 0 0 0",
  2361. " x x x x a11 a10 a9 a8",
  2362. " a7 a6 a5 a4 a3 a2 a1 a0",
  2363. " i i i i i i i i";
  2364. mode = 0x04;
  2365. delay = 20;
  2366. blocksize = 64;
  2367. readsize = 256;
  2368. ;
  2369. memory "flash"
  2370. paged = yes;
  2371. size = 65536;
  2372. page_size = 256;
  2373. num_pages = 256;
  2374. min_write_delay = 4500;
  2375. max_write_delay = 4500;
  2376. readback_p1 = 0xff;
  2377. readback_p2 = 0xff;
  2378. read_lo = " 0 0 1 0 0 0 0 0",
  2379. " x a14 a13 a12 a11 a10 a9 a8",
  2380. " a7 a6 a5 a4 a3 a2 a1 a0",
  2381. " o o o o o o o o";
  2382. read_hi = " 0 0 1 0 1 0 0 0",
  2383. " x a14 a13 a12 a11 a10 a9 a8",
  2384. " a7 a6 a5 a4 a3 a2 a1 a0",
  2385. " o o o o o o o o";
  2386. loadpage_lo = " 0 1 0 0 0 0 0 0",
  2387. " x x x x x x x x",
  2388. " x a6 a5 a4 a3 a2 a1 a0",
  2389. " i i i i i i i i";
  2390. loadpage_hi = " 0 1 0 0 1 0 0 0",
  2391. " x x x x x x x x",
  2392. " x a6 a5 a4 a3 a2 a1 a0",
  2393. " i i i i i i i i";
  2394. writepage = " 0 1 0 0 1 1 0 0",
  2395. " x a14 a13 a12 a11 a10 a9 a8",
  2396. " a7 x x x x x x x",
  2397. " x x x x x x x x";
  2398. mode = 0x21;
  2399. delay = 6;
  2400. blocksize = 128;
  2401. readsize = 256;
  2402. ;
  2403. memory "lfuse"
  2404. size = 1;
  2405. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  2406. "x x x x x x x x i i i i i i i i";
  2407. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  2408. "x x x x x x x x o o o o o o o o";
  2409. min_write_delay = 9000;
  2410. max_write_delay = 9000;
  2411. ;
  2412. memory "hfuse"
  2413. size = 1;
  2414. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  2415. "x x x x x x x x i i i i i i i i";
  2416. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  2417. "x x x x x x x x o o o o o o o o";
  2418. min_write_delay = 9000;
  2419. max_write_delay = 9000;
  2420. ;
  2421. memory "efuse"
  2422. size = 1;
  2423. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  2424. "x x x x x x x x x x x x x x i i";
  2425. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  2426. "x x x x x x x x o o o o o o o o";
  2427. min_write_delay = 9000;
  2428. max_write_delay = 9000;
  2429. ;
  2430. memory "lock"
  2431. size = 1;
  2432. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  2433. "x x x x x x x x x x o o o o o o";
  2434. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  2435. "x x x x x x x x 1 1 i i i i i i";
  2436. min_write_delay = 9000;
  2437. max_write_delay = 9000;
  2438. ;
  2439. memory "calibration"
  2440. size = 4;
  2441. read = "0 0 1 1 1 0 0 0 x x x x x x x x",
  2442. "0 0 0 0 0 0 a1 a0 o o o o o o o o";
  2443. ;
  2444. memory "signature"
  2445. size = 3;
  2446. read = "0 0 1 1 0 0 0 0 x x x x x x x x",
  2447. "x x x x x x a1 a0 o o o o o o o o";
  2448. ;
  2449. ;
  2450. #------------------------------------------------------------
  2451. # ATmega128
  2452. #------------------------------------------------------------
  2453. part
  2454. id = "m128";
  2455. desc = "ATMEGA128";
  2456. has_jtag = yes;
  2457. stk500_devcode = 0xB2;
  2458. avr910_devcode = 0x43;
  2459. signature = 0x1e 0x97 0x02;
  2460. chip_erase_delay = 9000;
  2461. pagel = 0xD7;
  2462. bs2 = 0xA0;
  2463. reset = dedicated;
  2464. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  2465. "x x x x x x x x x x x x x x x x";
  2466. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 0 0 0 0 0",
  2467. "x x x x x x x x x x x x x x x x";
  2468. timeout = 200;
  2469. stabdelay = 100;
  2470. cmdexedelay = 25;
  2471. synchloops = 32;
  2472. bytedelay = 0;
  2473. pollindex = 3;
  2474. pollvalue = 0x53;
  2475. predelay = 1;
  2476. postdelay = 1;
  2477. pollmethod = 0;
  2478. pp_controlstack =
  2479. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  2480. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  2481. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  2482. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  2483. hventerstabdelay = 100;
  2484. progmodedelay = 0;
  2485. latchcycles = 6;
  2486. togglevtg = 0;
  2487. poweroffdelay = 0;
  2488. resetdelayms = 0;
  2489. resetdelayus = 0;
  2490. hvleavestabdelay = 15;
  2491. chiperasepulsewidth = 0;
  2492. chiperasepolltimeout = 10;
  2493. programfusepulsewidth = 0;
  2494. programfusepolltimeout = 5;
  2495. programlockpulsewidth = 0;
  2496. programlockpolltimeout = 5;
  2497. idr = 0x22;
  2498. spmcr = 0x68;
  2499. rampz = 0x3b;
  2500. allowfullpagebitstream = yes;
  2501. memory "eeprom"
  2502. paged = no; /* leave this "no" */
  2503. page_size = 8; /* for parallel programming */
  2504. size = 4096;
  2505. min_write_delay = 9000;
  2506. max_write_delay = 9000;
  2507. readback_p1 = 0xff;
  2508. readback_p2 = 0xff;
  2509. read = " 1 0 1 0 0 0 0 0",
  2510. " x x x x a11 a10 a9 a8",
  2511. " a7 a6 a5 a4 a3 a2 a1 a0",
  2512. " o o o o o o o o";
  2513. write = " 1 1 0 0 0 0 0 0",
  2514. " x x x x a11 a10 a9 a8",
  2515. " a7 a6 a5 a4 a3 a2 a1 a0",
  2516. " i i i i i i i i";
  2517. mode = 0x04;
  2518. delay = 12;
  2519. blocksize = 64;
  2520. readsize = 256;
  2521. ;
  2522. memory "flash"
  2523. paged = yes;
  2524. size = 131072;
  2525. page_size = 256;
  2526. num_pages = 512;
  2527. min_write_delay = 4500;
  2528. max_write_delay = 4500;
  2529. readback_p1 = 0xff;
  2530. readback_p2 = 0xff;
  2531. read_lo = " 0 0 1 0 0 0 0 0",
  2532. "a15 a14 a13 a12 a11 a10 a9 a8",
  2533. " a7 a6 a5 a4 a3 a2 a1 a0",
  2534. " o o o o o o o o";
  2535. read_hi = " 0 0 1 0 1 0 0 0",
  2536. "a15 a14 a13 a12 a11 a10 a9 a8",
  2537. " a7 a6 a5 a4 a3 a2 a1 a0",
  2538. " o o o o o o o o";
  2539. loadpage_lo = " 0 1 0 0 0 0 0 0",
  2540. " x x x x x x x x",
  2541. " x a6 a5 a4 a3 a2 a1 a0",
  2542. " i i i i i i i i";
  2543. loadpage_hi = " 0 1 0 0 1 0 0 0",
  2544. " x x x x x x x x",
  2545. " x a6 a5 a4 a3 a2 a1 a0",
  2546. " i i i i i i i i";
  2547. writepage = " 0 1 0 0 1 1 0 0",
  2548. "a15 a14 a13 a12 a11 a10 a9 a8",
  2549. " a7 x x x x x x x",
  2550. " x x x x x x x x";
  2551. mode = 0x21;
  2552. delay = 6;
  2553. blocksize = 128;
  2554. readsize = 256;
  2555. ;
  2556. memory "lfuse"
  2557. size = 1;
  2558. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  2559. "x x x x x x x x i i i i i i i i";
  2560. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  2561. "x x x x x x x x o o o o o o o o";
  2562. min_write_delay = 9000;
  2563. max_write_delay = 9000;
  2564. ;
  2565. memory "hfuse"
  2566. size = 1;
  2567. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  2568. "x x x x x x x x i i i i i i i i";
  2569. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  2570. "x x x x x x x x o o o o o o o o";
  2571. min_write_delay = 9000;
  2572. max_write_delay = 9000;
  2573. ;
  2574. memory "efuse"
  2575. size = 1;
  2576. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  2577. "x x x x x x x x x x x x x x i i";
  2578. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  2579. "x x x x x x x x o o o o o o o o";
  2580. min_write_delay = 9000;
  2581. max_write_delay = 9000;
  2582. ;
  2583. memory "lock"
  2584. size = 1;
  2585. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  2586. "x x x x x x x x x x o o o o o o";
  2587. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  2588. "x x x x x x x x 1 1 i i i i i i";
  2589. min_write_delay = 9000;
  2590. max_write_delay = 9000;
  2591. ;
  2592. memory "calibration"
  2593. size = 4;
  2594. read = "0 0 1 1 1 0 0 0 x x x x x x x x",
  2595. "0 0 0 0 0 0 a1 a0 o o o o o o o o";
  2596. ;
  2597. memory "signature"
  2598. size = 3;
  2599. read = "0 0 1 1 0 0 0 0 x x x x x x x x",
  2600. "x x x x x x a1 a0 o o o o o o o o";
  2601. ;
  2602. ;
  2603. #------------------------------------------------------------
  2604. # AT90CAN128
  2605. #------------------------------------------------------------
  2606. part
  2607. id = "c128";
  2608. desc = "AT90CAN128";
  2609. has_jtag = yes;
  2610. stk500_devcode = 0xB3;
  2611. # avr910_devcode = 0x43;
  2612. signature = 0x1e 0x97 0x81;
  2613. chip_erase_delay = 9000;
  2614. pagel = 0xD7;
  2615. bs2 = 0xA0;
  2616. reset = dedicated;
  2617. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  2618. "x x x x x x x x x x x x x x x x";
  2619. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
  2620. "x x x x x x x x x x x x x x x x";
  2621. timeout = 200;
  2622. stabdelay = 100;
  2623. cmdexedelay = 25;
  2624. synchloops = 32;
  2625. bytedelay = 0;
  2626. pollindex = 3;
  2627. pollvalue = 0x53;
  2628. predelay = 1;
  2629. postdelay = 1;
  2630. pollmethod = 1;
  2631. pp_controlstack =
  2632. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  2633. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  2634. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  2635. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x01;
  2636. hventerstabdelay = 100;
  2637. progmodedelay = 0;
  2638. latchcycles = 6;
  2639. togglevtg = 0;
  2640. poweroffdelay = 0;
  2641. resetdelayms = 0;
  2642. resetdelayus = 0;
  2643. hvleavestabdelay = 15;
  2644. chiperasepulsewidth = 0;
  2645. chiperasepolltimeout = 10;
  2646. programfusepulsewidth = 0;
  2647. programfusepolltimeout = 5;
  2648. programlockpulsewidth = 0;
  2649. programlockpolltimeout = 5;
  2650. idr = 0x31;
  2651. spmcr = 0x57;
  2652. rampz = 0x3b;
  2653. eecr = 0x3f;
  2654. allowfullpagebitstream = no;
  2655. memory "eeprom"
  2656. paged = no; /* leave this "no" */
  2657. page_size = 8; /* for parallel programming */
  2658. size = 4096;
  2659. min_write_delay = 9000;
  2660. max_write_delay = 9000;
  2661. readback_p1 = 0xff;
  2662. readback_p2 = 0xff;
  2663. read = " 1 0 1 0 0 0 0 0",
  2664. " 0 0 0 x a11 a10 a9 a8",
  2665. " a7 a6 a5 a4 a3 a2 a1 a0",
  2666. " o o o o o o o o";
  2667. write = " 1 1 0 0 0 0 0 0",
  2668. " 0 0 0 x a11 a10 a9 a8",
  2669. " a7 a6 a5 a4 a3 a2 a1 a0",
  2670. " i i i i i i i i";
  2671. loadpage_lo = " 1 1 0 0 0 0 0 1",
  2672. " 0 0 0 0 0 0 0 0",
  2673. " 0 0 0 0 0 a2 a1 a0",
  2674. " i i i i i i i i";
  2675. writepage = " 1 1 0 0 0 0 1 0",
  2676. " 0 0 x x a11 a10 a9 a8",
  2677. " a7 a6 a5 a4 a3 0 0 0",
  2678. " x x x x x x x x";
  2679. mode = 0x41;
  2680. delay = 20;
  2681. blocksize = 8;
  2682. readsize = 256;
  2683. ;
  2684. memory "flash"
  2685. paged = yes;
  2686. size = 131072;
  2687. page_size = 256;
  2688. num_pages = 512;
  2689. min_write_delay = 4500;
  2690. max_write_delay = 4500;
  2691. readback_p1 = 0xff;
  2692. readback_p2 = 0xff;
  2693. read_lo = " 0 0 1 0 0 0 0 0",
  2694. "a15 a14 a13 a12 a11 a10 a9 a8",
  2695. " a7 a6 a5 a4 a3 a2 a1 a0",
  2696. " o o o o o o o o";
  2697. read_hi = " 0 0 1 0 1 0 0 0",
  2698. "a15 a14 a13 a12 a11 a10 a9 a8",
  2699. " a7 a6 a5 a4 a3 a2 a1 a0",
  2700. " o o o o o o o o";
  2701. loadpage_lo = " 0 1 0 0 0 0 0 0",
  2702. " 0 0 0 x x x x x",
  2703. " x a6 a5 a4 a3 a2 a1 a0",
  2704. " i i i i i i i i";
  2705. loadpage_hi = " 0 1 0 0 1 0 0 0",
  2706. " 0 0 0 x x x x x",
  2707. " x a6 a5 a4 a3 a2 a1 a0",
  2708. " i i i i i i i i";
  2709. writepage = " 0 1 0 0 1 1 0 0",
  2710. "a15 a14 a13 a12 a11 a10 a9 a8",
  2711. " a7 x x x x x x x",
  2712. " x x x x x x x x";
  2713. mode = 0x41;
  2714. delay = 6;
  2715. blocksize = 256;
  2716. readsize = 256;
  2717. ;
  2718. memory "lfuse"
  2719. size = 1;
  2720. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  2721. "x x x x x x x x i i i i i i i i";
  2722. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  2723. "x x x x x x x x o o o o o o o o";
  2724. min_write_delay = 9000;
  2725. max_write_delay = 9000;
  2726. ;
  2727. memory "hfuse"
  2728. size = 1;
  2729. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  2730. "x x x x x x x x i i i i i i i i";
  2731. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  2732. "x x x x x x x x o o o o o o o o";
  2733. min_write_delay = 9000;
  2734. max_write_delay = 9000;
  2735. ;
  2736. memory "efuse"
  2737. size = 1;
  2738. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  2739. "x x x x x x x x x x x x i i i i";
  2740. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  2741. "x x x x x x x x o o o o o o o o";
  2742. min_write_delay = 9000;
  2743. max_write_delay = 9000;
  2744. ;
  2745. memory "lock"
  2746. size = 1;
  2747. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  2748. "x x x x x x x x x x o o o o o o";
  2749. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  2750. "x x x x x x x x 1 1 i i i i i i";
  2751. min_write_delay = 9000;
  2752. max_write_delay = 9000;
  2753. ;
  2754. memory "calibration"
  2755. size = 1;
  2756. read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
  2757. "0 0 0 0 0 0 0 0 o o o o o o o o";
  2758. ;
  2759. memory "signature"
  2760. size = 3;
  2761. read = "0 0 1 1 0 0 0 0 x x x x x x x x",
  2762. "x x x x x x a1 a0 o o o o o o o o";
  2763. ;
  2764. ;
  2765. #------------------------------------------------------------
  2766. # ATmega16
  2767. #------------------------------------------------------------
  2768. part
  2769. id = "m16";
  2770. desc = "ATMEGA16";
  2771. has_jtag = yes;
  2772. stk500_devcode = 0x82;
  2773. avr910_devcode = 0x74;
  2774. signature = 0x1e 0x94 0x03;
  2775. pagel = 0xd7;
  2776. bs2 = 0xa0;
  2777. chip_erase_delay = 9000;
  2778. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  2779. "x x x x x x x x x x x x x x x x";
  2780. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
  2781. "x x x x x x x x x x x x x x x x";
  2782. timeout = 200;
  2783. stabdelay = 100;
  2784. cmdexedelay = 25;
  2785. synchloops = 32;
  2786. bytedelay = 0;
  2787. pollindex = 3;
  2788. pollvalue = 0x53;
  2789. predelay = 1;
  2790. postdelay = 1;
  2791. pollmethod = 0;
  2792. pp_controlstack =
  2793. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  2794. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  2795. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  2796. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  2797. hventerstabdelay = 100;
  2798. progmodedelay = 100;
  2799. latchcycles = 6;
  2800. togglevtg = 0;
  2801. poweroffdelay = 0;
  2802. resetdelayms = 0;
  2803. resetdelayus = 0;
  2804. hvleavestabdelay = 15;
  2805. resetdelay = 15;
  2806. chiperasepulsewidth = 0;
  2807. chiperasepolltimeout = 10;
  2808. programfusepulsewidth = 0;
  2809. programfusepolltimeout = 5;
  2810. programlockpulsewidth = 0;
  2811. programlockpolltimeout = 5;
  2812. idr = 0x31;
  2813. spmcr = 0x57;
  2814. allowfullpagebitstream = yes;
  2815. memory "eeprom"
  2816. paged = no; /* leave this "no" */
  2817. page_size = 4; /* for parallel programming */
  2818. size = 512;
  2819. min_write_delay = 9000;
  2820. max_write_delay = 9000;
  2821. readback_p1 = 0xff;
  2822. readback_p2 = 0xff;
  2823. read = " 1 0 1 0 0 0 0 0",
  2824. " 0 0 x x x x a9 a8",
  2825. " a7 a6 a5 a4 a3 a2 a1 a0",
  2826. " o o o o o o o o";
  2827. write = " 1 1 0 0 0 0 0 0",
  2828. " 0 0 x x x x a9 a8",
  2829. " a7 a6 a5 a4 a3 a2 a1 a0",
  2830. " i i i i i i i i";
  2831. loadpage_lo = " 1 1 0 0 0 0 0 1",
  2832. " 0 0 0 0 0 0 0 0",
  2833. " 0 0 0 0 0 0 a1 a0",
  2834. " i i i i i i i i";
  2835. writepage = " 1 1 0 0 0 0 1 0",
  2836. " 0 0 x x x x a9 a8",
  2837. " a7 a6 a5 a4 a3 a2 0 0",
  2838. " x x x x x x x x";
  2839. mode = 0x04;
  2840. delay = 10;
  2841. blocksize = 128;
  2842. readsize = 256;
  2843. ;
  2844. memory "flash"
  2845. paged = yes;
  2846. size = 16384;
  2847. page_size = 128;
  2848. num_pages = 128;
  2849. min_write_delay = 4500;
  2850. max_write_delay = 4500;
  2851. readback_p1 = 0xff;
  2852. readback_p2 = 0xff;
  2853. read_lo = " 0 0 1 0 0 0 0 0",
  2854. " 0 0 a13 a12 a11 a10 a9 a8",
  2855. " a7 a6 a5 a4 a3 a2 a1 a0",
  2856. " o o o o o o o o";
  2857. read_hi = " 0 0 1 0 1 0 0 0",
  2858. " 0 0 a13 a12 a11 a10 a9 a8",
  2859. " a7 a6 a5 a4 a3 a2 a1 a0",
  2860. " o o o o o o o o";
  2861. loadpage_lo = " 0 1 0 0 0 0 0 0",
  2862. " 0 0 x x x x x x",
  2863. " x x a5 a4 a3 a2 a1 a0",
  2864. " i i i i i i i i";
  2865. loadpage_hi = " 0 1 0 0 1 0 0 0",
  2866. " 0 0 x x x x x x",
  2867. " x x a5 a4 a3 a2 a1 a0",
  2868. " i i i i i i i i";
  2869. writepage = " 0 1 0 0 1 1 0 0",
  2870. " 0 0 a13 a12 a11 a10 a9 a8",
  2871. " a7 a6 x x x x x x",
  2872. " x x x x x x x x";
  2873. mode = 0x21;
  2874. delay = 6;
  2875. blocksize = 128;
  2876. readsize = 256;
  2877. ;
  2878. memory "lock"
  2879. size = 1;
  2880. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  2881. "x x x x x x x x x x o o o o o o";
  2882. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  2883. "x x x x x x x x 1 1 i i i i i i";
  2884. min_write_delay = 9000;
  2885. max_write_delay = 9000;
  2886. ;
  2887. memory "lfuse"
  2888. size = 1;
  2889. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  2890. "x x x x x x x x o o o o o o o o";
  2891. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  2892. "x x x x x x x x i i i i i i i i";
  2893. min_write_delay = 9000;
  2894. max_write_delay = 9000;
  2895. ;
  2896. memory "hfuse"
  2897. size = 1;
  2898. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  2899. "x x x x x x x x o o o o o o o o";
  2900. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  2901. "x x x x x x x x i i i i i i i i";
  2902. min_write_delay = 9000;
  2903. max_write_delay = 9000;
  2904. ;
  2905. memory "signature"
  2906. size = 3;
  2907. read = "0 0 1 1 0 0 0 0 x x x x x x x x",
  2908. "x x x x x x a1 a0 o o o o o o o o";
  2909. ;
  2910. memory "calibration"
  2911. size = 4;
  2912. read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
  2913. "0 0 0 0 0 0 a1 a0 o o o o o o o o";
  2914. ;
  2915. ;
  2916. #------------------------------------------------------------
  2917. # ATmega164P
  2918. #------------------------------------------------------------
  2919. # close to ATmega16
  2920. part
  2921. id = "m164p";
  2922. desc = "ATMEGA164P";
  2923. has_jtag = yes;
  2924. # stk500_devcode = 0x82; # no STK500v1 support
  2925. # avr910_devcode = 0x?; # try the ATmega16 one:^
  2926. avr910_devcode = 0x74;
  2927. signature = 0x1e 0x94 0x0a;
  2928. pagel = 0xd7;
  2929. bs2 = 0xa0;
  2930. chip_erase_delay = 9000;
  2931. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  2932. "x x x x x x x x x x x x x x x x";
  2933. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
  2934. "x x x x x x x x x x x x x x x x";
  2935. timeout = 200;
  2936. stabdelay = 100;
  2937. cmdexedelay = 25;
  2938. synchloops = 32;
  2939. bytedelay = 0;
  2940. pollindex = 3;
  2941. pollvalue = 0x53;
  2942. predelay = 1;
  2943. postdelay = 1;
  2944. pollmethod = 0;
  2945. pp_controlstack =
  2946. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  2947. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  2948. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  2949. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  2950. hventerstabdelay = 100;
  2951. progmodedelay = 0;
  2952. latchcycles = 5;
  2953. togglevtg = 1;
  2954. poweroffdelay = 15;
  2955. resetdelayms = 1;
  2956. resetdelayus = 0;
  2957. hvleavestabdelay = 15;
  2958. chiperasepulsewidth = 0;
  2959. chiperasepolltimeout = 10;
  2960. programfusepulsewidth = 0;
  2961. programfusepolltimeout = 5;
  2962. programlockpulsewidth = 0;
  2963. programlockpolltimeout = 5;
  2964. idr = 0x31;
  2965. spmcr = 0x57;
  2966. allowfullpagebitstream = no;
  2967. memory "eeprom"
  2968. paged = no; /* leave this "no" */
  2969. page_size = 4; /* for parallel programming */
  2970. size = 512;
  2971. min_write_delay = 9000;
  2972. max_write_delay = 9000;
  2973. readback_p1 = 0xff;
  2974. readback_p2 = 0xff;
  2975. read = " 1 0 1 0 0 0 0 0",
  2976. " 0 0 x x x x a9 a8",
  2977. " a7 a6 a5 a4 a3 a2 a1 a0",
  2978. " o o o o o o o o";
  2979. write = " 1 1 0 0 0 0 0 0",
  2980. " 0 0 x x x x a9 a8",
  2981. " a7 a6 a5 a4 a3 a2 a1 a0",
  2982. " i i i i i i i i";
  2983. loadpage_lo = " 1 1 0 0 0 0 0 1",
  2984. " 0 0 0 0 0 0 0 0",
  2985. " 0 0 0 0 0 0 a1 a0",
  2986. " i i i i i i i i";
  2987. writepage = " 1 1 0 0 0 0 1 0",
  2988. " 0 0 x x x x a9 a8",
  2989. " a7 a6 a5 a4 a3 a2 0 0",
  2990. " x x x x x x x x";
  2991. mode = 0x41;
  2992. delay = 10;
  2993. blocksize = 128;
  2994. readsize = 256;
  2995. ;
  2996. memory "flash"
  2997. paged = yes;
  2998. size = 16384;
  2999. page_size = 128;
  3000. num_pages = 128;
  3001. min_write_delay = 4500;
  3002. max_write_delay = 4500;
  3003. readback_p1 = 0xff;
  3004. readback_p2 = 0xff;
  3005. read_lo = " 0 0 1 0 0 0 0 0",
  3006. " 0 0 a13 a12 a11 a10 a9 a8",
  3007. " a7 a6 a5 a4 a3 a2 a1 a0",
  3008. " o o o o o o o o";
  3009. read_hi = " 0 0 1 0 1 0 0 0",
  3010. " 0 0 a13 a12 a11 a10 a9 a8",
  3011. " a7 a6 a5 a4 a3 a2 a1 a0",
  3012. " o o o o o o o o";
  3013. loadpage_lo = " 0 1 0 0 0 0 0 0",
  3014. " 0 0 x x x x x x",
  3015. " x x a5 a4 a3 a2 a1 a0",
  3016. " i i i i i i i i";
  3017. loadpage_hi = " 0 1 0 0 1 0 0 0",
  3018. " 0 0 x x x x x x",
  3019. " x x a5 a4 a3 a2 a1 a0",
  3020. " i i i i i i i i";
  3021. writepage = " 0 1 0 0 1 1 0 0",
  3022. " 0 0 a13 a12 a11 a10 a9 a8",
  3023. " a7 a6 x x x x x x",
  3024. " x x x x x x x x";
  3025. mode = 0x21;
  3026. delay = 6;
  3027. blocksize = 128;
  3028. readsize = 256;
  3029. ;
  3030. memory "lock"
  3031. size = 1;
  3032. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  3033. "x x x x x x x x x x o o o o o o";
  3034. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  3035. "x x x x x x x x 1 1 i i i i i i";
  3036. min_write_delay = 9000;
  3037. max_write_delay = 9000;
  3038. ;
  3039. memory "lfuse"
  3040. size = 1;
  3041. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  3042. "x x x x x x x x o o o o o o o o";
  3043. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  3044. "x x x x x x x x i i i i i i i i";
  3045. min_write_delay = 9000;
  3046. max_write_delay = 9000;
  3047. ;
  3048. memory "hfuse"
  3049. size = 1;
  3050. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  3051. "x x x x x x x x o o o o o o o o";
  3052. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  3053. "x x x x x x x x i i i i i i i i";
  3054. min_write_delay = 9000;
  3055. max_write_delay = 9000;
  3056. ;
  3057. memory "efuse"
  3058. size = 1;
  3059. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  3060. "x x x x x x x x o o o o o o o o";
  3061. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  3062. "x x x x x x x x 1 1 1 1 1 i i i";
  3063. min_write_delay = 9000;
  3064. max_write_delay = 9000;
  3065. ;
  3066. memory "signature"
  3067. size = 3;
  3068. read = "0 0 1 1 0 0 0 0 x x x x x x x x",
  3069. "x x x x x x a1 a0 o o o o o o o o";
  3070. ;
  3071. memory "calibration"
  3072. size = 1;
  3073. read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
  3074. "0 0 0 0 0 0 0 0 o o o o o o o o";
  3075. ;
  3076. ;
  3077. #------------------------------------------------------------
  3078. # ATmega324P
  3079. #------------------------------------------------------------
  3080. # similar to ATmega164P
  3081. part
  3082. id = "m324p";
  3083. desc = "ATMEGA324P";
  3084. has_jtag = yes;
  3085. # stk500_devcode = 0x82; # no STK500v1 support
  3086. # avr910_devcode = 0x?; # try the ATmega16 one:^
  3087. avr910_devcode = 0x74;
  3088. signature = 0x1e 0x95 0x08;
  3089. pagel = 0xd7;
  3090. bs2 = 0xa0;
  3091. chip_erase_delay = 9000;
  3092. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  3093. "x x x x x x x x x x x x x x x x";
  3094. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
  3095. "x x x x x x x x x x x x x x x x";
  3096. timeout = 200;
  3097. stabdelay = 100;
  3098. cmdexedelay = 25;
  3099. synchloops = 32;
  3100. bytedelay = 0;
  3101. pollindex = 3;
  3102. pollvalue = 0x53;
  3103. predelay = 1;
  3104. postdelay = 1;
  3105. pollmethod = 0;
  3106. pp_controlstack =
  3107. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  3108. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  3109. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  3110. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  3111. hventerstabdelay = 100;
  3112. progmodedelay = 0;
  3113. latchcycles = 5;
  3114. togglevtg = 1;
  3115. poweroffdelay = 15;
  3116. resetdelayms = 1;
  3117. resetdelayus = 0;
  3118. hvleavestabdelay = 15;
  3119. chiperasepulsewidth = 0;
  3120. chiperasepolltimeout = 10;
  3121. programfusepulsewidth = 0;
  3122. programfusepolltimeout = 5;
  3123. programlockpulsewidth = 0;
  3124. programlockpolltimeout = 5;
  3125. idr = 0x31;
  3126. spmcr = 0x57;
  3127. allowfullpagebitstream = no;
  3128. memory "eeprom"
  3129. paged = no; /* leave this "no" */
  3130. page_size = 4; /* for parallel programming */
  3131. size = 1024;
  3132. min_write_delay = 9000;
  3133. max_write_delay = 9000;
  3134. readback_p1 = 0xff;
  3135. readback_p2 = 0xff;
  3136. read = " 1 0 1 0 0 0 0 0",
  3137. " 0 0 x x x a10 a9 a8",
  3138. " a7 a6 a5 a4 a3 a2 a1 a0",
  3139. " o o o o o o o o";
  3140. write = " 1 1 0 0 0 0 0 0",
  3141. " 0 0 x x x a10 a9 a8",
  3142. " a7 a6 a5 a4 a3 a2 a1 a0",
  3143. " i i i i i i i i";
  3144. loadpage_lo = " 1 1 0 0 0 0 0 1",
  3145. " 0 0 0 0 0 0 0 0",
  3146. " 0 0 0 0 0 0 a1 a0",
  3147. " i i i i i i i i";
  3148. writepage = " 1 1 0 0 0 0 1 0",
  3149. " 0 0 x x x a10 a9 a8",
  3150. " a7 a6 a5 a4 a3 a2 0 0",
  3151. " x x x x x x x x";
  3152. mode = 0x41;
  3153. delay = 10;
  3154. blocksize = 128;
  3155. readsize = 256;
  3156. ;
  3157. memory "flash"
  3158. paged = yes;
  3159. size = 32768;
  3160. page_size = 128;
  3161. num_pages = 256;
  3162. min_write_delay = 4500;
  3163. max_write_delay = 4500;
  3164. readback_p1 = 0xff;
  3165. readback_p2 = 0xff;
  3166. read_lo = " 0 0 1 0 0 0 0 0",
  3167. " 0 a14 a13 a12 a11 a10 a9 a8",
  3168. " a7 a6 a5 a4 a3 a2 a1 a0",
  3169. " o o o o o o o o";
  3170. read_hi = " 0 0 1 0 1 0 0 0",
  3171. " 0 a14 a13 a12 a11 a10 a9 a8",
  3172. " a7 a6 a5 a4 a3 a2 a1 a0",
  3173. " o o o o o o o o";
  3174. loadpage_lo = " 0 1 0 0 0 0 0 0",
  3175. " 0 0 x x x x x x",
  3176. " x x a5 a4 a3 a2 a1 a0",
  3177. " i i i i i i i i";
  3178. loadpage_hi = " 0 1 0 0 1 0 0 0",
  3179. " 0 0 x x x x x x",
  3180. " x x a5 a4 a3 a2 a1 a0",
  3181. " i i i i i i i i";
  3182. writepage = " 0 1 0 0 1 1 0 0",
  3183. " 0 a14 a13 a12 a11 a10 a9 a8",
  3184. " a7 a6 x x x x x x",
  3185. " x x x x x x x x";
  3186. mode = 0x21;
  3187. delay = 6;
  3188. blocksize = 256;
  3189. readsize = 256;
  3190. ;
  3191. memory "lock"
  3192. size = 1;
  3193. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  3194. "x x x x x x x x x x o o o o o o";
  3195. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  3196. "x x x x x x x x 1 1 i i i i i i";
  3197. min_write_delay = 9000;
  3198. max_write_delay = 9000;
  3199. ;
  3200. memory "lfuse"
  3201. size = 1;
  3202. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  3203. "x x x x x x x x o o o o o o o o";
  3204. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  3205. "x x x x x x x x i i i i i i i i";
  3206. min_write_delay = 9000;
  3207. max_write_delay = 9000;
  3208. ;
  3209. memory "hfuse"
  3210. size = 1;
  3211. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  3212. "x x x x x x x x o o o o o o o o";
  3213. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  3214. "x x x x x x x x i i i i i i i i";
  3215. min_write_delay = 9000;
  3216. max_write_delay = 9000;
  3217. ;
  3218. memory "efuse"
  3219. size = 1;
  3220. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  3221. "x x x x x x x x o o o o o o o o";
  3222. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  3223. "x x x x x x x x 1 1 1 1 1 i i i";
  3224. min_write_delay = 9000;
  3225. max_write_delay = 9000;
  3226. ;
  3227. memory "signature"
  3228. size = 3;
  3229. read = "0 0 1 1 0 0 0 0 x x x x x x x x",
  3230. "x x x x x x a1 a0 o o o o o o o o";
  3231. ;
  3232. memory "calibration"
  3233. size = 1;
  3234. read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
  3235. "0 0 0 0 0 0 0 0 o o o o o o o o";
  3236. ;
  3237. ;
  3238. #------------------------------------------------------------
  3239. # ATmega644
  3240. #------------------------------------------------------------
  3241. # similar to ATmega164
  3242. part
  3243. id = "m644";
  3244. desc = "ATMEGA644";
  3245. has_jtag = yes;
  3246. # stk500_devcode = 0x82; # no STK500v1 support
  3247. # avr910_devcode = 0x?; # try the ATmega16 one:^
  3248. avr910_devcode = 0x74;
  3249. signature = 0x1e 0x96 0x09;
  3250. pagel = 0xd7;
  3251. bs2 = 0xa0;
  3252. chip_erase_delay = 9000;
  3253. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  3254. "x x x x x x x x x x x x x x x x";
  3255. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
  3256. "x x x x x x x x x x x x x x x x";
  3257. timeout = 200;
  3258. stabdelay = 100;
  3259. cmdexedelay = 25;
  3260. synchloops = 32;
  3261. bytedelay = 0;
  3262. pollindex = 3;
  3263. pollvalue = 0x53;
  3264. predelay = 1;
  3265. postdelay = 1;
  3266. pollmethod = 0;
  3267. pp_controlstack =
  3268. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  3269. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  3270. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  3271. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x02;
  3272. hventerstabdelay = 100;
  3273. progmodedelay = 0;
  3274. latchcycles = 6;
  3275. togglevtg = 0;
  3276. poweroffdelay = 0;
  3277. resetdelayms = 0;
  3278. resetdelayus = 0;
  3279. hvleavestabdelay = 15;
  3280. chiperasepulsewidth = 0;
  3281. chiperasepolltimeout = 10;
  3282. programfusepulsewidth = 0;
  3283. programfusepolltimeout = 5;
  3284. programlockpulsewidth = 0;
  3285. programlockpolltimeout = 5;
  3286. idr = 0x31;
  3287. spmcr = 0x57;
  3288. allowfullpagebitstream = no;
  3289. memory "eeprom"
  3290. paged = no; /* leave this "no" */
  3291. page_size = 8; /* for parallel programming */
  3292. size = 2048;
  3293. min_write_delay = 9000;
  3294. max_write_delay = 9000;
  3295. readback_p1 = 0xff;
  3296. readback_p2 = 0xff;
  3297. read = " 1 0 1 0 0 0 0 0",
  3298. " 0 0 x x a11 a10 a9 a8",
  3299. " a7 a6 a5 a4 a3 a2 a1 a0",
  3300. " o o o o o o o o";
  3301. write = " 1 1 0 0 0 0 0 0",
  3302. " 0 0 x x a11 a10 a9 a8",
  3303. " a7 a6 a5 a4 a3 a2 a1 a0",
  3304. " i i i i i i i i";
  3305. loadpage_lo = " 1 1 0 0 0 0 0 1",
  3306. " 0 0 0 0 0 0 0 0",
  3307. " 0 0 0 0 0 a2 a1 a0",
  3308. " i i i i i i i i";
  3309. writepage = " 1 1 0 0 0 0 1 0",
  3310. " 0 0 x x a11 a10 a9 a8",
  3311. " a7 a6 a5 a4 a3 0 0 0",
  3312. " x x x x x x x x";
  3313. mode = 0x41;
  3314. delay = 10;
  3315. blocksize = 128;
  3316. readsize = 256;
  3317. ;
  3318. memory "flash"
  3319. paged = yes;
  3320. size = 65536;
  3321. page_size = 256;
  3322. num_pages = 256;
  3323. min_write_delay = 4500;
  3324. max_write_delay = 4500;
  3325. readback_p1 = 0xff;
  3326. readback_p2 = 0xff;
  3327. read_lo = " 0 0 1 0 0 0 0 0",
  3328. "a15 a14 a13 a12 a11 a10 a9 a8",
  3329. " a7 a6 a5 a4 a3 a2 a1 a0",
  3330. " o o o o o o o o";
  3331. read_hi = " 0 0 1 0 1 0 0 0",
  3332. "a15 a14 a13 a12 a11 a10 a9 a8",
  3333. " a7 a6 a5 a4 a3 a2 a1 a0",
  3334. " o o o o o o o o";
  3335. loadpage_lo = " 0 1 0 0 0 0 0 0",
  3336. " 0 0 x x x x x x",
  3337. " x a6 a5 a4 a3 a2 a1 a0",
  3338. " i i i i i i i i";
  3339. loadpage_hi = " 0 1 0 0 1 0 0 0",
  3340. " 0 0 x x x x x x",
  3341. " x a6 a5 a4 a3 a2 a1 a0",
  3342. " i i i i i i i i";
  3343. writepage = " 0 1 0 0 1 1 0 0",
  3344. "a15 a14 a13 a12 a11 a10 a9 a8",
  3345. " a7 x x x x x x x",
  3346. " x x x x x x x x";
  3347. mode = 0x21;
  3348. delay = 6;
  3349. blocksize = 256;
  3350. readsize = 256;
  3351. ;
  3352. memory "lock"
  3353. size = 1;
  3354. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  3355. "x x x x x x x x x x o o o o o o";
  3356. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  3357. "x x x x x x x x 1 1 i i i i i i";
  3358. min_write_delay = 9000;
  3359. max_write_delay = 9000;
  3360. ;
  3361. memory "lfuse"
  3362. size = 1;
  3363. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  3364. "x x x x x x x x o o o o o o o o";
  3365. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  3366. "x x x x x x x x i i i i i i i i";
  3367. min_write_delay = 9000;
  3368. max_write_delay = 9000;
  3369. ;
  3370. memory "hfuse"
  3371. size = 1;
  3372. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  3373. "x x x x x x x x o o o o o o o o";
  3374. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  3375. "x x x x x x x x i i i i i i i i";
  3376. min_write_delay = 9000;
  3377. max_write_delay = 9000;
  3378. ;
  3379. memory "efuse"
  3380. size = 1;
  3381. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  3382. "x x x x x x x x o o o o o o o o";
  3383. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  3384. "x x x x x x x x 1 1 1 1 1 i i i";
  3385. min_write_delay = 9000;
  3386. max_write_delay = 9000;
  3387. ;
  3388. memory "signature"
  3389. size = 3;
  3390. read = "0 0 1 1 0 0 0 0 x x x x x x x x",
  3391. "x x x x x x a1 a0 o o o o o o o o";
  3392. ;
  3393. memory "calibration"
  3394. size = 1;
  3395. read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
  3396. "0 0 0 0 0 0 0 0 o o o o o o o o";
  3397. ;
  3398. ;
  3399. #------------------------------------------------------------
  3400. # ATmega644P
  3401. #------------------------------------------------------------
  3402. # similar to ATmega164p
  3403. part
  3404. id = "m644p";
  3405. desc = "ATMEGA644P";
  3406. has_jtag = yes;
  3407. # stk500_devcode = 0x82; # no STK500v1 support
  3408. # avr910_devcode = 0x?; # try the ATmega16 one:^
  3409. avr910_devcode = 0x74;
  3410. signature = 0x1e 0x96 0x0a;
  3411. pagel = 0xd7;
  3412. bs2 = 0xa0;
  3413. chip_erase_delay = 9000;
  3414. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  3415. "x x x x x x x x x x x x x x x x";
  3416. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
  3417. "x x x x x x x x x x x x x x x x";
  3418. timeout = 200;
  3419. stabdelay = 100;
  3420. cmdexedelay = 25;
  3421. synchloops = 32;
  3422. bytedelay = 0;
  3423. pollindex = 3;
  3424. pollvalue = 0x53;
  3425. predelay = 1;
  3426. postdelay = 1;
  3427. pollmethod = 0;
  3428. pp_controlstack =
  3429. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  3430. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  3431. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  3432. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x02;
  3433. hventerstabdelay = 100;
  3434. progmodedelay = 0;
  3435. latchcycles = 6;
  3436. togglevtg = 0;
  3437. poweroffdelay = 0;
  3438. resetdelayms = 0;
  3439. resetdelayus = 0;
  3440. hvleavestabdelay = 15;
  3441. chiperasepulsewidth = 0;
  3442. chiperasepolltimeout = 10;
  3443. programfusepulsewidth = 0;
  3444. programfusepolltimeout = 5;
  3445. programlockpulsewidth = 0;
  3446. programlockpolltimeout = 5;
  3447. idr = 0x31;
  3448. spmcr = 0x57;
  3449. allowfullpagebitstream = no;
  3450. memory "eeprom"
  3451. paged = no; /* leave this "no" */
  3452. page_size = 8; /* for parallel programming */
  3453. size = 2048;
  3454. min_write_delay = 9000;
  3455. max_write_delay = 9000;
  3456. readback_p1 = 0xff;
  3457. readback_p2 = 0xff;
  3458. read = " 1 0 1 0 0 0 0 0",
  3459. " 0 0 x x a11 a10 a9 a8",
  3460. " a7 a6 a5 a4 a3 a2 a1 a0",
  3461. " o o o o o o o o";
  3462. write = " 1 1 0 0 0 0 0 0",
  3463. " 0 0 x x a11 a10 a9 a8",
  3464. " a7 a6 a5 a4 a3 a2 a1 a0",
  3465. " i i i i i i i i";
  3466. loadpage_lo = " 1 1 0 0 0 0 0 1",
  3467. " 0 0 0 0 0 0 0 0",
  3468. " 0 0 0 0 0 a2 a1 a0",
  3469. " i i i i i i i i";
  3470. writepage = " 1 1 0 0 0 0 1 0",
  3471. " 0 0 x x a11 a10 a9 a8",
  3472. " a7 a6 a5 a4 a3 0 0 0",
  3473. " x x x x x x x x";
  3474. mode = 0x41;
  3475. delay = 10;
  3476. blocksize = 128;
  3477. readsize = 256;
  3478. ;
  3479. memory "flash"
  3480. paged = yes;
  3481. size = 65536;
  3482. page_size = 256;
  3483. num_pages = 256;
  3484. min_write_delay = 4500;
  3485. max_write_delay = 4500;
  3486. readback_p1 = 0xff;
  3487. readback_p2 = 0xff;
  3488. read_lo = " 0 0 1 0 0 0 0 0",
  3489. "a15 a14 a13 a12 a11 a10 a9 a8",
  3490. " a7 a6 a5 a4 a3 a2 a1 a0",
  3491. " o o o o o o o o";
  3492. read_hi = " 0 0 1 0 1 0 0 0",
  3493. "a15 a14 a13 a12 a11 a10 a9 a8",
  3494. " a7 a6 a5 a4 a3 a2 a1 a0",
  3495. " o o o o o o o o";
  3496. loadpage_lo = " 0 1 0 0 0 0 0 0",
  3497. " 0 0 x x x x x x",
  3498. " x a6 a5 a4 a3 a2 a1 a0",
  3499. " i i i i i i i i";
  3500. loadpage_hi = " 0 1 0 0 1 0 0 0",
  3501. " 0 0 x x x x x x",
  3502. " x a6 a5 a4 a3 a2 a1 a0",
  3503. " i i i i i i i i";
  3504. writepage = " 0 1 0 0 1 1 0 0",
  3505. "a15 a14 a13 a12 a11 a10 a9 a8",
  3506. " a7 x x x x x x x",
  3507. " x x x x x x x x";
  3508. mode = 0x21;
  3509. delay = 6;
  3510. blocksize = 256;
  3511. readsize = 256;
  3512. ;
  3513. memory "lock"
  3514. size = 1;
  3515. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  3516. "x x x x x x x x x x o o o o o o";
  3517. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  3518. "x x x x x x x x 1 1 i i i i i i";
  3519. min_write_delay = 9000;
  3520. max_write_delay = 9000;
  3521. ;
  3522. memory "lfuse"
  3523. size = 1;
  3524. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  3525. "x x x x x x x x o o o o o o o o";
  3526. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  3527. "x x x x x x x x i i i i i i i i";
  3528. min_write_delay = 9000;
  3529. max_write_delay = 9000;
  3530. ;
  3531. memory "hfuse"
  3532. size = 1;
  3533. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  3534. "x x x x x x x x o o o o o o o o";
  3535. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  3536. "x x x x x x x x i i i i i i i i";
  3537. min_write_delay = 9000;
  3538. max_write_delay = 9000;
  3539. ;
  3540. memory "efuse"
  3541. size = 1;
  3542. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  3543. "x x x x x x x x o o o o o o o o";
  3544. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  3545. "x x x x x x x x 1 1 1 1 1 i i i";
  3546. min_write_delay = 9000;
  3547. max_write_delay = 9000;
  3548. ;
  3549. memory "signature"
  3550. size = 3;
  3551. read = "0 0 1 1 0 0 0 0 x x x x x x x x",
  3552. "x x x x x x a1 a0 o o o o o o o o";
  3553. ;
  3554. memory "calibration"
  3555. size = 1;
  3556. read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
  3557. "0 0 0 0 0 0 0 0 o o o o o o o o";
  3558. ;
  3559. ;
  3560. #------------------------------------------------------------
  3561. # ATmega162
  3562. #------------------------------------------------------------
  3563. part
  3564. id = "m162";
  3565. desc = "ATMEGA162";
  3566. has_jtag = yes;
  3567. stk500_devcode = 0x83;
  3568. avr910_devcode = 0x63;
  3569. signature = 0x1e 0x94 0x04;
  3570. chip_erase_delay = 9000;
  3571. pagel = 0xd7;
  3572. bs2 = 0xa0;
  3573. idr = 0x04;
  3574. spmcr = 0x57;
  3575. allowfullpagebitstream = yes;
  3576. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  3577. "x x x x x x x x x x x x x x x x";
  3578. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
  3579. "x x x x x x x x x x x x x x x x";
  3580. memory "flash"
  3581. paged = yes;
  3582. size = 16384;
  3583. page_size = 128;
  3584. num_pages = 128;
  3585. min_write_delay = 4500;
  3586. max_write_delay = 4500;
  3587. readback_p1 = 0xff;
  3588. readback_p2 = 0xff;
  3589. read_lo = " 0 0 1 0 0 0 0 0",
  3590. " 0 0 a13 a12 a11 a10 a9 a8",
  3591. " a7 a6 a5 a4 a3 a2 a1 a0",
  3592. " o o o o o o o o";
  3593. read_hi = " 0 0 1 0 1 0 0 0",
  3594. " 0 0 a13 a12 a11 a10 a9 a8",
  3595. " a7 a6 a5 a4 a3 a2 a1 a0",
  3596. " o o o o o o o o";
  3597. loadpage_lo = " 0 1 0 0 0 0 0 0",
  3598. " 0 0 x x x x x x",
  3599. " x x a5 a4 a3 a2 a1 a0",
  3600. " i i i i i i i i";
  3601. loadpage_hi = " 0 1 0 0 1 0 0 0",
  3602. " 0 0 x x x x x x",
  3603. " x x a5 a4 a3 a2 a1 a0",
  3604. " i i i i i i i i";
  3605. writepage = " 0 1 0 0 1 1 0 0",
  3606. " 0 0 a13 a12 a11 a10 a9 a8",
  3607. " a7 a6 x x x x x x",
  3608. " x x x x x x x x";
  3609. mode = 0x41;
  3610. delay = 10;
  3611. blocksize = 128;
  3612. readsize = 256;
  3613. ;
  3614. timeout = 200;
  3615. stabdelay = 100;
  3616. cmdexedelay = 25;
  3617. synchloops = 32;
  3618. bytedelay = 0;
  3619. pollindex = 3;
  3620. pollvalue = 0x53;
  3621. predelay = 1;
  3622. postdelay = 1;
  3623. pollmethod = 0;
  3624. pp_controlstack =
  3625. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  3626. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  3627. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  3628. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  3629. hventerstabdelay = 100;
  3630. progmodedelay = 0;
  3631. latchcycles = 6;
  3632. togglevtg = 0;
  3633. poweroffdelay = 0;
  3634. resetdelayms = 0;
  3635. resetdelayus = 0;
  3636. hvleavestabdelay = 15;
  3637. chiperasepulsewidth = 0;
  3638. chiperasepolltimeout = 10;
  3639. programfusepulsewidth = 0;
  3640. programfusepolltimeout = 5;
  3641. programlockpulsewidth = 0;
  3642. programlockpolltimeout = 5;
  3643. memory "eeprom"
  3644. paged = no; /* leave this "no" */
  3645. page_size = 4; /* for parallel programming */
  3646. size = 512;
  3647. min_write_delay = 9000;
  3648. max_write_delay = 9000;
  3649. readback_p1 = 0xff;
  3650. readback_p2 = 0xff;
  3651. read = " 1 0 1 0 0 0 0 0",
  3652. " 0 0 x x x x a9 a8",
  3653. " a7 a6 a5 a4 a3 a2 a1 a0",
  3654. " o o o o o o o o";
  3655. write = " 1 1 0 0 0 0 0 0",
  3656. " 0 0 x x x x a9 a8",
  3657. " a7 a6 a5 a4 a3 a2 a1 a0",
  3658. " i i i i i i i i";
  3659. loadpage_lo = " 1 1 0 0 0 0 0 1",
  3660. " 0 0 0 0 0 0 0 0",
  3661. " 0 0 0 0 0 0 a1 a0",
  3662. " i i i i i i i i";
  3663. writepage = " 1 1 0 0 0 0 1 0",
  3664. " 0 0 x x x x a9 a8",
  3665. " a7 a6 a5 a4 a3 a2 0 0",
  3666. " x x x x x x x x";
  3667. mode = 0x41;
  3668. delay = 20;
  3669. blocksize = 4;
  3670. readsize = 256;
  3671. ;
  3672. memory "lfuse"
  3673. size = 1;
  3674. min_write_delay = 16000;
  3675. max_write_delay = 16000;
  3676. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  3677. "x x x x x x x x o o o o o o o o";
  3678. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  3679. "x x x x x x x x i i i i i i i i";
  3680. ;
  3681. memory "hfuse"
  3682. size = 1;
  3683. min_write_delay = 16000;
  3684. max_write_delay = 16000;
  3685. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  3686. "x x x x x x x x o o o o o o o o";
  3687. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  3688. "x x x x x x x x i i i i i i i i";
  3689. ;
  3690. memory "efuse"
  3691. size = 1;
  3692. min_write_delay = 16000;
  3693. max_write_delay = 16000;
  3694. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  3695. "x x x x x x x x o o o o o o o o";
  3696. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  3697. "x x x x x x x x 1 1 1 1 1 i i i";
  3698. ;
  3699. memory "lock"
  3700. size = 1;
  3701. min_write_delay = 16000;
  3702. max_write_delay = 16000;
  3703. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  3704. "x x x x x x x x x x o o o o o o";
  3705. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  3706. "x x x x x x x x 1 1 i i i i i i";
  3707. ;
  3708. memory "signature"
  3709. size = 3;
  3710. read = "0 0 1 1 0 0 0 0 0 0 x x x x x x",
  3711. "x x x x x x a1 a0 o o o o o o o o";
  3712. ;
  3713. memory "calibration"
  3714. size = 1;
  3715. read = "0 0 1 1 1 0 0 0 0 0 x x x x x x",
  3716. "0 0 0 0 0 0 0 0 o o o o o o o o";
  3717. ;
  3718. ;
  3719. #------------------------------------------------------------
  3720. # ATmega163
  3721. #------------------------------------------------------------
  3722. part
  3723. id = "m163";
  3724. desc = "ATMEGA163";
  3725. stk500_devcode = 0x81;
  3726. avr910_devcode = 0x64;
  3727. signature = 0x1e 0x94 0x02;
  3728. chip_erase_delay = 32000;
  3729. pagel = 0xd7;
  3730. bs2 = 0xa0;
  3731. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  3732. "x x x x x x x x x x x x x x x x";
  3733. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 0 0 0 0 0",
  3734. "x x x x x x x x x x x x x x x x";
  3735. pp_controlstack =
  3736. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  3737. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  3738. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  3739. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  3740. hventerstabdelay = 100;
  3741. progmodedelay = 0;
  3742. latchcycles = 0;
  3743. togglevtg = 0;
  3744. poweroffdelay = 0;
  3745. resetdelayms = 0;
  3746. resetdelayus = 0;
  3747. hvleavestabdelay = 15;
  3748. chiperasepulsewidth = 0;
  3749. chiperasepolltimeout = 30;
  3750. programfusepulsewidth = 0;
  3751. programfusepolltimeout = 2;
  3752. programlockpulsewidth = 0;
  3753. programlockpolltimeout = 2;
  3754. memory "eeprom"
  3755. size = 512;
  3756. min_write_delay = 4000;
  3757. max_write_delay = 4000;
  3758. readback_p1 = 0xff;
  3759. readback_p2 = 0xff;
  3760. read = " 1 0 1 0 0 0 0 0",
  3761. " x x x x x x x a8",
  3762. " a7 a6 a5 a4 a3 a2 a1 a0",
  3763. " o o o o o o o o";
  3764. write = " 1 1 0 0 0 0 0 0",
  3765. " x x x x x x x a8",
  3766. " a7 a6 a5 a4 a3 a2 a1 a0",
  3767. " i i i i i i i i";
  3768. ;
  3769. memory "flash"
  3770. paged = yes;
  3771. size = 16384;
  3772. page_size = 128;
  3773. num_pages = 128;
  3774. min_write_delay = 16000;
  3775. max_write_delay = 16000;
  3776. readback_p1 = 0xff;
  3777. readback_p2 = 0xff;
  3778. read_lo = " 0 0 1 0 0 0 0 0",
  3779. " x x x a12 a11 a10 a9 a8",
  3780. " a7 a6 a5 a4 a3 a2 a1 a0",
  3781. " o o o o o o o o";
  3782. read_hi = " 0 0 1 0 1 0 0 0",
  3783. " x x x a12 a11 a10 a9 a8",
  3784. " a7 a6 a5 a4 a3 a2 a1 a0",
  3785. " o o o o o o o o";
  3786. loadpage_lo = " 0 1 0 0 0 0 0 0",
  3787. " x x x x x x x x",
  3788. " x x a5 a4 a3 a2 a1 a0",
  3789. " i i i i i i i i";
  3790. loadpage_hi = " 0 1 0 0 1 0 0 0",
  3791. " x x x x x x x x",
  3792. " x x a5 a4 a3 a2 a1 a0",
  3793. " i i i i i i i i";
  3794. writepage = " 0 1 0 0 1 1 0 0",
  3795. " x x x a12 a11 a10 a9 a8",
  3796. " a7 a6 x x x x x x",
  3797. " x x x x x x x x";
  3798. mode = 0x41;
  3799. delay = 6;
  3800. blocksize = 128;
  3801. readsize = 256;
  3802. ;
  3803. memory "lfuse"
  3804. size = 1;
  3805. min_write_delay = 2000;
  3806. max_write_delay = 2000;
  3807. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  3808. "x x x x x x x x o o x x o o o o";
  3809. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  3810. "x x x x x x x x i i 1 1 i i i i";
  3811. ;
  3812. memory "hfuse"
  3813. size = 1;
  3814. min_write_delay = 2000;
  3815. max_write_delay = 2000;
  3816. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  3817. "x x x x x x x x x x x x 1 o o o";
  3818. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  3819. "x x x x x x x x 1 1 1 1 1 i i i";
  3820. ;
  3821. memory "lock"
  3822. size = 1;
  3823. min_write_delay = 2000;
  3824. max_write_delay = 2000;
  3825. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  3826. "x x x x 0 x x x x x o o o o o o";
  3827. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  3828. "x x x x x x x x 1 1 i i i i i i";
  3829. ;
  3830. memory "signature"
  3831. size = 3;
  3832. read = "0 0 1 1 0 0 0 0 x x x x x x x x",
  3833. "x x x x x x a1 a0 o o o o o o o o";
  3834. ;
  3835. memory "calibration"
  3836. size = 1;
  3837. read = "0 0 1 1 1 0 0 0 x x x x x x x x",
  3838. "0 0 0 0 0 0 0 0 o o o o o o o o";
  3839. ;
  3840. ;
  3841. #------------------------------------------------------------
  3842. # ATmega169
  3843. #------------------------------------------------------------
  3844. part
  3845. id = "m169";
  3846. desc = "ATMEGA169";
  3847. has_jtag = yes;
  3848. stk500_devcode = 0x85;
  3849. avr910_devcode = 0x78;
  3850. signature = 0x1e 0x94 0x05;
  3851. chip_erase_delay = 9000;
  3852. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  3853. "x x x x x x x x x x x x x x x x";
  3854. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 0 0 0 0 0",
  3855. "x x x x x x x x x x x x x x x x";
  3856. timeout = 200;
  3857. stabdelay = 100;
  3858. cmdexedelay = 25;
  3859. synchloops = 32;
  3860. bytedelay = 0;
  3861. pollindex = 3;
  3862. pollvalue = 0x53;
  3863. predelay = 1;
  3864. postdelay = 1;
  3865. pollmethod = 1;
  3866. pp_controlstack =
  3867. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  3868. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  3869. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  3870. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  3871. hventerstabdelay = 100;
  3872. progmodedelay = 0;
  3873. latchcycles = 5;
  3874. togglevtg = 1;
  3875. poweroffdelay = 15;
  3876. resetdelayms = 1;
  3877. resetdelayus = 0;
  3878. hvleavestabdelay = 15;
  3879. chiperasepulsewidth = 0;
  3880. chiperasepolltimeout = 10;
  3881. programfusepulsewidth = 0;
  3882. programfusepolltimeout = 5;
  3883. programlockpulsewidth = 0;
  3884. programlockpolltimeout = 5;
  3885. idr = 0x31;
  3886. spmcr = 0x57;
  3887. memory "eeprom"
  3888. paged = no; /* leave this "no" */
  3889. page_size = 4; /* for parallel programming */
  3890. size = 512;
  3891. min_write_delay = 9000;
  3892. max_write_delay = 9000;
  3893. readback_p1 = 0xff;
  3894. readback_p2 = 0xff;
  3895. read = " 1 0 1 0 0 0 0 0",
  3896. " x x x x x x x a8",
  3897. " a7 a6 a5 a4 a3 a2 a1 a0",
  3898. " o o o o o o o o";
  3899. write = " 1 1 0 0 0 0 0 0",
  3900. " x x x x x x x a8",
  3901. " a7 a6 a5 a4 a3 a2 a1 a0",
  3902. " i i i i i i i i";
  3903. loadpage_lo = " 1 1 0 0 0 0 0 1",
  3904. " 0 0 0 0 0 0 0 0",
  3905. " 0 0 0 0 0 0 a1 a0",
  3906. " i i i i i i i i";
  3907. writepage = " 1 1 0 0 0 0 1 0",
  3908. " 0 0 x x x x x a8",
  3909. " a7 a6 a5 a4 a3 a2 0 0",
  3910. " x x x x x x x x";
  3911. mode = 0x41;
  3912. delay = 20;
  3913. blocksize = 4;
  3914. readsize = 256;
  3915. ;
  3916. memory "flash"
  3917. paged = yes;
  3918. size = 16384;
  3919. page_size = 128;
  3920. num_pages = 128;
  3921. min_write_delay = 4500;
  3922. max_write_delay = 4500;
  3923. readback_p1 = 0xff;
  3924. readback_p2 = 0xff;
  3925. read_lo = " 0 0 1 0 0 0 0 0",
  3926. " x x x a12 a11 a10 a9 a8",
  3927. " a7 a6 a5 a4 a3 a2 a1 a0",
  3928. " o o o o o o o o";
  3929. read_hi = " 0 0 1 0 1 0 0 0",
  3930. " x x x a12 a11 a10 a9 a8",
  3931. " a7 a6 a5 a4 a3 a2 a1 a0",
  3932. " o o o o o o o o";
  3933. loadpage_lo = " 0 1 0 0 0 0 0 0",
  3934. " x x x x x x x x",
  3935. " x x a5 a4 a3 a2 a1 a0",
  3936. " i i i i i i i i";
  3937. loadpage_hi = " 0 1 0 0 1 0 0 0",
  3938. " x x x x x x x x",
  3939. " x x a5 a4 a3 a2 a1 a0",
  3940. " i i i i i i i i";
  3941. writepage = " 0 1 0 0 1 1 0 0",
  3942. " x x x a12 a11 a10 a9 a8",
  3943. " a7 a6 x x x x x x",
  3944. " x x x x x x x x";
  3945. mode = 0x41;
  3946. delay = 6;
  3947. blocksize = 128;
  3948. readsize = 256;
  3949. ;
  3950. memory "lfuse"
  3951. size = 1;
  3952. min_write_delay = 2000;
  3953. max_write_delay = 2000;
  3954. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  3955. "x x x x x x x x o o o o o o o o";
  3956. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  3957. "x x x x x x x x i i i i i i i i";
  3958. ;
  3959. memory "hfuse"
  3960. size = 1;
  3961. min_write_delay = 2000;
  3962. max_write_delay = 2000;
  3963. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  3964. "x x x x x x x x o o o o o o o o";
  3965. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  3966. "x x x x x x x x i i i i i i i i";
  3967. ;
  3968. memory "efuse"
  3969. size = 1;
  3970. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  3971. "x x x x x x x x x x x x i i i i";
  3972. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  3973. "x x x x x x x x o o o o o o o o";
  3974. ;
  3975. memory "lock"
  3976. size = 1;
  3977. min_write_delay = 2000;
  3978. max_write_delay = 2000;
  3979. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  3980. "x x x x x x x x x x o o o o o o";
  3981. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  3982. "x x x x x x x x 1 1 i i i i i i";
  3983. ;
  3984. memory "signature"
  3985. size = 3;
  3986. read = "0 0 1 1 0 0 0 0 0 0 0 x x x x x",
  3987. "x x x x x x a1 a0 o o o o o o o o";
  3988. ;
  3989. memory "calibration"
  3990. size = 1;
  3991. read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
  3992. "0 0 0 0 0 0 0 0 o o o o o o o o";
  3993. ;
  3994. ;
  3995. #------------------------------------------------------------
  3996. # ATmega329
  3997. #------------------------------------------------------------
  3998. part
  3999. id = "m329";
  4000. desc = "ATMEGA329";
  4001. has_jtag = yes;
  4002. # stk500_devcode = 0x85; # no STK500 support, only STK500v2
  4003. # avr910_devcode = 0x?; # try the ATmega169 one:
  4004. avr910_devcode = 0x75;
  4005. signature = 0x1e 0x95 0x03;
  4006. chip_erase_delay = 9000;
  4007. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  4008. "x x x x x x x x x x x x x x x x";
  4009. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 0 0 0 0 0",
  4010. "x x x x x x x x x x x x x x x x";
  4011. timeout = 200;
  4012. stabdelay = 100;
  4013. cmdexedelay = 25;
  4014. synchloops = 32;
  4015. bytedelay = 0;
  4016. pollindex = 3;
  4017. pollvalue = 0x53;
  4018. predelay = 1;
  4019. postdelay = 1;
  4020. pollmethod = 1;
  4021. pp_controlstack =
  4022. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  4023. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  4024. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  4025. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  4026. hventerstabdelay = 100;
  4027. progmodedelay = 0;
  4028. latchcycles = 5;
  4029. togglevtg = 1;
  4030. poweroffdelay = 15;
  4031. resetdelayms = 1;
  4032. resetdelayus = 0;
  4033. hvleavestabdelay = 15;
  4034. chiperasepulsewidth = 0;
  4035. chiperasepolltimeout = 10;
  4036. programfusepulsewidth = 0;
  4037. programfusepolltimeout = 5;
  4038. programlockpulsewidth = 0;
  4039. programlockpolltimeout = 5;
  4040. idr = 0x31;
  4041. spmcr = 0x57;
  4042. memory "eeprom"
  4043. paged = no; /* leave this "no" */
  4044. page_size = 4; /* for parallel programming */
  4045. size = 1024;
  4046. min_write_delay = 9000;
  4047. max_write_delay = 9000;
  4048. readback_p1 = 0xff;
  4049. readback_p2 = 0xff;
  4050. read = " 1 0 1 0 0 0 0 0",
  4051. " x x x x x x a9 a8",
  4052. " a7 a6 a5 a4 a3 a2 a1 a0",
  4053. " o o o o o o o o";
  4054. write = " 1 1 0 0 0 0 0 0",
  4055. " x x x x x x a9 a8",
  4056. " a7 a6 a5 a4 a3 a2 a1 a0",
  4057. " i i i i i i i i";
  4058. loadpage_lo = " 1 1 0 0 0 0 0 1",
  4059. " 0 0 0 0 0 0 0 0",
  4060. " 0 0 0 0 0 0 a1 a0",
  4061. " i i i i i i i i";
  4062. writepage = " 1 1 0 0 0 0 1 0",
  4063. " 0 0 x x x x a9 a8",
  4064. " a7 a6 a5 a4 a3 a2 0 0",
  4065. " x x x x x x x x";
  4066. mode = 0x41;
  4067. delay = 20;
  4068. blocksize = 8;
  4069. readsize = 256;
  4070. ;
  4071. memory "flash"
  4072. paged = yes;
  4073. size = 32768;
  4074. page_size = 128;
  4075. num_pages = 256;
  4076. min_write_delay = 4500;
  4077. max_write_delay = 4500;
  4078. readback_p1 = 0xff;
  4079. readback_p2 = 0xff;
  4080. read_lo = " 0 0 1 0 0 0 0 0",
  4081. " x a14 a13 a12 a11 a10 a9 a8",
  4082. " a7 a6 a5 a4 a3 a2 a1 a0",
  4083. " o o o o o o o o";
  4084. read_hi = " 0 0 1 0 1 0 0 0",
  4085. " x a14 a13 a12 a11 a10 a9 a8",
  4086. " a7 a6 a5 a4 a3 a2 a1 a0",
  4087. " o o o o o o o o";
  4088. loadpage_lo = " 0 1 0 0 0 0 0 0",
  4089. " x x x x x x x x",
  4090. " x x a5 a4 a3 a2 a1 a0",
  4091. " i i i i i i i i";
  4092. loadpage_hi = " 0 1 0 0 1 0 0 0",
  4093. " x x x x x x x x",
  4094. " x x a5 a4 a3 a2 a1 a0",
  4095. " i i i i i i i i";
  4096. writepage = " 0 1 0 0 1 1 0 0",
  4097. " x x x a12 a11 a10 a9 a8",
  4098. " a7 a6 x x x x x x",
  4099. " x x x x x x x x";
  4100. mode = 0x41;
  4101. delay = 6;
  4102. blocksize = 256;
  4103. readsize = 256;
  4104. ;
  4105. memory "lfuse"
  4106. size = 1;
  4107. min_write_delay = 4500;
  4108. max_write_delay = 4500;
  4109. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  4110. "x x x x x x x x o o o o o o o o";
  4111. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  4112. "x x x x x x x x i i i i i i i i";
  4113. ;
  4114. memory "hfuse"
  4115. size = 1;
  4116. min_write_delay = 4500;
  4117. max_write_delay = 4500;
  4118. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  4119. "x x x x x x x x o o o o o o o o";
  4120. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  4121. "x x x x x x x x i i i i i i i i";
  4122. ;
  4123. memory "efuse"
  4124. size = 1;
  4125. min_write_delay = 4500;
  4126. max_write_delay = 4500;
  4127. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  4128. "x x x x x x x x o o o o o o o o";
  4129. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  4130. "x x x x x x x x x x x x x i i i";
  4131. ;
  4132. memory "lock"
  4133. size = 1;
  4134. min_write_delay = 4500;
  4135. max_write_delay = 4500;
  4136. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  4137. "x x x x x x x x x x o o o o o o";
  4138. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  4139. "x x x x x x x x 1 1 i i i i i i";
  4140. ;
  4141. memory "signature"
  4142. size = 3;
  4143. read = "0 0 1 1 0 0 0 0 0 0 0 x x x x x",
  4144. "x x x x x x a1 a0 o o o o o o o o";
  4145. ;
  4146. memory "calibration"
  4147. size = 1;
  4148. read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
  4149. "0 0 0 0 0 0 0 0 o o o o o o o o";
  4150. ;
  4151. ;
  4152. #------------------------------------------------------------
  4153. # ATmega3290
  4154. #------------------------------------------------------------
  4155. # identical to ATmega329
  4156. part
  4157. id = "m3290";
  4158. desc = "ATMEGA3290";
  4159. has_jtag = yes;
  4160. # stk500_devcode = 0x85; # no STK500 support, only STK500v2
  4161. # avr910_devcode = 0x?; # try the ATmega169 one:
  4162. avr910_devcode = 0x75;
  4163. signature = 0x1e 0x95 0x04;
  4164. chip_erase_delay = 9000;
  4165. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  4166. "x x x x x x x x x x x x x x x x";
  4167. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 0 0 0 0 0",
  4168. "x x x x x x x x x x x x x x x x";
  4169. timeout = 200;
  4170. stabdelay = 100;
  4171. cmdexedelay = 25;
  4172. synchloops = 32;
  4173. bytedelay = 0;
  4174. pollindex = 3;
  4175. pollvalue = 0x53;
  4176. predelay = 1;
  4177. postdelay = 1;
  4178. pollmethod = 1;
  4179. pp_controlstack =
  4180. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  4181. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  4182. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  4183. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  4184. hventerstabdelay = 100;
  4185. progmodedelay = 0;
  4186. latchcycles = 5;
  4187. togglevtg = 1;
  4188. poweroffdelay = 15;
  4189. resetdelayms = 1;
  4190. resetdelayus = 0;
  4191. hvleavestabdelay = 15;
  4192. chiperasepulsewidth = 0;
  4193. chiperasepolltimeout = 10;
  4194. programfusepulsewidth = 0;
  4195. programfusepolltimeout = 5;
  4196. programlockpulsewidth = 0;
  4197. programlockpolltimeout = 5;
  4198. idr = 0x31;
  4199. spmcr = 0x57;
  4200. memory "eeprom"
  4201. paged = no; /* leave this "no" */
  4202. page_size = 4; /* for parallel programming */
  4203. size = 1024;
  4204. min_write_delay = 9000;
  4205. max_write_delay = 9000;
  4206. readback_p1 = 0xff;
  4207. readback_p2 = 0xff;
  4208. read = " 1 0 1 0 0 0 0 0",
  4209. " x x x x x x a9 a8",
  4210. " a7 a6 a5 a4 a3 a2 a1 a0",
  4211. " o o o o o o o o";
  4212. write = " 1 1 0 0 0 0 0 0",
  4213. " x x x x x x a9 a8",
  4214. " a7 a6 a5 a4 a3 a2 a1 a0",
  4215. " i i i i i i i i";
  4216. loadpage_lo = " 1 1 0 0 0 0 0 1",
  4217. " 0 0 0 0 0 0 0 0",
  4218. " 0 0 0 0 0 0 a1 a0",
  4219. " i i i i i i i i";
  4220. writepage = " 1 1 0 0 0 0 1 0",
  4221. " 0 0 x x x x a9 a8",
  4222. " a7 a6 a5 a4 a3 a3 0 0",
  4223. " x x x x x x x x";
  4224. mode = 0x41;
  4225. delay = 20;
  4226. blocksize = 8;
  4227. readsize = 256;
  4228. ;
  4229. memory "flash"
  4230. paged = yes;
  4231. size = 32768;
  4232. page_size = 128;
  4233. num_pages = 256;
  4234. min_write_delay = 4500;
  4235. max_write_delay = 4500;
  4236. readback_p1 = 0xff;
  4237. readback_p2 = 0xff;
  4238. read_lo = " 0 0 1 0 0 0 0 0",
  4239. " x a14 a13 a12 a11 a10 a9 a8",
  4240. " a7 a6 a5 a4 a3 a2 a1 a0",
  4241. " o o o o o o o o";
  4242. read_hi = " 0 0 1 0 1 0 0 0",
  4243. " x a14 a13 a12 a11 a10 a9 a8",
  4244. " a7 a6 a5 a4 a3 a2 a1 a0",
  4245. " o o o o o o o o";
  4246. loadpage_lo = " 0 1 0 0 0 0 0 0",
  4247. " x x x x x x x x",
  4248. " x x a5 a4 a3 a2 a1 a0",
  4249. " i i i i i i i i";
  4250. loadpage_hi = " 0 1 0 0 1 0 0 0",
  4251. " x x x x x x x x",
  4252. " x x a5 a4 a3 a2 a1 a0",
  4253. " i i i i i i i i";
  4254. writepage = " 0 1 0 0 1 1 0 0",
  4255. " x x x a12 a11 a10 a9 a8",
  4256. " a7 a6 x x x x x x",
  4257. " x x x x x x x x";
  4258. mode = 0x41;
  4259. delay = 6;
  4260. blocksize = 256;
  4261. readsize = 256;
  4262. ;
  4263. memory "lfuse"
  4264. size = 1;
  4265. min_write_delay = 4500;
  4266. max_write_delay = 4500;
  4267. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 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 0 0 0",
  4270. "x x x x x x x x i i i i i i i i";
  4271. ;
  4272. memory "hfuse"
  4273. size = 1;
  4274. min_write_delay = 4500;
  4275. max_write_delay = 4500;
  4276. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  4277. "x x x x x x x x o o o o o o o o";
  4278. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  4279. "x x x x x x x x i i i i i i i i";
  4280. ;
  4281. memory "efuse"
  4282. size = 1;
  4283. min_write_delay = 4500;
  4284. max_write_delay = 4500;
  4285. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  4286. "x x x x x x x x o o o o o o o o";
  4287. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  4288. "x x x x x x x x x x x x x i i i";
  4289. ;
  4290. memory "lock"
  4291. size = 1;
  4292. min_write_delay = 4500;
  4293. max_write_delay = 4500;
  4294. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  4295. "x x x x x x x x x x o o o o o o";
  4296. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  4297. "x x x x x x x x 1 1 i i i i i i";
  4298. ;
  4299. memory "signature"
  4300. size = 3;
  4301. read = "0 0 1 1 0 0 0 0 0 0 0 x x x x x",
  4302. "x x x x x x a1 a0 o o o o o o o o";
  4303. ;
  4304. memory "calibration"
  4305. size = 1;
  4306. read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
  4307. "0 0 0 0 0 0 0 0 o o o o o o o o";
  4308. ;
  4309. ;
  4310. #------------------------------------------------------------
  4311. # ATmega649
  4312. #------------------------------------------------------------
  4313. part
  4314. id = "m649";
  4315. desc = "ATMEGA649";
  4316. has_jtag = yes;
  4317. # stk500_devcode = 0x85; # no STK500 support, only STK500v2
  4318. # avr910_devcode = 0x?; # try the ATmega169 one:
  4319. avr910_devcode = 0x75;
  4320. signature = 0x1e 0x96 0x03;
  4321. chip_erase_delay = 9000;
  4322. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  4323. "x x x x x x x x x x x x x x x x";
  4324. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 0 0 0 0 0",
  4325. "x x x x x x x x x x x x x x x x";
  4326. timeout = 200;
  4327. stabdelay = 100;
  4328. cmdexedelay = 25;
  4329. synchloops = 32;
  4330. bytedelay = 0;
  4331. pollindex = 3;
  4332. pollvalue = 0x53;
  4333. predelay = 1;
  4334. postdelay = 1;
  4335. pollmethod = 1;
  4336. pp_controlstack =
  4337. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  4338. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  4339. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  4340. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  4341. hventerstabdelay = 100;
  4342. progmodedelay = 0;
  4343. latchcycles = 5;
  4344. togglevtg = 1;
  4345. poweroffdelay = 15;
  4346. resetdelayms = 1;
  4347. resetdelayus = 0;
  4348. hvleavestabdelay = 15;
  4349. chiperasepulsewidth = 0;
  4350. chiperasepolltimeout = 10;
  4351. programfusepulsewidth = 0;
  4352. programfusepolltimeout = 5;
  4353. programlockpulsewidth = 0;
  4354. programlockpolltimeout = 5;
  4355. idr = 0x31;
  4356. spmcr = 0x57;
  4357. memory "eeprom"
  4358. paged = no; /* leave this "no" */
  4359. page_size = 8; /* for parallel programming */
  4360. size = 2048;
  4361. min_write_delay = 9000;
  4362. max_write_delay = 9000;
  4363. readback_p1 = 0xff;
  4364. readback_p2 = 0xff;
  4365. read = " 1 0 1 0 0 0 0 0",
  4366. " x x x x x a10 a9 a8",
  4367. " a7 a6 a5 a4 a3 a2 a1 a0",
  4368. " o o o o o o o o";
  4369. write = " 1 1 0 0 0 0 0 0",
  4370. " x x x x x a10 a9 a8",
  4371. " a7 a6 a5 a4 a3 a2 a1 a0",
  4372. " i i i i i i i i";
  4373. loadpage_lo = " 1 1 0 0 0 0 0 1",
  4374. " 0 0 0 0 0 0 0 0",
  4375. " 0 0 0 0 0 a2 a1 a0",
  4376. " i i i i i i i i";
  4377. writepage = " 1 1 0 0 0 0 1 0",
  4378. " 0 0 x x x a10 a9 a8",
  4379. " a7 a6 a5 a4 a3 0 0 0",
  4380. " x x x x x x x x";
  4381. mode = 0x41;
  4382. delay = 20;
  4383. blocksize = 8;
  4384. readsize = 256;
  4385. ;
  4386. memory "flash"
  4387. paged = yes;
  4388. size = 65536;
  4389. page_size = 256;
  4390. num_pages = 256;
  4391. min_write_delay = 4500;
  4392. max_write_delay = 4500;
  4393. readback_p1 = 0xff;
  4394. readback_p2 = 0xff;
  4395. read_lo = " 0 0 1 0 0 0 0 0",
  4396. "a15 a14 a13 a12 a11 a10 a9 a8",
  4397. " a7 a6 a5 a4 a3 a2 a1 a0",
  4398. " o o o o o o o o";
  4399. read_hi = " 0 0 1 0 1 0 0 0",
  4400. "a15 a14 a13 a12 a11 a10 a9 a8",
  4401. " a7 a6 a5 a4 a3 a2 a1 a0",
  4402. " o o o o o o o o";
  4403. loadpage_lo = " 0 1 0 0 0 0 0 0",
  4404. " x x x x x x x x",
  4405. " x a6 a5 a4 a3 a2 a1 a0",
  4406. " i i i i i i i i";
  4407. loadpage_hi = " 0 1 0 0 1 0 0 0",
  4408. " x x x x x x x x",
  4409. " x a6 a5 a4 a3 a2 a1 a0",
  4410. " i i i i i i i i";
  4411. writepage = " 0 1 0 0 1 1 0 0",
  4412. " x x x a12 a11 a10 a9 a8",
  4413. " a7 x x x x x x x",
  4414. " x x x x x x x x";
  4415. mode = 0x41;
  4416. delay = 6;
  4417. blocksize = 256;
  4418. readsize = 256;
  4419. ;
  4420. memory "lfuse"
  4421. size = 1;
  4422. min_write_delay = 4500;
  4423. max_write_delay = 4500;
  4424. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  4425. "x x x x x x x x o o o o o o o o";
  4426. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  4427. "x x x x x x x x i i i i i i i i";
  4428. ;
  4429. memory "hfuse"
  4430. size = 1;
  4431. min_write_delay = 4500;
  4432. max_write_delay = 4500;
  4433. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  4434. "x x x x x x x x o o o o o o o o";
  4435. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  4436. "x x x x x x x x i i i i i i i i";
  4437. ;
  4438. memory "efuse"
  4439. size = 1;
  4440. min_write_delay = 4500;
  4441. max_write_delay = 4500;
  4442. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  4443. "x x x x x x x x o o o o o o o o";
  4444. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  4445. "x x x x x x x x x x x x x i i i";
  4446. ;
  4447. memory "lock"
  4448. size = 1;
  4449. min_write_delay = 4500;
  4450. max_write_delay = 4500;
  4451. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  4452. "x x x x x x x x x x o o o o o o";
  4453. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  4454. "x x x x x x x x 1 1 i i i i i i";
  4455. ;
  4456. memory "signature"
  4457. size = 3;
  4458. read = "0 0 1 1 0 0 0 0 0 0 0 x x x x x",
  4459. "x x x x x x a1 a0 o o o o o o o o";
  4460. ;
  4461. memory "calibration"
  4462. size = 1;
  4463. read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
  4464. "0 0 0 0 0 0 0 0 o o o o o o o o";
  4465. ;
  4466. ;
  4467. #------------------------------------------------------------
  4468. # ATmega6490
  4469. #------------------------------------------------------------
  4470. # identical to ATmega649
  4471. part
  4472. id = "m6490";
  4473. desc = "ATMEGA6490";
  4474. has_jtag = yes;
  4475. # stk500_devcode = 0x85; # no STK500 support, only STK500v2
  4476. # avr910_devcode = 0x?; # try the ATmega169 one:
  4477. avr910_devcode = 0x75;
  4478. signature = 0x1e 0x96 0x04;
  4479. chip_erase_delay = 9000;
  4480. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  4481. "x x x x x x x x x x x x x x x x";
  4482. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 0 0 0 0 0",
  4483. "x x x x x x x x x x x x x x x x";
  4484. timeout = 200;
  4485. stabdelay = 100;
  4486. cmdexedelay = 25;
  4487. synchloops = 32;
  4488. bytedelay = 0;
  4489. pollindex = 3;
  4490. pollvalue = 0x53;
  4491. predelay = 1;
  4492. postdelay = 1;
  4493. pollmethod = 1;
  4494. pp_controlstack =
  4495. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  4496. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  4497. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  4498. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  4499. hventerstabdelay = 100;
  4500. progmodedelay = 0;
  4501. latchcycles = 5;
  4502. togglevtg = 1;
  4503. poweroffdelay = 15;
  4504. resetdelayms = 1;
  4505. resetdelayus = 0;
  4506. hvleavestabdelay = 15;
  4507. chiperasepulsewidth = 0;
  4508. chiperasepolltimeout = 10;
  4509. programfusepulsewidth = 0;
  4510. programfusepolltimeout = 5;
  4511. programlockpulsewidth = 0;
  4512. programlockpolltimeout = 5;
  4513. idr = 0x31;
  4514. spmcr = 0x57;
  4515. memory "eeprom"
  4516. paged = no; /* leave this "no" */
  4517. page_size = 8; /* for parallel programming */
  4518. size = 2048;
  4519. min_write_delay = 9000;
  4520. max_write_delay = 9000;
  4521. readback_p1 = 0xff;
  4522. readback_p2 = 0xff;
  4523. read = " 1 0 1 0 0 0 0 0",
  4524. " x x x x x a10 a9 a8",
  4525. " a7 a6 a5 a4 a3 a2 a1 a0",
  4526. " o o o o o o o o";
  4527. write = " 1 1 0 0 0 0 0 0",
  4528. " x x x x x a10 a9 a8",
  4529. " a7 a6 a5 a4 a3 a2 a1 a0",
  4530. " i i i i i i i i";
  4531. loadpage_lo = " 1 1 0 0 0 0 0 1",
  4532. " 0 0 0 0 0 0 0 0",
  4533. " 0 0 0 0 0 a2 a1 a0",
  4534. " i i i i i i i i";
  4535. writepage = " 1 1 0 0 0 0 1 0",
  4536. " 0 0 x x x x x a8",
  4537. " a7 a6 a5 a4 a3 0 0 0",
  4538. " x x x x x x x x";
  4539. loadpage_lo = " 1 1 0 0 0 0 0 1",
  4540. " 0 0 0 0 0 0 0 0",
  4541. " 0 0 0 0 0 a2 a1 a0",
  4542. " i i i i i i i i";
  4543. writepage = " 1 1 0 0 0 0 1 0",
  4544. " 0 0 x x x a10 a9 a8",
  4545. " a7 a6 a5 a4 a3 0 0 0",
  4546. " x x x x x x x x";
  4547. mode = 0x41;
  4548. delay = 20;
  4549. blocksize = 8;
  4550. readsize = 256;
  4551. ;
  4552. memory "flash"
  4553. paged = yes;
  4554. size = 65536;
  4555. page_size = 256;
  4556. num_pages = 256;
  4557. min_write_delay = 4500;
  4558. max_write_delay = 4500;
  4559. readback_p1 = 0xff;
  4560. readback_p2 = 0xff;
  4561. read_lo = " 0 0 1 0 0 0 0 0",
  4562. "a15 a14 a13 a12 a11 a10 a9 a8",
  4563. " a7 a6 a5 a4 a3 a2 a1 a0",
  4564. " o o o o o o o o";
  4565. read_hi = " 0 0 1 0 1 0 0 0",
  4566. "a15 a14 a13 a12 a11 a10 a9 a8",
  4567. " a7 a6 a5 a4 a3 a2 a1 a0",
  4568. " o o o o o o o o";
  4569. loadpage_lo = " 0 1 0 0 0 0 0 0",
  4570. " x x x x x x x x",
  4571. " x a6 a5 a4 a3 a2 a1 a0",
  4572. " i i i i i i i i";
  4573. loadpage_hi = " 0 1 0 0 1 0 0 0",
  4574. " x x x x x x x x",
  4575. " x a6 a5 a4 a3 a2 a1 a0",
  4576. " i i i i i i i i";
  4577. writepage = " 0 1 0 0 1 1 0 0",
  4578. " x x x a12 a11 a10 a9 a8",
  4579. " a7 x x x x x x x",
  4580. " x x x x x x x x";
  4581. mode = 0x41;
  4582. delay = 6;
  4583. blocksize = 256;
  4584. readsize = 256;
  4585. ;
  4586. memory "lfuse"
  4587. size = 1;
  4588. min_write_delay = 4500;
  4589. max_write_delay = 4500;
  4590. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  4591. "x x x x x x x x o o o o o o o o";
  4592. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  4593. "x x x x x x x x i i i i i i i i";
  4594. ;
  4595. memory "hfuse"
  4596. size = 1;
  4597. min_write_delay = 4500;
  4598. max_write_delay = 4500;
  4599. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  4600. "x x x x x x x x o o o o o o o o";
  4601. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  4602. "x x x x x x x x i i i i i i i i";
  4603. ;
  4604. memory "efuse"
  4605. size = 1;
  4606. min_write_delay = 4500;
  4607. max_write_delay = 4500;
  4608. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  4609. "x x x x x x x x o o o o o o o o";
  4610. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  4611. "x x x x x x x x x x x x x i i i";
  4612. ;
  4613. memory "lock"
  4614. size = 1;
  4615. min_write_delay = 4500;
  4616. max_write_delay = 4500;
  4617. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  4618. "x x x x x x x x x x o o o o o o";
  4619. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  4620. "x x x x x x x x 1 1 i i i i i i";
  4621. ;
  4622. memory "signature"
  4623. size = 3;
  4624. read = "0 0 1 1 0 0 0 0 0 0 0 x x x x x",
  4625. "x x x x x x a1 a0 o o o o o o o o";
  4626. ;
  4627. memory "calibration"
  4628. size = 1;
  4629. read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
  4630. "0 0 0 0 0 0 0 0 o o o o o o o o";
  4631. ;
  4632. ;
  4633. #------------------------------------------------------------
  4634. # ATmega32
  4635. #------------------------------------------------------------
  4636. part
  4637. id = "m32";
  4638. desc = "ATMEGA32";
  4639. has_jtag = yes;
  4640. stk500_devcode = 0x91;
  4641. avr910_devcode = 0x72;
  4642. signature = 0x1e 0x95 0x02;
  4643. chip_erase_delay = 9000;
  4644. pagel = 0xd7;
  4645. bs2 = 0xa0;
  4646. reset = dedicated;
  4647. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  4648. "x x x x x x x x x x x x x x x x";
  4649. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 0 0 0 0 0",
  4650. "x x x x x x x x x x x x x x x x";
  4651. timeout = 200;
  4652. stabdelay = 100;
  4653. cmdexedelay = 25;
  4654. synchloops = 32;
  4655. bytedelay = 0;
  4656. pollindex = 3;
  4657. pollvalue = 0x53;
  4658. predelay = 1;
  4659. postdelay = 1;
  4660. pollmethod = 0;
  4661. pp_controlstack =
  4662. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  4663. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  4664. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  4665. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  4666. hventerstabdelay = 100;
  4667. progmodedelay = 0;
  4668. latchcycles = 6;
  4669. togglevtg = 0;
  4670. poweroffdelay = 0;
  4671. resetdelayms = 0;
  4672. resetdelayus = 0;
  4673. hvleavestabdelay = 15;
  4674. chiperasepulsewidth = 0;
  4675. chiperasepolltimeout = 10;
  4676. programfusepulsewidth = 0;
  4677. programfusepolltimeout = 5;
  4678. programlockpulsewidth = 0;
  4679. programlockpolltimeout = 5;
  4680. idr = 0x31;
  4681. spmcr = 0x57;
  4682. allowfullpagebitstream = yes;
  4683. memory "eeprom"
  4684. paged = no; /* leave this "no" */
  4685. page_size = 4; /* for parallel programming */
  4686. size = 1024;
  4687. min_write_delay = 9000;
  4688. max_write_delay = 9000;
  4689. readback_p1 = 0xff;
  4690. readback_p2 = 0xff;
  4691. read = " 1 0 1 0 0 0 0 0",
  4692. " 0 0 x x x x a9 a8",
  4693. " a7 a6 a5 a4 a3 a2 a1 a0",
  4694. " o o o o o o o o";
  4695. write = " 1 1 0 0 0 0 0 0",
  4696. " 0 0 x x x x a9 a8",
  4697. " a7 a6 a5 a4 a3 a2 a1 a0",
  4698. " i i i i i i i i";
  4699. loadpage_lo = " 1 1 0 0 0 0 0 1",
  4700. " 0 0 0 0 0 0 0 0",
  4701. " 0 0 0 0 0 0 a1 a0",
  4702. " i i i i i i i i";
  4703. writepage = " 1 1 0 0 0 0 1 0",
  4704. " 0 0 x x x x a9 a8",
  4705. " a7 a6 a5 a4 a3 a2 0 0",
  4706. " x x x x x x x x";
  4707. mode = 0x04;
  4708. delay = 10;
  4709. blocksize = 64;
  4710. readsize = 256;
  4711. ;
  4712. memory "flash"
  4713. paged = yes;
  4714. size = 32768;
  4715. page_size = 128;
  4716. num_pages = 256;
  4717. min_write_delay = 4500;
  4718. max_write_delay = 4500;
  4719. readback_p1 = 0xff;
  4720. readback_p2 = 0xff;
  4721. read_lo = " 0 0 1 0 0 0 0 0",
  4722. " 0 0 a13 a12 a11 a10 a9 a8",
  4723. " a7 a6 a5 a4 a3 a2 a1 a0",
  4724. " o o o o o o o o";
  4725. read_hi = " 0 0 1 0 1 0 0 0",
  4726. " 0 0 a13 a12 a11 a10 a9 a8",
  4727. " a7 a6 a5 a4 a3 a2 a1 a0",
  4728. " o o o o o o o o";
  4729. loadpage_lo = " 0 1 0 0 0 0 0 0",
  4730. " 0 0 x x x x x x",
  4731. " x x a5 a4 a3 a2 a1 a0",
  4732. " i i i i i i i i";
  4733. loadpage_hi = " 0 1 0 0 1 0 0 0",
  4734. " 0 0 x x x x x x",
  4735. " x x a5 a4 a3 a2 a1 a0",
  4736. " i i i i i i i i";
  4737. writepage = " 0 1 0 0 1 1 0 0",
  4738. " 0 0 a13 a12 a11 a10 a9 a8",
  4739. " a7 a6 x x x x x x",
  4740. " x x x x x x x x";
  4741. mode = 0x21;
  4742. delay = 6;
  4743. blocksize = 64;
  4744. readsize = 256;
  4745. ;
  4746. memory "lfuse"
  4747. size = 1;
  4748. min_write_delay = 2000;
  4749. max_write_delay = 2000;
  4750. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  4751. "x x x x x x x x o o o o o o o o";
  4752. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  4753. "x x x x x x x x i i i i i i i i";
  4754. ;
  4755. memory "hfuse"
  4756. size = 1;
  4757. min_write_delay = 2000;
  4758. max_write_delay = 2000;
  4759. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  4760. "x x x x x x x x o o o o o o o o";
  4761. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  4762. "x x x x x x x x i i i i i i i i";
  4763. ;
  4764. memory "lock"
  4765. size = 1;
  4766. min_write_delay = 2000;
  4767. max_write_delay = 2000;
  4768. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  4769. "x x x x x x x x x x o o o o o o";
  4770. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  4771. "x x x x x x x x 1 1 i i i i i i";
  4772. ;
  4773. memory "signature"
  4774. size = 3;
  4775. read = "0 0 1 1 0 0 0 0 x x x x x x x x",
  4776. "x x x x x x a1 a0 o o o o o o o o";
  4777. ;
  4778. memory "calibration"
  4779. size = 4;
  4780. read = "0 0 1 1 1 0 0 0 0 0 x x x x x x",
  4781. "0 0 0 0 0 0 a1 a0 o o o o o o o o";
  4782. ;
  4783. ;
  4784. #------------------------------------------------------------
  4785. # ATmega161
  4786. #------------------------------------------------------------
  4787. part
  4788. id = "m161";
  4789. desc = "ATMEGA161";
  4790. stk500_devcode = 0x80;
  4791. avr910_devcode = 0x60;
  4792. signature = 0x1e 0x94 0x01;
  4793. chip_erase_delay = 28000;
  4794. pagel = 0xd7;
  4795. bs2 = 0xa0;
  4796. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  4797. "x x x x x x x x x x x x x x x x";
  4798. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 0 0 0 0 0",
  4799. "x x x x x x x x x x x x x x x x";
  4800. timeout = 200;
  4801. stabdelay = 100;
  4802. cmdexedelay = 25;
  4803. synchloops = 32;
  4804. bytedelay = 0;
  4805. pollindex = 3;
  4806. pollvalue = 0x53;
  4807. predelay = 1;
  4808. postdelay = 1;
  4809. pollmethod = 0;
  4810. pp_controlstack =
  4811. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  4812. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  4813. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  4814. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  4815. hventerstabdelay = 100;
  4816. progmodedelay = 0;
  4817. latchcycles = 0;
  4818. togglevtg = 0;
  4819. poweroffdelay = 0;
  4820. resetdelayms = 0;
  4821. resetdelayus = 0;
  4822. hvleavestabdelay = 15;
  4823. chiperasepulsewidth = 0;
  4824. chiperasepolltimeout = 30;
  4825. programfusepulsewidth = 0;
  4826. programfusepolltimeout = 2;
  4827. programlockpulsewidth = 0;
  4828. programlockpolltimeout = 2;
  4829. memory "eeprom"
  4830. size = 512;
  4831. min_write_delay = 3400;
  4832. max_write_delay = 3400;
  4833. readback_p1 = 0xff;
  4834. readback_p2 = 0xff;
  4835. read = " 1 0 1 0 0 0 0 0",
  4836. " x x x x x x x a8",
  4837. " a7 a6 a5 a4 a3 a2 a1 a0",
  4838. " o o o o o o o o";
  4839. write = " 1 1 0 0 0 0 0 0",
  4840. " x x x x x x x a8",
  4841. " a7 a6 a5 a4 a3 a2 a1 a0",
  4842. " i i i i i i i i";
  4843. mode = 0x04;
  4844. delay = 5;
  4845. blocksize = 128;
  4846. readsize = 256;
  4847. ;
  4848. memory "flash"
  4849. paged = yes;
  4850. size = 16384;
  4851. page_size = 128;
  4852. num_pages = 128;
  4853. min_write_delay = 14000;
  4854. max_write_delay = 14000;
  4855. readback_p1 = 0xff;
  4856. readback_p2 = 0xff;
  4857. read_lo = " 0 0 1 0 0 0 0 0",
  4858. " x x x a12 a11 a10 a9 a8",
  4859. " a7 a6 a5 a4 a3 a2 a1 a0",
  4860. " o o o o o o o o";
  4861. read_hi = " 0 0 1 0 1 0 0 0",
  4862. " x x x a12 a11 a10 a9 a8",
  4863. " a7 a6 a5 a4 a3 a2 a1 a0",
  4864. " o o o o o o o o";
  4865. loadpage_lo = " 0 1 0 0 0 0 0 0",
  4866. " x x x x x x x x",
  4867. " x x a5 a4 a3 a2 a1 a0",
  4868. " i i i i i i i i";
  4869. loadpage_hi = " 0 1 0 0 1 0 0 0",
  4870. " x x x x x x x x",
  4871. " x x a5 a4 a3 a2 a1 a0",
  4872. " i i i i i i i i";
  4873. writepage = " 0 1 0 0 1 1 0 0",
  4874. " x x x a12 a11 a10 a9 a8",
  4875. " a7 a6 x x x x x x",
  4876. " x x x x x x x x";
  4877. mode = 0x21;
  4878. delay = 16;
  4879. blocksize = 128;
  4880. readsize = 256;
  4881. ;
  4882. memory "fuse"
  4883. size = 1;
  4884. min_write_delay = 2000;
  4885. max_write_delay = 2000;
  4886. read = "0 1 0 1 0 0 0 0 x x x x x x x x",
  4887. "x x x x x x x x x o x o o o o o";
  4888. write = "1 0 1 0 1 1 0 0 1 0 1 x x x x x",
  4889. "x x x x x x x x 1 i 1 i i i i i";
  4890. ;
  4891. memory "lock"
  4892. size = 1;
  4893. min_write_delay = 2000;
  4894. max_write_delay = 2000;
  4895. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  4896. "x x x x x x x x x x o o o o o o";
  4897. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  4898. "x x x x x x x x 1 1 i i i i i i";
  4899. ;
  4900. memory "signature"
  4901. size = 3;
  4902. read = "0 0 1 1 0 0 0 0 x x x x x x x x",
  4903. "x x x x x x a1 a0 o o o o o o o o";
  4904. ;
  4905. ;
  4906. #------------------------------------------------------------
  4907. # ATmega8
  4908. #------------------------------------------------------------
  4909. part
  4910. id = "m8";
  4911. desc = "ATMEGA8";
  4912. stk500_devcode = 0x70;
  4913. avr910_devcode = 0x76;
  4914. signature = 0x1e 0x93 0x07;
  4915. pagel = 0xd7;
  4916. bs2 = 0xc2;
  4917. chip_erase_delay = 10000;
  4918. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  4919. "x x x x x x x x x x x x x x x x";
  4920. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
  4921. "x x x x x x x x x x x x x x x x";
  4922. timeout = 200;
  4923. stabdelay = 100;
  4924. cmdexedelay = 25;
  4925. synchloops = 32;
  4926. bytedelay = 0;
  4927. pollindex = 3;
  4928. pollvalue = 0x53;
  4929. predelay = 1;
  4930. postdelay = 1;
  4931. pollmethod = 0;
  4932. pp_controlstack =
  4933. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  4934. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  4935. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  4936. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  4937. hventerstabdelay = 100;
  4938. progmodedelay = 0;
  4939. latchcycles = 5;
  4940. togglevtg = 1;
  4941. poweroffdelay = 15;
  4942. resetdelayms = 2;
  4943. resetdelayus = 0;
  4944. hvleavestabdelay = 15;
  4945. resetdelay = 15;
  4946. chiperasepulsewidth = 0;
  4947. chiperasepolltimeout = 10;
  4948. programfusepulsewidth = 0;
  4949. programfusepolltimeout = 5;
  4950. programlockpulsewidth = 0;
  4951. programlockpolltimeout = 5;
  4952. memory "eeprom"
  4953. size = 512;
  4954. min_write_delay = 9000;
  4955. max_write_delay = 9000;
  4956. readback_p1 = 0xff;
  4957. readback_p2 = 0xff;
  4958. read = " 1 0 1 0 0 0 0 0",
  4959. " 0 0 x x x x x a8",
  4960. " a7 a6 a5 a4 a3 a2 a1 a0",
  4961. " o o o o o o o o";
  4962. write = " 1 1 0 0 0 0 0 0",
  4963. " 0 0 x x x x x a8",
  4964. " a7 a6 a5 a4 a3 a2 a1 a0",
  4965. " i i i i i i i i";
  4966. mode = 0x04;
  4967. delay = 20;
  4968. blocksize = 128;
  4969. readsize = 256;
  4970. ;
  4971. memory "flash"
  4972. paged = yes;
  4973. size = 8192;
  4974. page_size = 64;
  4975. num_pages = 128;
  4976. min_write_delay = 4500;
  4977. max_write_delay = 4500;
  4978. readback_p1 = 0xff;
  4979. readback_p2 = 0x00;
  4980. read_lo = " 0 0 1 0 0 0 0 0",
  4981. " 0 0 0 0 a11 a10 a9 a8",
  4982. " a7 a6 a5 a4 a3 a2 a1 a0",
  4983. " o o o o o o o o";
  4984. read_hi = " 0 0 1 0 1 0 0 0",
  4985. " 0 0 0 0 a11 a10 a9 a8",
  4986. " a7 a6 a5 a4 a3 a2 a1 a0",
  4987. " o o o o o o o o";
  4988. loadpage_lo = " 0 1 0 0 0 0 0 0",
  4989. " 0 0 0 0 x x x x",
  4990. " x x x a4 a3 a2 a1 a0",
  4991. " i i i i i i i i";
  4992. loadpage_hi = " 0 1 0 0 1 0 0 0",
  4993. " 0 0 0 0 x x x x",
  4994. " x x x a4 a3 a2 a1 a0",
  4995. " i i i i i i i i";
  4996. writepage = " 0 1 0 0 1 1 0 0",
  4997. " 0 0 0 0 a11 a10 a9 a8",
  4998. " a7 a6 a5 x x x x x",
  4999. " x x x x x x x x";
  5000. mode = 0x21;
  5001. delay = 10;
  5002. blocksize = 64;
  5003. readsize = 256;
  5004. ;
  5005. memory "lfuse"
  5006. size = 1;
  5007. min_write_delay = 2000;
  5008. max_write_delay = 2000;
  5009. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  5010. "x x x x x x x x o o o o o o o o";
  5011. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  5012. "x x x x x x x x i i i i i i i i";
  5013. ;
  5014. memory "hfuse"
  5015. size = 1;
  5016. min_write_delay = 2000;
  5017. max_write_delay = 2000;
  5018. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  5019. "x x x x x x x x o o o o o o o o";
  5020. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  5021. "x x x x x x x x i i i i i i i i";
  5022. ;
  5023. memory "lock"
  5024. size = 1;
  5025. min_write_delay = 2000;
  5026. max_write_delay = 2000;
  5027. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  5028. "x x x x x x x x x x o o o o o o";
  5029. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  5030. "x x x x x x x x 1 1 i i i i i i";
  5031. ;
  5032. memory "calibration"
  5033. size = 4;
  5034. read = "0 0 1 1 1 0 0 0 0 0 x x x x x x",
  5035. "0 0 0 0 0 0 a1 a0 o o o o o o o o";
  5036. ;
  5037. memory "signature"
  5038. size = 3;
  5039. read = "0 0 1 1 0 0 0 0 x x x x x x x x",
  5040. "x x x x x x a1 a0 o o o o o o o o";
  5041. ;
  5042. ;
  5043. #------------------------------------------------------------
  5044. # ATmega8515
  5045. #------------------------------------------------------------
  5046. part
  5047. id = "m8515";
  5048. desc = "ATMEGA8515";
  5049. stk500_devcode = 0x63;
  5050. avr910_devcode = 0x3A;
  5051. signature = 0x1e 0x93 0x06;
  5052. chip_erase_delay = 9000;
  5053. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  5054. "x x x x x x x x x x x x x x x x";
  5055. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
  5056. "x x x x x x x x x x x x x x x x";
  5057. timeout = 200;
  5058. stabdelay = 100;
  5059. cmdexedelay = 25;
  5060. synchloops = 32;
  5061. bytedelay = 0;
  5062. pollindex = 3;
  5063. pollvalue = 0x53;
  5064. predelay = 1;
  5065. postdelay = 1;
  5066. pollmethod = 0;
  5067. pp_controlstack =
  5068. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  5069. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  5070. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  5071. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  5072. hventerstabdelay = 100;
  5073. progmodedelay = 0;
  5074. latchcycles = 6;
  5075. togglevtg = 0;
  5076. poweroffdelay = 0;
  5077. resetdelayms = 0;
  5078. resetdelayus = 0;
  5079. hvleavestabdelay = 15;
  5080. chiperasepulsewidth = 0;
  5081. chiperasepolltimeout = 10;
  5082. programfusepulsewidth = 0;
  5083. programfusepolltimeout = 5;
  5084. programlockpulsewidth = 0;
  5085. programlockpolltimeout = 5;
  5086. memory "eeprom"
  5087. size = 512;
  5088. min_write_delay = 9000;
  5089. max_write_delay = 9000;
  5090. readback_p1 = 0xff;
  5091. readback_p2 = 0xff;
  5092. read = " 1 0 1 0 0 0 0 0",
  5093. " 0 0 x x x x x a8",
  5094. " a7 a6 a5 a4 a3 a2 a1 a0",
  5095. " o o o o o o o o";
  5096. write = " 1 1 0 0 0 0 0 0",
  5097. " 0 0 x x x x x a8",
  5098. " a7 a6 a5 a4 a3 a2 a1 a0",
  5099. " i i i i i i i i";
  5100. mode = 0x04;
  5101. delay = 10;
  5102. blocksize = 128;
  5103. readsize = 256;
  5104. ;
  5105. memory "flash"
  5106. paged = yes;
  5107. size = 8192;
  5108. page_size = 64;
  5109. num_pages = 128;
  5110. min_write_delay = 4500;
  5111. max_write_delay = 4500;
  5112. readback_p1 = 0xff;
  5113. readback_p2 = 0xff;
  5114. read_lo = " 0 0 1 0 0 0 0 0",
  5115. " 0 0 0 0 a11 a10 a9 a8",
  5116. " a7 a6 a5 a4 a3 a2 a1 a0",
  5117. " o o o o o o o o";
  5118. read_hi = " 0 0 1 0 1 0 0 0",
  5119. " 0 0 0 0 a11 a10 a9 a8",
  5120. " a7 a6 a5 a4 a3 a2 a1 a0",
  5121. " o o o o o o o o";
  5122. loadpage_lo = " 0 1 0 0 0 0 0 0",
  5123. " 0 0 0 0 x x x x",
  5124. " x x x a4 a3 a2 a1 a0",
  5125. " i i i i i i i i";
  5126. loadpage_hi = " 0 1 0 0 1 0 0 0",
  5127. " 0 0 0 0 x x x x",
  5128. " x x x a4 a3 a2 a1 a0",
  5129. " i i i i i i i i";
  5130. writepage = " 0 1 0 0 1 1 0 0",
  5131. " 0 0 0 0 a11 a10 a9 a8",
  5132. " a7 a6 a5 x x x x x",
  5133. " x x x x x x x x";
  5134. mode = 0x21;
  5135. delay = 6;
  5136. blocksize = 64;
  5137. readsize = 256;
  5138. ;
  5139. memory "lfuse"
  5140. size = 1;
  5141. min_write_delay = 4500;
  5142. max_write_delay = 4500;
  5143. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  5144. "x x x x x x x x o o o o o o o o";
  5145. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  5146. "x x x x x x x x i i i i i i i i";
  5147. ;
  5148. memory "hfuse"
  5149. size = 1;
  5150. min_write_delay = 4500;
  5151. max_write_delay = 4500;
  5152. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  5153. "x x x x x x x x o o o o o o o o";
  5154. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  5155. "x x x x x x x x i i i i i i i i";
  5156. ;
  5157. memory "lock"
  5158. size = 1;
  5159. min_write_delay = 4500;
  5160. max_write_delay = 4500;
  5161. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  5162. "x x x x x x x x x x o o o o o o";
  5163. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  5164. "x x x x x x x x 1 1 i i i i i i";
  5165. ;
  5166. memory "calibration"
  5167. size = 4;
  5168. read = "0 0 1 1 1 0 0 0 0 0 x x x x x x",
  5169. "0 0 0 0 0 0 a1 a0 o o o o o o o o";
  5170. ;
  5171. memory "signature"
  5172. size = 3;
  5173. read = "0 0 1 1 0 0 0 0 x x x x x x x x",
  5174. "x x x x x x a1 a0 o o o o o o o o";
  5175. ;
  5176. ;
  5177. #------------------------------------------------------------
  5178. # ATmega8535
  5179. #------------------------------------------------------------
  5180. part
  5181. id = "m8535";
  5182. desc = "ATMEGA8535";
  5183. stk500_devcode = 0x64;
  5184. avr910_devcode = 0x69;
  5185. signature = 0x1e 0x93 0x08;
  5186. pagel = 0xd7;
  5187. bs2 = 0xa0;
  5188. chip_erase_delay = 9000;
  5189. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  5190. "x x x x x x x x x x x x x x x x";
  5191. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
  5192. "x x x x x x x x x x x x x x x x";
  5193. timeout = 200;
  5194. stabdelay = 100;
  5195. cmdexedelay = 25;
  5196. synchloops = 32;
  5197. bytedelay = 0;
  5198. pollindex = 3;
  5199. pollvalue = 0x53;
  5200. predelay = 1;
  5201. postdelay = 1;
  5202. pollmethod = 0;
  5203. pp_controlstack =
  5204. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  5205. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  5206. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  5207. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  5208. hventerstabdelay = 100;
  5209. progmodedelay = 0;
  5210. latchcycles = 6;
  5211. togglevtg = 0;
  5212. poweroffdelay = 0;
  5213. resetdelayms = 0;
  5214. resetdelayus = 0;
  5215. hvleavestabdelay = 15;
  5216. chiperasepulsewidth = 0;
  5217. chiperasepolltimeout = 10;
  5218. programfusepulsewidth = 0;
  5219. programfusepolltimeout = 5;
  5220. programlockpulsewidth = 0;
  5221. programlockpolltimeout = 5;
  5222. memory "eeprom"
  5223. size = 512;
  5224. min_write_delay = 9000;
  5225. max_write_delay = 9000;
  5226. readback_p1 = 0xff;
  5227. readback_p2 = 0xff;
  5228. read = " 1 0 1 0 0 0 0 0",
  5229. " 0 0 x x x x x a8",
  5230. " a7 a6 a5 a4 a3 a2 a1 a0",
  5231. " o o o o o o o o";
  5232. write = " 1 1 0 0 0 0 0 0",
  5233. " 0 0 x x x x x a8",
  5234. " a7 a6 a5 a4 a3 a2 a1 a0",
  5235. " i i i i i i i i";
  5236. mode = 0x04;
  5237. delay = 10;
  5238. blocksize = 128;
  5239. readsize = 256;
  5240. ;
  5241. memory "flash"
  5242. paged = yes;
  5243. size = 8192;
  5244. page_size = 64;
  5245. num_pages = 128;
  5246. min_write_delay = 4500;
  5247. max_write_delay = 4500;
  5248. readback_p1 = 0xff;
  5249. readback_p2 = 0xff;
  5250. read_lo = " 0 0 1 0 0 0 0 0",
  5251. " 0 0 0 0 a11 a10 a9 a8",
  5252. " a7 a6 a5 a4 a3 a2 a1 a0",
  5253. " o o o o o o o o";
  5254. read_hi = " 0 0 1 0 1 0 0 0",
  5255. " 0 0 0 0 a11 a10 a9 a8",
  5256. " a7 a6 a5 a4 a3 a2 a1 a0",
  5257. " o o o o o o o o";
  5258. loadpage_lo = " 0 1 0 0 0 0 0 0",
  5259. " 0 0 0 0 x x x x",
  5260. " x x x a4 a3 a2 a1 a0",
  5261. " i i i i i i i i";
  5262. loadpage_hi = " 0 1 0 0 1 0 0 0",
  5263. " 0 0 0 0 x x x x",
  5264. " x x x a4 a3 a2 a1 a0",
  5265. " i i i i i i i i";
  5266. writepage = " 0 1 0 0 1 1 0 0",
  5267. " 0 0 0 0 a11 a10 a9 a8",
  5268. " a7 a6 a5 x x x x x",
  5269. " x x x x x x x x";
  5270. mode = 0x21;
  5271. delay = 6;
  5272. blocksize = 64;
  5273. readsize = 256;
  5274. ;
  5275. memory "lfuse"
  5276. size = 1;
  5277. min_write_delay = 2000;
  5278. max_write_delay = 2000;
  5279. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  5280. "x x x x x x x x o o o o o o o o";
  5281. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  5282. "x x x x x x x x i i i i i i i i";
  5283. ;
  5284. memory "hfuse"
  5285. size = 1;
  5286. min_write_delay = 2000;
  5287. max_write_delay = 2000;
  5288. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  5289. "x x x x x x x x o o o o o o o o";
  5290. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  5291. "x x x x x x x x i i i i i i i i";
  5292. ;
  5293. memory "lock"
  5294. size = 1;
  5295. min_write_delay = 2000;
  5296. max_write_delay = 2000;
  5297. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  5298. "x x x x x x x x x x o o o o o o";
  5299. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  5300. "x x x x x x x x 1 1 i i i i i i";
  5301. ;
  5302. memory "calibration"
  5303. size = 4;
  5304. read = "0 0 1 1 1 0 0 0 0 0 x x x x x x",
  5305. "0 0 0 0 0 0 a1 a0 o o o o o o o o";
  5306. ;
  5307. memory "signature"
  5308. size = 3;
  5309. read = "0 0 1 1 0 0 0 0 x x x x x x x x",
  5310. "x x x x x x a1 a0 o o o o o o o o";
  5311. ;
  5312. ;
  5313. #------------------------------------------------------------
  5314. # ATtiny26
  5315. #------------------------------------------------------------
  5316. part
  5317. id = "t26";
  5318. desc = "ATTINY26";
  5319. stk500_devcode = 0x21;
  5320. avr910_devcode = 0x5e;
  5321. signature = 0x1e 0x91 0x09;
  5322. pagel = 0xb3;
  5323. bs2 = 0xb2;
  5324. chip_erase_delay = 9000;
  5325. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  5326. "x x x x x x x x x x x x x x x x";
  5327. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
  5328. "x x x x x x x x x x x x x x x x";
  5329. timeout = 200;
  5330. stabdelay = 100;
  5331. cmdexedelay = 25;
  5332. synchloops = 32;
  5333. bytedelay = 0;
  5334. pollindex = 3;
  5335. pollvalue = 0x53;
  5336. predelay = 1;
  5337. postdelay = 1;
  5338. pollmethod = 0;
  5339. pp_controlstack =
  5340. 0xC4, 0xE4, 0xC4, 0xE4, 0xCC, 0xEC, 0xCC, 0xEC,
  5341. 0xD4, 0xF4, 0xD4, 0xF4, 0xDC, 0xFC, 0xDC, 0xFC,
  5342. 0xC8, 0xE8, 0xD8, 0xF8, 0x4C, 0x6C, 0x5C, 0x7C,
  5343. 0xEC, 0xBC, 0x00, 0x06, 0x00, 0x00, 0x00, 0x00;
  5344. hventerstabdelay = 100;
  5345. progmodedelay = 0;
  5346. latchcycles = 5;
  5347. togglevtg = 1;
  5348. poweroffdelay = 15;
  5349. resetdelayms = 2;
  5350. resetdelayus = 0;
  5351. hvleavestabdelay = 15;
  5352. chiperasepulsewidth = 0;
  5353. chiperasepolltimeout = 10;
  5354. programfusepulsewidth = 0;
  5355. programfusepolltimeout = 5;
  5356. programlockpulsewidth = 0;
  5357. programlockpolltimeout = 5;
  5358. memory "eeprom"
  5359. size = 128;
  5360. min_write_delay = 9000;
  5361. max_write_delay = 9000;
  5362. readback_p1 = 0xff;
  5363. readback_p2 = 0xff;
  5364. read = "1 0 1 0 0 0 0 0 x x x x x x x x",
  5365. "x a6 a5 a4 a3 a2 a1 a0 o o o o o o o o";
  5366. write = "1 1 0 0 0 0 0 0 x x x x x x x x",
  5367. "x a6 a5 a4 a3 a2 a1 a0 i i i i i i i i";
  5368. mode = 0x04;
  5369. delay = 10;
  5370. blocksize = 64;
  5371. readsize = 256;
  5372. ;
  5373. memory "flash"
  5374. paged = yes;
  5375. size = 2048;
  5376. page_size = 32;
  5377. num_pages = 64;
  5378. min_write_delay = 4500;
  5379. max_write_delay = 4500;
  5380. readback_p1 = 0xff;
  5381. readback_p2 = 0xff;
  5382. read_lo = " 0 0 1 0 0 0 0 0",
  5383. " x x x x x x a9 a8",
  5384. " a7 a6 a5 a4 a3 a2 a1 a0",
  5385. " o o o o o o o o";
  5386. read_hi = " 0 0 1 0 1 0 0 0",
  5387. " x x x x x x a9 a8",
  5388. " a7 a6 a5 a4 a3 a2 a1 a0",
  5389. " o o o o o o o o";
  5390. loadpage_lo = " 0 1 0 0 0 0 0 0",
  5391. " x x x x x x x x",
  5392. " x x x x a3 a2 a1 a0",
  5393. " i i i i i i i i";
  5394. loadpage_hi = " 0 1 0 0 1 0 0 0",
  5395. " x x x x x x x x",
  5396. " x x x x a3 a2 a1 a0",
  5397. " i i i i i i i i";
  5398. writepage = " 0 1 0 0 1 1 0 0",
  5399. " x x x x x x a9 a8",
  5400. " a7 a6 a5 a4 x x x x",
  5401. " x x x x x x x x";
  5402. mode = 0x21;
  5403. delay = 6;
  5404. blocksize = 16;
  5405. readsize = 256;
  5406. ;
  5407. memory "signature"
  5408. size = 3;
  5409. read = "0 0 1 1 0 0 0 0 x x x x x x x x",
  5410. "0 0 0 0 0 0 a1 a0 o o o o o o o o";
  5411. ;
  5412. memory "lock"
  5413. size = 1;
  5414. read = "0 1 0 1 1 0 0 0 x x x x x x x x",
  5415. "x x x x x x x x x x x x x x o o";
  5416. write = "1 0 1 0 1 1 0 0 1 1 1 1 1 1 i i",
  5417. "x x x x x x x x x x x x x x x x";
  5418. min_write_delay = 9000;
  5419. max_write_delay = 9000;
  5420. ;
  5421. memory "lfuse"
  5422. size = 1;
  5423. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  5424. "x x x x x x x x i i i i i i i i";
  5425. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  5426. "x x x x x x x x o o o o o o o o";
  5427. min_write_delay = 9000;
  5428. max_write_delay = 9000;
  5429. ;
  5430. memory "hfuse"
  5431. size = 1;
  5432. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  5433. "x x x x x x x x x x x i i i i i";
  5434. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  5435. "x x x x x x x x x x x o o o o o";
  5436. min_write_delay = 9000;
  5437. max_write_delay = 9000;
  5438. ;
  5439. memory "calibration"
  5440. size = 4;
  5441. read = "0 0 1 1 1 0 0 0 x x x x x x x x",
  5442. "0 0 0 0 0 0 a1 a0 o o o o o o o o";
  5443. ;
  5444. ;
  5445. #------------------------------------------------------------
  5446. # ATtiny261
  5447. #------------------------------------------------------------
  5448. # Close to ATtiny26
  5449. part
  5450. id = "t261";
  5451. desc = "ATTINY261";
  5452. has_debugwire = yes;
  5453. flash_instr = 0xB4, 0x00, 0x10;
  5454. eeprom_instr = 0xBB, 0xFF, 0xBB, 0xEE, 0xBB, 0xCC, 0xB2, 0x0D,
  5455. 0xBC, 0x00, 0xB4, 0x00, 0xBA, 0x0D, 0xBB, 0xBC,
  5456. 0x99, 0xE1, 0xBB, 0xAC;
  5457. # stk500_devcode = 0x21;
  5458. # avr910_devcode = 0x5e;
  5459. signature = 0x1e 0x91 0x0c;
  5460. pagel = 0xb3;
  5461. bs2 = 0xb2;
  5462. chip_erase_delay = 4000;
  5463. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  5464. "x x x x x x x x x x x x x x x x";
  5465. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
  5466. "x x x x x x x x x x x x x x x x";
  5467. timeout = 200;
  5468. stabdelay = 100;
  5469. cmdexedelay = 25;
  5470. synchloops = 32;
  5471. bytedelay = 0;
  5472. pollindex = 3;
  5473. pollvalue = 0x53;
  5474. predelay = 1;
  5475. postdelay = 1;
  5476. pollmethod = 0;
  5477. pp_controlstack =
  5478. 0xC4, 0xE4, 0xC4, 0xE4, 0xCC, 0xEC, 0xCC, 0xEC,
  5479. 0xD4, 0xF4, 0xD4, 0xF4, 0xDC, 0xFC, 0xDC, 0xFC,
  5480. 0xC8, 0xE8, 0xD8, 0xF8, 0x4C, 0x6C, 0x5C, 0x7C,
  5481. 0xEC, 0xBC, 0x00, 0x06, 0x00, 0x00, 0x00, 0x00;
  5482. hventerstabdelay = 100;
  5483. progmodedelay = 0;
  5484. latchcycles = 5;
  5485. togglevtg = 1;
  5486. poweroffdelay = 15;
  5487. resetdelayms = 2;
  5488. resetdelayus = 0;
  5489. hvleavestabdelay = 15;
  5490. chiperasepulsewidth = 0;
  5491. chiperasepolltimeout = 10;
  5492. programfusepulsewidth = 0;
  5493. programfusepolltimeout = 5;
  5494. programlockpulsewidth = 0;
  5495. programlockpolltimeout = 5;
  5496. memory "eeprom"
  5497. paged = no;
  5498. size = 128;
  5499. page_size = 4;
  5500. num_pages = 32;
  5501. min_write_delay = 4000;
  5502. max_write_delay = 4000;
  5503. readback_p1 = 0xff;
  5504. readback_p2 = 0xff;
  5505. read = "1 0 1 0 0 0 0 0 x x x x x x x x",
  5506. "x a6 a5 a4 a3 a2 a1 a0 o o o o o o o o";
  5507. write = "1 1 0 0 0 0 0 0 x x x x x x x x",
  5508. "x a6 a5 a4 a3 a2 a1 a0 i i i i i i i i";
  5509. loadpage_lo = " 1 1 0 0 0 0 0 1",
  5510. " 0 0 0 0 0 0 0 0",
  5511. " 0 0 0 0 0 0 a1 a0",
  5512. " i i i i i i i i";
  5513. writepage = " 1 1 0 0 0 0 1 0",
  5514. " 0 0 x x x x x x",
  5515. " x a6 a5 a4 a3 a2 0 0",
  5516. " x x x x x x x x";
  5517. mode = 0x41;
  5518. delay = 10;
  5519. blocksize = 4;
  5520. readsize = 256;
  5521. ;
  5522. memory "flash"
  5523. paged = yes;
  5524. size = 2048;
  5525. page_size = 32;
  5526. num_pages = 64;
  5527. min_write_delay = 4500;
  5528. max_write_delay = 4500;
  5529. readback_p1 = 0xff;
  5530. readback_p2 = 0xff;
  5531. read_lo = " 0 0 1 0 0 0 0 0",
  5532. " x x x x x x a9 a8",
  5533. " a7 a6 a5 a4 a3 a2 a1 a0",
  5534. " o o o o o o o o";
  5535. read_hi = " 0 0 1 0 1 0 0 0",
  5536. " x x x x x x a9 a8",
  5537. " a7 a6 a5 a4 a3 a2 a1 a0",
  5538. " o o o o o o o o";
  5539. loadpage_lo = " 0 1 0 0 0 0 0 0",
  5540. " x x x x x x x x",
  5541. " x x x x a3 a2 a1 a0",
  5542. " i i i i i i i i";
  5543. loadpage_hi = " 0 1 0 0 1 0 0 0",
  5544. " x x x x x x x x",
  5545. " x x x x a3 a2 a1 a0",
  5546. " i i i i i i i i";
  5547. writepage = " 0 1 0 0 1 1 0 0",
  5548. " x x x x x x a9 a8",
  5549. " a7 a6 a5 a4 x x x x",
  5550. " x x x x x x x x";
  5551. mode = 0x41;
  5552. delay = 6;
  5553. blocksize = 32;
  5554. readsize = 256;
  5555. ;
  5556. memory "signature"
  5557. size = 3;
  5558. read = "0 0 1 1 0 0 0 0 x x x x x x x x",
  5559. "0 0 0 0 0 0 a1 a0 o o o o o o o o";
  5560. ;
  5561. memory "lock"
  5562. size = 1;
  5563. read = "0 1 0 1 1 0 0 0 x x x x x x x x",
  5564. "x x x x x x x x x x x x x x o o";
  5565. write = "1 0 1 0 1 1 0 0 1 1 1 1 1 1 i i",
  5566. "x x x x x x x x x x x x x x x x";
  5567. min_write_delay = 4500;
  5568. max_write_delay = 4500;
  5569. ;
  5570. memory "lfuse"
  5571. size = 1;
  5572. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  5573. "x x x x x x x x i i i i i i i i";
  5574. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  5575. "x x x x x x x x o o o o o o o o";
  5576. min_write_delay = 4500;
  5577. max_write_delay = 4500;
  5578. ;
  5579. memory "hfuse"
  5580. size = 1;
  5581. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  5582. "x x x x x x x x i i i i i i i i";
  5583. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  5584. "x x x x x x x x o o o o o o o o";
  5585. min_write_delay = 4500;
  5586. max_write_delay = 4500;
  5587. ;
  5588. memory "efuse"
  5589. size = 1;
  5590. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  5591. "x x x x x x x x x x x x x x x i";
  5592. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  5593. "x x x x x x x x x x x x x x x o";
  5594. min_write_delay = 4500;
  5595. max_write_delay = 4500;
  5596. ;
  5597. memory "calibration"
  5598. size = 1;
  5599. read = "0 0 1 1 1 0 0 0 x x x x x x x x",
  5600. "0 0 0 0 0 0 0 0 o o o o o o o o";
  5601. ;
  5602. ;
  5603. #------------------------------------------------------------
  5604. # ATtiny461
  5605. #------------------------------------------------------------
  5606. # Close to ATtiny261
  5607. part
  5608. id = "t461";
  5609. desc = "ATTINY461";
  5610. has_debugwire = yes;
  5611. flash_instr = 0xB4, 0x00, 0x10;
  5612. eeprom_instr = 0xBB, 0xFF, 0xBB, 0xEE, 0xBB, 0xCC, 0xB2, 0x0D,
  5613. 0xBC, 0x00, 0xB4, 0x00, 0xBA, 0x0D, 0xBB, 0xBC,
  5614. 0x99, 0xE1, 0xBB, 0xAC;
  5615. # stk500_devcode = 0x21;
  5616. # avr910_devcode = 0x5e;
  5617. signature = 0x1e 0x92 0x08;
  5618. pagel = 0xb3;
  5619. bs2 = 0xb2;
  5620. chip_erase_delay = 4000;
  5621. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  5622. "x x x x x x x x x x x x x x x x";
  5623. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
  5624. "x x x x x x x x x x x x x x x x";
  5625. timeout = 200;
  5626. stabdelay = 100;
  5627. cmdexedelay = 25;
  5628. synchloops = 32;
  5629. bytedelay = 0;
  5630. pollindex = 3;
  5631. pollvalue = 0x53;
  5632. predelay = 1;
  5633. postdelay = 1;
  5634. pollmethod = 0;
  5635. pp_controlstack =
  5636. 0xC4, 0xE4, 0xC4, 0xE4, 0xCC, 0xEC, 0xCC, 0xEC,
  5637. 0xD4, 0xF4, 0xD4, 0xF4, 0xDC, 0xFC, 0xDC, 0xFC,
  5638. 0xC8, 0xE8, 0xD8, 0xF8, 0x4C, 0x6C, 0x5C, 0x7C,
  5639. 0xEC, 0xBC, 0x00, 0x06, 0x00, 0x00, 0x00, 0x00;
  5640. hventerstabdelay = 100;
  5641. progmodedelay = 0;
  5642. latchcycles = 5;
  5643. togglevtg = 1;
  5644. poweroffdelay = 15;
  5645. resetdelayms = 2;
  5646. resetdelayus = 0;
  5647. hvleavestabdelay = 15;
  5648. chiperasepulsewidth = 0;
  5649. chiperasepolltimeout = 10;
  5650. programfusepulsewidth = 0;
  5651. programfusepolltimeout = 5;
  5652. programlockpulsewidth = 0;
  5653. programlockpolltimeout = 5;
  5654. memory "eeprom"
  5655. paged = no;
  5656. size = 256;
  5657. page_size = 4;
  5658. num_pages = 64;
  5659. min_write_delay = 4000;
  5660. max_write_delay = 4000;
  5661. readback_p1 = 0xff;
  5662. readback_p2 = 0xff;
  5663. read = " 1 0 1 0 0 0 0 0 x x x x x x x x",
  5664. "a7 a6 a5 a4 a3 a2 a1 a0 o o o o o o o o";
  5665. write = " 1 1 0 0 0 0 0 0 x x x x x x x x",
  5666. "a7 a6 a5 a4 a3 a2 a1 a0 i i i i i i i i";
  5667. loadpage_lo = " 1 1 0 0 0 0 0 1",
  5668. " 0 0 0 0 0 0 0 0",
  5669. " 0 0 0 0 0 0 a1 a0",
  5670. " i i i i i i i i";
  5671. writepage = " 1 1 0 0 0 0 1 0",
  5672. " 0 0 x x x x x x",
  5673. " a7 a6 a5 a4 a3 a2 0 0",
  5674. " x x x x x x x x";
  5675. mode = 0x41;
  5676. delay = 10;
  5677. blocksize = 4;
  5678. readsize = 256;
  5679. ;
  5680. memory "flash"
  5681. paged = yes;
  5682. size = 4096;
  5683. page_size = 64;
  5684. num_pages = 64;
  5685. min_write_delay = 4500;
  5686. max_write_delay = 4500;
  5687. readback_p1 = 0xff;
  5688. readback_p2 = 0xff;
  5689. read_lo = " 0 0 1 0 0 0 0 0",
  5690. " x x x x x a10 a9 a8",
  5691. " a7 a6 a5 a4 a3 a2 a1 a0",
  5692. " o o o o o o o o";
  5693. read_hi = " 0 0 1 0 1 0 0 0",
  5694. " x x x x x a10 a9 a8",
  5695. " a7 a6 a5 a4 a3 a2 a1 a0",
  5696. " o o o o o o o o";
  5697. loadpage_lo = " 0 1 0 0 0 0 0 0",
  5698. " x x x x x x x x",
  5699. " x x x a4 a3 a2 a1 a0",
  5700. " i i i i i i i i";
  5701. loadpage_hi = " 0 1 0 0 1 0 0 0",
  5702. " x x x x x x x x",
  5703. " x x x a4 a3 a2 a1 a0",
  5704. " i i i i i i i i";
  5705. writepage = " 0 1 0 0 1 1 0 0",
  5706. " x x x x x a10 a9 a8",
  5707. " a7 a6 a5 x x x x x",
  5708. " x x x x x x x x";
  5709. mode = 0x41;
  5710. delay = 6;
  5711. blocksize = 64;
  5712. readsize = 256;
  5713. ;
  5714. memory "signature"
  5715. size = 3;
  5716. read = "0 0 1 1 0 0 0 0 x x x x x x x x",
  5717. "0 0 0 0 0 0 a1 a0 o o o o o o o o";
  5718. ;
  5719. memory "lock"
  5720. size = 1;
  5721. read = "0 1 0 1 1 0 0 0 x x x x x x x x",
  5722. "x x x x x x x x x x x x x x o o";
  5723. write = "1 0 1 0 1 1 0 0 1 1 1 1 1 1 i i",
  5724. "x x x x x x x x x x x x x x x x";
  5725. min_write_delay = 4500;
  5726. max_write_delay = 4500;
  5727. ;
  5728. memory "lfuse"
  5729. size = 1;
  5730. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  5731. "x x x x x x x x i i i i i i i i";
  5732. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  5733. "x x x x x x x x o o o o o o o o";
  5734. min_write_delay = 4500;
  5735. max_write_delay = 4500;
  5736. ;
  5737. memory "hfuse"
  5738. size = 1;
  5739. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  5740. "x x x x x x x x i i i i i i i i";
  5741. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  5742. "x x x x x x x x o o o o o o o o";
  5743. min_write_delay = 4500;
  5744. max_write_delay = 4500;
  5745. ;
  5746. memory "efuse"
  5747. size = 1;
  5748. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  5749. "x x x x x x x x x x x x x x x i";
  5750. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  5751. "x x x x x x x x x x x x x x x o";
  5752. min_write_delay = 4500;
  5753. max_write_delay = 4500;
  5754. ;
  5755. memory "calibration"
  5756. size = 1;
  5757. read = "0 0 1 1 1 0 0 0 x x x x x x x x",
  5758. "0 0 0 0 0 0 0 0 o o o o o o o o";
  5759. ;
  5760. ;
  5761. #------------------------------------------------------------
  5762. # ATtiny861
  5763. #------------------------------------------------------------
  5764. # Close to ATtiny461
  5765. part
  5766. id = "t861";
  5767. desc = "ATTINY861";
  5768. has_debugwire = yes;
  5769. flash_instr = 0xB4, 0x00, 0x10;
  5770. eeprom_instr = 0xBB, 0xFF, 0xBB, 0xEE, 0xBB, 0xCC, 0xB2, 0x0D,
  5771. 0xBC, 0x00, 0xB4, 0x00, 0xBA, 0x0D, 0xBB, 0xBC,
  5772. 0x99, 0xE1, 0xBB, 0xAC;
  5773. # stk500_devcode = 0x21;
  5774. # avr910_devcode = 0x5e;
  5775. signature = 0x1e 0x93 0x0d;
  5776. pagel = 0xb3;
  5777. bs2 = 0xb2;
  5778. chip_erase_delay = 4000;
  5779. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  5780. "x x x x x x x x x x x x x x x x";
  5781. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
  5782. "x x x x x x x x x x x x x x x x";
  5783. timeout = 200;
  5784. stabdelay = 100;
  5785. cmdexedelay = 25;
  5786. synchloops = 32;
  5787. bytedelay = 0;
  5788. pollindex = 3;
  5789. pollvalue = 0x53;
  5790. predelay = 1;
  5791. postdelay = 1;
  5792. pollmethod = 0;
  5793. pp_controlstack =
  5794. 0xC4, 0xE4, 0xC4, 0xE4, 0xCC, 0xEC, 0xCC, 0xEC,
  5795. 0xD4, 0xF4, 0xD4, 0xF4, 0xDC, 0xFC, 0xDC, 0xFC,
  5796. 0xC8, 0xE8, 0xD8, 0xF8, 0x4C, 0x6C, 0x5C, 0x7C,
  5797. 0xEC, 0xBC, 0x00, 0x06, 0x00, 0x00, 0x00, 0x00;
  5798. hventerstabdelay = 100;
  5799. progmodedelay = 0;
  5800. latchcycles = 5;
  5801. togglevtg = 1;
  5802. poweroffdelay = 15;
  5803. resetdelayms = 2;
  5804. resetdelayus = 0;
  5805. hvleavestabdelay = 15;
  5806. chiperasepulsewidth = 0;
  5807. chiperasepolltimeout = 10;
  5808. programfusepulsewidth = 0;
  5809. programfusepolltimeout = 5;
  5810. programlockpulsewidth = 0;
  5811. programlockpolltimeout = 5;
  5812. memory "eeprom"
  5813. paged = no;
  5814. size = 512;
  5815. num_pages = 128;
  5816. page_size = 4;
  5817. min_write_delay = 4000;
  5818. max_write_delay = 4000;
  5819. readback_p1 = 0xff;
  5820. readback_p2 = 0xff;
  5821. read = " 1 0 1 0 0 0 0 0 x x x x x x x a8",
  5822. "a7 a6 a5 a4 a3 a2 a1 a0 o o o o o o o o";
  5823. write = " 1 1 0 0 0 0 0 0 x x x x x x x a8",
  5824. "a7 a6 a5 a4 a3 a2 a1 a0 i i i i i i i i";
  5825. loadpage_lo = " 1 1 0 0 0 0 0 1",
  5826. " 0 0 0 0 0 0 0 0",
  5827. " 0 0 0 0 0 0 a1 a0",
  5828. " i i i i i i i i";
  5829. writepage = " 1 1 0 0 0 0 1 0",
  5830. " 0 0 x x x x x a8",
  5831. " a7 a6 a5 a4 a3 a2 0 0",
  5832. " x x x x x x x x";
  5833. mode = 0x41;
  5834. delay = 10;
  5835. blocksize = 4;
  5836. readsize = 256;
  5837. ;
  5838. memory "flash"
  5839. paged = yes;
  5840. size = 8192;
  5841. page_size = 64;
  5842. num_pages = 128;
  5843. min_write_delay = 4500;
  5844. max_write_delay = 4500;
  5845. readback_p1 = 0xff;
  5846. readback_p2 = 0xff;
  5847. read_lo = " 0 0 1 0 0 0 0 0",
  5848. " x x x x a11 a10 a9 a8",
  5849. " a7 a6 a5 a4 a3 a2 a1 a0",
  5850. " o o o o o o o o";
  5851. read_hi = " 0 0 1 0 1 0 0 0",
  5852. " x x x x a11 a10 a9 a8",
  5853. " a7 a6 a5 a4 a3 a2 a1 a0",
  5854. " o o o o o o o o";
  5855. loadpage_lo = " 0 1 0 0 0 0 0 0",
  5856. " x x x x x x x x",
  5857. " x x x a4 a3 a2 a1 a0",
  5858. " i i i i i i i i";
  5859. loadpage_hi = " 0 1 0 0 1 0 0 0",
  5860. " x x x x x x x x",
  5861. " x x x a4 a3 a2 a1 a0",
  5862. " i i i i i i i i";
  5863. writepage = " 0 1 0 0 1 1 0 0",
  5864. " x x x x a11 a10 a9 a8",
  5865. " a7 a6 a5 x x x x x",
  5866. " x x x x x x x x";
  5867. mode = 0x41;
  5868. delay = 6;
  5869. blocksize = 64;
  5870. readsize = 256;
  5871. ;
  5872. memory "signature"
  5873. size = 3;
  5874. read = "0 0 1 1 0 0 0 0 x x x x x x x x",
  5875. "0 0 0 0 0 0 a1 a0 o o o o o o o o";
  5876. ;
  5877. memory "lock"
  5878. size = 1;
  5879. read = "0 1 0 1 1 0 0 0 x x x x x x x x",
  5880. "x x x x x x x x x x x x x x o o";
  5881. write = "1 0 1 0 1 1 0 0 1 1 1 1 1 1 i i",
  5882. "x x x x x x x x x x x x x x x x";
  5883. min_write_delay = 4500;
  5884. max_write_delay = 4500;
  5885. ;
  5886. memory "lfuse"
  5887. size = 1;
  5888. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  5889. "x x x x x x x x i i i i i i i i";
  5890. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  5891. "x x x x x x x x o o o o o o o o";
  5892. min_write_delay = 4500;
  5893. max_write_delay = 4500;
  5894. ;
  5895. memory "hfuse"
  5896. size = 1;
  5897. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  5898. "x x x x x x x x i i i i i i i i";
  5899. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  5900. "x x x x x x x x o o o o o o o o";
  5901. min_write_delay = 4500;
  5902. max_write_delay = 4500;
  5903. ;
  5904. memory "efuse"
  5905. size = 1;
  5906. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  5907. "x x x x x x x x x x x x x x x i";
  5908. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  5909. "x x x x x x x x x x x x x x x o";
  5910. min_write_delay = 4500;
  5911. max_write_delay = 4500;
  5912. ;
  5913. memory "calibration"
  5914. size = 1;
  5915. read = "0 0 1 1 1 0 0 0 x x x x x x x x",
  5916. "0 0 0 0 0 0 0 0 o o o o o o o o";
  5917. ;
  5918. ;
  5919. #------------------------------------------------------------
  5920. # ATmega48
  5921. #------------------------------------------------------------
  5922. part
  5923. id = "m48";
  5924. desc = "ATMEGA48";
  5925. has_debugwire = yes;
  5926. flash_instr = 0xB6, 0x01, 0x11;
  5927. eeprom_instr = 0xBD, 0xF2, 0xBD, 0xE1, 0xBB, 0xCF, 0xB4, 0x00,
  5928. 0xBE, 0x01, 0xB6, 0x01, 0xBC, 0x00, 0xBB, 0xBF,
  5929. 0x99, 0xF9, 0xBB, 0xAF;
  5930. stk500_devcode = 0x59;
  5931. # avr910_devcode = 0x;
  5932. signature = 0x1e 0x92 0x05;
  5933. pagel = 0xd7;
  5934. bs2 = 0xc2;
  5935. chip_erase_delay = 45000;
  5936. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  5937. "x x x x x x x x x x x x x x x x";
  5938. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
  5939. "x x x x x x x x x x x x x x x x";
  5940. timeout = 200;
  5941. stabdelay = 100;
  5942. cmdexedelay = 25;
  5943. synchloops = 32;
  5944. bytedelay = 0;
  5945. pollindex = 3;
  5946. pollvalue = 0x53;
  5947. predelay = 1;
  5948. postdelay = 1;
  5949. pollmethod = 1;
  5950. pp_controlstack =
  5951. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  5952. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  5953. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  5954. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  5955. hventerstabdelay = 100;
  5956. progmodedelay = 0;
  5957. latchcycles = 5;
  5958. togglevtg = 1;
  5959. poweroffdelay = 15;
  5960. resetdelayms = 1;
  5961. resetdelayus = 0;
  5962. hvleavestabdelay = 15;
  5963. resetdelay = 15;
  5964. chiperasepulsewidth = 0;
  5965. chiperasepolltimeout = 10;
  5966. programfusepulsewidth = 0;
  5967. programfusepolltimeout = 5;
  5968. programlockpulsewidth = 0;
  5969. programlockpolltimeout = 5;
  5970. memory "eeprom"
  5971. paged = no;
  5972. page_size = 4;
  5973. size = 256;
  5974. min_write_delay = 3600;
  5975. max_write_delay = 3600;
  5976. readback_p1 = 0xff;
  5977. readback_p2 = 0xff;
  5978. read = " 1 0 1 0 0 0 0 0",
  5979. " 0 0 0 x x x x x",
  5980. " a7 a6 a5 a4 a3 a2 a1 a0",
  5981. " o o o o o o o o";
  5982. write = " 1 1 0 0 0 0 0 0",
  5983. " 0 0 0 x x x x x",
  5984. " a7 a6 a5 a4 a3 a2 a1 a0",
  5985. " i i i i i i i i";
  5986. loadpage_lo = " 1 1 0 0 0 0 0 1",
  5987. " 0 0 0 0 0 0 0 0",
  5988. " 0 0 0 0 0 0 a1 a0",
  5989. " i i i i i i i i";
  5990. writepage = " 1 1 0 0 0 0 1 0",
  5991. " 0 0 x x x x x x",
  5992. " a7 a6 a5 a4 a3 a2 0 0",
  5993. " x x x x x x x x";
  5994. mode = 0x41;
  5995. delay = 5;
  5996. blocksize = 4;
  5997. readsize = 256;
  5998. ;
  5999. memory "flash"
  6000. paged = yes;
  6001. size = 4096;
  6002. page_size = 64;
  6003. num_pages = 64;
  6004. min_write_delay = 4500;
  6005. max_write_delay = 4500;
  6006. readback_p1 = 0x00;
  6007. readback_p2 = 0x00;
  6008. read_lo = " 0 0 1 0 0 0 0 0",
  6009. " 0 0 0 0 0 a10 a9 a8",
  6010. " a7 a6 a5 a4 a3 a2 a1 a0",
  6011. " o o o o o o o o";
  6012. read_hi = " 0 0 1 0 1 0 0 0",
  6013. " 0 0 0 0 0 a10 a9 a8",
  6014. " a7 a6 a5 a4 a3 a2 a1 a0",
  6015. " o o o o o o o o";
  6016. loadpage_lo = " 0 1 0 0 0 0 0 0",
  6017. " 0 0 0 x x x x x",
  6018. " x x x a4 a3 a2 a1 a0",
  6019. " i i i i i i i i";
  6020. loadpage_hi = " 0 1 0 0 1 0 0 0",
  6021. " 0 0 0 x x x x x",
  6022. " x x x a4 a3 a2 a1 a0",
  6023. " i i i i i i i i";
  6024. writepage = " 0 1 0 0 1 1 0 0",
  6025. " 0 0 0 0 0 a10 a9 a8",
  6026. " a7 a6 a5 x x x x x",
  6027. " x x x x x x x x";
  6028. mode = 0x41;
  6029. delay = 6;
  6030. blocksize = 64;
  6031. readsize = 256;
  6032. ;
  6033. memory "lfuse"
  6034. size = 1;
  6035. min_write_delay = 4500;
  6036. max_write_delay = 4500;
  6037. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  6038. "x x x x x x x x o o o o o o o o";
  6039. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  6040. "x x x x x x x x i i i i i i i i";
  6041. ;
  6042. memory "hfuse"
  6043. size = 1;
  6044. min_write_delay = 4500;
  6045. max_write_delay = 4500;
  6046. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  6047. "x x x x x x x x o o o o o o o o";
  6048. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  6049. "x x x x x x x x i i i i i i i i";
  6050. ;
  6051. memory "efuse"
  6052. size = 1;
  6053. min_write_delay = 4500;
  6054. max_write_delay = 4500;
  6055. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  6056. "x x x x x x x x x x x x x x x o";
  6057. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  6058. "x x x x x x x x x x x x x x x i";
  6059. ;
  6060. memory "lock"
  6061. size = 1;
  6062. min_write_delay = 4500;
  6063. max_write_delay = 4500;
  6064. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  6065. "x x x x x x x x x x o o o o o o";
  6066. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  6067. "x x x x x x x x 1 1 i i i i i i";
  6068. ;
  6069. memory "calibration"
  6070. size = 1;
  6071. read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
  6072. "0 0 0 0 0 0 0 0 o o o o o o o o";
  6073. ;
  6074. memory "signature"
  6075. size = 3;
  6076. read = "0 0 1 1 0 0 0 0 0 0 0 x x x x x",
  6077. "x x x x x x a1 a0 o o o o o o o o";
  6078. ;
  6079. ;
  6080. #------------------------------------------------------------
  6081. # ATmega88
  6082. #------------------------------------------------------------
  6083. part
  6084. id = "m88";
  6085. desc = "ATMEGA88";
  6086. has_debugwire = yes;
  6087. flash_instr = 0xB6, 0x01, 0x11;
  6088. eeprom_instr = 0xBD, 0xF2, 0xBD, 0xE1, 0xBB, 0xCF, 0xB4, 0x00,
  6089. 0xBE, 0x01, 0xB6, 0x01, 0xBC, 0x00, 0xBB, 0xBF,
  6090. 0x99, 0xF9, 0xBB, 0xAF;
  6091. stk500_devcode = 0x73;
  6092. # avr910_devcode = 0x;
  6093. signature = 0x1e 0x93 0x0a;
  6094. pagel = 0xd7;
  6095. bs2 = 0xc2;
  6096. chip_erase_delay = 9000;
  6097. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  6098. "x x x x x x x x x x x x x x x x";
  6099. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
  6100. "x x x x x x x x x x x x x x x x";
  6101. timeout = 200;
  6102. stabdelay = 100;
  6103. cmdexedelay = 25;
  6104. synchloops = 32;
  6105. bytedelay = 0;
  6106. pollindex = 3;
  6107. pollvalue = 0x53;
  6108. predelay = 1;
  6109. postdelay = 1;
  6110. pollmethod = 1;
  6111. pp_controlstack =
  6112. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  6113. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  6114. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  6115. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  6116. hventerstabdelay = 100;
  6117. progmodedelay = 0;
  6118. latchcycles = 5;
  6119. togglevtg = 1;
  6120. poweroffdelay = 15;
  6121. resetdelayms = 1;
  6122. resetdelayus = 0;
  6123. hvleavestabdelay = 15;
  6124. resetdelay = 15;
  6125. chiperasepulsewidth = 0;
  6126. chiperasepolltimeout = 10;
  6127. programfusepulsewidth = 0;
  6128. programfusepolltimeout = 5;
  6129. programlockpulsewidth = 0;
  6130. programlockpolltimeout = 5;
  6131. memory "eeprom"
  6132. paged = no;
  6133. page_size = 4;
  6134. size = 512;
  6135. min_write_delay = 3600;
  6136. max_write_delay = 3600;
  6137. readback_p1 = 0xff;
  6138. readback_p2 = 0xff;
  6139. read = " 1 0 1 0 0 0 0 0",
  6140. " 0 0 0 x x x x a8",
  6141. " a7 a6 a5 a4 a3 a2 a1 a0",
  6142. " o o o o o o o o";
  6143. write = " 1 1 0 0 0 0 0 0",
  6144. " 0 0 0 x x x x a8",
  6145. " a7 a6 a5 a4 a3 a2 a1 a0",
  6146. " i i i i i i i i";
  6147. loadpage_lo = " 1 1 0 0 0 0 0 1",
  6148. " 0 0 0 0 0 0 0 0",
  6149. " 0 0 0 0 0 0 a1 a0",
  6150. " i i i i i i i i";
  6151. writepage = " 1 1 0 0 0 0 1 0",
  6152. " 0 0 x x x x x a8",
  6153. " a7 a6 a5 a4 a3 a2 0 0",
  6154. " x x x x x x x x";
  6155. mode = 0x41;
  6156. delay = 5;
  6157. blocksize = 4;
  6158. readsize = 256;
  6159. ;
  6160. memory "flash"
  6161. paged = yes;
  6162. size = 8192;
  6163. page_size = 64;
  6164. num_pages = 128;
  6165. min_write_delay = 4500;
  6166. max_write_delay = 4500;
  6167. readback_p1 = 0xff;
  6168. readback_p2 = 0xff;
  6169. read_lo = " 0 0 1 0 0 0 0 0",
  6170. " 0 0 0 0 a11 a10 a9 a8",
  6171. " a7 a6 a5 a4 a3 a2 a1 a0",
  6172. " o o o o o o o o";
  6173. read_hi = " 0 0 1 0 1 0 0 0",
  6174. " 0 0 0 0 a11 a10 a9 a8",
  6175. " a7 a6 a5 a4 a3 a2 a1 a0",
  6176. " o o o o o o o o";
  6177. loadpage_lo = " 0 1 0 0 0 0 0 0",
  6178. " 0 0 0 x x x x x",
  6179. " x x x a4 a3 a2 a1 a0",
  6180. " i i i i i i i i";
  6181. loadpage_hi = " 0 1 0 0 1 0 0 0",
  6182. " 0 0 0 x x x x x",
  6183. " x x x a4 a3 a2 a1 a0",
  6184. " i i i i i i i i";
  6185. writepage = " 0 1 0 0 1 1 0 0",
  6186. " 0 0 0 0 a11 a10 a9 a8",
  6187. " a7 a6 a5 x x x x x",
  6188. " x x x x x x x x";
  6189. mode = 0x41;
  6190. delay = 6;
  6191. blocksize = 64;
  6192. readsize = 256;
  6193. ;
  6194. memory "lfuse"
  6195. size = 1;
  6196. min_write_delay = 4500;
  6197. max_write_delay = 4500;
  6198. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  6199. "x x x x x x x x o o o o o o o o";
  6200. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  6201. "x x x x x x x x i i i i i i i i";
  6202. ;
  6203. memory "hfuse"
  6204. size = 1;
  6205. min_write_delay = 4500;
  6206. max_write_delay = 4500;
  6207. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  6208. "x x x x x x x x o o o o o o o o";
  6209. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  6210. "x x x x x x x x i i i i i i i i";
  6211. ;
  6212. memory "efuse"
  6213. size = 1;
  6214. min_write_delay = 4500;
  6215. max_write_delay = 4500;
  6216. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  6217. "x x x x x x x x x x x x x o o o";
  6218. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  6219. "x x x x x x x x x x x x x i i i";
  6220. ;
  6221. memory "lock"
  6222. size = 1;
  6223. min_write_delay = 4500;
  6224. max_write_delay = 4500;
  6225. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  6226. "x x x x x x x x x x o o o o o o";
  6227. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  6228. "x x x x x x x x 1 1 i i i i i i";
  6229. ;
  6230. memory "calibration"
  6231. size = 1;
  6232. read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
  6233. "0 0 0 0 0 0 0 0 o o o o o o o o";
  6234. ;
  6235. memory "signature"
  6236. size = 3;
  6237. read = "0 0 1 1 0 0 0 0 0 0 0 x x x x x",
  6238. "x x x x x x a1 a0 o o o o o o o o";
  6239. ;
  6240. ;
  6241. #------------------------------------------------------------
  6242. # ATmega168
  6243. #------------------------------------------------------------
  6244. part
  6245. id = "m168";
  6246. desc = "ATMEGA168";
  6247. has_debugwire = yes;
  6248. flash_instr = 0xB6, 0x01, 0x11;
  6249. eeprom_instr = 0xBD, 0xF2, 0xBD, 0xE1, 0xBB, 0xCF, 0xB4, 0x00,
  6250. 0xBE, 0x01, 0xB6, 0x01, 0xBC, 0x00, 0xBB, 0xBF,
  6251. 0x99, 0xF9, 0xBB, 0xAF;
  6252. stk500_devcode = 0x86;
  6253. # avr910_devcode = 0x;
  6254. signature = 0x1e 0x94 0x06;
  6255. pagel = 0xd7;
  6256. bs2 = 0xc2;
  6257. chip_erase_delay = 9000;
  6258. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  6259. "x x x x x x x x x x x x x x x x";
  6260. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
  6261. "x x x x x x x x x x x x x x x x";
  6262. timeout = 200;
  6263. stabdelay = 100;
  6264. cmdexedelay = 25;
  6265. synchloops = 32;
  6266. bytedelay = 0;
  6267. pollindex = 3;
  6268. pollvalue = 0x53;
  6269. predelay = 1;
  6270. postdelay = 1;
  6271. pollmethod = 1;
  6272. pp_controlstack =
  6273. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  6274. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  6275. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  6276. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  6277. hventerstabdelay = 100;
  6278. progmodedelay = 0;
  6279. latchcycles = 5;
  6280. togglevtg = 1;
  6281. poweroffdelay = 15;
  6282. resetdelayms = 1;
  6283. resetdelayus = 0;
  6284. hvleavestabdelay = 15;
  6285. resetdelay = 15;
  6286. chiperasepulsewidth = 0;
  6287. chiperasepolltimeout = 10;
  6288. programfusepulsewidth = 0;
  6289. programfusepolltimeout = 5;
  6290. programlockpulsewidth = 0;
  6291. programlockpolltimeout = 5;
  6292. memory "eeprom"
  6293. paged = no;
  6294. page_size = 4;
  6295. size = 512;
  6296. min_write_delay = 3600;
  6297. max_write_delay = 3600;
  6298. readback_p1 = 0xff;
  6299. readback_p2 = 0xff;
  6300. read = " 1 0 1 0 0 0 0 0",
  6301. " 0 0 0 x x x x a8",
  6302. " a7 a6 a5 a4 a3 a2 a1 a0",
  6303. " o o o o o o o o";
  6304. write = " 1 1 0 0 0 0 0 0",
  6305. " 0 0 0 x x x x a8",
  6306. " a7 a6 a5 a4 a3 a2 a1 a0",
  6307. " i i i i i i i i";
  6308. loadpage_lo = " 1 1 0 0 0 0 0 1",
  6309. " 0 0 0 0 0 0 0 0",
  6310. " 0 0 0 0 0 0 a1 a0",
  6311. " i i i i i i i i";
  6312. writepage = " 1 1 0 0 0 0 1 0",
  6313. " 0 0 x x x x x a8",
  6314. " a7 a6 a5 a4 a3 a2 0 0",
  6315. " x x x x x x x x";
  6316. mode = 0x41;
  6317. delay = 5;
  6318. blocksize = 4;
  6319. readsize = 256;
  6320. ;
  6321. memory "flash"
  6322. paged = yes;
  6323. size = 16384;
  6324. page_size = 128;
  6325. num_pages = 128;
  6326. min_write_delay = 4500;
  6327. max_write_delay = 4500;
  6328. readback_p1 = 0xff;
  6329. readback_p2 = 0xff;
  6330. read_lo = " 0 0 1 0 0 0 0 0",
  6331. " 0 0 0 a12 a11 a10 a9 a8",
  6332. " a7 a6 a5 a4 a3 a2 a1 a0",
  6333. " o o o o o o o o";
  6334. read_hi = " 0 0 1 0 1 0 0 0",
  6335. " 0 0 0 a12 a11 a10 a9 a8",
  6336. " a7 a6 a5 a4 a3 a2 a1 a0",
  6337. " o o o o o o o o";
  6338. loadpage_lo = " 0 1 0 0 0 0 0 0",
  6339. " 0 0 0 x x x x x",
  6340. " x x a5 a4 a3 a2 a1 a0",
  6341. " i i i i i i i i";
  6342. loadpage_hi = " 0 1 0 0 1 0 0 0",
  6343. " 0 0 0 x x x x x",
  6344. " x x a5 a4 a3 a2 a1 a0",
  6345. " i i i i i i i i";
  6346. writepage = " 0 1 0 0 1 1 0 0",
  6347. " 0 0 0 a12 a11 a10 a9 a8",
  6348. " a7 a6 x x x x x x",
  6349. " x x x x x x x x";
  6350. mode = 0x41;
  6351. delay = 6;
  6352. blocksize = 128;
  6353. readsize = 256;
  6354. ;
  6355. memory "lfuse"
  6356. size = 1;
  6357. min_write_delay = 4500;
  6358. max_write_delay = 4500;
  6359. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  6360. "x x x x x x x x o o o o o o o o";
  6361. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  6362. "x x x x x x x x i i i i i i i i";
  6363. ;
  6364. memory "hfuse"
  6365. size = 1;
  6366. min_write_delay = 4500;
  6367. max_write_delay = 4500;
  6368. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  6369. "x x x x x x x x o o o o o o o o";
  6370. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  6371. "x x x x x x x x i i i i i i i i";
  6372. ;
  6373. memory "efuse"
  6374. size = 1;
  6375. min_write_delay = 4500;
  6376. max_write_delay = 4500;
  6377. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  6378. "x x x x x x x x x x x x x o o o";
  6379. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  6380. "x x x x x x x x x x x x x i i i";
  6381. ;
  6382. memory "lock"
  6383. size = 1;
  6384. min_write_delay = 4500;
  6385. max_write_delay = 4500;
  6386. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  6387. "x x x x x x x x x x o o o o o o";
  6388. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  6389. "x x x x x x x x 1 1 i i i i i i";
  6390. ;
  6391. memory "calibration"
  6392. size = 1;
  6393. read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
  6394. "0 0 0 0 0 0 0 0 o o o o o o o o";
  6395. ;
  6396. memory "signature"
  6397. size = 3;
  6398. read = "0 0 1 1 0 0 0 0 0 0 0 x x x x x",
  6399. "x x x x x x a1 a0 o o o o o o o o";
  6400. ;
  6401. ;
  6402. #------------------------------------------------------------
  6403. # ATmega328
  6404. #------------------------------------------------------------
  6405. part
  6406. id = "m328p";
  6407. desc = "ATMEGA328P";
  6408. has_debugwire = yes;
  6409. flash_instr = 0xB6, 0x01, 0x11;
  6410. eeprom_instr = 0xBD, 0xF2, 0xBD, 0xE1, 0xBB, 0xCF, 0xB4, 0x00,
  6411. 0xBE, 0x01, 0xB6, 0x01, 0xBC, 0x00, 0xBB, 0xBF,
  6412. 0x99, 0xF9, 0xBB, 0xAF;
  6413. stk500_devcode = 0x86;
  6414. # avr910_devcode = 0x;
  6415. signature = 0x1e 0x95 0x0F;
  6416. pagel = 0xd7;
  6417. bs2 = 0xc2;
  6418. chip_erase_delay = 9000;
  6419. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  6420. "x x x x x x x x x x x x x x x x";
  6421. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
  6422. "x x x x x x x x x x x x x x x x";
  6423. timeout = 200;
  6424. stabdelay = 100;
  6425. cmdexedelay = 25;
  6426. synchloops = 32;
  6427. bytedelay = 0;
  6428. pollindex = 3;
  6429. pollvalue = 0x53;
  6430. predelay = 1;
  6431. postdelay = 1;
  6432. pollmethod = 1;
  6433. pp_controlstack =
  6434. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  6435. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  6436. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  6437. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  6438. hventerstabdelay = 100;
  6439. progmodedelay = 0;
  6440. latchcycles = 5;
  6441. togglevtg = 1;
  6442. poweroffdelay = 15;
  6443. resetdelayms = 1;
  6444. resetdelayus = 0;
  6445. hvleavestabdelay = 15;
  6446. resetdelay = 15;
  6447. chiperasepulsewidth = 0;
  6448. chiperasepolltimeout = 10;
  6449. programfusepulsewidth = 0;
  6450. programfusepolltimeout = 5;
  6451. programlockpulsewidth = 0;
  6452. programlockpolltimeout = 5;
  6453. memory "eeprom"
  6454. paged = no;
  6455. page_size = 4;
  6456. size = 1024;
  6457. min_write_delay = 3600;
  6458. max_write_delay = 3600;
  6459. readback_p1 = 0xff;
  6460. readback_p2 = 0xff;
  6461. read = " 1 0 1 0 0 0 0 0",
  6462. " 0 0 0 x x x a9 a8",
  6463. " a7 a6 a5 a4 a3 a2 a1 a0",
  6464. " o o o o o o o o";
  6465. write = " 1 1 0 0 0 0 0 0",
  6466. " 0 0 0 x x x a9 a8",
  6467. " a7 a6 a5 a4 a3 a2 a1 a0",
  6468. " i i i i i i i i";
  6469. loadpage_lo = " 1 1 0 0 0 0 0 1",
  6470. " 0 0 0 0 0 0 0 0",
  6471. " 0 0 0 0 0 0 a1 a0",
  6472. " i i i i i i i i";
  6473. writepage = " 1 1 0 0 0 0 1 0",
  6474. " 0 0 x x x x a9 a8",
  6475. " a7 a6 a5 a4 a3 a2 0 0",
  6476. " x x x x x x x x";
  6477. mode = 0x41;
  6478. delay = 5;
  6479. blocksize = 4;
  6480. readsize = 256;
  6481. ;
  6482. memory "flash"
  6483. paged = yes;
  6484. size = 32768;
  6485. page_size = 128;
  6486. num_pages = 256;
  6487. min_write_delay = 4500;
  6488. max_write_delay = 4500;
  6489. readback_p1 = 0xff;
  6490. readback_p2 = 0xff;
  6491. read_lo = " 0 0 1 0 0 0 0 0",
  6492. " 0 0 a13 a12 a11 a10 a9 a8",
  6493. " a7 a6 a5 a4 a3 a2 a1 a0",
  6494. " o o o o o o o o";
  6495. read_hi = " 0 0 1 0 1 0 0 0",
  6496. " 0 0 a13 a12 a11 a10 a9 a8",
  6497. " a7 a6 a5 a4 a3 a2 a1 a0",
  6498. " o o o o o o o o";
  6499. loadpage_lo = " 0 1 0 0 0 0 0 0",
  6500. " 0 0 0 x x x x x",
  6501. " x x a5 a4 a3 a2 a1 a0",
  6502. " i i i i i i i i";
  6503. loadpage_hi = " 0 1 0 0 1 0 0 0",
  6504. " 0 0 0 x x x x x",
  6505. " x x a5 a4 a3 a2 a1 a0",
  6506. " i i i i i i i i";
  6507. writepage = " 0 1 0 0 1 1 0 0",
  6508. " 0 0 a13 a12 a11 a10 a9 a8",
  6509. " a7 a6 x x x x x x",
  6510. " x x x x x x x x";
  6511. mode = 0x41;
  6512. delay = 6;
  6513. blocksize = 128;
  6514. readsize = 256;
  6515. ;
  6516. memory "lfuse"
  6517. size = 1;
  6518. min_write_delay = 4500;
  6519. max_write_delay = 4500;
  6520. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  6521. "x x x x x x x x o o o o o o o o";
  6522. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  6523. "x x x x x x x x i i i i i i i i";
  6524. ;
  6525. memory "hfuse"
  6526. size = 1;
  6527. min_write_delay = 4500;
  6528. max_write_delay = 4500;
  6529. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  6530. "x x x x x x x x o o o o o o o o";
  6531. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  6532. "x x x x x x x x i i i i i i i i";
  6533. ;
  6534. memory "efuse"
  6535. size = 1;
  6536. min_write_delay = 4500;
  6537. max_write_delay = 4500;
  6538. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  6539. "x x x x x x x x x x x x x o o o";
  6540. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  6541. "x x x x x x x x x x x x x i i i";
  6542. ;
  6543. memory "lock"
  6544. size = 1;
  6545. min_write_delay = 4500;
  6546. max_write_delay = 4500;
  6547. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  6548. "x x x x x x x x x x o o o o o o";
  6549. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  6550. "x x x x x x x x 1 1 i i i i i i";
  6551. ;
  6552. memory "calibration"
  6553. size = 1;
  6554. read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
  6555. "0 0 0 0 0 0 0 0 o o o o o o o o";
  6556. ;
  6557. memory "signature"
  6558. size = 3;
  6559. read = "0 0 1 1 0 0 0 0 0 0 0 x x x x x",
  6560. "x x x x x x a1 a0 o o o o o o o o";
  6561. ;
  6562. ;
  6563. #------------------------------------------------------------
  6564. # ATtiny2313
  6565. #------------------------------------------------------------
  6566. part
  6567. id = "t2313";
  6568. desc = "ATtiny2313";
  6569. has_debugwire = yes;
  6570. flash_instr = 0xB2, 0x0F, 0x1F;
  6571. eeprom_instr = 0xBB, 0xFE, 0xBB, 0xEE, 0xBB, 0xCC, 0xB2, 0x0D,
  6572. 0xBA, 0x0F, 0xB2, 0x0F, 0xBA, 0x0D, 0xBB, 0xBC,
  6573. 0x99, 0xE1, 0xBB, 0xAC;
  6574. stk500_devcode = 0x23;
  6575. ## Use the ATtiny26 devcode:
  6576. avr910_devcode = 0x5e;
  6577. signature = 0x1e 0x91 0x0a;
  6578. pagel = 0xD4;
  6579. bs2 = 0xD6;
  6580. reset = io;
  6581. chip_erase_delay = 9000;
  6582. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  6583. "x x x x x x x x x x x x x x x x";
  6584. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
  6585. "x x x x x x x x x x x x x x x x";
  6586. timeout = 200;
  6587. stabdelay = 100;
  6588. cmdexedelay = 25;
  6589. synchloops = 32;
  6590. bytedelay = 0;
  6591. pollindex = 3;
  6592. pollvalue = 0x53;
  6593. predelay = 1;
  6594. postdelay = 1;
  6595. pollmethod = 1;
  6596. pp_controlstack =
  6597. 0x0E, 0x1E, 0x0E, 0x1E, 0x2E, 0x3E, 0x2E, 0x3E,
  6598. 0x4E, 0x5E, 0x4E, 0x5E, 0x6E, 0x7E, 0x6E, 0x7E,
  6599. 0x26, 0x36, 0x66, 0x76, 0x2A, 0x3A, 0x6A, 0x7A,
  6600. 0x2E, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  6601. hventerstabdelay = 100;
  6602. progmodedelay = 0;
  6603. latchcycles = 5;
  6604. togglevtg = 1;
  6605. poweroffdelay = 15;
  6606. resetdelayms = 1;
  6607. resetdelayus = 0;
  6608. hvleavestabdelay = 15;
  6609. chiperasepulsewidth = 0;
  6610. chiperasepolltimeout = 10;
  6611. programfusepulsewidth = 0;
  6612. programfusepolltimeout = 5;
  6613. programlockpulsewidth = 0;
  6614. programlockpolltimeout = 5;
  6615. memory "eeprom"
  6616. size = 128;
  6617. paged = no;
  6618. page_size = 4;
  6619. min_write_delay = 4000;
  6620. max_write_delay = 4500;
  6621. readback_p1 = 0xff;
  6622. readback_p2 = 0xff;
  6623. read = "1 0 1 0 0 0 0 0 0 0 0 x x x x x",
  6624. "x a6 a5 a4 a3 a2 a1 a0 o o o o o o o o";
  6625. write = "1 1 0 0 0 0 0 0 0 0 0 x x x x x",
  6626. "x a6 a5 a4 a3 a2 a1 a0 i i i i i i i i";
  6627. loadpage_lo = " 1 1 0 0 0 0 0 1",
  6628. " 0 0 0 0 0 0 0 0",
  6629. " 0 0 0 0 0 0 a1 a0",
  6630. " i i i i i i i i";
  6631. writepage = " 1 1 0 0 0 0 1 0",
  6632. " 0 0 x x x x x x",
  6633. " x a6 a5 a4 a3 a2 0 0",
  6634. " x x x x x x x x";
  6635. mode = 0x41;
  6636. delay = 6;
  6637. blocksize = 4;
  6638. readsize = 256;
  6639. ;
  6640. memory "flash"
  6641. paged = yes;
  6642. size = 2048;
  6643. page_size = 32;
  6644. num_pages = 64;
  6645. min_write_delay = 4500;
  6646. max_write_delay = 4500;
  6647. readback_p1 = 0xff;
  6648. readback_p2 = 0xff;
  6649. read_lo = " 0 0 1 0 0 0 0 0",
  6650. " 0 0 0 0 0 0 a9 a8",
  6651. " a7 a6 a5 a4 a3 a2 a1 a0",
  6652. " o o o o o o o o";
  6653. read_hi = " 0 0 1 0 1 0 0 0",
  6654. " 0 0 0 0 0 0 a9 a8",
  6655. " a7 a6 a5 a4 a3 a2 a1 a0",
  6656. " o o o o o o o o";
  6657. # The information in the data sheet of April/2004 is wrong, this works:
  6658. loadpage_lo = " 0 1 0 0 0 0 0 0",
  6659. " 0 0 0 x x x x x",
  6660. " x x x x a3 a2 a1 a0",
  6661. " i i i i i i i i";
  6662. # The information in the data sheet of April/2004 is wrong, this works:
  6663. loadpage_hi = " 0 1 0 0 1 0 0 0",
  6664. " 0 0 0 x x x x x",
  6665. " x x x x a3 a2 a1 a0",
  6666. " i i i i i i i i";
  6667. # The information in the data sheet of April/2004 is wrong, this works:
  6668. writepage = " 0 1 0 0 1 1 0 0",
  6669. " 0 0 0 0 0 0 a9 a8",
  6670. " a7 a6 a5 a4 x x x x",
  6671. " x x x x x x x x";
  6672. mode = 0x41;
  6673. delay = 6;
  6674. blocksize = 32;
  6675. readsize = 256;
  6676. ;
  6677. # ATtiny2313 has Signature Bytes: 0x1E 0x91 0x0A.
  6678. memory "signature"
  6679. size = 3;
  6680. read = "0 0 1 1 0 0 0 0 0 0 0 x x x x x",
  6681. "x x x x x x a1 a0 o o o o o o o o";
  6682. ;
  6683. memory "lock"
  6684. size = 1;
  6685. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  6686. "x x x x x x x x 1 1 i i i i i i";
  6687. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  6688. "x x x x x x x x x x o o o o o o";
  6689. min_write_delay = 9000;
  6690. max_write_delay = 9000;
  6691. ;
  6692. memory "lfuse"
  6693. size = 1;
  6694. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  6695. "x x x x x x x x i i i i i i i i";
  6696. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  6697. "x x x x x x x x o o o o o o o o";
  6698. min_write_delay = 9000;
  6699. max_write_delay = 9000;
  6700. ;
  6701. memory "hfuse"
  6702. size = 1;
  6703. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  6704. "x x x x x x x x i i i i i i i i";
  6705. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  6706. "x x x x x x x x o o o o o o o o";
  6707. min_write_delay = 9000;
  6708. max_write_delay = 9000;
  6709. ;
  6710. memory "efuse"
  6711. size = 1;
  6712. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  6713. "x x x x x x x x x x x x x x x i";
  6714. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  6715. "x x x x x x x x o o o o o o o o";
  6716. min_write_delay = 9000;
  6717. max_write_delay = 9000;
  6718. ;
  6719. # The Tiny2313 has calibration data for both 4 MHz and 8 MHz.
  6720. # The information in the data sheet of April/2004 is wrong, this works:
  6721. memory "calibration"
  6722. size = 2;
  6723. read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
  6724. "0 0 0 0 0 0 0 a0 o o o o o o o o";
  6725. ;
  6726. ;
  6727. #------------------------------------------------------------
  6728. # AT90PWM2
  6729. #------------------------------------------------------------
  6730. part
  6731. id = "pwm2";
  6732. desc = "AT90PWM2";
  6733. has_debugwire = yes;
  6734. flash_instr = 0xB6, 0x01, 0x11;
  6735. eeprom_instr = 0xBD, 0xF2, 0xBD, 0xE1, 0xBB, 0xCF, 0xB4, 0x00,
  6736. 0xBE, 0x01, 0xB6, 0x01, 0xBC, 0x00, 0xBB, 0xBF,
  6737. 0x99, 0xF9, 0xBB, 0xAF;
  6738. stk500_devcode = 0x65;
  6739. ## avr910_devcode = ?;
  6740. signature = 0x1e 0x93 0x81;
  6741. pagel = 0xD8;
  6742. bs2 = 0xE2;
  6743. reset = io;
  6744. chip_erase_delay = 9000;
  6745. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  6746. "x x x x x x x x x x x x x x x x";
  6747. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
  6748. "x x x x x x x x x x x x x x x x";
  6749. timeout = 200;
  6750. stabdelay = 100;
  6751. cmdexedelay = 25;
  6752. synchloops = 32;
  6753. bytedelay = 0;
  6754. pollindex = 3;
  6755. pollvalue = 0x53;
  6756. predelay = 1;
  6757. postdelay = 1;
  6758. pollmethod = 1;
  6759. pp_controlstack =
  6760. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  6761. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  6762. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  6763. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  6764. hventerstabdelay = 100;
  6765. progmodedelay = 0;
  6766. latchcycles = 5;
  6767. togglevtg = 1;
  6768. poweroffdelay = 15;
  6769. resetdelayms = 1;
  6770. resetdelayus = 0;
  6771. hvleavestabdelay = 15;
  6772. chiperasepulsewidth = 0;
  6773. chiperasepolltimeout = 10;
  6774. programfusepulsewidth = 0;
  6775. programfusepolltimeout = 5;
  6776. programlockpulsewidth = 0;
  6777. programlockpolltimeout = 5;
  6778. memory "eeprom"
  6779. size = 512;
  6780. paged = no;
  6781. page_size = 4;
  6782. min_write_delay = 4000;
  6783. max_write_delay = 4500;
  6784. readback_p1 = 0xff;
  6785. readback_p2 = 0xff;
  6786. read = "1 0 1 0 0 0 0 0 0 0 0 x x x x a8",
  6787. "a7 a6 a5 a4 a3 a2 a1 a0 o o o o o o o o";
  6788. write = "1 1 0 0 0 0 0 0 0 0 0 x x x x a8",
  6789. "a7 a6 a5 a4 a3 a2 a1 a0 i i i i i i i i";
  6790. loadpage_lo = " 1 1 0 0 0 0 0 1",
  6791. " 0 0 0 0 0 0 0 0",
  6792. " 0 0 0 0 0 0 a1 a0",
  6793. " i i i i i i i i";
  6794. writepage = " 1 1 0 0 0 0 1 0",
  6795. " 0 0 x x x x x x",
  6796. " a7 a6 a5 a4 a3 a2 0 0",
  6797. " x x x x x x x x";
  6798. mode = 0x41;
  6799. delay = 6;
  6800. blocksize = 4;
  6801. readsize = 256;
  6802. ;
  6803. memory "flash"
  6804. paged = yes;
  6805. size = 8192;
  6806. page_size = 64;
  6807. num_pages = 128;
  6808. min_write_delay = 4500;
  6809. max_write_delay = 4500;
  6810. readback_p1 = 0xff;
  6811. readback_p2 = 0xff;
  6812. read_lo = " 0 0 1 0 0 0 0 0",
  6813. " 0 0 0 0 a11 a10 a9 a8",
  6814. " a7 a6 a5 a4 a3 a2 a1 a0",
  6815. " o o o o o o o o";
  6816. read_hi = " 0 0 1 0 1 0 0 0",
  6817. " 0 0 0 0 a11 a10 a9 a8",
  6818. " a7 a6 a5 a4 a3 a2 a1 a0",
  6819. " o o o o o o o o";
  6820. loadpage_lo = " 0 1 0 0 0 0 0 0",
  6821. " 0 0 0 x x x x x",
  6822. " x x x a4 a3 a2 a1 a0",
  6823. " i i i i i i i i";
  6824. loadpage_hi = " 0 1 0 0 1 0 0 0",
  6825. " 0 0 0 x x x x x",
  6826. " x x x a4 a3 a2 a1 a0",
  6827. " i i i i i i i i";
  6828. writepage = " 0 1 0 0 1 1 0 0",
  6829. " 0 0 0 0 a11 a10 a9 a8",
  6830. " a7 a6 a5 x x x x x",
  6831. " x x x x x x x x";
  6832. mode = 0x41;
  6833. delay = 6;
  6834. blocksize = 64;
  6835. readsize = 256;
  6836. ;
  6837. # AT90PWM2 has Signature Bytes: 0x1E 0x93 0x81.
  6838. memory "signature"
  6839. size = 3;
  6840. read = "0 0 1 1 0 0 0 0 0 0 x x x x x x",
  6841. "x x x x x x a1 a0 o o o o o o o o";
  6842. ;
  6843. memory "lock"
  6844. size = 1;
  6845. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  6846. "x x x x x x x x 1 1 i i i i i i";
  6847. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  6848. "x x x x x x x x x x o o o o o o";
  6849. min_write_delay = 9000;
  6850. max_write_delay = 9000;
  6851. ;
  6852. memory "lfuse"
  6853. size = 1;
  6854. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  6855. "x x x x x x x x i i i i i i i i";
  6856. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  6857. "x x x x x x x x o o o o o o o o";
  6858. min_write_delay = 9000;
  6859. max_write_delay = 9000;
  6860. ;
  6861. memory "hfuse"
  6862. size = 1;
  6863. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  6864. "x x x x x x x x i i i i i i i i";
  6865. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  6866. "x x x x x x x x o o o o o o o o";
  6867. min_write_delay = 9000;
  6868. max_write_delay = 9000;
  6869. ;
  6870. memory "efuse"
  6871. size = 1;
  6872. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  6873. "x x x x x x x x x x x x x x x i";
  6874. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  6875. "x x x x x x x x o o o o o o o o";
  6876. min_write_delay = 9000;
  6877. max_write_delay = 9000;
  6878. ;
  6879. memory "calibration"
  6880. size = 1;
  6881. read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
  6882. "0 0 0 0 0 0 0 0 o o o o o o o o";
  6883. ;
  6884. ;
  6885. #------------------------------------------------------------
  6886. # AT90PWM3
  6887. #------------------------------------------------------------
  6888. # Completely identical to AT90PWM2 (including the signature!)
  6889. part
  6890. id = "pwm3";
  6891. desc = "AT90PWM3";
  6892. has_debugwire = yes;
  6893. flash_instr = 0xB6, 0x01, 0x11;
  6894. eeprom_instr = 0xBD, 0xF2, 0xBD, 0xE1, 0xBB, 0xCF, 0xB4, 0x00,
  6895. 0xBE, 0x01, 0xB6, 0x01, 0xBC, 0x00, 0xBB, 0xBF,
  6896. 0x99, 0xF9, 0xBB, 0xAF;
  6897. stk500_devcode = 0x65;
  6898. ## avr910_devcode = ?;
  6899. signature = 0x1e 0x93 0x81;
  6900. pagel = 0xD8;
  6901. bs2 = 0xE2;
  6902. reset = io;
  6903. chip_erase_delay = 9000;
  6904. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  6905. "x x x x x x x x x x x x x x x x";
  6906. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
  6907. "x x x x x x x x x x x x x x x x";
  6908. timeout = 200;
  6909. stabdelay = 100;
  6910. cmdexedelay = 25;
  6911. synchloops = 32;
  6912. bytedelay = 0;
  6913. pollindex = 3;
  6914. pollvalue = 0x53;
  6915. predelay = 1;
  6916. postdelay = 1;
  6917. pollmethod = 1;
  6918. pp_controlstack =
  6919. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  6920. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  6921. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  6922. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  6923. hventerstabdelay = 100;
  6924. progmodedelay = 0;
  6925. latchcycles = 5;
  6926. togglevtg = 1;
  6927. poweroffdelay = 15;
  6928. resetdelayms = 1;
  6929. resetdelayus = 0;
  6930. hvleavestabdelay = 15;
  6931. chiperasepulsewidth = 0;
  6932. chiperasepolltimeout = 10;
  6933. programfusepulsewidth = 0;
  6934. programfusepolltimeout = 5;
  6935. programlockpulsewidth = 0;
  6936. programlockpolltimeout = 5;
  6937. memory "eeprom"
  6938. size = 512;
  6939. paged = no;
  6940. page_size = 4;
  6941. min_write_delay = 4000;
  6942. max_write_delay = 4500;
  6943. readback_p1 = 0xff;
  6944. readback_p2 = 0xff;
  6945. read = "1 0 1 0 0 0 0 0 0 0 0 x x x x a8",
  6946. "a7 a6 a5 a4 a3 a2 a1 a0 o o o o o o o o";
  6947. write = "1 1 0 0 0 0 0 0 0 0 0 x x x x a8",
  6948. "a7 a6 a5 a4 a3 a2 a1 a0 i i i i i i i i";
  6949. loadpage_lo = " 1 1 0 0 0 0 0 1",
  6950. " 0 0 0 0 0 0 0 0",
  6951. " 0 0 0 0 0 0 a1 a0",
  6952. " i i i i i i i i";
  6953. writepage = " 1 1 0 0 0 0 1 0",
  6954. " 0 0 x x x x x x",
  6955. " a7 a6 a5 a4 a3 a2 0 0",
  6956. " x x x x x x x x";
  6957. mode = 0x41;
  6958. delay = 6;
  6959. blocksize = 4;
  6960. readsize = 256;
  6961. ;
  6962. memory "flash"
  6963. paged = yes;
  6964. size = 8192;
  6965. page_size = 64;
  6966. num_pages = 128;
  6967. min_write_delay = 4500;
  6968. max_write_delay = 4500;
  6969. readback_p1 = 0xff;
  6970. readback_p2 = 0xff;
  6971. read_lo = " 0 0 1 0 0 0 0 0",
  6972. " 0 0 0 0 a11 a10 a9 a8",
  6973. " a7 a6 a5 a4 a3 a2 a1 a0",
  6974. " o o o o o o o o";
  6975. read_hi = " 0 0 1 0 1 0 0 0",
  6976. " 0 0 0 0 a11 a10 a9 a8",
  6977. " a7 a6 a5 a4 a3 a2 a1 a0",
  6978. " o o o o o o o o";
  6979. loadpage_lo = " 0 1 0 0 0 0 0 0",
  6980. " 0 0 0 x x x x x",
  6981. " x x x a4 a3 a2 a1 a0",
  6982. " i i i i i i i i";
  6983. loadpage_hi = " 0 1 0 0 1 0 0 0",
  6984. " 0 0 0 x x x x x",
  6985. " x x x a4 a3 a2 a1 a0",
  6986. " i i i i i i i i";
  6987. writepage = " 0 1 0 0 1 1 0 0",
  6988. " 0 0 0 0 a11 a10 a9 a8",
  6989. " a7 a6 a5 x x x x x",
  6990. " x x x x x x x x";
  6991. mode = 0x41;
  6992. delay = 6;
  6993. blocksize = 64;
  6994. readsize = 256;
  6995. ;
  6996. # AT90PWM2 has Signature Bytes: 0x1E 0x93 0x81.
  6997. memory "signature"
  6998. size = 3;
  6999. read = "0 0 1 1 0 0 0 0 0 0 x x x x x x",
  7000. "x x x x x x a1 a0 o o o o o o o o";
  7001. ;
  7002. memory "lock"
  7003. size = 1;
  7004. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  7005. "x x x x x x x x 1 1 i i i i i i";
  7006. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  7007. "x x x x x x x x x x o o o o o o";
  7008. min_write_delay = 9000;
  7009. max_write_delay = 9000;
  7010. ;
  7011. memory "lfuse"
  7012. size = 1;
  7013. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  7014. "x x x x x x x x i i i i i i i i";
  7015. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  7016. "x x x x x x x x o o o o o o o o";
  7017. min_write_delay = 9000;
  7018. max_write_delay = 9000;
  7019. ;
  7020. memory "hfuse"
  7021. size = 1;
  7022. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  7023. "x x x x x x x x i i i i i i i i";
  7024. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  7025. "x x x x x x x x o o o o o o o o";
  7026. min_write_delay = 9000;
  7027. max_write_delay = 9000;
  7028. ;
  7029. memory "efuse"
  7030. size = 1;
  7031. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  7032. "x x x x x x x x x x x x x x x i";
  7033. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  7034. "x x x x x x x x o o o o o o o o";
  7035. min_write_delay = 9000;
  7036. max_write_delay = 9000;
  7037. ;
  7038. memory "calibration"
  7039. size = 1;
  7040. read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
  7041. "0 0 0 0 0 0 0 0 o o o o o o o o";
  7042. ;
  7043. ;
  7044. #------------------------------------------------------------
  7045. # AT90PWM2B
  7046. #------------------------------------------------------------
  7047. # Same as AT90PWM2 but different signature.
  7048. part
  7049. id = "pwm2b";
  7050. desc = "AT90PWM2B";
  7051. has_debugwire = yes;
  7052. flash_instr = 0xB6, 0x01, 0x11;
  7053. eeprom_instr = 0xBD, 0xF2, 0xBD, 0xE1, 0xBB, 0xCF, 0xB4, 0x00,
  7054. 0xBE, 0x01, 0xB6, 0x01, 0xBC, 0x00, 0xBB, 0xBF,
  7055. 0x99, 0xF9, 0xBB, 0xAF;
  7056. stk500_devcode = 0x65;
  7057. ## avr910_devcode = ?;
  7058. signature = 0x1e 0x93 0x83;
  7059. pagel = 0xD8;
  7060. bs2 = 0xE2;
  7061. reset = io;
  7062. chip_erase_delay = 9000;
  7063. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  7064. "x x x x x x x x x x x x x x x x";
  7065. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
  7066. "x x x x x x x x x x x x x x x x";
  7067. timeout = 200;
  7068. stabdelay = 100;
  7069. cmdexedelay = 25;
  7070. synchloops = 32;
  7071. bytedelay = 0;
  7072. pollindex = 3;
  7073. pollvalue = 0x53;
  7074. predelay = 1;
  7075. postdelay = 1;
  7076. pollmethod = 1;
  7077. pp_controlstack =
  7078. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  7079. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  7080. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  7081. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  7082. hventerstabdelay = 100;
  7083. progmodedelay = 0;
  7084. latchcycles = 5;
  7085. togglevtg = 1;
  7086. poweroffdelay = 15;
  7087. resetdelayms = 1;
  7088. resetdelayus = 0;
  7089. hvleavestabdelay = 15;
  7090. chiperasepulsewidth = 0;
  7091. chiperasepolltimeout = 10;
  7092. programfusepulsewidth = 0;
  7093. programfusepolltimeout = 5;
  7094. programlockpulsewidth = 0;
  7095. programlockpolltimeout = 5;
  7096. memory "eeprom"
  7097. size = 512;
  7098. paged = no;
  7099. page_size = 4;
  7100. min_write_delay = 4000;
  7101. max_write_delay = 4500;
  7102. readback_p1 = 0xff;
  7103. readback_p2 = 0xff;
  7104. read = "1 0 1 0 0 0 0 0 0 0 0 x x x x a8",
  7105. "a7 a6 a5 a4 a3 a2 a1 a0 o o o o o o o o";
  7106. write = "1 1 0 0 0 0 0 0 0 0 0 x x x x a8",
  7107. "a7 a6 a5 a4 a3 a2 a1 a0 i i i i i i i i";
  7108. loadpage_lo = " 1 1 0 0 0 0 0 1",
  7109. " 0 0 0 0 0 0 0 0",
  7110. " 0 0 0 0 0 0 a1 a0",
  7111. " i i i i i i i i";
  7112. writepage = " 1 1 0 0 0 0 1 0",
  7113. " 0 0 x x x x x x",
  7114. " a7 a6 a5 a4 a3 a2 0 0",
  7115. " x x x x x x x x";
  7116. mode = 0x41;
  7117. delay = 6;
  7118. blocksize = 4;
  7119. readsize = 256;
  7120. ;
  7121. memory "flash"
  7122. paged = yes;
  7123. size = 8192;
  7124. page_size = 64;
  7125. num_pages = 128;
  7126. min_write_delay = 4500;
  7127. max_write_delay = 4500;
  7128. readback_p1 = 0xff;
  7129. readback_p2 = 0xff;
  7130. read_lo = " 0 0 1 0 0 0 0 0",
  7131. " 0 0 0 0 a11 a10 a9 a8",
  7132. " a7 a6 a5 a4 a3 a2 a1 a0",
  7133. " o o o o o o o o";
  7134. read_hi = " 0 0 1 0 1 0 0 0",
  7135. " 0 0 0 0 a11 a10 a9 a8",
  7136. " a7 a6 a5 a4 a3 a2 a1 a0",
  7137. " o o o o o o o o";
  7138. loadpage_lo = " 0 1 0 0 0 0 0 0",
  7139. " 0 0 0 x x x x x",
  7140. " x x x a4 a3 a2 a1 a0",
  7141. " i i i i i i i i";
  7142. loadpage_hi = " 0 1 0 0 1 0 0 0",
  7143. " 0 0 0 x x x x x",
  7144. " x x x a4 a3 a2 a1 a0",
  7145. " i i i i i i i i";
  7146. writepage = " 0 1 0 0 1 1 0 0",
  7147. " 0 0 0 0 a11 a10 a9 a8",
  7148. " a7 a6 a5 x x x x x",
  7149. " x x x x x x x x";
  7150. mode = 0x41;
  7151. delay = 6;
  7152. blocksize = 64;
  7153. readsize = 256;
  7154. ;
  7155. memory "signature"
  7156. size = 3;
  7157. read = "0 0 1 1 0 0 0 0 0 0 x x x x x x",
  7158. "x x x x x x a1 a0 o o o o o o o o";
  7159. ;
  7160. memory "lock"
  7161. size = 1;
  7162. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  7163. "x x x x x x x x 1 1 i i i i i i";
  7164. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  7165. "x x x x x x x x x x o o o o o o";
  7166. min_write_delay = 9000;
  7167. max_write_delay = 9000;
  7168. ;
  7169. memory "lfuse"
  7170. size = 1;
  7171. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  7172. "x x x x x x x x i i i i i i i i";
  7173. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  7174. "x x x x x x x x o o o o o o o o";
  7175. min_write_delay = 9000;
  7176. max_write_delay = 9000;
  7177. ;
  7178. memory "hfuse"
  7179. size = 1;
  7180. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  7181. "x x x x x x x x i i i i i i i i";
  7182. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  7183. "x x x x x x x x o o o o o o o o";
  7184. min_write_delay = 9000;
  7185. max_write_delay = 9000;
  7186. ;
  7187. memory "efuse"
  7188. size = 1;
  7189. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  7190. "x x x x x x x x x x x x x x x i";
  7191. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  7192. "x x x x x x x x o o o o o o o o";
  7193. min_write_delay = 9000;
  7194. max_write_delay = 9000;
  7195. ;
  7196. memory "calibration"
  7197. size = 1;
  7198. read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
  7199. "0 0 0 0 0 0 0 0 o o o o o o o o";
  7200. ;
  7201. ;
  7202. #------------------------------------------------------------
  7203. # AT90PWM3B
  7204. #------------------------------------------------------------
  7205. # Completely identical to AT90PWM2B (including the signature!)
  7206. part
  7207. id = "pwm3b";
  7208. desc = "AT90PWM3B";
  7209. has_debugwire = yes;
  7210. flash_instr = 0xB6, 0x01, 0x11;
  7211. eeprom_instr = 0xBD, 0xF2, 0xBD, 0xE1, 0xBB, 0xCF, 0xB4, 0x00,
  7212. 0xBE, 0x01, 0xB6, 0x01, 0xBC, 0x00, 0xBB, 0xBF,
  7213. 0x99, 0xF9, 0xBB, 0xAF;
  7214. stk500_devcode = 0x65;
  7215. ## avr910_devcode = ?;
  7216. signature = 0x1e 0x93 0x83;
  7217. pagel = 0xD8;
  7218. bs2 = 0xE2;
  7219. reset = io;
  7220. chip_erase_delay = 9000;
  7221. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  7222. "x x x x x x x x x x x x x x x x";
  7223. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
  7224. "x x x x x x x x x x x x x x x x";
  7225. timeout = 200;
  7226. stabdelay = 100;
  7227. cmdexedelay = 25;
  7228. synchloops = 32;
  7229. bytedelay = 0;
  7230. pollindex = 3;
  7231. pollvalue = 0x53;
  7232. predelay = 1;
  7233. postdelay = 1;
  7234. pollmethod = 1;
  7235. pp_controlstack =
  7236. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  7237. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  7238. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  7239. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  7240. hventerstabdelay = 100;
  7241. progmodedelay = 0;
  7242. latchcycles = 5;
  7243. togglevtg = 1;
  7244. poweroffdelay = 15;
  7245. resetdelayms = 1;
  7246. resetdelayus = 0;
  7247. hvleavestabdelay = 15;
  7248. chiperasepulsewidth = 0;
  7249. chiperasepolltimeout = 10;
  7250. programfusepulsewidth = 0;
  7251. programfusepolltimeout = 5;
  7252. programlockpulsewidth = 0;
  7253. programlockpolltimeout = 5;
  7254. memory "eeprom"
  7255. size = 512;
  7256. paged = no;
  7257. page_size = 4;
  7258. min_write_delay = 4000;
  7259. max_write_delay = 4500;
  7260. readback_p1 = 0xff;
  7261. readback_p2 = 0xff;
  7262. read = "1 0 1 0 0 0 0 0 0 0 0 x x x x a8",
  7263. "a7 a6 a5 a4 a3 a2 a1 a0 o o o o o o o o";
  7264. write = "1 1 0 0 0 0 0 0 0 0 0 x x x x a8",
  7265. "a7 a6 a5 a4 a3 a2 a1 a0 i i i i i i i i";
  7266. loadpage_lo = " 1 1 0 0 0 0 0 1",
  7267. " 0 0 0 0 0 0 0 0",
  7268. " 0 0 0 0 0 0 a1 a0",
  7269. " i i i i i i i i";
  7270. writepage = " 1 1 0 0 0 0 1 0",
  7271. " 0 0 x x x x x x",
  7272. " a7 a6 a5 a4 a3 a2 0 0",
  7273. " x x x x x x x x";
  7274. mode = 0x41;
  7275. delay = 6;
  7276. blocksize = 4;
  7277. readsize = 256;
  7278. ;
  7279. memory "flash"
  7280. paged = yes;
  7281. size = 8192;
  7282. page_size = 64;
  7283. num_pages = 128;
  7284. min_write_delay = 4500;
  7285. max_write_delay = 4500;
  7286. readback_p1 = 0xff;
  7287. readback_p2 = 0xff;
  7288. read_lo = " 0 0 1 0 0 0 0 0",
  7289. " 0 0 0 0 a11 a10 a9 a8",
  7290. " a7 a6 a5 a4 a3 a2 a1 a0",
  7291. " o o o o o o o o";
  7292. read_hi = " 0 0 1 0 1 0 0 0",
  7293. " 0 0 0 0 a11 a10 a9 a8",
  7294. " a7 a6 a5 a4 a3 a2 a1 a0",
  7295. " o o o o o o o o";
  7296. loadpage_lo = " 0 1 0 0 0 0 0 0",
  7297. " 0 0 0 x x x x x",
  7298. " x x x a4 a3 a2 a1 a0",
  7299. " i i i i i i i i";
  7300. loadpage_hi = " 0 1 0 0 1 0 0 0",
  7301. " 0 0 0 x x x x x",
  7302. " x x x a4 a3 a2 a1 a0",
  7303. " i i i i i i i i";
  7304. writepage = " 0 1 0 0 1 1 0 0",
  7305. " 0 0 0 0 a11 a10 a9 a8",
  7306. " a7 a6 a5 x x x x x",
  7307. " x x x x x x x x";
  7308. mode = 0x41;
  7309. delay = 6;
  7310. blocksize = 64;
  7311. readsize = 256;
  7312. ;
  7313. memory "signature"
  7314. size = 3;
  7315. read = "0 0 1 1 0 0 0 0 0 0 x x x x x x",
  7316. "x x x x x x a1 a0 o o o o o o o o";
  7317. ;
  7318. memory "lock"
  7319. size = 1;
  7320. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  7321. "x x x x x x x x 1 1 i i i i i i";
  7322. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  7323. "x x x x x x x x x x o o o o o o";
  7324. min_write_delay = 9000;
  7325. max_write_delay = 9000;
  7326. ;
  7327. memory "lfuse"
  7328. size = 1;
  7329. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  7330. "x x x x x x x x i i i i i i i i";
  7331. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  7332. "x x x x x x x x o o o o o o o o";
  7333. min_write_delay = 9000;
  7334. max_write_delay = 9000;
  7335. ;
  7336. memory "hfuse"
  7337. size = 1;
  7338. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  7339. "x x x x x x x x i i i i i i i i";
  7340. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  7341. "x x x x x x x x o o o o o o o o";
  7342. min_write_delay = 9000;
  7343. max_write_delay = 9000;
  7344. ;
  7345. memory "efuse"
  7346. size = 1;
  7347. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  7348. "x x x x x x x x x x x x x x x i";
  7349. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  7350. "x x x x x x x x o o o o o o o o";
  7351. min_write_delay = 9000;
  7352. max_write_delay = 9000;
  7353. ;
  7354. memory "calibration"
  7355. size = 1;
  7356. read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
  7357. "0 0 0 0 0 0 0 0 o o o o o o o o";
  7358. ;
  7359. ;
  7360. #------------------------------------------------------------
  7361. # ATtiny25
  7362. #------------------------------------------------------------
  7363. part
  7364. id = "t25";
  7365. desc = "ATtiny25";
  7366. has_debugwire = yes;
  7367. flash_instr = 0xB4, 0x02, 0x12;
  7368. eeprom_instr = 0xBB, 0xFF, 0xBB, 0xEE, 0xBB, 0xCC, 0xB2, 0x0D,
  7369. 0xBC, 0x02, 0xB4, 0x02, 0xBA, 0x0D, 0xBB, 0xBC,
  7370. 0x99, 0xE1, 0xBB, 0xAC;
  7371. ## no STK500 devcode in XML file, use the ATtiny45 one
  7372. stk500_devcode = 0x14;
  7373. ## avr910_devcode = ?;
  7374. ## Try the AT90S2313 devcode:
  7375. avr910_devcode = 0x20;
  7376. signature = 0x1e 0x91 0x08;
  7377. reset = io;
  7378. chip_erase_delay = 4500;
  7379. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  7380. "x x x x x x x x x x x x x x x x";
  7381. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
  7382. "x x x x x x x x x x x x x x x x";
  7383. timeout = 200;
  7384. stabdelay = 100;
  7385. cmdexedelay = 25;
  7386. synchloops = 32;
  7387. bytedelay = 0;
  7388. pollindex = 3;
  7389. pollvalue = 0x53;
  7390. predelay = 1;
  7391. postdelay = 1;
  7392. pollmethod = 1;
  7393. hvsp_controlstack =
  7394. 0x4C, 0x0C, 0x1C, 0x2C, 0x3C, 0x64, 0x74, 0x66,
  7395. 0x68, 0x78, 0x68, 0x68, 0x7A, 0x6A, 0x68, 0x78,
  7396. 0x78, 0x7D, 0x6D, 0x0C, 0x80, 0x40, 0x20, 0x10,
  7397. 0x11, 0x08, 0x04, 0x02, 0x03, 0x08, 0x04, 0x00;
  7398. hventerstabdelay = 100;
  7399. hvspcmdexedelay = 0;
  7400. synchcycles = 6;
  7401. latchcycles = 1;
  7402. togglevtg = 1;
  7403. poweroffdelay = 25;
  7404. resetdelayms = 1;
  7405. resetdelayus = 0;
  7406. hvleavestabdelay = 100;
  7407. resetdelay = 25;
  7408. chiperasepolltimeout = 40;
  7409. chiperasetime = 0;
  7410. programfusepolltimeout = 25;
  7411. programlockpolltimeout = 25;
  7412. memory "eeprom"
  7413. size = 128;
  7414. paged = no;
  7415. page_size = 4;
  7416. min_write_delay = 4000;
  7417. max_write_delay = 4500;
  7418. readback_p1 = 0xff;
  7419. readback_p2 = 0xff;
  7420. read = "1 0 1 0 0 0 0 0 0 0 0 x x x x x",
  7421. "x a6 a5 a4 a3 a2 a1 a0 o o o o o o o o";
  7422. write = "1 1 0 0 0 0 0 0 0 0 0 x x x x x",
  7423. "x a6 a5 a4 a3 a2 a1 a0 i i i i i i i i";
  7424. loadpage_lo = " 1 1 0 0 0 0 0 1",
  7425. " 0 0 0 0 0 0 0 0",
  7426. " 0 0 0 0 0 0 a1 a0",
  7427. " i i i i i i i i";
  7428. writepage = " 1 1 0 0 0 0 1 0",
  7429. " 0 0 x x x x x x",
  7430. " x a6 a5 a4 a3 a2 0 0",
  7431. " x x x x x x x x";
  7432. mode = 0x41;
  7433. delay = 6;
  7434. blocksize = 4;
  7435. readsize = 256;
  7436. ;
  7437. memory "flash"
  7438. paged = yes;
  7439. size = 2048;
  7440. page_size = 32;
  7441. num_pages = 64;
  7442. min_write_delay = 4500;
  7443. max_write_delay = 4500;
  7444. readback_p1 = 0xff;
  7445. readback_p2 = 0xff;
  7446. read_lo = " 0 0 1 0 0 0 0 0",
  7447. " 0 0 0 0 0 0 a9 a8",
  7448. " a7 a6 a5 a4 a3 a2 a1 a0",
  7449. " o o o o o o o o";
  7450. read_hi = " 0 0 1 0 1 0 0 0",
  7451. " 0 0 0 0 0 0 a9 a8",
  7452. " a7 a6 a5 a4 a3 a2 a1 a0",
  7453. " o o o o o o o o";
  7454. loadpage_lo = " 0 1 0 0 0 0 0 0",
  7455. " 0 0 0 x x x x x",
  7456. " x x x x a3 a2 a1 a0",
  7457. " i i i i i i i i";
  7458. loadpage_hi = " 0 1 0 0 1 0 0 0",
  7459. " 0 0 0 x x x x x",
  7460. " x x x x a3 a2 a1 a0",
  7461. " i i i i i i i i";
  7462. writepage = " 0 1 0 0 1 1 0 0",
  7463. " 0 0 0 0 0 0 a9 a8",
  7464. " a7 a6 a5 a4 x x x x",
  7465. " x x x x x x x x";
  7466. mode = 0x41;
  7467. delay = 6;
  7468. blocksize = 32;
  7469. readsize = 256;
  7470. ;
  7471. # ATtiny25 has Signature Bytes: 0x1E 0x91 0x08.
  7472. memory "signature"
  7473. size = 3;
  7474. read = "0 0 1 1 0 0 0 0 0 0 0 x x x x x",
  7475. "x x x x x x a1 a0 o o o o o o o o";
  7476. ;
  7477. memory "lock"
  7478. size = 1;
  7479. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  7480. "x x x x x x x x 1 1 i i i i i i";
  7481. min_write_delay = 9000;
  7482. max_write_delay = 9000;
  7483. ;
  7484. memory "lfuse"
  7485. size = 1;
  7486. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  7487. "x x x x x x x x i i i i i i i i";
  7488. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  7489. "x x x x x x x x o o o o o o o o";
  7490. min_write_delay = 9000;
  7491. max_write_delay = 9000;
  7492. ;
  7493. memory "hfuse"
  7494. size = 1;
  7495. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  7496. "x x x x x x x x i i i i i i i i";
  7497. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  7498. "x x x x x x x x o o o o o o o o";
  7499. min_write_delay = 9000;
  7500. max_write_delay = 9000;
  7501. ;
  7502. memory "efuse"
  7503. size = 1;
  7504. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  7505. "x x x x x x x x x x x x x x x i";
  7506. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  7507. "x x x x x x x x o o o o o o o o";
  7508. min_write_delay = 9000;
  7509. max_write_delay = 9000;
  7510. ;
  7511. memory "calibration"
  7512. size = 2;
  7513. read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
  7514. "0 0 0 0 0 0 0 a0 o o o o o o o o";
  7515. ;
  7516. ;
  7517. #------------------------------------------------------------
  7518. # ATtiny45
  7519. #------------------------------------------------------------
  7520. part
  7521. id = "t45";
  7522. desc = "ATtiny45";
  7523. has_debugwire = yes;
  7524. flash_instr = 0xB4, 0x02, 0x12;
  7525. eeprom_instr = 0xBB, 0xFF, 0xBB, 0xEE, 0xBB, 0xCC, 0xB2, 0x0D,
  7526. 0xBC, 0x02, 0xB4, 0x02, 0xBA, 0x0D, 0xBB, 0xBC,
  7527. 0x99, 0xE1, 0xBB, 0xAC;
  7528. stk500_devcode = 0x14;
  7529. ## avr910_devcode = ?;
  7530. ## Try the AT90S2313 devcode:
  7531. avr910_devcode = 0x20;
  7532. signature = 0x1e 0x92 0x06;
  7533. reset = io;
  7534. chip_erase_delay = 4500;
  7535. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  7536. "x x x x x x x x x x x x x x x x";
  7537. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
  7538. "x x x x x x x x x x x x x x x x";
  7539. timeout = 200;
  7540. stabdelay = 100;
  7541. cmdexedelay = 25;
  7542. synchloops = 32;
  7543. bytedelay = 0;
  7544. pollindex = 3;
  7545. pollvalue = 0x53;
  7546. predelay = 1;
  7547. postdelay = 1;
  7548. pollmethod = 1;
  7549. hvsp_controlstack =
  7550. 0x4C, 0x0C, 0x1C, 0x2C, 0x3C, 0x64, 0x74, 0x66,
  7551. 0x68, 0x78, 0x68, 0x68, 0x7A, 0x6A, 0x68, 0x78,
  7552. 0x78, 0x7D, 0x6D, 0x0C, 0x80, 0x40, 0x20, 0x10,
  7553. 0x11, 0x08, 0x04, 0x02, 0x03, 0x08, 0x04, 0x00;
  7554. hventerstabdelay = 100;
  7555. progmodedelay = 0;
  7556. hvspcmdexedelay = 0;
  7557. synchcycles = 6;
  7558. latchcycles = 1;
  7559. togglevtg = 1;
  7560. poweroffdelay = 25;
  7561. resetdelayms = 1;
  7562. resetdelayus = 0;
  7563. hvleavestabdelay = 100;
  7564. resetdelay = 25;
  7565. chiperasepolltimeout = 40;
  7566. chiperasetime = 0;
  7567. programfusepolltimeout = 25;
  7568. programlockpolltimeout = 25;
  7569. memory "eeprom"
  7570. size = 256;
  7571. page_size = 4;
  7572. min_write_delay = 4000;
  7573. max_write_delay = 4500;
  7574. readback_p1 = 0xff;
  7575. readback_p2 = 0xff;
  7576. read = "1 0 1 0 0 0 0 0 0 0 0 x x x x x",
  7577. "a7 a6 a5 a4 a3 a2 a1 a0 o o o o o o o o";
  7578. write = "1 1 0 0 0 0 0 0 0 0 0 x x x x x",
  7579. "a7 a6 a5 a4 a3 a2 a1 a0 i i i i i i i i";
  7580. loadpage_lo = " 1 1 0 0 0 0 0 1",
  7581. " 0 0 0 0 0 0 0 0",
  7582. " 0 0 0 0 0 0 a1 a0",
  7583. " i i i i i i i i";
  7584. writepage = " 1 1 0 0 0 0 1 0",
  7585. " 0 0 x x x x x x",
  7586. " a7 a6 a5 a4 a3 a2 0 0",
  7587. " x x x x x x x x";
  7588. mode = 0x41;
  7589. delay = 6;
  7590. blocksize = 4;
  7591. readsize = 256;
  7592. ;
  7593. memory "flash"
  7594. paged = yes;
  7595. size = 4096;
  7596. page_size = 64;
  7597. num_pages = 64;
  7598. min_write_delay = 4500;
  7599. max_write_delay = 4500;
  7600. readback_p1 = 0xff;
  7601. readback_p2 = 0xff;
  7602. read_lo = " 0 0 1 0 0 0 0 0",
  7603. " 0 0 0 0 0 a10 a9 a8",
  7604. " a7 a6 a5 a4 a3 a2 a1 a0",
  7605. " o o o o o o o o";
  7606. read_hi = " 0 0 1 0 1 0 0 0",
  7607. " 0 0 0 0 0 a10 a9 a8",
  7608. " a7 a6 a5 a4 a3 a2 a1 a0",
  7609. " o o o o o o o o";
  7610. loadpage_lo = " 0 1 0 0 0 0 0 0",
  7611. " 0 0 0 x x x x x",
  7612. " x x x a4 a3 a2 a1 a0",
  7613. " i i i i i i i i";
  7614. loadpage_hi = " 0 1 0 0 1 0 0 0",
  7615. " 0 0 0 x x x x x",
  7616. " x x x a4 a3 a2 a1 a0",
  7617. " i i i i i i i i";
  7618. writepage = " 0 1 0 0 1 1 0 0",
  7619. " 0 0 0 0 0 a10 a9 a8",
  7620. " a7 a6 a5 x x x x x",
  7621. " x x x x x x x x";
  7622. mode = 0x41;
  7623. delay = 6;
  7624. blocksize = 32;
  7625. readsize = 256;
  7626. ;
  7627. # ATtiny45 has Signature Bytes: 0x1E 0x92 0x08. (Data sheet 2586C-AVR-06/05 (doc2586.pdf) indicates otherwise!)
  7628. memory "signature"
  7629. size = 3;
  7630. read = "0 0 1 1 0 0 0 0 0 0 0 x x x x x",
  7631. "x x x x x x a1 a0 o o o o o o o o";
  7632. ;
  7633. memory "lock"
  7634. size = 1;
  7635. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  7636. "x x x x x x x x 1 1 i i i i i i";
  7637. min_write_delay = 9000;
  7638. max_write_delay = 9000;
  7639. ;
  7640. memory "lfuse"
  7641. size = 1;
  7642. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  7643. "x x x x x x x x i i i i i i i i";
  7644. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  7645. "x x x x x x x x o o o o o o o o";
  7646. min_write_delay = 9000;
  7647. max_write_delay = 9000;
  7648. ;
  7649. memory "hfuse"
  7650. size = 1;
  7651. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  7652. "x x x x x x x x i i i i i i i i";
  7653. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  7654. "x x x x x x x x o o o o o o o o";
  7655. min_write_delay = 9000;
  7656. max_write_delay = 9000;
  7657. ;
  7658. memory "efuse"
  7659. size = 1;
  7660. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  7661. "x x x x x x x x x x x x x x x i";
  7662. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  7663. "x x x x x x x x o o o o o o o o";
  7664. min_write_delay = 9000;
  7665. max_write_delay = 9000;
  7666. ;
  7667. memory "calibration"
  7668. size = 2;
  7669. read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
  7670. "0 0 0 0 0 0 0 a0 o o o o o o o o";
  7671. ;
  7672. ;
  7673. #------------------------------------------------------------
  7674. # ATtiny85
  7675. #------------------------------------------------------------
  7676. part
  7677. id = "t85";
  7678. desc = "ATtiny85";
  7679. has_debugwire = yes;
  7680. flash_instr = 0xB4, 0x02, 0x12;
  7681. eeprom_instr = 0xBB, 0xFF, 0xBB, 0xEE, 0xBB, 0xCC, 0xB2, 0x0D,
  7682. 0xBC, 0x02, 0xB4, 0x02, 0xBA, 0x0D, 0xBB, 0xBC,
  7683. 0x99, 0xE1, 0xBB, 0xAC;
  7684. ## no STK500 devcode in XML file, use the ATtiny45 one
  7685. stk500_devcode = 0x14;
  7686. ## avr910_devcode = ?;
  7687. ## Try the AT90S2313 devcode:
  7688. avr910_devcode = 0x20;
  7689. signature = 0x1e 0x93 0x0b;
  7690. reset = io;
  7691. chip_erase_delay = 4500;
  7692. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  7693. "x x x x x x x x x x x x x x x x";
  7694. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
  7695. "x x x x x x x x x x x x x x x x";
  7696. timeout = 200;
  7697. stabdelay = 100;
  7698. cmdexedelay = 25;
  7699. synchloops = 32;
  7700. bytedelay = 0;
  7701. pollindex = 3;
  7702. pollvalue = 0x53;
  7703. predelay = 1;
  7704. postdelay = 1;
  7705. pollmethod = 1;
  7706. hvsp_controlstack =
  7707. 0x4C, 0x0C, 0x1C, 0x2C, 0x3C, 0x64, 0x74, 0x66,
  7708. 0x68, 0x78, 0x68, 0x68, 0x7A, 0x6A, 0x68, 0x78,
  7709. 0x78, 0x7D, 0x6D, 0x0C, 0x80, 0x40, 0x20, 0x10,
  7710. 0x11, 0x08, 0x04, 0x02, 0x03, 0x08, 0x04, 0x00;
  7711. hventerstabdelay = 100;
  7712. hvspcmdexedelay = 0;
  7713. synchcycles = 6;
  7714. latchcycles = 1;
  7715. togglevtg = 1;
  7716. poweroffdelay = 25;
  7717. resetdelayms = 1;
  7718. resetdelayus = 0;
  7719. hvleavestabdelay = 100;
  7720. resetdelay = 25;
  7721. chiperasepolltimeout = 40;
  7722. chiperasetime = 0;
  7723. programfusepolltimeout = 25;
  7724. programlockpolltimeout = 25;
  7725. memory "eeprom"
  7726. size = 512;
  7727. paged = no;
  7728. page_size = 4;
  7729. min_write_delay = 4000;
  7730. max_write_delay = 4500;
  7731. readback_p1 = 0xff;
  7732. readback_p2 = 0xff;
  7733. read = "1 0 1 0 0 0 0 0 0 0 0 x x x x a8",
  7734. "a7 a6 a5 a4 a3 a2 a1 a0 o o o o o o o o";
  7735. write = "1 1 0 0 0 0 0 0 0 0 0 x x x x a8",
  7736. "a8 a6 a5 a4 a3 a2 a1 a0 i i i i i i i i";
  7737. loadpage_lo = " 1 1 0 0 0 0 0 1",
  7738. " 0 0 0 0 0 0 0 0",
  7739. " 0 0 0 0 0 0 a1 a0",
  7740. " i i i i i i i i";
  7741. writepage = " 1 1 0 0 0 0 1 0",
  7742. " 0 0 x x x x x a8",
  7743. " a7 a6 a5 a4 a3 a2 0 0",
  7744. " x x x x x x x x";
  7745. mode = 0x41;
  7746. delay = 6;
  7747. blocksize = 4;
  7748. readsize = 256;
  7749. ;
  7750. memory "flash"
  7751. paged = yes;
  7752. size = 8192;
  7753. page_size = 64;
  7754. num_pages = 128;
  7755. min_write_delay = 4500;
  7756. max_write_delay = 4500;
  7757. readback_p1 = 0xff;
  7758. readback_p2 = 0xff;
  7759. read_lo = " 0 0 1 0 0 0 0 0",
  7760. " 0 0 0 0 a11 a10 a9 a8",
  7761. " a7 a6 a5 a4 a3 a2 a1 a0",
  7762. " o o o o o o o o";
  7763. read_hi = " 0 0 1 0 1 0 0 0",
  7764. " 0 0 0 0 a11 a10 a9 a8",
  7765. " a7 a6 a5 a4 a3 a2 a1 a0",
  7766. " o o o o o o o o";
  7767. loadpage_lo = " 0 1 0 0 0 0 0 0",
  7768. " 0 0 0 x x x x x",
  7769. " x x x a4 a3 a2 a1 a0",
  7770. " i i i i i i i i";
  7771. loadpage_hi = " 0 1 0 0 1 0 0 0",
  7772. " 0 0 0 x x x x x",
  7773. " x x x a4 a3 a2 a1 a0",
  7774. " i i i i i i i i";
  7775. writepage = " 0 1 0 0 1 1 0 0",
  7776. " 0 0 0 0 a11 a10 a9 a8",
  7777. " a7 a6 a5 x x x x x",
  7778. " x x x x x x x x";
  7779. mode = 0x41;
  7780. delay = 6;
  7781. blocksize = 32;
  7782. readsize = 256;
  7783. ;
  7784. # ATtiny85 has Signature Bytes: 0x1E 0x93 0x08.
  7785. memory "signature"
  7786. size = 3;
  7787. read = "0 0 1 1 0 0 0 0 0 0 0 x x x x x",
  7788. "x x x x x x a1 a0 o o o o o o o o";
  7789. ;
  7790. memory "lock"
  7791. size = 1;
  7792. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  7793. "x x x x x x x x 1 1 i i i i i i";
  7794. min_write_delay = 9000;
  7795. max_write_delay = 9000;
  7796. ;
  7797. memory "lfuse"
  7798. size = 1;
  7799. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  7800. "x x x x x x x x i i i i i i i i";
  7801. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  7802. "x x x x x x x x o o o o o o o o";
  7803. min_write_delay = 9000;
  7804. max_write_delay = 9000;
  7805. ;
  7806. memory "hfuse"
  7807. size = 1;
  7808. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  7809. "x x x x x x x x i i i i i i i i";
  7810. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  7811. "x x x x x x x x o o o o o o o o";
  7812. min_write_delay = 9000;
  7813. max_write_delay = 9000;
  7814. ;
  7815. memory "efuse"
  7816. size = 1;
  7817. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  7818. "x x x x x x x x x x x x x x x i";
  7819. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  7820. "x x x x x x x x o o o o o o o o";
  7821. min_write_delay = 9000;
  7822. max_write_delay = 9000;
  7823. ;
  7824. memory "calibration"
  7825. size = 2;
  7826. read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
  7827. "0 0 0 0 0 0 0 a0 o o o o o o o o";
  7828. ;
  7829. ;
  7830. #------------------------------------------------------------
  7831. # ATmega640
  7832. #------------------------------------------------------------
  7833. # Almost same as ATmega1280, except for different memory sizes
  7834. part
  7835. id = "m640";
  7836. desc = "ATMEGA640";
  7837. signature = 0x1e 0x96 0x08;
  7838. has_jtag = yes;
  7839. # stk500_devcode = 0xB2;
  7840. # avr910_devcode = 0x43;
  7841. chip_erase_delay = 9000;
  7842. pagel = 0xD7;
  7843. bs2 = 0xA0;
  7844. reset = dedicated;
  7845. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  7846. "x x x x x x x x x x x x x x x x";
  7847. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 0 0 0 0 0",
  7848. "x x x x x x x x x x x x x x x x";
  7849. timeout = 200;
  7850. stabdelay = 100;
  7851. cmdexedelay = 25;
  7852. synchloops = 32;
  7853. bytedelay = 0;
  7854. pollindex = 3;
  7855. pollvalue = 0x53;
  7856. predelay = 1;
  7857. postdelay = 1;
  7858. pollmethod = 1;
  7859. pp_controlstack =
  7860. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  7861. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  7862. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  7863. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  7864. hventerstabdelay = 100;
  7865. progmodedelay = 0;
  7866. latchcycles = 5;
  7867. togglevtg = 1;
  7868. poweroffdelay = 15;
  7869. resetdelayms = 1;
  7870. resetdelayus = 0;
  7871. hvleavestabdelay = 15;
  7872. chiperasepulsewidth = 0;
  7873. chiperasepolltimeout = 10;
  7874. programfusepulsewidth = 0;
  7875. programfusepolltimeout = 5;
  7876. programlockpulsewidth = 0;
  7877. programlockpolltimeout = 5;
  7878. idr = 0x31;
  7879. spmcr = 0x57;
  7880. rampz = 0x3b;
  7881. allowfullpagebitstream = no;
  7882. memory "eeprom"
  7883. paged = no; /* leave this "no" */
  7884. page_size = 8; /* for parallel programming */
  7885. size = 4096;
  7886. min_write_delay = 9000;
  7887. max_write_delay = 9000;
  7888. readback_p1 = 0x00;
  7889. readback_p2 = 0x00;
  7890. read = " 1 0 1 0 0 0 0 0",
  7891. " x x x x a11 a10 a9 a8",
  7892. " a7 a6 a5 a4 a3 a2 a1 a0",
  7893. " o o o o o o o o";
  7894. write = " 1 1 0 0 0 0 0 0",
  7895. " x x x x a11 a10 a9 a8",
  7896. " a7 a6 a5 a4 a3 a2 a1 a0",
  7897. " i i i i i i i i";
  7898. loadpage_lo = " 1 1 0 0 0 0 0 1",
  7899. " 0 0 0 0 0 0 0 0",
  7900. " 0 0 0 0 0 a2 a1 a0",
  7901. " i i i i i i i i";
  7902. writepage = " 1 1 0 0 0 0 1 0",
  7903. " 0 0 x x a11 a10 a9 a8",
  7904. " a7 a6 a5 a4 a3 0 0 0",
  7905. " x x x x x x x x";
  7906. mode = 0x41;
  7907. delay = 10;
  7908. blocksize = 8;
  7909. readsize = 256;
  7910. ;
  7911. memory "flash"
  7912. paged = yes;
  7913. size = 65536;
  7914. page_size = 256;
  7915. num_pages = 256;
  7916. min_write_delay = 4500;
  7917. max_write_delay = 4500;
  7918. readback_p1 = 0x00;
  7919. readback_p2 = 0x00;
  7920. read_lo = " 0 0 1 0 0 0 0 0",
  7921. " 0 a14 a13 a12 a11 a10 a9 a8",
  7922. " a7 a6 a5 a4 a3 a2 a1 a0",
  7923. " o o o o o o o o";
  7924. read_hi = " 0 0 1 0 1 0 0 0",
  7925. " 0 a14 a13 a12 a11 a10 a9 a8",
  7926. " a7 a6 a5 a4 a3 a2 a1 a0",
  7927. " o o o o o o o o";
  7928. loadpage_lo = " 0 1 0 0 0 0 0 0",
  7929. " x x x x x x x x",
  7930. " x a6 a5 a4 a3 a2 a1 a0",
  7931. " i i i i i i i i";
  7932. loadpage_hi = " 0 1 0 0 1 0 0 0",
  7933. " x x x x x x x x",
  7934. " x a6 a5 a4 a3 a2 a1 a0",
  7935. " i i i i i i i i";
  7936. writepage = " 0 1 0 0 1 1 0 0",
  7937. " 0 a14 a13 a12 a11 a10 a9 a8",
  7938. " a7 x x x x x x x",
  7939. " x x x x x x x x";
  7940. mode = 0x41;
  7941. delay = 10;
  7942. blocksize = 256;
  7943. readsize = 256;
  7944. ;
  7945. memory "lfuse"
  7946. size = 1;
  7947. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  7948. "x x x x x x x x i i i i i i i i";
  7949. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  7950. "x x x x x x x x o o o o o o o o";
  7951. min_write_delay = 9000;
  7952. max_write_delay = 9000;
  7953. ;
  7954. memory "hfuse"
  7955. size = 1;
  7956. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  7957. "x x x x x x x x i i i i i i i i";
  7958. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  7959. "x x x x x x x x o o o o o o o o";
  7960. min_write_delay = 9000;
  7961. max_write_delay = 9000;
  7962. ;
  7963. memory "efuse"
  7964. size = 1;
  7965. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  7966. "x x x x x x x x x x x x x i i i";
  7967. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  7968. "x x x x x x x x o o o o o o o o";
  7969. min_write_delay = 9000;
  7970. max_write_delay = 9000;
  7971. ;
  7972. memory "lock"
  7973. size = 1;
  7974. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  7975. "x x x x x x x x x x o o o o o o";
  7976. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  7977. "x x x x x x x x 1 1 i i i i i i";
  7978. min_write_delay = 9000;
  7979. max_write_delay = 9000;
  7980. ;
  7981. memory "calibration"
  7982. size = 1;
  7983. read = "0 0 1 1 1 0 0 0 x x x x x x x x",
  7984. "0 0 0 0 0 0 0 0 o o o o o o o o";
  7985. ;
  7986. memory "signature"
  7987. size = 3;
  7988. read = "0 0 1 1 0 0 0 0 x x x x x x x x",
  7989. "x x x x x x a1 a0 o o o o o o o o";
  7990. ;
  7991. ;
  7992. #------------------------------------------------------------
  7993. # ATmega1280
  7994. #------------------------------------------------------------
  7995. part
  7996. id = "m1280";
  7997. desc = "ATMEGA1280";
  7998. signature = 0x1e 0x97 0x03;
  7999. has_jtag = yes;
  8000. # stk500_devcode = 0xB2;
  8001. # avr910_devcode = 0x43;
  8002. chip_erase_delay = 9000;
  8003. pagel = 0xD7;
  8004. bs2 = 0xA0;
  8005. reset = dedicated;
  8006. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  8007. "x x x x x x x x x x x x x x x x";
  8008. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 0 0 0 0 0",
  8009. "x x x x x x x x x x x x x x x x";
  8010. timeout = 200;
  8011. stabdelay = 100;
  8012. cmdexedelay = 25;
  8013. synchloops = 32;
  8014. bytedelay = 0;
  8015. pollindex = 3;
  8016. pollvalue = 0x53;
  8017. predelay = 1;
  8018. postdelay = 1;
  8019. pollmethod = 1;
  8020. pp_controlstack =
  8021. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  8022. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  8023. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  8024. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  8025. hventerstabdelay = 100;
  8026. progmodedelay = 0;
  8027. latchcycles = 5;
  8028. togglevtg = 1;
  8029. poweroffdelay = 15;
  8030. resetdelayms = 1;
  8031. resetdelayus = 0;
  8032. hvleavestabdelay = 15;
  8033. chiperasepulsewidth = 0;
  8034. chiperasepolltimeout = 10;
  8035. programfusepulsewidth = 0;
  8036. programfusepolltimeout = 5;
  8037. programlockpulsewidth = 0;
  8038. programlockpolltimeout = 5;
  8039. idr = 0x31;
  8040. spmcr = 0x57;
  8041. rampz = 0x3b;
  8042. allowfullpagebitstream = no;
  8043. memory "eeprom"
  8044. paged = no; /* leave this "no" */
  8045. page_size = 8; /* for parallel programming */
  8046. size = 4096;
  8047. min_write_delay = 9000;
  8048. max_write_delay = 9000;
  8049. readback_p1 = 0x00;
  8050. readback_p2 = 0x00;
  8051. read = " 1 0 1 0 0 0 0 0",
  8052. " x x x x a11 a10 a9 a8",
  8053. " a7 a6 a5 a4 a3 a2 a1 a0",
  8054. " o o o o o o o o";
  8055. write = " 1 1 0 0 0 0 0 0",
  8056. " x x x x a11 a10 a9 a8",
  8057. " a7 a6 a5 a4 a3 a2 a1 a0",
  8058. " i i i i i i i i";
  8059. loadpage_lo = " 1 1 0 0 0 0 0 1",
  8060. " 0 0 0 0 0 0 0 0",
  8061. " 0 0 0 0 0 a2 a1 a0",
  8062. " i i i i i i i i";
  8063. writepage = " 1 1 0 0 0 0 1 0",
  8064. " 0 0 x x a11 a10 a9 a8",
  8065. " a7 a6 a5 a4 a3 0 0 0",
  8066. " x x x x x x x x";
  8067. mode = 0x41;
  8068. delay = 10;
  8069. blocksize = 8;
  8070. readsize = 256;
  8071. ;
  8072. memory "flash"
  8073. paged = yes;
  8074. size = 131072;
  8075. page_size = 256;
  8076. num_pages = 512;
  8077. min_write_delay = 4500;
  8078. max_write_delay = 4500;
  8079. readback_p1 = 0x00;
  8080. readback_p2 = 0x00;
  8081. read_lo = " 0 0 1 0 0 0 0 0",
  8082. "a15 a14 a13 a12 a11 a10 a9 a8",
  8083. " a7 a6 a5 a4 a3 a2 a1 a0",
  8084. " o o o o o o o o";
  8085. read_hi = " 0 0 1 0 1 0 0 0",
  8086. "a15 a14 a13 a12 a11 a10 a9 a8",
  8087. " a7 a6 a5 a4 a3 a2 a1 a0",
  8088. " o o o o o o o o";
  8089. loadpage_lo = " 0 1 0 0 0 0 0 0",
  8090. " x x x x x x x x",
  8091. " x a6 a5 a4 a3 a2 a1 a0",
  8092. " i i i i i i i i";
  8093. loadpage_hi = " 0 1 0 0 1 0 0 0",
  8094. " x x x x x x x x",
  8095. " x a6 a5 a4 a3 a2 a1 a0",
  8096. " i i i i i i i i";
  8097. writepage = " 0 1 0 0 1 1 0 0",
  8098. "a15 a14 a13 a12 a11 a10 a9 a8",
  8099. " a7 x x x x x x x",
  8100. " x x x x x x x x";
  8101. mode = 0x41;
  8102. delay = 10;
  8103. blocksize = 256;
  8104. readsize = 256;
  8105. ;
  8106. memory "lfuse"
  8107. size = 1;
  8108. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  8109. "x x x x x x x x i i i i i i i i";
  8110. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  8111. "x x x x x x x x o o o o o o o o";
  8112. min_write_delay = 9000;
  8113. max_write_delay = 9000;
  8114. ;
  8115. memory "hfuse"
  8116. size = 1;
  8117. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  8118. "x x x x x x x x i i i i i i i i";
  8119. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  8120. "x x x x x x x x o o o o o o o o";
  8121. min_write_delay = 9000;
  8122. max_write_delay = 9000;
  8123. ;
  8124. memory "efuse"
  8125. size = 1;
  8126. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  8127. "x x x x x x x x x x x x x i i i";
  8128. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  8129. "x x x x x x x x o o o o o o o o";
  8130. min_write_delay = 9000;
  8131. max_write_delay = 9000;
  8132. ;
  8133. memory "lock"
  8134. size = 1;
  8135. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  8136. "x x x x x x x x x x o o o o o o";
  8137. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  8138. "x x x x x x x x 1 1 i i i i i i";
  8139. min_write_delay = 9000;
  8140. max_write_delay = 9000;
  8141. ;
  8142. memory "calibration"
  8143. size = 1;
  8144. read = "0 0 1 1 1 0 0 0 x x x x x x x x",
  8145. "0 0 0 0 0 0 0 0 o o o o o o o o";
  8146. ;
  8147. memory "signature"
  8148. size = 3;
  8149. read = "0 0 1 1 0 0 0 0 x x x x x x x x",
  8150. "x x x x x x a1 a0 o o o o o o o o";
  8151. ;
  8152. ;
  8153. #------------------------------------------------------------
  8154. # ATmega1281
  8155. #------------------------------------------------------------
  8156. # Identical to ATmega1280
  8157. part
  8158. id = "m1281";
  8159. desc = "ATMEGA1281";
  8160. signature = 0x1e 0x97 0x04;
  8161. has_jtag = yes;
  8162. # stk500_devcode = 0xB2;
  8163. # avr910_devcode = 0x43;
  8164. chip_erase_delay = 9000;
  8165. pagel = 0xD7;
  8166. bs2 = 0xA0;
  8167. reset = dedicated;
  8168. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  8169. "x x x x x x x x x x x x x x x x";
  8170. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 0 0 0 0 0",
  8171. "x x x x x x x x x x x x x x x x";
  8172. timeout = 200;
  8173. stabdelay = 100;
  8174. cmdexedelay = 25;
  8175. synchloops = 32;
  8176. bytedelay = 0;
  8177. pollindex = 3;
  8178. pollvalue = 0x53;
  8179. predelay = 1;
  8180. postdelay = 1;
  8181. pollmethod = 1;
  8182. pp_controlstack =
  8183. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  8184. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  8185. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  8186. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  8187. hventerstabdelay = 100;
  8188. progmodedelay = 0;
  8189. latchcycles = 5;
  8190. togglevtg = 1;
  8191. poweroffdelay = 15;
  8192. resetdelayms = 1;
  8193. resetdelayus = 0;
  8194. hvleavestabdelay = 15;
  8195. chiperasepulsewidth = 0;
  8196. chiperasepolltimeout = 10;
  8197. programfusepulsewidth = 0;
  8198. programfusepolltimeout = 5;
  8199. programlockpulsewidth = 0;
  8200. programlockpolltimeout = 5;
  8201. idr = 0x31;
  8202. spmcr = 0x57;
  8203. rampz = 0x3b;
  8204. allowfullpagebitstream = no;
  8205. memory "eeprom"
  8206. paged = no; /* leave this "no" */
  8207. page_size = 8; /* for parallel programming */
  8208. size = 4096;
  8209. min_write_delay = 9000;
  8210. max_write_delay = 9000;
  8211. readback_p1 = 0x00;
  8212. readback_p2 = 0x00;
  8213. read = " 1 0 1 0 0 0 0 0",
  8214. " x x x x a11 a10 a9 a8",
  8215. " a7 a6 a5 a4 a3 a2 a1 a0",
  8216. " o o o o o o o o";
  8217. write = " 1 1 0 0 0 0 0 0",
  8218. " x x x x a11 a10 a9 a8",
  8219. " a7 a6 a5 a4 a3 a2 a1 a0",
  8220. " i i i i i i i i";
  8221. loadpage_lo = " 1 1 0 0 0 0 0 1",
  8222. " 0 0 0 0 0 0 0 0",
  8223. " 0 0 0 0 0 a2 a1 a0",
  8224. " i i i i i i i i";
  8225. writepage = " 1 1 0 0 0 0 1 0",
  8226. " 0 0 x x a11 a10 a9 a8",
  8227. " a7 a6 a5 a4 a3 0 0 0",
  8228. " x x x x x x x x";
  8229. mode = 0x41;
  8230. delay = 10;
  8231. blocksize = 8;
  8232. readsize = 256;
  8233. ;
  8234. memory "flash"
  8235. paged = yes;
  8236. size = 131072;
  8237. page_size = 256;
  8238. num_pages = 512;
  8239. min_write_delay = 4500;
  8240. max_write_delay = 4500;
  8241. readback_p1 = 0x00;
  8242. readback_p2 = 0x00;
  8243. read_lo = " 0 0 1 0 0 0 0 0",
  8244. "a15 a14 a13 a12 a11 a10 a9 a8",
  8245. " a7 a6 a5 a4 a3 a2 a1 a0",
  8246. " o o o o o o o o";
  8247. read_hi = " 0 0 1 0 1 0 0 0",
  8248. "a15 a14 a13 a12 a11 a10 a9 a8",
  8249. " a7 a6 a5 a4 a3 a2 a1 a0",
  8250. " o o o o o o o o";
  8251. loadpage_lo = " 0 1 0 0 0 0 0 0",
  8252. " x x x x x x x x",
  8253. " x a6 a5 a4 a3 a2 a1 a0",
  8254. " i i i i i i i i";
  8255. loadpage_hi = " 0 1 0 0 1 0 0 0",
  8256. " x x x x x x x x",
  8257. " x a6 a5 a4 a3 a2 a1 a0",
  8258. " i i i i i i i i";
  8259. writepage = " 0 1 0 0 1 1 0 0",
  8260. "a15 a14 a13 a12 a11 a10 a9 a8",
  8261. " a7 x x x x x x x",
  8262. " x x x x x x x x";
  8263. mode = 0x41;
  8264. delay = 10;
  8265. blocksize = 256;
  8266. readsize = 256;
  8267. ;
  8268. memory "lfuse"
  8269. size = 1;
  8270. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  8271. "x x x x x x x x i i i i i i i i";
  8272. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  8273. "x x x x x x x x o o o o o o o o";
  8274. min_write_delay = 9000;
  8275. max_write_delay = 9000;
  8276. ;
  8277. memory "hfuse"
  8278. size = 1;
  8279. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  8280. "x x x x x x x x i i i i i i i i";
  8281. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  8282. "x x x x x x x x o o o o o o o o";
  8283. min_write_delay = 9000;
  8284. max_write_delay = 9000;
  8285. ;
  8286. memory "efuse"
  8287. size = 1;
  8288. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  8289. "x x x x x x x x x x x x x i i i";
  8290. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  8291. "x x x x x x x x o o o o o o o o";
  8292. min_write_delay = 9000;
  8293. max_write_delay = 9000;
  8294. ;
  8295. memory "lock"
  8296. size = 1;
  8297. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  8298. "x x x x x x x x x x o o o o o o";
  8299. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  8300. "x x x x x x x x 1 1 i i i i i i";
  8301. min_write_delay = 9000;
  8302. max_write_delay = 9000;
  8303. ;
  8304. memory "calibration"
  8305. size = 1;
  8306. read = "0 0 1 1 1 0 0 0 x x x x x x x x",
  8307. "0 0 0 0 0 0 0 0 o o o o o o o o";
  8308. ;
  8309. memory "signature"
  8310. size = 3;
  8311. read = "0 0 1 1 0 0 0 0 x x x x x x x x",
  8312. "x x x x x x a1 a0 o o o o o o o o";
  8313. ;
  8314. ;
  8315. #------------------------------------------------------------
  8316. # ATmega2560
  8317. #------------------------------------------------------------
  8318. part
  8319. id = "m2560";
  8320. desc = "ATMEGA2560";
  8321. signature = 0x1e 0x98 0x01;
  8322. has_jtag = yes;
  8323. # stk500_devcode = 0xB2;
  8324. # avr910_devcode = 0x43;
  8325. chip_erase_delay = 9000;
  8326. pagel = 0xD7;
  8327. bs2 = 0xA0;
  8328. reset = dedicated;
  8329. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  8330. "x x x x x x x x x x x x x x x x";
  8331. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 0 0 0 0 0",
  8332. "x x x x x x x x x x x x x x x x";
  8333. timeout = 200;
  8334. stabdelay = 100;
  8335. cmdexedelay = 25;
  8336. synchloops = 32;
  8337. bytedelay = 0;
  8338. pollindex = 3;
  8339. pollvalue = 0x53;
  8340. predelay = 1;
  8341. postdelay = 1;
  8342. pollmethod = 1;
  8343. pp_controlstack =
  8344. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  8345. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  8346. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  8347. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x02;
  8348. hventerstabdelay = 100;
  8349. progmodedelay = 0;
  8350. latchcycles = 5;
  8351. togglevtg = 1;
  8352. poweroffdelay = 15;
  8353. resetdelayms = 1;
  8354. resetdelayus = 0;
  8355. hvleavestabdelay = 15;
  8356. chiperasepulsewidth = 0;
  8357. chiperasepolltimeout = 10;
  8358. programfusepulsewidth = 0;
  8359. programfusepolltimeout = 5;
  8360. programlockpulsewidth = 0;
  8361. programlockpolltimeout = 5;
  8362. idr = 0x31;
  8363. spmcr = 0x57;
  8364. rampz = 0x3b;
  8365. allowfullpagebitstream = no;
  8366. memory "eeprom"
  8367. paged = no; /* leave this "no" */
  8368. page_size = 8; /* for parallel programming */
  8369. size = 4096;
  8370. min_write_delay = 9000;
  8371. max_write_delay = 9000;
  8372. readback_p1 = 0x00;
  8373. readback_p2 = 0x00;
  8374. read = " 1 0 1 0 0 0 0 0",
  8375. " x x x x a11 a10 a9 a8",
  8376. " a7 a6 a5 a4 a3 a2 a1 a0",
  8377. " o o o o o o o o";
  8378. write = " 1 1 0 0 0 0 0 0",
  8379. " x x x x a11 a10 a9 a8",
  8380. " a7 a6 a5 a4 a3 a2 a1 a0",
  8381. " i i i i i i i i";
  8382. loadpage_lo = " 1 1 0 0 0 0 0 1",
  8383. " 0 0 0 0 0 0 0 0",
  8384. " 0 0 0 0 0 a2 a1 a0",
  8385. " i i i i i i i i";
  8386. writepage = " 1 1 0 0 0 0 1 0",
  8387. " 0 0 x x a11 a10 a9 a8",
  8388. " a7 a6 a5 a4 a3 0 0 0",
  8389. " x x x x x x x x";
  8390. mode = 0x41;
  8391. delay = 10;
  8392. blocksize = 8;
  8393. readsize = 256;
  8394. ;
  8395. memory "flash"
  8396. paged = yes;
  8397. size = 262144;
  8398. page_size = 256;
  8399. num_pages = 1024;
  8400. min_write_delay = 4500;
  8401. max_write_delay = 4500;
  8402. readback_p1 = 0x00;
  8403. readback_p2 = 0x00;
  8404. read_lo = " 0 0 1 0 0 0 0 0",
  8405. "a15 a14 a13 a12 a11 a10 a9 a8",
  8406. " a7 a6 a5 a4 a3 a2 a1 a0",
  8407. " o o o o o o o o";
  8408. read_hi = " 0 0 1 0 1 0 0 0",
  8409. "a15 a14 a13 a12 a11 a10 a9 a8",
  8410. " a7 a6 a5 a4 a3 a2 a1 a0",
  8411. " o o o o o o o o";
  8412. loadpage_lo = " 0 1 0 0 0 0 0 0",
  8413. " x x x x x x x x",
  8414. " x a6 a5 a4 a3 a2 a1 a0",
  8415. " i i i i i i i i";
  8416. loadpage_hi = " 0 1 0 0 1 0 0 0",
  8417. " x x x x x x x x",
  8418. " x a6 a5 a4 a3 a2 a1 a0",
  8419. " i i i i i i i i";
  8420. writepage = " 0 1 0 0 1 1 0 0",
  8421. "a15 a14 a13 a12 a11 a10 a9 a8",
  8422. " a7 x x x x x x x",
  8423. " x x x x x x x x";
  8424. load_ext_addr = " 0 1 0 0 1 1 0 1",
  8425. " 0 0 0 0 0 0 0 0",
  8426. " 0 0 0 0 0 0 0 a16",
  8427. " 0 0 0 0 0 0 0 0";
  8428. mode = 0x41;
  8429. delay = 10;
  8430. blocksize = 256;
  8431. readsize = 256;
  8432. ;
  8433. memory "lfuse"
  8434. size = 1;
  8435. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  8436. "x x x x x x x x i i i i i i i i";
  8437. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  8438. "x x x x x x x x o o o o o o o o";
  8439. min_write_delay = 9000;
  8440. max_write_delay = 9000;
  8441. ;
  8442. memory "hfuse"
  8443. size = 1;
  8444. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  8445. "x x x x x x x x i i i i i i i i";
  8446. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  8447. "x x x x x x x x o o o o o o o o";
  8448. min_write_delay = 9000;
  8449. max_write_delay = 9000;
  8450. ;
  8451. memory "efuse"
  8452. size = 1;
  8453. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  8454. "x x x x x x x x x x x x x i i i";
  8455. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  8456. "x x x x x x x x o o o o o o o o";
  8457. min_write_delay = 9000;
  8458. max_write_delay = 9000;
  8459. ;
  8460. memory "lock"
  8461. size = 1;
  8462. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  8463. "x x x x x x x x x x o o o o o o";
  8464. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  8465. "x x x x x x x x 1 1 i i i i i i";
  8466. min_write_delay = 9000;
  8467. max_write_delay = 9000;
  8468. ;
  8469. memory "calibration"
  8470. size = 1;
  8471. read = "0 0 1 1 1 0 0 0 x x x x x x x x",
  8472. "0 0 0 0 0 0 0 0 o o o o o o o o";
  8473. ;
  8474. memory "signature"
  8475. size = 3;
  8476. read = "0 0 1 1 0 0 0 0 x x x x x x x x",
  8477. "x x x x x x a1 a0 o o o o o o o o";
  8478. ;
  8479. ;
  8480. #------------------------------------------------------------
  8481. # ATmega2561
  8482. #------------------------------------------------------------
  8483. part
  8484. id = "m2561";
  8485. desc = "ATMEGA2561";
  8486. signature = 0x1e 0x98 0x02;
  8487. has_jtag = yes;
  8488. # stk500_devcode = 0xB2;
  8489. # avr910_devcode = 0x43;
  8490. chip_erase_delay = 9000;
  8491. pagel = 0xD7;
  8492. bs2 = 0xA0;
  8493. reset = dedicated;
  8494. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  8495. "x x x x x x x x x x x x x x x x";
  8496. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 0 0 0 0 0",
  8497. "x x x x x x x x x x x x x x x x";
  8498. timeout = 200;
  8499. stabdelay = 100;
  8500. cmdexedelay = 25;
  8501. synchloops = 32;
  8502. bytedelay = 0;
  8503. pollindex = 3;
  8504. pollvalue = 0x53;
  8505. predelay = 1;
  8506. postdelay = 1;
  8507. pollmethod = 1;
  8508. pp_controlstack =
  8509. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  8510. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  8511. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  8512. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x02;
  8513. hventerstabdelay = 100;
  8514. progmodedelay = 0;
  8515. latchcycles = 5;
  8516. togglevtg = 1;
  8517. poweroffdelay = 15;
  8518. resetdelayms = 1;
  8519. resetdelayus = 0;
  8520. hvleavestabdelay = 15;
  8521. chiperasepulsewidth = 0;
  8522. chiperasepolltimeout = 10;
  8523. programfusepulsewidth = 0;
  8524. programfusepolltimeout = 5;
  8525. programlockpulsewidth = 0;
  8526. programlockpolltimeout = 5;
  8527. idr = 0x31;
  8528. spmcr = 0x57;
  8529. rampz = 0x3b;
  8530. allowfullpagebitstream = no;
  8531. memory "eeprom"
  8532. paged = no; /* leave this "no" */
  8533. page_size = 8; /* for parallel programming */
  8534. size = 4096;
  8535. min_write_delay = 9000;
  8536. max_write_delay = 9000;
  8537. readback_p1 = 0x00;
  8538. readback_p2 = 0x00;
  8539. read = " 1 0 1 0 0 0 0 0",
  8540. " x x x x a11 a10 a9 a8",
  8541. " a7 a6 a5 a4 a3 a2 a1 a0",
  8542. " o o o o o o o o";
  8543. write = " 1 1 0 0 0 0 0 0",
  8544. " x x x x a11 a10 a9 a8",
  8545. " a7 a6 a5 a4 a3 a2 a1 a0",
  8546. " i i i i i i i i";
  8547. loadpage_lo = " 1 1 0 0 0 0 0 1",
  8548. " 0 0 0 0 0 0 0 0",
  8549. " 0 0 0 0 0 a2 a1 a0",
  8550. " i i i i i i i i";
  8551. writepage = " 1 1 0 0 0 0 1 0",
  8552. " 0 0 x x a11 a10 a9 a8",
  8553. " a7 a6 a5 a4 a3 0 0 0",
  8554. " x x x x x x x x";
  8555. mode = 0x41;
  8556. delay = 10;
  8557. blocksize = 8;
  8558. readsize = 256;
  8559. ;
  8560. memory "flash"
  8561. paged = yes;
  8562. size = 262144;
  8563. page_size = 256;
  8564. num_pages = 1024;
  8565. min_write_delay = 4500;
  8566. max_write_delay = 4500;
  8567. readback_p1 = 0x00;
  8568. readback_p2 = 0x00;
  8569. read_lo = " 0 0 1 0 0 0 0 0",
  8570. "a15 a14 a13 a12 a11 a10 a9 a8",
  8571. " a7 a6 a5 a4 a3 a2 a1 a0",
  8572. " o o o o o o o o";
  8573. read_hi = " 0 0 1 0 1 0 0 0",
  8574. "a15 a14 a13 a12 a11 a10 a9 a8",
  8575. " a7 a6 a5 a4 a3 a2 a1 a0",
  8576. " o o o o o o o o";
  8577. loadpage_lo = " 0 1 0 0 0 0 0 0",
  8578. " x x x x x x x x",
  8579. " x a6 a5 a4 a3 a2 a1 a0",
  8580. " i i i i i i i i";
  8581. loadpage_hi = " 0 1 0 0 1 0 0 0",
  8582. " x x x x x x x x",
  8583. " x a6 a5 a4 a3 a2 a1 a0",
  8584. " i i i i i i i i";
  8585. writepage = " 0 1 0 0 1 1 0 0",
  8586. "a15 a14 a13 a12 a11 a10 a9 a8",
  8587. " a7 x x x x x x x",
  8588. " x x x x x x x x";
  8589. load_ext_addr = " 0 1 0 0 1 1 0 1",
  8590. " 0 0 0 0 0 0 0 0",
  8591. " 0 0 0 0 0 0 0 a16",
  8592. " 0 0 0 0 0 0 0 0";
  8593. mode = 0x41;
  8594. delay = 10;
  8595. blocksize = 256;
  8596. readsize = 256;
  8597. ;
  8598. memory "lfuse"
  8599. size = 1;
  8600. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  8601. "x x x x x x x x i i i i i i i i";
  8602. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  8603. "x x x x x x x x o o o o o o o o";
  8604. min_write_delay = 9000;
  8605. max_write_delay = 9000;
  8606. ;
  8607. memory "hfuse"
  8608. size = 1;
  8609. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  8610. "x x x x x x x x i i i i i i i i";
  8611. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  8612. "x x x x x x x x o o o o o o o o";
  8613. min_write_delay = 9000;
  8614. max_write_delay = 9000;
  8615. ;
  8616. memory "efuse"
  8617. size = 1;
  8618. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  8619. "x x x x x x x x x x x x x i i i";
  8620. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  8621. "x x x x x x x x o o o o o o o o";
  8622. min_write_delay = 9000;
  8623. max_write_delay = 9000;
  8624. ;
  8625. memory "lock"
  8626. size = 1;
  8627. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  8628. "x x x x x x x x x x o o o o o o";
  8629. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  8630. "x x x x x x x x 1 1 i i i i i i";
  8631. min_write_delay = 9000;
  8632. max_write_delay = 9000;
  8633. ;
  8634. memory "calibration"
  8635. size = 1;
  8636. read = "0 0 1 1 1 0 0 0 x x x x x x x x",
  8637. "0 0 0 0 0 0 0 0 o o o o o o o o";
  8638. ;
  8639. memory "signature"
  8640. size = 3;
  8641. read = "0 0 1 1 0 0 0 0 x x x x x x x x",
  8642. "x x x x x x a1 a0 o o o o o o o o";
  8643. ;
  8644. ;
  8645. #------------------------------------------------------------
  8646. # ATtiny24
  8647. #------------------------------------------------------------
  8648. part
  8649. id = "t24";
  8650. desc = "ATtiny24";
  8651. has_debugwire = yes;
  8652. flash_instr = 0xB4, 0x07, 0x17;
  8653. eeprom_instr = 0xBB, 0xFF, 0xBB, 0xEE, 0xBB, 0xCC, 0xB2, 0x0D,
  8654. 0xBC, 0x07, 0xB4, 0x07, 0xBA, 0x0D, 0xBB, 0xBC,
  8655. 0x99, 0xE1, 0xBB, 0xAC;
  8656. ## no STK500 devcode in XML file, use the ATtiny45 one
  8657. stk500_devcode = 0x14;
  8658. ## avr910_devcode = ?;
  8659. ## Try the AT90S2313 devcode:
  8660. avr910_devcode = 0x20;
  8661. signature = 0x1e 0x91 0x0b;
  8662. reset = io;
  8663. chip_erase_delay = 4500;
  8664. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  8665. "x x x x x x x x x x x x x x x x";
  8666. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
  8667. "x x x x x x x x x x x x x x x x";
  8668. timeout = 200;
  8669. stabdelay = 100;
  8670. cmdexedelay = 25;
  8671. synchloops = 32;
  8672. bytedelay = 0;
  8673. pollindex = 3;
  8674. pollvalue = 0x53;
  8675. predelay = 1;
  8676. postdelay = 1;
  8677. pollmethod = 1;
  8678. hvsp_controlstack =
  8679. 0x4C, 0x0C, 0x1C, 0x2C, 0x3C, 0x64, 0x74, 0x66,
  8680. 0x68, 0x78, 0x68, 0x68, 0x7A, 0x6A, 0x68, 0x78,
  8681. 0x78, 0x7D, 0x6D, 0x0C, 0x80, 0x40, 0x20, 0x10,
  8682. 0x11, 0x08, 0x04, 0x02, 0x03, 0x08, 0x04, 0x0F;
  8683. hventerstabdelay = 100;
  8684. hvspcmdexedelay = 0;
  8685. synchcycles = 6;
  8686. latchcycles = 1;
  8687. togglevtg = 1;
  8688. poweroffdelay = 25;
  8689. resetdelayms = 0;
  8690. resetdelayus = 70;
  8691. hvleavestabdelay = 100;
  8692. resetdelay = 25;
  8693. chiperasepolltimeout = 40;
  8694. chiperasetime = 0;
  8695. programfusepolltimeout = 25;
  8696. programlockpolltimeout = 25;
  8697. memory "eeprom"
  8698. size = 128;
  8699. paged = no;
  8700. page_size = 4;
  8701. min_write_delay = 4000;
  8702. max_write_delay = 4500;
  8703. readback_p1 = 0xff;
  8704. readback_p2 = 0xff;
  8705. read = "1 0 1 0 0 0 0 0 0 0 0 x x x x x",
  8706. "x a6 a5 a4 a3 a2 a1 a0 o o o o o o o o";
  8707. write = "1 1 0 0 0 0 0 0 0 0 0 x x x x x",
  8708. "x a6 a5 a4 a3 a2 a1 a0 i i i i i i i i";
  8709. loadpage_lo = " 1 1 0 0 0 0 0 1",
  8710. " 0 0 0 0 0 0 0 0",
  8711. " 0 0 0 0 0 0 a1 a0",
  8712. " i i i i i i i i";
  8713. writepage = " 1 1 0 0 0 0 1 0",
  8714. " 0 0 x x x x x x",
  8715. " x a6 a5 a4 a3 a2 0 0",
  8716. " x x x x x x x x";
  8717. mode = 0x41;
  8718. delay = 6;
  8719. blocksize = 4;
  8720. readsize = 256;
  8721. ;
  8722. memory "flash"
  8723. paged = yes;
  8724. size = 2048;
  8725. page_size = 32;
  8726. num_pages = 64;
  8727. min_write_delay = 4500;
  8728. max_write_delay = 4500;
  8729. readback_p1 = 0xff;
  8730. readback_p2 = 0xff;
  8731. read_lo = " 0 0 1 0 0 0 0 0",
  8732. " 0 0 0 0 0 0 a9 a8",
  8733. " a7 a6 a5 a4 a3 a2 a1 a0",
  8734. " o o o o o o o o";
  8735. read_hi = " 0 0 1 0 1 0 0 0",
  8736. " 0 0 0 0 0 0 a9 a8",
  8737. " a7 a6 a5 a4 a3 a2 a1 a0",
  8738. " o o o o o o o o";
  8739. loadpage_lo = " 0 1 0 0 0 0 0 0",
  8740. " 0 0 0 x x x x x",
  8741. " x x x x a3 a2 a1 a0",
  8742. " i i i i i i i i";
  8743. loadpage_hi = " 0 1 0 0 1 0 0 0",
  8744. " 0 0 0 x x x x x",
  8745. " x x x x a3 a2 a1 a0",
  8746. " i i i i i i i i";
  8747. writepage = " 0 1 0 0 1 1 0 0",
  8748. " 0 0 0 0 0 0 a9 a8",
  8749. " a7 a6 a5 a4 x x x x",
  8750. " x x x x x x x x";
  8751. mode = 0x41;
  8752. delay = 6;
  8753. blocksize = 32;
  8754. readsize = 256;
  8755. ;
  8756. # ATtiny24 has Signature Bytes: 0x1E 0x91 0x0B.
  8757. memory "signature"
  8758. size = 3;
  8759. read = "0 0 1 1 0 0 0 0 0 0 0 x x x x x",
  8760. "x x x x x x a1 a0 o o o o o o o o";
  8761. ;
  8762. memory "lock"
  8763. size = 1;
  8764. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  8765. "x x x x x x x x x x x x x x i i";
  8766. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  8767. "0 0 0 0 0 0 0 0 o o o o o o o o";
  8768. min_write_delay = 9000;
  8769. max_write_delay = 9000;
  8770. ;
  8771. memory "lfuse"
  8772. size = 1;
  8773. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  8774. "x x x x x x x x i i i i i i i i";
  8775. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  8776. "x x x x x x x x o o o o o o o o";
  8777. min_write_delay = 9000;
  8778. max_write_delay = 9000;
  8779. ;
  8780. memory "hfuse"
  8781. size = 1;
  8782. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  8783. "x x x x x x x x i i i i i i i i";
  8784. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  8785. "x x x x x x x x o o o o o o o o";
  8786. min_write_delay = 9000;
  8787. max_write_delay = 9000;
  8788. ;
  8789. memory "efuse"
  8790. size = 1;
  8791. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  8792. "x x x x x x x x x x x x x x x i";
  8793. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  8794. "x x x x x x x x o o o o o o o o";
  8795. min_write_delay = 9000;
  8796. max_write_delay = 9000;
  8797. ;
  8798. memory "calibration"
  8799. size = 1;
  8800. read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
  8801. "0 0 0 0 0 0 0 a0 o o o o o o o o";
  8802. ;
  8803. ;
  8804. #------------------------------------------------------------
  8805. # ATtiny44
  8806. #------------------------------------------------------------
  8807. part
  8808. id = "t44";
  8809. desc = "ATtiny44";
  8810. has_debugwire = yes;
  8811. flash_instr = 0xB4, 0x07, 0x17;
  8812. eeprom_instr = 0xBB, 0xFF, 0xBB, 0xEE, 0xBB, 0xCC, 0xB2, 0x0D,
  8813. 0xBC, 0x07, 0xB4, 0x07, 0xBA, 0x0D, 0xBB, 0xBC,
  8814. 0x99, 0xE1, 0xBB, 0xAC;
  8815. ## no STK500 devcode in XML file, use the ATtiny45 one
  8816. stk500_devcode = 0x14;
  8817. ## avr910_devcode = ?;
  8818. ## Try the AT90S2313 devcode:
  8819. avr910_devcode = 0x20;
  8820. signature = 0x1e 0x92 0x07;
  8821. reset = io;
  8822. chip_erase_delay = 4500;
  8823. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  8824. "x x x x x x x x x x x x x x x x";
  8825. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
  8826. "x x x x x x x x x x x x x x x x";
  8827. timeout = 200;
  8828. stabdelay = 100;
  8829. cmdexedelay = 25;
  8830. synchloops = 32;
  8831. bytedelay = 0;
  8832. pollindex = 3;
  8833. pollvalue = 0x53;
  8834. predelay = 1;
  8835. postdelay = 1;
  8836. pollmethod = 1;
  8837. hvsp_controlstack =
  8838. 0x4C, 0x0C, 0x1C, 0x2C, 0x3C, 0x64, 0x74, 0x66,
  8839. 0x68, 0x78, 0x68, 0x68, 0x7A, 0x6A, 0x68, 0x78,
  8840. 0x78, 0x7D, 0x6D, 0x0C, 0x80, 0x40, 0x20, 0x10,
  8841. 0x11, 0x08, 0x04, 0x02, 0x03, 0x08, 0x04, 0x0F;
  8842. hventerstabdelay = 100;
  8843. hvspcmdexedelay = 0;
  8844. synchcycles = 6;
  8845. latchcycles = 1;
  8846. togglevtg = 1;
  8847. poweroffdelay = 25;
  8848. resetdelayms = 0;
  8849. resetdelayus = 70;
  8850. hvleavestabdelay = 100;
  8851. resetdelay = 25;
  8852. chiperasepolltimeout = 40;
  8853. chiperasetime = 0;
  8854. programfusepolltimeout = 25;
  8855. programlockpolltimeout = 25;
  8856. memory "eeprom"
  8857. size = 256;
  8858. paged = no;
  8859. page_size = 4;
  8860. min_write_delay = 4000;
  8861. max_write_delay = 4500;
  8862. readback_p1 = 0xff;
  8863. readback_p2 = 0xff;
  8864. read = "1 0 1 0 0 0 0 0 0 0 0 x x x x x",
  8865. "a7 a6 a5 a4 a3 a2 a1 a0 o o o o o o o o";
  8866. write = "1 1 0 0 0 0 0 0 0 0 0 x x x x x",
  8867. "a7 a6 a5 a4 a3 a2 a1 a0 i i i i i i i i";
  8868. loadpage_lo = " 1 1 0 0 0 0 0 1",
  8869. " 0 0 0 0 0 0 0 0",
  8870. " 0 0 0 0 0 0 a1 a0",
  8871. " i i i i i i i i";
  8872. writepage = " 1 1 0 0 0 0 1 0",
  8873. " 0 0 x x x x x x",
  8874. " x a6 a5 a4 a3 a2 0 0",
  8875. " x x x x x x x x";
  8876. mode = 0x41;
  8877. delay = 6;
  8878. blocksize = 4;
  8879. readsize = 256;
  8880. ;
  8881. memory "flash"
  8882. paged = yes;
  8883. size = 4096;
  8884. page_size = 64;
  8885. num_pages = 64;
  8886. min_write_delay = 4500;
  8887. max_write_delay = 4500;
  8888. readback_p1 = 0xff;
  8889. readback_p2 = 0xff;
  8890. read_lo = " 0 0 1 0 0 0 0 0",
  8891. " 0 0 0 0 0 a10 a9 a8",
  8892. " a7 a6 a5 a4 a3 a2 a1 a0",
  8893. " o o o o o o o o";
  8894. read_hi = " 0 0 1 0 1 0 0 0",
  8895. " 0 0 0 0 0 a10 a9 a8",
  8896. " a7 a6 a5 a4 a3 a2 a1 a0",
  8897. " o o o o o o o o";
  8898. loadpage_lo = " 0 1 0 0 0 0 0 0",
  8899. " 0 0 0 x x x x x",
  8900. " x x x a4 a3 a2 a1 a0",
  8901. " i i i i i i i i";
  8902. loadpage_hi = " 0 1 0 0 1 0 0 0",
  8903. " 0 0 0 x x x x x",
  8904. " x x x a4 a3 a2 a1 a0",
  8905. " i i i i i i i i";
  8906. writepage = " 0 1 0 0 1 1 0 0",
  8907. " 0 0 0 0 0 a10 a9 a8",
  8908. " a7 a6 a5 x x x x x",
  8909. " x x x x x x x x";
  8910. mode = 0x41;
  8911. delay = 6;
  8912. blocksize = 32;
  8913. readsize = 256;
  8914. ;
  8915. # ATtiny44 has Signature Bytes: 0x1E 0x92 0x07.
  8916. memory "signature"
  8917. size = 3;
  8918. read = "0 0 1 1 0 0 0 0 0 0 0 x x x x x",
  8919. "x x x x x x a1 a0 o o o o o o o o";
  8920. ;
  8921. memory "lock"
  8922. size = 1;
  8923. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  8924. "x x x x x x x x x x x x x x i i";
  8925. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  8926. "0 0 0 0 0 0 0 0 o o o o o o o o";
  8927. min_write_delay = 9000;
  8928. max_write_delay = 9000;
  8929. ;
  8930. memory "lfuse"
  8931. size = 1;
  8932. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  8933. "x x x x x x x x i i i i i i i i";
  8934. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  8935. "x x x x x x x x o o o o o o o o";
  8936. min_write_delay = 9000;
  8937. max_write_delay = 9000;
  8938. ;
  8939. memory "hfuse"
  8940. size = 1;
  8941. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  8942. "x x x x x x x x i i i i i i i i";
  8943. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  8944. "x x x x x x x x o o o o o o o o";
  8945. min_write_delay = 9000;
  8946. max_write_delay = 9000;
  8947. ;
  8948. memory "efuse"
  8949. size = 1;
  8950. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  8951. "x x x x x x x x x x x x x x x i";
  8952. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  8953. "x x x x x x x x o o o o o o o o";
  8954. min_write_delay = 9000;
  8955. max_write_delay = 9000;
  8956. ;
  8957. memory "calibration"
  8958. size = 1;
  8959. read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
  8960. "0 0 0 0 0 0 0 a0 o o o o o o o o";
  8961. ;
  8962. ;
  8963. #------------------------------------------------------------
  8964. # ATtiny84
  8965. #------------------------------------------------------------
  8966. part
  8967. id = "t84";
  8968. desc = "ATtiny84";
  8969. has_debugwire = yes;
  8970. flash_instr = 0xB4, 0x07, 0x17;
  8971. eeprom_instr = 0xBB, 0xFF, 0xBB, 0xEE, 0xBB, 0xCC, 0xB2, 0x0D,
  8972. 0xBC, 0x07, 0xB4, 0x07, 0xBA, 0x0D, 0xBB, 0xBC,
  8973. 0x99, 0xE1, 0xBB, 0xAC;
  8974. ## no STK500 devcode in XML file, use the ATtiny45 one
  8975. stk500_devcode = 0x14;
  8976. ## avr910_devcode = ?;
  8977. ## Try the AT90S2313 devcode:
  8978. avr910_devcode = 0x20;
  8979. signature = 0x1e 0x93 0x0c;
  8980. reset = io;
  8981. chip_erase_delay = 4500;
  8982. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  8983. "x x x x x x x x x x x x x x x x";
  8984. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
  8985. "x x x x x x x x x x x x x x x x";
  8986. timeout = 200;
  8987. stabdelay = 100;
  8988. cmdexedelay = 25;
  8989. synchloops = 32;
  8990. bytedelay = 0;
  8991. pollindex = 3;
  8992. pollvalue = 0x53;
  8993. predelay = 1;
  8994. postdelay = 1;
  8995. pollmethod = 1;
  8996. hvsp_controlstack =
  8997. 0x4C, 0x0C, 0x1C, 0x2C, 0x3C, 0x64, 0x74, 0x66,
  8998. 0x68, 0x78, 0x68, 0x68, 0x7A, 0x6A, 0x68, 0x78,
  8999. 0x78, 0x7D, 0x6D, 0x0C, 0x80, 0x40, 0x20, 0x10,
  9000. 0x11, 0x08, 0x04, 0x02, 0x03, 0x08, 0x04, 0x0F;
  9001. hventerstabdelay = 100;
  9002. hvspcmdexedelay = 0;
  9003. synchcycles = 6;
  9004. latchcycles = 1;
  9005. togglevtg = 1;
  9006. poweroffdelay = 25;
  9007. resetdelayms = 0;
  9008. resetdelayus = 70;
  9009. hvleavestabdelay = 100;
  9010. resetdelay = 25;
  9011. chiperasepolltimeout = 40;
  9012. chiperasetime = 0;
  9013. programfusepolltimeout = 25;
  9014. programlockpolltimeout = 25;
  9015. memory "eeprom"
  9016. size = 512;
  9017. paged = no;
  9018. page_size = 4;
  9019. min_write_delay = 4000;
  9020. max_write_delay = 4500;
  9021. readback_p1 = 0xff;
  9022. readback_p2 = 0xff;
  9023. read = "1 0 1 0 0 0 0 0 0 0 0 x x x x a8",
  9024. "a7 a6 a5 a4 a3 a2 a1 a0 o o o o o o o o";
  9025. write = "1 1 0 0 0 0 0 0 0 0 0 x x x x a8",
  9026. "a8 a6 a5 a4 a3 a2 a1 a0 i i i i i i i i";
  9027. loadpage_lo = " 1 1 0 0 0 0 0 1",
  9028. " 0 0 0 0 0 0 0 0",
  9029. " 0 0 0 0 0 0 a1 a0",
  9030. " i i i i i i i i";
  9031. writepage = " 1 1 0 0 0 0 1 0",
  9032. " 0 0 x x x x x x",
  9033. " x a6 a5 a4 a3 a2 0 0",
  9034. " x x x x x x x x";
  9035. mode = 0x41;
  9036. delay = 6;
  9037. blocksize = 4;
  9038. readsize = 256;
  9039. ;
  9040. memory "flash"
  9041. paged = yes;
  9042. size = 8192;
  9043. page_size = 64;
  9044. num_pages = 128;
  9045. min_write_delay = 4500;
  9046. max_write_delay = 4500;
  9047. readback_p1 = 0xff;
  9048. readback_p2 = 0xff;
  9049. read_lo = " 0 0 1 0 0 0 0 0",
  9050. " 0 0 0 0 a11 a10 a9 a8",
  9051. " a7 a6 a5 a4 a3 a2 a1 a0",
  9052. " o o o o o o o o";
  9053. read_hi = " 0 0 1 0 1 0 0 0",
  9054. " 0 0 0 0 a11 a10 a9 a8",
  9055. " a7 a6 a5 a4 a3 a2 a1 a0",
  9056. " o o o o o o o o";
  9057. loadpage_lo = " 0 1 0 0 0 0 0 0",
  9058. " 0 0 0 x x x x x",
  9059. " x x x a4 a3 a2 a1 a0",
  9060. " i i i i i i i i";
  9061. loadpage_hi = " 0 1 0 0 1 0 0 0",
  9062. " 0 0 0 x x x x x",
  9063. " x x x a4 a3 a2 a1 a0",
  9064. " i i i i i i i i";
  9065. writepage = " 0 1 0 0 1 1 0 0",
  9066. " 0 0 0 0 a11 a10 a9 a8",
  9067. " a7 a6 a5 x x x x x",
  9068. " x x x x x x x x";
  9069. mode = 0x41;
  9070. delay = 6;
  9071. blocksize = 32;
  9072. readsize = 256;
  9073. ;
  9074. # ATtiny84 has Signature Bytes: 0x1E 0x93 0x0C.
  9075. memory "signature"
  9076. size = 3;
  9077. read = "0 0 1 1 0 0 0 0 0 0 0 x x x x x",
  9078. "x x x x x x a1 a0 o o o o o o o o";
  9079. ;
  9080. memory "lock"
  9081. size = 1;
  9082. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  9083. "x x x x x x x x x x x x x x i i";
  9084. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  9085. "0 0 0 0 0 0 0 0 o o o o o o o o";
  9086. min_write_delay = 9000;
  9087. max_write_delay = 9000;
  9088. ;
  9089. memory "lfuse"
  9090. size = 1;
  9091. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  9092. "x x x x x x x x i i i i i i i i";
  9093. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  9094. "x x x x x x x x o o o o o o o o";
  9095. min_write_delay = 9000;
  9096. max_write_delay = 9000;
  9097. ;
  9098. memory "hfuse"
  9099. size = 1;
  9100. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  9101. "x x x x x x x x i i i i i i i i";
  9102. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  9103. "x x x x x x x x o o o o o o o o";
  9104. min_write_delay = 9000;
  9105. max_write_delay = 9000;
  9106. ;
  9107. memory "efuse"
  9108. size = 1;
  9109. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  9110. "x x x x x x x x x x x x x x x i";
  9111. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  9112. "x x x x x x x x o o o o o o o o";
  9113. min_write_delay = 9000;
  9114. max_write_delay = 9000;
  9115. ;
  9116. memory "calibration"
  9117. size = 1;
  9118. read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
  9119. "0 0 0 0 0 0 0 a0 o o o o o o o o";
  9120. ;
  9121. ;
  9122. #------------------------------------------------------------
  9123. # AT90USB646
  9124. #------------------------------------------------------------
  9125. part
  9126. id = "usb646";
  9127. desc = "AT90USB646";
  9128. # signature = 0x1e 0x96 0x82; ?
  9129. signature = 0x1e 0x97 0x82;
  9130. has_jtag = yes;
  9131. # stk500_devcode = 0xB2;
  9132. # avr910_devcode = 0x43;
  9133. chip_erase_delay = 9000;
  9134. pagel = 0xD7;
  9135. bs2 = 0xA0;
  9136. reset = dedicated;
  9137. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  9138. "x x x x x x x x x x x x x x x x";
  9139. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 0 0 0 0 0",
  9140. "x x x x x x x x x x x x x x x x";
  9141. timeout = 200;
  9142. stabdelay = 100;
  9143. cmdexedelay = 25;
  9144. synchloops = 32;
  9145. bytedelay = 0;
  9146. pollindex = 3;
  9147. pollvalue = 0x53;
  9148. predelay = 1;
  9149. postdelay = 1;
  9150. pollmethod = 1;
  9151. pp_controlstack =
  9152. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  9153. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  9154. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  9155. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  9156. hventerstabdelay = 100;
  9157. progmodedelay = 0;
  9158. latchcycles = 5;
  9159. togglevtg = 1;
  9160. poweroffdelay = 15;
  9161. resetdelayms = 1;
  9162. resetdelayus = 0;
  9163. hvleavestabdelay = 15;
  9164. chiperasepulsewidth = 0;
  9165. chiperasepolltimeout = 10;
  9166. programfusepulsewidth = 0;
  9167. programfusepolltimeout = 5;
  9168. programlockpulsewidth = 0;
  9169. programlockpolltimeout = 5;
  9170. idr = 0x31;
  9171. spmcr = 0x57;
  9172. rampz = 0x3b;
  9173. allowfullpagebitstream = no;
  9174. memory "eeprom"
  9175. paged = no; /* leave this "no" */
  9176. page_size = 8; /* for parallel programming */
  9177. size = 2048;
  9178. min_write_delay = 9000;
  9179. max_write_delay = 9000;
  9180. readback_p1 = 0x00;
  9181. readback_p2 = 0x00;
  9182. read = " 1 0 1 0 0 0 0 0",
  9183. " x x x x x a10 a9 a8",
  9184. " a7 a6 a5 a4 a3 a2 a1 a0",
  9185. " o o o o o o o o";
  9186. write = " 1 1 0 0 0 0 0 0",
  9187. " x x x x x a10 a9 a8",
  9188. " a7 a6 a5 a4 a3 a2 a1 a0",
  9189. " i i i i i i i i";
  9190. loadpage_lo = " 1 1 0 0 0 0 0 1",
  9191. " 0 0 0 0 0 0 0 0",
  9192. " 0 0 0 0 0 a2 a1 a0",
  9193. " i i i i i i i i";
  9194. writepage = " 1 1 0 0 0 0 1 0",
  9195. " 0 0 x x x a10 a9 a8",
  9196. " a7 a6 a5 a4 a3 0 0 0",
  9197. " x x x x x x x x";
  9198. mode = 0x41;
  9199. delay = 10;
  9200. blocksize = 8;
  9201. readsize = 256;
  9202. ;
  9203. memory "flash"
  9204. paged = yes;
  9205. size = 65536;
  9206. page_size = 256;
  9207. num_pages = 256;
  9208. min_write_delay = 4500;
  9209. max_write_delay = 4500;
  9210. readback_p1 = 0x00;
  9211. readback_p2 = 0x00;
  9212. read_lo = " 0 0 1 0 0 0 0 0",
  9213. " 0 a14 a13 a12 a11 a10 a9 a8",
  9214. " a7 a6 a5 a4 a3 a2 a1 a0",
  9215. " o o o o o o o o";
  9216. read_hi = " 0 0 1 0 1 0 0 0",
  9217. " 0 a14 a13 a12 a11 a10 a9 a8",
  9218. " a7 a6 a5 a4 a3 a2 a1 a0",
  9219. " o o o o o o o o";
  9220. loadpage_lo = " 0 1 0 0 0 0 0 0",
  9221. " x x x x x x x x",
  9222. " x a6 a5 a4 a3 a2 a1 a0",
  9223. " i i i i i i i i";
  9224. loadpage_hi = " 0 1 0 0 1 0 0 0",
  9225. " x x x x x x x x",
  9226. " x a6 a5 a4 a3 a2 a1 a0",
  9227. " i i i i i i i i";
  9228. writepage = " 0 1 0 0 1 1 0 0",
  9229. " 0 a14 a13 a12 a11 a10 a9 a8",
  9230. " a7 x x x x x x x",
  9231. " x x x x x x x x";
  9232. mode = 0x41;
  9233. delay = 6;
  9234. blocksize = 256;
  9235. readsize = 256;
  9236. ;
  9237. memory "lfuse"
  9238. size = 1;
  9239. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  9240. "x x x x x x x x i i i i i i i i";
  9241. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  9242. "x x x x x x x x o o o o o o o o";
  9243. min_write_delay = 9000;
  9244. max_write_delay = 9000;
  9245. ;
  9246. memory "hfuse"
  9247. size = 1;
  9248. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  9249. "x x x x x x x x i i i i i i i i";
  9250. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  9251. "x x x x x x x x o o o o o o o o";
  9252. min_write_delay = 9000;
  9253. max_write_delay = 9000;
  9254. ;
  9255. memory "efuse"
  9256. size = 1;
  9257. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  9258. "x x x x x x x x x x x x i i i i";
  9259. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  9260. "x x x x x x x x o o o o o o o o";
  9261. min_write_delay = 9000;
  9262. max_write_delay = 9000;
  9263. ;
  9264. memory "lock"
  9265. size = 1;
  9266. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  9267. "x x x x x x x x x x o o o o o o";
  9268. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  9269. "x x x x x x x x 1 1 i i i i i i";
  9270. min_write_delay = 9000;
  9271. max_write_delay = 9000;
  9272. ;
  9273. memory "calibration"
  9274. size = 1;
  9275. read = "0 0 1 1 1 0 0 0 x x x x x x x x",
  9276. "0 0 0 0 0 0 0 0 o o o o o o o o";
  9277. ;
  9278. memory "signature"
  9279. size = 3;
  9280. read = "0 0 1 1 0 0 0 0 x x x x x x x x",
  9281. "x x x x x x a1 a0 o o o o o o o o";
  9282. ;
  9283. ;
  9284. #------------------------------------------------------------
  9285. # AT90USB647
  9286. #------------------------------------------------------------
  9287. # identical to AT90USB646
  9288. part
  9289. id = "usb647";
  9290. desc = "AT90USB647";
  9291. # signature = 0x1e 0x96 0x82; ?
  9292. signature = 0x1e 0x97 0x82;
  9293. has_jtag = yes;
  9294. # stk500_devcode = 0xB2;
  9295. # avr910_devcode = 0x43;
  9296. chip_erase_delay = 9000;
  9297. pagel = 0xD7;
  9298. bs2 = 0xA0;
  9299. reset = dedicated;
  9300. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  9301. "x x x x x x x x x x x x x x x x";
  9302. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 0 0 0 0 0",
  9303. "x x x x x x x x x x x x x x x x";
  9304. timeout = 200;
  9305. stabdelay = 100;
  9306. cmdexedelay = 25;
  9307. synchloops = 32;
  9308. bytedelay = 0;
  9309. pollindex = 3;
  9310. pollvalue = 0x53;
  9311. predelay = 1;
  9312. postdelay = 1;
  9313. pollmethod = 1;
  9314. pp_controlstack =
  9315. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  9316. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  9317. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  9318. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  9319. hventerstabdelay = 100;
  9320. progmodedelay = 0;
  9321. latchcycles = 5;
  9322. togglevtg = 1;
  9323. poweroffdelay = 15;
  9324. resetdelayms = 1;
  9325. resetdelayus = 0;
  9326. hvleavestabdelay = 15;
  9327. chiperasepulsewidth = 0;
  9328. chiperasepolltimeout = 10;
  9329. programfusepulsewidth = 0;
  9330. programfusepolltimeout = 5;
  9331. programlockpulsewidth = 0;
  9332. programlockpolltimeout = 5;
  9333. idr = 0x31;
  9334. spmcr = 0x57;
  9335. rampz = 0x3b;
  9336. allowfullpagebitstream = no;
  9337. memory "eeprom"
  9338. paged = no; /* leave this "no" */
  9339. page_size = 8; /* for parallel programming */
  9340. size = 2048;
  9341. min_write_delay = 9000;
  9342. max_write_delay = 9000;
  9343. readback_p1 = 0x00;
  9344. readback_p2 = 0x00;
  9345. read = " 1 0 1 0 0 0 0 0",
  9346. " x x x x x a10 a9 a8",
  9347. " a7 a6 a5 a4 a3 a2 a1 a0",
  9348. " o o o o o o o o";
  9349. write = " 1 1 0 0 0 0 0 0",
  9350. " x x x x x a10 a9 a8",
  9351. " a7 a6 a5 a4 a3 a2 a1 a0",
  9352. " i i i i i i i i";
  9353. loadpage_lo = " 1 1 0 0 0 0 0 1",
  9354. " 0 0 0 0 0 0 0 0",
  9355. " 0 0 0 0 0 a2 a1 a0",
  9356. " i i i i i i i i";
  9357. writepage = " 1 1 0 0 0 0 1 0",
  9358. " 0 0 x x x a10 a9 a8",
  9359. " a7 a6 a5 a4 a3 0 0 0",
  9360. " x x x x x x x x";
  9361. mode = 0x41;
  9362. delay = 10;
  9363. blocksize = 8;
  9364. readsize = 256;
  9365. ;
  9366. memory "flash"
  9367. paged = yes;
  9368. size = 65536;
  9369. page_size = 256;
  9370. num_pages = 256;
  9371. min_write_delay = 4500;
  9372. max_write_delay = 4500;
  9373. readback_p1 = 0x00;
  9374. readback_p2 = 0x00;
  9375. read_lo = " 0 0 1 0 0 0 0 0",
  9376. " 0 a14 a13 a12 a11 a10 a9 a8",
  9377. " a7 a6 a5 a4 a3 a2 a1 a0",
  9378. " o o o o o o o o";
  9379. read_hi = " 0 0 1 0 1 0 0 0",
  9380. " 0 a14 a13 a12 a11 a10 a9 a8",
  9381. " a7 a6 a5 a4 a3 a2 a1 a0",
  9382. " o o o o o o o o";
  9383. loadpage_lo = " 0 1 0 0 0 0 0 0",
  9384. " x x x x x x x x",
  9385. " x a6 a5 a4 a3 a2 a1 a0",
  9386. " i i i i i i i i";
  9387. loadpage_hi = " 0 1 0 0 1 0 0 0",
  9388. " x x x x x x x x",
  9389. " x a6 a5 a4 a3 a2 a1 a0",
  9390. " i i i i i i i i";
  9391. writepage = " 0 1 0 0 1 1 0 0",
  9392. " 0 a14 a13 a12 a11 a10 a9 a8",
  9393. " a7 x x x x x x x",
  9394. " x x x x x x x x";
  9395. mode = 0x41;
  9396. delay = 6;
  9397. blocksize = 256;
  9398. readsize = 256;
  9399. ;
  9400. memory "lfuse"
  9401. size = 1;
  9402. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  9403. "x x x x x x x x i i i i i i i i";
  9404. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  9405. "x x x x x x x x o o o o o o o o";
  9406. min_write_delay = 9000;
  9407. max_write_delay = 9000;
  9408. ;
  9409. memory "hfuse"
  9410. size = 1;
  9411. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  9412. "x x x x x x x x i i i i i i i i";
  9413. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  9414. "x x x x x x x x o o o o o o o o";
  9415. min_write_delay = 9000;
  9416. max_write_delay = 9000;
  9417. ;
  9418. memory "efuse"
  9419. size = 1;
  9420. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  9421. "x x x x x x x x x x x x i i i i";
  9422. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  9423. "x x x x x x x x o o o o o o o o";
  9424. min_write_delay = 9000;
  9425. max_write_delay = 9000;
  9426. ;
  9427. memory "lock"
  9428. size = 1;
  9429. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  9430. "x x x x x x x x x x o o o o o o";
  9431. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  9432. "x x x x x x x x 1 1 i i i i i i";
  9433. min_write_delay = 9000;
  9434. max_write_delay = 9000;
  9435. ;
  9436. memory "calibration"
  9437. size = 1;
  9438. read = "0 0 1 1 1 0 0 0 x x x x x x x x",
  9439. "0 0 0 0 0 0 0 0 o o o o o o o o";
  9440. ;
  9441. memory "signature"
  9442. size = 3;
  9443. read = "0 0 1 1 0 0 0 0 x x x x x x x x",
  9444. "x x x x x x a1 a0 o o o o o o o o";
  9445. ;
  9446. ;
  9447. #------------------------------------------------------------
  9448. # AT90USB1286
  9449. #------------------------------------------------------------
  9450. part
  9451. id = "usb1286";
  9452. desc = "AT90USB1286";
  9453. signature = 0x1e 0x97 0x82;
  9454. has_jtag = yes;
  9455. # stk500_devcode = 0xB2;
  9456. # avr910_devcode = 0x43;
  9457. chip_erase_delay = 9000;
  9458. pagel = 0xD7;
  9459. bs2 = 0xA0;
  9460. reset = dedicated;
  9461. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  9462. "x x x x x x x x x x x x x x x x";
  9463. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 0 0 0 0 0",
  9464. "x x x x x x x x x x x x x x x x";
  9465. timeout = 200;
  9466. stabdelay = 100;
  9467. cmdexedelay = 25;
  9468. synchloops = 32;
  9469. bytedelay = 0;
  9470. pollindex = 3;
  9471. pollvalue = 0x53;
  9472. predelay = 1;
  9473. postdelay = 1;
  9474. pollmethod = 1;
  9475. pp_controlstack =
  9476. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  9477. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  9478. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  9479. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  9480. hventerstabdelay = 100;
  9481. progmodedelay = 0;
  9482. latchcycles = 5;
  9483. togglevtg = 1;
  9484. poweroffdelay = 15;
  9485. resetdelayms = 1;
  9486. resetdelayus = 0;
  9487. hvleavestabdelay = 15;
  9488. chiperasepulsewidth = 0;
  9489. chiperasepolltimeout = 10;
  9490. programfusepulsewidth = 0;
  9491. programfusepolltimeout = 5;
  9492. programlockpulsewidth = 0;
  9493. programlockpolltimeout = 5;
  9494. idr = 0x31;
  9495. spmcr = 0x57;
  9496. rampz = 0x3b;
  9497. allowfullpagebitstream = no;
  9498. memory "eeprom"
  9499. paged = no; /* leave this "no" */
  9500. page_size = 8; /* for parallel programming */
  9501. size = 4096;
  9502. min_write_delay = 9000;
  9503. max_write_delay = 9000;
  9504. readback_p1 = 0x00;
  9505. readback_p2 = 0x00;
  9506. read = " 1 0 1 0 0 0 0 0",
  9507. " x x x x a11 a10 a9 a8",
  9508. " a7 a6 a5 a4 a3 a2 a1 a0",
  9509. " o o o o o o o o";
  9510. write = " 1 1 0 0 0 0 0 0",
  9511. " x x x x a11 a10 a9 a8",
  9512. " a7 a6 a5 a4 a3 a2 a1 a0",
  9513. " i i i i i i i i";
  9514. loadpage_lo = " 1 1 0 0 0 0 0 1",
  9515. " 0 0 0 0 0 0 0 0",
  9516. " 0 0 0 0 0 a2 a1 a0",
  9517. " i i i i i i i i";
  9518. writepage = " 1 1 0 0 0 0 1 0",
  9519. " 0 0 x x x a10 a9 a8",
  9520. " a7 a6 a5 a4 a3 0 0 0",
  9521. " x x x x x x x x";
  9522. mode = 0x41;
  9523. delay = 10;
  9524. blocksize = 8;
  9525. readsize = 256;
  9526. ;
  9527. memory "flash"
  9528. paged = yes;
  9529. size = 131072;
  9530. page_size = 256;
  9531. num_pages = 512;
  9532. min_write_delay = 4500;
  9533. max_write_delay = 4500;
  9534. readback_p1 = 0x00;
  9535. readback_p2 = 0x00;
  9536. read_lo = " 0 0 1 0 0 0 0 0",
  9537. "a15 a14 a13 a12 a11 a10 a9 a8",
  9538. " a7 a6 a5 a4 a3 a2 a1 a0",
  9539. " o o o o o o o o";
  9540. read_hi = " 0 0 1 0 1 0 0 0",
  9541. "a15 a14 a13 a12 a11 a10 a9 a8",
  9542. " a7 a6 a5 a4 a3 a2 a1 a0",
  9543. " o o o o o o o o";
  9544. loadpage_lo = " 0 1 0 0 0 0 0 0",
  9545. " x x x x x x x x",
  9546. " x a6 a5 a4 a3 a2 a1 a0",
  9547. " i i i i i i i i";
  9548. loadpage_hi = " 0 1 0 0 1 0 0 0",
  9549. " x x x x x x x x",
  9550. " x a6 a5 a4 a3 a2 a1 a0",
  9551. " i i i i i i i i";
  9552. writepage = " 0 1 0 0 1 1 0 0",
  9553. "a15 a14 a13 a12 a11 a10 a9 a8",
  9554. " a7 x x x x x x x",
  9555. " x x x x x x x x";
  9556. mode = 0x41;
  9557. delay = 6;
  9558. blocksize = 256;
  9559. readsize = 256;
  9560. ;
  9561. memory "lfuse"
  9562. size = 1;
  9563. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  9564. "x x x x x x x x i i i i i i i i";
  9565. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  9566. "x x x x x x x x o o o o o o o o";
  9567. min_write_delay = 9000;
  9568. max_write_delay = 9000;
  9569. ;
  9570. memory "hfuse"
  9571. size = 1;
  9572. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  9573. "x x x x x x x x i i i i i i i i";
  9574. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  9575. "x x x x x x x x o o o o o o o o";
  9576. min_write_delay = 9000;
  9577. max_write_delay = 9000;
  9578. ;
  9579. memory "efuse"
  9580. size = 1;
  9581. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  9582. "x x x x x x x x x x x x i i i i";
  9583. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  9584. "x x x x x x x x o o o o o o o o";
  9585. min_write_delay = 9000;
  9586. max_write_delay = 9000;
  9587. ;
  9588. memory "lock"
  9589. size = 1;
  9590. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  9591. "x x x x x x x x x x o o o o o o";
  9592. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  9593. "x x x x x x x x 1 1 i i i i i i";
  9594. min_write_delay = 9000;
  9595. max_write_delay = 9000;
  9596. ;
  9597. memory "calibration"
  9598. size = 1;
  9599. read = "0 0 1 1 1 0 0 0 x x x x x x x x",
  9600. "0 0 0 0 0 0 0 0 o o o o o o o o";
  9601. ;
  9602. memory "signature"
  9603. size = 3;
  9604. read = "0 0 1 1 0 0 0 0 x x x x x x x x",
  9605. "x x x x x x a1 a0 o o o o o o o o";
  9606. ;
  9607. ;
  9608. #------------------------------------------------------------
  9609. # AT90USB1287
  9610. #------------------------------------------------------------
  9611. # identical to AT90USB1286
  9612. part
  9613. id = "usb1287";
  9614. desc = "AT90USB1287";
  9615. signature = 0x1e 0x97 0x82;
  9616. has_jtag = yes;
  9617. # stk500_devcode = 0xB2;
  9618. # avr910_devcode = 0x43;
  9619. chip_erase_delay = 9000;
  9620. pagel = 0xD7;
  9621. bs2 = 0xA0;
  9622. reset = dedicated;
  9623. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  9624. "x x x x x x x x x x x x x x x x";
  9625. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 0 0 0 0 0",
  9626. "x x x x x x x x x x x x x x x x";
  9627. timeout = 200;
  9628. stabdelay = 100;
  9629. cmdexedelay = 25;
  9630. synchloops = 32;
  9631. bytedelay = 0;
  9632. pollindex = 3;
  9633. pollvalue = 0x53;
  9634. predelay = 1;
  9635. postdelay = 1;
  9636. pollmethod = 1;
  9637. pp_controlstack =
  9638. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  9639. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  9640. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  9641. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  9642. hventerstabdelay = 100;
  9643. progmodedelay = 0;
  9644. latchcycles = 5;
  9645. togglevtg = 1;
  9646. poweroffdelay = 15;
  9647. resetdelayms = 1;
  9648. resetdelayus = 0;
  9649. hvleavestabdelay = 15;
  9650. chiperasepulsewidth = 0;
  9651. chiperasepolltimeout = 10;
  9652. programfusepulsewidth = 0;
  9653. programfusepolltimeout = 5;
  9654. programlockpulsewidth = 0;
  9655. programlockpolltimeout = 5;
  9656. idr = 0x31;
  9657. spmcr = 0x57;
  9658. rampz = 0x3b;
  9659. allowfullpagebitstream = no;
  9660. memory "eeprom"
  9661. paged = no; /* leave this "no" */
  9662. page_size = 8; /* for parallel programming */
  9663. size = 4096;
  9664. min_write_delay = 9000;
  9665. max_write_delay = 9000;
  9666. readback_p1 = 0x00;
  9667. readback_p2 = 0x00;
  9668. read = " 1 0 1 0 0 0 0 0",
  9669. " x x x x a11 a10 a9 a8",
  9670. " a7 a6 a5 a4 a3 a2 a1 a0",
  9671. " o o o o o o o o";
  9672. write = " 1 1 0 0 0 0 0 0",
  9673. " x x x x a11 a10 a9 a8",
  9674. " a7 a6 a5 a4 a3 a2 a1 a0",
  9675. " i i i i i i i i";
  9676. loadpage_lo = " 1 1 0 0 0 0 0 1",
  9677. " 0 0 0 0 0 0 0 0",
  9678. " 0 0 0 0 0 a2 a1 a0",
  9679. " i i i i i i i i";
  9680. writepage = " 1 1 0 0 0 0 1 0",
  9681. " 0 0 x x x a10 a9 a8",
  9682. " a7 a6 a5 a4 a3 0 0 0",
  9683. " x x x x x x x x";
  9684. mode = 0x41;
  9685. delay = 10;
  9686. blocksize = 8;
  9687. readsize = 256;
  9688. ;
  9689. memory "flash"
  9690. paged = yes;
  9691. size = 131072;
  9692. page_size = 256;
  9693. num_pages = 512;
  9694. min_write_delay = 4500;
  9695. max_write_delay = 4500;
  9696. readback_p1 = 0x00;
  9697. readback_p2 = 0x00;
  9698. read_lo = " 0 0 1 0 0 0 0 0",
  9699. "a15 a14 a13 a12 a11 a10 a9 a8",
  9700. " a7 a6 a5 a4 a3 a2 a1 a0",
  9701. " o o o o o o o o";
  9702. read_hi = " 0 0 1 0 1 0 0 0",
  9703. "a15 a14 a13 a12 a11 a10 a9 a8",
  9704. " a7 a6 a5 a4 a3 a2 a1 a0",
  9705. " o o o o o o o o";
  9706. loadpage_lo = " 0 1 0 0 0 0 0 0",
  9707. " x x x x x x x x",
  9708. " x a6 a5 a4 a3 a2 a1 a0",
  9709. " i i i i i i i i";
  9710. loadpage_hi = " 0 1 0 0 1 0 0 0",
  9711. " x x x x x x x x",
  9712. " x a6 a5 a4 a3 a2 a1 a0",
  9713. " i i i i i i i i";
  9714. writepage = " 0 1 0 0 1 1 0 0",
  9715. "a15 a14 a13 a12 a11 a10 a9 a8",
  9716. " a7 x x x x x x x",
  9717. " x x x x x x x x";
  9718. mode = 0x41;
  9719. delay = 6;
  9720. blocksize = 256;
  9721. readsize = 256;
  9722. ;
  9723. memory "lfuse"
  9724. size = 1;
  9725. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  9726. "x x x x x x x x i i i i i i i i";
  9727. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  9728. "x x x x x x x x o o o o o o o o";
  9729. min_write_delay = 9000;
  9730. max_write_delay = 9000;
  9731. ;
  9732. memory "hfuse"
  9733. size = 1;
  9734. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  9735. "x x x x x x x x i i i i i i i i";
  9736. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  9737. "x x x x x x x x o o o o o o o o";
  9738. min_write_delay = 9000;
  9739. max_write_delay = 9000;
  9740. ;
  9741. memory "efuse"
  9742. size = 1;
  9743. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  9744. "x x x x x x x x x x x x i i i i";
  9745. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  9746. "x x x x x x x x o o o o o o o o";
  9747. min_write_delay = 9000;
  9748. max_write_delay = 9000;
  9749. ;
  9750. memory "lock"
  9751. size = 1;
  9752. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  9753. "x x x x x x x x x x o o o o o o";
  9754. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  9755. "x x x x x x x x 1 1 i i i i i i";
  9756. min_write_delay = 9000;
  9757. max_write_delay = 9000;
  9758. ;
  9759. memory "calibration"
  9760. size = 1;
  9761. read = "0 0 1 1 1 0 0 0 x x x x x x x x",
  9762. "0 0 0 0 0 0 0 0 o o o o o o o o";
  9763. ;
  9764. memory "signature"
  9765. size = 3;
  9766. read = "0 0 1 1 0 0 0 0 x x x x x x x x",
  9767. "x x x x x x a1 a0 o o o o o o o o";
  9768. ;
  9769. ;
  9770. #------------------------------------------------------------
  9771. # ATmega325
  9772. #------------------------------------------------------------
  9773. part
  9774. id = "m325";
  9775. desc = "ATMEGA325";
  9776. signature = 0x1e 0x95 0x05;
  9777. has_jtag = yes;
  9778. # stk500_devcode = 0x??; # No STK500v1 support?
  9779. # avr910_devcode = 0x??; # Try the ATmega16 one
  9780. avr910_devcode = 0x74;
  9781. pagel = 0xd7;
  9782. bs2 = 0xa0;
  9783. chip_erase_delay = 9000;
  9784. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  9785. "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0";
  9786. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 0 0 0 0 0",
  9787. "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0";
  9788. timeout = 200;
  9789. stabdelay = 100;
  9790. cmdexedelay = 25;
  9791. synchloops = 32;
  9792. bytedelay = 0;
  9793. pollindex = 3;
  9794. pollvalue = 0x53;
  9795. predelay = 1;
  9796. postdelay = 1;
  9797. pollmethod = 1;
  9798. pp_controlstack =
  9799. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  9800. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  9801. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  9802. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  9803. hventerstabdelay = 100;
  9804. progmodedelay = 0;
  9805. latchcycles = 5;
  9806. togglevtg = 1;
  9807. poweroffdelay = 15;
  9808. resetdelayms = 1;
  9809. resetdelayus = 0;
  9810. hvleavestabdelay = 15;
  9811. chiperasepulsewidth = 0;
  9812. chiperasepolltimeout = 10;
  9813. programfusepulsewidth = 0;
  9814. programfusepolltimeout = 5;
  9815. programlockpulsewidth = 0;
  9816. programlockpolltimeout = 5;
  9817. idr = 0x31;
  9818. spmcr = 0x57;
  9819. allowfullpagebitstream = no;
  9820. memory "eeprom"
  9821. paged = no; /* leave this "no" */
  9822. page_size = 4; /* for parallel programming */
  9823. size = 1024;
  9824. min_write_delay = 9000;
  9825. max_write_delay = 9000;
  9826. readback_p1 = 0xff;
  9827. readback_p2 = 0xff;
  9828. read = " 1 0 1 0 0 0 0 0",
  9829. " 0 0 0 0 0 0 a9 a8",
  9830. " a7 a6 a5 a4 a3 a2 a1 a0",
  9831. " o o o o o o o o";
  9832. write = " 1 1 0 0 0 0 0 0",
  9833. " 0 0 0 0 0 0 a9 a8",
  9834. " a7 a6 a5 a4 a3 a2 a1 a0",
  9835. " i i i i i i i i";
  9836. loadpage_lo = " 1 1 0 0 0 0 0 1",
  9837. " 0 0 0 0 0 0 0 0",
  9838. " 0 0 0 0 0 0 a1 a0",
  9839. " i i i i i i i i";
  9840. writepage = " 1 1 0 0 0 0 1 0",
  9841. " 0 0 0 0 0 0 a9 a8",
  9842. " a7 a6 a5 a4 a3 a2 0 0",
  9843. " x x x x x x x x";
  9844. mode = 0x41;
  9845. delay = 10;
  9846. blocksize = 4;
  9847. readsize = 256;
  9848. ;
  9849. memory "flash"
  9850. paged = yes;
  9851. size = 32768;
  9852. page_size = 128;
  9853. num_pages = 256;
  9854. min_write_delay = 4500;
  9855. max_write_delay = 4500;
  9856. readback_p1 = 0xff;
  9857. readback_p2 = 0xff;
  9858. read_lo = " 0 0 1 0 0 0 0 0",
  9859. " 0 a14 a13 a12 a11 a10 a9 a8",
  9860. " a7 a6 a5 a4 a3 a2 a1 a0",
  9861. " o o o o o o o o";
  9862. read_hi = " 0 0 1 0 1 0 0 0",
  9863. " 0 a14 a13 a12 a11 a10 a9 a8",
  9864. " a7 a6 a5 a4 a3 a2 a1 a0",
  9865. " o o o o o o o o";
  9866. loadpage_lo = " 0 1 0 0 0 0 0 0",
  9867. " 0 0 0 0 0 0 0 0",
  9868. " a7 a6 a5 a4 a3 a2 a1 a0",
  9869. " i i i i i i i i";
  9870. loadpage_hi = " 0 1 0 0 1 0 0 0",
  9871. " 0 0 0 0 0 0 0 0",
  9872. " a7 a6 a5 a4 a3 a2 a1 a0",
  9873. " i i i i i i i i";
  9874. writepage = " 0 1 0 0 1 1 0 0",
  9875. " 0 a14 a13 a12 a11 a10 a9 a8",
  9876. " a7 a6 a5 a4 a3 a2 a1 a0",
  9877. " x x x x x x x x";
  9878. mode = 0x41;
  9879. delay = 10;
  9880. blocksize = 128;
  9881. readsize = 256;
  9882. ;
  9883. memory "lock"
  9884. size = 1;
  9885. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  9886. "x x x x x x x x x x o o o o o o";
  9887. write = "1 0 1 0 1 1 0 0 1 1 1 0 0 0 0 0",
  9888. "0 0 0 0 0 0 0 0 1 1 i i i i i i";
  9889. min_write_delay = 9000;
  9890. max_write_delay = 9000;
  9891. ;
  9892. memory "lfuse"
  9893. size = 1;
  9894. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  9895. "0 0 0 0 0 0 0 0 o o o o o o o o";
  9896. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  9897. "0 0 0 0 0 0 0 0 i i i i i i i i";
  9898. min_write_delay = 9000;
  9899. max_write_delay = 9000;
  9900. ;
  9901. memory "hfuse"
  9902. size = 1;
  9903. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  9904. "0 0 0 0 0 0 0 0 o o o o o o o o";
  9905. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  9906. "0 0 0 0 0 0 0 0 i i i i i i i i";
  9907. min_write_delay = 9000;
  9908. max_write_delay = 9000;
  9909. ;
  9910. memory "efuse"
  9911. size = 1;
  9912. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  9913. "0 0 0 0 0 0 0 0 o o o o o o o o";
  9914. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  9915. "0 0 0 0 0 0 0 0 1 1 1 1 1 i i i";
  9916. min_write_delay = 9000;
  9917. max_write_delay = 9000;
  9918. ;
  9919. memory "signature"
  9920. size = 3;
  9921. read = "0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0",
  9922. "0 0 0 0 0 0 a1 a0 o o o o o o o o";
  9923. ;
  9924. memory "calibration"
  9925. size = 1;
  9926. read = "0 0 1 1 1 0 0 0 0 0 0 0 0 0 0 0",
  9927. "0 0 0 0 0 0 0 0 o o o o o o o o";
  9928. ;
  9929. ;
  9930. #------------------------------------------------------------
  9931. # ATmega645
  9932. #------------------------------------------------------------
  9933. part
  9934. id = "m645";
  9935. desc = "ATMEGA645";
  9936. signature = 0x1E 0x96 0x05;
  9937. has_jtag = yes;
  9938. # stk500_devcode = 0x??; # No STK500v1 support?
  9939. # avr910_devcode = 0x??; # Try the ATmega16 one
  9940. avr910_devcode = 0x74;
  9941. pagel = 0xd7;
  9942. bs2 = 0xa0;
  9943. chip_erase_delay = 9000;
  9944. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  9945. "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0";
  9946. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 0 0 0 0 0",
  9947. "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0";
  9948. timeout = 200;
  9949. stabdelay = 100;
  9950. cmdexedelay = 25;
  9951. synchloops = 32;
  9952. bytedelay = 0;
  9953. pollindex = 3;
  9954. pollvalue = 0x53;
  9955. predelay = 1;
  9956. postdelay = 1;
  9957. pollmethod = 1;
  9958. pp_controlstack =
  9959. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  9960. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  9961. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  9962. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  9963. hventerstabdelay = 100;
  9964. progmodedelay = 0;
  9965. latchcycles = 5;
  9966. togglevtg = 1;
  9967. poweroffdelay = 15;
  9968. resetdelayms = 1;
  9969. resetdelayus = 0;
  9970. hvleavestabdelay = 15;
  9971. chiperasepulsewidth = 0;
  9972. chiperasepolltimeout = 10;
  9973. programfusepulsewidth = 0;
  9974. programfusepolltimeout = 5;
  9975. programlockpulsewidth = 0;
  9976. programlockpolltimeout = 5;
  9977. idr = 0x31;
  9978. spmcr = 0x57;
  9979. allowfullpagebitstream = no;
  9980. memory "eeprom"
  9981. paged = no; /* leave this "no" */
  9982. page_size = 8; /* for parallel programming */
  9983. size = 2048;
  9984. min_write_delay = 9000;
  9985. max_write_delay = 9000;
  9986. readback_p1 = 0xff;
  9987. readback_p2 = 0xff;
  9988. read = " 1 0 1 0 0 0 0 0",
  9989. " 0 0 0 0 0 a10 a9 a8",
  9990. " a7 a6 a5 a4 a3 a2 a1 a0",
  9991. " o o o o o o o o";
  9992. write = " 1 1 0 0 0 0 0 0",
  9993. " 0 0 0 0 0 a10 a9 a8",
  9994. " a7 a6 a5 a4 a3 a2 a1 a0",
  9995. " i i i i i i i i";
  9996. loadpage_lo = " 1 1 0 0 0 0 0 1",
  9997. " 0 0 0 0 0 0 0 0",
  9998. " 0 0 0 0 0 a2 a1 a0",
  9999. " i i i i i i i i";
  10000. writepage = " 1 1 0 0 0 0 1 0",
  10001. " 0 0 0 0 0 a10 a9 a8",
  10002. " a7 a6 a5 a4 a3 0 0 0",
  10003. " x x x x x x x x";
  10004. mode = 0x41;
  10005. delay = 10;
  10006. blocksize = 8;
  10007. readsize = 256;
  10008. ;
  10009. memory "flash"
  10010. paged = yes;
  10011. size = 65536;
  10012. page_size = 256;
  10013. num_pages = 256;
  10014. min_write_delay = 4500;
  10015. max_write_delay = 4500;
  10016. readback_p1 = 0xff;
  10017. readback_p2 = 0xff;
  10018. read_lo = " 0 0 1 0 0 0 0 0",
  10019. " a15 a14 a13 a12 a11 a10 a9 a8",
  10020. " a7 a6 a5 a4 a3 a2 a1 a0",
  10021. " o o o o o o o o";
  10022. read_hi = " 0 0 1 0 1 0 0 0",
  10023. " a15 a14 a13 a12 a11 a10 a9 a8",
  10024. " a7 a6 a5 a4 a3 a2 a1 a0",
  10025. " o o o o o o o o";
  10026. loadpage_lo = " 0 1 0 0 0 0 0 0",
  10027. " 0 0 0 0 0 0 0 0",
  10028. " a7 a6 a5 a4 a3 a2 a1 a0",
  10029. " i i i i i i i i";
  10030. loadpage_hi = " 0 1 0 0 1 0 0 0",
  10031. " 0 0 0 0 0 0 0 0",
  10032. " a7 a6 a5 a4 a3 a2 a1 a0",
  10033. " i i i i i i i i";
  10034. writepage = " 0 1 0 0 1 1 0 0",
  10035. " a15 a14 a13 a12 a11 a10 a9 a8",
  10036. " a7 a6 a5 a4 a3 a2 a1 a0",
  10037. " 0 0 0 0 0 0 0 0";
  10038. mode = 0x41;
  10039. delay = 10;
  10040. blocksize = 128;
  10041. readsize = 256;
  10042. ;
  10043. memory "lock"
  10044. size = 1;
  10045. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  10046. "x x x x x x x x x x o o o o o o";
  10047. write = "1 0 1 0 1 1 0 0 1 1 1 0 0 0 0 0",
  10048. "0 0 0 0 0 0 0 0 1 1 i i i i i i";
  10049. min_write_delay = 9000;
  10050. max_write_delay = 9000;
  10051. ;
  10052. memory "lfuse"
  10053. size = 1;
  10054. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  10055. "0 0 0 0 0 0 0 0 o o o o o o o o";
  10056. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  10057. "0 0 0 0 0 0 0 0 i i i i i i i i";
  10058. min_write_delay = 9000;
  10059. max_write_delay = 9000;
  10060. ;
  10061. memory "hfuse"
  10062. size = 1;
  10063. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  10064. "0 0 0 0 0 0 0 0 o o o o o o o o";
  10065. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  10066. "0 0 0 0 0 0 0 0 i i i i i i i i";
  10067. min_write_delay = 9000;
  10068. max_write_delay = 9000;
  10069. ;
  10070. memory "efuse"
  10071. size = 1;
  10072. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  10073. "0 0 0 0 0 0 0 0 o o o o o o o o";
  10074. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  10075. "0 0 0 0 0 0 0 0 1 1 1 1 1 i i i";
  10076. min_write_delay = 9000;
  10077. max_write_delay = 9000;
  10078. ;
  10079. memory "signature"
  10080. size = 3;
  10081. read = "0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0",
  10082. "0 0 0 0 0 0 a1 a0 o o o o o o o o";
  10083. ;
  10084. memory "calibration"
  10085. size = 1;
  10086. read = "0 0 1 1 1 0 0 0 0 0 0 0 0 0 0 0",
  10087. "0 0 0 0 0 0 0 0 o o o o o o o o";
  10088. ;
  10089. ;
  10090. #------------------------------------------------------------
  10091. # ATmega3250
  10092. #------------------------------------------------------------
  10093. part
  10094. id = "m3250";
  10095. desc = "ATMEGA3250";
  10096. signature = 0x1E 0x95 0x06;
  10097. has_jtag = yes;
  10098. # stk500_devcode = 0x??; # No STK500v1 support?
  10099. # avr910_devcode = 0x??; # Try the ATmega16 one
  10100. avr910_devcode = 0x74;
  10101. pagel = 0xd7;
  10102. bs2 = 0xa0;
  10103. chip_erase_delay = 9000;
  10104. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  10105. "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0";
  10106. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 0 0 0 0 0",
  10107. "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0";
  10108. timeout = 200;
  10109. stabdelay = 100;
  10110. cmdexedelay = 25;
  10111. synchloops = 32;
  10112. bytedelay = 0;
  10113. pollindex = 3;
  10114. pollvalue = 0x53;
  10115. predelay = 1;
  10116. postdelay = 1;
  10117. pollmethod = 1;
  10118. pp_controlstack =
  10119. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  10120. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  10121. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  10122. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  10123. hventerstabdelay = 100;
  10124. progmodedelay = 0;
  10125. latchcycles = 5;
  10126. togglevtg = 1;
  10127. poweroffdelay = 15;
  10128. resetdelayms = 1;
  10129. resetdelayus = 0;
  10130. hvleavestabdelay = 15;
  10131. chiperasepulsewidth = 0;
  10132. chiperasepolltimeout = 10;
  10133. programfusepulsewidth = 0;
  10134. programfusepolltimeout = 5;
  10135. programlockpulsewidth = 0;
  10136. programlockpolltimeout = 5;
  10137. idr = 0x31;
  10138. spmcr = 0x57;
  10139. allowfullpagebitstream = no;
  10140. memory "eeprom"
  10141. paged = no; /* leave this "no" */
  10142. page_size = 4; /* for parallel programming */
  10143. size = 1024;
  10144. min_write_delay = 9000;
  10145. max_write_delay = 9000;
  10146. readback_p1 = 0xff;
  10147. readback_p2 = 0xff;
  10148. read = " 1 0 1 0 0 0 0 0",
  10149. " 0 0 0 0 0 0 a9 a8",
  10150. " a7 a6 a5 a4 a3 a2 a1 a0",
  10151. " o o o o o o o o";
  10152. write = " 1 1 0 0 0 0 0 0",
  10153. " 0 0 0 0 0 0 a9 a8",
  10154. " a7 a6 a5 a4 a3 a2 a1 a0",
  10155. " i i i i i i i i";
  10156. loadpage_lo = " 1 1 0 0 0 0 0 1",
  10157. " 0 0 0 0 0 0 0 0",
  10158. " 0 0 0 0 0 0 a1 a0",
  10159. " i i i i i i i i";
  10160. writepage = " 1 1 0 0 0 0 1 0",
  10161. " 0 0 0 0 0 0 a9 a8",
  10162. " a7 a6 a5 a4 a3 a2 0 0",
  10163. " x x x x x x x x";
  10164. mode = 0x41;
  10165. delay = 10;
  10166. blocksize = 4;
  10167. readsize = 256;
  10168. ;
  10169. memory "flash"
  10170. paged = yes;
  10171. size = 32768;
  10172. page_size = 128;
  10173. num_pages = 256;
  10174. min_write_delay = 4500;
  10175. max_write_delay = 4500;
  10176. readback_p1 = 0xff;
  10177. readback_p2 = 0xff;
  10178. read_lo = " 0 0 1 0 0 0 0 0",
  10179. " 0 a14 a13 a12 a11 a10 a9 a8",
  10180. " a7 a6 a5 a4 a3 a2 a1 a0",
  10181. " o o o o o o o o";
  10182. read_hi = " 0 0 1 0 1 0 0 0",
  10183. " 0 a14 a13 a12 a11 a10 a9 a8",
  10184. " a7 a6 a5 a4 a3 a2 a1 a0",
  10185. " o o o o o o o o";
  10186. loadpage_lo = " 0 1 0 0 0 0 0 0",
  10187. " 0 0 0 0 0 0 0 0",
  10188. " a7 a6 a5 a4 a3 a2 a1 a0",
  10189. " i i i i i i i i";
  10190. loadpage_hi = " 0 1 0 0 1 0 0 0",
  10191. " 0 0 0 0 0 0 0 0",
  10192. " a7 a6 a5 a4 a3 a2 a1 a0",
  10193. " i i i i i i i i";
  10194. writepage = " 0 1 0 0 1 1 0 0",
  10195. " 0 a14 a13 a12 a11 a10 a9 a8",
  10196. " a7 a6 a5 a4 a3 a2 a1 a0",
  10197. " x x x x x x x x";
  10198. mode = 0x41;
  10199. delay = 10;
  10200. blocksize = 128;
  10201. readsize = 256;
  10202. ;
  10203. memory "lock"
  10204. size = 1;
  10205. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  10206. "x x x x x x x x x x o o o o o o";
  10207. write = "1 0 1 0 1 1 0 0 1 1 1 0 0 0 0 0",
  10208. "0 0 0 0 0 0 0 0 1 1 i i i i i i";
  10209. min_write_delay = 9000;
  10210. max_write_delay = 9000;
  10211. ;
  10212. memory "lfuse"
  10213. size = 1;
  10214. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  10215. "0 0 0 0 0 0 0 0 o o o o o o o o";
  10216. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  10217. "0 0 0 0 0 0 0 0 i i i i i i i i";
  10218. min_write_delay = 9000;
  10219. max_write_delay = 9000;
  10220. ;
  10221. memory "hfuse"
  10222. size = 1;
  10223. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  10224. "0 0 0 0 0 0 0 0 o o o o o o o o";
  10225. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  10226. "0 0 0 0 0 0 0 0 i i i i i i i i";
  10227. min_write_delay = 9000;
  10228. max_write_delay = 9000;
  10229. ;
  10230. memory "efuse"
  10231. size = 1;
  10232. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  10233. "0 0 0 0 0 0 0 0 o o o o o o o o";
  10234. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  10235. "0 0 0 0 0 0 0 0 1 1 1 1 1 i i i";
  10236. min_write_delay = 9000;
  10237. max_write_delay = 9000;
  10238. ;
  10239. memory "signature"
  10240. size = 3;
  10241. read = "0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0",
  10242. "0 0 0 0 0 0 a1 a0 o o o o o o o o";
  10243. ;
  10244. memory "calibration"
  10245. size = 1;
  10246. read = "0 0 1 1 1 0 0 0 0 0 0 0 0 0 0 0",
  10247. "0 0 0 0 0 0 0 0 o o o o o o o o";
  10248. ;
  10249. ;
  10250. #------------------------------------------------------------
  10251. # ATmega6450
  10252. #------------------------------------------------------------
  10253. part
  10254. id = "m6450";
  10255. desc = "ATMEGA6450";
  10256. signature = 0x1E 0x96 0x06;
  10257. has_jtag = yes;
  10258. # stk500_devcode = 0x??; # No STK500v1 support?
  10259. # avr910_devcode = 0x??; # Try the ATmega16 one
  10260. avr910_devcode = 0x74;
  10261. pagel = 0xd7;
  10262. bs2 = 0xa0;
  10263. chip_erase_delay = 9000;
  10264. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  10265. "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0";
  10266. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 0 0 0 0 0",
  10267. "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0";
  10268. timeout = 200;
  10269. stabdelay = 100;
  10270. cmdexedelay = 25;
  10271. synchloops = 32;
  10272. bytedelay = 0;
  10273. pollindex = 3;
  10274. pollvalue = 0x53;
  10275. predelay = 1;
  10276. postdelay = 1;
  10277. pollmethod = 1;
  10278. pp_controlstack =
  10279. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  10280. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  10281. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  10282. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
  10283. hventerstabdelay = 100;
  10284. progmodedelay = 0;
  10285. latchcycles = 5;
  10286. togglevtg = 1;
  10287. poweroffdelay = 15;
  10288. resetdelayms = 1;
  10289. resetdelayus = 0;
  10290. hvleavestabdelay = 15;
  10291. chiperasepulsewidth = 0;
  10292. chiperasepolltimeout = 10;
  10293. programfusepulsewidth = 0;
  10294. programfusepolltimeout = 5;
  10295. programlockpulsewidth = 0;
  10296. programlockpolltimeout = 5;
  10297. idr = 0x31;
  10298. spmcr = 0x57;
  10299. allowfullpagebitstream = no;
  10300. memory "eeprom"
  10301. paged = no; /* leave this "no" */
  10302. page_size = 8; /* for parallel programming */
  10303. size = 2048;
  10304. min_write_delay = 9000;
  10305. max_write_delay = 9000;
  10306. readback_p1 = 0xff;
  10307. readback_p2 = 0xff;
  10308. read = " 1 0 1 0 0 0 0 0",
  10309. " 0 0 0 0 0 a10 a9 a8",
  10310. " a7 a6 a5 a4 a3 a2 a1 a0",
  10311. " o o o o o o o o";
  10312. write = " 1 1 0 0 0 0 0 0",
  10313. " 0 0 0 0 0 a10 a9 a8",
  10314. " a7 a6 a5 a4 a3 a2 a1 a0",
  10315. " i i i i i i i i";
  10316. loadpage_lo = " 1 1 0 0 0 0 0 1",
  10317. " 0 0 0 0 0 0 0 0",
  10318. " 0 0 0 0 0 a2 a1 a0",
  10319. " i i i i i i i i";
  10320. writepage = " 1 1 0 0 0 0 1 0",
  10321. " 0 0 0 0 0 a10 a9 a8",
  10322. " a7 a6 a5 a4 a3 0 0 0",
  10323. " x x x x x x x x";
  10324. mode = 0x41;
  10325. delay = 10;
  10326. blocksize = 4;
  10327. readsize = 256;
  10328. ;
  10329. memory "flash"
  10330. paged = yes;
  10331. size = 65536;
  10332. page_size = 256;
  10333. num_pages = 256;
  10334. min_write_delay = 4500;
  10335. max_write_delay = 4500;
  10336. readback_p1 = 0xff;
  10337. readback_p2 = 0xff;
  10338. read_lo = " 0 0 1 0 0 0 0 0",
  10339. " a15 a14 a13 a12 a11 a10 a9 a8",
  10340. " a7 a6 a5 a4 a3 a2 a1 a0",
  10341. " o o o o o o o o";
  10342. read_hi = " 0 0 1 0 1 0 0 0",
  10343. " a15 a14 a13 a12 a11 a10 a9 a8",
  10344. " a7 a6 a5 a4 a3 a2 a1 a0",
  10345. " o o o o o o o o";
  10346. loadpage_lo = " 0 1 0 0 0 0 0 0",
  10347. " 0 0 0 0 0 0 0 0",
  10348. " a7 a6 a5 a4 a3 a2 a1 a0",
  10349. " i i i i i i i i";
  10350. loadpage_hi = " 0 1 0 0 1 0 0 0",
  10351. " 0 0 0 0 0 0 0 0",
  10352. " a7 a6 a5 a4 a3 a2 a1 a0",
  10353. " i i i i i i i i";
  10354. writepage = " 0 1 0 0 1 1 0 0",
  10355. " a15 a14 a13 a12 a11 a10 a9 a8",
  10356. " a7 a6 a5 a4 a3 a2 a1 a0",
  10357. " 0 0 0 0 0 0 0 0";
  10358. mode = 0x41;
  10359. delay = 10;
  10360. blocksize = 128;
  10361. readsize = 256;
  10362. ;
  10363. memory "lock"
  10364. size = 1;
  10365. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  10366. "x x x x x x x x x x o o o o o o";
  10367. write = "1 0 1 0 1 1 0 0 1 1 1 0 0 0 0 0",
  10368. "0 0 0 0 0 0 0 0 1 1 i i i i i i";
  10369. min_write_delay = 9000;
  10370. max_write_delay = 9000;
  10371. ;
  10372. memory "lfuse"
  10373. size = 1;
  10374. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  10375. "0 0 0 0 0 0 0 0 o o o o o o o o";
  10376. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  10377. "0 0 0 0 0 0 0 0 i i i i i i i i";
  10378. min_write_delay = 9000;
  10379. max_write_delay = 9000;
  10380. ;
  10381. memory "hfuse"
  10382. size = 1;
  10383. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  10384. "0 0 0 0 0 0 0 0 o o o o o o o o";
  10385. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  10386. "0 0 0 0 0 0 0 0 i i i i i i i i";
  10387. min_write_delay = 9000;
  10388. max_write_delay = 9000;
  10389. ;
  10390. memory "efuse"
  10391. size = 1;
  10392. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  10393. "0 0 0 0 0 0 0 0 o o o o o o o o";
  10394. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  10395. "0 0 0 0 0 0 0 0 1 1 1 1 1 i i i";
  10396. min_write_delay = 9000;
  10397. max_write_delay = 9000;
  10398. ;
  10399. memory "signature"
  10400. size = 3;
  10401. read = "0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0",
  10402. "0 0 0 0 0 0 a1 a0 o o o o o o o o";
  10403. ;
  10404. memory "calibration"
  10405. size = 1;
  10406. read = "0 0 1 1 1 0 0 0 0 0 0 0 0 0 0 0",
  10407. "0 0 0 0 0 0 0 0 o o o o o o o o";
  10408. ;
  10409. ;