diff --git a/src/avrdudess/Files/avrdude.conf b/src/avrdudess/Files/avrdude.conf index 155129e..0f2746e 100644 --- a/src/avrdudess/Files/avrdude.conf +++ b/src/avrdudess/Files/avrdude.conf @@ -1,16 +1,14 @@ -# AVRDUDE Configuration File -*- text -*- +# $Id$ -*- text -*- # - -avrdude_conf_version = "8.1"; - -# This file contains AVRDUDE's default configuration data describing -# programming hardware pinouts and part definitions. Normally, it -# requires AVRDUDE be of the same or higher version than above string. -# AVRDUDE's -C command line option specifies the location of the -# configuration file. The -c option names the programmer configuration -# which must match one of the entry's id parameter. The -p option -# identifies which part AVRDUDE is going to be programming and must -# match one of the parts' id parameters. +# AVRDUDE Configuration File +# +# This file contains configuration data used by AVRDUDE which describes +# the programming hardware pinouts and also provides part definitions. +# AVRDUDE's "-C" command line option specifies the location of the +# configuration file. The "-c" option names the programmer configuration +# which must match one of the entry's "id" parameter. The "-p" option +# identifies which part AVRDUDE is going to be programming and must match +# one of the parts' "id" parameter. # # DO NOT MODIFY THIS FILE. Modifications will be overwritten the next # time a "make install" is run. For user-specific additions, use the @@ -23,36 +21,31 @@ avrdude_conf_version = "8.1"; # id = [, ... ] ; # are quoted strings # desc = ; # quoted string # type = ; # programmer type, quoted string -# # list known types with -c ?type +# # supported types can be listed by "-c ?type" # prog_modes = PM_ {| PM_} # interfaces, eg, PM_SPM|PM_PDI (1) -# is_serialadapter = # programmer is also a serialadapter -# extra_features = HAS_ {| HAS_} # extra features, eg, HAS_SUFFER (2) # connection_type = parallel | serial | usb | spi # baudrate = ; # baudrate for avr910-programmer -# vcc = [, ... ] ; # pin number(s) (3) +# vcc = [, ... ] ; # pin number(s) # buff = [, ... ] ; # pin number(s) # reset = ; # pin number # sck = ; # pin number -# sdo|pico = ; # pin number -# sdi|poci = ; # pin number -# tck = ; # pin number -# tdi = ; # pin number -# tdo = ; # pin number -# tms = ; # pin number +# sdo = ; # pin number +# sdi = ; # pin number # errled = ; # pin number # rdyled = ; # pin number # pgmled = ; # pin number # vfyled = ; # pin number -# usbvid = ; # USB vendor ID -# usbpid = [, ...] ; # USB product ID (4) +# usbvid = ; # USB VID (Vendor ID) +# usbpid = [, ...] ; # USB PID (Product ID) (2) # usbdev = ; # USB interface or other device info # usbvendor = ; # USB Vendor Name # usbproduct = ; # USB Product Name # usbsn = ; # USB Serial Number -# hvupdi_support = [, , ... ] ; # HV support for enabling UPDI +# hvupdi_support = [, , ... ] ; # UPDI HV Variants Support # ; # -# # Notes +# # To invert a pin use = ~ +# # To invert a pin list (all pins get inverted) use ~ ( [, ... ] ) # # # # (1) The following program modes are known: # # - PM_SPM: Bootloaders, self-programming with SPM opcodes or NVM Controllers @@ -69,63 +62,40 @@ avrdude_conf_version = "8.1"; # # - PM_AVR32JTAG: JTAG for 32-bit AVRs # # - PM_aWire: AVR32 parts # # -# # (2) The following extra programmer features are known: -# # - HAS_SUFFER: Only present on Xplained Mini/Nano programmers. -# # The Super User Fantastic Feature Enable Register allows the user to modify -# # the behavior of the mEDBG programmer/debugger chip. See the Xplained Mini/Nano -# # documentation for more information -# # - HAS_VTARG_SWITCH: Programer has a programmable target power switch -# # - HAS_VTARG_READ: Programmer can read the target voltage -# # - HAS_VTARG_ADJ: Programmer has an adjustable target power source that can -# # be controlled with Avrdude -# # - HAS_FOSC_ADJ: Programmer has a programable frequency generator that -# # can clock an AVR directly through its XTAL1 pin -# # - HAS_VAREF_ADJ: Programmer has an adjustable analog reference voltage that -# # can be controlled with Avrdude -# # - HAS_BITCLOCK_ADJ: Programmer has an adjustable bitclock that -# # can be controlled with Avrdude using -B -# # -# # (3) To invert the polarity of a pin use a tilde: ~ -# # To invert the polarity of all pins in a list use ~( [, ... ]) -# # -# # (4) Not all programmer types can process a list of PIDs -# -# serialadapter # same as programmer albeit only for usb parameters -# parent # optional serialadapter or programmer parent -# id = [, ... ] ; # are quoted strings -# desc = ; # quoted string -# baudrate = ; # optional default baudrate, eg, in .avrduderc -# usbvid = ; # USB vendor ID -# usbpid = [, ...] ; # list of USB product IDs -# usbsn = ; # USB Serial Number in per-user .avrduderc -# ; +# # (2) Not all programmer types can process a list of PIDs # # part -# desc = ; # quoted string, the long part name, eg, "ATmega328p" -# id = ; # quoted string, normally an abbreviated part name -# variants = [, ...]; # quoted strings, each starts with ": ..." +# desc = ; # quoted string +# id = ; # quoted string # family_id = ; # quoted string, eg, "megaAVR" or "tinyAVR" # prog_modes = PM_ {| PM_} # interfaces, eg, PM_SPM|PM_ISP|PM_HVPP|PM_debugWIRE # mcuid = ; # unique id in 0..2039 for 8-bit AVRs -# archnum = ; # avr-gcc architecture number; -1 if not 8-bit AVR # n_interrupts = ; # number of interrupts, used for vector bootloaders # n_page_erase = ; # if set, number of pages erased during SPM erase # n_boot_sections = ; # Number of boot sections # boot_section_size = ; # Size of (smallest) boot section, if any -# hvupdi_variant = ; # numeric: -1 or 0..3; how to enable UPDI with HV +# hvupdi_variant = ; # numeric -1 (n/a) or 0..2 +# devicecode = ; # deprecated, use stk500_devcode # stk500_devcode = ; # numeric # avr910_devcode = ; # numeric +# has_jtag = ; # part has JTAG i/f (deprecated, use prog_modes) +# has_debugwire = ; # part has debugWire i/f (deprecated, use prog_modes) +# has_pdi = ; # part has PDI i/f (deprecated, use prog_modes) +# has_updi = ; # part has UPDI i/f (deprecated, use prog_modes) +# has_tpi = ; # part has TPI i/f (deprecated, use prog_modes) +# is_avr32 = ; # AVR32 part (deprecated, use prog_modes) # is_at90s1200 = ; # AT90S1200 part # signature = ; # signature bytes # usbpid = ; # DFU USB PID -# chip_erase_delay = ; # microseconds +# chip_erase_delay = ; # micro-seconds # reset = dedicated | io ; # retry_pulse = reset | sck ; +# chip_erase_delay = ; # chip erase delay (us) # # STK500 parameters (parallel programming IO lines) -# pagel = ; # page load pin name in hex, eg, 0xD7 -# bs2 = ; # byte select 2 pin name in hex, eg, 0xA0 -# serial = ; # can use serial programming -# parallel = ; # can use parallel programming +# pagel = ; # pin name in hex, i.e., 0xD7 +# bs2 = ; # pin name in hex, i.e., 0xA0 +# serial = ; # can use serial downloading +# parallel = ; # can use par. programming # # STK500v2 parameters, to be taken from Atmel's ATDF files # timeout = ; # stabdelay = ; @@ -166,27 +136,23 @@ avrdude_conf_version = "8.1"; # idr = ; # IO addr of IDR (OCD) reg # rampz = ; # IO addr of RAMPZ reg # spmcr = ; # mem addr of SPMC[S]R reg -# eecr = ; # mem addr of EECR reg +# eecr = ; # mem addr of EECR reg only when != 0x3f # eind = ; # mem addr of EIND reg -# mcu_base = ; # MCU control block in ATxmega devices -# nvm_base = ; # NVM controller in ATxmega devices -# ocd_base = ; # OCD module in AVR8X/UPDI devices -# syscfg_base = ; # Chip revision ID in AVR8X/UPDI devices -# ocdrev = ; # JTAGICE3 parameter from ATDF files +# mcu_base = ; +# nvm_base = ; +# ocd_base = ; +# ocdrev = ; # pgm_enable = ; # chip_erase = ; # # parameters for bootloaders # autobaud_sync = ; # autobaud detection byte, default 0x30 -# factory_fcpu = ; # F_CPU in Hz on reset and factory-set fuses # -# memory -# paged = ; # yes/no (flash of classic parts only) +# memory +# paged = ; # yes/no (flash only, do not use for EEPROM) # offset = ; # memory offset # size = ; # bytes # page_size = ; # bytes # num_pages = ; # numeric -# initval = ; # factory setting of fuses and lockbits -# bitmask = ; # bits used (only in fuses and lockbits) # n_word_writes = ; # TPI only: if set, number of words to write # min_write_delay = ; # micro-seconds # max_write_delay = ; # micro-seconds @@ -211,10 +177,10 @@ avrdude_conf_version = "8.1"; # ; # # If any of the above parameters are not specified, the default value -# of 0 is used for numerics (except for mcuid, hvupdi_variant, ocdrev, -# initval and bitmask, all of which default to -1, and for autobaud_sync -# which defaults to 0x30), or the empty string "" for string values. If -# a required parameter is left empty, AVRDUDE will complain. Almost all +# of 0 is used for numerics (except for mcuid, hvupdi_variant and +# ocdrev, where the default value is -1, and for autobaud_sync which +# defaults to 0x30), or the empty string "" for string values. If a +# required parameter is left empty, AVRDUDE will complain. Almost all # occurrences of numbers (with the exception of pin numbers and where # they are separated by space, eg, in signature and readback) can also # be given as simple expressions involving arithemtic and bitwise @@ -237,13 +203,15 @@ avrdude_conf_version = "8.1"; # ; # # NOTES: -# * Not all memories will implement all instructions +# * 'devicecode' is the device code used by the STK500 (see codes +# listed below) +# * Not all memory types will implement all instructions # * AVR Fuse bits and Lock bits are implemented as a type of memory -# * Example memories are: +# * Example memory types are: # "flash", "eeprom", "fuse", "lfuse" (low fuse), "hfuse" (high # fuse), "signature", "calibration", "lock" -# * The memory specified on the avrdude command line must match -# one of the memories defined for the specified chip +# * The memory type specified on the avrdude command line must match +# one of the memory types defined for the specified chip # * The pwroff_after_write flag causes avrdude to attempt to # power the device off and back on after an unsuccessful write to # the affected memory area if VCC programmer pins are defined. If @@ -252,7 +220,7 @@ avrdude_conf_version = "8.1"; # This flag was added to work around a problem with the # at90s4433/2333's; see the at90s4433 errata at: # -# https://www.microchip.com/content/dam/mchp/documents/OTH/ProductDocuments/DataSheets/doc1042.pdf +# http://www.atmel.com/dyn/resources/prod_documents/doc1280.pdf # # INSTRUCTION FORMATS # @@ -274,12 +242,9 @@ avrdude_conf_version = "8.1"; # 'aN' = the bit is the Nth address bit, bit-number = N, i.e., a12 # is address bit 12 on input, a0 is address bit 0. # -# 'i' = the bit is an input data bit (can optionally be followed -# by a memory bit position between 0 and 7 if that differs -# from the bit-position in the SPI write command byte) +# 'i' = the bit is an input data bit # -# 'o' = the bit is an output data bit (can optionally be followed -# by a memory bit position between 0 and 7) +# 'o' = the bit is an output data bit # # Each instruction must be composed of 32 bit specifiers. The # instruction specification closely follows the instruction data @@ -306,7 +271,7 @@ avrdude_conf_version = "8.1"; # # # The following are STK500 part device codes to use for the -# stk500_devcode field of the part. These came from Atmel's software +# "devicecode" field of the part. These came from Atmel's software # section avr061.zip which accompanies the application note # AVR061 available from: # @@ -434,11 +399,8 @@ avrdude_conf_version = "8.1"; # default_parallel = "lpt1"; default_serial = "com1"; -default_spi = "unknown"; -# default_baudrate = 115200; +default_spi = ""; # default_bitclock = 2.5; -default_linuxgpio = "unknown"; -allow_subshells = no; @@ -450,52 +412,6 @@ allow_subshells = no; # PROGRAMMER DEFINITIONS # -#------------------------------------------------------------ -# dryrun -#------------------------------------------------------------ - -# Using -c dryrun is a good way to get acquainted with AVRDUDE and its -# command line -U memory operations, -T terminal commands or the -# interactive terminal -t. No hardware needs to be connected, as the -# dryrun programmer emulates what can be expected to happen with a real -# -c programmer and a corresponding connected physical programmer or a -# directly connected board when it has a bootloader. -# -# Examples: -# avrdude -c dryrun -p ATmega328P -t # Interactive terminal: enter help -# avrdude -c dryrun -p ATmega2560 -U flash:w:myapplication.hex:i -# avrdude -c dryrun -p AVR64DB48 -Tconfig - -programmer # dryrun - id = "dryrun"; - desc = "Emulates programming without a programmer"; - type = "dryrun"; - prog_modes = PM_TPI | PM_ISP | PM_PDI | PM_UPDI | PM_HVSP | PM_HVPP | PM_aWire; -; - -#------------------------------------------------------------ -# dryboot -#------------------------------------------------------------ - -# Like -c dryrun the -c dryboot programmer only emulates programming, -# albeit for communicating to bootloaders, ie, without a physical -# programmer between the host and the target AVR part. AVRDUDE behaves -# slightly different when talking to a bootloader: Whilst for most classic -# parts the flash memory looks like NOR-memory, ie, cleared bits cannot be -# set and therefore programming requires a chip erase first, bootloaders -# do have the power of erasing a flash page (setting it to all 0xff) -# before writing a page. This requires AVRDUDE to behave differently when -# talking to a bootloader, which it recognises by the prog_modes = PM_SPM -# setting below. -c dryboot allows exploring these differences at an -# emulation level. - -programmer # dryboot - id = "dryboot"; - desc = "Emulates bootloader programming without the part"; - type = "dryrun"; - prog_modes = PM_SPM; -; - #------------------------------------------------------------ # wiring #------------------------------------------------------------ @@ -503,9 +419,9 @@ programmer # dryboot # http://wiring.org.co/ # Basically STK500v2 protocol, with some glue to trigger the bootloader -programmer # wiring +programmer id = "wiring"; - desc = "Wiring bootloader using STK500 v2 protocol"; + desc = "Wiring for bootloader using STK500 v2 protocol"; type = "wiring"; prog_modes = PM_SPM; connection_type = serial; @@ -515,16 +431,9 @@ programmer # wiring # arduino #------------------------------------------------------------ -# Serves optiboot bootloaders and others using the STK500v1 protocol; -# it is superseded by the more modern -c urclock programmer, see below. -# The programmer is named after the popular embedded programming -# environment Arduino that has for a long time used optiboot -# bootloaders. Same as the stk500v1 except that it resets the attached -# board and treats EEPROM as the optiboot bootloaders expect. - -programmer # arduino +programmer id = "arduino"; - desc = "Arduino bootloader using STK500 v1 protocol"; + desc = "Arduino for bootloader using STK500 v1 protocol"; type = "arduino"; prog_modes = PM_SPM; connection_type = serial; @@ -534,26 +443,10 @@ programmer # arduino # urclock #------------------------------------------------------------ -# Serves urboot and optiboot bootloaders -# - Reads/writes flash/EEPROM via the MCU bootloader and a serial connection -# - Automatically resets an attached board via RTS/DTR into bootloader mode -# - Implements urprotocol, a skeleton version of STK500v1 -# - Supports vector bootloaders by patching interrupt vectors on flash writes -# + Vector bootloaders run on all parts, no need for a HW boot section -# + Can be much smaller than the smallest HW boot section of a part, eg, -# 256 bytes for ATmega2560 (smallest HW boot section is 1024 bytes) -# - Checks sizes of applications so they don't overwrite the bootloader -# - Keeps the bootloader alive during interactive terminal sessions -# - Provides a 4-byte metadata interface in top flash for -# + Allowing applications to utilise unused flash similar to EEPROM -# + Storing in top flash the file name and its last-modified date -# + Displaying file name and date of the last programmed application -# # See https://github.com/stefanrueger/urboot - -programmer # urclock +programmer id = "urclock"; - desc = "Urboot bootloaders using urprotocol"; + desc = "Urclock programmer for urboot bootloaders using urprotocol"; type = "urclock"; prog_modes = PM_SPM; connection_type = serial; @@ -563,15 +456,9 @@ programmer # urclock # xbee #------------------------------------------------------------ -# The XBeeBoot bootloader provides XBee Series 2 Over-The-Air -# firmware update capability as well as supporting direct -# firmware update via the stk500v1 protocol. See -# https://github.com/davidsainty/xbeeboot -# for details. - -programmer # xbee +programmer id = "xbee"; - desc = "XBeeBoot Over-The-Air bootloader (STK500 v1)"; + desc = "XBee for Series 2 Over-The-Air (XBeeBoot) bootloader using STK500 v1 protocol"; type = "xbee"; prog_modes = PM_SPM; connection_type = serial; @@ -581,37 +468,31 @@ programmer # xbee # ft2232h #------------------------------------------------------------ -# FTDI USB to serial converters can be used for ISP programming of -# classic AVRs, and quite a few programmers are based on this. The -# ft2232h programmer, named after the FTDI converter chip, -# interfaces with the chips on these programmers (and more): -# - http://real.kiev.ua/old/avreal/en/adapters -# - http://www.amontec.com/jtagkey.shtml and .../jtagkey-tiny.shtml -# - http://www.olimex.com/dev/arm-usb-ocd.html, arm-usb-tiny.html -# - http://www.ethernut.de/en/hardware/turtelizer/index.html -# - https://web.archive.org/web/20161221220118/http://elk.informatik.fh-augsburg.de/hhweb/doc/openocd/usbjtag/usbjtag.html -# - http://dangerousprototypes.com/docs/FT2232_breakout_board -# - http://flashrom.org/FT2232SPI_Programmer +# this will interface with the chips on these programmers: # -# The programmer will look for a specific device and use the first -# one found. If you have multiple devices, and they give out serial -# numbers, a different entry for each of them can be created in a -# per-user ~/.avrduderc or avrdude.rc entry and the usbsn = "..."; -# field added to distinguish between them. +# http://real.kiev.ua/old/avreal/en/adapters +# http://www.amontec.com/jtagkey.shtml, jtagkey-tiny.shtml +# http://www.olimex.com/dev/arm-usb-ocd.html, arm-usb-tiny.html +# http://www.ethernut.de/en/hardware/turtelizer/index.html +# http://elk.informatik.fh-augsburg.de/hhweb/doc/openocd/usbjtag/usbjtag.html +# http://dangerousprototypes.com/docs/FT2232_breakout_board +# http://www.ftdichip.com/Products/Modules/DLPModules.htm,DLP-2232*,DLP-USB1232H +# http://flashrom.org/FT2232SPI_Programmer # -# Avrftdi-type programmers utilise the Multi-Protocol Synchronous Serial -# Engine (MPSSE) of the FTDI ICs, which determines the pin numbers for the -# main ISP signals (sck, sdo, sdi). The reset pin can differ, though. +# The drivers will look for a specific device and use the first one found. +# If you have mulitple devices, then look for unique information (like SN) +# And fill that in here. # -# Data sheet of the FT2232H chip: -# https://ftdichip.com/wp-content/uploads/2020/08/DS_FT2232H.pdf +# Note that the pin numbers for the main ISP signals (reset, sck, +# sdo, sdi) are fixed and cannot be changed, since they must match +# the way the Multi-Protocol Synchronous Serial Engine (MPSSE) of +# these FTDI ICs has been designed. -programmer # avrftdi - id = "avrftdi", "2232h"; - desc = "FT2232H/D based generic programmer"; +programmer + id = "ft2232h"; + desc = "FT2232H based generic programmer"; type = "avrftdi"; prog_modes = PM_TPI | PM_ISP; - extra_features = HAS_BITCLOCK_ADJ; connection_type = usb; usbvid = 0x0403; usbpid = 0x6010; @@ -624,25 +505,22 @@ programmer # avrftdi ; #------------------------------------------------------------ -# ft2232h +# avrftdi #------------------------------------------------------------ -# The ft2232h programmer is the same as above 2232h but it can be -# used to address the port of a particular board via -P ft2232h - -programmer parent "2232h" # ft2232h - id = "ft2232h"; - is_serialadapter = yes; +programmer parent "ft2232h" + id = "avrftdi"; + desc = "FT2232D based generic programmer"; ; #------------------------------------------------------------ # 2232HIO #------------------------------------------------------------ -# This is an implementation of the above 2232h with a buffer IC -# (74AC244) and 4 LEDs directly attached, all active low. +# This is an implementation of the above with a buffer IC (74AC244) and +# 4 LEDs directly attached, all active low. -programmer parent "2232h" # 2232hio +programmer parent "ft2232h" id = "2232hio"; desc = "2232hio based on FT2232H with buffer and LEDs"; buff = ~4; @@ -660,7 +538,7 @@ programmer parent "2232h" # 2232hio # Tigard - FT2232H based multi-protocol tool for hardware hacking # https://github.com/tigard-tools/tigard -programmer parent "2232h" # tigard +programmer parent "ft2232h" id = "tigard"; desc = "Tigard interface board"; usbdev = "B"; @@ -668,54 +546,14 @@ programmer parent "2232h" # tigard reset = 5; # BD5 (GPIOL1) ; -#------------------------------------------------------------ -# avrisp-u -#------------------------------------------------------------ - -# Kanda's low cost FT2232H based programmer. Uses a different reset pin. -# Adds a buffer and a LED indicating that the programming is in progress. -# https://www.kanda.com/products/Kanda/AVRISP-U.html - -programmer parent "2232h" # avrisp-u - id = "avrisp-u"; - desc = "Kanda AVRISP-U"; - usbsn = "AVR"; - buff = ~5; - reset = 4; - pgmled = ~10; -; - -#------------------------------------------------------------ -# ft2232h_jtag -#------------------------------------------------------------ - -# Here a FTDI ft2232h chip is used for JTAG programming. - -programmer # ft2232h_jtag - id = "ft2232h_jtag"; - desc = "FT2232H based generic JTAG programmer"; - type = "avrftdi_jtag"; - prog_modes = PM_JTAG; - extra_features = HAS_BITCLOCK_ADJ; - connection_type = usb; - usbvid = 0x0403; - usbpid = 0x6010; - usbdev = "A"; -# JTAG-signals - lower ADBUS-Nibble (default) - tck = 0; # AD0 (TCK) - tdi = 1; # AD1 (TDI) - tdo = 2; # AD2 (TDO) - tms = 3; # AD3 (TMS) -; - #------------------------------------------------------------ # ft4232h #------------------------------------------------------------ -# The FT4232H can be treated as FT2232H but with a different USB -# device ID of 0x6011 +#The FT4232H can be treated as FT2232H, but it has a different USB +#device ID of 0x6011. -programmer parent "ft2232h" # ft4232h +programmer parent "ft2232h" id = "ft4232h"; desc = "FT4232H based generic programmer"; usbpid = 0x6011; @@ -725,22 +563,19 @@ programmer parent "ft2232h" # ft4232h # 4232h #------------------------------------------------------------ -programmer parent "2232h" # 4232h +programmer parent "ft4232h" id = "4232h"; - desc = "FT4232H based generic programmer"; - usbpid = 0x6011; ; #------------------------------------------------------------ # jtagkey #------------------------------------------------------------ -programmer # jtagkey +programmer id = "jtagkey"; - desc = "Amontec JTAGKey/JTAGKey-Tiny/JTAGKey2"; + desc = "Amontec JTAGKey, JTAGKey-Tiny and JTAGKey2"; type = "avrftdi"; prog_modes = PM_TPI | PM_ISP; - extra_features = HAS_BITCLOCK_ADJ; connection_type = usb; usbvid = 0x0403; # Note: This PID is used in all JTAGKey variants @@ -748,26 +583,24 @@ programmer # jtagkey usbdev = "A"; buff = ~4; # ISP-signals => 20 - Pin connector on JTAGKey -# The colours are on the 20 pin breakout cable from Amontec reset = 3; # TMS 7 violet sck = 0; # TCK 9 white sdo = 1; # TDI 5 green sdi = 2; # TDO 13 orange # VTG VREF 1 brown with red tip # GND GND 20 black +# The colors are on the 20 pin breakout cable from Amontec ; #------------------------------------------------------------ # ft232h #------------------------------------------------------------ -programmer # ft232h +programmer id = "ft232h"; desc = "FT232H based generic programmer"; type = "avrftdi"; prog_modes = PM_TPI | PM_ISP; - is_serialadapter = yes; - extra_features = HAS_BITCLOCK_ADJ; connection_type = usb; usbvid = 0x0403; usbpid = 0x6014; @@ -779,27 +612,6 @@ programmer # ft232h sdi = 2; # AD2 (TDO) ; -#------------------------------------------------------------ -# ft232h_jtag -#------------------------------------------------------------ - -programmer # ft232h_jtag - id = "ft232h_jtag"; - desc = "FT232H based generic JTAG programmer"; - type = "avrftdi_jtag"; - prog_modes = PM_JTAG; - extra_features = HAS_BITCLOCK_ADJ; - connection_type = usb; - usbvid = 0x0403; - usbpid = 0x6014; - usbdev = "A"; -# JTAG-signals - tck = 0; # AD0 (TCK) - tdi = 1; # AD1 (TDI) - tdo = 2; # AD2 (TDO) - tms = 3; # AD3 (TMS) -; - #------------------------------------------------------------ # um232h #------------------------------------------------------------ @@ -810,12 +622,11 @@ programmer # ft232h_jtag # Pin J2-10 (AD3) is RESET # Pin J2-6 is GND # Use the -b flag to set the SPI clock rate eg -b 3750000 is the fastest I could get -# a 16 MHz Atmega1280 to program reliably. The 232H is conveniently 5 V tolerant. +# a 16MHz Atmega1280 to program reliably. The 232H is conveniently 5V tolerant. -programmer parent "ft232h" # um232h +programmer parent "ft232h" id = "um232h"; desc = "UM232H module from FTDI"; - is_serialadapter = no; ; #------------------------------------------------------------ @@ -828,9 +639,9 @@ programmer parent "ft232h" # um232h # Brown (Pin 5) is RESET # Black (Pin 10) is GND # Use the -b flag to set the SPI clock rate eg -b 3750000 is the fastest I could get -# a 16 MHz Atmega1280 to program reliably. The 232H is conveniently 5 V tolerant. +# a 16MHz Atmega1280 to program reliably. The 232H is conveniently 5V tolerant. -programmer parent "um232h" # c232hm +programmer parent "ft232h" id = "c232hm"; desc = "C232HM cable from FTDI"; ; @@ -839,15 +650,23 @@ programmer parent "um232h" # c232hm # o-link #------------------------------------------------------------ -# On the adapter you can read "O-Link". On the PCB is printed "OpenJTAG v3.1". -# You can find it as "OpenJTAG ARM JTAG USB" in the internet. Note there are also -# several projects called Open JTAG, which are completely different. Some other -# sources call it O-Link or just have a look at ebay ... It is basically the same -# entry as jtagkey with different usb ids. See www.100ask.net - -programmer parent "jtagkey" # o-link +# On the adapter you can read "O-Link". On the PCB is printed "OpenJTAG v3.1" +# You can find it as "OpenJTAG ARM JTAG USB" in the internet. +# (But there are also several projects called Open JTAG, eg. +# http://www.openjtag.org, which are completely different.) +# http://www.100ask.net/shop/english.html (website seems to be outdated) +# http://item.taobao.com/item.htm?id=1559277013 +# http://www.micro4you.com/store/openjtag-arm-jtag-usb.html (schematics!) +# some other sources which call it O-Link +# http://www.andahammer.com/olink/ +# http://www.developmentboard.net/31-o-link-debugger.html +# http://armwerks.com/catalog/o-link-debugger-copy/ +# or just have a look at ebay ... +# It is basically the same entry as jtagkey with different usb ids. + +programmer parent "jtagkey" id = "o-link"; - desc = "O-Link, OpenJTAG ARM JTAG USB"; + desc = "O-Link, OpenJTAG from www.100ask.net"; usbvid = 0x1457; usbpid = 0x5118; usbvendor = "www.100ask.net"; @@ -860,13 +679,11 @@ programmer parent "jtagkey" # o-link # http://wiki.openmoko.org/wiki/Debug_Board_v3 -programmer # openmoko +programmer id = "openmoko"; desc = "Openmoko debug board (v3)"; type = "avrftdi"; prog_modes = PM_TPI | PM_ISP; - extra_features = HAS_BITCLOCK_ADJ; - connection_type = usb; usbvid = 0x1457; usbpid = 0x5118; usbdev = "A"; @@ -883,12 +700,11 @@ programmer # openmoko # Only Rev. A boards. # Schematic and user manual: http://www.cs.put.poznan.pl/wswitala/download/pdf/811EVBK.pdf -programmer # lm3s811 +programmer id = "lm3s811"; desc = "Luminary Micro LM3S811 Eval Board (Rev. A)"; type = "avrftdi"; prog_modes = PM_TPI | PM_ISP; - extra_features = HAS_BITCLOCK_ADJ; connection_type = usb; usbvid = 0x0403; usbpid = 0xbcd9; @@ -908,38 +724,22 @@ programmer # lm3s811 # tumpa #------------------------------------------------------------ -# First SPI connector -# User manual: https://www.tiaowiki.com/w/TIAO_USB_Multi_Protocol_Adapter_User%27s_Manual +# submitted as bug #46020 -programmer parent "2232h" # tumpa +programmer id = "tumpa"; desc = "TIAO USB Multi-Protocol Adapter"; + type = "avrftdi"; + prog_modes = PM_TPI | PM_ISP; + connection_type = usb; + usbvid = 0x0403; usbpid = 0x8a98; + usbdev = "A"; usbvendor = "TIAO"; -; - -#------------------------------------------------------------ -# tumpa-b -#------------------------------------------------------------ - -# Second SPI connector - -programmer parent "tumpa" # tumpa-b - id = "tumpa-b"; - usbdev = "B"; -; - -#------------------------------------------------------------ -# tumpa_jtag -#------------------------------------------------------------ - -programmer parent "ft2232h_jtag" # tumpa_jtag - id = "tumpa_jtag"; - desc = "TIAO USB Multi-Protocol Adapter in JTAG mode"; - usbpid = 0x8a98; - usbvendor = "TIAO"; - buff = ~11; - reset = 4; # RST AD4 (Pin 15) + reset = 3; # TMS 7 + sck = 0; # TCK 9 + sdo = 1; # TDI 5 + sdi = 2; # TDO 13 ; #------------------------------------------------------------ @@ -949,30 +749,25 @@ programmer parent "ft2232h_jtag" # tumpa_jtag # Kristech KT-LINK FT2232H interface with IO switching and voltage buffers. # Created on 20220410 by CeDeROM Tomasz CEDRO (www.cederom.io). # Interface DataSheet: https://kristech.pl/files/KT-LINK-UM-ENG.pdf -# # AVRDUDE FT2232H PIN NUMBER DECODE: # | 0 | 1 | .. | 7 | 8 | 9 | .. | 15 | # | ADBUS0 | ADBUS1 | .. | ADBUS7 | ACBUS0 | ACBUS1 | .. | ACBUS7 | -# # KT-LINK JTAG CONN: # 1=Vsense(->EXT13), 19=5V(EXT1->EXT3), 20=GND, 3=TPIRST, 9=TPICLK, 7=TPIDATA. -# # INTERNALS CONFIGURATION ("~" MEANS ACTIVE LOW): # ~TRST_EN=10(ACBUS2), ~CLK_EN=14(ACBUS6), ~SDO_EN=13(ACBUS5), # TMS_SEL=5(ADBUS5), ~TMS_EN=12(ACBUS4), LED=~15(ACBUS7). -# # CONNECTION NOTES: # * Connect EXT connector pin 1 with 3 to get 5V on JTAG connector pin 19. # * Connect JTAG connector pin 1 to 5V (i.e. EXT pin 13 or JTAG pin 19). # * For TPI connection use resistors: TDO --[470R]-- TPIDATA --[470R]-- TDI. # * Powering target from JTAG pin 19 allows KT-LINK current measurement. -programmer # ktlink +programmer id = "ktlink"; - desc = "KT-LINK FT2232H: IO switching, voltage buffers"; + desc = "KT-LINK FT2232H interface with IO switching and voltage buffers."; type = "avrftdi"; prog_modes = PM_TPI | PM_ISP; - extra_features = HAS_BITCLOCK_ADJ; connection_type = usb; usbvid = 0x0403; usbpid = 0xbbe2; @@ -992,12 +787,10 @@ programmer # ktlink # Digilent JTAG HS2 programmer. FT232H-based dongle with buffers. # https://digilent.com/reference/_media/reference/programmers/jtag-hs2/jtag-hs2_rm.pdf -programmer # digilent-hs2 +programmer id = "digilent-hs2"; - desc = "Digilent JTAG HS2 (MPSSE)"; + desc = "Digilient JTAG HS2 (MPSSE)"; type = "avrftdi"; - prog_modes = PM_TPI | PM_ISP; - extra_features = HAS_BITCLOCK_ADJ; connection_type = usb; usbvid = 0x0403; usbpid = 0x6014; @@ -1009,46 +802,11 @@ programmer # digilent-hs2 sdi = 2; ; -#------------------------------------------------------------ -# flyswatter2 -#------------------------------------------------------------ - -# FT2232H based JTAG programmer. Requires a buff pin to be set. -# https://www.tincantools.com/flyswatter2 - -programmer # flyswatter2 - id = "flyswatter2"; - desc = "TinCan Tools Flyswatter 2"; - type = "avrftdi"; - prog_modes = PM_TPI | PM_ISP; - extra_features = HAS_BITCLOCK_ADJ; - connection_type = usb; - usbvid = 0x0403; - usbpid = 0x6010; - usbdev = "A"; - usbvendor = "TinCanTools"; - usbproduct = "Flyswatter2"; - buff = ~6; - reset = 3; - sck = 0; - sdo = 1; - sdi = 2; - rdyled = ~11; - pgmled = ~12; -; - #------------------------------------------------------------ # serialupdi #------------------------------------------------------------ -# The SerialUPDI programmer implementation is based on the -# Microchip pymcuprog utility. In a nutshell, this programmer -# consists of simple USB->UART adapter, diode and couple of -# resistors. It uses serial connection to provide UPDI interface. -# See https://github.com/microchip-pic-avr-tools/pymcuprog -# for details. - -programmer # serialupdi +programmer id = "serialupdi"; desc = "SerialUPDI"; type = "serialupdi"; @@ -1057,37 +815,15 @@ programmer # serialupdi hvupdi_support = 1; ; -#------------------------------------------------------------ -# serprog -#------------------------------------------------------------ - -# The Serprog programmer implementation allows programming -# with programmers using the serprog protocol from flashrom. -# See https://flashrom.org/supported_hw/supported_prog/serprog/overview.html -# and https://flashrom.org/supported_hw/supported_prog/serprog/serprog-protocol.html -# for details. - -programmer # serprog - id = "serprog"; - desc = "Program via the Serprog protocol from Flashrom"; - type = "serprog"; - prog_modes = PM_ISP; - extra_features = HAS_BITCLOCK_ADJ; - connection_type = serial; -; - #------------------------------------------------------------ # avrisp #------------------------------------------------------------ -# The original RS232 based Atmel AVR ISP programmer - -programmer # avrisp +programmer id = "avrisp"; - desc = "Serial Atmel AVR ISP using STK500"; + desc = "Atmel AVR ISP"; type = "stk500"; prog_modes = PM_ISP; - extra_features = HAS_BITCLOCK_ADJ; connection_type = serial; ; @@ -1095,12 +831,11 @@ programmer # avrisp # avrispv2 #------------------------------------------------------------ -programmer # avrispv2 +programmer id = "avrispv2"; - desc = "Serial Atmel AVR ISP using STK500v2"; + desc = "Atmel AVR ISP v2"; type = "stk500v2"; - prog_modes = PM_TPI | PM_ISP; - extra_features = HAS_BITCLOCK_ADJ; + prog_modes = PM_TPI | PM_ISP | PM_PDI; connection_type = serial; ; @@ -1108,47 +843,31 @@ programmer # avrispv2 # avrispmkII #------------------------------------------------------------ -# Atmel AVR ISP mkII programmer. See -# https://www.microchip.com/en-us/development-tool/atavrisp2 -# for details. - -programmer # avrispmkII - id = "avrispmkII", "avrisp2"; - desc = "USB Atmel AVR ISP mkII"; +programmer + id = "avrispmkII"; + desc = "Atmel AVR ISP mkII"; type = "stk500v2"; prog_modes = PM_TPI | PM_ISP | PM_PDI; - extra_features = HAS_VTARG_READ | HAS_BITCLOCK_ADJ; connection_type = usb; - usbvid = 0x03eb; - usbpid = 0x2104; +; + +#------------------------------------------------------------ +# avrisp2 +#------------------------------------------------------------ + +programmer parent "avrispmkII" + id = "avrisp2"; ; #------------------------------------------------------------ # buspirate #------------------------------------------------------------ -# Bus Pirate in AVR programming mode (hardware v3 and v4). -# See http://dangerousprototypes.com/docs/Bus_Pirate -# for details. -# -# PIN ISP -# > 1 GND -# 2 (3.3V) -# 3 (5.0V) -# 4 -# 5 -# 6 (XTAL1) -# 7 SCK -# 8 SDO -# 9 RST -# 10 SDI - -programmer # buspirate +programmer id = "buspirate"; - desc = "The Bus Pirate in AVR programming mode"; + desc = "The Bus Pirate"; type = "buspirate"; prog_modes = PM_ISP; - extra_features = HAS_BITCLOCK_ADJ; connection_type = serial; ; @@ -1156,11 +875,9 @@ programmer # buspirate # buspirate_bb #------------------------------------------------------------ -# Bus pirate in bit banging mode (hardware v3 and v4). - -programmer # buspirate_bb +programmer id = "buspirate_bb"; - desc = "The Bus Pirate in bitbang mode"; + desc = "The Bus Pirate (bitbang interface, supports TPI)"; type = "buspirate_bb"; prog_modes = PM_TPI | PM_ISP; connection_type = serial; @@ -1182,12 +899,11 @@ programmer # buspirate_bb # by probing for it. Better use one of the entries # below instead. -programmer # stk500 +programmer id = "stk500"; - desc = "Atmel STK500 (probes v2 first then v1)"; + desc = "Atmel STK500"; type = "stk500generic"; prog_modes = PM_ISP; - extra_features = HAS_VTARG_ADJ | HAS_VTARG_READ | HAS_FOSC_ADJ | HAS_VAREF_ADJ | HAS_BITCLOCK_ADJ; connection_type = serial; ; @@ -1195,52 +911,23 @@ programmer # stk500 # stk500v1 #------------------------------------------------------------ -# The original STK500 protocol. Used by the Arduino as ISP -# programmer and various bootloaders. -# See AVR061 for details. - -programmer # stk500v1 +programmer id = "stk500v1"; - desc = "Atmel STK500 v1"; - type = "stk500"; - prog_modes = PM_ISP; - extra_features = HAS_VTARG_ADJ | HAS_VTARG_READ | HAS_FOSC_ADJ | HAS_VAREF_ADJ | HAS_BITCLOCK_ADJ; - connection_type = serial; -; - -#------------------------------------------------------------ -# arduino_as_isp -#------------------------------------------------------------ - -# Not to be confused with arduinoISP, this is the same as `-c stk500v1` -# but treats EEPROM r/w correctly for arduino_as_isp programmers -# See https://docs.arduino.cc/built-in-examples/arduino-isp/ArduinoISP/ -# for details. - -programmer # arduino_as_isp - id = "arduino_as_isp"; - desc = "AVR as programmer with Arduino-as-ISP FW"; + desc = "Atmel STK500 version 1.x firmware"; type = "stk500"; prog_modes = PM_ISP; connection_type = serial; - baudrate = 19200; ; #------------------------------------------------------------ # mib510 #------------------------------------------------------------ -# The MIB510 is a serial gateway that can program AVRs over -# ISP or TPI using the stk500v1 protocol. See -# http://www.cmt-gmbh.de/Produkte/WirelessSensorNetworks/MIB510.html -# for details. - -programmer # mib510 +programmer id = "mib510"; desc = "Crossbow MIB510 programming board"; type = "stk500"; prog_modes = PM_TPI | PM_ISP; - extra_features = HAS_BITCLOCK_ADJ; connection_type = serial; ; @@ -1248,14 +935,11 @@ programmer # mib510 # stk500v2 #------------------------------------------------------------ -# Version 2 of the STK500 protocol. See AVR068 for details. - -programmer # stk500v2 - id = "stk500v2", "scratchmonkey"; - desc = "Atmel STK500 v2"; +programmer + id = "stk500v2"; + desc = "Atmel STK500 version 2.x firmware"; type = "stk500v2"; prog_modes = PM_TPI | PM_ISP; - extra_features = HAS_VTARG_ADJ | HAS_VTARG_READ | HAS_FOSC_ADJ | HAS_VAREF_ADJ | HAS_BITCLOCK_ADJ; connection_type = serial; ; @@ -1263,12 +947,11 @@ programmer # stk500v2 # stk500pp #------------------------------------------------------------ -programmer # stk500pp - id = "stk500pp", "scratchmonkey_pp"; +programmer + id = "stk500pp"; desc = "Atmel STK500 v2 in parallel programming mode"; type = "stk500pp"; prog_modes = PM_HVPP; - extra_features = HAS_VTARG_ADJ | HAS_VTARG_READ | HAS_FOSC_ADJ | HAS_VAREF_ADJ | HAS_BITCLOCK_ADJ; connection_type = serial; ; @@ -1276,12 +959,11 @@ programmer # stk500pp # stk500hvsp #------------------------------------------------------------ -programmer # stk500hvsp - id = "stk500hvsp", "scratchmonkey_hvsp"; - desc = "Atmel STK500 v2 in HV serial programming mode"; +programmer + id = "stk500hvsp"; + desc = "Atmel STK500 v2 in high-voltage serial programming mode"; type = "stk500hvsp"; prog_modes = PM_HVSP; - extra_features = HAS_VTARG_ADJ | HAS_VTARG_READ | HAS_FOSC_ADJ | HAS_VAREF_ADJ | HAS_BITCLOCK_ADJ; connection_type = serial; ; @@ -1289,59 +971,43 @@ programmer # stk500hvsp # stk600 #------------------------------------------------------------ -# STK600 development board. See -# https://www.microchip.com/en-us/development-tool/atstk600 -# and AVR079 for details. - -programmer # stk600 +programmer id = "stk600"; desc = "Atmel STK600"; type = "stk600"; prog_modes = PM_TPI | PM_ISP | PM_PDI; - extra_features = HAS_VTARG_ADJ | HAS_VTARG_READ | HAS_FOSC_ADJ | HAS_VAREF_ADJ | HAS_BITCLOCK_ADJ; connection_type = usb; - usbvid = 0x03eb; - usbpid = 0x2106; ; #------------------------------------------------------------ # stk600pp #------------------------------------------------------------ -programmer # stk600pp +programmer id = "stk600pp"; desc = "Atmel STK600 in parallel programming mode"; type = "stk600pp"; prog_modes = PM_HVPP; - extra_features = HAS_VTARG_ADJ | HAS_VTARG_READ | HAS_FOSC_ADJ | HAS_VAREF_ADJ | HAS_BITCLOCK_ADJ; connection_type = usb; - usbvid = 0x03eb; - usbpid = 0x2106; ; #------------------------------------------------------------ # stk600hvsp #------------------------------------------------------------ -programmer # stk600hvsp +programmer id = "stk600hvsp"; - desc = "Atmel STK600 in HV serial programming mode"; + desc = "Atmel STK600 in high-voltage serial programming mode"; type = "stk600hvsp"; prog_modes = PM_HVSP; - extra_features = HAS_VTARG_ADJ | HAS_VTARG_READ | HAS_FOSC_ADJ | HAS_VAREF_ADJ | HAS_BITCLOCK_ADJ; connection_type = usb; - usbvid = 0x03eb; - usbpid = 0x2106; ; #------------------------------------------------------------ # avr910 #------------------------------------------------------------ -# The AVR910 is a programmer implementation based on the -# AVR910 application note. - -programmer # avr910 +programmer id = "avr910"; desc = "Atmel Low Cost Serial Programmer"; type = "avr910"; @@ -1353,21 +1019,12 @@ programmer # avr910 # ft245r #------------------------------------------------------------ -# Ftdi_syncbb-type programmers utilise FTDI chips for programming -# in a bit-banging mode. In contrast to avrftdi-type programmers, -# the pin mapping to the main ISP signals (reset, sck, sdo, sdi) is -# somewhat arbitrary and will be determined by the actual routing -# of the FTDI IC pins to the ISP header of the physical programmer. - -programmer # ft245r +programmer id = "ft245r"; desc = "FT245R based generic programmer"; type = "ftdi_syncbb"; prog_modes = PM_TPI | PM_ISP; - extra_features = HAS_BITCLOCK_ADJ; connection_type = usb; - usbvid = 0x0403; - usbpid = 0x6001; reset = 4; # D4 sck = 0; # D0 sdo = 2; # D2 @@ -1378,16 +1035,12 @@ programmer # ft245r # ft232r #------------------------------------------------------------ -programmer # ft232r +programmer id = "ft232r"; desc = "FT232R based generic programmer"; type = "ftdi_syncbb"; prog_modes = PM_TPI | PM_ISP; - is_serialadapter = yes; - extra_features = HAS_BITCLOCK_ADJ; connection_type = usb; - usbvid = 0x0403; # For use as serial adapter - usbpid = 0x6001; # " reset = 4; # DTR sck = 0; # TxD sdo = 2; # RTS @@ -1400,15 +1053,12 @@ programmer # ft232r # see http://www.bitwizard.nl/wiki/index.php/FTDI_ATmega -programmer # bwmega +programmer id = "bwmega"; desc = "BitWizard ftdi_atmega builtin programmer"; type = "ftdi_syncbb"; prog_modes = PM_TPI | PM_ISP; - extra_features = HAS_BITCLOCK_ADJ; connection_type = usb; - usbvid = 0x0403; - usbpid = 0x6001; reset = 7; # RI sck = 6; # DCD sdo = 3; # CTS @@ -1419,22 +1069,15 @@ programmer # bwmega # arduino-ft232r #------------------------------------------------------------ -# This programmer helps programming the Arduino Diecimila, NG and -# Duemilanove (but not the Uno) without bootloader or external -# programmer using the on-board FT232RL chip. Instructions here: -# https://make.kosakalab.com/arduino/bootloader/index_en.html -# Note that the -c diecimila avrdude.conf entry mentioned in above post -# is the same as the -c arduino-ft232r entry here. +# see http://www.geocities.jp/arduino_diecimila/bootloader/index_en.html +# Note: pins are numbered from 1! -programmer # arduino-ft232r - id = "arduino-ft232r", "diecimila"; +programmer + id = "arduino-ft232r"; desc = "Arduino: FT232R connected to ISP"; type = "ftdi_syncbb"; prog_modes = PM_TPI | PM_ISP; - extra_features = HAS_BITCLOCK_ADJ; connection_type = usb; - usbvid = 0x0403; - usbpid = 0x6001; reset = 7; # RI X3(4) sck = 5; # DSR X3(2) sdo = 6; # DCD X3(3) @@ -1445,18 +1088,12 @@ programmer # arduino-ft232r # tc2030 #------------------------------------------------------------ -# See https://www.tag-connect.com/product-category/products/cables/ftdi -# for details. - -programmer # tc2030 +programmer id = "tc2030"; desc = "Tag-Connect TC2030"; type = "ftdi_syncbb"; prog_modes = PM_TPI | PM_ISP; - extra_features = HAS_BITCLOCK_ADJ; connection_type = usb; - usbvid = 0x0403; - usbpid = 0x6001; # FOR TPI devices: reset = 3; # CTS = D3 (wire to ~RESET) sck = 2; # RTS = D2 (wire to SCK) @@ -1464,6 +1101,17 @@ programmer # tc2030 sdi = 1; # RxD = D1 (wire to TPIDATA directly) ; +#------------------------------------------------------------ +# diecimila +#------------------------------------------------------------ + +# website mentioned above uses this id + +programmer parent "arduino-ft232r" + id = "diecimila"; + desc = "alias for arduino-ft232r"; +; + #------------------------------------------------------------ # uncompatino #------------------------------------------------------------ @@ -1475,15 +1123,12 @@ programmer # tc2030 # http://akizukidenshi.com/catalog/g/gP-07487/ # http://akizukidenshi.com/download/ds/akizuki/k6096_manual_20130816.pdf -programmer # uncompatino +programmer id = "uncompatino"; desc = "uncompatino with all pairs of pins shorted"; type = "ftdi_syncbb"; prog_modes = PM_TPI | PM_ISP; - extra_features = HAS_BITCLOCK_ADJ; connection_type = usb; - usbvid = 0x0403; - usbpid = 0x6001; reset = 7; # ri sck = 5; # dsr sdo = 6; # dcd @@ -1495,10 +1140,9 @@ programmer # uncompatino #------------------------------------------------------------ # FTDI USB to serial cable TTL-232R-5V with a custom adapter for ICSP -# - https://ftdichip.com/product-category/products/cables/usb-ttl-serial-cable-series/ -# - http://www.ftdichip.com/Support/Documents/DataSheets/Cables/DS_TTL-232R_CABLES.pdf -# -# For ICSP pinout see, e.g., http://ww1.microchip.com/downloads/en/DeviceDoc/doc2562.pdf +# http://www.ftdichip.com/Products/Cables/USBTTLSerial.htm +# http://www.ftdichip.com/Support/Documents/DataSheets/Cables/DS_TTL-232R_CABLES.pdf +# For ICSP pinout see for example http://www.atmel.com/images/doc2562.pdf # (Figure 1. ISP6PIN header pinout and Table 1. Connections required for ISP ...) # TTL-232R GND 1 Black -> ICPS GND (pin 6) # TTL-232R CTS 2 Brown -> ICPS SDO (pin 4) @@ -1506,19 +1150,15 @@ programmer # uncompatino # TTL-232R TXD 4 Orange -> ICPS RESET (pin 5) # TTL-232R RXD 5 Yellow -> ICPS SCK (pin 3) # TTL-232R RTS 6 Green -> ICPS SDI (pin 1) -# -# Except for VCC and GND, you can connect arbitrary pairs as long as the -# following table is adjusted. +# Except for VCC and GND, you can connect arbitual pairs as long as +# the following table is adjusted. -programmer # ttl232r +programmer id = "ttl232r"; desc = "FTDI TTL232R-5V with ICSP adapter"; type = "ftdi_syncbb"; prog_modes = PM_TPI | PM_ISP; - extra_features = HAS_BITCLOCK_ADJ; connection_type = usb; - usbvid = 0x0403; - usbpid = 0x6001; reset = 0; # txd sck = 1; # rxd sdo = 3; # cts @@ -1529,60 +1169,40 @@ programmer # ttl232r # usbasp #------------------------------------------------------------ -# From http://www.fischl.de/usbasp -# USBasp is a USB in-circuit programmer for Atmel AVR controllers. It -# simply consists of an ATmega88 or an ATmega8 and a couple of passive -# components. The programmer uses a firmware-only USB driver, no -# special USB controller is needed. -# -# Firmware, schematics and drivers are available under above URL, too. -# -# Alternative firmware for the external programmer: -# -# - https://github.com/mariusgreuel/USBasp -# Windows OS descriptor to load WinUSB driver automatically -# -# - https://github.com/nerdralph/usbasp -# WCID compliant, meaning it should work on Windows without any -# driver or .inf install; default SCK clock of 1.5 MHz and automatic -# SCK slowing if target does not respond; PORTD is left as input, so -# this firmware also works with USBISP modules, eg, -# https://www.sciencetronics.com/greenphotons/?p=938 -# -# - https://github.com/dioannidis/usbasp -# As above plus HID UART support, setting unique serial number and -# AT89S51/AT89S52 support - -programmer # usbasp +programmer id = "usbasp"; - desc = "USBasp ISP and TPI programmer"; + desc = "USBasp, http://www.fischl.de/usbasp/"; type = "usbasp"; prog_modes = PM_TPI | PM_ISP; - extra_features = HAS_BITCLOCK_ADJ; connection_type = usb; usbvid = 0x16c0; # VOTI usbpid = 0x05dc; # Obdev's free shared PID usbvendor = "www.fischl.de"; usbproduct = "USBasp"; - # Old usbasp from fischl.de: + # following variants are autodetected for id "usbasp" + + # original usbasp from fischl.de + # see above "usbasp" + + # old usbasp from fischl.de # usbvid = 0x03EB; # ATMEL # usbpid = 0xC7B4; # (unoffical) USBasp # usbvendor = "www.fischl.de"; # usbproduct = "USBasp"; + + # NIBObee (only if -P nibobee is given on command line) + # see below "nibobee" ; #------------------------------------------------------------ # nibobee #------------------------------------------------------------ -# http://www.nicai-systems.com/en/nibobee - -programmer # nibobee +programmer id = "nibobee"; desc = "NIBObee"; type = "usbasp"; prog_modes = PM_TPI | PM_ISP; - extra_features = HAS_BITCLOCK_ADJ; connection_type = usb; usbvid = 0x16c0; # VOTI usbpid = 0x092f; # NIBObee PID @@ -1594,12 +1214,11 @@ programmer # nibobee # usbasp-clone #------------------------------------------------------------ -programmer # usbasp-clone +programmer id = "usbasp-clone"; desc = "Any usbasp clone with correct VID/PID"; type = "usbasp"; prog_modes = PM_TPI | PM_ISP; - extra_features = HAS_BITCLOCK_ADJ; connection_type = usb; usbvid = 0x16c0; # VOTI usbpid = 0x05dc; # Obdev's free shared PID @@ -1609,19 +1228,16 @@ programmer # usbasp-clone # usbtiny #------------------------------------------------------------ -# https://learn.adafruit.com/usbtinyisp -# -# The ISP USBtiny programmer can also be used for TPI programming. +# USBtiny can also be used for TPI programming. # In that case, a resistor of 1 kOhm is needed between SDI and SDO # pins of the connector, and SDI (pin 1 of the 6-pin connector) # connects to TPIDATA. -programmer # usbtiny +programmer id = "usbtiny"; - desc = "USBtiny simple USB programmer"; + desc = "USBtiny simple USB programmer, https://learn.adafruit.com/usbtinyisp"; type = "usbtiny"; prog_modes = PM_TPI | PM_ISP; - extra_features = HAS_BITCLOCK_ADJ; connection_type = usb; usbvid = 0x1781; usbpid = 0x0c9f; @@ -1633,7 +1249,7 @@ programmer # usbtiny # https://github.com/arduino/ArduinoCore-avr/tree/master/bootloaders/gemma -programmer # arduino_gemma +programmer id = "arduino_gemma"; desc = "Arduino Gemma bootloader disguised as USBtiny"; type = "usbtiny"; @@ -1649,9 +1265,9 @@ programmer # arduino_gemma # https://github.com/adafruit/Adafruit-Trinket-Gemma-Bootloader -programmer # adafruit_gemma +programmer id = "adafruit_gemma"; - desc = "Trinket Gemma bootloader disguised as USBtiny"; + desc = "Adafruit Trinket Gemma bootloader disguised as USBtiny"; type = "usbtiny"; prog_modes = PM_SPM; connection_type = usb; @@ -1663,15 +1279,11 @@ programmer # adafruit_gemma # arduinoisp #------------------------------------------------------------ -# Arduino LLC branded USBtiny programmer -# https://docs.arduino.cc/retired/boards/arduino-isp/ - -programmer # arduinoisp +programmer id = "arduinoisp"; - desc = "Arduino-branded USBtiny ISP Programmer"; + desc = "Arduino ISP Programmer"; type = "usbtiny"; prog_modes = PM_TPI | PM_ISP; - extra_features = HAS_BITCLOCK_ADJ; connection_type = usb; usbvid = 0x2341; usbpid = 0x0049; @@ -1681,15 +1293,11 @@ programmer # arduinoisp # arduinoisporg #------------------------------------------------------------ -# Identical to the Arduino LLC branded USBtiny programmer, -# but with a different USB VID. - -programmer # arduinoisporg +programmer id = "arduinoisporg"; - desc = "Arduino-branded USBtiny ISP Programmer"; + desc = "Arduino ISP Programmer"; type = "usbtiny"; prog_modes = PM_TPI | PM_ISP; - extra_features = HAS_BITCLOCK_ADJ; connection_type = usb; usbvid = 0x2a03; usbpid = 0x0049; @@ -1699,15 +1307,13 @@ programmer # arduinoisporg # ehajo-isp #------------------------------------------------------------ -# Commercial version of USBtiny using a separate VID/PID from -# http://www.eHaJo.de (closed from end of 2023) +# commercial version of USBtiny, using a separate VID/PID -programmer # ehajo-isp +programmer id = "ehajo-isp"; - desc = "AVR ISP programmer from eHaJo.de"; + desc = "avr-isp-programmer from eHaJo, http://www.eHaJo.de"; type = "usbtiny"; prog_modes = PM_TPI | PM_ISP; - extra_features = HAS_BITCLOCK_ADJ; connection_type = usb; usbvid = 0x16d0; usbpid = 0x0ba5; @@ -1717,17 +1323,14 @@ programmer # ehajo-isp # iseavrprog #------------------------------------------------------------ -# Commercial version of USBtiny using a separate VID/PID from -# https://iascaled.com -# +# commercial version of USBtiny, using a separate VID/PID # https://github.com/IowaScaledEngineering/ckt-avrprogrammer -programmer # iseavrprog +programmer id = "iseavrprog"; - desc = "AVR ISP programmer from iascaled.com"; + desc = "USBtiny-based programmer, https://iascaled.com"; type = "usbtiny"; prog_modes = PM_TPI | PM_ISP; - extra_features = HAS_BITCLOCK_ADJ; connection_type = usb; usbvid = 0x1209; usbpid = 0x6570; @@ -1737,15 +1340,9 @@ programmer # iseavrprog # micronucleus #------------------------------------------------------------ -# Micronucleus is a bootloader designed for AVR ATtiny -# microcontrollers with a minimal usb interface and a -# strong emphasis on bootloader compactness. See -# https://github.com/micronucleus/micronucleus -# for details. - -programmer # micronucleus +programmer id = "micronucleus"; - desc = "Micronucleus bootloader"; + desc = "Micronucleus for bootloader"; type = "micronucleus"; prog_modes = PM_SPM; connection_type = usb; @@ -1757,13 +1354,9 @@ programmer # micronucleus # teensy #------------------------------------------------------------ -# Proprietary bootloader used on the AVR based PJRC Teensy boards. -# Can only write to memory, not read/verify. -# See https://www.pjrc.com/teensy/ for details. - -programmer # teensy +programmer id = "teensy"; - desc = "Teensy bootloader"; + desc = "Teensy for bootloader"; type = "teensy"; prog_modes = PM_SPM; connection_type = usb; @@ -1772,110 +1365,93 @@ programmer # teensy ; #------------------------------------------------------------ -# ch341a +# butterfly #------------------------------------------------------------ -# Allows programming of AVR parts with F_CPU of min 6.8 MHz with the -# CH341A chip http://www.wch-ic.com/downloads/CH341DS1_PDF.html -# -# See also: -# https://www.onetransistor.eu/2017/08/ch341a-mini-programmer-schematic.html -# -# Connection scheme: -# CH341A chip -- AVR ISP Connector -# ~CTS/D0/CS0 -- RESET (can be D1 or D2, see reset setting below) -# ~DCD/D3/DCK -- SCK -# ~DTR/D5/DOUT -- SDO -# ~SLP/D7/DIN -- SDI -# GND -- GND -# 5V -- Vcc/Vin (or disconnect if separately powered) - -programmer # ch341a - id = "ch341a"; - desc = "CH341A programmer: note AVR F_CPU > 6.8 MHz"; - type = "ch341a"; - prog_modes = PM_ISP; - is_serialadapter = yes; - connection_type = usb; - usbvid = 0x1a86; - usbpid = 0x5512; - usbvendor = "wch.cn"; - usbproduct = "CH341A"; - reset = 0; # Can be 0, 1 or 2 for CS0, CS1 or CS2 +programmer + id = "butterfly"; + desc = "Atmel for bootloader (Butterfly Development Board)"; + type = "butterfly"; + prog_modes = PM_SPM; + connection_type = serial; ; #------------------------------------------------------------ -# butterfly +# avr109 #------------------------------------------------------------ -# Bootloader origininally designed around the AVR Butterfly -# development board. See -# https://www.microchip.com/en-us/development-tool/atavrbfly -# for details. - -programmer # butterfly - id = "butterfly"; - desc = "Atmel bootloader (Butterfly Development Board)"; +programmer + id = "avr109"; + desc = "Atmel for bootloader using AppNote AVR109"; type = "butterfly"; prog_modes = PM_SPM; connection_type = serial; ; #------------------------------------------------------------ -# avr109 +# avr911 #------------------------------------------------------------ -# AVR109 "Butterfly" bootloader. -# See the AVR109 and AVR911 application notes for details. - -programmer # avr109 - id = "avr109", "avr911"; - desc = "Atmel bootloader (AVR109, AVR911)"; +programmer + id = "avr911"; + desc = "Atmel for bootloader using AppNote AVR911 AVROSP"; type = "butterfly"; prog_modes = PM_SPM; connection_type = serial; ; #------------------------------------------------------------ -# butterfly_mk and mkbutterfly +# mkbutterfly #------------------------------------------------------------ -# http://forum.mikrokopter.de +# suggested in http://forum.mikrokopter.de/topic-post48317.html -programmer # butterfly_mk - id = "butterfly_mk", "mkbutterfly"; - desc = "Mikrokopter.de Butterfly bootloader"; +programmer + id = "mkbutterfly"; + desc = "Mikrokopter.de Butterfly for bootloader"; type = "butterfly_mk"; prog_modes = PM_SPM; connection_type = serial; ; #------------------------------------------------------------ -# jtagmkI +# butterfly_mk #------------------------------------------------------------ -# The original AVR JTAG ICE. It only supports a handful of -# chips (search for PM_JTAGmkI in this file), but can easily be -# DIY'ed. See doc2475, AVR060, and the following URLs for details: -# https://scienceprog.com/build-your-own-avr-jtagice-clone/ -# https://www.olimex.com/Products/AVR/Programmers/AVR-JTAG-USB-A/ -# https://www.electrodragon.com/product/avr-usb-jtag-ice-programmer/ +programmer parent "mkbutterfly" + id = "butterfly_mk"; +; + +#------------------------------------------------------------ +# jtagmkI +#------------------------------------------------------------ -programmer # jtagmkI - id = "jtagmkI", "jtag1"; - desc = "Atmel JTAG ICE mkI"; +programmer + id = "jtagmkI"; + desc = "Atmel JTAG ICE (mkI)"; type = "jtagmki"; prog_modes = PM_JTAGmkI; - extra_features = HAS_VTARG_READ | HAS_BITCLOCK_ADJ; connection_type = serial; baudrate = 115200; # default is 115200 ; +#------------------------------------------------------------ +# jtag1 +#------------------------------------------------------------ + +# easier to type + +programmer parent "jtagmkI" + id = "jtag1"; +; + #------------------------------------------------------------ # jtag1slow #------------------------------------------------------------ -programmer parent "jtag1" # jtag1slow +# easier to type + +programmer parent "jtag1" id = "jtag1slow"; baudrate = 19200; ; @@ -1887,27 +1463,24 @@ programmer parent "jtag1" # jtag1slow # The JTAG ICE mkII has both, serial and USB connectivity. As it is # mostly used through USB these days (AVR Studio 5 only supporting it # that way), we make connection_type = usb the default. Users are -# still free to use a serial port with the -P option. See AVR067 or -# https://www.microchip.com/en-us/development-tool/atjtagice2 -# for details. +# still free to use a serial port with the -P option. -programmer # jtagmkII +programmer id = "jtagmkII"; desc = "Atmel JTAG ICE mkII"; type = "jtagmkii"; prog_modes = PM_JTAG | PM_XMEGAJTAG | PM_AVR32JTAG; - extra_features = HAS_VTARG_READ | HAS_BITCLOCK_ADJ; connection_type = usb; baudrate = 19200; # default is 19200 - usbvid = 0x03eb; - usbpid = 0x2103; ; #------------------------------------------------------------ # jtag2slow #------------------------------------------------------------ -programmer parent "jtagmkII" # jtag2slow +# easier to type + +programmer parent "jtagmkII" id = "jtag2slow"; ; @@ -1915,47 +1488,51 @@ programmer parent "jtagmkII" # jtag2slow # jtag2fast #------------------------------------------------------------ -# JTAG ICE mkII @ 115200 Bd (and alias jtag2 the fast version) +# JTAG ICE mkII @ 115200 Bd -programmer parent "jtag2slow" # jtag2fast - id = "jtag2fast", "jtag2"; +programmer parent "jtag2slow" + id = "jtag2fast"; baudrate = 115200; ; +#------------------------------------------------------------ +# jtag2 +#------------------------------------------------------------ + +# make the fast one the default, people will love that + +programmer parent "jtag2fast" + id = "jtag2"; +; + #------------------------------------------------------------ # jtag2isp #------------------------------------------------------------ # JTAG ICE mkII in ISP mode -programmer # jtag2isp +programmer id = "jtag2isp"; desc = "Atmel JTAG ICE mkII in ISP mode"; type = "jtagmkii_isp"; prog_modes = PM_TPI | PM_ISP; - extra_features = HAS_VTARG_READ | HAS_BITCLOCK_ADJ; connection_type = usb; baudrate = 115200; - usbvid = 0x03eb; - usbpid = 0x2103; ; #------------------------------------------------------------ # jtag2dw #------------------------------------------------------------ -# JTAG ICE mkII in debugWIRE mode +# JTAG ICE mkII in debugWire mode -programmer # jtag2dw +programmer id = "jtag2dw"; - desc = "Atmel JTAG ICE mkII in debugWIRE mode"; + desc = "Atmel JTAG ICE mkII in debugWire mode"; type = "jtagmkii_dw"; prog_modes = PM_debugWIRE; - extra_features = HAS_VTARG_READ; connection_type = usb; baudrate = 115200; - usbvid = 0x03eb; - usbpid = 0x2103; ; #------------------------------------------------------------ @@ -1964,16 +1541,28 @@ programmer # jtag2dw # JTAG ICE mkII in AVR32 mode -programmer # jtagmkII_avr32 - id = "jtagmkII_avr32", "jtag2avr32"; +programmer + id = "jtagmkII_avr32"; + desc = "Atmel JTAG ICE mkII in AVR32 mode"; + type = "jtagmkii_avr32"; + prog_modes = PM_aWire; + connection_type = usb; + baudrate = 115200; +; + +#------------------------------------------------------------ +# jtag2avr32 +#------------------------------------------------------------ + +# JTAG ICE mkII in AVR32 mode + +programmer + id = "jtag2avr32"; desc = "Atmel JTAG ICE mkII in AVR32 mode"; type = "jtagmkii_avr32"; prog_modes = PM_aWire; - extra_features = HAS_VTARG_READ; connection_type = usb; baudrate = 115200; - usbvid = 0x03eb; - usbpid = 0x2103; ; #------------------------------------------------------------ @@ -1982,36 +1571,28 @@ programmer # jtagmkII_avr32 # JTAG ICE mkII in PDI mode -programmer # jtag2pdi +programmer id = "jtag2pdi"; desc = "Atmel JTAG ICE mkII in PDI mode"; type = "jtagmkii_pdi"; prog_modes = PM_PDI; - extra_features = HAS_VTARG_READ; connection_type = usb; baudrate = 115200; - usbvid = 0x03eb; - usbpid = 0x2103; ; #------------------------------------------------------------ # dragon_jtag #------------------------------------------------------------ -# AVR Dragon in JTAG mode. See -# https://www.microchip.com/en-us/development-tool/atavrdragon -# for details. +# AVR Dragon in JTAG mode -programmer # dragon_jtag +programmer id = "dragon_jtag"; desc = "Atmel AVR Dragon in JTAG mode"; type = "dragon_jtag"; prog_modes = PM_JTAG | PM_XMEGAJTAG | PM_AVR32JTAG; - extra_features = HAS_VTARG_READ | HAS_BITCLOCK_ADJ; connection_type = usb; baudrate = 115200; - usbvid = 0x03eb; - usbpid = 0x2107; ; #------------------------------------------------------------ @@ -2020,16 +1601,13 @@ programmer # dragon_jtag # AVR Dragon in ISP mode -programmer # dragon_isp +programmer id = "dragon_isp"; desc = "Atmel AVR Dragon in ISP mode"; type = "dragon_isp"; prog_modes = PM_TPI | PM_ISP; - extra_features = HAS_VTARG_READ | HAS_BITCLOCK_ADJ; connection_type = usb; baudrate = 115200; - usbvid = 0x03eb; - usbpid = 0x2107; ; #------------------------------------------------------------ @@ -2038,16 +1616,13 @@ programmer # dragon_isp # AVR Dragon in PP mode -programmer # dragon_pp +programmer id = "dragon_pp"; desc = "Atmel AVR Dragon in PP mode"; type = "dragon_pp"; prog_modes = PM_HVPP; - extra_features = HAS_VTARG_READ | HAS_BITCLOCK_ADJ; connection_type = usb; baudrate = 115200; - usbvid = 0x03eb; - usbpid = 0x2107; ; #------------------------------------------------------------ @@ -2056,34 +1631,28 @@ programmer # dragon_pp # AVR Dragon in HVSP mode -programmer # dragon_hvsp +programmer id = "dragon_hvsp"; desc = "Atmel AVR Dragon in HVSP mode"; type = "dragon_hvsp"; prog_modes = PM_HVSP; - extra_features = HAS_VTARG_READ | HAS_BITCLOCK_ADJ; connection_type = usb; baudrate = 115200; - usbvid = 0x03eb; - usbpid = 0x2107; ; #------------------------------------------------------------ # dragon_dw #------------------------------------------------------------ -# AVR Dragon in debugWIRE mode +# AVR Dragon in debugWire mode -programmer # dragon_dw +programmer id = "dragon_dw"; - desc = "Atmel AVR Dragon in debugWIRE mode"; + desc = "Atmel AVR Dragon in debugWire mode"; type = "dragon_dw"; prog_modes = PM_debugWIRE; - extra_features = HAS_VTARG_READ; connection_type = usb; baudrate = 115200; - usbvid = 0x03eb; - usbpid = 0x2107; ; #------------------------------------------------------------ @@ -2092,44 +1661,25 @@ programmer # dragon_dw # AVR Dragon in PDI mode -programmer # dragon_pdi +programmer id = "dragon_pdi"; desc = "Atmel AVR Dragon in PDI mode"; type = "dragon_pdi"; prog_modes = PM_PDI; - extra_features = HAS_VTARG_READ; connection_type = usb; baudrate = 115200; - usbvid = 0x03eb; - usbpid = 0x2107; ; #------------------------------------------------------------ # jtag3 #------------------------------------------------------------ -# Atmel JTAGICE3 programmer. See -# https://www.microchip.com/en-us/development-tool/atjtagice3 -# for details. -# -# The JTAGICE3 supports the following programming modes -# using different programmer names: -# -# Interface: Programmer name: -# JTAG jtag3 -# PDI jtag3pdi -# UPDI jtag3updi -# debugWIRE jtag3dw -# ISP jtag3isp - -programmer # jtag3 +programmer id = "jtag3"; desc = "Atmel AVR JTAGICE3 in JTAG mode"; type = "jtagice3"; prog_modes = PM_JTAG | PM_XMEGAJTAG | PM_AVR32JTAG; - extra_features = HAS_VTARG_READ | HAS_BITCLOCK_ADJ; connection_type = usb; - usbvid = 0x03eb; usbpid = 0x2110, 0x2140; ; @@ -2137,14 +1687,12 @@ programmer # jtag3 # jtag3pdi #------------------------------------------------------------ -programmer # jtag3pdi +programmer id = "jtag3pdi"; desc = "Atmel AVR JTAGICE3 in PDI mode"; type = "jtagice3_pdi"; prog_modes = PM_PDI; - extra_features = HAS_VTARG_READ | HAS_BITCLOCK_ADJ; connection_type = usb; - usbvid = 0x03eb; usbpid = 0x2110, 0x2140; ; @@ -2152,14 +1700,12 @@ programmer # jtag3pdi # jtag3updi #------------------------------------------------------------ -programmer # jtag3updi +programmer id = "jtag3updi"; desc = "Atmel AVR JTAGICE3 in UPDI mode"; type = "jtagice3_updi"; prog_modes = PM_UPDI; - extra_features = HAS_VTARG_READ | HAS_BITCLOCK_ADJ; connection_type = usb; - usbvid = 0x03eb; usbpid = 0x2110, 0x2140; hvupdi_support = 1; ; @@ -2168,14 +1714,12 @@ programmer # jtag3updi # jtag3dw #------------------------------------------------------------ -programmer # jtag3dw +programmer id = "jtag3dw"; desc = "Atmel AVR JTAGICE3 in debugWIRE mode"; type = "jtagice3_dw"; prog_modes = PM_debugWIRE; - extra_features = HAS_VTARG_READ; connection_type = usb; - usbvid = 0x03eb; usbpid = 0x2110, 0x2140; ; @@ -2183,40 +1727,25 @@ programmer # jtag3dw # jtag3isp #------------------------------------------------------------ -programmer # jtag3isp +programmer id = "jtag3isp"; desc = "Atmel AVR JTAGICE3 in ISP mode"; type = "jtagice3_isp"; prog_modes = PM_ISP; - extra_features = HAS_VTARG_READ | HAS_BITCLOCK_ADJ; connection_type = usb; - usbvid = 0x03eb; usbpid = 0x2110, 0x2140; ; #------------------------------------------------------------ -# xplainedpro / xplainedpro_jtag +# xplainedpro #------------------------------------------------------------ -# On-board EDBG based programmer found on various AVR based -# Microchip Xplained Pro boards - -# Different Xplained Pro boards uses different programming -# interfaces. These are the ones available: -# -# Interface: Programmer name: -# JTAG xplainedpro, xplainedpro_jtag -# PDI xplainedpro_pdi -# UPDI xplainedpro_updi - -programmer # xplainedpro - id = "xplainedpro", "xplainedpro_jtag"; - desc = "Atmel XplainedPro in JTAG mode"; +programmer + id = "xplainedpro"; + desc = "Atmel AVR XplainedPro in JTAG mode"; type = "jtagice3"; prog_modes = PM_JTAG | PM_XMEGAJTAG | PM_AVR32JTAG; - extra_features = HAS_VTARG_READ | HAS_BITCLOCK_ADJ; connection_type = usb; - usbvid = 0x03eb; usbpid = 0x2111; ; @@ -2224,14 +1753,12 @@ programmer # xplainedpro # xplainedpro_pdi #------------------------------------------------------------ -programmer # xplainedpro_pdi +programmer id = "xplainedpro_pdi"; - desc = "Atmel XplainedPro in PDI mode"; + desc = "Atmel AVR XplainedPro in PDI mode"; type = "jtagice3_pdi"; prog_modes = PM_PDI; - extra_features = HAS_VTARG_READ | HAS_BITCLOCK_ADJ; connection_type = usb; - usbvid = 0x03eb; usbpid = 0x2111; hvupdi_support = 1; ; @@ -2240,47 +1767,26 @@ programmer # xplainedpro_pdi # xplainedpro_updi #------------------------------------------------------------ -programmer # xplainedpro_updi +programmer id = "xplainedpro_updi"; - desc = "Atmel XplainedPro in UPDI mode"; + desc = "Atmel AVR XplainedPro in UPDI mode"; type = "jtagice3_updi"; prog_modes = PM_UPDI; - extra_features = HAS_VTARG_READ | HAS_BITCLOCK_ADJ; connection_type = usb; - usbvid = 0x03eb; usbpid = 0x2111; hvupdi_support = 1; ; #------------------------------------------------------------ -# xplainedmini / xplainedmini_isp +# xplainedmini #------------------------------------------------------------ -# On-board mEDBG based programmer found on AVR based -# Microchip Xplained Mini/Nano boards -# -# Different Xplained Mini/Nano boards uses different -# programming interfaces. These are the ones available: -# -# Interface: Programmer name: -# ISP xplainedmini, xplainedmini_isp -# debugWIRE xplainedmini_dw -# UPDI xplainedmini_updi -# TPI xplainedmini_tpi -# -# Some Xplained Mini boards has a programmable target voltage -# switch that can be controlled using the -xvtarg_switch flag. -# By modifying the SUFFER register using the -xsuffer flag, -# certain programmer safety features can be enabled or disabled. - -programmer # xplainedmini - id = "xplainedmini", "xplainedmini_isp"; - desc = "Atmel XplainedMini in ISP mode"; +programmer + id = "xplainedmini"; + desc = "Atmel AVR XplainedMini in ISP mode"; type = "jtagice3_isp"; prog_modes = PM_ISP; - extra_features = HAS_SUFFER | HAS_VTARG_SWITCH | HAS_BITCLOCK_ADJ; connection_type = usb; - usbvid = 0x03eb; usbpid = 0x2145; ; @@ -2288,19 +1794,12 @@ programmer # xplainedmini # xplainedmini_dw #------------------------------------------------------------ -# The Xplained Mini debugWIRE interface may be finicky, -# and usually require the mEDBG chip to drive the XTAL1 -# pin on the target to keep the debugWIRE interface -# in sync - -programmer # xplainedmini_dw +programmer id = "xplainedmini_dw"; - desc = "Atmel XplainedMini in debugWIRE mode"; + desc = "Atmel AVR XplainedMini in debugWIRE mode"; type = "jtagice3_dw"; prog_modes = PM_debugWIRE; - extra_features = HAS_SUFFER | HAS_VTARG_SWITCH; connection_type = usb; - usbvid = 0x03eb; usbpid = 0x2145; ; @@ -2308,17 +1807,12 @@ programmer # xplainedmini_dw # xplainedmini_updi #------------------------------------------------------------ -# Note that the on-board programmer only support the -# megaAVR-0 and tinyAVR-0/1/2 chip families. - -programmer # xplainedmini_updi +programmer id = "xplainedmini_updi"; - desc = "Atmel XplainedMini in UPDI mode"; + desc = "Atmel AVR XplainedMini in UPDI mode"; type = "jtagice3_updi"; prog_modes = PM_UPDI; - extra_features = HAS_SUFFER | HAS_VTARG_SWITCH | HAS_BITCLOCK_ADJ; connection_type = usb; - usbvid = 0x03eb; usbpid = 0x2145; hvupdi_support = 1; ; @@ -2327,42 +1821,25 @@ programmer # xplainedmini_updi # xplainedmini_tpi #------------------------------------------------------------ -programmer # xplainedmini_tpi +programmer id = "xplainedmini_tpi"; - desc = "Atmel XplainedMini in TPI mode"; + desc = "Atmel AVR XplainedMini in TPI mode"; type = "jtagice3_tpi"; prog_modes = PM_TPI; connection_type = usb; - usbvid = 0x03eb; usbpid = 0x2145; ; #------------------------------------------------------------ -# atmelice / atmelice_jtag +# atmelice #------------------------------------------------------------ -# Atmel-ICE programmer. See -# https://www.microchip.com/en-us/development-tool/atatmel-ice -# for details. -# -# The Atmel-ICE supports the following programming modes -# using different programmer names: -# -# Interface: Programmer name: -# JTAG atmelice, atmelice_jtag -# PDI atmelice_pdi -# UPDI atmelice_updi -# debugWIRE atmelice_dw -# ISP atmelice_isp - -programmer # atmelice - id = "atmelice", "atmelice_jtag"; - desc = "Atmel-ICE in JTAG mode"; +programmer + id = "atmelice"; + desc = "Atmel-ICE (ARM/AVR) in JTAG mode"; type = "jtagice3"; prog_modes = PM_JTAG | PM_XMEGAJTAG | PM_AVR32JTAG; - extra_features = HAS_VTARG_READ | HAS_BITCLOCK_ADJ; connection_type = usb; - usbvid = 0x03eb; usbpid = 0x2141; ; @@ -2370,22 +1847,26 @@ programmer # atmelice # atmelice_pdi #------------------------------------------------------------ -programmer parent "atmelice" # atmelice_pdi +programmer id = "atmelice_pdi"; - desc = "Atmel-ICE in PDI mode"; + desc = "Atmel-ICE (ARM/AVR) in PDI mode"; type = "jtagice3_pdi"; prog_modes = PM_PDI; + connection_type = usb; + usbpid = 0x2141; ; #------------------------------------------------------------ # atmelice_updi #------------------------------------------------------------ -programmer parent "atmelice" # atmelice_updi +programmer id = "atmelice_updi"; - desc = "Atmel-ICE in UPDI mode"; + desc = "Atmel-ICE (ARM/AVR) in UPDI mode"; type = "jtagice3_updi"; prog_modes = PM_UPDI; + connection_type = usb; + usbpid = 0x2141; hvupdi_support = 1; ; @@ -2393,68 +1874,51 @@ programmer parent "atmelice" # atmelice_updi # atmelice_dw #------------------------------------------------------------ -programmer parent "atmelice" # atmelice_dw +programmer id = "atmelice_dw"; - desc = "Atmel-ICE in debugWIRE mode"; + desc = "Atmel-ICE (ARM/AVR) in debugWIRE mode"; type = "jtagice3_dw"; prog_modes = PM_debugWIRE; - extra_features = HAS_VTARG_READ; + connection_type = usb; + usbpid = 0x2141; ; #------------------------------------------------------------ # atmelice_isp #------------------------------------------------------------ -programmer parent "atmelice" # atmelice_isp +programmer id = "atmelice_isp"; - desc = "Atmel-ICE in ISP mode"; + desc = "Atmel-ICE (ARM/AVR) in ISP mode"; type = "jtagice3_isp"; prog_modes = PM_ISP; + connection_type = usb; + usbpid = 0x2141; ; #------------------------------------------------------------ # atmelice_tpi #------------------------------------------------------------ -programmer parent "atmelice" # atmelice_tpi +programmer id = "atmelice_tpi"; - desc = "Atmel-ICE in TPI mode"; + desc = "Atmel-ICE (ARM/AVR) in TPI mode"; type = "jtagice3_tpi"; prog_modes = PM_TPI; - extra_features = HAS_VTARG_READ; + connection_type = usb; + usbpid = 0x2141; ; #------------------------------------------------------------ -# powerdebugger / powerdebugger_jtag +# powerdebugger #------------------------------------------------------------ -# Microchip Power Debugger. See -# https://www.microchip.com/en-us/development-tool/atpowerdebugger -# for details. -# -# The Power Debugger supports the following programming modes -# using different programmer names: -# -# Interface: Programmer name: -# JTAG powerdebugger, powerdebugger_jtag -# PDI powerdebugger_pdi -# UPDI powerdebugger_updi -# debugWIRE powerdebugger_dw -# ISP powerdebugger_isp -# -# The Power Debugger has a programmable voltage source and -# can read the target voltage of the connected device. -# It also has two independent current measurement channels. -# All this can be utilized using the Avrdude terminal mode. - -programmer # powerdebugger - id = "powerdebugger", "powerdebugger_jtag"; - desc = "Atmel PowerDebugger in JTAG mode"; +programmer + id = "powerdebugger"; + desc = "Atmel PowerDebugger (ARM/AVR) in JTAG mode"; type = "jtagice3"; prog_modes = PM_JTAG | PM_XMEGAJTAG | PM_AVR32JTAG; - extra_features = HAS_VTARG_ADJ | HAS_VTARG_READ | HAS_BITCLOCK_ADJ; connection_type = usb; - usbvid = 0x03eb; usbpid = 0x2144; ; @@ -2462,22 +1926,26 @@ programmer # powerdebugger # powerdebugger_pdi #------------------------------------------------------------ -programmer parent "powerdebugger" # powerdebugger_pdi +programmer id = "powerdebugger_pdi"; - desc = "Atmel PowerDebugger in PDI mode"; + desc = "Atmel PowerDebugger (ARM/AVR) in PDI mode"; type = "jtagice3_pdi"; prog_modes = PM_PDI; + connection_type = usb; + usbpid = 0x2144; ; #------------------------------------------------------------ # powerdebugger_updi #------------------------------------------------------------ -programmer parent "powerdebugger" # powerdebugger_updi +programmer id = "powerdebugger_updi"; - desc = "Atmel PowerDebugger in UPDI mode"; + desc = "Atmel PowerDebugger (ARM/AVR) in UPDI mode"; type = "jtagice3_updi"; prog_modes = PM_UPDI; + connection_type = usb; + usbpid = 0x2144; hvupdi_support = 0, 1; ; @@ -2485,80 +1953,51 @@ programmer parent "powerdebugger" # powerdebugger_updi # powerdebugger_dw #------------------------------------------------------------ -programmer parent "powerdebugger" # powerdebugger_dw +programmer id = "powerdebugger_dw"; - desc = "Atmel PowerDebugger in debugWIRE mode"; + desc = "Atmel PowerDebugger (ARM/AVR) in debugWire mode"; type = "jtagice3_dw"; prog_modes = PM_debugWIRE; - extra_features = HAS_VTARG_ADJ | HAS_VTARG_READ; + connection_type = usb; + usbpid = 0x2144; ; #------------------------------------------------------------ # powerdebugger_isp #------------------------------------------------------------ -programmer parent "powerdebugger" # powerdebugger_isp +programmer id = "powerdebugger_isp"; - desc = "Atmel PowerDebugger in ISP mode"; + desc = "Atmel PowerDebugger (ARM/AVR) in ISP mode"; type = "jtagice3_isp"; prog_modes = PM_ISP; + connection_type = usb; + usbpid = 0x2144; ; #------------------------------------------------------------ # powerdebugger_tpi #------------------------------------------------------------ -programmer parent "powerdebugger" # powerdebugger_tpi +programmer id = "powerdebugger_tpi"; - desc = "Atmel PowerDebugger in TPI mode"; + desc = "Atmel PowerDebugger (ARM/AVR) in TPI mode"; type = "jtagice3_tpi"; prog_modes = PM_TPI; - extra_features = HAS_VTARG_ADJ | HAS_VTARG_READ; + connection_type = usb; + usbpid = 0x2144; ; #------------------------------------------------------------ -# pickit4 / pickit4_jtag +# pickit4 #------------------------------------------------------------ -# Microchip PICkit 4. For details see -# https://www.microchip.com/en-us/development-tool/pg164140 -# -# The PICkit 4 supports the following programming modes -# using different programmer names: -# -# Interface: Programmer name: -# JTAG pickit4, pickit4_jtag -# PDI pickit4_pdi -# UPDI pickit4_updi -# debugWIRE pickit4_dw -# ISP pickit4_isp -# -# The pinout is identical to the MPLAB SNAP, but different -# from other Microchip branded AVR programmers, and would -# usually require an adapter or custom wiring if your target -# board has a standard 6 or 10-pin programming connector. -# -# PIN JTAG PDI UPDI DW ISP UART* -# > 1 -# 2 VCC VCC VCC VCC VCC VCC -# 3 GND GND GND GND GND GND -# 4 TDO DATA UPDI SDI -# 5 TCK SCK -# 6 RST SCK dW RST -# 7 TDI SDO TX (target) -# 8 TMS RX (target) -# -# * The PICkit4 can also be used as a USB to UART -# interface for simple serial debugging. - -programmer # pickit4 - id = "pickit4", "pickit4_jtag"; +programmer + id = "pickit4"; desc = "MPLAB(R) PICkit 4 in JTAG mode"; type = "jtagice3"; prog_modes = PM_JTAG | PM_XMEGAJTAG; - extra_features = HAS_VTARG_READ | HAS_BITCLOCK_ADJ; connection_type = usb; - usbvid = 0x03eb; usbpid = 0x2177, 0x2178, 0x2179; ; @@ -2566,11 +2005,13 @@ programmer # pickit4 # pickit4_updi #------------------------------------------------------------ -programmer parent "pickit4" # pickit4_updi +programmer id = "pickit4_updi"; desc = "MPLAB(R) PICkit 4 in UPDI mode"; type = "jtagice3_updi"; prog_modes = PM_UPDI; + connection_type = usb; + usbpid = 0x2177, 0x2178, 0x2179; hvupdi_support = 0, 1, 2; ; @@ -2578,358 +2019,51 @@ programmer parent "pickit4" # pickit4_updi # pickit4_pdi #------------------------------------------------------------ -programmer parent "pickit4" # pickit4_pdi +programmer id = "pickit4_pdi"; desc = "MPLAB(R) PICkit 4 in PDI mode"; type = "jtagice3_pdi"; prog_modes = PM_PDI; -; + connection_type = usb; + usbpid = 0x2177, 0x2178, 0x2179; +; #------------------------------------------------------------ # pickit4_isp #------------------------------------------------------------ -# Due to hardware limitations, the PICkit 4 can only -# reach an ISP clock speed of about 330 kHz - -programmer parent "pickit4" # pickit4_isp +programmer id = "pickit4_isp"; desc = "MPLAB(R) PICkit 4 in ISP mode"; type = "jtagice3_isp"; prog_modes = PM_ISP; + connection_type = usb; + usbpid = 0x2177, 0x2178, 0x2179; ; #------------------------------------------------------------ # pickit4_tpi #------------------------------------------------------------ -programmer parent "pickit4" # pickit4_tpi +programmer id = "pickit4_tpi"; desc = "MPLAB(R) PICkit 4 in TPI mode"; type = "jtagice3_tpi"; prog_modes = PM_TPI; - extra_features = HAS_VTARG_READ; -; - -#------------------------------------------------------------ -# pickit4_dw -#------------------------------------------------------------ - -programmer parent "pickit4" # pickit4_dw - id = "pickit4_dw"; - desc = "MPLAB(R) PICkit 4 in debugWIRE mode"; - type = "jtagice3_dw"; - prog_modes = PM_debugWIRE; -; - -# End of "Atmel" Mode -# -# Begin of "MPLAB" Mode - -#------------------------------------------------------------ -# pickit4_mplab / pickit4_mplab_jtag -#------------------------------------------------------------ - -programmer # pickit4_mplab - id = "pickit4_mplab", "pickit4_mplab_jtag"; - desc = "MPLAB(R) PICkit 4 in JTAG mode"; - type = "pickit5"; - prog_modes = PM_JTAG | PM_XMEGAJTAG; - extra_features = HAS_VTARG_SWITCH | HAS_VTARG_ADJ | HAS_VTARG_READ | HAS_BITCLOCK_ADJ; - connection_type = usb; - usbvid = 0x04d8; - usbpid = 0x9012; # PK4 (MPLAB mode) -; - -#------------------------------------------------------------ -# pickit4_mplab_updi -#------------------------------------------------------------ - -programmer parent "pickit4_mplab" # pickit4_mplab_updi - id = "pickit4_mplab_updi"; - desc = "MPLAB(R) PICkit 4 in UPDI mode"; - prog_modes = PM_UPDI; - hvupdi_support = 0, 1, 2, 3; -; - -#------------------------------------------------------------ -# pickit4_mplab_isp -#------------------------------------------------------------ - -programmer parent "pickit4_mplab" # pickit4_mplab_isp - id = "pickit4_mplab_isp"; - desc = "MPLAB(R) PICkit 4 in ISP mode"; - prog_modes = PM_ISP; -; - -#------------------------------------------------------------ -# pickit4_mplab_dw -#------------------------------------------------------------ - -programmer parent "pickit4_mplab" # pickit4_mplab_dw - id = "pickit4_mplab_dw"; - desc = "MPLAB(R) PICkit 4 in debugWIRE mode"; - prog_modes = PM_debugWIRE; -; - -#------------------------------------------------------------ -# pickit4_mplab_tpi -#------------------------------------------------------------ - -programmer parent "pickit4_mplab" # pickit4_mplab_tpi - id = "pickit4_mplab_tpi"; - desc = "MPLAB(R) PICkit 4 in TPI mode"; - prog_modes = PM_TPI; -; - -#------------------------------------------------------------ -# pickit4_mplab_pdi -#------------------------------------------------------------ - -programmer parent "pickit4_mplab" # pickit4_mplab_pdi - id = "pickit4_mplab_pdi"; - desc = "MPLAB(R) PICkit 4 in PDI mode"; - prog_modes = PM_PDI; -; - -# Microchip PICkit 5. For details, see -# https://www.microchip.com/en-us/development-tool/PG164150 -# -# The PICkit 5 supports the following programming modes -# using different programmer names: -# -# Interface: Programmer name: -# JTAG pickit5, pickit5_jtag -# PDI pickit5_pdi -# UPDI pickit5_updi -# debugWIRE pickit5_dw (can auto-switch to ISP to write fuses) -# ISP pickit5_isp -# TPI pickit5_tpi -# -# PIN JTAG PDI UPDI ISP/dW TPI UART(°) -# > 1 RST(*) -# 2 VCC VCC VCC VCC VCC VCC -# 3 GND GND GND GND GND GND -# 4 TDO DATA UPDI(*) SDI DATA -# 5 TCK SCK SCK -# 6 RST SCK RST/dW RST -# 7 TDI SDO TX (target) -# 8 TMS RX (target) -# -# Note: pickit5_dw does not support flash erase and must switch -# to ISP, thus requires all 6 Pins when modifing the flash -# -# (*): The PICkit 5 can generate a High-Voltage (12V) Pulse on this pins -# to restore the UPDI Pin functionality, if it was changed through fuses. -# AVRDUDE automatically selects the correct pin, if the HV pulse is -# enabled through the '-x hvupdi' flag. -# (°): The PICkit 5 can also be used as a USB to UART interface for simple serial debugging. - -#------------------------------------------------------------ -# pickit5 / pickit5_jtag -#------------------------------------------------------------ - -programmer # pickit5 - id = "pickit5", "pickit5_jtag"; - desc = "MPLAB(R) PICkit 5 in JTAG mode"; - type = "pickit5"; - prog_modes = PM_JTAG | PM_XMEGAJTAG; - extra_features = HAS_VTARG_SWITCH | HAS_VTARG_ADJ | HAS_VTARG_READ | HAS_BITCLOCK_ADJ; - connection_type = usb; - usbvid = 0x04d8; - usbpid = 0x9036; # PK5 -; - -#------------------------------------------------------------ -# pickit5_updi -#------------------------------------------------------------ - -programmer parent "pickit5" # pickit5_updi - id = "pickit5_updi"; - desc = "MPLAB(R) PICkit 5 in UPDI mode"; - prog_modes = PM_UPDI; - hvupdi_support = 0, 1, 2, 3; -; - -#------------------------------------------------------------ -# pickit5_isp -#------------------------------------------------------------ - -programmer parent "pickit5" # pickit5_isp - id = "pickit5_isp"; - desc = "MPLAB(R) PICkit 5 in ISP mode"; - prog_modes = PM_ISP; -; - -#------------------------------------------------------------ -# pickit5_dw -#------------------------------------------------------------ - -programmer parent "pickit5" # pickit5_dw - id = "pickit5_dw"; - desc = "MPLAB(R) PICkit 5 in debugWIRE mode"; - prog_modes = PM_debugWIRE; -; - -#------------------------------------------------------------ -# pickit5_tpi -#------------------------------------------------------------ - -programmer parent "pickit5" # pickit5_tpi - id = "pickit5_tpi"; - desc = "MPLAB(R) PICkit 5 in TPI mode"; - prog_modes = PM_TPI; -; - -#------------------------------------------------------------ -# pickit5_pdi -#------------------------------------------------------------ - -programmer parent "pickit5" # pickit5_pdi - id = "pickit5_pdi"; - desc = "MPLAB(R) PICkit 5 in PDI mode"; - prog_modes = PM_PDI; -; - -# Microchip PICkit Basic. For details, see -# https://www.microchip.com/en-us/development-tool/PG164110 -# -# The PICkit Basic supports the following programming modes -# using different programmer names: -# -# Interface: Programmer name: -# JTAG pickit_basic, pickit_basic_jtag -# PDI pickit_basic_pdi -# UPDI pickit_basic_updi -# debugWIRE pickit_basic_dw (can auto-switch to ISP to write fuses) -# ISP pickit_basic_isp -# TPI pickit_basic_tpi -# -# PIN JTAG PDI UPDI ISP/dW TPI UART(°) -# > 1 RST -# 2 VCC VCC VCC VCC VCC VCC -# 3 GND GND GND GND GND GND -# 4 TDO DATA UPDI SDI DATA -# 5 TCK SCK SCK -# 6 RST SCK RST/dW RST -# 7 TDI SDO TX (target) -# 8 TMS RX (target) -# -# Note: pickit_basic_dw does not support flash erase and must switch -# to ISP, thus requires all 6 Pins when modifing the flash -# (°): The PICkit Basic can also be used as a USB to UART -# interface for simple serial debugging. - -#------------------------------------------------------------ -# pickit_basic_mplab / pickit_basic_mplab_jtag -#------------------------------------------------------------ - -programmer # pickit_basic - id = "pickit_basic", "pickit_basic_mplab", "pickit_basic_jtag", "pickit_basic_mplab_jtag"; - desc = "MPLAB(R) PICkit Basic in JTAG mode"; - type = "pickit5"; - prog_modes = PM_JTAG | PM_XMEGAJTAG; - extra_features = HAS_BITCLOCK_ADJ; # HAS_VTARG_READ was not working yet connection_type = usb; - usbvid = 0x04d8; - usbpid = 0x9055; # PK Basic -; - -#------------------------------------------------------------ -# pickit_basic_updi -#------------------------------------------------------------ - -programmer parent "pickit_basic_mplab" # pickit_basic_updi - id = "pickit_basic_updi", "pickit_basic_mplab_updi"; - desc = "MPLAB(R) PICkit Basic in UPDI mode"; - prog_modes = PM_UPDI; - hvupdi_support = 1; # Dedicated reset and updi pin only -; - -#------------------------------------------------------------ -# pickit_basic_isp -#------------------------------------------------------------ - -programmer parent "pickit_basic_mplab" # pickit_basic_isp - id = "pickit_basic_isp", "pickit_basic_mplab_isp"; - desc = "MPLAB(R) PICkit Basic in ISP mode"; - prog_modes = PM_ISP; -; - -#------------------------------------------------------------ -# pickit_basic_dw -#------------------------------------------------------------ - -programmer parent "pickit_basic_mplab" # pickit_basic_dw - id = "pickit_basic_dw", "pickit_basic_mplab_dw"; - desc = "MPLAB(R) PICkit Basic in debugWIRE mode"; - prog_modes = PM_debugWIRE; -; - -#------------------------------------------------------------ -# pickit_basic_tpi -#------------------------------------------------------------ - -programmer parent "pickit_basic_mplab" # pickit_basic_tpi - id = "pickit_basic_tpi", "pickit_basic_mplab_tpi"; - desc = "MPLAB(R) PICkit Basic in TPI mode"; - prog_modes = PM_TPI; -; - -#------------------------------------------------------------ -# pickit_basic_pdi -#------------------------------------------------------------ - -programmer parent "pickit_basic_mplab" # pickit_basic_pdi - id = "pickit_basic_pdi", "pickit_basic_mplab_pdi"; - desc = "MPLAB(R) PICkit Basic in PDI mode"; - prog_modes = PM_PDI; + usbpid = 0x2177, 0x2178, 0x2179; ; #------------------------------------------------------------ -# snap /snap_jtag +# snap #------------------------------------------------------------ -# Microchip MPLAB SNAP. See -# https://www.microchip.com/en-us/development-tool/pg164100 -# for details. -# -# The MPLAB SNAP supports the following programming modes -# using different programmer names: -# -# Interface: Programmer name: -# JTAG snap, snap_jtag -# PDI snap_pdi -# UPDI snap_updi -# debugWIRE snap_dw -# ISP snap_isp -# -# The pinout is identical to the PICkit 4, but different -# from other Microchip branded AVR programmers, and would -# usually require an adapter or custom wiring if your target -# board has a standard 6 or 10-pin programming connector. -# -# PIN JTAG PDI UPDI DW ISP UART* -# > 1 -# 2 VCC VCC VCC VCC VCC VCC -# 3 GND GND GND GND GND GND -# 4 TDO DATA UPDI SDI -# 5 TCK SCK -# 6 RST SCK dW RST -# 7 TDI SDO TX (target) -# 8 TMS RX (target) -# -# * The MPLAB SNAP can also be used as a USB to UART -# interface for simple serial debugging. - -programmer # snap - id = "snap", "snap_jtag"; - desc = "MPLAB(R) SNAP in JTAG mode"; +programmer + id = "snap"; + desc = "MPLAB(R) Snap in JTAG mode"; type = "jtagice3"; prog_modes = PM_JTAG | PM_XMEGAJTAG; - extra_features = HAS_VTARG_READ | HAS_BITCLOCK_ADJ; connection_type = usb; - usbvid = 0x03eb; usbpid = 0x2180, 0x217f, 0x2181; ; @@ -2937,15 +2071,13 @@ programmer # snap # snap_updi #------------------------------------------------------------ -# Note that certain MPLAB SNAP programmer needs a hardware -# modification to be used as a UPDI programmer. -# See the Microchip ETN #36 for details. - -programmer parent "snap" # snap_updi +programmer id = "snap_updi"; desc = "MPLAB(R) SNAP in UPDI mode"; type = "jtagice3_updi"; prog_modes = PM_UPDI; + connection_type = usb; + usbpid = 0x2180, 0x217f, 0x2181; hvupdi_support = 1; ; @@ -2953,147 +2085,51 @@ programmer parent "snap" # snap_updi # snap_pdi #------------------------------------------------------------ -programmer parent "snap" # snap_pdi +programmer id = "snap_pdi"; desc = "MPLAB(R) SNAP in PDI mode"; type = "jtagice3_pdi"; prog_modes = PM_PDI; + connection_type = usb; + usbpid = 0x2180, 0x217f, 0x2181; ; #------------------------------------------------------------ # snap_isp #------------------------------------------------------------ -# Due to hardware limitations, the MPLAB SNAP can only -# reach an ISP clock speed of about 330 kHz - -programmer parent "snap" # snap_isp +programmer id = "snap_isp"; desc = "MPLAB(R) SNAP in ISP mode"; type = "jtagice3_isp"; prog_modes = PM_ISP; + connection_type = usb; + usbpid = 0x2180, 0x217f, 0x2181; ; #------------------------------------------------------------ # snap_tpi #------------------------------------------------------------ -programmer parent "snap" # snap_tpi +programmer id = "snap_tpi"; desc = "MPLAB(R) SNAP in TPI mode"; type = "jtagice3_tpi"; prog_modes = PM_TPI; - extra_features = HAS_VTARG_READ; -; - -#------------------------------------------------------------ -# snap_dw -#------------------------------------------------------------ - -programmer parent "snap" # snap_dw - id = "snap_dw"; - desc = "MPLAB(R) SNAP in debugWIRE mode"; - type = "jtagice3_dw"; - prog_modes = PM_debugWIRE; - extra_features = HAS_VTARG_READ; -; - -# End of "Atmel" mode -# -# Begin of "mplab" mode - -#------------------------------------------------------------ -# snap_mplab / snap_mplab_jtag -#------------------------------------------------------------ - -programmer # snap_mplab - id = "snap_mplab", "snap_mplab_jtag"; - desc = "MPLAB(R) SNAP in JTAG mode"; - type = "pickit5"; - prog_modes = PM_JTAG | PM_XMEGAJTAG; - extra_features = HAS_VTARG_READ | HAS_BITCLOCK_ADJ; connection_type = usb; - usbvid = 0x04d8; - usbpid = 0x9018; # SNAP (mplab mode) -; - -#------------------------------------------------------------ -# snap_mplab_updi -#------------------------------------------------------------ - -# Note that certain MPLAB SNAP programmer needs a hardware -# modification to be used as a UPDI programmer. -# See the Microchip ETN #36 for details. - -programmer parent "snap_mplab" # snap_mplab_updi - id = "snap_mplab_updi"; - desc = "MPLAB(R) SNAP in UPDI mode"; - prog_modes = PM_UPDI; - hvupdi_support = 1; -; - -#------------------------------------------------------------ -# snap_mplab_pdi -#------------------------------------------------------------ - -programmer parent "snap_mplab" # snap_mplab_pdi - id = "snap_mplab_pdi"; - desc = "MPLAB(R) SNAP in PDI mode"; - prog_modes = PM_PDI; -; - -#------------------------------------------------------------ -# snap_mplab_isp -#------------------------------------------------------------ - -# Due to hardware limitations, the MPLAB SNAP can only -# reach an ISP clock speed of about 330 kHz - -programmer parent "snap_mplab" # snap_mplab_isp - id = "snap_mplab_isp"; - desc = "MPLAB(R) SNAP in ISP mode"; - prog_modes = PM_ISP; -; - -#------------------------------------------------------------ -# snap_mplab_dw -#------------------------------------------------------------ - -programmer parent "snap_mplab" # snap_mplab_dw - id = "snap_mplab_dw"; - desc = "MPLAB(R) SNAP in debugWIRE mode"; - prog_modes = PM_debugWIRE; -; - -#------------------------------------------------------------ -# snap_mplab_tpi -#------------------------------------------------------------ - -programmer parent "snap_mplab" # snap_mplab_tpi - id = "snap_mplab_tpi"; - desc = "MPLAB(R) SNAP in TPI mode"; - prog_modes = PM_TPI; + usbpid = 0x2180, 0x217f, 0x2181; ; #------------------------------------------------------------ # pkobn_updi #------------------------------------------------------------ -# Microchip PICkit On-Board Nano is the name of the nEDBG -# based programmer/debugger that's found on AVR based -# Curiosity Nano boards. -# -# These boards can read and adjust the target voltage supply -# and can be done in the Avrdude terminal mode. - -programmer # pkobn_updi +programmer id = "pkobn_updi"; desc = "Curiosity nano (nEDBG) in UPDI mode"; type = "jtagice3_updi"; prog_modes = PM_UPDI; - extra_features = HAS_VTARG_ADJ | HAS_VTARG_READ | HAS_BITCLOCK_ADJ; connection_type = usb; - usbvid = 0x03eb; usbpid = 0x2175; hvupdi_support = 1; ; @@ -3102,11 +2138,7 @@ programmer # pkobn_updi # pavr #------------------------------------------------------------ -# AVR910 based programmer. See -# https://web.archive.org/web/20040803005703/http://avr1.org/pavr/pavr.html -# for details. - -programmer # pavr +programmer id = "pavr"; desc = "Jason Kyle's pAVR Serial Programmer"; type = "avr910"; @@ -3118,62 +2150,36 @@ programmer # pavr # pickit2 #------------------------------------------------------------ -# Microchip PICkit 2. See -# https://www.microchip.com/en-us/development-tool/pg164120 -# for details. -# -# PIN ISP -# > 1 RST -# 2 VCC -# 3 GND -# 4 SDI -# 5 SCK -# 6 SDO - -programmer # pickit2 +programmer id = "pickit2"; - desc = "Microchip PICkit 2 programmer in ISP mode"; + desc = "MicroChip's PICkit2 Programmer"; type = "pickit2"; prog_modes = PM_ISP; - extra_features = HAS_BITCLOCK_ADJ; connection_type = usb; - usbvid = 0x04d8; - usbpid = 0x0033; ; #------------------------------------------------------------ # flip1 #------------------------------------------------------------ -# The Atmel "Flexible in-system programmer" (FLIP v1) is a -# USB DFU bootloader designed for 8-bit AVRs with a native -# USB interface. -# See doc7618 for more information. - -programmer # flip1 +programmer id = "flip1"; - desc = "FLIP bootloader using USB DFU v1 (doc7618)"; + desc = "FLIP for bootloader using USB DFU protocol version 1 (doc7618)"; type = "flip1"; prog_modes = PM_SPM; connection_type = usb; - usbvid = 0x03eb; ; #------------------------------------------------------------ # flip2 #------------------------------------------------------------ -# The Atmel "Flexible in-system programmer" (FLIP v2) is a -# USB DFU bootloader designed for AVR XMEGA and AVR32. -# See AVR4023 for more information. - -programmer # flip2 +programmer id = "flip2"; - desc = "FLIP bootloader using USB DFU v2 (AVR4023)"; + desc = "FLIP for bootloader using USB DFU protocol version 2 (AVR4023)"; type = "flip2"; prog_modes = PM_SPM; connection_type = usb; - usbvid = 0x03eb; ; #------------------------------------------------------------ @@ -3200,9 +2206,9 @@ programmer # flip2 # serial ponyprog design (dasa2 in uisp) # reset=!txd sck=rts sdo=dtr sdi=cts -programmer # ponyser +programmer id = "ponyser"; - desc = "ponyprog serial: reset=!txd sck=rts sdo=dtr sdi=cts"; + desc = "design ponyprog serial, reset=!txd sck=rts sdo=dtr sdi=cts"; type = "serbb"; prog_modes = PM_TPI | PM_ISP; connection_type = serial; @@ -3216,12 +2222,12 @@ programmer # ponyser # siprog #------------------------------------------------------------ -# Serial port adapter http://www.lancos.com/siprogsch.html # Same as above, different name +# reset=!txd sck=rts sdo=dtr sdi=cts -programmer parent "ponyser" # siprog +programmer parent "ponyser" id = "siprog"; - desc = "Lancos SI-Prog (same as ponyser)"; + desc = "Lancos SI-Prog "; ; #------------------------------------------------------------ @@ -3231,9 +2237,9 @@ programmer parent "ponyser" # siprog # unknown (dasa in uisp) # reset=rts sck=dtr sdo=txd sdi=cts -programmer # dasa +programmer id = "dasa"; - desc = "serial port: reset=rts sck=dtr sdo=txd sdi=cts"; + desc = "serial port banging, reset=rts sck=dtr sdo=txd sdi=cts"; type = "serbb"; prog_modes = PM_TPI | PM_ISP; connection_type = serial; @@ -3250,9 +2256,9 @@ programmer # dasa # unknown (dasa3 in uisp) # reset=!dtr sck=rts sdo=txd sdi=cts -programmer # dasa3 +programmer id = "dasa3"; - desc = "serial port: reset=!dtr sck=rts sdo=txd sdi=cts"; + desc = "serial port banging, reset=!dtr sck=rts sdo=txd sdi=cts"; type = "serbb"; prog_modes = PM_TPI | PM_ISP; connection_type = serial; @@ -3269,9 +2275,9 @@ programmer # dasa3 # C2N232i (jumper configuration "auto") # reset=dtr sck=!rts sdo=!txd sdi=!cts -programmer # c2n232i +programmer id = "c2n232i"; - desc = "serial port: reset=dtr sck=!rts sdo=!txd sdi=!cts"; + desc = "serial port banging, reset=dtr sck=!rts sdo=!txd sdi=!cts"; type = "serbb"; prog_modes = PM_TPI | PM_ISP; connection_type = serial; @@ -3285,17 +2291,11 @@ programmer # c2n232i # jtag2updi #------------------------------------------------------------ +# JTAG2UPDI # https://github.com/ElTangas/jtag2updi -# Original source for the jtag2updi project -# -# https://github.com/askn37/jtag2updi -# Enhanced firmware with better device support -# -# https://github.com/arduino/ArduinoCore-megaavr/tree/master/firmwares/MuxTO -# Arduino Nano Every (jtag2updi with 1200 baud touch, -r) -programmer # jtag2updi - id = "jtag2updi", "nanoevery"; +programmer + id = "jtag2updi"; desc = "JTAGv2 to UPDI bridge"; type = "jtagmkii_updi"; prog_modes = PM_UPDI; @@ -3305,701 +2305,455 @@ programmer # jtag2updi ; # -# SERIAL ADAPTER DEFINITIONS -# - -# A serialadapter is a programmer that has only USB parameters defined; it -# can be used for a -P [:] port -# specification instead of the created serial port. Per-user serialadapter -# definitions in ~/.avrduderc or avrdude.rc files can add a serial number -# to assign a particular board a specific id and default baud rate: -# -# serialadapter parent "ft232r" -# id = "bike-shed-door"; -# usbsn = "0123456789"; -# baudrate = 250000; -# ; +# PART DEFINITIONS # -# This is particularly useful for programming via a bootloader as it allows -# specifying the port as -P bike-shed-door rather than having to figure out -# which serial port name the operating system has assigned to the plugged in -# bike-shed-door board at runtime. Note that each programmer that defines -# usbpid and sets is_serialadapter = yes can also be utilised as a -# serialadapter. - -#------------------------------------------------------------ -# ch340 -#------------------------------------------------------------ - -serialadapter # ch340 - id = "ch340"; - desc = "WCH CH340 USB to serial adapter"; - usbvid = 0x1a86; - usbpid = 0x7523; -; #------------------------------------------------------------ -# ch342 +# ATtiny11 #------------------------------------------------------------ -# Dual serial port chip -# https://www.wch-ic.com/products/CH342.html +# This is an HVSP-only device. -serialadapter # ch342 - id = "ch342"; - desc = "WCH CH342 USB to serial adapter"; - usbvid = 0x1a86; - usbpid = 0x55d2; -; +part + desc = "ATtiny11"; + id = "t11"; + prog_modes = PM_HVSP; + mcuid = 8; + n_interrupts = 5; + stk500_devcode = 0x11; + chip_erase_delay = 20000; + signature = 0x1e 0x90 0x04; + serial = no; + timeout = 200; + hvsp_controlstack = + 0x4c, 0x0c, 0x1c, 0x2c, 0x3c, 0x64, 0x74, 0x00, + 0x68, 0x78, 0x68, 0x68, 0x00, 0x00, 0x68, 0x78, + 0x78, 0x00, 0x6d, 0x0c, 0x80, 0x40, 0x20, 0x10, + 0x11, 0x08, 0x04, 0x02, 0x03, 0x08, 0x04, 0x00; + hventerstabdelay = 100; + latchcycles = 1; + togglevtg = 1; + poweroffdelay = 25; + resetdelayus = 50; + hvleavestabdelay = 100; + resetdelay = 25; + chiperasepolltimeout = 40; + programfusepolltimeout = 25; + programlockpolltimeout = 25; + synchcycles = 6; -#------------------------------------------------------------ -# ch343 -#------------------------------------------------------------ - -# CH343 doc https://www.wch-ic.com/downloads/CH343DS1_PDF.html - -serialadapter # ch343 - id = "ch343"; - desc = "WCH CH343 USB to serial adapter"; - usbvid = 0x1a86; - usbpid = 0x55d3; -; - -#------------------------------------------------------------ -# ch344 -#------------------------------------------------------------ - -# Quad serial port chip -# https://www.wch-ic.com/products/CH344.html - -serialadapter # ch344 - id = "ch344"; - desc = "WCH CH344 USB to serial adapter"; - usbvid = 0x1a86; - usbpid = 0x55d5; -; - -#------------------------------------------------------------ -# ch347 -#------------------------------------------------------------ - -# Multipurpose interface chip -# https://www.wch-ic.com/products/CH347.html - -serialadapter # ch347 - id = "ch347"; - desc = "WCH CH347 USB to serial adapter"; - usbvid = 0x1a86; - usbpid = 0x55da, 0x55db, 0x55dd, 0x55de; -; - -#------------------------------------------------------------ -# ch9102 -#------------------------------------------------------------ - -serialadapter # ch9102 - id = "ch9102"; - desc = "WCH CH9102 USB to serial adapter"; - usbvid = 0x1a86; - usbpid = 0x55d4; -; - -#------------------------------------------------------------ -# ch9103 -#------------------------------------------------------------ - -# Dual serial port chip -# https://www.wch-ic.com/products/CH9103.html - -serialadapter # ch9103 - id = "ch9103"; - desc = "WCH CH9103 USB to serial adapter"; - usbvid = 0x1a86; - usbpid = 0x55d7; -; - -#------------------------------------------------------------ -# cp210x -#------------------------------------------------------------ - -serialadapter # cp210x - id = "cp210x"; - desc = "Silabs CP210x USB to serial adapter"; - usbvid = 0x10c4; - usbpid = 0xea60, 0xea70, 0xea71; -; - -#------------------------------------------------------------ -# ft231x / ft234x / ft230x -#------------------------------------------------------------ - -serialadapter # ft231x - id = "ft231x", "ft234x", "ft230x"; - desc = "FTDI FT23X series USB to serial adapter"; - usbvid = 0x0403; - usbpid = 0x6015; -; - -#------------------------------------------------------------ -# pl2303 -#------------------------------------------------------------ - -serialadapter # pl2303 - id = "pl2303"; - desc = "Profilic PL2303 USB to serial adapter"; - usbvid = 0x067b; - usbpid = 0x2303, 0x2304, 0x23a3, 0x23b3, 0x23c3, 0x23d3, 0x23e3, 0x23f3; -; - -# -# PART DEFINITIONS -# - -#------------------------------------------------------------ -# Common values for reduced core tinys (4/5/9/10/20/40) -#------------------------------------------------------------ + memory "eeprom" + size = 64; + delay = 5; + blocksize = 64; + readsize = 256; + ; -part # .reduced_core_tiny - desc = "Common values for reduced core tinys"; - id = ".reduced_core_tiny"; - prog_modes = PM_TPI; - archnum = 100; + memory "flash" + size = 1024; + delay = 3; + blocksize = 128; + readsize = 256; + ; memory "fuse" size = 1; - page_size = 16; - initval = 0xff; - bitmask = 0x07; - offset = 0x3f40; - blocksize = 4; ; - memory "lockbits" + memory "lock" size = 1; - page_size = 16; - initval = 0xff; - bitmask = 0x03; - offset = 0x3f00; ; memory "signature" size = 3; - page_size = 16; - offset = 0x3fc0; ; memory "calibration" size = 1; - page_size = 16; - offset = 0x3f80; - ; - - memory "sram" - size = 32; - offset = 0x40; ; ; #------------------------------------------------------------ -# ATtiny4 +# ATtiny12 #------------------------------------------------------------ -part parent ".reduced_core_tiny" # t4 - desc = "ATtiny4"; - id = "t4"; - variants = - "ATtiny4-MAHR: UDFN8, Fmax=12 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny4-TS8R: SOT23-6, Fmax=10 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny4-TSHR: SOT23-6, Fmax=12 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 0; - n_interrupts = 10; - signature = 0x1e 0x8f 0x0a; - factory_fcpu = 1000000; - - memory "flash" - size = 512; - page_size = 16; - offset = 0x4000; - blocksize = 128; - ; +part + desc = "ATtiny12"; + id = "t12"; + prog_modes = PM_ISP | PM_HVSP; + mcuid = 9; + n_interrupts = 6; + stk500_devcode = 0x12; + avr910_devcode = 0x55; + chip_erase_delay = 20000; + signature = 0x1e 0x90 0x05; + timeout = 200; + stabdelay = 100; + cmdexedelay = 25; + synchloops = 32; + pollindex = 3; + pollvalue = 0x53; + predelay = 1; + postdelay = 1; + hvsp_controlstack = + 0x4c, 0x0c, 0x1c, 0x2c, 0x3c, 0x64, 0x74, 0x00, + 0x68, 0x78, 0x68, 0x68, 0x00, 0x00, 0x68, 0x78, + 0x78, 0x00, 0x6d, 0x0c, 0x80, 0x40, 0x20, 0x10, + 0x11, 0x08, 0x04, 0x02, 0x03, 0x08, 0x04, 0x00; + hventerstabdelay = 100; + latchcycles = 1; + togglevtg = 1; + poweroffdelay = 25; + resetdelayus = 50; + hvleavestabdelay = 100; + resetdelay = 25; + chiperasepolltimeout = 40; + programfusepolltimeout = 25; + programlockpolltimeout = 25; + synchcycles = 6; + chip_erase = "1010.1100--100x.xxxx--xxxx.xxxx--xxxx.xxxx"; + pgm_enable = "1010.1100--0101.0011--xxxx.xxxx--xxxx.xxxx"; - memory "io" + memory "eeprom" size = 64; + min_write_delay = 9000; + max_write_delay = 20000; + readback = 0xff 0xff; + mode = 4; + delay = 8; + blocksize = 64; + readsize = 256; + read = "1010.0000--xxxx.xxxx--xxaa.aaaa--oooo.oooo"; + write = "1100.0000--xxxx.xxxx--xxaa.aaaa--iiii.iiii"; ; -; - -#------------------------------------------------------------ -# ATtiny5 -#------------------------------------------------------------ - -part parent "t4" # t5 - desc = "ATtiny5"; - id = "t5"; - variants = - "ATtiny5-MAHR: USON8, Fmax=12 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny5-TS8R: SOT23-6, Fmax=10 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny5-TSHR: SOT23-6, Fmax=12 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 1; - n_interrupts = 11; - signature = 0x1e 0x8f 0x09; -; - -#------------------------------------------------------------ -# ATtiny9 -#------------------------------------------------------------ - -part parent ".reduced_core_tiny" # t9 - desc = "ATtiny9"; - id = "t9"; - variants = - "ATtiny9-MAHR: DFN8, Fmax=12 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny9-TS8R: SOT23-6, Fmax=10 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny9-TSHR: SOT23-6, Fmax=12 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 2; - n_interrupts = 10; - signature = 0x1e 0x90 0x08; - factory_fcpu = 1000000; memory "flash" size = 1024; - page_size = 16; - offset = 0x4000; - blocksize = 128; - ; - - memory "io" - size = 64; - ; -; - -#------------------------------------------------------------ -# ATtiny10 -#------------------------------------------------------------ - -part parent "t9" # t10 - desc = "ATtiny10"; - id = "t10"; - variants = - "ATtiny10-MAHR: UDFN8, Fmax=12 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny10-TS8R: SOT23-6, Fmax=10 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny10-TSHR: SOT23-6, Fmax=12 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 3; - n_interrupts = 11; - signature = 0x1e 0x90 0x03; -; - -#------------------------------------------------------------ -# ATtiny20 -#------------------------------------------------------------ - -part parent ".reduced_core_tiny" # t20 - desc = "ATtiny20"; - id = "t20"; - variants = - "ATtiny20-CCU: UFBGA15, Fmax=12 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny20-CCUR: UFBGA15, Fmax=12 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny20-MMH: VQFN20, Fmax=12 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny20-MMHR: VQFN20, Fmax=12 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny20-SSU: SOIC14, Fmax=12 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny20-SSUR: SOIC14, Fmax=12 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny20-UUR: WLCSP12, Fmax=12 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny20-XU: TSSOP14, Fmax=12 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny20-XUR: TSSOP14, Fmax=12 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 4; - n_interrupts = 17; - signature = 0x1e 0x91 0x0f; - factory_fcpu = 1000000; - - memory "flash" - size = 2048; - page_size = 16; - n_word_writes = 2; - offset = 0x4000; + min_write_delay = 4500; + max_write_delay = 20000; + readback = 0xff 0xff; + mode = 4; + delay = 5; blocksize = 128; + readsize = 256; + read_lo = "0010.0000--xxxx.xxxa--aaaa.aaaa--oooo.oooo"; + read_hi = "0010.1000--xxxx.xxxa--aaaa.aaaa--oooo.oooo"; + write_lo = "0100.0000--xxxx.xxxa--aaaa.aaaa--iiii.iiii"; + write_hi = "0100.1000--xxxx.xxxa--aaaa.aaaa--iiii.iiii"; ; memory "fuse" - bitmask = 0x77; - n_word_writes = 2; - ; - - memory "io" - size = 64; - ; - - memory "sram" - size = 128; - ; -; - -#------------------------------------------------------------ -# ATtiny40 -#------------------------------------------------------------ - -part parent ".reduced_core_tiny" # t40 - desc = "ATtiny40"; - id = "t40"; - variants = - "ATtiny40-MMH: VQFN20, Fmax=12 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny40-MMHR: VQFN20, Fmax=12 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny40-SU: SOIC20, Fmax=12 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny40-SUR: SOIC20, Fmax=12 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny40-XU: TSSOP20, Fmax=12 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny40-XUR: TSSOP20, Fmax=12 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 5; - n_interrupts = 18; - signature = 0x1e 0x92 0x0e; - factory_fcpu = 1000000; - - memory "flash" - size = 4096; - page_size = 64; - n_word_writes = 4; - offset = 0x4000; - blocksize = 128; + size = 1; + min_write_delay = 9000; + max_write_delay = 9000; + read = "0101.0000--xxxx.xxxx--xxxx.xxxx--oooo.oooo"; + write = "1010.1100--101x.xxxx--xxxx.xxxx--iiii.iiii"; ; - memory "fuse" - bitmask = 0x77; - n_word_writes = 4; + memory "lock" + size = 1; + min_write_delay = 9000; + max_write_delay = 9000; + read = "0101.1000--xxxx.xxxx--xxxx.xxxx--xxxx.xoox"; + write = "1010.1100--1111.1ii1--xxxx.xxxx--xxxx.xxxx"; ; - memory "io" - size = 64; + memory "signature" + size = 3; + read = "0011.0000--xxxx.xxxx--0000.00aa--oooo.oooo"; ; - memory "sram" - size = 256; + memory "calibration" + size = 1; + read = "0011.1000--xxxx.xxxx--0000.0000--oooo.oooo"; ; ; #------------------------------------------------------------ -# ATtiny102 +# ATtiny13 #------------------------------------------------------------ -part parent ".reduced_core_tiny" # t102 - desc = "ATtiny102"; - id = "t102"; - variants = - "ATtiny102-M7R: UDFN8, Fmax=12 MHz, T=[-40 C, 105 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny102-M8R: UDFN8, Fmax=12 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny102-SSFR: SOIC8, Fmax=12 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny102-SSNR: SOIC8, Fmax=12 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny102F-M7R: UDFN8, Fmax=12 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny102F-M8R: UDFN8, Fmax=12 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny102F-SSFR: SOIC8, Fmax=12 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny102F-SSNR: SOIC8, Fmax=12 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 6; - n_interrupts = 16; - signature = 0x1e 0x90 0x0c; - factory_fcpu = 1000000; - - memory "flash" - size = 1024; - page_size = 16; - offset = 0x4000; - blocksize = 128; - ; - - memory "fuse" - bitmask = 0x0f; - ; - - memory "prodsig" - size = 16; - page_size = 16; - offset = 0x3fc0; - ; - - memory "sigrow" - alias "prodsig"; - ; - - memory "sernum" - size = 10; - offset = 0x3fc6; # Sub-region of prodsig - ; +part + desc = "ATtiny13"; + id = "t13"; + prog_modes = PM_SPM | PM_ISP | PM_HVSP | PM_debugWIRE; + mcuid = 10; + n_interrupts = 10; + stk500_devcode = 0x14; + chip_erase_delay = 4000; + signature = 0x1e 0x90 0x07; + timeout = 200; + stabdelay = 100; + cmdexedelay = 25; + synchloops = 32; + pollindex = 3; + pollvalue = 0x53; + predelay = 1; + postdelay = 1; + pollmethod = 1; + hvsp_controlstack = + 0x4c, 0x0c, 0x1c, 0x2c, 0x3c, 0x64, 0x74, 0x66, + 0x68, 0x78, 0x68, 0x68, 0x7a, 0x6a, 0x68, 0x78, + 0x78, 0x7d, 0x6d, 0x0c, 0x80, 0x40, 0x20, 0x10, + 0x11, 0x08, 0x04, 0x02, 0x03, 0x08, 0x04, 0x00; + flash_instr = 0xb4, 0x0e, 0x1e; + eeprom_instr = + 0xbb, 0xfe, 0xbb, 0xee, 0xbb, 0xcc, 0xb2, 0x0d, + 0xbc, 0x0e, 0xb4, 0x0e, 0xba, 0x0d, 0xbb, 0xbc, + 0x99, 0xe1, 0xbb, 0xac; + hventerstabdelay = 100; + latchcycles = 1; + togglevtg = 1; + poweroffdelay = 25; + resetdelayus = 90; + hvleavestabdelay = 100; + resetdelay = 25; + chiperasepolltimeout = 40; + programfusepolltimeout = 25; + programlockpolltimeout = 25; + synchcycles = 6; + spmcr = 0x57; + eecr = 0x3c; + ocdrev = 0; + chip_erase = "1010.1100--100x.xxxx--xxxx.xxxx--xxxx.xxxx"; + pgm_enable = "1010.1100--0101.0011--xxxx.xxxx--xxxx.xxxx"; - memory "io" + memory "eeprom" size = 64; + page_size = 4; + min_write_delay = 4000; + max_write_delay = 4000; + readback = 0xff 0xff; + mode = 65; + delay = 5; + blocksize = 4; + readsize = 256; + read = "1010.0000--000x.xxxx--xxaa.aaaa--oooo.oooo"; + write = "1100.0000--000x.xxxx--xxaa.aaaa--iiii.iiii"; + loadpage_lo = "1100.0001--0000.0000--0000.00aa--iiii.iiii"; + writepage = "1100.0010--00xx.xxxx--xxaa.aa00--xxxx.xxxx"; ; -; - -#------------------------------------------------------------ -# ATtiny104 -#------------------------------------------------------------ - -part parent ".reduced_core_tiny" # t104 - desc = "ATtiny104"; - id = "t104"; - variants = - "ATtiny104-SSFR: SOIC14, Fmax=12 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny104-SSNR: SOIC14, Fmax=12 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny104F-SSFR: SOIC14, Fmax=12 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny104F-SSNR: SOIC14, Fmax=12 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 7; - n_interrupts = 16; - signature = 0x1e 0x90 0x0b; - factory_fcpu = 1000000; memory "flash" + paged = yes; size = 1024; - page_size = 16; - offset = 0x4000; - blocksize = 128; - ; - - memory "fuse" - bitmask = 0x0f; - ; - - memory "prodsig" - size = 16; - page_size = 16; - offset = 0x3fc0; - ; - - memory "sigrow" - alias "prodsig"; + page_size = 32; + num_pages = 32; + min_write_delay = 4500; + max_write_delay = 4500; + readback = 0xff 0xff; + mode = 65; + delay = 6; + blocksize = 32; + readsize = 256; + read_lo = "0010.0000--0000.000a--aaaa.aaaa--oooo.oooo"; + read_hi = "0010.1000--0000.000a--aaaa.aaaa--oooo.oooo"; + loadpage_lo = "0100.0000--000x.xxxx--xxxx.aaaa--iiii.iiii"; + loadpage_hi = "0100.1000--000x.xxxx--xxxx.aaaa--iiii.iiii"; + writepage = "0100.1100--0000.000a--aaaa.xxxx--xxxx.xxxx"; ; - memory "sernum" - size = 10; - offset = 0x3fc6; # Sub-region of prodsig + memory "lfuse" + size = 1; + min_write_delay = 4500; + max_write_delay = 4500; + read = "0101.0000--0000.0000--xxxx.xxxx--oooo.oooo"; + write = "1010.1100--1010.0000--xxxx.xxxx--iiii.iiii"; ; - memory "io" - size = 64; + memory "hfuse" + size = 1; + min_write_delay = 4500; + max_write_delay = 4500; + read = "0101.1000--0000.1000--xxxx.xxxx--oooo.oooo"; + write = "1010.1100--1010.1000--xxxx.xxxx--iiii.iiii"; ; -; - -#------------------------------------------------------------ -# Common values for classic parts without calibration mem -#------------------------------------------------------------ - -# Classic here means non-TPI classic part - -part # .classic-nocal - desc = "Common values for classic parts without calibration mem"; - id = ".classic-nocal"; - prog_modes = PM_SPM | PM_ISP; - archnum = 2; memory "lock" size = 1; - initval = 0xff; - read = "0101.1000--0000.0000--0000.0000--oooo.oooo"; - write = "1010.1100--1110.0000--0000.0000--11ii.iiii"; + min_write_delay = 4500; + max_write_delay = 4500; + read = "0101.1000--0000.0000--xxxx.xxxx--oooo.oooo"; + write = "1010.1100--111x.xxxx--xxxx.xxxx--11ii.iiii"; ; memory "signature" size = 3; - read = "0011.0000--0000.0000--0000.00aa--oooo.oooo"; - ; - - memory "io" - size = 224; - offset = 0x20; + read = "0011.0000--000x.xxxx--xxxx.xxaa--oooo.oooo"; ; - memory "sram" - size = 2048; - offset = 0x100; + memory "calibration" + size = 2; + read = "0011.1000--000x.xxxx--0000.000a--oooo.oooo"; ; ; #------------------------------------------------------------ -# Common values for classic parts +# ATtiny13A #------------------------------------------------------------ -part parent ".classic-nocal" # .classic - desc = "Common values for classic parts"; - id = ".classic"; - factory_fcpu = 1000000; - chip_erase = "1010.1100--1000.0000--0000.0000--0000.0000"; - pgm_enable = "1010.1100--0101.0011--0000.0000--0000.0000"; - - memory "prodsig" - size = 24; - read = "0 0 1 1 a0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 a4 a3 a2 a1 o o o o o o o o"; - ; - - memory "sigrow" - alias "prodsig"; - ; - - memory "calibration" - size = 1; - read = "0011.1000--0000.0000--0000.0000--oooo.oooo"; - ; - - memory "sernum" - size = 10; - offset = 0xe; # Sub-region of prodsig - read = "0 0 1 1 a0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 a4 a3 a2 a1 o o o o o o o o"; - ; +part parent "t13" + desc = "ATtiny13A"; + id = "t13a"; + mcuid = 11; ; #------------------------------------------------------------ -# ATtiny11 +# ATtiny15 #------------------------------------------------------------ -# This is an HVSP-only device. - -part parent ".classic" # t11 - desc = "ATtiny11"; - id = "t11"; - variants = - "ATtiny11-6PC: DIP8, Fmax=6 MHz, T=[0 C, 70 C], Vcc=[4 V, 5.5 V]", - "ATtiny11-6PI: DIP8, Fmax=6 MHz, T=[-40 C, 85 C], Vcc=[4 V, 5.5 V]", - "ATtiny11-6PU: DIP8, Fmax=6 MHz, T=[-40 C, 85 C], Vcc=[4 V, 5.5 V]", - "ATtiny11-6SC: SOIC8, Fmax=6 MHz, T=[0 C, 70 C], Vcc=[4 V, 5.5 V]", - "ATtiny11-6SI: SOIC8, Fmax=6 MHz, T=[-40 C, 85 C], Vcc=[4 V, 5.5 V]", - "ATtiny11-6SU: SOIC8, Fmax=6 MHz, T=[-40 C, 85 C], Vcc=[4 V, 5.5 V]", - "ATtiny11L-2PC: DIP8, Fmax=2 MHz, T=[0 C, 70 C], Vcc=[2.7 V, 5.5 V]", - "ATtiny11L-2PI: DIP8, Fmax=2 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATtiny11L-2SC: SOIC8, Fmax=2 MHz, T=[0 C, 70 C], Vcc=[2.7 V, 5.5 V]", - "ATtiny11L-2SI: SOIC8, Fmax=2 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATtiny11L-2SU: SOIC8, Fmax=2 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]"; - prog_modes = PM_HVSP; - mcuid = 8; - archnum = 1; - n_interrupts = 5; - stk500_devcode = 0x11; - chip_erase_delay = 20000; - signature = 0x1e 0x90 0x04; - serial = no; +part + desc = "ATtiny15"; + id = "t15"; + prog_modes = PM_ISP | PM_HVSP; + mcuid = 12; + n_interrupts = 9; + stk500_devcode = 0x13; + avr910_devcode = 0x56; + chip_erase_delay = 8200; + signature = 0x1e 0x90 0x06; timeout = 200; + stabdelay = 100; + cmdexedelay = 25; + synchloops = 32; + pollindex = 3; + pollvalue = 0x53; + predelay = 1; + postdelay = 1; hvsp_controlstack = 0x4c, 0x0c, 0x1c, 0x2c, 0x3c, 0x64, 0x74, 0x00, 0x68, 0x78, 0x68, 0x68, 0x00, 0x00, 0x68, 0x78, 0x78, 0x00, 0x6d, 0x0c, 0x80, 0x40, 0x20, 0x10, 0x11, 0x08, 0x04, 0x02, 0x03, 0x08, 0x04, 0x00; hventerstabdelay = 100; - latchcycles = 1; + latchcycles = 16; togglevtg = 1; poweroffdelay = 25; - resetdelayms = 1; + resetdelayus = 50; hvleavestabdelay = 100; resetdelay = 25; chiperasepolltimeout = 40; programfusepolltimeout = 25; programlockpolltimeout = 25; synchcycles = 6; - factory_fcpu = 1200000; - chip_erase = NULL; - pgm_enable = NULL; + hvspcmdexedelay = 5; + chip_erase = "1010.1100--100x.xxxx--xxxx.xxxx--xxxx.xxxx"; + pgm_enable = "1010.1100--0101.0011--xxxx.xxxx--xxxx.xxxx"; + + memory "eeprom" + size = 64; + min_write_delay = 8200; + max_write_delay = 8200; + readback = 0xff 0xff; + mode = 4; + delay = 10; + blocksize = 64; + readsize = 256; + read = "1010.0000--xxxx.xxxx--xxaa.aaaa--oooo.oooo"; + write = "1100.0000--xxxx.xxxx--xxaa.aaaa--iiii.iiii"; + ; memory "flash" size = 1024; - delay = 3; + min_write_delay = 4100; + max_write_delay = 4100; + readback = 0xff 0xff; + mode = 4; + delay = 5; blocksize = 128; readsize = 256; + read_lo = "0010.0000--xxxx.xxxa--aaaa.aaaa--oooo.oooo"; + read_hi = "0010.1000--xxxx.xxxa--aaaa.aaaa--oooo.oooo"; + write_lo = "0100.0000--xxxx.xxxa--aaaa.aaaa--iiii.iiii"; + write_hi = "0100.1000--xxxx.xxxa--aaaa.aaaa--iiii.iiii"; ; memory "fuse" size = 1; - initval = 0xf4; - bitmask = 0x1f; + min_write_delay = 9000; + max_write_delay = 9000; + read = "0101.0000--xxxx.xxxx--xxxx.xxxx--oooo.xxoo"; + write = "1010.1100--101x.xxxx--xxxx.xxxx--iiii.11ii"; ; memory "lock" - bitmask = 0x06; - read = NULL; - write = NULL; - ; - - memory "prodsig" - read = NULL; + size = 1; + min_write_delay = 9000; + max_write_delay = 9000; + read = "0101.1000--xxxx.xxxx--xxxx.xxxx--xxxx.xoox"; + write = "1010.1100--1111.1ii1--xxxx.xxxx--xxxx.xxxx"; ; memory "signature" - read = NULL; + size = 3; + read = "0011.0000--xxxx.xxxx--0000.00aa--oooo.oooo"; ; memory "calibration" - read = NULL; - ; - - memory "sernum" - read = NULL; - ; - - memory "io" - size = 64; - offset = 0x0; - ; - - memory "sram" - size = 32; - offset = 0x60; + size = 1; + read = "0011.1000--xxxx.xxxx--0000.0000--oooo.oooo"; ; ; #------------------------------------------------------------ -# ATtiny12 +# AT90s1200 #------------------------------------------------------------ -part parent "t11" # t12 - desc = "ATtiny12"; - id = "t12"; - variants = - "ATtiny12: N/A, Fmax=8 MHz, T=[N/A, 85 C], Vcc=[N/A, N/A]", - "ATtiny12-8PC: PDIP8, Fmax=8 MHz, T=[0, 70 C], Vcc=[4.0 V, 5.5 V]", - "ATtiny12-8PI: PDIP8, Fmax=8 MHz, T=[-40 C, 80 C], Vcc=[4.0 V, 5.5 V]", - "ATtiny12-8PU: PDIP8, Fmax=8 MHz, T=[-40 C, 85 C], Vcc=[4 V, 5.5 V]", - "ATtiny12-8SC: SOIC8, Fmax=8 MHz, T=[0, 70 C], Vcc=[4.0 V, 5.5 V]", - "ATtiny12-8SI: SOIC8, Fmax=8 MHz, T=[-40 C, 85 C], Vcc=[4.0 V, 5.5 V]", - "ATtiny12-8SU: SOIC8, Fmax=8 MHz, T=[-40 C, 85 C], Vcc=[4 V, 5.5 V]", - "ATtiny12L-4PC: PDIP8, Fmax=4 MHz, T=[0, 70 C], Vcc=[2.7 V, 5.5 V]", - "ATtiny12L-4PI: PDIP8, Fmax=4 MHz, T=[-40 C, 80 C], Vcc=[2.7 V, 5.5 V]", - "ATtiny12L-4PU: PDIP8, Fmax=4 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATtiny12L-4SC: SOIC8, Fmax=4 MHz, T=[0, 70 C], Vcc=[2.7 V, 5.5 V]", - "ATtiny12L-4SI: SOIC8, Fmax=4 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATtiny12L-4SU: SOIC8, Fmax=4 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATtiny12L-4SUR: SOIC8, Fmax=4 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATtiny12V-1PC: PDIP8, Fmax=1.2 MHz, T=[0, 70 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny12V-1PI: PDIP8, Fmax=1.2 MHz, T=[-40 C, 80 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny12V-1SC: SOIC8, Fmax=1.2 MHz, T=[0, 70 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny12V-1SI: SOIC8, Fmax=1.2 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny12V-1SU: SOIC8, Fmax=1.2 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny12V-1SUR: SOIC8, Fmax=1.2 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]"; - prog_modes = PM_ISP | PM_HVSP; - mcuid = 9; - n_interrupts = 6; - stk500_devcode = 0x12; - avr910_devcode = 0x55; - signature = 0x1e 0x90 0x05; - serial = yes; +part + desc = "AT90S1200"; + id = "1200"; + prog_modes = PM_SPM | PM_ISP | PM_HVPP; + mcuid = 183; + n_interrupts = 4; + stk500_devcode = 0x33; + avr910_devcode = 0x13; + chip_erase_delay = 20000; + pagel = 0xd7; + bs2 = 0xa0; + signature = 0x1e 0x90 0x01; + is_at90s1200 = yes; + timeout = 200; stabdelay = 100; cmdexedelay = 25; - synchloops = 32; - pollindex = 3; - pollvalue = 0x53; + synchloops = 1; + pollvalue = 0xff; predelay = 1; postdelay = 1; - chip_erase = "1010.1100--100x.xxxx--xxxx.xxxx--xxxx.xxxx"; + pp_controlstack = + 0x0e, 0x1e, 0x0f, 0x1f, 0x2e, 0x3e, 0x2f, 0x3f, + 0x4e, 0x5e, 0x4f, 0x5f, 0x6e, 0x7e, 0x6f, 0x7f, + 0x66, 0x76, 0x67, 0x77, 0x6a, 0x7a, 0x6b, 0x7b, + 0xbe, 0xfd, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00; + hventerstabdelay = 100; + hvleavestabdelay = 15; + chiperasepulsewidth = 15; + programfusepulsewidth = 2; + programlockpolltimeout = 1; + chip_erase = "1010.1100--1000.0000--xxxx.xxxx--xxxx.xxxx"; pgm_enable = "1010.1100--0101.0011--xxxx.xxxx--xxxx.xxxx"; memory "eeprom" size = 64; - min_write_delay = 9000; - max_write_delay = 20000; - readback = 0xff 0xff; - mode = 0x04; + min_write_delay = 4000; + max_write_delay = 9000; + readback = 0x00 0xff; + mode = 4; delay = 20; - blocksize = 64; + blocksize = 32; readsize = 256; read = "1010.0000--xxxx.xxxx--xxaa.aaaa--oooo.oooo"; write = "1100.0000--xxxx.xxxx--xxaa.aaaa--iiii.iiii"; ; memory "flash" - min_write_delay = 4500; - max_write_delay = 20000; - readback = 0xff 0x00; - mode = 0x04; - delay = 10; + size = 1024; + min_write_delay = 4000; + max_write_delay = 9000; + readback = 0xff 0xff; + mode = 2; + delay = 15; + blocksize = 128; + readsize = 256; read_lo = "0010.0000--xxxx.xxxa--aaaa.aaaa--oooo.oooo"; read_hi = "0010.1000--xxxx.xxxa--aaaa.aaaa--oooo.oooo"; write_lo = "0100.0000--xxxx.xxxa--aaaa.aaaa--iiii.iiii"; @@ -4007,60 +2761,37 @@ part parent "t11" # t12 ; memory "fuse" - initval = 0x52; - bitmask = -1; - min_write_delay = 9000; - max_write_delay = 9000; - read = "0101.0000--xxxx.xxxx--xxxx.xxxx--oooo.oooo"; - write = "1010.1100--101x.xxxx--xxxx.xxxx--iiii.iiii"; + size = 1; ; memory "lock" + size = 1; min_write_delay = 9000; - max_write_delay = 9000; - read = "0101.1000--xxxx.xxxx--xxxx.xxxx--xxxx.xoox"; + max_write_delay = 20000; write = "1010.1100--1111.1ii1--xxxx.xxxx--xxxx.xxxx"; ; - memory "prodsig" - read = "0 0 1 1 a0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 a4 a3 a2 a1 o o o o o o o o"; - ; - memory "signature" - read = "0011.0000--xxxx.xxxx--0000.00aa--oooo.oooo"; - ; - - memory "calibration" - read = "0011.1000--xxxx.xxxx--0000.0000--oooo.oooo"; - ; - - memory "sernum" - read = "0 0 1 1 a0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 a4 a3 a2 a1 o o o o o o o o"; + size = 3; + read = "0011.0000--xxxx.xxxx--xxxx.xxaa--oooo.oooo"; ; ; #------------------------------------------------------------ -# ATtiny15 +# AT90s4414 #------------------------------------------------------------ -part parent "t11" # t15 - desc = "ATtiny15"; - id = "t15"; - variants = - "ATtiny15L-1PC: DIP8, Fmax=1.6 MHz, T=[0 C, 70 C], Vcc=[2.7 V, 5.5 V]", - "ATtiny15L-1PI: DIP8, Fmax=1.6 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATtiny15L-1PU: DIP8, Fmax=1.6 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATtiny15L-1SC: SOIC8, Fmax=1.6 MHz, T=[0 C, 70 C], Vcc=[2.7 V, 5.5 V]", - "ATtiny15L-1SI: SOIC8, Fmax=1.6 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATtiny15L-1SU: SOIC8, Fmax=1.6 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]"; - prog_modes = PM_ISP | PM_HVSP; - mcuid = 12; - n_interrupts = 9; - stk500_devcode = 0x13; - avr910_devcode = 0x56; - chip_erase_delay = 8200; - signature = 0x1e 0x90 0x06; - serial = yes; +part + desc = "AT90S4414"; + id = "4414"; + prog_modes = PM_SPM | PM_ISP | PM_HVPP; + mcuid = 190; + n_interrupts = 13; + stk500_devcode = 0x50; + avr910_devcode = 0x28; + chip_erase_delay = 20000; + signature = 0x1e 0x92 0x01; + timeout = 200; stabdelay = 100; cmdexedelay = 25; synchloops = 32; @@ -4068,88 +2799,78 @@ part parent "t11" # t15 pollvalue = 0x53; predelay = 1; postdelay = 1; - latchcycles = 16; - hvspcmdexedelay = 5; - factory_fcpu = 1600000; - chip_erase = "1010.1100--100x.xxxx--xxxx.xxxx--xxxx.xxxx"; + pp_controlstack = + 0x0e, 0x1e, 0x0f, 0x1f, 0x2e, 0x3e, 0x2f, 0x3f, + 0x4e, 0x5e, 0x4f, 0x5f, 0x6e, 0x7e, 0x6f, 0x7f, + 0x66, 0x76, 0x67, 0x77, 0x6a, 0x7a, 0x6b, 0x7b, + 0xbe, 0xfd, 0x00, 0x01, 0x00, 0x00, 0x00, 0x01; + hventerstabdelay = 100; + hvleavestabdelay = 15; + chiperasepulsewidth = 15; + programfusepulsewidth = 2; + programlockpolltimeout = 1; + chip_erase = "1010.1100--1000.0000--xxxx.xxxx--xxxx.xxxx"; pgm_enable = "1010.1100--0101.0011--xxxx.xxxx--xxxx.xxxx"; memory "eeprom" - size = 64; - min_write_delay = 8200; - max_write_delay = 8200; - readback = 0xff 0xff; - mode = 0x04; - delay = 20; + size = 256; + min_write_delay = 9000; + max_write_delay = 20000; + readback = 0x80 0x7f; + mode = 4; + delay = 12; blocksize = 64; readsize = 256; - read = "1010.0000--xxxx.xxxx--xxaa.aaaa--oooo.oooo"; - write = "1100.0000--xxxx.xxxx--xxaa.aaaa--iiii.iiii"; + read = "1010.0000--xxxx.xxxa--aaaa.aaaa--oooo.oooo"; + write = "1100.0000--xxxx.xxxa--aaaa.aaaa--iiii.iiii"; ; memory "flash" - min_write_delay = 4100; - max_write_delay = 4100; - readback = 0xff 0x00; - mode = 0x04; - delay = 10; - read_lo = "0010.0000--xxxx.xxxa--aaaa.aaaa--oooo.oooo"; - read_hi = "0010.1000--xxxx.xxxa--aaaa.aaaa--oooo.oooo"; - write_lo = "0100.0000--xxxx.xxxa--aaaa.aaaa--iiii.iiii"; - write_hi = "0100.1000--xxxx.xxxa--aaaa.aaaa--iiii.iiii"; + size = 4096; + min_write_delay = 9000; + max_write_delay = 20000; + readback = 0x7f 0x7f; + mode = 4; + delay = 12; + blocksize = 64; + readsize = 256; + read_lo = "0010.0000--xxxx.aaaa--aaaa.aaaa--oooo.oooo"; + read_hi = "0010.1000--xxxx.aaaa--aaaa.aaaa--oooo.oooo"; + write_lo = "0100.0000--xxxx.aaaa--aaaa.aaaa--iiii.iiii"; + write_hi = "0100.1000--xxxx.aaaa--aaaa.aaaa--iiii.iiii"; ; memory "fuse" - initval = 0x5c; - bitmask = 0xf3; - min_write_delay = 9000; - max_write_delay = 9000; - read = "0101.0000--xxxx.xxxx--xxxx.xxxx--oooo.xxoo"; - write = "1010.1100--101x.xxxx--xxxx.xxxx--iiii.11ii"; + size = 1; ; memory "lock" + size = 1; min_write_delay = 9000; max_write_delay = 9000; - read = "0101.1000--xxxx.xxxx--xxxx.xxxx--xxxx.xoox"; write = "1010.1100--1111.1ii1--xxxx.xxxx--xxxx.xxxx"; ; - memory "prodsig" - read = "0 0 1 1 a0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 a4 a3 a2 a1 o o o o o o o o"; - ; - memory "signature" - read = "0011.0000--xxxx.xxxx--0000.00aa--oooo.oooo"; - ; - - memory "calibration" - read = "0011.1000--xxxx.xxxx--0000.0000--oooo.oooo"; - ; - - memory "sernum" - read = "0 0 1 1 a0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 a4 a3 a2 a1 o o o o o o o o"; + size = 3; + read = "0011.0000--xxxx.xxxx--xxxx.xxaa--oooo.oooo"; ; ; #------------------------------------------------------------ -# ATtiny22 +# AT90s2313 #------------------------------------------------------------ -part parent ".classic-nocal" # t22 - desc = "ATtiny22"; - id = "t22"; - variants = - "ATtiny22L-1PC: DIP8, Fmax=1 MHz, T=[0 C, 70 C], Vcc=[2.7 V, 6 V]", - "ATtiny22L-1PI: DIP8, Fmax=1 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 6 V]", - "ATtiny22L-1SC: SOIC8, Fmax=1 MHz, T=[0 C, 70 C], Vcc=[2.7 V, 6 V]", - "ATtiny22L-1SI: SOIC8, Fmax=1 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 6 V]"; - prog_modes = PM_SPM | PM_ISP | PM_HVSP; - mcuid = 13; - n_interrupts = 3; - stk500_devcode = 0x20; - chip_erase_delay = 18000; - signature = 0x1e 0x91 0x06; +part + desc = "AT90S2313"; + id = "2313"; + prog_modes = PM_SPM | PM_ISP | PM_HVPP; + mcuid = 186; + n_interrupts = 11; + stk500_devcode = 0x40; + avr910_devcode = 0x20; + chip_erase_delay = 20000; + signature = 0x1e 0x91 0x01; timeout = 200; stabdelay = 100; cmdexedelay = 25; @@ -4158,47 +2879,41 @@ part parent ".classic-nocal" # t22 pollvalue = 0x53; predelay = 1; postdelay = 1; - hvsp_controlstack = - 0x4c, 0x0c, 0x1c, 0x2c, 0x3c, 0x64, 0x74, 0x00, - 0x68, 0x78, 0x68, 0x68, 0x00, 0x00, 0x68, 0x78, - 0x78, 0x00, 0x6d, 0x0c, 0x80, 0x40, 0x20, 0x10, - 0x11, 0x08, 0x04, 0x02, 0x03, 0x08, 0x04, 0x00; + pp_controlstack = + 0x0e, 0x1e, 0x0f, 0x1f, 0x2e, 0x3e, 0x2f, 0x3f, + 0x4e, 0x5e, 0x4f, 0x5f, 0x6e, 0x7e, 0x6f, 0x7f, + 0x66, 0x76, 0x67, 0x77, 0x6a, 0x7a, 0x6b, 0x7b, + 0xbe, 0xfd, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00; hventerstabdelay = 100; - latchcycles = 1; - poweroffdelay = 25; - resetdelayus = 50; - hvleavestabdelay = 100; - resetdelay = 25; - chiperasepolltimeout = 40; - programfusepolltimeout = 25; - programlockpolltimeout = 25; - synchcycles = 6; - factory_fcpu = 1000000; - chip_erase = "1010.1100--100x.xxxx--xxxx.xxxx--xxxx.xxxx"; + hvleavestabdelay = 15; + chiperasepulsewidth = 15; + programfusepulsewidth = 2; + programlockpolltimeout = 1; + chip_erase = "1010.1100--1000.0000--xxxx.xxxx--xxxx.xxxx"; pgm_enable = "1010.1100--0101.0011--xxxx.xxxx--xxxx.xxxx"; memory "eeprom" size = 128; - min_write_delay = 9000; - max_write_delay = 20000; - readback = 0x00 0xff; - mode = 0x04; + min_write_delay = 4000; + max_write_delay = 9000; + readback = 0x80 0x7f; + mode = 4; delay = 12; blocksize = 64; readsize = 256; - read = "1010.0000--0000.0000--xaaa.aaaa--oooo.oooo"; - write = "1100.0000--0000.0000--xaaa.aaaa--iiii.iiii"; + read = "1010.0000--xxxx.xxxx--xaaa.aaaa--oooo.oooo"; + write = "1100.0000--xxxx.xxxx--xaaa.aaaa--iiii.iiii"; ; memory "flash" size = 2048; - min_write_delay = 9000; - max_write_delay = 20000; - readback = 0xff 0xff; - mode = 0x04; + min_write_delay = 4000; + max_write_delay = 9000; + readback = 0x7f 0x7f; + mode = 4; delay = 12; blocksize = 128; - readsize = 128; + readsize = 256; read_lo = "0010.0000--xxxx.xxaa--aaaa.aaaa--oooo.oooo"; read_hi = "0010.1000--xxxx.xxaa--aaaa.aaaa--oooo.oooo"; write_lo = "0100.0000--xxxx.xxaa--aaaa.aaaa--iiii.iiii"; @@ -4207,70 +2922,36 @@ part parent ".classic-nocal" # t22 memory "fuse" size = 1; - bitmask = 0x21; - min_write_delay = 9000; - max_write_delay = 20000; - read = "0101.1000--xxxx.xxxx--xxxx.xxxx--xxox.xxxo"; - write = "1010.1100--1011.111i--xxxx.xxxx--xxxx.xxxx"; ; memory "lock" - bitmask = 0x06; + size = 1; min_write_delay = 9000; - max_write_delay = 20000; - read = "0 1 0 1 1 0 0 0 x x x x x x x x x x x x x x x x o1 o2 x x x x x x"; - write = "1010.1100--1111.1ii1--xxxx.xxxx--xxxx.xxxx"; - ; - - memory "io" - size = 64; + max_write_delay = 9000; + write = "1010.1100--111x.xiix--xxxx.xxxx--xxxx.xxxx"; ; - memory "sram" - size = 128; - offset = 0x60; + memory "signature" + size = 3; + read = "0011.0000--xxxx.xxxx--xxxx.xxaa--oooo.oooo"; ; ; #------------------------------------------------------------ -# ATtiny13 +# AT90s2333 #------------------------------------------------------------ -part parent ".classic" # t13 - desc = "ATtiny13"; - id = "t13"; - variants = - "ATtiny13: N/A, Fmax=20 MHz, T=[N/A, 85 C], Vcc=[N/A, N/A]", - "ATtiny13-20MMU: MLF10, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATtiny13-20MMUR: VDFN10, Fmax=20 MHz, T=[N/A, N/A], Vcc=[2.7 V, 5.5 V]", - "ATtiny13-20MU: MLF20, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATtiny13-20MUR: WQFN20, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATtiny13-20PU: PDIP8, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATtiny13-20SQ: SOIC8, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATtiny13-20SQR: SOIC8, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATtiny13-20SSQ: SOIC8N, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATtiny13-20SSQR: SOIC8, Fmax=20 MHz, T=[N/A, N/A], Vcc=[2.7 V, 5.5 V]", - "ATtiny13-20SSU: SOIC8N, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATtiny13-20SSUR: SOIC8N, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATtiny13-20SU: SOIC8, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATtiny13-20SUR: SOIC8, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATtiny13V-10MMU: MLF10, Fmax=10 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny13V-10MMUR: VDFN10, Fmax=10 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny13V-10MU: MLF20, Fmax=10 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny13V-10MUR: WQFN20, Fmax=10 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny13V-10PQ: PDIP8, Fmax=10 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny13V-10PU: PDIP8, Fmax=10 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny13V-10SSU: SOIC8N, Fmax=10 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny13V-10SSUR: SOIC8N, Fmax=10 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny13V-10SU: SOIC8, Fmax=10 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny13V-10SUR: SOIC8, Fmax=10 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]"; - prog_modes = PM_SPM | PM_ISP | PM_HVSP | PM_debugWIRE; - mcuid = 10; - archnum = 25; - n_interrupts = 10; - stk500_devcode = 0x14; - chip_erase_delay = 4000; - signature = 0x1e 0x90 0x07; +part +##### WARNING: No XML file for device 'AT90S2333'! ##### + desc = "AT90S2333"; + id = "2333"; + prog_modes = PM_SPM | PM_ISP | PM_HVPP; + mcuid = 188; + n_interrupts = 14; + stk500_devcode = 0x42; + avr910_devcode = 0x34; + chip_erase_delay = 20000; + signature = 0x1e 0x91 0x05; timeout = 200; stabdelay = 100; cmdexedelay = 25; @@ -4279,481 +2960,320 @@ part parent ".classic" # t13 pollvalue = 0x53; predelay = 1; postdelay = 1; - pollmethod = 1; - hvsp_controlstack = - 0x4c, 0x0c, 0x1c, 0x2c, 0x3c, 0x64, 0x74, 0x66, - 0x68, 0x78, 0x68, 0x68, 0x7a, 0x6a, 0x68, 0x78, - 0x78, 0x7d, 0x6d, 0x0c, 0x80, 0x40, 0x20, 0x10, - 0x11, 0x08, 0x04, 0x02, 0x03, 0x08, 0x04, 0x00; - flash_instr = 0xb4, 0x0e, 0x1e; - eeprom_instr = - 0xbb, 0xfe, 0xbb, 0xee, 0xbb, 0xcc, 0xb2, 0x0d, - 0xbc, 0x0e, 0xb4, 0x0e, 0xba, 0x0d, 0xbb, 0xbc, - 0x99, 0xe1, 0xbb, 0xac; + pp_controlstack = + 0x0e, 0x1e, 0x0f, 0x1f, 0x2e, 0x3e, 0x2f, 0x3f, + 0x4e, 0x5e, 0x4f, 0x5f, 0x6e, 0x7e, 0x6f, 0x7f, + 0x66, 0x76, 0x67, 0x77, 0x6a, 0x7a, 0x6b, 0x7b, + 0xbe, 0xfd, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00; hventerstabdelay = 100; - latchcycles = 1; - togglevtg = 1; - poweroffdelay = 25; - resetdelayms = 1; - hvleavestabdelay = 100; - resetdelay = 25; - chiperasepolltimeout = 40; - programfusepolltimeout = 25; - programlockpolltimeout = 25; - synchcycles = 6; - idr = 0x2e; - spmcr = 0x57; - eecr = 0x3c; - ocdrev = 0; - factory_fcpu = 1200000; + hvleavestabdelay = 15; + chiperasepulsewidth = 15; + programfusepulsewidth = 2; + programlockpolltimeout = 1; + chip_erase = "1010.1100--1000.0000--xxxx.xxxx--xxxx.xxxx"; + pgm_enable = "1010.1100--0101.0011--xxxx.xxxx--xxxx.xxxx"; memory "eeprom" - size = 64; - page_size = 4; - min_write_delay = 4000; - max_write_delay = 4000; - mode = 0x41; - delay = 5; - blocksize = 4; + size = 128; + min_write_delay = 9000; + max_write_delay = 20000; + readback = 0x00 0xff; + mode = 4; + delay = 12; + blocksize = 128; readsize = 256; - read = "1010.0000--000x.xxxx--xxaa.aaaa--oooo.oooo"; - write = "1100.0000--000x.xxxx--xxaa.aaaa--iiii.iiii"; - loadpage_lo = "1100.0001--0000.0000--0000.00aa--iiii.iiii"; - writepage = "1100.0010--00xx.xxxx--xxaa.aa00--xxxx.xxxx"; + read = "1010.0000--xxxx.xxxx--xaaa.aaaa--oooo.oooo"; + write = "1100.0000--xxxx.xxxx--xaaa.aaaa--iiii.iiii"; ; memory "flash" - paged = yes; - size = 1024; - page_size = 32; - num_pages = 32; - min_write_delay = 4500; - max_write_delay = 4500; - mode = 0x41; - delay = 10; - blocksize = 32; + size = 2048; + min_write_delay = 9000; + max_write_delay = 20000; + readback = 0xff 0xff; + mode = 4; + delay = 12; + blocksize = 128; readsize = 256; - read_lo = "0010.0000--0000.000a--aaaa.aaaa--oooo.oooo"; - read_hi = "0010.1000--0000.000a--aaaa.aaaa--oooo.oooo"; - loadpage_lo = "0100.0000--000x.xxxx--xxxx.aaaa--iiii.iiii"; - loadpage_hi = "0100.1000--000x.xxxx--xxxx.aaaa--iiii.iiii"; - writepage = "0100.1100--0000.000a--aaaa.xxxx--xxxx.xxxx"; - ; - - memory "lfuse" - size = 1; - initval = 0x6a; - min_write_delay = 4500; - max_write_delay = 4500; - read = "0101.0000--0000.0000--xxxx.xxxx--oooo.oooo"; - write = "1010.1100--1010.0000--xxxx.xxxx--iiii.iiii"; + read_lo = "0010.0000--xxxx.xxaa--aaaa.aaaa--oooo.oooo"; + read_hi = "0010.1000--xxxx.xxaa--aaaa.aaaa--oooo.oooo"; + write_lo = "0100.0000--xxxx.xxaa--aaaa.aaaa--iiii.iiii"; + write_hi = "0100.1000--xxxx.xxaa--aaaa.aaaa--iiii.iiii"; ; - memory "hfuse" + memory "fuse" size = 1; - initval = 0xff; - bitmask = 0x1f; - min_write_delay = 4500; - max_write_delay = 4500; - read = "0101.1000--0000.1000--xxxx.xxxx--oooo.oooo"; - write = "1010.1100--1010.1000--xxxx.xxxx--iiii.iiii"; + min_write_delay = 9000; + max_write_delay = 20000; + pwroff_after_write = yes; + read = "0101.0000--xxxx.xxxx--xxxx.xxxx--xxoo.oooo"; + write = "1010.1100--101i.iiii--xxxx.xxxx--xxxx.xxxx"; ; memory "lock" - bitmask = 0x03; - min_write_delay = 4500; - max_write_delay = 4500; - ; - - memory "calibration" - size = 2; - read = "0011.1000--000x.xxxx--0000.000a--oooo.oooo"; - ; - - memory "io" - size = 64; + size = 1; + min_write_delay = 9000; + max_write_delay = 20000; + read = "0101.1000--xxxx.xxxx--xxxx.xxxx--xxxx.xoox"; + write = "1010.1100--1111.1ii1--xxxx.xxxx--xxxx.xxxx"; ; - memory "sram" - size = 64; - offset = 0x60; + memory "signature" + size = 3; + read = "0011.0000--xxxx.xxxx--xxxx.xxaa--oooo.oooo"; ; ; #------------------------------------------------------------ -# ATtiny13A -#------------------------------------------------------------ - -part parent "t13" # t13a - desc = "ATtiny13A"; - id = "t13a"; - variants = - "ATtiny13A-MMF: VDFN10, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny13A-MMFR: VDFN10, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny13A-MMU: MLF10, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny13A-MMUR: MLF10, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny13A-MU: MLF20, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny13A-MUR: WQFN20, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny13A-PU: PDIP8, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny13A-SF: SOIC8, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny13A-SFR: SOIC8, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny13A-SH: SOIC8, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny13A-SN: SOIC8, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny13A-SNR: SOIC8, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny13A-SS7: SOIC8, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny13A-SS7R: SOIC8, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny13A-SSH: SOIC8, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny13A-SSHR: SOIC8N, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny13A-SSU: SOIC8, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny13A-SSUR: SOIC8, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny13A-SU: SOIC8, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny13A-SUR: SOIC8, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 11; -; - -#------------------------------------------------------------ -# ATtiny25 +# AT90s2343 (also AT90s2323 and ATtiny22) #------------------------------------------------------------ -part parent "t13" # t25 - desc = "ATtiny25"; - id = "t25"; - variants = - "ATtiny25: N/A, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[N/A, N/A]", - "ATtiny25-15ST: SOIC8, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATtiny25-20MF: MLF20, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATtiny25-20MFR: MLF20, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATtiny25-20MU: MLF20, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATtiny25-20MUR: MLF20, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATtiny25-20PU: PDIP8, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATtiny25-20SN: SOIC8, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATtiny25-20SNR: SOIC8, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATtiny25-20SSH: SOIC8, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATtiny25-20SSHR: SOIC8, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATtiny25-20SSN: SOIC8, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATtiny25-20SSNR: SOIC8, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATtiny25-20SSU: SOIC8N, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATtiny25-20SSUR: SOIC8N, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATtiny25-20SU: SOIC8, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATtiny25-20SUR: SOIC8, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATtiny25V-10MF: MLF20, Fmax=10 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny25V-10MFR: MLF20, Fmax=10 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny25V-10MU: MLF20, Fmax=10 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny25V-10MUR: MLF20, Fmax=10 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny25V-10PU: PDIP8, Fmax=10 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny25V-10SH: SOIC8, Fmax=10 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny25V-10SN: SOIC8, Fmax=10 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny25V-10SNR: SOIC8, Fmax=10 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny25V-10SSH: SOIC8, Fmax=10 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny25V-10SSHR: SOIC8, Fmax=10 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny25V-10SSN: SOIC8, Fmax=10 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny25V-10SSNR: SOIC8, Fmax=10 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny25V-10SSU: SOIC8N, Fmax=10 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny25V-10SSUR: SOIC8N, Fmax=10 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny25V-10SU: SOIC8, Fmax=10 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny25V-10SUR: SOIC8, Fmax=10 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny25V-20MF: MLF20, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[2.7 V, 5.5 V]", - "ATtiny25V-20MU: MLF20, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATtiny25V-20PU: PDIP8, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATtiny25V-20SH: SOIC8, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATtiny25V-20SN: SOIC8, Fmax=20 MHz, T=[-40 C, 105 C], Vcc=[2.7 V, 5.5 V]", - "ATtiny25V-20SSH: SOIC8, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATtiny25V-20SSN: SOIC8, Fmax=20 MHz, T=[-40 C, 105 C], Vcc=[2.7 V, 5.5 V]", - "ATtiny25V-20SSU: SOIC8, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATtiny25V-20SU: SOIC8, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]"; - mcuid = 16; - n_interrupts = 15; -# avr910_devcode = ?; -# Try the AT90S2313 devcode: - avr910_devcode = 0x20; - chip_erase_delay = 4500; - signature = 0x1e 0x91 0x08; - reset = io; - flash_instr = 0xb4, 0x02, 0x12; - eeprom_instr = - 0xbb, 0xff, 0xbb, 0xee, 0xbb, 0xcc, 0xb2, 0x0d, - 0xbc, 0x02, 0xb4, 0x02, 0xba, 0x0d, 0xbb, 0xbc, - 0x99, 0xe1, 0xbb, 0xac; - idr = 0x22; - ocdrev = 1; - factory_fcpu = 1000000; +part + desc = "AT90S2343"; + id = "2343"; + prog_modes = PM_SPM | PM_ISP | PM_HVSP; + mcuid = 189; + n_interrupts = 3; + stk500_devcode = 0x43; + avr910_devcode = 0x4c; + chip_erase_delay = 18000; + signature = 0x1e 0x91 0x03; + timeout = 200; + stabdelay = 100; + cmdexedelay = 25; + synchloops = 32; + pollindex = 3; + pollvalue = 0x53; + predelay = 1; + postdelay = 1; + hvsp_controlstack = + 0x4c, 0x0c, 0x1c, 0x2c, 0x3c, 0x64, 0x74, 0x00, + 0x68, 0x78, 0x68, 0x68, 0x00, 0x00, 0x68, 0x78, + 0x78, 0x00, 0x6d, 0x0c, 0x80, 0x40, 0x20, 0x10, + 0x11, 0x08, 0x04, 0x02, 0x03, 0x08, 0x04, 0x00; + hventerstabdelay = 100; + latchcycles = 1; + poweroffdelay = 25; + resetdelayus = 50; + hvleavestabdelay = 100; + resetdelay = 25; + chiperasepolltimeout = 40; + programfusepolltimeout = 25; + programlockpolltimeout = 25; + synchcycles = 6; + chip_erase = "1010.1100--100x.xxxx--xxxx.xxxx--xxxx.xxxx"; + pgm_enable = "1010.1100--0101.0011--xxxx.xxxx--xxxx.xxxx"; memory "eeprom" size = 128; - max_write_delay = 4500; - read = "1010.0000--000x.xxxx--xaaa.aaaa--oooo.oooo"; - write = "1100.0000--000x.xxxx--xaaa.aaaa--iiii.iiii"; - writepage = "1100.0010--00xx.xxxx--xaaa.aa00--xxxx.xxxx"; + min_write_delay = 9000; + max_write_delay = 20000; + readback = 0x00 0xff; + mode = 4; + delay = 12; + blocksize = 64; + readsize = 256; + read = "1010.0000--0000.0000--xaaa.aaaa--oooo.oooo"; + write = "1100.0000--0000.0000--xaaa.aaaa--iiii.iiii"; ; memory "flash" size = 2048; - num_pages = 64; - read_lo = "0010.0000--0000.00aa--aaaa.aaaa--oooo.oooo"; - read_hi = "0010.1000--0000.00aa--aaaa.aaaa--oooo.oooo"; - writepage = "0100.1100--0000.00aa--aaaa.xxxx--xxxx.xxxx"; - ; - - memory "lfuse" - initval = 0x62; - min_write_delay = 9000; - max_write_delay = 9000; - ; - - memory "hfuse" - initval = 0xdf; - bitmask = -1; min_write_delay = 9000; - max_write_delay = 9000; + max_write_delay = 20000; + readback = 0xff 0xff; + mode = 4; + delay = 12; + blocksize = 128; + readsize = 128; + read_lo = "0010.0000--xxxx.xxaa--aaaa.aaaa--oooo.oooo"; + read_hi = "0010.1000--xxxx.xxaa--aaaa.aaaa--oooo.oooo"; + write_lo = "0100.0000--xxxx.xxaa--aaaa.aaaa--iiii.iiii"; + write_hi = "0100.1000--xxxx.xxaa--aaaa.aaaa--iiii.iiii"; ; - memory "efuse" + memory "fuse" size = 1; - initval = 0xff; - bitmask = 0x01; min_write_delay = 9000; - max_write_delay = 9000; - read = "0101.0000--0000.1000--xxxx.xxxx--oooo.oooo"; - write = "1010.1100--1010.0100--xxxx.xxxx--xxxx.xxxi"; + max_write_delay = 20000; + read = "0101.1000--xxxx.xxxx--xxxx.xxxx--ooox.xxxo"; + write = "1010.1100--1011.111i--xxxx.xxxx--xxxx.xxxx"; ; memory "lock" + size = 1; min_write_delay = 9000; - max_write_delay = 9000; + max_write_delay = 20000; + read = "0101.1000--xxxx.xxxx--xxxx.xxxx--ooox.xxxo"; + write = "1010.1100--1111.1ii1--xxxx.xxxx--xxxx.xxxx"; ; - memory "sram" - size = 128; + memory "signature" + size = 3; + read = "0011.0000--xxxx.xxxx--xxxx.xxaa--oooo.oooo"; ; ; #------------------------------------------------------------ -# ATtiny45 +# AT90s4433 #------------------------------------------------------------ -part parent "t13" # t45 - desc = "ATtiny45"; - id = "t45"; - variants = - "ATtiny45: N/A, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[N/A, N/A]", - "ATtiny45-15SZ: SOIC8, Fmax=N/A, T=[-40 C, 85 C], Vcc=[N/A, N/A]", - "ATtiny45-20MU: MLF20, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATtiny45-20MUR: MLF20, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATtiny45-20PU: PDIP8, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATtiny45-20SU: SOIC8, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATtiny45-20SUR: SOIC8, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATtiny45-20XU: TSSOP8, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATtiny45-20XUR: TSSOP8, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATtiny45V-10MU: MLF20, Fmax=10 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny45V-10MUR: MLF20, Fmax=10 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny45V-10PU: PDIP8, Fmax=10 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny45V-10SH: SOIC8, Fmax=10 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny45V-10SU: SOIC8, Fmax=10 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny45V-10SUR: SOIC8, Fmax=10 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny45V-10XU: TSSOP8, Fmax=10 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny45V-10XUR: TSSOP8, Fmax=10 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny45V-20MU: MLF20, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATtiny45V-20PU: PDIP8, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATtiny45V-20SH: SOIC8, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATtiny45V-20SU: SOIC8, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATtiny45V-20XU: TSSOP8, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]"; - mcuid = 22; - n_interrupts = 15; -# avr910_devcode = ?; -# Try the AT90S2313 devcode: - avr910_devcode = 0x20; - chip_erase_delay = 4500; - signature = 0x1e 0x92 0x06; - reset = io; - flash_instr = 0xb4, 0x02, 0x12; - eeprom_instr = - 0xbb, 0xff, 0xbb, 0xee, 0xbb, 0xcc, 0xb2, 0x0d, - 0xbc, 0x02, 0xb4, 0x02, 0xba, 0x0d, 0xbb, 0xbc, - 0x99, 0xe1, 0xbb, 0xac; - idr = 0x22; - ocdrev = 1; - factory_fcpu = 1000000; - - memory "eeprom" - size = 256; - max_write_delay = 4500; - read = "1010.0000--000x.xxxx--aaaa.aaaa--oooo.oooo"; - write = "1100.0000--000x.xxxx--aaaa.aaaa--iiii.iiii"; - writepage = "1100.0010--00xx.xxxx--aaaa.aa00--xxxx.xxxx"; - ; - - memory "flash" - size = 4096; - page_size = 64; - num_pages = 64; - blocksize = 64; - read_lo = "0010.0000--0000.0aaa--aaaa.aaaa--oooo.oooo"; - read_hi = "0010.1000--0000.0aaa--aaaa.aaaa--oooo.oooo"; - loadpage_lo = "0100.0000--000x.xxxx--xxxa.aaaa--iiii.iiii"; - loadpage_hi = "0100.1000--000x.xxxx--xxxa.aaaa--iiii.iiii"; - writepage = "0100.1100--0000.0aaa--aaax.xxxx--xxxx.xxxx"; - ; +part + desc = "AT90S4433"; + id = "4433"; + prog_modes = PM_SPM | PM_ISP | PM_HVPP; + mcuid = 191; + n_interrupts = 14; + stk500_devcode = 0x51; + avr910_devcode = 0x30; + chip_erase_delay = 20000; + signature = 0x1e 0x92 0x03; + timeout = 200; + stabdelay = 100; + cmdexedelay = 25; + synchloops = 32; + pollindex = 3; + pollvalue = 0x53; + predelay = 1; + postdelay = 1; + pp_controlstack = + 0x0e, 0x1e, 0x0f, 0x1f, 0x2e, 0x3e, 0x2f, 0x3f, + 0x4e, 0x5e, 0x4f, 0x5f, 0x6e, 0x7e, 0x6f, 0x7f, + 0x66, 0x76, 0x67, 0x77, 0x6a, 0x7a, 0x6b, 0x7b, + 0xbe, 0xfd, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00; + hventerstabdelay = 100; + hvleavestabdelay = 15; + chiperasepulsewidth = 15; + programfusepulsewidth = 2; + programlockpolltimeout = 1; + chip_erase = "1010.1100--1000.0000--xxxx.xxxx--xxxx.xxxx"; + pgm_enable = "1010.1100--0101.0011--xxxx.xxxx--xxxx.xxxx"; - memory "lfuse" - initval = 0x62; + memory "eeprom" + size = 256; min_write_delay = 9000; - max_write_delay = 9000; + max_write_delay = 20000; + readback = 0x00 0xff; + mode = 4; + delay = 12; + blocksize = 128; + readsize = 256; + read = "1010.0000--xxxx.xxxx--aaaa.aaaa--oooo.oooo"; + write = "1100.0000--xxxx.xxxx--aaaa.aaaa--iiii.iiii"; ; - memory "hfuse" - initval = 0xdf; - bitmask = -1; + memory "flash" + size = 4096; min_write_delay = 9000; - max_write_delay = 9000; + max_write_delay = 20000; + readback = 0xff 0xff; + mode = 4; + delay = 12; + blocksize = 128; + readsize = 256; + read_lo = "0010.0000--xxxx.xaaa--aaaa.aaaa--oooo.oooo"; + read_hi = "0010.1000--xxxx.xaaa--aaaa.aaaa--oooo.oooo"; + write_lo = "0100.0000--xxxx.xaaa--aaaa.aaaa--iiii.iiii"; + write_hi = "0100.1000--xxxx.xaaa--aaaa.aaaa--iiii.iiii"; ; - memory "efuse" + memory "fuse" size = 1; - initval = 0xff; - bitmask = 0x01; min_write_delay = 9000; - max_write_delay = 9000; - read = "0101.0000--0000.1000--xxxx.xxxx--oooo.oooo"; - write = "1010.1100--1010.0100--xxxx.xxxx--xxxx.xxxi"; + max_write_delay = 20000; + pwroff_after_write = yes; + read = "0101.0000--xxxx.xxxx--xxxx.xxxx--xxoo.oooo"; + write = "1010.1100--101i.iiii--xxxx.xxxx--xxxx.xxxx"; ; memory "lock" + size = 1; min_write_delay = 9000; - max_write_delay = 9000; + max_write_delay = 20000; + read = "0101.1000--xxxx.xxxx--xxxx.xxxx--xxxx.xoox"; + write = "1010.1100--1111.1ii1--xxxx.xxxx--xxxx.xxxx"; ; - memory "sram" - size = 256; + memory "signature" + size = 3; + read = "0011.0000--xxxx.xxxx--xxxx.xxaa--oooo.oooo"; ; ; #------------------------------------------------------------ -# ATtiny85 +# AT90s4434 #------------------------------------------------------------ -part parent "t13" # t85 - desc = "ATtiny85"; - id = "t85"; - variants = - "ATtiny85: N/A, Fmax=20 MHz, T=[N/A, 85 C], Vcc=[N/A, N/A]", - "ATtiny85-20MU: MLF20, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATtiny85-20MUR: MLF20, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATtiny85-20PU: PDIP8, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATtiny85-20SF: SOIC8, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny85-20SFR: SOIC8, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATtiny85-20SU: SOIC8, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATtiny85-20SUR: SOIC8, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATtiny85V-10MU: MLF20, Fmax=10 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny85V-10MUR: MLF20, Fmax=10 MHz, T=[N/A, N/A], Vcc=[1.8 V, 5.5 V]", - "ATtiny85V-10PU: PDIP8, Fmax=10 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny85V-10SH: SOIC8, Fmax=10 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny85V-10SU: SOIC8, Fmax=10 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny85V-10SUR: SOIC8, Fmax=10 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny85V-20MU: MLF20, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATtiny85V-20PU: PDIP8, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATtiny85V-20SH: SOIC8, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATtiny85V-20SU: SOIC8, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]"; - mcuid = 26; - n_interrupts = 15; -# avr910_devcode = ?; -# Try the AT90S2313 devcode: - avr910_devcode = 0x20; - chip_erase_delay = 4500; - signature = 0x1e 0x93 0x0b; - reset = io; - flash_instr = 0xb4, 0x02, 0x12; - eeprom_instr = - 0xbb, 0xff, 0xbb, 0xee, 0xbb, 0xcc, 0xb2, 0x0d, - 0xbc, 0x02, 0xb4, 0x02, 0xba, 0x0d, 0xbb, 0xbc, - 0x99, 0xe1, 0xbb, 0xac; - idr = 0x22; - ocdrev = 1; - factory_fcpu = 1000000; +part +##### WARNING: No XML file for device 'AT90S4434'! ##### + desc = "AT90S4434"; + id = "4434"; + prog_modes = PM_SPM | PM_ISP; + mcuid = 192; + n_interrupts = 17; + stk500_devcode = 0x52; + avr910_devcode = 0x6c; + chip_erase_delay = 20000; + signature = 0x1e 0x92 0x02; + chip_erase = "1010.1100--1000.0000--xxxx.xxxx--xxxx.xxxx"; + pgm_enable = "1010.1100--0101.0011--xxxx.xxxx--xxxx.xxxx"; memory "eeprom" - size = 512; - max_write_delay = 4500; - read = "1010.0000--000x.xxxa--aaaa.aaaa--oooo.oooo"; - write = "1100.0000--000x.xxxa--aaaa.aaaa--iiii.iiii"; - writepage = "1100.0010--00xx.xxxa--aaaa.aa00--xxxx.xxxx"; - ; - - memory "flash" - size = 8192; - page_size = 64; - num_pages = 128; - blocksize = 64; - read_lo = "0010.0000--0000.aaaa--aaaa.aaaa--oooo.oooo"; - read_hi = "0010.1000--0000.aaaa--aaaa.aaaa--oooo.oooo"; - loadpage_lo = "0100.0000--000x.xxxx--xxxa.aaaa--iiii.iiii"; - loadpage_hi = "0100.1000--000x.xxxx--xxxa.aaaa--iiii.iiii"; - writepage = "0100.1100--0000.aaaa--aaax.xxxx--xxxx.xxxx"; - ; - - memory "lfuse" - initval = 0x62; + size = 256; min_write_delay = 9000; - max_write_delay = 9000; + max_write_delay = 20000; + readback = 0x00 0xff; + read = "1010.0000--xxxx.xxxx--aaaa.aaaa--oooo.oooo"; + write = "1100.0000--xxxx.xxxx--aaaa.aaaa--iiii.iiii"; ; - memory "hfuse" - initval = 0xdf; - bitmask = -1; + memory "flash" + size = 4096; min_write_delay = 9000; - max_write_delay = 9000; + max_write_delay = 20000; + readback = 0xff 0xff; + read_lo = "0010.0000--xxxx.xaaa--aaaa.aaaa--oooo.oooo"; + read_hi = "0010.1000--xxxx.xaaa--aaaa.aaaa--oooo.oooo"; + write_lo = "0100.0000--xxxx.xaaa--aaaa.aaaa--iiii.iiii"; + write_hi = "0100.1000--xxxx.xaaa--aaaa.aaaa--iiii.iiii"; ; - memory "efuse" + memory "fuse" size = 1; - initval = 0xff; - bitmask = 0x01; min_write_delay = 9000; - max_write_delay = 9000; - read = "0101.0000--0000.1000--xxxx.xxxx--oooo.oooo"; - write = "1010.1100--1010.0100--xxxx.xxxx--xxxx.xxxi"; + max_write_delay = 20000; + read = "0101.0000--xxxx.xxxx--xxxx.xxxx--xxoo.oooo"; + write = "1010.1100--101i.iiii--xxxx.xxxx--xxxx.xxxx"; ; memory "lock" + size = 1; min_write_delay = 9000; - max_write_delay = 9000; + max_write_delay = 20000; + read = "0101.1000--xxxx.xxxx--xxxx.xxxx--xxxx.xoox"; + write = "1010.1100--1111.1ii1--xxxx.xxxx--xxxx.xxxx"; ; - memory "sram" - size = 512; + memory "signature" + size = 3; + read = "0011.0000--xxxx.xxxx--xxxx.xxaa--oooo.oooo"; ; ; #------------------------------------------------------------ -# ATtiny2313 +# AT90s8515 #------------------------------------------------------------ -part parent ".classic" # t2313 - desc = "ATtiny2313"; - id = "t2313"; - variants = - "ATtiny2313: N/A, Fmax=20 MHz, T=[N/A, 85 C], Vcc=[N/A, N/A]", - "ATtiny2313-20MU: MLF20, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATtiny2313-20MUR: MLF20, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATtiny2313-20PU: PDIP20, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATtiny2313-20SU: SOIC20, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATtiny2313-20SUR: SOIC20, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATtiny2313V-10MU: MLF20, Fmax=10 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny2313V-10MUR: WQFN20, Fmax=10 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny2313V-10PU: PDIP20, Fmax=10 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny2313V-10SU: SOIC20, Fmax=10 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny2313V-10SUR: SOIC20, Fmax=10 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]"; - prog_modes = PM_SPM | PM_ISP | PM_HVPP | PM_debugWIRE; - mcuid = 42; - archnum = 25; - n_interrupts = 19; - stk500_devcode = 0x23; -# Use the ATtiny26 devcode: - avr910_devcode = 0x5e; - chip_erase_delay = 9000; - pagel = 0xd4; - bs2 = 0xd6; - signature = 0x1e 0x91 0x0a; - reset = io; +part + desc = "AT90S8515"; + id = "8515"; + prog_modes = PM_SPM | PM_ISP | PM_HVPP; + mcuid = 193; + n_interrupts = 13; + stk500_devcode = 0x60; + avr910_devcode = 0x38; + chip_erase_delay = 20000; + signature = 0x1e 0x93 0x01; timeout = 200; stabdelay = 100; cmdexedelay = 25; @@ -4762,221 +3282,164 @@ part parent ".classic" # t2313 pollvalue = 0x53; predelay = 1; postdelay = 1; - pollmethod = 1; pp_controlstack = - 0x0e, 0x1e, 0x0e, 0x1e, 0x2e, 0x3e, 0x2e, 0x3e, - 0x4e, 0x5e, 0x4e, 0x5e, 0x6e, 0x7e, 0x6e, 0x7e, - 0x26, 0x36, 0x66, 0x76, 0x2a, 0x3a, 0x6a, 0x7a, - 0x2e, 0xfd, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00; - flash_instr = 0xb2, 0x0f, 0x1f; - eeprom_instr = - 0xbb, 0xfe, 0xbb, 0xee, 0xbb, 0xcc, 0xb2, 0x0d, - 0xba, 0x0f, 0xb2, 0x0f, 0xba, 0x0d, 0xbb, 0xbc, - 0x99, 0xe1, 0xbb, 0xac; + 0x0e, 0x1e, 0x0f, 0x1f, 0x2e, 0x3e, 0x2f, 0x3f, + 0x4e, 0x5e, 0x4f, 0x5f, 0x6e, 0x7e, 0x6f, 0x7f, + 0x66, 0x76, 0x67, 0x77, 0x6a, 0x7a, 0x6b, 0x7b, + 0xbe, 0xfd, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00; hventerstabdelay = 100; - latchcycles = 5; - togglevtg = 1; - poweroffdelay = 15; - resetdelayms = 1; hvleavestabdelay = 15; resetdelay = 15; - chiperasepolltimeout = 10; - programfusepolltimeout = 5; - programlockpolltimeout = 5; - idr = 0x1f; - spmcr = 0x57; - eecr = 0x3c; - ocdrev = 0; + chiperasepulsewidth = 15; + programfusepulsewidth = 2; + programlockpolltimeout = 1; + chip_erase = "1010.1100--100x.xxxx--xxxx.xxxx--xxxx.xxxx"; + pgm_enable = "1010.1100--0101.0011--xxxx.xxxx--xxxx.xxxx"; memory "eeprom" - size = 128; - page_size = 4; + size = 512; min_write_delay = 4000; - max_write_delay = 4500; - mode = 0x41; - delay = 6; - blocksize = 4; + max_write_delay = 9000; + readback = 0x80 0x7f; + mode = 4; + delay = 12; + blocksize = 128; readsize = 256; - read = "1010.0000--000x.xxxx--xaaa.aaaa--oooo.oooo"; - write = "1100.0000--000x.xxxx--xaaa.aaaa--iiii.iiii"; - loadpage_lo = "1100.0001--0000.0000--0000.00aa--iiii.iiii"; - writepage = "1100.0010--00xx.xxxx--xaaa.aa00--xxxx.xxxx"; + read = "1010.0000--xxxx.xxxa--aaaa.aaaa--oooo.oooo"; + write = "1100.0000--xxxx.xxxa--aaaa.aaaa--iiii.iiii"; ; memory "flash" - paged = yes; - size = 2048; - page_size = 32; - num_pages = 64; - min_write_delay = 4500; - max_write_delay = 4500; - mode = 0x41; - delay = 10; - blocksize = 32; + size = 8192; + min_write_delay = 4000; + max_write_delay = 9000; + readback = 0x7f 0x7f; + mode = 4; + delay = 12; + blocksize = 128; readsize = 256; - read_lo = "0010.0000--0000.00aa--aaaa.aaaa--oooo.oooo"; - read_hi = "0010.1000--0000.00aa--aaaa.aaaa--oooo.oooo"; -# The information in the data sheet of April/2004 is wrong, this works: - loadpage_lo = "0100.0000--000x.xxxx--xxxx.aaaa--iiii.iiii"; -# The information in the data sheet of April/2004 is wrong, this works: - loadpage_hi = "0100.1000--000x.xxxx--xxxx.aaaa--iiii.iiii"; -# The information in the data sheet of April/2004 is wrong, this works: - writepage = "0100.1100--0000.00aa--aaaa.xxxx--xxxx.xxxx"; + read_lo = "0010.0000--xxxx.aaaa--aaaa.aaaa--oooo.oooo"; + read_hi = "0010.1000--xxxx.aaaa--aaaa.aaaa--oooo.oooo"; + write_lo = "0100.0000--xxxx.aaaa--aaaa.aaaa--iiii.iiii"; + write_hi = "0100.1000--xxxx.aaaa--aaaa.aaaa--iiii.iiii"; ; - memory "lfuse" + memory "fuse" size = 1; - initval = 0x64; - min_write_delay = 9000; - max_write_delay = 9000; - read = "0101.0000--0000.0000--xxxx.xxxx--oooo.oooo"; - write = "1010.1100--1010.0000--xxxx.xxxx--iiii.iiii"; ; - memory "hfuse" + memory "lock" size = 1; - initval = 0xdf; min_write_delay = 9000; max_write_delay = 9000; - read = "0101.1000--0000.1000--xxxx.xxxx--oooo.oooo"; - write = "1010.1100--1010.1000--xxxx.xxxx--iiii.iiii"; + write = "1010.1100--1111.1ii1--xxxx.xxxx--xxxx.xxxx"; ; - memory "efuse" - size = 1; - initval = 0xff; - bitmask = 0x01; - min_write_delay = 9000; - max_write_delay = 9000; - read = "0101.0000--0000.1000--xxxx.xxxx--oooo.oooo"; - write = "1010.1100--1010.0100--xxxx.xxxx--xxxx.xxxi"; - ; - - memory "lock" - bitmask = 0x03; - min_write_delay = 9000; - max_write_delay = 9000; - ; - -# The Tiny2313 has calibration data for both 4 MHz and 8 MHz. -# The information in the data sheet of April/2004 is wrong, this works: - - memory "calibration" - size = 2; - read = "0011.1000--000x.xxxx--0000.000a--oooo.oooo"; - ; - - memory "io" - size = 64; - ; - - memory "sram" - size = 128; - offset = 0x60; - ; -; - -#------------------------------------------------------------ -# ATtiny2313A -#------------------------------------------------------------ - -part parent "t2313" # t2313a - desc = "ATtiny2313A"; - id = "t2313a"; - variants = - "ATtiny2313A-MMH: VQFN20, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny2313A-MMHR: VQFN20, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny2313A-MU: QFN20, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny2313A-MUR: WQFN20, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny2313A-PU: PDIP20, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny2313A-SU: SOIC20, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny2313A-SUR: SOIC20, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 43; - n_interrupts = 21; - idr = 0x27; - - memory "lfuse" - initval = 0x62; + memory "signature" + size = 3; + read = "0011.0000--xxxx.xxxx--xxxx.xxaa--oooo.oooo"; ; ; #------------------------------------------------------------ -# ATtiny4313 +# AT90s8535 #------------------------------------------------------------ -part parent "t2313" # t4313 - desc = "ATtiny4313"; - id = "t4313"; - variants = - "ATtiny4313-MMH: VQFN20, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny4313-MMHR: VQFN20, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny4313-MU: MLF20, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny4313-MUR: MLF20, Fmax=20 MHz, T=[-40 C, 105 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny4313-PU: PDIP20, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny4313-SU: SOIC20, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny4313-SUR: SOIC20, Fmax=20 MHz, T=[-40 C, 105 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 44; - n_interrupts = 21; - signature = 0x1e 0x92 0x0d; - idr = 0x27; +part + desc = "AT90S8535"; + id = "8535"; + prog_modes = PM_SPM | PM_ISP | PM_HVPP; + mcuid = 195; + n_interrupts = 17; + stk500_devcode = 0x61; + avr910_devcode = 0x68; + chip_erase_delay = 20000; + signature = 0x1e 0x93 0x03; + timeout = 200; + stabdelay = 100; + cmdexedelay = 25; + synchloops = 32; + pollindex = 3; + pollvalue = 0x53; + predelay = 1; + postdelay = 1; + pp_controlstack = + 0x0e, 0x1e, 0x0f, 0x1f, 0x2e, 0x3e, 0x2f, 0x3f, + 0x4e, 0x5e, 0x4f, 0x5f, 0x6e, 0x7e, 0x6f, 0x7f, + 0x66, 0x76, 0x67, 0x77, 0x6a, 0x7a, 0x6b, 0x7b, + 0xbe, 0xfd, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00; + hventerstabdelay = 100; + hvleavestabdelay = 15; + chiperasepulsewidth = 15; + programfusepulsewidth = 2; + programlockpolltimeout = 1; + chip_erase = "1010.1100--1000.0000--xxxx.xxxx--xxxx.xxxx"; + pgm_enable = "1010.1100--0101.0011--xxxx.xxxx--xxxx.xxxx"; memory "eeprom" - size = 256; - read = "1010.0000--000x.xxxx--aaaa.aaaa--oooo.oooo"; - write = "1100.0000--000x.xxxx--aaaa.aaaa--iiii.iiii"; - writepage = "1100.0010--00xx.xxxx--aaaa.aa00--xxxx.xxxx"; + size = 512; + min_write_delay = 9000; + max_write_delay = 20000; + readback = 0x00 0xff; + mode = 4; + delay = 12; + blocksize = 128; + readsize = 256; + read = "1010.0000--xxxx.xxxa--aaaa.aaaa--oooo.oooo"; + write = "1100.0000--xxxx.xxxa--aaaa.aaaa--iiii.iiii"; ; memory "flash" - size = 4096; - page_size = 64; - read_lo = "0010.0000--0000.0aaa--aaaa.aaaa--oooo.oooo"; - read_hi = "0010.1000--0000.0aaa--aaaa.aaaa--oooo.oooo"; - loadpage_lo = "0100.0000--000x.xxxx--xxxa.aaaa--iiii.iiii"; - loadpage_hi = "0100.1000--000x.xxxx--xxxa.aaaa--iiii.iiii"; - writepage = "0100.1100--0000.0aaa--aaax.xxxx--xxxx.xxxx"; + size = 8192; + min_write_delay = 9000; + max_write_delay = 20000; + readback = 0xff 0xff; + mode = 4; + delay = 12; + blocksize = 128; + readsize = 256; + read_lo = "0010.0000--xxxx.aaaa--aaaa.aaaa--oooo.oooo"; + read_hi = "0010.1000--xxxx.aaaa--aaaa.aaaa--oooo.oooo"; + write_lo = "0100.0000--xxxx.aaaa--aaaa.aaaa--iiii.iiii"; + write_hi = "0100.1000--xxxx.aaaa--aaaa.aaaa--iiii.iiii"; ; - memory "lfuse" - initval = 0x62; + memory "fuse" + size = 1; + min_write_delay = 9000; + max_write_delay = 9000; + read = "0101.1000--xxxx.xxxx--xxxx.xxxx--xxxx.xxxo"; + write = "1010.1100--1011.111i--xxxx.xxxx--xxxx.xxxx"; ; - memory "sram" - size = 256; + memory "lock" + size = 1; + min_write_delay = 9000; + max_write_delay = 9000; + read = "0101.1000--xxxx.xxxx--xxxx.xxxx--ooxx.xxxx"; + write = "1010.1100--1111.1ii1--xxxx.xxxx--xxxx.xxxx"; + ; + + memory "signature" + size = 3; + read = "0011.0000--xxxx.xxxx--xxxx.xxaa--oooo.oooo"; ; ; #------------------------------------------------------------ -# ATtiny24 +# ATmega103 #------------------------------------------------------------ -part parent ".classic" # t24 - desc = "ATtiny24"; - id = "t24"; - variants = - "ATtiny24: N/A, Fmax=20 MHz, T=[N/A, 85 C], Vcc=[N/A, N/A]", - "ATtiny24-20MU: QFN20, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATtiny24-20MUR: WQFN20, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATtiny24-20PU: PDIP14, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATtiny24-20SSU: SOIC14N, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATtiny24-20SSUR: SOIC14N, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATtiny24V-10MU: MLF20, Fmax=10 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny24V-10MUR: MLF20, Fmax=10 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny24V-10PU: PDIP14, Fmax=10 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny24V-10SSU: SOIC14N, Fmax=10 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny24V-10SSUR: SOIC14N, Fmax=10 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]"; - prog_modes = PM_SPM | PM_ISP | PM_HVSP | PM_debugWIRE; - mcuid = 14; - archnum = 25; - n_interrupts = 17; -# no STK500 devcode in XML file, use the ATtiny45 one - stk500_devcode = 0x14; -# avr910_devcode = ?; -# Try the AT90S2313 devcode: - avr910_devcode = 0x20; - chip_erase_delay = 4500; - signature = 0x1e 0x91 0x0b; - reset = io; +part + desc = "ATmega103"; + id = "m103"; + prog_modes = PM_SPM | PM_ISP | PM_HVPP; + mcuid = 84; + n_interrupts = 24; + stk500_devcode = 0xb1; + avr910_devcode = 0x41; + chip_erase_delay = 112000; + signature = 0x1e 0x97 0x01; timeout = 200; stabdelay = 100; cmdexedelay = 25; @@ -4985,312 +3448,93 @@ part parent ".classic" # t24 pollvalue = 0x53; predelay = 1; postdelay = 1; - pollmethod = 1; - hvsp_controlstack = - 0x4c, 0x0c, 0x1c, 0x2c, 0x3c, 0x64, 0x74, 0x66, - 0x68, 0x78, 0x68, 0x68, 0x7a, 0x6a, 0x68, 0x78, - 0x78, 0x7d, 0x6d, 0x0c, 0x80, 0x40, 0x20, 0x10, - 0x11, 0x08, 0x04, 0x02, 0x03, 0x08, 0x04, 0x0f; - flash_instr = 0xb4, 0x07, 0x17; - eeprom_instr = - 0xbb, 0xff, 0xbb, 0xee, 0xbb, 0xcc, 0xb2, 0x0d, - 0xbc, 0x07, 0xb4, 0x07, 0xba, 0x0d, 0xbb, 0xbc, - 0x99, 0xe1, 0xbb, 0xac; + pp_controlstack = + 0x0e, 0x1e, 0x8e, 0x9e, 0x2e, 0x3e, 0xae, 0xbe, + 0x4e, 0x5e, 0xce, 0xde, 0x6e, 0x7e, 0xee, 0xde, + 0x66, 0x76, 0xe6, 0xf6, 0x6a, 0x7a, 0xea, 0x7a, + 0x7f, 0xfd, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00; hventerstabdelay = 100; - latchcycles = 1; - togglevtg = 1; - poweroffdelay = 50; - resetdelayus = 3; - hvleavestabdelay = 100; - resetdelay = 25; - chiperasepolltimeout = 40; - programfusepolltimeout = 25; - programlockpolltimeout = 25; - synchcycles = 6; - hvspcmdexedelay = 50; - idr = 0x27; - spmcr = 0x57; - eecr = 0x3c; - ocdrev = 1; + hvleavestabdelay = 15; + chiperasepulsewidth = 15; + programfusepulsewidth = 2; + programlockpolltimeout = 10; + chip_erase = "1010.1100--1000.0000--xxxx.xxxx--xxxx.xxxx"; + pgm_enable = "1010.1100--0101.0011--xxxx.xxxx--xxxx.xxxx"; memory "eeprom" - size = 128; - page_size = 4; + size = 4096; min_write_delay = 4000; - max_write_delay = 4500; - mode = 0x41; - delay = 10; - blocksize = 4; + max_write_delay = 9000; + readback = 0x80 0x7f; + mode = 4; + delay = 12; + blocksize = 64; readsize = 256; - read = "1010.0000--000x.xxxx--xaaa.aaaa--oooo.oooo"; - write = "1100.0000--000x.xxxx--xaaa.aaaa--iiii.iiii"; - loadpage_lo = "1100.0001--0000.0000--0000.00aa--iiii.iiii"; - writepage = "1100.0010--00xx.xxxx--xaaa.aa00--xxxx.xxxx"; + read = "1010.0000--xxxx.aaaa--aaaa.aaaa--oooo.oooo"; + write = "1100.0000--xxxx.aaaa--aaaa.aaaa--iiii.iiii"; ; memory "flash" paged = yes; - size = 2048; - page_size = 32; - num_pages = 64; - min_write_delay = 4500; - max_write_delay = 4500; - mode = 0x41; - delay = 10; - blocksize = 32; + size = 0x20000; + page_size = 256; + num_pages = 512; + min_write_delay = 22000; + max_write_delay = 56000; + readback = 0xff 0xff; + mode = 17; + delay = 70; + blocksize = 256; readsize = 256; - read_lo = "0010.0000--0000.00aa--aaaa.aaaa--oooo.oooo"; - read_hi = "0010.1000--0000.00aa--aaaa.aaaa--oooo.oooo"; - loadpage_lo = "0100.0000--000x.xxxx--xxxx.aaaa--iiii.iiii"; - loadpage_hi = "0100.1000--000x.xxxx--xxxx.aaaa--iiii.iiii"; - writepage = "0100.1100--0000.00aa--aaaa.xxxx--xxxx.xxxx"; - ; - - memory "lfuse" - size = 1; - initval = 0x62; - min_write_delay = 9000; - max_write_delay = 9000; - read = "0101.0000--0000.0000--xxxx.xxxx--oooo.oooo"; - write = "1010.1100--1010.0000--xxxx.xxxx--iiii.iiii"; - ; - - memory "hfuse" - size = 1; - initval = 0xdf; - min_write_delay = 9000; - max_write_delay = 9000; - read = "0101.1000--0000.1000--xxxx.xxxx--oooo.oooo"; - write = "1010.1100--1010.1000--xxxx.xxxx--iiii.iiii"; + read_lo = "0010.0000--aaaa.aaaa--aaaa.aaaa--oooo.oooo"; + read_hi = "0010.1000--aaaa.aaaa--aaaa.aaaa--oooo.oooo"; + loadpage_lo = "0100.0000--xxxx.xxxx--xaaa.aaaa--iiii.iiii"; + loadpage_hi = "0100.1000--xxxx.xxxx--xaaa.aaaa--iiii.iiii"; + writepage = "0100.1100--aaaa.aaaa--axxx.xxxx--xxxx.xxxx"; ; - memory "efuse" + memory "fuse" size = 1; - initval = 0xff; - bitmask = 0x01; min_write_delay = 9000; max_write_delay = 9000; - read = "0101.0000--0000.1000--xxxx.xxxx--oooo.oooo"; - write = "1010.1100--1010.0100--xxxx.xxxx--xxxx.xxxi"; + read = "0101.0000--xxxx.xxxx--xxxx.xxxx--xxox.o1oo"; + write = "1010.1100--1011.i1ii--xxxx.xxxx--xxxx.xxxx"; ; memory "lock" - bitmask = 0x03; + size = 1; min_write_delay = 9000; max_write_delay = 9000; - write = "1010.1100--111x.xxxx--xxxx.xxxx--xxxx.xxii"; - ; - - memory "io" - size = 64; + read = "0101.1000--xxxx.xxxx--xxxx.xxxx--xxxx.xoox"; + write = "1010.1100--1111.1ii1--xxxx.xxxx--xxxx.xxxx"; ; - memory "sram" - size = 128; - offset = 0x60; + memory "signature" + size = 3; + read = "0011.0000--xxxx.xxxx--xxxx.xxaa--oooo.oooo"; ; ; #------------------------------------------------------------ -# ATtiny24A +# ATmega64 #------------------------------------------------------------ -part parent "t24" # t24a - desc = "ATtiny24A"; - id = "t24a"; - variants = - "ATtiny24A: N/A, Fmax=20 MHz, T=[N/A, N/A], Vcc=[1.8 V, 5.5 V]", - "ATtiny24A-CCU: UFBGA15, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny24A-CCUR: UFBGA15, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny24A-MF: QFN20, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny24A-MFR: QFN20, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny24A-MM8: VQFN20, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny24A-MM8R: VQFN20, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny24A-MMH: VQFN20, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny24A-MMHR: VQFN20, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny24A-MU: QFN20, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny24A-MUR: QFN20, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny24A-PU: PDIP14, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny24A-SSF: SOIC14, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny24A-SSFR: SOIC14, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny24A-SSN: SOIC14, Fmax=20 MHz, T=[-40 C, 105 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny24A-SSNR: SOIC14, Fmax=20 MHz, T=[-40 C, 105 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny24A-SSU: SOIC14, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny24A-SSUR: SOIC14N, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 15; -; - -#------------------------------------------------------------ -# ATtiny44 -#------------------------------------------------------------ - -part parent "t24" # t44 - desc = "ATtiny44"; - id = "t44"; - variants = - "ATtiny44: N/A, Fmax=20 MHz, T=[N/A, 85 C], Vcc=[N/A, N/A]", - "ATtiny44-15MZ: WQFN20, Fmax=16 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny44-15SSZ: SOIC14, Fmax=16 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny44-20MU: QFN20, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATtiny44-20MUR: WQFN20, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATtiny44-20PU: PDIP14, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATtiny44-20SSU: SOIC14N, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATtiny44-20SSUR: SOIC14N, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATtiny44V-10MU: MLF20, Fmax=10 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny44V-10MUR: WQFN20, Fmax=10 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny44V-10PU: PDIP14, Fmax=10 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny44V-10SSU: SOIC14N, Fmax=10 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny44V-10SSUR: SOIC14N, Fmax=10 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny44V-15MT: WQFN20, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny44V-15SST: SOIC14, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 20; - signature = 0x1e 0x92 0x07; - - memory "eeprom" - size = 256; - read = "1010.0000--000x.xxxx--aaaa.aaaa--oooo.oooo"; - write = "1100.0000--000x.xxxx--aaaa.aaaa--iiii.iiii"; - writepage = "1100.0010--00xx.xxxx--aaaa.aa00--xxxx.xxxx"; - ; - - memory "flash" - size = 4096; - page_size = 64; - blocksize = 64; - read_lo = "0010.0000--0000.0aaa--aaaa.aaaa--oooo.oooo"; - read_hi = "0010.1000--0000.0aaa--aaaa.aaaa--oooo.oooo"; - loadpage_lo = "0100.0000--000x.xxxx--xxxa.aaaa--iiii.iiii"; - loadpage_hi = "0100.1000--000x.xxxx--xxxa.aaaa--iiii.iiii"; - writepage = "0100.1100--0000.0aaa--aaax.xxxx--xxxx.xxxx"; - ; - - memory "sram" - size = 256; - ; -; - -#------------------------------------------------------------ -# ATtiny44A -#------------------------------------------------------------ - -part parent "t44" # t44a - desc = "ATtiny44A"; - id = "t44a"; - variants = - "ATtiny44A: N/A, Fmax=20 MHz, T=[-40 C, N/A], Vcc=[1.8 V, 5.5 V]", - "ATtiny44A-CCU: UFBGA15, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny44A-CCUR: UFBGA15, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny44A-MF: QFN20, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny44A-MFR: QFN20, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny44A-MMH: VQFN20, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny44A-MMHR: VQFN20, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny44A-MU: QFN20, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny44A-MUR: QFN20, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny44A-PU: PDIP14, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny44A-SSF: SOIC14, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny44A-SSFR: SOIC14, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny44A-SSN: SOIC14, Fmax=20 MHz, T=[-40 C, 105 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny44A-SSNR: SOIC14, Fmax=20 MHz, T=[-40 C, 105 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny44A-SSU: SOIC14, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny44A-SSUR: SOIC14N, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = XVII + IV; # 21 -; - -#------------------------------------------------------------ -# ATtiny84 -#------------------------------------------------------------ - -part parent "t24" # t84 - desc = "ATtiny84"; - id = "t84"; - variants = - "ATtiny84: N/A, Fmax=20 MHz, T=[N/A, 85 C], Vcc=[N/A, N/A]", - "ATtiny84-15MZ: MLF20, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATtiny84-20MU: MLF20, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATtiny84-20MUR: WQFN20, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATtiny84-20PU: PDIP14, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATtiny84-20SSU: SOIC14, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATtiny84-20SSUR: SOIC14N, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATtiny84V-10MU: MLF20, Fmax=10 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny84V-10MUR: WQFN20, Fmax=10 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny84V-10PU: PDIP14, Fmax=10 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny84V-10SSU: SOIC14, Fmax=10 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny84V-10SSUR: SOIC14, Fmax=10 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 24; - signature = 0x1e 0x93 0x0c; - - memory "eeprom" - size = 512; - read = "1010.0000--000x.xxxa--aaaa.aaaa--oooo.oooo"; - write = "1100.0000--000x.xxxa--aaaa.aaaa--iiii.iiii"; - writepage = "1100.0010--00xx.xxxa--aaaa.aa00--xxxx.xxxx"; - ; - - memory "flash" - size = 8192; - page_size = 64; - num_pages = 128; - blocksize = 64; - read_lo = "0010.0000--0000.aaaa--aaaa.aaaa--oooo.oooo"; - read_hi = "0010.1000--0000.aaaa--aaaa.aaaa--oooo.oooo"; - loadpage_lo = "0100.0000--000x.xxxx--xxxa.aaaa--iiii.iiii"; - loadpage_hi = "0100.1000--000x.xxxx--xxxa.aaaa--iiii.iiii"; - writepage = "0100.1100--0000.aaaa--aaax.xxxx--xxxx.xxxx"; - ; - - memory "sram" - size = 512; - ; -; - -#------------------------------------------------------------ -# ATtiny84A -#------------------------------------------------------------ - -part parent "t84" # t84a - desc = "ATtiny84A"; - id = "t84a"; - variants = - "ATtiny84A-CCU: UFBGA15, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny84A-CCUR: UFBGA15, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny84A-MF: WQFN20, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny84A-MFR: WQFN20, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny84A-MMH: VQFN20, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny84A-MMHR: VQFN20, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny84A-MU: QFN20, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny84A-MUR: QFN20, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny84A-PU: PDIP14, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny84A-SSF: SOIC14, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny84A-SSFR: SOIC14, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny84A-SSU: SOIC14, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny84A-SSUR: SOIC14, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 25; -; - -#------------------------------------------------------------ -# ATtiny441 -#------------------------------------------------------------ - -part parent ".classic" # t441 - desc = "ATtiny441"; - id = "t441"; - variants = - "ATtiny441-MMH: VQFN20, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[1.7 V, 5.5 V]", - "ATtiny441-MMHR: VQFN20, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[1.7 V, 5.5 V]", - "ATtiny441-MU: QFN20, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[1.7 V, 5.5 V]", - "ATtiny441-MUR: QFN20, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[1.7 V, 5.5 V]", - "ATtiny441-SSU: SOIC14, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[1.7 V, 5.5 V]", - "ATtiny441-SSUR: SOIC14, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[1.7 V, 5.5 V]"; - prog_modes = PM_SPM | PM_ISP | PM_HVSP | PM_debugWIRE; - mcuid = 32; - archnum = 25; - n_interrupts = 30; - n_page_erase = 4; - stk500_devcode = 0x14; - avr910_devcode = 0x20; - chip_erase_delay = 4500; - signature = 0x1e 0x92 0x15; +part + desc = "ATmega64"; + id = "m64"; + prog_modes = PM_SPM | PM_ISP | PM_HVPP | PM_JTAG | PM_JTAGmkI; + mcuid = 72; + n_interrupts = 35; + n_boot_sections = 4; + boot_section_size = 1024; + stk500_devcode = 0xa0; + avr910_devcode = 0x45; + chip_erase_delay = 9000; + pagel = 0xd7; + bs2 = 0xa0; + signature = 0x1e 0x96 0x02; reset = io; + allowfullpagebitstream = yes; timeout = 200; stabdelay = 100; cmdexedelay = 25; @@ -5299,70 +3543,58 @@ part parent ".classic" # t441 pollvalue = 0x53; predelay = 1; postdelay = 1; - pollmethod = 1; - hvsp_controlstack = - 0x4c, 0x0c, 0x1c, 0x2c, 0x3c, 0x64, 0x74, 0x66, - 0x68, 0x78, 0x68, 0x68, 0x7a, 0x6a, 0x68, 0x78, - 0x78, 0x7d, 0x6d, 0x0c, 0x80, 0x40, 0x20, 0x10, - 0x11, 0x08, 0x04, 0x02, 0x03, 0x08, 0x04, 0x0f; - flash_instr = 0xb4, 0x07, 0x17; - eeprom_instr = - 0xbb, 0xff, 0xbb, 0xee, 0xbb, 0xcc, 0xb2, 0x0d, - 0xbc, 0x07, 0xb4, 0x07, 0xba, 0x0d, 0xbb, 0xbc, - 0x99, 0xe1, 0xbb, 0xac; + pp_controlstack = + 0x0e, 0x1e, 0x0f, 0x1f, 0x2e, 0x3e, 0x2f, 0x3f, + 0x4e, 0x5e, 0x4f, 0x5f, 0x6e, 0x7e, 0x6f, 0x7f, + 0x66, 0x76, 0x67, 0x77, 0x6a, 0x7a, 0x6b, 0x7b, + 0xbe, 0xfd, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00; hventerstabdelay = 100; - latchcycles = 1; - togglevtg = 1; - poweroffdelay = 25; - resetdelayms = 1; - hvleavestabdelay = 100; - resetdelay = 25; - chiperasepolltimeout = 40; - programfusepolltimeout = 25; - programlockpolltimeout = 25; - synchcycles = 6; - idr = 0x27; - spmcr = 0x57; - eecr = 0x3c; - ocdrev = 1; + latchcycles = 6; + hvleavestabdelay = 15; + chiperasepolltimeout = 10; + programfusepolltimeout = 5; + programlockpolltimeout = 5; + idr = 0x22; + spmcr = 0x68; + ocdrev = 2; + chip_erase = "1010.1100--1000.0000--xxxx.xxxx--xxxx.xxxx"; + pgm_enable = "1010.1100--0101.0011--xxxx.xxxx--xxxx.xxxx"; memory "eeprom" - size = 256; - page_size = 4; - min_write_delay = 4000; - max_write_delay = 4500; - mode = 0x41; - delay = 10; - blocksize = 4; + size = 2048; + page_size = 8; + min_write_delay = 9000; + max_write_delay = 9000; + readback = 0xff 0xff; + mode = 4; + delay = 20; + blocksize = 64; readsize = 256; - read = "1010.0000--000x.xxxx--aaaa.aaaa--oooo.oooo"; - write = "1100.0000--000x.xxxx--aaaa.aaaa--iiii.iiii"; - loadpage_lo = "1100.0001--0000.0000--0000.00aa--iiii.iiii"; - writepage = "1100.0010--00xx.xxxx--aaaa.aa00--xxxx.xxxx"; + read = "1010.0000--xxxx.aaaa--aaaa.aaaa--oooo.oooo"; + write = "1100.0000--xxxx.aaaa--aaaa.aaaa--iiii.iiii"; ; memory "flash" paged = yes; - size = 4096; - page_size = 16; + size = 0x10000; + page_size = 256; num_pages = 256; min_write_delay = 4500; max_write_delay = 4500; - mode = 0x41; - delay = 10; - blocksize = 16; + readback = 0xff 0xff; + mode = 33; + delay = 6; + blocksize = 128; readsize = 256; - read_lo = "0010.0000--0000.0aaa--aaaa.aaaa--oooo.oooo"; - read_hi = "0010.1000--0000.0aaa--aaaa.aaaa--oooo.oooo"; - loadpage_lo = "0100.0000--000x.xxxx--xxxx.xaaa--iiii.iiii"; - loadpage_hi = "0100.1000--000x.xxxx--xxxx.xaaa--iiii.iiii"; - writepage = "0100.1100--0000.0aaa--aaaa.axxx--xxxx.xxxx"; + read_lo = "0010.0000--xaaa.aaaa--aaaa.aaaa--oooo.oooo"; + read_hi = "0010.1000--xaaa.aaaa--aaaa.aaaa--oooo.oooo"; + loadpage_lo = "0100.0000--xxxx.xxxx--xaaa.aaaa--iiii.iiii"; + loadpage_hi = "0100.1000--xxxx.xxxx--xaaa.aaaa--iiii.iiii"; + writepage = "0100.1100--xaaa.aaaa--axxx.xxxx--xxxx.xxxx"; ; memory "lfuse" size = 1; - initval = 0x62; - bitmask = 0xdf; min_write_delay = 9000; max_write_delay = 9000; read = "0101.0000--0000.0000--xxxx.xxxx--oooo.oooo"; @@ -5371,7 +3603,6 @@ part parent ".classic" # t441 memory "hfuse" size = 1; - initval = 0xdf; min_write_delay = 9000; max_write_delay = 9000; read = "0101.1000--0000.1000--xxxx.xxxx--oooo.oooo"; @@ -5380,91 +3611,61 @@ part parent ".classic" # t441 memory "efuse" size = 1; - initval = 0xff; - bitmask = 0xff; min_write_delay = 9000; max_write_delay = 9000; read = "0101.0000--0000.1000--xxxx.xxxx--oooo.oooo"; - write = "1010.1100--1010.0100--xxxx.xxxx--iiii.iiii"; + write = "1010.1100--1010.0100--xxxx.xxxx--xxxx.xxii"; ; memory "lock" - bitmask = 0x03; + size = 1; min_write_delay = 9000; max_write_delay = 9000; - write = "1010.1100--111x.xxxx--xxxx.xxxx--xxxx.xxii"; + read = "0101.1000--0000.0000--xxxx.xxxx--oooo.oooo"; + write = "1010.1100--111x.xxxx--xxxx.xxxx--11ii.iiii"; ; - memory "sram" - size = 256; + memory "signature" + size = 3; + read = "0011.0000--xxxx.xxxx--xxxx.xxaa--oooo.oooo"; + ; + + memory "calibration" + size = 4; + read = "0011.1000--xxxx.xxxx--0000.00aa--oooo.oooo"; ; ; #------------------------------------------------------------ -# ATtiny841 +# ATmega64A #------------------------------------------------------------ -part parent "t441" # t841 - desc = "ATtiny841"; - id = "t841"; - variants = - "ATtiny841-MMH: VQFN20, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[1.7 V, 5.5 V]", - "ATtiny841-MMHR: VQFN20, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[1.7 V, 5.5 V]", - "ATtiny841-MU: QFN20, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[1.7 V, 5.5 V]", - "ATtiny841-MUR: QFN20, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[1.7 V, 5.5 V]", - "ATtiny841-SSU: SOIC14, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[1.7 V, 5.5 V]", - "ATtiny841-SSUR: SOIC14, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[1.7 V, 5.5 V]"; - mcuid = 37; - signature = 0x1e 0x93 0x15; - - memory "eeprom" - size = 512; - read = "1010.0000--000x.xxxa--aaaa.aaaa--oooo.oooo"; - write = "1100.0000--000x.xxxa--aaaa.aaaa--iiii.iiii"; - writepage = "1100.0010--00xx.xxxa--aaaa.aa00--xxxx.xxxx"; - ; - - memory "flash" - size = 8192; - num_pages = 512; - read_lo = "0010.0000--0000.aaaa--aaaa.aaaa--oooo.oooo"; - read_hi = "0010.1000--0000.aaaa--aaaa.aaaa--oooo.oooo"; - writepage = "0100.1100--0000.aaaa--aaaa.axxx--xxxx.xxxx"; - ; - - memory "sram" - size = 512; - ; +part parent "m64" + desc = "ATmega64A"; + id = "m64a"; + mcuid = 73; ; #------------------------------------------------------------ -# ATtiny26 +# ATmega128 #------------------------------------------------------------ -part parent ".classic" # t26 - desc = "ATtiny26"; - id = "t26"; - variants = - "ATtiny26: N/A, Fmax=16 MHz, T=[N/A, 85 C], Vcc=[N/A, N/A]", - "ATtiny26-16MU: MLF32, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[4.5 V, 5.5 V]", - "ATtiny26-16MUR: VQFN32, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[4.5 V, 5.5 V]", - "ATtiny26-16PU: PDIP20, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[4.5 V, 5.5 V]", - "ATtiny26-16SU: SOIC20, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[4.5 V, 5.5 V]", - "ATtiny26-16SUR: SOIC20, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[4.5 V, 5.5 V]", - "ATtiny26L-8MU: MLF32, Fmax=8 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATtiny26L-8MUR: VQFN32, Fmax=8 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATtiny26L-8PU: PDIP20, Fmax=8 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATtiny26L-8SU: SOIC20, Fmax=8 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATtiny26L-8SUR: SOIC20, Fmax=8 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]"; - prog_modes = PM_ISP | PM_HVPP; - mcuid = 17; - n_interrupts = 12; - stk500_devcode = 0x21; - avr910_devcode = 0x5e; +part + desc = "ATmega128"; + id = "m128"; + prog_modes = PM_SPM | PM_ISP | PM_HVPP | PM_JTAG | PM_JTAGmkI; + mcuid = 85; + n_interrupts = 35; + n_boot_sections = 4; + boot_section_size = 1024; + stk500_devcode = 0xb2; + avr910_devcode = 0x43; chip_erase_delay = 9000; - pagel = 0xb3; - bs2 = 0xb2; - signature = 0x1e 0x91 0x09; + pagel = 0xd7; + bs2 = 0xa0; + signature = 0x1e 0x97 0x02; + reset = io; + allowfullpagebitstream = yes; timeout = 200; stabdelay = 100; cmdexedelay = 25; @@ -5474,56 +3675,58 @@ part parent ".classic" # t26 predelay = 1; postdelay = 1; pp_controlstack = - 0xc4, 0xe4, 0xc4, 0xe4, 0xcc, 0xec, 0xcc, 0xec, - 0xd4, 0xf4, 0xd4, 0xf4, 0xdc, 0xfc, 0xdc, 0xfc, - 0xc8, 0xe8, 0xd8, 0xf8, 0x4c, 0x6c, 0x5c, 0x7c, - 0xec, 0xbc, 0x00, 0x06, 0x00, 0x00, 0x00, 0x00; + 0x0e, 0x1e, 0x0f, 0x1f, 0x2e, 0x3e, 0x2f, 0x3f, + 0x4e, 0x5e, 0x4f, 0x5f, 0x6e, 0x7e, 0x6f, 0x7f, + 0x66, 0x76, 0x67, 0x77, 0x6a, 0x7a, 0x6b, 0x7b, + 0xbe, 0xfd, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00; hventerstabdelay = 100; - latchcycles = 5; - togglevtg = 1; - poweroffdelay = 15; - resetdelayms = 2; + latchcycles = 6; hvleavestabdelay = 15; - resetdelay = 15; - chiperasepolltimeout = 20; - programfusepolltimeout = 10; - programlockpolltimeout = 10; + chiperasepolltimeout = 10; + programfusepolltimeout = 5; + programlockpolltimeout = 5; + idr = 0x22; + rampz = 0x3b; + spmcr = 0x68; + ocdrev = 1; + chip_erase = "1010.1100--1000.0000--xxxx.xxxx--xxxx.xxxx"; + pgm_enable = "1010.1100--0101.0011--xxxx.xxxx--xxxx.xxxx"; memory "eeprom" - size = 128; + size = 4096; + page_size = 8; min_write_delay = 9000; max_write_delay = 9000; readback = 0xff 0xff; - mode = 0x04; - delay = 20; + mode = 4; + delay = 12; blocksize = 64; readsize = 256; - read = "1010.0000--xxxx.xxxx--xaaa.aaaa--oooo.oooo"; - write = "1100.0000--xxxx.xxxx--xaaa.aaaa--iiii.iiii"; + read = "1010.0000--xxxx.aaaa--aaaa.aaaa--oooo.oooo"; + write = "1100.0000--xxxx.aaaa--aaaa.aaaa--iiii.iiii"; ; memory "flash" paged = yes; - size = 2048; - page_size = 32; - num_pages = 64; + size = 0x20000; + page_size = 256; + num_pages = 512; min_write_delay = 4500; max_write_delay = 4500; - readback = 0xff 0x00; - mode = 0x21; - delay = 10; - blocksize = 16; + readback = 0xff 0xff; + mode = 33; + delay = 6; + blocksize = 128; readsize = 256; - read_lo = "0010.0000--xxxx.xxaa--aaaa.aaaa--oooo.oooo"; - read_hi = "0010.1000--xxxx.xxaa--aaaa.aaaa--oooo.oooo"; - loadpage_lo = "0100.0000--xxxx.xxxx--xxxx.aaaa--iiii.iiii"; - loadpage_hi = "0100.1000--xxxx.xxxx--xxxx.aaaa--iiii.iiii"; - writepage = "0100.1100--xxxx.xxaa--aaaa.xxxx--xxxx.xxxx"; + read_lo = "0010.0000--aaaa.aaaa--aaaa.aaaa--oooo.oooo"; + read_hi = "0010.1000--aaaa.aaaa--aaaa.aaaa--oooo.oooo"; + loadpage_lo = "0100.0000--xxxx.xxxx--xaaa.aaaa--iiii.iiii"; + loadpage_hi = "0100.1000--xxxx.xxxx--xaaa.aaaa--iiii.iiii"; + writepage = "0100.1100--aaaa.aaaa--axxx.xxxx--xxxx.xxxx"; ; memory "lfuse" size = 1; - initval = 0xe1; min_write_delay = 9000; max_write_delay = 9000; read = "0101.0000--0000.0000--xxxx.xxxx--oooo.oooo"; @@ -5532,62 +3735,68 @@ part parent ".classic" # t26 memory "hfuse" size = 1; - initval = 0xf7; - bitmask = 0x1f; min_write_delay = 9000; max_write_delay = 9000; read = "0101.1000--0000.1000--xxxx.xxxx--oooo.oooo"; - write = "1010.1100--1010.1000--xxxx.xxxx--xxxi.iiii"; + write = "1010.1100--1010.1000--xxxx.xxxx--iiii.iiii"; + ; + + memory "efuse" + size = 1; + min_write_delay = 9000; + max_write_delay = 9000; + read = "0101.0000--0000.1000--xxxx.xxxx--oooo.oooo"; + write = "1010.1100--1010.0100--xxxx.xxxx--xxxx.xxii"; ; memory "lock" - bitmask = 0x03; + size = 1; min_write_delay = 9000; max_write_delay = 9000; - read = "0101.1000--xxxx.xxxx--xxxx.xxxx--xxxx.xxoo"; - write = "1010.1100--1111.11ii--xxxx.xxxx--xxxx.xxxx"; + read = "0101.1000--0000.0000--xxxx.xxxx--oooo.oooo"; + write = "1010.1100--111x.xxxx--xxxx.xxxx--11ii.iiii"; + ; + + memory "signature" + size = 3; + read = "0011.0000--xxxx.xxxx--xxxx.xxaa--oooo.oooo"; ; memory "calibration" size = 4; read = "0011.1000--xxxx.xxxx--0000.00aa--oooo.oooo"; ; +; - memory "io" - size = 64; - ; +#------------------------------------------------------------ +# ATmega128A +#------------------------------------------------------------ - memory "sram" - size = 128; - offset = 0x60; - ; +part parent "m128" + desc = "ATmega128A"; + id = "m128a"; + mcuid = 86; ; #------------------------------------------------------------ -# ATtiny261 +# AT90CAN128 #------------------------------------------------------------ -part parent ".classic" # t261 - desc = "ATtiny261"; - id = "t261"; - variants = - "ATtiny261: N/A, Fmax=20 MHz, T=[N/A, 85 C], Vcc=[N/A, N/A]", - "ATtiny261-20MU: MLF32, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATtiny261-20PU: PDIP20, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATtiny261-20SU: SOIC20, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATtiny261V-10MU: MLF32, Fmax=10 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny261V-10PU: PDIP20, Fmax=10 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny261V-10SU: SOIC20, Fmax=10 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]"; - prog_modes = PM_SPM | PM_ISP | PM_HVPP | PM_debugWIRE; - mcuid = 30; - archnum = 25; - n_interrupts = 19; - chip_erase_delay = 4000; - pagel = 0xb3; - bs2 = 0xb2; -# stk500_devcode = 0x21; -# avr910_devcode = 0x5e; - signature = 0x1e 0x91 0x0c; +part + desc = "AT90CAN128"; + id = "c128"; + prog_modes = PM_SPM | PM_ISP | PM_HVPP | PM_JTAG | PM_JTAGmkI; + mcuid = 176; + n_interrupts = 37; + n_boot_sections = 4; + boot_section_size = 1024; + stk500_devcode = 0xb3; + chip_erase_delay = 9000; + pagel = 0xd7; + bs2 = 0xa0; +# avr910_devcode = 0x43; + signature = 0x1e 0x97 0x81; + reset = io; timeout = 200; stabdelay = 100; cmdexedelay = 25; @@ -5596,294 +3805,247 @@ part parent ".classic" # t261 pollvalue = 0x53; predelay = 1; postdelay = 1; + pollmethod = 1; pp_controlstack = - 0xc4, 0xe4, 0xc4, 0xe4, 0xcc, 0xec, 0xcc, 0xec, - 0xd4, 0xf4, 0xd4, 0xf4, 0xdc, 0xfc, 0xdc, 0xfc, - 0xc8, 0xe8, 0xd8, 0xf8, 0x4c, 0x6c, 0x5c, 0x7c, - 0xec, 0xbc, 0x00, 0x06, 0x00, 0x00, 0x00, 0x00; - flash_instr = 0xb4, 0x00, 0x10; - eeprom_instr = - 0xbb, 0xff, 0xbb, 0xee, 0xbb, 0xcc, 0xb2, 0x0d, - 0xbc, 0x00, 0xb4, 0x00, 0xba, 0x0d, 0xbb, 0xbc, - 0x99, 0xe1, 0xbb, 0xac; + 0x0e, 0x1e, 0x0f, 0x1f, 0x2e, 0x3e, 0x2f, 0x3f, + 0x4e, 0x5e, 0x4f, 0x5f, 0x6e, 0x7e, 0x6f, 0x7f, + 0x66, 0x76, 0x67, 0x77, 0x6a, 0x7a, 0x6b, 0x7b, + 0xbe, 0xfd, 0x00, 0x01, 0x00, 0x00, 0x00, 0x01; hventerstabdelay = 100; - latchcycles = 5; - togglevtg = 1; - poweroffdelay = 15; - resetdelayms = 1; + latchcycles = 6; hvleavestabdelay = 15; - resetdelay = 15; chiperasepolltimeout = 10; programfusepolltimeout = 5; programlockpolltimeout = 5; - idr = 0x20; + idr = 0x31; + rampz = 0x3b; spmcr = 0x57; - eecr = 0x3c; - ocdrev = 1; + eecr = 0x3f; + ocdrev = 3; + chip_erase = "1010.1100--100x.xxxx--xxxx.xxxx--xxxx.xxxx"; + pgm_enable = "1010.1100--0101.0011--xxxx.xxxx--xxxx.xxxx"; memory "eeprom" - size = 128; - page_size = 4; - num_pages = 32; - min_write_delay = 4000; - max_write_delay = 4000; - mode = 0x41; - delay = 10; - blocksize = 4; + size = 4096; + page_size = 8; + min_write_delay = 9000; + max_write_delay = 9000; + readback = 0xff 0xff; + mode = 65; + delay = 20; + blocksize = 8; readsize = 256; - read = "1010.0000--xxxx.xxxx--xaaa.aaaa--oooo.oooo"; - write = "1100.0000--xxxx.xxxx--xaaa.aaaa--iiii.iiii"; - loadpage_lo = "1100.0001--0000.0000--0000.00aa--iiii.iiii"; - writepage = "1100.0010--00xx.xxxx--xaaa.aa00--xxxx.xxxx"; + read = "1010.0000--000x.aaaa--aaaa.aaaa--oooo.oooo"; + write = "1100.0000--000x.aaaa--aaaa.aaaa--iiii.iiii"; + loadpage_lo = "1100.0001--0000.0000--0000.0aaa--iiii.iiii"; + writepage = "1100.0010--00xx.aaaa--aaaa.a000--xxxx.xxxx"; ; memory "flash" paged = yes; - size = 2048; - page_size = 32; - num_pages = 64; + size = 0x20000; + page_size = 256; + num_pages = 512; min_write_delay = 4500; max_write_delay = 4500; - mode = 0x41; - delay = 10; - blocksize = 32; + readback = 0xff 0xff; + mode = 65; + delay = 6; + blocksize = 256; readsize = 256; - read_lo = "0010.0000--xxxx.xxaa--aaaa.aaaa--oooo.oooo"; - read_hi = "0010.1000--xxxx.xxaa--aaaa.aaaa--oooo.oooo"; - loadpage_lo = "0100.0000--xxxx.xxxx--xxxx.aaaa--iiii.iiii"; - loadpage_hi = "0100.1000--xxxx.xxxx--xxxx.aaaa--iiii.iiii"; - writepage = "0100.1100--xxxx.xxaa--aaaa.xxxx--xxxx.xxxx"; + read_lo = "0010.0000--aaaa.aaaa--aaaa.aaaa--oooo.oooo"; + read_hi = "0010.1000--aaaa.aaaa--aaaa.aaaa--oooo.oooo"; + loadpage_lo = "0100.0000--000x.xxxx--xaaa.aaaa--iiii.iiii"; + loadpage_hi = "0100.1000--000x.xxxx--xaaa.aaaa--iiii.iiii"; + writepage = "0100.1100--aaaa.aaaa--axxx.xxxx--xxxx.xxxx"; ; memory "lfuse" size = 1; - initval = 0x62; - min_write_delay = 4500; - max_write_delay = 4500; + min_write_delay = 9000; + max_write_delay = 9000; read = "0101.0000--0000.0000--xxxx.xxxx--oooo.oooo"; write = "1010.1100--1010.0000--xxxx.xxxx--iiii.iiii"; ; memory "hfuse" size = 1; - initval = 0xdf; - min_write_delay = 4500; - max_write_delay = 4500; + min_write_delay = 9000; + max_write_delay = 9000; read = "0101.1000--0000.1000--xxxx.xxxx--oooo.oooo"; write = "1010.1100--1010.1000--xxxx.xxxx--iiii.iiii"; ; memory "efuse" size = 1; - initval = 0xff; - bitmask = 0x01; - min_write_delay = 4500; - max_write_delay = 4500; + min_write_delay = 9000; + max_write_delay = 9000; read = "0101.0000--0000.1000--xxxx.xxxx--oooo.oooo"; - write = "1010.1100--1010.0100--xxxx.xxxx--xxxx.xxxi"; + write = "1010.1100--1010.0100--xxxx.xxxx--xxxx.iiii"; ; memory "lock" - bitmask = 0x03; - min_write_delay = 4500; - max_write_delay = 4500; - read = "0101.1000--xxxx.xxxx--xxxx.xxxx--xxxx.xxoo"; - write = "1010.1100--1111.11ii--xxxx.xxxx--xxxx.xxxx"; + size = 1; + min_write_delay = 9000; + max_write_delay = 9000; + read = "0101.1000--0000.0000--xxxx.xxxx--oooo.oooo"; + write = "1010.1100--111x.xxxx--xxxx.xxxx--11ii.iiii"; ; - memory "io" - size = 64; + memory "signature" + size = 3; + read = "0011.0000--xxxx.xxxx--xxxx.xxaa--oooo.oooo"; ; - memory "sram" - size = 128; - offset = 0x60; + memory "calibration" + size = 1; + read = "0011.1000--000x.xxxx--0000.0000--oooo.oooo"; ; ; #------------------------------------------------------------ -# ATtiny261A +# AT90CAN64 #------------------------------------------------------------ -part parent "t261" # t261a - desc = "ATtiny261A"; - id = "t261a"; - variants = - "ATtiny261A-MF: MLF32, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny261A-MFR: MLF32, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny261A-MN: MLF32, Fmax=20 MHz, T=[-40 C, 105 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny261A-MNR: VQFN32, Fmax=20 MHz, T=[-40 C, 105 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny261A-MU: QFN32, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny261A-MUR: MLF32, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny261A-PU: PDIP20, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny261A-SU: SOIC20, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny261A-SUR: SOIC20, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny261A-XU: TSSOP20, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny261A-XUR: TSSOP20, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 31; -; - -#------------------------------------------------------------ -# ATtiny461 -#------------------------------------------------------------ - -part parent "t261" # t461 - desc = "ATtiny461"; - id = "t461"; - variants = - "ATtiny461: N/A, Fmax=20 MHz, T=[N/A, 85 C], Vcc=[N/A, N/A]", - "ATtiny461-20MU: MLF32, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATtiny461-20MUR: VQFN32, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATtiny461-20PU: PDIP20, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATtiny461-20SU: SOIC20, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATtiny461-20SUR: SOIC20, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATtiny461V-10MU: MLF32, Fmax=10 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny461V-10MUR: VQFN32, Fmax=10 MHz, T=[N/A, N/A], Vcc=[1.8 V, 5.5 V]", - "ATtiny461V-10PU: PDIP20, Fmax=10 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny461V-10SU: SOIC20, Fmax=10 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny461V-10SUR: SOIC20, Fmax=10 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 33; -# stk500_devcode = 0x21; -# avr910_devcode = 0x5e; - signature = 0x1e 0x92 0x08; +part + desc = "AT90CAN64"; + id = "c64"; + prog_modes = PM_SPM | PM_ISP | PM_HVPP | PM_JTAG; + mcuid = 172; + n_interrupts = 37; + n_boot_sections = 4; + boot_section_size = 1024; + stk500_devcode = 0xb3; + chip_erase_delay = 9000; + pagel = 0xd7; + bs2 = 0xa0; +# avr910_devcode = 0x43; + signature = 0x1e 0x96 0x81; + reset = io; + timeout = 200; + stabdelay = 100; + cmdexedelay = 25; + synchloops = 32; + pollindex = 3; + pollvalue = 0x53; + predelay = 1; + postdelay = 1; + pollmethod = 1; + pp_controlstack = + 0x0e, 0x1e, 0x0f, 0x1f, 0x2e, 0x3e, 0x2f, 0x3f, + 0x4e, 0x5e, 0x4f, 0x5f, 0x6e, 0x7e, 0x6f, 0x7f, + 0x66, 0x76, 0x67, 0x77, 0x6a, 0x7a, 0x6b, 0x7b, + 0xbe, 0xfd, 0x00, 0x01, 0x00, 0x00, 0x00, 0x01; + hventerstabdelay = 100; + latchcycles = 6; + hvleavestabdelay = 15; + chiperasepolltimeout = 10; + programfusepolltimeout = 5; + programlockpolltimeout = 5; + idr = 0x31; + rampz = 0x3b; + spmcr = 0x57; + eecr = 0x3f; + ocdrev = 3; + chip_erase = "1010.1100--100x.xxxx--xxxx.xxxx--xxxx.xxxx"; + pgm_enable = "1010.1100--0101.0011--xxxx.xxxx--xxxx.xxxx"; memory "eeprom" - size = 256; - num_pages = 64; - read = "1010.0000--xxxx.xxxx--aaaa.aaaa--oooo.oooo"; - write = "1100.0000--xxxx.xxxx--aaaa.aaaa--iiii.iiii"; - writepage = "1100.0010--00xx.xxxx--aaaa.aa00--xxxx.xxxx"; + size = 2048; + page_size = 8; + min_write_delay = 9000; + max_write_delay = 9000; + readback = 0xff 0xff; + mode = 65; + delay = 20; + blocksize = 8; + readsize = 256; + read = "1010.0000--000x.xaaa--aaaa.aaaa--oooo.oooo"; + write = "1100.0000--000x.xaaa--aaaa.aaaa--iiii.iiii"; + loadpage_lo = "1100.0001--0000.0000--0000.0aaa--iiii.iiii"; + writepage = "1100.0010--00xx.xaaa--aaaa.a000--xxxx.xxxx"; ; memory "flash" - size = 4096; - page_size = 64; - blocksize = 64; - read_lo = "0010.0000--xxxx.xaaa--aaaa.aaaa--oooo.oooo"; - read_hi = "0010.1000--xxxx.xaaa--aaaa.aaaa--oooo.oooo"; - loadpage_lo = "0100.0000--xxxx.xxxx--xxxa.aaaa--iiii.iiii"; - loadpage_hi = "0100.1000--xxxx.xxxx--xxxa.aaaa--iiii.iiii"; - writepage = "0100.1100--xxxx.xaaa--aaax.xxxx--xxxx.xxxx"; + paged = yes; + size = 0x10000; + page_size = 256; + num_pages = 256; + min_write_delay = 4500; + max_write_delay = 4500; + readback = 0xff 0xff; + mode = 65; + delay = 6; + blocksize = 256; + readsize = 256; + read_lo = "0010.0000--aaaa.aaaa--aaaa.aaaa--oooo.oooo"; + read_hi = "0010.1000--aaaa.aaaa--aaaa.aaaa--oooo.oooo"; + loadpage_lo = "0100.0000--000x.xxxx--xaaa.aaaa--iiii.iiii"; + loadpage_hi = "0100.1000--000x.xxxx--xaaa.aaaa--iiii.iiii"; + writepage = "0100.1100--aaaa.aaaa--axxx.xxxx--xxxx.xxxx"; ; - memory "sram" - size = 256; + memory "lfuse" + size = 1; + min_write_delay = 9000; + max_write_delay = 9000; + read = "0101.0000--0000.0000--xxxx.xxxx--oooo.oooo"; + write = "1010.1100--1010.0000--xxxx.xxxx--iiii.iiii"; ; -; - -#------------------------------------------------------------ -# ATtiny461A -#------------------------------------------------------------ - -part parent "t461" # t461a - desc = "ATtiny461A"; - id = "t461a"; - variants = - "ATtiny461A-MU: QFN32, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny461A-MUR: VQFN32, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny461A-PU: PDIP20, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny461A-SU: SOIC20, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny461A-SUR: SOIC20, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny461A-XU: TSSOP20, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny461A-XUR: TSSOP20, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 34; -; - -#------------------------------------------------------------ -# ATtiny861 -#------------------------------------------------------------ - -part parent "t261" # t861 - desc = "ATtiny861"; - id = "t861"; - variants = - "ATtiny861: N/A, Fmax=20 MHz, T=[N/A, 85 C], Vcc=[N/A, N/A]", - "ATtiny861-20MU: MLF32, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATtiny861-20MUR: VQFN32, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATtiny861-20PU: PDIP20, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATtiny861-20SU: SOIC20, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATtiny861-20SUR: SOIC20, Fmax=20 MHz, T=[N/A, N/A], Vcc=[2.7 V, 5.5 V]", - "ATtiny861V-10MU: MLF32, Fmax=10 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny861V-10MUR: VQFN32, Fmax=10 MHz, T=[N/A, N/A], Vcc=[1.8 V, 5.5 V]", - "ATtiny861V-10PU: PDIP20, Fmax=10 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny861V-10SU: SOIC20, Fmax=10 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny861V-10SUR: SOIC20, Fmax=10 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 38; -# stk500_devcode = 0x21; -# avr910_devcode = 0x5e; - signature = 0x1e 0x93 0x0d; - memory "eeprom" - size = 512; - num_pages = 128; - read = "1010.0000--xxxx.xxxa--aaaa.aaaa--oooo.oooo"; - write = "1100.0000--xxxx.xxxa--aaaa.aaaa--iiii.iiii"; - writepage = "1100.0010--00xx.xxxa--aaaa.aa00--xxxx.xxxx"; + memory "hfuse" + size = 1; + min_write_delay = 9000; + max_write_delay = 9000; + read = "0101.1000--0000.1000--xxxx.xxxx--oooo.oooo"; + write = "1010.1100--1010.1000--xxxx.xxxx--iiii.iiii"; ; - memory "flash" - size = 8192; - page_size = 64; - num_pages = 128; - blocksize = 64; - read_lo = "0010.0000--xxxx.aaaa--aaaa.aaaa--oooo.oooo"; - read_hi = "0010.1000--xxxx.aaaa--aaaa.aaaa--oooo.oooo"; - loadpage_lo = "0100.0000--xxxx.xxxx--xxxa.aaaa--iiii.iiii"; - loadpage_hi = "0100.1000--xxxx.xxxx--xxxa.aaaa--iiii.iiii"; - writepage = "0100.1100--xxxx.aaaa--aaax.xxxx--xxxx.xxxx"; + memory "efuse" + size = 1; + min_write_delay = 9000; + max_write_delay = 9000; + read = "0101.0000--0000.1000--xxxx.xxxx--oooo.oooo"; + write = "1010.1100--1010.0100--xxxx.xxxx--xxxx.iiii"; ; - memory "sram" - size = 512; + memory "lock" + size = 1; + min_write_delay = 9000; + max_write_delay = 9000; + read = "0101.1000--0000.0000--xxxx.xxxx--oooo.oooo"; + write = "1010.1100--111x.xxxx--xxxx.xxxx--11ii.iiii"; ; -; -#------------------------------------------------------------ -# ATtiny861A -#------------------------------------------------------------ + memory "signature" + size = 3; + read = "0011.0000--xxxx.xxxx--xxxx.xxaa--oooo.oooo"; + ; -part parent "t861" # t861a - desc = "ATtiny861A"; - id = "t861a"; - variants = - "ATtiny861A-MU: QFN32, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny861A-MUR: VQFN32, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny861A-PU: PDIP20, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny861A-SU: SOIC20, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny861A-SUR: SOIC20, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny861A-XU: TSSOP20, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny861A-XUR: TSSOP20, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 39; + memory "calibration" + size = 1; + read = "0011.1000--000x.xxxx--0000.0000--oooo.oooo"; + ; ; #------------------------------------------------------------ -# ATtiny48 +# AT90CAN32 #------------------------------------------------------------ -part parent ".classic" # t48 - desc = "ATtiny48"; - id = "t48"; - variants = - "ATtiny48-AU: TQFP32, Fmax=12 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny48-AUR: TQFP32, Fmax=12 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny48-CCU: UFBGA32, Fmax=12 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny48-MMH: VQFN28, Fmax=12 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny48-MMHR: VQFN28, Fmax=12 MHz, T=[N/A, N/A], Vcc=[1.8 V, 5.5 V]", - "ATtiny48-MMU: MLF28, Fmax=12 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny48-MMUR: VQFN28, Fmax=12 MHz, T=[N/A, N/A], Vcc=[1.8 V, 5.5 V]", - "ATtiny48-MU: MLF32, Fmax=12 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny48-MUR: VQFN32, Fmax=12 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny48-PU: PDIP28, Fmax=12 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]"; - prog_modes = PM_SPM | PM_ISP | PM_HVPP | PM_debugWIRE; - mcuid = 23; - archnum = 25; - n_interrupts = 20; - stk500_devcode = 0x73; - chip_erase_delay = 15000; +part + desc = "AT90CAN32"; + id = "c32"; + prog_modes = PM_SPM | PM_ISP | PM_HVPP | PM_JTAG; + mcuid = 171; + n_interrupts = 37; + n_boot_sections = 4; + boot_section_size = 1024; + stk500_devcode = 0xb3; + chip_erase_delay = 9000; pagel = 0xd7; - bs2 = 0xc2; -# avr910_devcode = 0x??; - signature = 0x1e 0x92 0x09; + bs2 = 0xa0; +# avr910_devcode = 0x43; + signature = 0x1e 0x95 0x81; reset = io; timeout = 200; stabdelay = 100; @@ -5898,250 +4060,119 @@ part parent ".classic" # t48 0x0e, 0x1e, 0x0f, 0x1f, 0x2e, 0x3e, 0x2f, 0x3f, 0x4e, 0x5e, 0x4f, 0x5f, 0x6e, 0x7e, 0x6f, 0x7f, 0x66, 0x76, 0x67, 0x77, 0x6a, 0x7a, 0x6b, 0x7b, - 0xbe, 0xfd, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00; - flash_instr = 0xb6, 0x01, 0x11; - eeprom_instr = - 0xbd, 0xf2, 0xbd, 0xe1, 0xbb, 0xcf, 0xb4, 0x00, - 0xbe, 0x01, 0xb6, 0x01, 0xbc, 0x00, 0xbb, 0xbf, - 0x99, 0xf9, 0xbb, 0xaf; + 0xbe, 0xfd, 0x00, 0x01, 0x00, 0x00, 0x00, 0x01; hventerstabdelay = 100; - latchcycles = 5; - togglevtg = 1; - poweroffdelay = 15; - resetdelayms = 1; + latchcycles = 6; hvleavestabdelay = 15; - resetdelay = 15; chiperasepolltimeout = 10; programfusepolltimeout = 5; programlockpolltimeout = 5; idr = 0x31; + rampz = 0x3b; spmcr = 0x57; eecr = 0x3f; - ocdrev = 1; + ocdrev = 3; + chip_erase = "1010.1100--100x.xxxx--xxxx.xxxx--xxxx.xxxx"; + pgm_enable = "1010.1100--0101.0011--xxxx.xxxx--xxxx.xxxx"; memory "eeprom" - size = 64; - page_size = 4; - min_write_delay = 3600; - max_write_delay = 3600; - mode = 0x41; + size = 1024; + page_size = 8; + min_write_delay = 9000; + max_write_delay = 9000; + readback = 0xff 0xff; + mode = 65; delay = 20; - blocksize = 4; + blocksize = 8; readsize = 256; - read = "1010.0000--000x.xxxx--xaaa.aaaa--oooo.oooo"; - write = "1100.0000--000x.xxxx--xaaa.aaaa--iiii.iiii"; - loadpage_lo = "1100.0001--0000.0000--0000.00aa--iiii.iiii"; - writepage = "1100.0010--00xx.xxxx--xaaa.aa00--xxxx.xxxx"; + read = "1010.0000--000x.xxaa--aaaa.aaaa--oooo.oooo"; + write = "1100.0000--000x.xxaa--aaaa.aaaa--iiii.iiii"; + loadpage_lo = "1100.0001--0000.0000--0000.0aaa--iiii.iiii"; + writepage = "1100.0010--00xx.xxaa--aaaa.a000--xxxx.xxxx"; ; memory "flash" paged = yes; - size = 4096; - page_size = 64; - num_pages = 64; + size = 0x8000; + page_size = 256; + num_pages = 128; min_write_delay = 4500; max_write_delay = 4500; - mode = 0x41; - delay = 10; - blocksize = 64; + readback = 0xff 0xff; + mode = 65; + delay = 6; + blocksize = 256; readsize = 256; - read_lo = "0010.0000--0000.aaaa--aaaa.aaaa--oooo.oooo"; - read_hi = "0010.1000--0000.aaaa--aaaa.aaaa--oooo.oooo"; - loadpage_lo = "0100.0000--000x.xxxx--xxxa.aaaa--iiii.iiii"; - loadpage_hi = "0100.1000--000x.xxxx--xxxa.aaaa--iiii.iiii"; - writepage = "0100.1100--0000.aaaa--aaax.xxxx--xxxx.xxxx"; + read_lo = "0010.0000--aaaa.aaaa--aaaa.aaaa--oooo.oooo"; + read_hi = "0010.1000--aaaa.aaaa--aaaa.aaaa--oooo.oooo"; + loadpage_lo = "0100.0000--000x.xxxx--xaaa.aaaa--iiii.iiii"; + loadpage_hi = "0100.1000--000x.xxxx--xaaa.aaaa--iiii.iiii"; + writepage = "0100.1100--aaaa.aaaa--axxx.xxxx--xxxx.xxxx"; ; memory "lfuse" size = 1; - initval = 0x6e; - min_write_delay = 4500; - max_write_delay = 4500; + min_write_delay = 9000; + max_write_delay = 9000; read = "0101.0000--0000.0000--xxxx.xxxx--oooo.oooo"; write = "1010.1100--1010.0000--xxxx.xxxx--iiii.iiii"; ; memory "hfuse" size = 1; - initval = 0xdf; - min_write_delay = 4500; - max_write_delay = 4500; + min_write_delay = 9000; + max_write_delay = 9000; read = "0101.1000--0000.1000--xxxx.xxxx--oooo.oooo"; write = "1010.1100--1010.1000--xxxx.xxxx--iiii.iiii"; ; memory "efuse" size = 1; - initval = 0xff; - bitmask = 0x01; - min_write_delay = 4500; - max_write_delay = 4500; + min_write_delay = 9000; + max_write_delay = 9000; read = "0101.0000--0000.1000--xxxx.xxxx--oooo.oooo"; - write = "1010.1100--1010.0100--xxxx.xxxx--1111.111i"; + write = "1010.1100--1010.0100--xxxx.xxxx--xxxx.iiii"; ; memory "lock" - bitmask = 0x03; - min_write_delay = 4500; - max_write_delay = 4500; - ; - - memory "sram" - size = 256; - ; -; - -#------------------------------------------------------------ -# ATtiny88 -#------------------------------------------------------------ - -part parent "t48" # t88 - desc = "ATtiny88"; - id = "t88"; - variants = - "ATtiny88-AU: TQFP32, Fmax=16 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny88-AUR: TQFP32, Fmax=12 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny88-CCU: UFBGA32, Fmax=12 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny88-MMH: VQFN28, Fmax=12 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny88-MMHR: VQFN28, Fmax=12 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny88-MMU: QFN28, Fmax=12 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny88-MMUR: QFN28, Fmax=12 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny88-MU: QFN32, Fmax=12 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny88-MUR: VQFN32, Fmax=12 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny88-PU: PDIP28, Fmax=12 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 28; - chip_erase_delay = 9000; -# avr910_devcode = 0x??; - signature = 0x1e 0x93 0x11; - - memory "flash" - size = 8192; - num_pages = 128; + size = 1; + min_write_delay = 9000; + max_write_delay = 9000; + read = "0101.1000--0000.0000--xxxx.xxxx--oooo.oooo"; + write = "1010.1100--111x.xxxx--xxxx.xxxx--11ii.iiii"; ; - memory "efuse" - write = "1010.1100--1010.0100--xxxx.xxxx--xxxx.xxxi"; + memory "signature" + size = 3; + read = "0011.0000--xxxx.xxxx--xxxx.xxaa--oooo.oooo"; ; - memory "sram" - size = 512; + memory "calibration" + size = 1; + read = "0011.1000--000x.xxxx--0000.0000--oooo.oooo"; ; ; #------------------------------------------------------------ -# ATtiny28 +# ATmega16 #------------------------------------------------------------ -# This is an HVPP-only device. - -part parent ".classic" # t28 - desc = "ATtiny28"; - id = "t28"; - variants = - "ATtiny28: N/A, Fmax=N/A, T=[N/A, N/A], Vcc=[2.7 V, 5.5 V]", - "ATtiny28L-4AU: TQFP32, Fmax=4 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATtiny28L-4MU: MLF32, Fmax=4 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATtiny28L-4MUR: VQFN32, Fmax=4 MHz, T=[N/A, N/A], Vcc=[2.7 V, 5.5 V]", - "ATtiny28L-4PU: PDIP28, Fmax=4 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATtiny28V-1AU: TQFP32, Fmax=1.2 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny28V-1AUR: TQFP32, Fmax=1 MHz, T=[N/A, N/A], Vcc=[1.8 V, 5.5 V]", - "ATtiny28V-1MU: MLF32, Fmax=1.2 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny28V-1MUR: VQFN32, Fmax=1 MHz, T=[N/A, N/A], Vcc=[1.8 V, 5.5 V]", - "ATtiny28V-1PU: PDIP28, Fmax=1.2 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]"; - prog_modes = PM_HVPP; - mcuid = 18; - archnum = 1; - n_interrupts = 6; - stk500_devcode = 0x22; - avr910_devcode = 0x5c; - signature = 0x1e 0x91 0x07; - serial = no; - pp_controlstack = - 0x0e, 0x1e, 0x0f, 0x1f, 0x2e, 0x3e, 0x2f, 0x3f, - 0x4e, 0x5e, 0x4f, 0x5f, 0x6e, 0x7e, 0x6f, 0x7f, - 0x66, 0x76, 0x67, 0x77, 0x6a, 0x7a, 0x6b, 0x7b, - 0xbe, 0xfd, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00; - hventerstabdelay = 100; - hvleavestabdelay = 15; - resetdelay = 15; - chiperasepolltimeout = 10; - programfusepolltimeout = 5; - programlockpolltimeout = 5; - factory_fcpu = 1200000; - chip_erase = NULL; - pgm_enable = NULL; - - memory "flash" - size = 2048; - page_size = 2; - delay = 5; - readsize = 256; - ; - - memory "fuse" - size = 1; - initval = 0x12; - bitmask = 0x1f; - ; - - memory "lock" - initval = 0x06; - bitmask = 0x06; - read = NULL; - write = NULL; - ; - - memory "prodsig" - read = NULL; - ; - - memory "signature" - read = NULL; - ; - - memory "calibration" - read = NULL; - ; - - memory "sernum" - read = NULL; - ; - - memory "io" - size = 64; - ; - - memory "sram" - size = 32; - offset = 0x60; - ; -; - -#------------------------------------------------------------ -# ATtiny43U -#------------------------------------------------------------ - -part parent ".classic" # t43u - desc = "ATtiny43U"; - id = "t43u"; - variants = - "ATtiny43U-MU: QFN20, Fmax=8 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATtiny43U-MUR: WQFN20, Fmax=8 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATtiny43U-SU: SOIC20, Fmax=8 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATtiny43U-SUR: SOIC20, Fmax=8 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]"; - prog_modes = PM_SPM | PM_ISP | PM_HVPP | PM_debugWIRE; - mcuid = 19; - archnum = 25; - n_interrupts = 16; - stk500_devcode = 0x14; -# avr910_devcode = ?; -# Try the AT90S2313 devcode: - avr910_devcode = 0x20; - chip_erase_delay = 1000; - pagel = 0xa3; - bs2 = 0xa2; - signature = 0x1e 0x92 0x0c; +part + desc = "ATmega16"; + id = "m16"; + prog_modes = PM_SPM | PM_ISP | PM_HVPP | PM_JTAG | PM_JTAGmkI; + mcuid = 49; + n_interrupts = 21; + n_boot_sections = 4; + boot_section_size = 256; + stk500_devcode = 0x82; + avr910_devcode = 0x74; + chip_erase_delay = 9000; + pagel = 0xd7; + bs2 = 0xa0; + signature = 0x1e 0x94 0x03; reset = io; + allowfullpagebitstream = yes; timeout = 200; stabdelay = 100; cmdexedelay = 25; @@ -6151,134 +4182,122 @@ part parent ".classic" # t43u predelay = 1; postdelay = 1; pp_controlstack = - 0x0e, 0x1e, 0x0e, 0x1e, 0x2e, 0x3e, 0x2e, 0x3e, - 0x4e, 0x5e, 0x4e, 0x5e, 0x6e, 0x7e, 0x6e, 0x7e, - 0x06, 0x16, 0x46, 0x56, 0x0a, 0x1a, 0x4a, 0x5a, - 0x1e, 0x7c, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00; - flash_instr = 0xb4, 0x07, 0x17; - eeprom_instr = - 0xbb, 0xff, 0xbb, 0xee, 0xbb, 0xcc, 0xb2, 0x0d, - 0xbc, 0x07, 0xb4, 0x07, 0xba, 0x0d, 0xbb, 0xbc, - 0x99, 0xe1, 0xbb, 0xac; + 0x0e, 0x1e, 0x0f, 0x1f, 0x2e, 0x3e, 0x2f, 0x3f, + 0x4e, 0x5e, 0x4f, 0x5f, 0x6e, 0x7e, 0x6f, 0x7f, + 0x66, 0x76, 0x67, 0x77, 0x6a, 0x7a, 0x6b, 0x7b, + 0xbe, 0xfd, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00; hventerstabdelay = 100; - latchcycles = 5; - togglevtg = 1; - poweroffdelay = 20; - resetdelayms = 1; + progmodedelay = 100; + latchcycles = 6; hvleavestabdelay = 15; resetdelay = 15; chiperasepolltimeout = 10; programfusepolltimeout = 5; programlockpolltimeout = 5; - idr = 0x27; + idr = 0x31; spmcr = 0x57; - eecr = 0x3c; - ocdrev = 1; + ocdrev = 2; + chip_erase = "1010.1100--100x.xxxx--xxxx.xxxx--xxxx.xxxx"; + pgm_enable = "1010.1100--0101.0011--xxxx.xxxx--xxxx.xxxx"; memory "eeprom" - size = 64; + size = 512; page_size = 4; - num_pages = 16; - min_write_delay = 4000; - max_write_delay = 4500; - mode = 0x41; + min_write_delay = 9000; + max_write_delay = 9000; + readback = 0xff 0xff; + mode = 4; delay = 10; - blocksize = 4; + blocksize = 128; readsize = 256; - read = "1010.0000--000x.xxxx--00aa.aaaa--oooo.oooo"; - write = "1100.0000--000x.xxxx--00aa.aaaa--iiii.iiii"; + read = "1010.0000--00xx.xxaa--aaaa.aaaa--oooo.oooo"; + write = "1100.0000--00xx.xxaa--aaaa.aaaa--iiii.iiii"; loadpage_lo = "1100.0001--0000.0000--0000.00aa--iiii.iiii"; - writepage = "1100.0010--00xx.xxxx--00aa.aa00--xxxx.xxxx"; + writepage = "1100.0010--00xx.xxaa--aaaa.aa00--xxxx.xxxx"; ; memory "flash" paged = yes; - size = 4096; - page_size = 64; - num_pages = 64; + size = 0x4000; + page_size = 128; + num_pages = 128; min_write_delay = 4500; max_write_delay = 4500; - mode = 0x41; - delay = 10; - blocksize = 64; + readback = 0xff 0xff; + mode = 33; + delay = 6; + blocksize = 128; readsize = 256; - read_lo = "0010.0000--0000.0aaa--aaaa.aaaa--oooo.oooo"; - read_hi = "0010.1000--0000.0aaa--aaaa.aaaa--oooo.oooo"; - loadpage_lo = "0100.0000--000x.xxxx--xxxa.aaaa--iiii.iiii"; - loadpage_hi = "0100.1000--000x.xxxx--xxxa.aaaa--iiii.iiii"; - writepage = "0100.1100--0000.0aaa--aaax.xxxx--xxxx.xxxx"; + read_lo = "0010.0000--00aa.aaaa--aaaa.aaaa--oooo.oooo"; + read_hi = "0010.1000--00aa.aaaa--aaaa.aaaa--oooo.oooo"; + loadpage_lo = "0100.0000--00xx.xxxx--xxaa.aaaa--iiii.iiii"; + loadpage_hi = "0100.1000--00xx.xxxx--xxaa.aaaa--iiii.iiii"; + writepage = "0100.1100--00aa.aaaa--aaxx.xxxx--xxxx.xxxx"; ; memory "lfuse" size = 1; - initval = 0x62; - min_write_delay = 4500; - max_write_delay = 4500; + min_write_delay = 9000; + max_write_delay = 9000; read = "0101.0000--0000.0000--xxxx.xxxx--oooo.oooo"; write = "1010.1100--1010.0000--xxxx.xxxx--iiii.iiii"; ; memory "hfuse" size = 1; - initval = 0xdf; - min_write_delay = 4500; - max_write_delay = 4500; + min_write_delay = 9000; + max_write_delay = 9000; read = "0101.1000--0000.1000--xxxx.xxxx--oooo.oooo"; write = "1010.1100--1010.1000--xxxx.xxxx--iiii.iiii"; ; - memory "efuse" + memory "lock" size = 1; - initval = 0xff; - bitmask = 0x01; - min_write_delay = 4500; - max_write_delay = 4500; - read = "0101.0000--0000.1000--xxxx.xxxx--oooo.oooo"; - write = "1010.1100--1010.0100--xxxx.xxxx--xxxx.xxxi"; + min_write_delay = 9000; + max_write_delay = 9000; + read = "0101.1000--0000.0000--xxxx.xxxx--oooo.oooo"; + write = "1010.1100--111x.xxxx--xxxx.xxxx--11ii.iiii"; ; - memory "lock" - bitmask = 0x03; - min_write_delay = 4500; - max_write_delay = 4500; + memory "signature" + size = 3; + read = "0011.0000--xxxx.xxxx--xxxx.xxaa--oooo.oooo"; ; - memory "io" - size = 64; + memory "calibration" + size = 4; + read = "0011.1000--000x.xxxx--0000.00aa--oooo.oooo"; ; +; - memory "sram" - size = 256; - offset = 0x60; - ; +#------------------------------------------------------------ +# ATmega16A +#------------------------------------------------------------ + +part parent "m16" + desc = "ATmega16A"; + id = "m16a"; + mcuid = 50; ; #------------------------------------------------------------ -# ATtiny828 +# ATmega324P #------------------------------------------------------------ -part parent ".classic" # t828 - desc = "ATtiny828"; - id = "t828"; - variants = - "ATtiny828-AU: TQFP32, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.7 V, 5.5 V]", - "ATtiny828-AUR: TQFP32, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.7 V, 5.5 V]", - "ATtiny828-MU: QFN32, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.7 V, 5.5 V]", - "ATtiny828-MUR: VQFN32, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.62 V, 5.5 V]", - "ATtiny828R-AU: TQFP32, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.62 V, 5.5 V]", - "ATtiny828R-AUR: TQFP32, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.62 V, 5.5 V]"; - prog_modes = PM_SPM | PM_ISP | PM_HVPP | PM_debugWIRE; - mcuid = 35; - archnum = 25; - n_interrupts = 26; +part + desc = "ATmega324P"; + id = "m324p"; + prog_modes = PM_SPM | PM_ISP | PM_HVPP | PM_JTAG; + mcuid = 111; + n_interrupts = 31; n_boot_sections = 4; - boot_section_size = 256; - stk500_devcode = 0x86; - chip_erase_delay = 15000; + boot_section_size = 512; + stk500_devcode = 0x82; # no STK500v1 support, use the ATmega16 one + avr910_devcode = 0x74; + chip_erase_delay = 55000; pagel = 0xd7; - bs2 = 0xc2; -# avr910_devcode = 0x??; - signature = 0x1e 0x93 0x14; + bs2 = 0xa0; + signature = 0x1e 0x95 0x08; reset = io; timeout = 200; stabdelay = 100; @@ -6288,147 +4307,198 @@ part parent ".classic" # t828 pollvalue = 0x53; predelay = 1; postdelay = 1; - pollmethod = 1; pp_controlstack = 0x0e, 0x1e, 0x0f, 0x1f, 0x2e, 0x3e, 0x2f, 0x3f, 0x4e, 0x5e, 0x4f, 0x5f, 0x6e, 0x7e, 0x6f, 0x7f, 0x66, 0x76, 0x67, 0x77, 0x6a, 0x7a, 0x6b, 0x7b, 0xbe, 0xfd, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00; - flash_instr = 0xb6, 0x01, 0x11; - eeprom_instr = - 0xbd, 0xf2, 0xbd, 0xe1, 0xbb, 0xcf, 0xb4, 0x00, - 0xbe, 0x01, 0xb6, 0x01, 0xbc, 0x00, 0xbb, 0xbf, - 0x99, 0xf9, 0xbb, 0xaf; hventerstabdelay = 100; latchcycles = 5; togglevtg = 1; poweroffdelay = 15; resetdelayms = 1; hvleavestabdelay = 15; - resetdelay = 15; chiperasepolltimeout = 10; programfusepolltimeout = 5; programlockpolltimeout = 5; idr = 0x31; spmcr = 0x57; - eecr = 0x3f; - ocdrev = 1; + ocdrev = 3; + chip_erase = "1010.1100--100x.xxxx--xxxx.xxxx--xxxx.xxxx"; + pgm_enable = "1010.1100--0101.0011--xxxx.xxxx--xxxx.xxxx"; memory "eeprom" - size = 256; + size = 1024; page_size = 4; - min_write_delay = 3600; - max_write_delay = 3600; - mode = 0x41; - delay = 20; - blocksize = 4; + min_write_delay = 9000; + max_write_delay = 9000; + readback = 0xff 0xff; + mode = 65; + delay = 10; + blocksize = 128; readsize = 256; - read = "1010.0000--000x.xxxa--aaaa.aaaa--oooo.oooo"; - write = "1100.0000--000x.xxxa--aaaa.aaaa--iiii.iiii"; + read = "1010.0000--00xx.xaaa--aaaa.aaaa--oooo.oooo"; + write = "1100.0000--00xx.xaaa--aaaa.aaaa--iiii.iiii"; loadpage_lo = "1100.0001--0000.0000--0000.00aa--iiii.iiii"; - writepage = "1100.0010--00xx.xxxa--aaaa.aa00--xxxx.xxxx"; + writepage = "1100.0010--00xx.xaaa--aaaa.aa00--xxxx.xxxx"; ; memory "flash" paged = yes; - size = 8192; - page_size = 64; - num_pages = 128; + size = 0x8000; + page_size = 128; + num_pages = 256; min_write_delay = 4500; max_write_delay = 4500; - mode = 0x41; - delay = 10; - blocksize = 64; + readback = 0xff 0xff; + mode = 33; + delay = 6; + blocksize = 256; readsize = 256; - read_lo = "0010.0000--0000.aaaa--aaaa.aaaa--oooo.oooo"; - read_hi = "0010.1000--0000.aaaa--aaaa.aaaa--oooo.oooo"; - loadpage_lo = "0100.0000--000x.xxxx--xxxa.aaaa--iiii.iiii"; - loadpage_hi = "0100.1000--000x.xxxx--xxxa.aaaa--iiii.iiii"; - writepage = "0100.1100--0000.aaaa--aaax.xxxx--xxxx.xxxx"; + read_lo = "0010.0000--0aaa.aaaa--aaaa.aaaa--oooo.oooo"; + read_hi = "0010.1000--0aaa.aaaa--aaaa.aaaa--oooo.oooo"; + loadpage_lo = "0100.0000--00xx.xxxx--xxaa.aaaa--iiii.iiii"; + loadpage_hi = "0100.1000--00xx.xxxx--xxaa.aaaa--iiii.iiii"; + writepage = "0100.1100--0aaa.aaaa--aaxx.xxxx--xxxx.xxxx"; ; memory "lfuse" size = 1; - initval = 0x6e; - bitmask = 0xf3; - min_write_delay = 4500; - max_write_delay = 4500; + min_write_delay = 9000; + max_write_delay = 9000; read = "0101.0000--0000.0000--xxxx.xxxx--oooo.oooo"; write = "1010.1100--1010.0000--xxxx.xxxx--iiii.iiii"; ; memory "hfuse" size = 1; - initval = 0xdf; - min_write_delay = 4500; - max_write_delay = 4500; + min_write_delay = 9000; + max_write_delay = 9000; read = "0101.1000--0000.1000--xxxx.xxxx--oooo.oooo"; write = "1010.1100--1010.1000--xxxx.xxxx--iiii.iiii"; ; memory "efuse" size = 1; - initval = 0xff; - bitmask = 0xf7; - min_write_delay = 4500; - max_write_delay = 4500; + min_write_delay = 9000; + max_write_delay = 9000; read = "0101.0000--0000.1000--xxxx.xxxx--oooo.oooo"; - write = "1010.1100--1010.0100--xxxx.xxxx--iiii.1iii"; + write = "1010.1100--1010.0100--xxxx.xxxx--1111.1iii"; ; memory "lock" - bitmask = 0x3f; - min_write_delay = 4500; - max_write_delay = 4500; + size = 1; + min_write_delay = 9000; + max_write_delay = 9000; + read = "0101.1000--0000.0000--xxxx.xxxx--oooo.oooo"; + write = "1010.1100--111x.xxxx--xxxx.xxxx--11ii.iiii"; + ; + + memory "signature" + size = 3; + read = "0011.0000--xxxx.xxxx--xxxx.xxaa--oooo.oooo"; + ; + + memory "calibration" + size = 1; + read = "0011.1000--000x.xxxx--0000.0000--oooo.oooo"; ; +; + +#------------------------------------------------------------ +# ATmega164P +#------------------------------------------------------------ + +part parent "m324p" + desc = "ATmega164P"; + id = "m164p"; + mcuid = 93; + boot_section_size = 256; + signature = 0x1e 0x94 0x0a; - memory "sram" + memory "eeprom" size = 512; ; + + memory "flash" + size = 0x4000; + num_pages = 128; + ; ; #------------------------------------------------------------ -# ATtiny828R +# ATmega164PA #------------------------------------------------------------ -part parent "t828" # t828r - desc = "ATtiny828R"; - id = "t828r"; - variants = - "ATtiny828R-AU: TQFP32, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.7 V, 5.5 V]", - "ATtiny828R-AUR: TQFP32, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.7 V, 5.5 V]"; - mcuid = 36; +part parent "m164p" + desc = "ATmega164PA"; + id = "m164pa"; + mcuid = 94; ; #------------------------------------------------------------ -# ATtiny87 +# ATmega164A #------------------------------------------------------------ -part parent ".classic" # t87 - desc = "ATtiny87"; - id = "t87"; - variants = - "ATtiny87-A15MD-VAO: VQFN32, Fmax=16 MHz, T=[-40 C, 150 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny87-A15SZ: SOIC20, Fmax=16 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny87-A15XD: TSSOP20, Fmax=16 MHz, T=[-40 C, 150 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny87-MU: VQFN32, Fmax=16 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny87-MUR: VQFN32, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny87-SU: SOIC20, Fmax=16 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny87-SUR: SOIC20, Fmax=16 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny87-XU: TSSOP20, Fmax=16 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny87-XUR: TSSOP20, Fmax=16 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]"; - prog_modes = PM_SPM | PM_ISP | PM_HVPP | PM_debugWIRE; - mcuid = 27; - archnum = 25; - n_interrupts = 20; -# no STK500 devcode in XML file, use the ATtiny45 one - stk500_devcode = 0x14; -# Try the AT90S2313 devcode: - avr910_devcode = 0x20; - chip_erase_delay = 15000; - pagel = 0xb3; - bs2 = 0xb2; - signature = 0x1e 0x93 0x87; +part parent "m164p" + desc = "ATmega164A"; + id = "m164a"; + mcuid = 92; + signature = 0x1e 0x94 0x0f; +; + +#------------------------------------------------------------ +# ATmega324PB +#------------------------------------------------------------ + +part parent "m324p" + desc = "ATmega324PB"; + id = "m324pb"; + mcuid = 113; + n_interrupts = 51; + signature = 0x1e 0x95 0x17; +; + +#------------------------------------------------------------ +# ATmega324PA +#------------------------------------------------------------ + +part parent "m324p" + desc = "ATmega324PA"; + id = "m324pa"; + mcuid = 112; + signature = 0x1e 0x95 0x11; +; + +#------------------------------------------------------------ +# ATmega324A +#------------------------------------------------------------ + +part parent "m324p" + desc = "ATmega324A"; + id = "m324a"; + mcuid = 110; + signature = 0x1e 0x95 0x15; +; + +#------------------------------------------------------------ +# ATmega644 +#------------------------------------------------------------ + +part + desc = "ATmega644"; + id = "m644"; + prog_modes = PM_SPM | PM_ISP | PM_HVPP | PM_JTAG; + mcuid = 127; + n_interrupts = 28; + n_boot_sections = 4; + boot_section_size = 1024; + stk500_devcode = 0x82; # no STK500v1 support, use the ATmega16 one + avr910_devcode = 0x74; + chip_erase_delay = 55000; + pagel = 0xd7; + bs2 = 0xa0; + signature = 0x1e 0x96 0x09; reset = io; timeout = 200; stabdelay = 100; @@ -6439,66 +4509,59 @@ part parent ".classic" # t87 predelay = 1; postdelay = 1; pp_controlstack = - 0x0e, 0x1e, 0x0e, 0x1e, 0x2e, 0x3e, 0x2e, 0x3e, - 0x4e, 0x5e, 0x4e, 0x5e, 0x6e, 0x7e, 0x6e, 0x7e, - 0x06, 0x16, 0x46, 0x56, 0x0a, 0x1a, 0x4a, 0x5a, - 0x1e, 0x7c, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00; - flash_instr = 0xb6, 0x01, 0x11; - eeprom_instr = - 0xbd, 0xf2, 0xbd, 0xe1, 0xbb, 0xcf, 0xb4, 0x00, - 0xbe, 0x01, 0xb6, 0x01, 0xbc, 0x00, 0xbb, 0xbf, - 0x99, 0xf9, 0xbb, 0xaf; + 0x0e, 0x1e, 0x0f, 0x1f, 0x2e, 0x3e, 0x2f, 0x3f, + 0x4e, 0x5e, 0x4f, 0x5f, 0x6e, 0x7e, 0x6f, 0x7f, + 0x66, 0x76, 0x67, 0x77, 0x6a, 0x7a, 0x6b, 0x7b, + 0xbe, 0xfd, 0x00, 0x01, 0x00, 0x00, 0x00, 0x02; hventerstabdelay = 100; - latchcycles = 5; - togglevtg = 1; - poweroffdelay = 15; - resetdelayms = 1; + latchcycles = 6; hvleavestabdelay = 15; - resetdelay = 15; chiperasepolltimeout = 10; programfusepolltimeout = 5; programlockpolltimeout = 5; idr = 0x31; spmcr = 0x57; - eecr = 0x3f; - ocdrev = 1; + ocdrev = 3; + chip_erase = "1010.1100--100x.xxxx--xxxx.xxxx--xxxx.xxxx"; + pgm_enable = "1010.1100--0101.0011--xxxx.xxxx--xxxx.xxxx"; memory "eeprom" - size = 512; - page_size = 4; - min_write_delay = 4000; - max_write_delay = 4500; - mode = 0x41; + size = 2048; + page_size = 8; + min_write_delay = 9000; + max_write_delay = 9000; + readback = 0xff 0xff; + mode = 65; delay = 10; - blocksize = 4; + blocksize = 128; readsize = 256; - read = "1010.0000--00xx.xxxa--aaaa.aaaa--oooo.oooo"; - write = "1100.0000--00xx.xxxa--aaaa.aaaa--iiii.iiii"; - loadpage_lo = "1100.0001--0000.0000--0000.00aa--iiii.iiii"; - writepage = "1100.0010--00xx.xxxa--aaaa.aa00--xxxx.xxxx"; + read = "1010.0000--00xx.aaaa--aaaa.aaaa--oooo.oooo"; + write = "1100.0000--00xx.aaaa--aaaa.aaaa--iiii.iiii"; + loadpage_lo = "1100.0001--0000.0000--0000.0aaa--iiii.iiii"; + writepage = "1100.0010--00xx.aaaa--aaaa.a000--xxxx.xxxx"; ; memory "flash" paged = yes; - size = 8192; - page_size = 128; - num_pages = 64; + size = 0x10000; + page_size = 256; + num_pages = 256; min_write_delay = 4500; max_write_delay = 4500; - mode = 0x41; - delay = 10; - blocksize = 64; + readback = 0xff 0xff; + mode = 33; + delay = 6; + blocksize = 256; readsize = 256; - read_lo = "0010.0000--000a.aaaa--aaaa.aaaa--oooo.oooo"; - read_hi = "0010.1000--000a.aaaa--aaaa.aaaa--oooo.oooo"; - loadpage_lo = "0100.0000--000x.xxxx--xxaa.aaaa--iiii.iiii"; - loadpage_hi = "0100.1000--000x.xxxx--xxaa.aaaa--iiii.iiii"; - writepage = "0100.1100--0000.aaaa--aaax.xxxx--xxxx.xxxx"; + read_lo = "0010.0000--aaaa.aaaa--aaaa.aaaa--oooo.oooo"; + read_hi = "0010.1000--aaaa.aaaa--aaaa.aaaa--oooo.oooo"; + loadpage_lo = "0100.0000--00xx.xxxx--xaaa.aaaa--iiii.iiii"; + loadpage_hi = "0100.1000--00xx.xxxx--xaaa.aaaa--iiii.iiii"; + writepage = "0100.1100--aaaa.aaaa--axxx.xxxx--xxxx.xxxx"; ; memory "lfuse" size = 1; - initval = 0x62; min_write_delay = 9000; max_write_delay = 9000; read = "0101.0000--0000.0000--xxxx.xxxx--oooo.oooo"; @@ -6507,7 +4570,6 @@ part parent ".classic" # t87 memory "hfuse" size = 1; - initval = 0xdf; min_write_delay = 9000; max_write_delay = 9000; read = "0101.1000--0000.1000--xxxx.xxxx--oooo.oooo"; @@ -6516,83 +4578,84 @@ part parent ".classic" # t87 memory "efuse" size = 1; - initval = 0xff; - bitmask = 0x01; min_write_delay = 9000; max_write_delay = 9000; read = "0101.0000--0000.1000--xxxx.xxxx--oooo.oooo"; - write = "1010.1100--1010.0100--xxxx.xxxx--xxxx.xxxi"; + write = "1010.1100--1010.0100--xxxx.xxxx--1111.1iii"; ; memory "lock" - bitmask = 0x03; + size = 1; min_write_delay = 9000; max_write_delay = 9000; - write = "1010.1100--111x.xxxx--xxxx.xxxx--xxxx.xxii"; + read = "0101.1000--0000.0000--xxxx.xxxx--oooo.oooo"; + write = "1010.1100--111x.xxxx--xxxx.xxxx--11ii.iiii"; ; - memory "sram" - size = 512; + memory "signature" + size = 3; + read = "0011.0000--xxxx.xxxx--xxxx.xxaa--oooo.oooo"; + ; + + memory "calibration" + size = 1; + read = "0011.1000--000x.xxxx--0000.0000--oooo.oooo"; ; ; #------------------------------------------------------------ -# ATtiny167 +# ATmega644A #------------------------------------------------------------ -part parent "t87" # t167 - desc = "ATtiny167"; - id = "t167"; - variants = - "ATtiny167-A15XD: TSSOP20, Fmax=16 MHz, T=[-40 C, 150 C], Vcc=[2.7 V, 5.5 V]", - "ATtiny167-MMU: WQFN20, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny167-MMUR: WQFN20, Fmax=N/A, T=[N/A, N/A], Vcc=[N/A, N/A]", - "ATtiny167-MU: VQFN32, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny167-MUR: VQFN32, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny167-SU: SOIC20, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny167-SUR: SOIC20, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny167-XU: TSSOP20, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny167-XUR: TSSOP20, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 29; - archnum = 35; - signature = 0x1e 0x94 0x87; +part parent "m644" + desc = "ATmega644A"; + id = "m644a"; + mcuid = 128; + n_interrupts = 31; +; - memory "flash" - size = 0x4000; - num_pages = 128; - writepage = "0100.1100--000a.aaaa--aaxx.xxxx--xxxx.xxxx"; - ; +#------------------------------------------------------------ +# ATmega644P +#------------------------------------------------------------ + +part parent "m644" + desc = "ATmega644P"; + id = "m644p"; + mcuid = 129; + n_interrupts = 31; + signature = 0x1e 0x96 0x0a; ; #------------------------------------------------------------ -# ATtiny1634 +# ATmega644PA #------------------------------------------------------------ -part parent ".classic" # t1634 - desc = "ATtiny1634"; - id = "t1634"; - variants = - "ATtiny1634-MN: WQFN20, Fmax=12 MHz, T=[-40 C, 105 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny1634-MNR: WQFN20, Fmax=12 MHz, T=[-40 C, 105 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny1634-MU: QFN20, Fmax=12 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny1634-MUR: QFN20, Fmax=12 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny1634-SU: SOIC20, Fmax=12 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny1634-SUR: SOIC20, Fmax=12 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny1634R-MU: QFN20, Fmax=12 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny1634R-MUR: QFN20, Fmax=12 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny1634R-SU: SOIC20, Fmax=12 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny1634R-SUR: SOIC20, Fmax=12 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]"; - prog_modes = PM_SPM | PM_ISP | PM_HVPP | PM_debugWIRE; - mcuid = 40; - archnum = 35; - n_interrupts = 28; - n_page_erase = 4; - stk500_devcode = 0x86; - chip_erase_delay = 9000; - pagel = 0xb3; - bs2 = 0xb1; -# avr910_devcode = 0x??; - signature = 0x1e 0x94 0x12; +part parent "m644" + desc = "ATmega644PA"; + id = "m644pa"; + mcuid = 130; + n_interrupts = 31; + signature = 0x1e 0x96 0x0a; +; + +#------------------------------------------------------------ +# ATmega1284 +#------------------------------------------------------------ + +part + desc = "ATmega1284"; + id = "m1284"; + prog_modes = PM_SPM | PM_ISP | PM_HVPP | PM_JTAG; + mcuid = 140; + n_interrupts = 35; + n_boot_sections = 4; + boot_section_size = 1024; + stk500_devcode = 0x82; # no STK500v1 support, use the ATmega16 one + avr910_devcode = 0x74; + chip_erase_delay = 55000; + pagel = 0xd7; + bs2 = 0xa0; + signature = 0x1e 0x97 0x06; reset = io; timeout = 200; stabdelay = 100; @@ -6607,144 +4670,131 @@ part parent ".classic" # t1634 0x0e, 0x1e, 0x0f, 0x1f, 0x2e, 0x3e, 0x2f, 0x3f, 0x4e, 0x5e, 0x4f, 0x5f, 0x6e, 0x7e, 0x6f, 0x7f, 0x66, 0x76, 0x67, 0x77, 0x6a, 0x7a, 0x6b, 0x7b, - 0xbe, 0xfd, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00; - flash_instr = 0xb6, 0x01, 0x11; - eeprom_instr = - 0xbd, 0xf2, 0xbd, 0xe1, 0xbb, 0xcf, 0xb4, 0x00, - 0xbe, 0x01, 0xb6, 0x01, 0xbc, 0x00, 0xbb, 0xbf, - 0x99, 0xf9, 0xbb, 0xaf; + 0xbe, 0xfd, 0x00, 0x01, 0x00, 0x00, 0x00, 0x02; hventerstabdelay = 100; - latchcycles = 5; + latchcycles = 6; togglevtg = 1; poweroffdelay = 15; resetdelayms = 1; hvleavestabdelay = 15; - resetdelay = 15; chiperasepolltimeout = 10; programfusepolltimeout = 5; programlockpolltimeout = 5; - idr = 0x2e; + idr = 0x31; spmcr = 0x57; - eecr = 0x3c; - ocdrev = 1; + ocdrev = 3; + chip_erase = "1010.1100--100x.xxxx--xxxx.xxxx--xxxx.xxxx"; + pgm_enable = "1010.1100--0101.0011--xxxx.xxxx--xxxx.xxxx"; memory "eeprom" - size = 256; - page_size = 4; - min_write_delay = 3600; - max_write_delay = 3600; - mode = 0x41; - delay = 20; - blocksize = 4; + size = 4096; + page_size = 8; + min_write_delay = 9000; + max_write_delay = 9000; + readback = 0xff 0xff; + mode = 65; + delay = 10; + blocksize = 128; readsize = 256; - read = "1010.0000--000x.xxxa--aaaa.aaaa--oooo.oooo"; - write = "1100.0000--000x.xxxa--aaaa.aaaa--iiii.iiii"; - loadpage_lo = "1100.0001--0000.0000--0000.00aa--iiii.iiii"; - writepage = "1100.0010--00xx.xxxa--aaaa.aa00--xxxx.xxxx"; + read = "1010.0000--00xx.aaaa--aaaa.aaaa--oooo.oooo"; + write = "1100.0000--00xx.aaaa--aaaa.aaaa--iiii.iiii"; + loadpage_lo = "1100.0001--0000.0000--0000.0aaa--iiii.iiii"; + writepage = "1100.0010--00xx.aaaa--aaaa.a000--xxxx.xxxx"; ; memory "flash" paged = yes; - size = 0x4000; - page_size = 32; + size = 0x20000; + page_size = 256; num_pages = 512; min_write_delay = 4500; max_write_delay = 4500; - mode = 0x41; + readback = 0xff 0xff; + mode = 65; delay = 10; - blocksize = 32; + blocksize = 256; readsize = 256; - read_lo = "0010.0000--00aa.aaaa--aaaa.aaaa--oooo.oooo"; - read_hi = "0010.1000--00aa.aaaa--aaaa.aaaa--oooo.oooo"; - loadpage_lo = "0100.0000--000x.xxxx--xxxx.aaaa--iiii.iiii"; - loadpage_hi = "0100.1000--000x.xxxx--xxxx.aaaa--iiii.iiii"; - writepage = "0100.1100--00aa.aaaa--aaaa.xxxx--xxxx.xxxx"; + read_lo = "0010.0000--aaaa.aaaa--aaaa.aaaa--oooo.oooo"; + read_hi = "0010.1000--aaaa.aaaa--aaaa.aaaa--oooo.oooo"; + loadpage_lo = "0100.0000--00xx.xxxx--xaaa.aaaa--iiii.iiii"; + loadpage_hi = "0100.1000--00xx.xxxx--xaaa.aaaa--iiii.iiii"; + writepage = "0100.1100--aaaa.aaaa--axxx.xxxx--xxxx.xxxx"; ; memory "lfuse" size = 1; - initval = 0x62; - bitmask = 0xdf; - min_write_delay = 4500; - max_write_delay = 4500; + min_write_delay = 9000; + max_write_delay = 9000; read = "0101.0000--0000.0000--xxxx.xxxx--oooo.oooo"; write = "1010.1100--1010.0000--xxxx.xxxx--iiii.iiii"; ; memory "hfuse" size = 1; - initval = 0xdf; - min_write_delay = 4500; - max_write_delay = 4500; + min_write_delay = 9000; + max_write_delay = 9000; read = "0101.1000--0000.1000--xxxx.xxxx--oooo.oooo"; write = "1010.1100--1010.1000--xxxx.xxxx--iiii.iiii"; ; memory "efuse" size = 1; - initval = 0xff; - bitmask = 0x1f; - min_write_delay = 4500; - max_write_delay = 4500; + min_write_delay = 9000; + max_write_delay = 9000; read = "0101.0000--0000.1000--xxxx.xxxx--oooo.oooo"; - write = "1010.1100--1010.0100--xxxx.xxxx--xxxi.iiii"; + write = "1010.1100--1010.0100--xxxx.xxxx--1111.1iii"; ; memory "lock" - bitmask = 0x03; - min_write_delay = 4500; - max_write_delay = 4500; - write = "1010.1100--111x.xxxx--xxxx.xxxx--1111.11ii"; + size = 1; + min_write_delay = 9000; + max_write_delay = 9000; + read = "0101.1000--0000.0000--xxxx.xxxx--oooo.oooo"; + write = "1010.1100--111x.xxxx--xxxx.xxxx--11ii.iiii"; ; - memory "sram" - size = 1024; + memory "signature" + size = 3; + read = "0011.0000--xxxx.xxxx--xxxx.xxaa--oooo.oooo"; + ; + + memory "calibration" + size = 1; + read = "0011.1000--000x.xxxx--0000.0000--oooo.oooo"; ; ; #------------------------------------------------------------ -# ATtiny1634R +# ATmega1284P #------------------------------------------------------------ -part parent "t1634" # t1634r - desc = "ATtiny1634R"; - id = "t1634r"; - variants = - "ATtiny1634R-MU: QFN20, Fmax=12 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny1634R-MUR: WQFN20, Fmax=12 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny1634R-SU: SOIC20, Fmax=12 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny1634R-SUR: SOIC20, Fmax=12 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 41; +part parent "m1284" + desc = "ATmega1284P"; + id = "m1284p"; + mcuid = 141; + signature = 0x1e 0x97 0x05; ; #------------------------------------------------------------ -# AT90CAN32 +# ATmega162 #------------------------------------------------------------ -part parent ".classic" # c32 - desc = "AT90CAN32"; - id = "c32"; - variants = - "AT90CAN32: N/A, Fmax=16 MHz, T=[N/A, N/A], Vcc=[2.7 V, 5.5 V]", - "AT90CAN32-16AI: TQFP64, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "AT90CAN32-16AU: TQFP64, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "AT90CAN32-16AUR: TQFP64, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "AT90CAN32-16MI: QFN64, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "AT90CAN32-16MU: QFN64, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "AT90CAN32-16MUR: VQFN64, Fmax=16 MHz, T=[N/A, N/A], Vcc=[2.7 V, 5.5 V]"; - prog_modes = PM_SPM | PM_ISP | PM_HVPP | PM_JTAG; - mcuid = 171; - archnum = 5; - n_interrupts = 37; +part + desc = "ATmega162"; + id = "m162"; + prog_modes = PM_SPM | PM_ISP | PM_HVPP | PM_JTAG | PM_JTAGmkI; + mcuid = 90; + n_interrupts = 28; n_boot_sections = 4; - boot_section_size = 1024; - stk500_devcode = 0xb3; + boot_section_size = 256; + stk500_devcode = 0x83; + avr910_devcode = 0x63; chip_erase_delay = 9000; pagel = 0xd7; bs2 = 0xa0; -# avr910_devcode = 0x43; - signature = 0x1e 0x95 0x81; + signature = 0x1e 0x94 0x04; reset = io; + allowfullpagebitstream = yes; timeout = 200; stabdelay = 100; cmdexedelay = 25; @@ -6753,195 +4803,119 @@ part parent ".classic" # c32 pollvalue = 0x53; predelay = 1; postdelay = 1; - pollmethod = 1; pp_controlstack = 0x0e, 0x1e, 0x0f, 0x1f, 0x2e, 0x3e, 0x2f, 0x3f, 0x4e, 0x5e, 0x4f, 0x5f, 0x6e, 0x7e, 0x6f, 0x7f, 0x66, 0x76, 0x67, 0x77, 0x6a, 0x7a, 0x6b, 0x7b, - 0xbe, 0xfd, 0x00, 0x01, 0x00, 0x00, 0x00, 0x01; + 0xbe, 0xfd, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00; hventerstabdelay = 100; latchcycles = 6; hvleavestabdelay = 15; - resetdelay = 15; chiperasepolltimeout = 10; programfusepolltimeout = 5; programlockpolltimeout = 5; - idr = 0x31; + idr = 0x04; spmcr = 0x57; - eecr = 0x3f; - ocdrev = 3; + ocdrev = 2; + chip_erase = "1010.1100--100x.xxxx--xxxx.xxxx--xxxx.xxxx"; + pgm_enable = "1010.1100--0101.0011--xxxx.xxxx--xxxx.xxxx"; memory "eeprom" - size = 1024; - page_size = 8; + size = 512; + page_size = 4; min_write_delay = 9000; max_write_delay = 9000; - mode = 0x41; + readback = 0xff 0xff; + mode = 65; delay = 20; - blocksize = 8; + blocksize = 4; readsize = 256; - read = "1010.0000--000x.xxaa--aaaa.aaaa--oooo.oooo"; - write = "1100.0000--000x.xxaa--aaaa.aaaa--iiii.iiii"; - loadpage_lo = "1100.0001--0000.0000--0000.0aaa--iiii.iiii"; - writepage = "1100.0010--00xx.xxaa--aaaa.a000--xxxx.xxxx"; + read = "1010.0000--00xx.xxaa--aaaa.aaaa--oooo.oooo"; + write = "1100.0000--00xx.xxaa--aaaa.aaaa--iiii.iiii"; + loadpage_lo = "1100.0001--0000.0000--0000.00aa--iiii.iiii"; + writepage = "1100.0010--00xx.xxaa--aaaa.aa00--xxxx.xxxx"; ; memory "flash" paged = yes; - size = 0x8000; - page_size = 256; + size = 0x4000; + page_size = 128; num_pages = 128; min_write_delay = 4500; max_write_delay = 4500; - mode = 0x41; + readback = 0xff 0xff; + mode = 65; delay = 10; - blocksize = 256; + blocksize = 128; readsize = 256; - read_lo = "0010.0000--aaaa.aaaa--aaaa.aaaa--oooo.oooo"; - read_hi = "0010.1000--aaaa.aaaa--aaaa.aaaa--oooo.oooo"; - loadpage_lo = "0100.0000--000x.xxxx--xaaa.aaaa--iiii.iiii"; - loadpage_hi = "0100.1000--000x.xxxx--xaaa.aaaa--iiii.iiii"; - writepage = "0100.1100--aaaa.aaaa--axxx.xxxx--xxxx.xxxx"; + read_lo = "0010.0000--00aa.aaaa--aaaa.aaaa--oooo.oooo"; + read_hi = "0010.1000--00aa.aaaa--aaaa.aaaa--oooo.oooo"; + loadpage_lo = "0100.0000--00xx.xxxx--xxaa.aaaa--iiii.iiii"; + loadpage_hi = "0100.1000--00xx.xxxx--xxaa.aaaa--iiii.iiii"; + writepage = "0100.1100--00aa.aaaa--aaxx.xxxx--xxxx.xxxx"; ; memory "lfuse" size = 1; - initval = 0x62; - min_write_delay = 9000; - max_write_delay = 9000; + min_write_delay = 16000; + max_write_delay = 16000; read = "0101.0000--0000.0000--xxxx.xxxx--oooo.oooo"; write = "1010.1100--1010.0000--xxxx.xxxx--iiii.iiii"; ; memory "hfuse" size = 1; - initval = 0x99; - min_write_delay = 9000; - max_write_delay = 9000; + min_write_delay = 16000; + max_write_delay = 16000; read = "0101.1000--0000.1000--xxxx.xxxx--oooo.oooo"; write = "1010.1100--1010.1000--xxxx.xxxx--iiii.iiii"; ; memory "efuse" size = 1; - initval = 0xff; - bitmask = 0x0f; - min_write_delay = 9000; - max_write_delay = 9000; + min_write_delay = 16000; + max_write_delay = 16000; read = "0101.0000--0000.1000--xxxx.xxxx--oooo.oooo"; - write = "1010.1100--1010.0100--xxxx.xxxx--xxxx.iiii"; + write = "1010.1100--1010.0100--xxxx.xxxx--1111.1iii"; ; memory "lock" - bitmask = 0x3f; - min_write_delay = 9000; - max_write_delay = 9000; - ; -; - -#------------------------------------------------------------ -# AT90CAN64 -#------------------------------------------------------------ - -part parent "c32" # c64 - desc = "AT90CAN64"; - id = "c64"; - variants = - "AT90CAN64: N/A, Fmax=16 MHz, T=[N/A, N/A], Vcc=[2.7 V, 5.5 V]", - "AT90CAN64-16AI: TQFP64, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "AT90CAN64-16AU: TQFP64, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "AT90CAN64-16AUR: TQFP64, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "AT90CAN64-16MI: QFN64, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "AT90CAN64-16MU: QFN64, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "AT90CAN64-16MUR: VQFN64, Fmax=16 MHz, T=[N/A, N/A], Vcc=[2.7 V, 5.5 V]"; - mcuid = 172; -# avr910_devcode = 0x43; - signature = 0x1e 0x96 0x81; - - memory "eeprom" - size = 2048; - read = "1010.0000--000x.xaaa--aaaa.aaaa--oooo.oooo"; - write = "1100.0000--000x.xaaa--aaaa.aaaa--iiii.iiii"; - writepage = "1100.0010--00xx.xaaa--aaaa.a000--xxxx.xxxx"; - ; - - memory "flash" - size = 0x10000; - num_pages = 256; - ; - - memory "sram" - size = 4096; - ; -; - -#------------------------------------------------------------ -# AT90CAN128 -#------------------------------------------------------------ - -part parent "c32" # c128 - desc = "AT90CAN128"; - id = "c128"; - variants = - "AT90CAN128: N/A, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[4.5 V, N/A]", - "AT90CAN128-15AZ: TQFP64, Fmax=16 MHz, T=[-40 C, 125 C], Vcc=[2.7 V, 5.5 V]", - "AT90CAN128-16AI: TQFP64, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "AT90CAN128-16AU: TQFP64, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "AT90CAN128-16AUR: TQFP64, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "AT90CAN128-16MI: QFN64, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "AT90CAN128-16MU: QFN64, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "AT90CAN128-16MUR: QFN64, Fmax=16 MHz, T=[N/A, N/A], Vcc=[2.7 V, 5.5 V]"; - prog_modes = PM_SPM | PM_ISP | PM_HVPP | PM_JTAG | PM_JTAGmkI; - mcuid = 176; - archnum = 51; -# avr910_devcode = 0x43; - signature = 0x1e 0x97 0x81; - rampz = 0x3b; - - memory "eeprom" - size = 4096; - read = "1010.0000--000x.aaaa--aaaa.aaaa--oooo.oooo"; - write = "1100.0000--000x.aaaa--aaaa.aaaa--iiii.iiii"; - writepage = "1100.0010--00xx.aaaa--aaaa.a000--xxxx.xxxx"; + size = 1; + min_write_delay = 16000; + max_write_delay = 16000; + read = "0101.1000--0000.0000--xxxx.xxxx--oooo.oooo"; + write = "1010.1100--111x.xxxx--xxxx.xxxx--11ii.iiii"; ; - memory "flash" - size = 0x20000; - num_pages = 512; + memory "signature" + size = 3; + read = "0011.0000--00xx.xxxx--xxxx.xxaa--oooo.oooo"; ; - memory "sram" - size = 4096; + memory "calibration" + size = 1; + read = "0011.1000--00xx.xxxx--0000.0000--oooo.oooo"; ; ; #------------------------------------------------------------ -# AT90PWM81 +# ATmega163 #------------------------------------------------------------ -part parent ".classic" # pwm81 - desc = "AT90PWM81"; - id = "pwm81"; - variants = - "AT90PWM81: N/A, Fmax=16 MHz, T=[N/A, N/A], Vcc=[2.7 V, 5.5 V]", - "AT90PWM81-16ME: QFN32, Fmax=16 MHz, T=[-40 C, 105 C], Vcc=[2.7 V, 5.5 V]", - "AT90PWM81-16MF: QFN32, Fmax=16 MHz, T=[-40 C, 125 C], Vcc=[2.7 V, 5.5 V]", - "AT90PWM81-16MN: QFN32, Fmax=16 MHz, T=[-40 C, 105 C], Vcc=[2.7 V, 5.5 V]", - "AT90PWM81-16SE: SOIC20, Fmax=16 MHz, T=[-40 C, 105 C], Vcc=[2.7 V, 5.5 V]", - "AT90PWM81-16SF: SOIC20, Fmax=16 MHz, T=[-40 C, 125 C], Vcc=[2.7 V, 5.5 V]", - "AT90PWM81-16SN: SOIC20, Fmax=16 MHz, T=[-40 C, 105 C], Vcc=[2.7 V, 5.5 V]", - "AT90PWM81EP-16MN: QFN32, Fmax=16 MHz, T=[-40 C, 105 C], Vcc=[2.7 V, 5.5 V]"; - prog_modes = PM_SPM | PM_ISP | PM_HVPP | PM_debugWIRE; - mcuid = 173; - archnum = 4; - n_interrupts = 20; +part + desc = "ATmega163"; + id = "m163"; + prog_modes = PM_SPM | PM_ISP | PM_HVPP; + mcuid = 91; + n_interrupts = 18; n_boot_sections = 4; boot_section_size = 256; - chip_erase_delay = 9000; - pagel = 0xe2; - bs2 = 0xd6; - signature = 0x1e 0x93 0x88; - reset = io; + stk500_devcode = 0x81; + avr910_devcode = 0x64; + chip_erase_delay = 32000; + pagel = 0xd7; + bs2 = 0xa0; + signature = 0x1e 0x94 0x02; timeout = 200; stabdelay = 100; cmdexedelay = 25; @@ -6950,160 +4924,102 @@ part parent ".classic" # pwm81 pollvalue = 0x53; predelay = 1; postdelay = 1; - pollmethod = 1; pp_controlstack = - 0xc4, 0xe4, 0xc4, 0xe4, 0xcc, 0xec, 0xcc, 0xec, - 0xd4, 0xf4, 0xd4, 0xf4, 0xdc, 0xfc, 0xdc, 0xfc, - 0xc8, 0xe8, 0xd8, 0xf8, 0x4c, 0x6c, 0x5c, 0x7c, - 0xec, 0xbc, 0x00, 0x06, 0x00, 0x00, 0x00, 0x00; - flash_instr = 0xb6, 0x01, 0x11; - eeprom_instr = - 0xbd, 0xf2, 0xbd, 0xe1, 0xbb, 0xcf, 0xb4, 0x00, - 0xbe, 0x01, 0xb6, 0x01, 0xbc, 0x00, 0xbb, 0xbf, - 0x99, 0xf9, 0xbb, 0xaf; + 0x0e, 0x1e, 0x0f, 0x1f, 0x2e, 0x3e, 0x2f, 0x3f, + 0x4e, 0x5e, 0x4f, 0x5f, 0x6e, 0x7e, 0x6f, 0x7f, + 0x66, 0x76, 0x67, 0x77, 0x6a, 0x7a, 0x6b, 0x7b, + 0xbe, 0xfd, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00; hventerstabdelay = 100; - latchcycles = 5; - togglevtg = 1; - poweroffdelay = 15; - resetdelayms = 1; hvleavestabdelay = 15; - resetdelay = 15; - chiperasepolltimeout = 10; - programfusepolltimeout = 5; - programlockpolltimeout = 5; - idr = 0x31; - spmcr = 0x57; - eecr = 0x3c; - ocdrev = 1; + chiperasepolltimeout = 30; + programfusepolltimeout = 2; + programlockpolltimeout = 2; + chip_erase = "1010.1100--1000.0000--xxxx.xxxx--xxxx.xxxx"; + pgm_enable = "1010.1100--0101.0011--xxxx.xxxx--xxxx.xxxx"; memory "eeprom" size = 512; - page_size = 4; - min_write_delay = 3600; - max_write_delay = 3600; - mode = 0x41; - delay = 5; + min_write_delay = 4000; + max_write_delay = 4000; + readback = 0xff 0xff; + mode = 65; + delay = 20; blocksize = 4; readsize = 256; - read = "1010.0000--0000.000a--aaaa.aaaa--oooo.oooo"; - write = "1100.0000--0000.000a--aaaa.aaaa--iiii.iiii"; - loadpage_lo = "1100.0001--0000.0000--0000.00aa--iiii.iiii"; - writepage = "1100.0010--0000.000a--aaaa.aa00--xxxx.xxxx"; + read = "1010.0000--xxxx.xxxa--aaaa.aaaa--oooo.oooo"; + write = "1100.0000--xxxx.xxxa--aaaa.aaaa--iiii.iiii"; ; memory "flash" paged = yes; - size = 8192; - page_size = 64; + size = 0x4000; + page_size = 128; num_pages = 128; - min_write_delay = 4500; - max_write_delay = 4500; - mode = 0x41; - delay = 10; - blocksize = 64; + min_write_delay = 16000; + max_write_delay = 16000; + readback = 0xff 0xff; + mode = 17; + delay = 20; + blocksize = 128; readsize = 256; - read_lo = "0010.0000--0000.aaaa--aaaa.aaaa--oooo.oooo"; - read_hi = "0010.1000--0000.aaaa--aaaa.aaaa--oooo.oooo"; - loadpage_lo = "0100.0000--0000.0000--000a.aaaa--iiii.iiii"; - loadpage_hi = "0100.1000--0000.0000--000a.aaaa--iiii.iiii"; - writepage = "0100.1100--0000.aaaa--aaa0.0000--xxxx.xxxx"; + read_lo = "0010.0000--xxxa.aaaa--aaaa.aaaa--oooo.oooo"; + read_hi = "0010.1000--xxxa.aaaa--aaaa.aaaa--oooo.oooo"; + loadpage_lo = "0100.0000--xxxx.xxxx--xxaa.aaaa--iiii.iiii"; + loadpage_hi = "0100.1000--xxxx.xxxx--xxaa.aaaa--iiii.iiii"; + writepage = "0100.1100--xxxa.aaaa--aaxx.xxxx--xxxx.xxxx"; ; memory "lfuse" size = 1; - initval = 0x62; - min_write_delay = 4500; - max_write_delay = 4500; - read = "0101.0000--0000.0000--xxxx.xxxx--oooo.oooo"; - write = "1010.1100--1010.0000--xxxx.xxxx--iiii.iiii"; + min_write_delay = 2000; + max_write_delay = 2000; + read = "0101.0000--0000.0000--xxxx.xxxx--ooxx.oooo"; + write = "1010.1100--1010.0000--xxxx.xxxx--ii11.iiii"; ; memory "hfuse" size = 1; - initval = 0xd9; - min_write_delay = 4500; - max_write_delay = 4500; - read = "0101.1000--0000.1000--xxxx.xxxx--oooo.oooo"; - write = "1010.1100--1010.1000--xxxx.xxxx--iiii.iiii"; - ; - - memory "efuse" - size = 1; - initval = 0xfd; - min_write_delay = 4500; - max_write_delay = 4500; - read = "0101.0000--0000.1000--xxxx.xxxx--oooo.oooo"; - write = "1010.1100--1010.0100--xxxx.xxxx--iiii.iiii"; + min_write_delay = 2000; + max_write_delay = 2000; + read = "0101.1000--0000.1000--xxxx.xxxx--xxxx.1ooo"; + write = "1010.1100--1010.1000--xxxx.xxxx--1111.1iii"; ; memory "lock" - bitmask = 0x3f; - min_write_delay = 4500; - max_write_delay = 4500; - read = "0101.1000--0000.0000--xxxx.xxxx--11oo.oooo"; - ; - - memory "sram" - size = 256; + size = 1; + min_write_delay = 2000; + max_write_delay = 2000; + read = "0101.1000--0000.0000--xxxx.0xxx--oooo.oooo"; + write = "1010.1100--111x.xxxx--xxxx.xxxx--11ii.iiii"; ; -; - -#------------------------------------------------------------ -# AT90PWM161 -#------------------------------------------------------------ -part parent "pwm81" # pwm161 - desc = "AT90PWM161"; - id = "pwm161"; - variants = - "AT90PWM161-16MF: QFN32, Fmax=16 MHz, T=[-40 C, 125 C], Vcc=[2.7 V, 5.5 V]", - "AT90PWM161-16MN: QFN32, Fmax=16 MHz, T=[-40 C, 105 C], Vcc=[2.7 V, 5.5 V]", - "AT90PWM161-16MNR: QFN32, Fmax=16 MHz, T=[N/A, N/A], Vcc=[2.7 V, 5.5 V]", - "AT90PWM161-16SF: SOIC20, Fmax=16 MHz, T=[-40 C, 125 C], Vcc=[2.7 V, 5.5 V]", - "AT90PWM161-16SN: SOIC20, Fmax=16 MHz, T=[-40 C, 105 C], Vcc=[2.7 V, 5.5 V]", - "AT90PWM161-16SNR: SOIC20, Fmax=16 MHz, T=[N/A, N/A], Vcc=[2.7 V, 5.5 V]"; - mcuid = 177; - archnum = 5; - signature = 0x1e 0x94 0x8b; - - memory "flash" - size = 0x4000; - page_size = 128; - read_lo = "0010.0000--000a.aaaa--aaaa.aaaa--oooo.oooo"; - read_hi = "0010.1000--000a.aaaa--aaaa.aaaa--oooo.oooo"; - loadpage_lo = "0100.0000--0000.0000--00aa.aaaa--iiii.iiii"; - loadpage_hi = "0100.1000--0000.0000--00aa.aaaa--iiii.iiii"; - writepage = "0100.1100--000a.aaaa--aa00.0000--xxxx.xxxx"; + memory "signature" + size = 3; + read = "0011.0000--xxxx.xxxx--xxxx.xxaa--oooo.oooo"; ; - memory "sram" - size = 1024; + memory "calibration" + size = 1; + read = "0011.1000--xxxx.xxxx--0000.0000--oooo.oooo"; ; ; #------------------------------------------------------------ -# AT90PWM1 +# ATmega169 #------------------------------------------------------------ -part parent ".classic" # pwm1 - desc = "AT90PWM1"; - id = "pwm1"; - variants = - "AT90PWM1: SOIC24, Fmax=16 MHz, T=[N/A, N/A], Vcc=[2.7 V, 5.5 V]", - "AT90PWM1-16MU: QFN32, Fmax=16 MHz, T=[-40 C, 105 C], Vcc=[2.7 V, 5.5 V]", - "AT90PWM1-16MUR: QFN32, Fmax=16 MHz, T=[N/A, N/A], Vcc=[2.7 V, 5.5 V]", - "AT90PWM1-16SU: SOIC24, Fmax=16 MHz, T=[-40 C, 105 C], Vcc=[2.7 V, 5.5 V]"; - prog_modes = PM_SPM | PM_ISP | PM_HVPP | PM_debugWIRE; - mcuid = 166; - archnum = 4; - n_interrupts = 32; +part + desc = "ATmega169"; + id = "m169"; + prog_modes = PM_SPM | PM_ISP | PM_HVPP | PM_JTAG | PM_JTAGmkI; + mcuid = 104; + n_interrupts = 23; n_boot_sections = 4; boot_section_size = 256; + stk500_devcode = 0x85; + avr910_devcode = 0x78; chip_erase_delay = 9000; - pagel = 0xd7; - bs2 = 0xe2; - signature = 0x1e 0x93 0x83; - reset = io; + signature = 0x1e 0x94 0x05; timeout = 200; stabdelay = 100; cmdexedelay = 25; @@ -7118,122 +5034,152 @@ part parent ".classic" # pwm1 0x4e, 0x5e, 0x4f, 0x5f, 0x6e, 0x7e, 0x6f, 0x7f, 0x66, 0x76, 0x67, 0x77, 0x6a, 0x7a, 0x6b, 0x7b, 0xbe, 0xfd, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00; - flash_instr = 0xb6, 0x01, 0x11; - eeprom_instr = - 0xbd, 0xf2, 0xbd, 0xe1, 0xbb, 0xcf, 0xb4, 0x00, - 0xbe, 0x01, 0xb6, 0x01, 0xbc, 0x00, 0xbb, 0xbf, - 0x99, 0xf9, 0xbb, 0xaf; hventerstabdelay = 100; latchcycles = 5; togglevtg = 1; poweroffdelay = 15; resetdelayms = 1; hvleavestabdelay = 15; - resetdelay = 15; chiperasepolltimeout = 10; programfusepolltimeout = 5; programlockpolltimeout = 5; idr = 0x31; spmcr = 0x57; - eecr = 0x3f; - ocdrev = 1; + ocdrev = 2; + chip_erase = "1010.1100--1000.0000--xxxx.xxxx--xxxx.xxxx"; + pgm_enable = "1010.1100--0101.0011--xxxx.xxxx--xxxx.xxxx"; memory "eeprom" size = 512; page_size = 4; - min_write_delay = 3600; - max_write_delay = 3600; - mode = 0x41; - delay = 5; + min_write_delay = 9000; + max_write_delay = 9000; + readback = 0xff 0xff; + mode = 65; + delay = 20; blocksize = 4; readsize = 256; - read = "1010.0000--0000.000a--aaaa.aaaa--oooo.oooo"; - write = "1100.0000--0000.000a--aaaa.aaaa--iiii.iiii"; + read = "1010.0000--xxxx.xxxa--aaaa.aaaa--oooo.oooo"; + write = "1100.0000--xxxx.xxxa--aaaa.aaaa--iiii.iiii"; loadpage_lo = "1100.0001--0000.0000--0000.00aa--iiii.iiii"; - writepage = "1100.0010--0000.000a--aaaa.aa00--xxxx.xxxx"; + writepage = "1100.0010--00xx.xxxa--aaaa.aa00--xxxx.xxxx"; ; memory "flash" paged = yes; - size = 8192; - page_size = 64; + size = 0x4000; + page_size = 128; num_pages = 128; min_write_delay = 4500; max_write_delay = 4500; - mode = 0x41; - delay = 10; - blocksize = 64; + readback = 0xff 0xff; + mode = 65; + delay = 6; + blocksize = 128; readsize = 256; - read_lo = "0010.0000--0000.aaaa--aaaa.aaaa--oooo.oooo"; - read_hi = "0010.1000--0000.aaaa--aaaa.aaaa--oooo.oooo"; - loadpage_lo = "0100.0000--0000.0000--000a.aaaa--iiii.iiii"; - loadpage_hi = "0100.1000--0000.0000--000a.aaaa--iiii.iiii"; - writepage = "0100.1100--0000.aaaa--aaa0.0000--xxxx.xxxx"; + read_lo = "0010.0000--xxxa.aaaa--aaaa.aaaa--oooo.oooo"; + read_hi = "0010.1000--xxxa.aaaa--aaaa.aaaa--oooo.oooo"; + loadpage_lo = "0100.0000--xxxx.xxxx--xxaa.aaaa--iiii.iiii"; + loadpage_hi = "0100.1000--xxxx.xxxx--xxaa.aaaa--iiii.iiii"; + writepage = "0100.1100--xxxa.aaaa--aaxx.xxxx--xxxx.xxxx"; ; memory "lfuse" size = 1; - initval = 0x62; - min_write_delay = 4500; - max_write_delay = 4500; + min_write_delay = 2000; + max_write_delay = 2000; read = "0101.0000--0000.0000--xxxx.xxxx--oooo.oooo"; write = "1010.1100--1010.0000--xxxx.xxxx--iiii.iiii"; ; memory "hfuse" size = 1; - initval = 0xdf; - min_write_delay = 4500; - max_write_delay = 4500; + min_write_delay = 2000; + max_write_delay = 2000; read = "0101.1000--0000.1000--xxxx.xxxx--oooo.oooo"; write = "1010.1100--1010.1000--xxxx.xxxx--iiii.iiii"; ; memory "efuse" size = 1; - initval = 0xf9; - bitmask = 0xb7; - min_write_delay = 4500; - max_write_delay = 4500; - read = "0101.0000--0000.1000--xxxx.xxxx--o1oo.1ooo"; - write = "1010.1100--1010.0100--xxxx.xxxx--i1ii.1iii"; + min_write_delay = 2000; + max_write_delay = 2000; + read = "0101.0000--0000.1000--xxxx.xxxx--oooo.oooo"; + write = "1010.1100--1010.0100--xxxx.xxxx--xxxx.iiii"; ; memory "lock" - bitmask = 0x3f; - min_write_delay = 4500; - max_write_delay = 4500; - read = "0101.1000--0000.0000--xxxx.xxxx--11oo.oooo"; + size = 1; + min_write_delay = 2000; + max_write_delay = 2000; + read = "0101.1000--0000.0000--xxxx.xxxx--oooo.oooo"; + write = "1010.1100--111x.xxxx--xxxx.xxxx--11ii.iiii"; ; - memory "sram" - size = 512; + memory "signature" + size = 3; + read = "0011.0000--000x.xxxx--xxxx.xxaa--oooo.oooo"; + ; + + memory "calibration" + size = 1; + read = "0011.1000--000x.xxxx--0000.0000--oooo.oooo"; ; ; #------------------------------------------------------------ -# AT90PWM2 +# ATmega169A #------------------------------------------------------------ -part parent ".classic" # pwm2 - desc = "AT90PWM2"; - id = "pwm2"; - variants = - "AT90PWM2: SOIC24, Fmax=16 MHz, T=[N/A, N/A], Vcc=[2.7 V, 5.5 V]", - "AT90PWM2-16SQ: SOIC24, Fmax=16 MHz, T=[-40 C, 105 C], Vcc=[2.7 V, 5.5 V]", - "AT90PWM2-16SQR: SOIC24, Fmax=N/A, T=[N/A, N/A], Vcc=[2.7 V, 5.5 V]"; - prog_modes = PM_SPM | PM_ISP | PM_HVPP | PM_debugWIRE; - mcuid = 167; - archnum = 4; - n_interrupts = 32; +part parent "m169" + desc = "ATmega169A"; + id = "m169a"; + mcuid = 105; + signature = 0x1e 0x94 0x11; + reset = io; +; + +#------------------------------------------------------------ +# ATmega169P +#------------------------------------------------------------ + +part parent "m169" + desc = "ATmega169P"; + id = "m169p"; + prog_modes = PM_SPM | PM_ISP | PM_HVPP | PM_JTAG; + mcuid = 106; + reset = io; +; + +#------------------------------------------------------------ +# ATmega169PA +#------------------------------------------------------------ + +part parent "m169" + desc = "ATmega169PA"; + id = "m169pa"; + prog_modes = PM_SPM | PM_ISP | PM_HVPP | PM_JTAG; + mcuid = 107; + reset = io; +; + +#------------------------------------------------------------ +# ATmega329 +#------------------------------------------------------------ + +part + desc = "ATmega329"; + id = "m329"; + prog_modes = PM_SPM | PM_ISP | PM_HVPP | PM_JTAG; + mcuid = 121; + n_interrupts = 23; n_boot_sections = 4; - boot_section_size = 256; - stk500_devcode = 0x65; + boot_section_size = 512; +# stk500_devcode = 0x85; # no STK500 support, only STK500v2 +# avr910_devcode = 0x?; # try the ATmega169 one: + avr910_devcode = 0x75; chip_erase_delay = 9000; - pagel = 0xd8; - bs2 = 0xe2; -# avr910_devcode = ?; - signature = 0x1e 0x93 0x81; + signature = 0x1e 0x95 0x03; reset = io; timeout = 200; stabdelay = 100; @@ -7249,11 +5195,6 @@ part parent ".classic" # pwm2 0x4e, 0x5e, 0x4f, 0x5f, 0x6e, 0x7e, 0x6f, 0x7f, 0x66, 0x76, 0x67, 0x77, 0x6a, 0x7a, 0x6b, 0x7b, 0xbe, 0xfd, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00; - flash_instr = 0xb6, 0x01, 0x11; - eeprom_instr = - 0xbd, 0xf2, 0xbd, 0xe1, 0xbb, 0xcf, 0xb4, 0x00, - 0xbe, 0x01, 0xb6, 0x01, 0xbc, 0x00, 0xbb, 0xbf, - 0x99, 0xf9, 0xbb, 0xaf; hventerstabdelay = 100; latchcycles = 5; togglevtg = 1; @@ -7263,205 +5204,187 @@ part parent ".classic" # pwm2 chiperasepolltimeout = 10; programfusepolltimeout = 5; programlockpolltimeout = 5; + idr = 0x31; spmcr = 0x57; - eecr = 0x3f; + ocdrev = 3; + chip_erase = "1010.1100--1000.0000--xxxx.xxxx--xxxx.xxxx"; + pgm_enable = "1010.1100--0101.0011--xxxx.xxxx--xxxx.xxxx"; memory "eeprom" - size = 512; + size = 1024; page_size = 4; - min_write_delay = 4000; - max_write_delay = 4500; + min_write_delay = 9000; + max_write_delay = 9000; readback = 0xff 0xff; - mode = 0x41; - delay = 6; - blocksize = 4; + mode = 65; + delay = 20; + blocksize = 8; readsize = 256; - read = "1010.0000--000x.xxxa--aaaa.aaaa--oooo.oooo"; - write = "1100.0000--000x.xxxa--aaaa.aaaa--iiii.iiii"; + read = "1010.0000--xxxx.xxaa--aaaa.aaaa--oooo.oooo"; + write = "1100.0000--xxxx.xxaa--aaaa.aaaa--iiii.iiii"; loadpage_lo = "1100.0001--0000.0000--0000.00aa--iiii.iiii"; - writepage = "1100.0010--00xx.xxxa--aaaa.aa00--xxxx.xxxx"; + writepage = "1100.0010--00xx.xxaa--aaaa.aa00--xxxx.xxxx"; ; memory "flash" paged = yes; - size = 8192; - page_size = 64; - num_pages = 128; + size = 0x8000; + page_size = 128; + num_pages = 256; min_write_delay = 4500; max_write_delay = 4500; readback = 0xff 0xff; - mode = 0x41; + mode = 65; delay = 6; - blocksize = 64; + blocksize = 256; readsize = 256; - read_lo = "0010.0000--0000.aaaa--aaaa.aaaa--oooo.oooo"; - read_hi = "0010.1000--0000.aaaa--aaaa.aaaa--oooo.oooo"; - loadpage_lo = "0100.0000--000x.xxxx--xxxa.aaaa--iiii.iiii"; - loadpage_hi = "0100.1000--000x.xxxx--xxxa.aaaa--iiii.iiii"; - writepage = "0100.1100--0000.aaaa--aaax.xxxx--xxxx.xxxx"; + read_lo = "0010.0000--xaaa.aaaa--aaaa.aaaa--oooo.oooo"; + read_hi = "0010.1000--xaaa.aaaa--aaaa.aaaa--oooo.oooo"; + loadpage_lo = "0100.0000--xxxx.xxxx--xxaa.aaaa--iiii.iiii"; + loadpage_hi = "0100.1000--xxxx.xxxx--xxaa.aaaa--iiii.iiii"; + writepage = "0100.1100--xaaa.aaaa--aaxx.xxxx--xxxx.xxxx"; ; memory "lfuse" size = 1; - initval = 0x62; - min_write_delay = 9000; - max_write_delay = 9000; + min_write_delay = 4500; + max_write_delay = 4500; read = "0101.0000--0000.0000--xxxx.xxxx--oooo.oooo"; write = "1010.1100--1010.0000--xxxx.xxxx--iiii.iiii"; ; memory "hfuse" size = 1; - initval = 0xdf; - min_write_delay = 9000; - max_write_delay = 9000; + min_write_delay = 4500; + max_write_delay = 4500; read = "0101.1000--0000.1000--xxxx.xxxx--oooo.oooo"; write = "1010.1100--1010.1000--xxxx.xxxx--iiii.iiii"; ; memory "efuse" size = 1; - initval = 0xf9; - bitmask = 0xf7; - min_write_delay = 9000; - max_write_delay = 9000; + min_write_delay = 4500; + max_write_delay = 4500; read = "0101.0000--0000.1000--xxxx.xxxx--oooo.oooo"; - write = "1010.1100--1010.0100--xxxx.xxxx--iiii.iiii"; + write = "1010.1100--1010.0100--xxxx.xxxx--xxxx.xiii"; ; memory "lock" - bitmask = 0x3f; - min_write_delay = 9000; - max_write_delay = 9000; + size = 1; + min_write_delay = 4500; + max_write_delay = 4500; + read = "0101.1000--0000.0000--xxxx.xxxx--oooo.oooo"; + write = "1010.1100--111x.xxxx--xxxx.xxxx--11ii.iiii"; ; - memory "sram" - size = 512; + memory "signature" + size = 3; + read = "0011.0000--000x.xxxx--xxxx.xxaa--oooo.oooo"; + ; + + memory "calibration" + size = 1; + read = "0011.1000--000x.xxxx--0000.0000--oooo.oooo"; ; ; #------------------------------------------------------------ -# AT90PWM2B +# ATmega329A #------------------------------------------------------------ -# Same as AT90PWM2 but different signature. -part parent "pwm2" # pwm2b - desc = "AT90PWM2B"; - id = "pwm2b"; - variants = - "AT90PWM2B: N/A, Fmax=16 MHz, T=[N/A, N/A], Vcc=[2.7 V, 5.5 V]", - "AT90PWM2B-16SE: SOIC32, Fmax=16 MHz, T=[N/A, N/A], Vcc=[2.7 V, 5.5 V]", - "AT90PWM2B-16SU: SOIC24, Fmax=16 MHz, T=[-40 C, 105 C], Vcc=[2.7 V, 5.5 V]", - "AT90PWM2B-16SUR: SOIC24, Fmax=16 MHz, T=[-40 C, 105 C], Vcc=[2.7 V, 5.5 V]"; - mcuid = 168; - signature = 0x1e 0x93 0x83; - resetdelay = 15; - idr = 0x31; - ocdrev = 1; +part parent "m329" + desc = "ATmega329A"; + id = "m329a"; + mcuid = 122; +; - memory "eeprom" - readback = 0x00 0x00; - delay = 5; - ; +#------------------------------------------------------------ +# ATmega329P +#------------------------------------------------------------ - memory "flash" - readback = 0x00 0x00; - delay = 10; - ; +part parent "m329" + desc = "ATmega329P"; + id = "m329p"; + mcuid = 123; + signature = 0x1e 0x95 0x0b; ; #------------------------------------------------------------ -# AT90PWM3 +# ATmega329PA #------------------------------------------------------------ -# Completely identical to AT90PWM2 (including the signature!) +part parent "m329" + desc = "ATmega329PA"; + id = "m329pa"; + mcuid = 124; + signature = 0x1e 0x95 0x0b; +; -part parent "pwm1" # pwm3 - desc = "AT90PWM3"; - id = "pwm3"; - variants = - "AT90PWM3: N/A, Fmax=16 MHz, T=[N/A, N/A], Vcc=[2.7 V, 5.5 V]", - "AT90PWM3-16MQ: QFN32, Fmax=16 MHz, T=[-40 C, 105 C], Vcc=[2.7 V, 5.5 V]", - "AT90PWM3-16MQT: QFN32, Fmax=16 MHz, T=[-40 C, 105 C], Vcc=[2.7 V, 5.5 V]", - "AT90PWM3-16SQ: SOIC32, Fmax=16 MHz, T=[-40 C, 105 C], Vcc=[2.7 V, 5.5 V]"; - mcuid = 169; - stk500_devcode = 0x65; - pagel = 0xd8; - signature = 0x1e 0x93 0x81; +#------------------------------------------------------------ +# ATmega3290 +#------------------------------------------------------------ - memory "eeprom" - min_write_delay = 4000; - max_write_delay = 4500; - ; +part parent "m329" + desc = "ATmega3290"; + id = "m3290"; + mcuid = 150; + n_interrupts = 25; + signature = 0x1e 0x95 0x04; +; - memory "lfuse" - min_write_delay = 9000; - max_write_delay = 9000; - ; +#------------------------------------------------------------ +# ATmega3290A +#------------------------------------------------------------ - memory "hfuse" - min_write_delay = 9000; - max_write_delay = 9000; - ; +part parent "m329" + desc = "ATmega3290A"; + id = "m3290a"; + mcuid = 151; + n_interrupts = 25; + signature = 0x1e 0x95 0x04; +; - memory "efuse" - bitmask = 0xf7; - min_write_delay = 9000; - max_write_delay = 9000; - read = "0101.0000--0000.1000--xxxx.xxxx--oooo.oooo"; - write = "1010.1100--1010.0100--xxxx.xxxx--iiii.iiii"; - ; +#------------------------------------------------------------ +# ATmega3290P +#------------------------------------------------------------ - memory "lock" - min_write_delay = 9000; - max_write_delay = 9000; - read = "0101.1000--0000.0000--xxxx.xxxx--oooo.oooo"; - ; +part parent "m329" + desc = "ATmega3290P"; + id = "m3290p"; + mcuid = 152; + n_interrupts = 25; + signature = 0x1e 0x95 0x0c; ; #------------------------------------------------------------ -# AT90PWM3B +# ATmega3290PA #------------------------------------------------------------ -# Completely identical to AT90PWM2B (including the signature!) - -part parent "pwm3" # pwm3b - desc = "AT90PWM3B"; - id = "pwm3b"; - variants = - "AT90PWM3B: N/A, Fmax=16 MHz, T=[N/A, N/A], Vcc=[2.7 V, 5.5 V]", - "AT90PWM3B-16ME: QFN32, Fmax=16 MHz, T=[N/A, N/A], Vcc=[2.7 V, 5.5 V]", - "AT90PWM3B-16MU: QFN32, Fmax=16 MHz, T=[-40 C, 105 C], Vcc=[2.7 V, 5.5 V]", - "AT90PWM3B-16MUR: QFN32, Fmax=16 MHz, T=[-40 C, 105 C], Vcc=[2.7 V, 5.5 V]", - "AT90PWM3B-16SE: SOIC32, Fmax=16 MHz, T=[N/A, N/A], Vcc=[2.7 V, 5.5 V]", - "AT90PWM3B-16SU: SOIC32, Fmax=16 MHz, T=[-40 C, 105 C], Vcc=[2.7 V, 5.5 V]"; - mcuid = 170; - signature = 0x1e 0x93 0x83; +part parent "m329" + desc = "ATmega3290PA"; + id = "m3290pa"; + mcuid = 153; + n_interrupts = 25; + signature = 0x1e 0x95 0x0c; ; #------------------------------------------------------------ -# AT90PWM216 +# ATmega649 #------------------------------------------------------------ -# Completely identical to AT90PWM316 (including the signature!) -part parent ".classic" # pwm216 - desc = "AT90PWM216"; - id = "pwm216"; - variants = - "AT90PWM216-16SE: SOIC24, Fmax=16 MHz, T=[N/A, N/A], Vcc=[2.7 V, 5.5 V]", - "AT90PWM216-16SU: SOIC24, Fmax=16 MHz, T=[-40 C, 105 C], Vcc=[2.7 V, 5.5 V]", - "AT90PWM216-16SUR: SOIC24, Fmax=16 MHz, T=[-40 C, 105 C], Vcc=[2.7 V, 5.5 V]"; - prog_modes = PM_SPM | PM_ISP | PM_HVPP | PM_debugWIRE; - mcuid = 179; - archnum = 5; - n_interrupts = 32; +part + desc = "ATmega649"; + id = "m649"; + prog_modes = PM_SPM | PM_ISP | PM_HVPP | PM_JTAG; + mcuid = 135; + n_interrupts = 23; n_boot_sections = 4; - boot_section_size = 512; - stk500_devcode = 0x65; + boot_section_size = 1024; +# stk500_devcode = 0x85; # no STK500 support, only STK500v2 +# avr910_devcode = 0x?; # try the ATmega169 one: + avr910_devcode = 0x75; chip_erase_delay = 9000; - pagel = 0xd8; - bs2 = 0xe2; - signature = 0x1e 0x94 0x83; + signature = 0x1e 0x96 0x03; reset = io; timeout = 200; stabdelay = 100; @@ -7477,144 +5400,176 @@ part parent ".classic" # pwm216 0x4e, 0x5e, 0x4f, 0x5f, 0x6e, 0x7e, 0x6f, 0x7f, 0x66, 0x76, 0x67, 0x77, 0x6a, 0x7a, 0x6b, 0x7b, 0xbe, 0xfd, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00; - flash_instr = 0xb6, 0x01, 0x11; - eeprom_instr = - 0xbd, 0xf2, 0xbd, 0xe1, 0xbb, 0xcf, 0xb4, 0x00, - 0xbe, 0x01, 0xb6, 0x01, 0xbc, 0x00, 0xbb, 0xbf, - 0x99, 0xf9, 0xbb, 0xaf; hventerstabdelay = 100; latchcycles = 5; togglevtg = 1; poweroffdelay = 15; resetdelayms = 1; hvleavestabdelay = 15; - resetdelay = 15; chiperasepolltimeout = 10; programfusepolltimeout = 5; programlockpolltimeout = 5; idr = 0x31; spmcr = 0x57; - eecr = 0x3f; - ocdrev = 1; + ocdrev = 3; + chip_erase = "1010.1100--1000.0000--xxxx.xxxx--xxxx.xxxx"; + pgm_enable = "1010.1100--0101.0011--xxxx.xxxx--xxxx.xxxx"; memory "eeprom" - size = 512; - page_size = 4; - min_write_delay = 4000; - max_write_delay = 4500; - mode = 0x41; - delay = 5; - blocksize = 4; + size = 2048; + page_size = 8; + min_write_delay = 9000; + max_write_delay = 9000; + readback = 0xff 0xff; + mode = 65; + delay = 20; + blocksize = 8; readsize = 256; - read = "1010.0000--000x.xxxa--aaaa.aaaa--oooo.oooo"; - write = "1100.0000--000x.xxxa--aaaa.aaaa--iiii.iiii"; - loadpage_lo = "1100.0001--0000.0000--0000.00aa--iiii.iiii"; - writepage = "1100.0010--00xx.xxxa--aaaa.aa00--xxxx.xxxx"; + read = "1010.0000--xxxx.xaaa--aaaa.aaaa--oooo.oooo"; + write = "1100.0000--xxxx.xaaa--aaaa.aaaa--iiii.iiii"; + loadpage_lo = "1100.0001--0000.0000--0000.0aaa--iiii.iiii"; + writepage = "1100.0010--00xx.xaaa--aaaa.a000--xxxx.xxxx"; ; memory "flash" paged = yes; - size = 0x4000; - page_size = 128; - num_pages = 128; + size = 0x10000; + page_size = 256; + num_pages = 256; min_write_delay = 4500; max_write_delay = 4500; - mode = 0x41; - delay = 10; - blocksize = 64; + readback = 0xff 0xff; + mode = 65; + delay = 6; + blocksize = 256; readsize = 256; - read_lo = "0010.0000--00aa.aaaa--aaaa.aaaa--oooo.oooo"; - read_hi = "0010.1000--00aa.aaaa--aaaa.aaaa--oooo.oooo"; - loadpage_lo = "0100.0000--00xx.xxxx--xxaa.aaaa--iiii.iiii"; - loadpage_hi = "0100.1000--00xx.xxxx--xxaa.aaaa--iiii.iiii"; - writepage = "0100.1100--00aa.aaaa--aaxx.xxxx--xxxx.xxxx"; + read_lo = "0010.0000--aaaa.aaaa--aaaa.aaaa--oooo.oooo"; + read_hi = "0010.1000--aaaa.aaaa--aaaa.aaaa--oooo.oooo"; + loadpage_lo = "0100.0000--xxxx.xxxx--xaaa.aaaa--iiii.iiii"; + loadpage_hi = "0100.1000--xxxx.xxxx--xaaa.aaaa--iiii.iiii"; + writepage = "0100.1100--aaaa.aaaa--axxx.xxxx--xxxx.xxxx"; ; memory "lfuse" size = 1; - initval = 0x62; - min_write_delay = 9000; - max_write_delay = 9000; + min_write_delay = 4500; + max_write_delay = 4500; read = "0101.0000--0000.0000--xxxx.xxxx--oooo.oooo"; write = "1010.1100--1010.0000--xxxx.xxxx--iiii.iiii"; ; memory "hfuse" size = 1; - initval = 0xdf; - min_write_delay = 9000; - max_write_delay = 9000; + min_write_delay = 4500; + max_write_delay = 4500; read = "0101.1000--0000.1000--xxxx.xxxx--oooo.oooo"; write = "1010.1100--1010.1000--xxxx.xxxx--iiii.iiii"; ; memory "efuse" size = 1; - initval = 0xf9; - bitmask = 0xf7; - min_write_delay = 9000; - max_write_delay = 9000; + min_write_delay = 4500; + max_write_delay = 4500; read = "0101.0000--0000.1000--xxxx.xxxx--oooo.oooo"; - write = "1010.1100--1010.0100--xxxx.xxxx--iiii.iiii"; + write = "1010.1100--1010.0100--xxxx.xxxx--xxxx.xiii"; ; memory "lock" - bitmask = 0x3f; - min_write_delay = 9000; - max_write_delay = 9000; + size = 1; + min_write_delay = 4500; + max_write_delay = 4500; + read = "0101.1000--0000.0000--xxxx.xxxx--oooo.oooo"; + write = "1010.1100--111x.xxxx--xxxx.xxxx--11ii.iiii"; ; - memory "sram" - size = 1024; + memory "signature" + size = 3; + read = "0011.0000--000x.xxxx--xxxx.xxaa--oooo.oooo"; + ; + + memory "calibration" + size = 1; + read = "0011.1000--000x.xxxx--0000.0000--oooo.oooo"; ; ; #------------------------------------------------------------ -# AT90PWM316 +# ATmega649A #------------------------------------------------------------ -# Similar to AT90PWM3B, but with 16 kiB flash, 512 B EEPROM, and 1024 B SRAM. +part parent "m649" + desc = "ATmega649A"; + id = "m649a"; + mcuid = 136; +; -part parent "pwm216" # pwm316 - desc = "AT90PWM316"; - id = "pwm316"; - variants = - "AT90PWM316: N/A, Fmax=16 MHz, T=[N/A, N/A], Vcc=[2.7 V, 5.5 V]", - "AT90PWM316-16ME: QFN32, Fmax=16 MHz, T=[N/A, N/A], Vcc=[2.7 V, 5.5 V]", - "AT90PWM316-16MU: QFN32, Fmax=16 MHz, T=[-40 C, 105 C], Vcc=[2.7 V, 5.5 V]", - "AT90PWM316-16MUR: QFN32, Fmax=16 MHz, T=[-40 C, 105 C], Vcc=[2.7 V, 5.5 V]", - "AT90PWM316-16SE: SOIC32, Fmax=16 MHz, T=[N/A, N/A], Vcc=[2.7 V, 5.5 V]", - "AT90PWM316-16SU: SOIC32, Fmax=16 MHz, T=[-40 C, 105 C], Vcc=[2.7 V, 5.5 V]"; - mcuid = 180; +#------------------------------------------------------------ +# ATmega649P +#------------------------------------------------------------ + +part parent "m649" + desc = "ATmega649P"; + id = "m649p"; + mcuid = 137; + signature = 0x1e 0x96 0x0b; ; #------------------------------------------------------------ -# AT90USB646 +# ATmega6490 #------------------------------------------------------------ -part parent ".classic" # usb646 - desc = "AT90USB646"; - id = "usb646"; - variants = - "AT90USB646: QFN64, Fmax=16 MHz, T=[N/A, N/A], Vcc=[2.7 V, 5.5 V]", - "AT90USB646-AU: TQFP64, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "AT90USB646-AUR: TQFP64, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "AT90USB646-MU: QFN64, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "AT90USB646-MUR: QFN64, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]"; - prog_modes = PM_SPM | PM_ISP | PM_HVPP | PM_JTAG; - mcuid = 181; - archnum = 5; - n_interrupts = 38; +part parent "m649" + desc = "ATmega6490"; + id = "m6490"; + mcuid = 157; + n_interrupts = 25; + signature = 0x1e 0x96 0x04; +; + +#------------------------------------------------------------ +# ATmega6490A +#------------------------------------------------------------ + +part parent "m649" + desc = "ATmega6490A"; + id = "m6490a"; + mcuid = 158; + n_interrupts = 25; + signature = 0x1e 0x96 0x04; +; + +#------------------------------------------------------------ +# ATmega6490P +#------------------------------------------------------------ + +part parent "m649" + desc = "ATmega6490P"; + id = "m6490p"; + mcuid = 159; + n_interrupts = 25; + signature = 0x1e 0x96 0x0c; +; + +#------------------------------------------------------------ +# ATmega32 +#------------------------------------------------------------ + +part + desc = "ATmega32"; + id = "m32"; + prog_modes = PM_SPM | PM_ISP | PM_HVPP | PM_JTAG | PM_JTAGmkI; + mcuid = 58; + n_interrupts = 21; n_boot_sections = 4; - boot_section_size = 1024; -# stk500_devcode = 0xB2; -# avr910_devcode = 0x43; + boot_section_size = 512; + stk500_devcode = 0x91; + avr910_devcode = 0x72; chip_erase_delay = 9000; pagel = 0xd7; bs2 = 0xa0; - signature = 0x1e 0x96 0x82; - usbpid = 0x2ff9; + signature = 0x1e 0x95 0x02; reset = io; + allowfullpagebitstream = yes; timeout = 200; stabdelay = 100; cmdexedelay = 25; @@ -7623,226 +5578,111 @@ part parent ".classic" # usb646 pollvalue = 0x53; predelay = 1; postdelay = 1; - pollmethod = 1; pp_controlstack = 0x0e, 0x1e, 0x0f, 0x1f, 0x2e, 0x3e, 0x2f, 0x3f, 0x4e, 0x5e, 0x4f, 0x5f, 0x6e, 0x7e, 0x6f, 0x7f, 0x66, 0x76, 0x67, 0x77, 0x6a, 0x7a, 0x6b, 0x7b, 0xbe, 0xfd, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00; hventerstabdelay = 100; - latchcycles = 5; - togglevtg = 1; - poweroffdelay = 15; - resetdelayms = 1; + latchcycles = 6; hvleavestabdelay = 15; - resetdelay = 15; chiperasepolltimeout = 10; programfusepolltimeout = 5; programlockpolltimeout = 5; idr = 0x31; spmcr = 0x57; - eecr = 0x3f; - ocdrev = 3; + ocdrev = 2; + chip_erase = "1010.1100--1000.0000--xxxx.xxxx--xxxx.xxxx"; + pgm_enable = "1010.1100--0101.0011--xxxx.xxxx--xxxx.xxxx"; memory "eeprom" - size = 2048; - page_size = 8; + size = 1024; + page_size = 4; min_write_delay = 9000; max_write_delay = 9000; - mode = 0x41; + readback = 0xff 0xff; + mode = 4; delay = 10; - blocksize = 8; + blocksize = 64; readsize = 256; - read = "1010.0000--xxxx.xaaa--aaaa.aaaa--oooo.oooo"; - write = "1100.0000--xxxx.xaaa--aaaa.aaaa--iiii.iiii"; - loadpage_lo = "1100.0001--0000.0000--0000.0aaa--iiii.iiii"; - writepage = "1100.0010--00xx.xaaa--aaaa.a000--xxxx.xxxx"; + read = "1010.0000--00xx.xxaa--aaaa.aaaa--oooo.oooo"; + write = "1100.0000--00xx.xxaa--aaaa.aaaa--iiii.iiii"; + loadpage_lo = "1100.0001--0000.0000--0000.00aa--iiii.iiii"; + writepage = "1100.0010--00xx.xxaa--aaaa.aa00--xxxx.xxxx"; ; memory "flash" paged = yes; - size = 0x10000; - page_size = 256; + size = 0x8000; + page_size = 128; num_pages = 256; min_write_delay = 4500; max_write_delay = 4500; - mode = 0x41; + readback = 0xff 0xff; + mode = 33; delay = 6; - blocksize = 256; + blocksize = 64; readsize = 256; - read_lo = "0010.0000--0aaa.aaaa--aaaa.aaaa--oooo.oooo"; - read_hi = "0010.1000--0aaa.aaaa--aaaa.aaaa--oooo.oooo"; - loadpage_lo = "0100.0000--xxxx.xxxx--xaaa.aaaa--iiii.iiii"; - loadpage_hi = "0100.1000--xxxx.xxxx--xaaa.aaaa--iiii.iiii"; - writepage = "0100.1100--0aaa.aaaa--axxx.xxxx--xxxx.xxxx"; + read_lo = "0010.0000--00aa.aaaa--aaaa.aaaa--oooo.oooo"; + read_hi = "0010.1000--00aa.aaaa--aaaa.aaaa--oooo.oooo"; + loadpage_lo = "0100.0000--00xx.xxxx--xxaa.aaaa--iiii.iiii"; + loadpage_hi = "0100.1000--00xx.xxxx--xxaa.aaaa--iiii.iiii"; + writepage = "0100.1100--00aa.aaaa--aaxx.xxxx--xxxx.xxxx"; ; memory "lfuse" size = 1; - initval = 0x5e; - min_write_delay = 9000; - max_write_delay = 9000; + min_write_delay = 2000; + max_write_delay = 2000; read = "0101.0000--0000.0000--xxxx.xxxx--oooo.oooo"; write = "1010.1100--1010.0000--xxxx.xxxx--iiii.iiii"; ; memory "hfuse" size = 1; - initval = 0x9b; - min_write_delay = 9000; - max_write_delay = 9000; + min_write_delay = 2000; + max_write_delay = 2000; read = "0101.1000--0000.1000--xxxx.xxxx--oooo.oooo"; write = "1010.1100--1010.1000--xxxx.xxxx--iiii.iiii"; ; - memory "efuse" - size = 1; - initval = 0xf3; - bitmask = 0x0f; - min_write_delay = 9000; - max_write_delay = 9000; - read = "0101.0000--0000.1000--xxxx.xxxx--oooo.oooo"; - write = "1010.1100--1010.0100--xxxx.xxxx--xxxx.iiii"; - ; - memory "lock" - bitmask = 0x3f; - min_write_delay = 9000; - max_write_delay = 9000; - ; - - memory "sram" - size = 4096; - ; -; - -#------------------------------------------------------------ -# AT90USB647 -#------------------------------------------------------------ -# identical to AT90USB646 - -part parent "usb646" # usb647 - desc = "AT90USB647"; - id = "usb647"; - variants = - "AT90USB647: N/A, Fmax=16 MHz, T=[N/A, N/A], Vcc=[2.7 V, 5.5 V]", - "AT90USB647-AU: TQFP64, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "AT90USB647-AUR: TQFP64, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "AT90USB647-MU: QFN64, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "AT90USB647-MUR: QFN64, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]"; - mcuid = 182; -; - -#------------------------------------------------------------ -# AT90USB1286 -#------------------------------------------------------------ - -part parent "usb646" # usb1286 - desc = "AT90USB1286"; - id = "usb1286"; - variants = - "AT90USB1286: QFN64, Fmax=16 MHz, T=[N/A, N/A], Vcc=[2.7 V, 5.5 V]", - "AT90USB1286-AU: TQFP64, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "AT90USB1286-AUR: TQFP64, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "AT90USB1286-MU: QFN64, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "AT90USB1286-MUR: QFN64, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]"; - mcuid = 184; - archnum = 51; - signature = 0x1e 0x97 0x82; - usbpid = 0x2ffb; - rampz = 0x3b; - - memory "eeprom" - size = 4096; - read = "1010.0000--xxxx.aaaa--aaaa.aaaa--oooo.oooo"; - write = "1100.0000--xxxx.aaaa--aaaa.aaaa--iiii.iiii"; - writepage = "1100.0010--00xx.aaaa--aaaa.a000--xxxx.xxxx"; - ; - - memory "flash" - size = 0x20000; - num_pages = 512; - read_lo = "0010.0000--aaaa.aaaa--aaaa.aaaa--oooo.oooo"; - read_hi = "0010.1000--aaaa.aaaa--aaaa.aaaa--oooo.oooo"; - writepage = "0100.1100--aaaa.aaaa--axxx.xxxx--xxxx.xxxx"; - ; - - memory "hfuse" - initval = 0x99; - ; - - memory "sram" - size = 8192; - ; -; - -#------------------------------------------------------------ -# AT90USB1287 -#------------------------------------------------------------ -# identical to AT90USB1286 - -part parent "usb646" # usb1287 - desc = "AT90USB1287"; - id = "usb1287"; - variants = - "AT90USB1287: N/A, Fmax=16 MHz, T=[N/A, N/A], Vcc=[2.7 V, 5.5 V]", - "AT90USB1287-AU: TQFP64, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "AT90USB1287-AUR: TQFP64, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "AT90USB1287-MU: QFN64, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "AT90USB1287-MUR: VQFN64, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]"; - mcuid = 185; - archnum = 51; - signature = 0x1e 0x97 0x82; - usbpid = 0x2ffb; - rampz = 0x3b; - - memory "eeprom" - size = 4096; - read = "1010.0000--xxxx.aaaa--aaaa.aaaa--oooo.oooo"; - write = "1100.0000--xxxx.aaaa--aaaa.aaaa--iiii.iiii"; - writepage = "1100.0010--00xx.aaaa--aaaa.a000--xxxx.xxxx"; - ; - - memory "flash" - size = 0x20000; - num_pages = 512; - read_lo = "0010.0000--aaaa.aaaa--aaaa.aaaa--oooo.oooo"; - read_hi = "0010.1000--aaaa.aaaa--aaaa.aaaa--oooo.oooo"; - writepage = "0100.1100--aaaa.aaaa--axxx.xxxx--xxxx.xxxx"; + size = 1; + min_write_delay = 2000; + max_write_delay = 2000; + read = "0101.1000--0000.0000--xxxx.xxxx--oooo.oooo"; + write = "1010.1100--111x.xxxx--xxxx.xxxx--11ii.iiii"; ; - memory "hfuse" - initval = 0x99; + memory "signature" + size = 3; + read = "0011.0000--xxxx.xxxx--xxxx.xxaa--oooo.oooo"; ; - memory "sram" - size = 8192; + memory "calibration" + size = 4; + read = "0011.1000--00xx.xxxx--0000.00aa--oooo.oooo"; ; ; #------------------------------------------------------------ -# AT90USB82 +# ATmega161 #------------------------------------------------------------ -part parent ".classic" # usb82 - desc = "AT90USB82"; - id = "usb82"; - variants = - "AT90USB82: QFN32, Fmax=16 MHz, T=[N/A, N/A], Vcc=[N/A, N/A]", - "AT90USB82-16MU: QFN32, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "AT90USB82-16MUR: QFN32, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]"; - prog_modes = PM_SPM | PM_ISP | PM_HVPP | PM_debugWIRE; - mcuid = 174; - archnum = 35; - n_interrupts = 29; - n_boot_sections = 4; - boot_section_size = 512; - chip_erase_delay = 9000; +part + desc = "ATmega161"; + id = "m161"; + prog_modes = PM_SPM | PM_ISP | PM_HVPP; + mcuid = 89; + n_interrupts = 21; + n_boot_sections = 1; + boot_section_size = 1024; + stk500_devcode = 0x80; + avr910_devcode = 0x60; + chip_erase_delay = 28000; pagel = 0xd7; - bs2 = 0xc6; - signature = 0x1e 0x93 0x82; - usbpid = 0x2ff7; - reset = io; + bs2 = 0xa0; + signature = 0x1e 0x94 0x01; timeout = 200; stabdelay = 100; cmdexedelay = 25; @@ -7851,176 +5691,108 @@ part parent ".classic" # usb82 pollvalue = 0x53; predelay = 1; postdelay = 1; - pollmethod = 1; pp_controlstack = 0x0e, 0x1e, 0x0f, 0x1f, 0x2e, 0x3e, 0x2f, 0x3f, 0x4e, 0x5e, 0x4f, 0x5f, 0x6e, 0x7e, 0x6f, 0x7f, 0x66, 0x76, 0x67, 0x77, 0x6a, 0x7a, 0x6b, 0x7b, 0xbe, 0xfd, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00; - flash_instr = 0xb6, 0x01, 0x11; - eeprom_instr = - 0xbd, 0xf2, 0xbd, 0xe1, 0xbb, 0xcf, 0xb4, 0x00, - 0xbe, 0x01, 0xb6, 0x01, 0xbc, 0x00, 0xbb, 0xbf, - 0x99, 0xf9, 0xbb, 0xaf; hventerstabdelay = 100; - latchcycles = 5; - togglevtg = 1; - poweroffdelay = 15; - resetdelayms = 1; hvleavestabdelay = 15; - resetdelay = 15; - chiperasepolltimeout = 10; - programfusepolltimeout = 5; - programlockpolltimeout = 5; - idr = 0x31; - spmcr = 0x57; - eecr = 0x3f; - ocdrev = 1; + chiperasepolltimeout = 30; + programfusepolltimeout = 2; + programlockpolltimeout = 2; + chip_erase = "1010.1100--1000.0000--xxxx.xxxx--xxxx.xxxx"; + pgm_enable = "1010.1100--0101.0011--xxxx.xxxx--xxxx.xxxx"; memory "eeprom" size = 512; - page_size = 4; - num_pages = 128; - min_write_delay = 9000; - max_write_delay = 9000; - mode = 0x41; - delay = 20; - blocksize = 4; + min_write_delay = 3400; + max_write_delay = 3400; + readback = 0xff 0xff; + mode = 4; + delay = 5; + blocksize = 128; readsize = 256; - read = "1010.0000--0000.aaaa--aaaa.aaaa--oooo.oooo"; - write = "1100.0000--0000.aaaa--aaaa.aaaa--iiii.iiii"; - loadpage_lo = "1100.0001--0000.0000--0000.00aa--iiii.iiii"; - writepage = "1100.0010--0000.aaaa--aaaa.aa00--xxxx.xxxx"; + read = "1010.0000--xxxx.xxxa--aaaa.aaaa--oooo.oooo"; + write = "1100.0000--xxxx.xxxa--aaaa.aaaa--iiii.iiii"; ; memory "flash" paged = yes; - size = 8192; + size = 0x4000; page_size = 128; - num_pages = 64; - min_write_delay = 4500; - max_write_delay = 4500; - mode = 0x41; - delay = 6; + num_pages = 128; + min_write_delay = 14000; + max_write_delay = 14000; + readback = 0xff 0xff; + mode = 33; + delay = 16; blocksize = 128; readsize = 256; - read_lo = "0010.0000--aaaa.aaaa--aaaa.aaaa--oooo.oooo"; - read_hi = "0010.1000--aaaa.aaaa--aaaa.aaaa--oooo.oooo"; + read_lo = "0010.0000--xxxa.aaaa--aaaa.aaaa--oooo.oooo"; + read_hi = "0010.1000--xxxa.aaaa--aaaa.aaaa--oooo.oooo"; loadpage_lo = "0100.0000--xxxx.xxxx--xxaa.aaaa--iiii.iiii"; loadpage_hi = "0100.1000--xxxx.xxxx--xxaa.aaaa--iiii.iiii"; - writepage = "0100.1100--aaaa.aaaa--aaxx.xxxx--xxxx.xxxx"; - ; - - memory "lfuse" - size = 1; - initval = 0x5e; - min_write_delay = 9000; - max_write_delay = 9000; - read = "0101.0000--0000.0000--xxxx.xxxx--oooo.oooo"; - write = "1010.1100--1010.0000--xxxx.xxxx--iiii.iiii"; - ; - - memory "hfuse" - size = 1; - initval = 0xd9; - min_write_delay = 9000; - max_write_delay = 9000; - read = "0101.1000--0000.1000--xxxx.xxxx--oooo.oooo"; - write = "1010.1100--1010.1000--xxxx.xxxx--iiii.iiii"; + writepage = "0100.1100--xxxa.aaaa--aaxx.xxxx--xxxx.xxxx"; ; - memory "efuse" + memory "fuse" size = 1; - initval = 0xf4; - bitmask = 0x0f; - min_write_delay = 9000; - max_write_delay = 9000; - read = "0101.0000--0000.1000--xxxx.xxxx--oooo.oooo"; - write = "1010.1100--1010.0100--xxxx.xxxx--iiii.iiii"; + min_write_delay = 2000; + max_write_delay = 2000; + read = "0101.0000--xxxx.xxxx--xxxx.xxxx--xoxo.oooo"; + write = "1010.1100--101x.xxxx--xxxx.xxxx--1i1i.iiii"; ; memory "lock" - bitmask = 0x3f; - min_write_delay = 9000; - max_write_delay = 9000; + size = 1; + min_write_delay = 2000; + max_write_delay = 2000; + read = "0101.1000--0000.0000--xxxx.xxxx--oooo.oooo"; + write = "1010.1100--111x.xxxx--xxxx.xxxx--11ii.iiii"; ; - memory "sram" - size = 512; + memory "signature" + size = 3; + read = "0011.0000--xxxx.xxxx--xxxx.xxaa--oooo.oooo"; ; ; #------------------------------------------------------------ -# AT90USB162 +# ATmega32A #------------------------------------------------------------ -part parent "usb82" # usb162 - desc = "AT90USB162"; - id = "usb162"; - variants = - "AT90USB162: N/A, Fmax=16 MHz, T=[N/A, N/A], Vcc=[2.7 V, 5.5 V]", - "AT90USB162-16AU: TQFP32, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "AT90USB162-16AUR: TQFP32, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "AT90USB162-16MU: QFN32, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "AT90USB162-16MUR: QFN32, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]"; - mcuid = 178; - signature = 0x1e 0x94 0x82; - usbpid = 0x2ffa; - - memory "flash" - size = 0x4000; - num_pages = 128; - ; +part parent "m32" + desc = "ATmega32A"; + id = "m32a"; + mcuid = 59; ; #------------------------------------------------------------ -# AT90S1200 +# ATmega8 #------------------------------------------------------------ -part parent ".classic-nocal" # 1200 - desc = "AT90S1200"; - id = "1200"; - variants = - "AT90S1200-12PC: DIP20, Fmax=12 MHz, T=[0 C, 70 C], Vcc=[4 V, 6 V]", - "AT90S1200-12PI: DIP20, Fmax=12 MHz, T=[-40 C, 85 C], Vcc=[4 V, 6 V]", - "AT90S1200-12SC: SOIC20, Fmax=12 MHz, T=[0 C, 70 C], Vcc=[4 V, 6 V]", - "AT90S1200-12SI: SOIC20, Fmax=12 MHz, T=[-40 C, 85 C], Vcc=[4 V, 6 V]", - "AT90S1200-12YC: SSOP20, Fmax=12 MHz, T=[0 C, 70 C], Vcc=[4 V, 6 V]", - "AT90S1200-12YI: SSOP20, Fmax=12 MHz, T=[-40 C, 85 C], Vcc=[4 V, 6 V]", - "AT90S1200-4PC: DIP20, Fmax=4 MHz, T=[0 C, 70 C], Vcc=[2.7 V, 6 V]", - "AT90S1200-4PI: DIP20, Fmax=4 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 6 V]", - "AT90S1200-4SC: SOIC20, Fmax=4 MHz, T=[0 C, 70 C], Vcc=[2.7 V, 6 V]", - "AT90S1200-4SI: SOIC20, Fmax=4 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 6 V]", - "AT90S1200-4YC: SSOP20, Fmax=4 MHz, T=[0 C, 70 C], Vcc=[2.7 V, 6 V]", - "AT90S1200-4YI: SSOP20, Fmax=4 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 6 V]", - "AT90S1200A-12PC: DIP20, Fmax=12 MHz, T=[0 C, 70 C], Vcc=[4 V, 6 V]", - "AT90S1200A-12PI: DIP20, Fmax=12 MHz, T=[-40 C, 85 C], Vcc=[4 V, 6 V]", - "AT90S1200A-12SC: SOIC20, Fmax=12 MHz, T=[0 C, 70 C], Vcc=[4 V, 6 V]", - "AT90S1200A-12SI: SOIC20, Fmax=12 MHz, T=[-40 C, 85 C], Vcc=[4 V, 6 V]", - "AT90S1200A-12YC: SSOP20, Fmax=12 MHz, T=[0 C, 70 C], Vcc=[4 V, 6 V]", - "AT90S1200A-12YI: SSOP20, Fmax=12 MHz, T=[-40 C, 85 C], Vcc=[4 V, 6 V]", - "AT90S1200A-4PC: DIP20, Fmax=4 MHz, T=[0 C, 70 C], Vcc=[2.7 V, 6 V]", - "AT90S1200A-4PI: DIP20, Fmax=4 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 6 V]", - "AT90S1200A-4SC: SOIC20, Fmax=4 MHz, T=[0 C, 70 C], Vcc=[2.7 V, 6 V]", - "AT90S1200A-4SI: SOIC20, Fmax=4 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 6 V]", - "AT90S1200A-4YC: SSOP20, Fmax=4 MHz, T=[0 C, 70 C], Vcc=[2.7 V, 6 V]", - "AT90S1200A-4YI: SSOP20, Fmax=4 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 6 V]"; +part + desc = "ATmega8"; + id = "m8"; prog_modes = PM_SPM | PM_ISP | PM_HVPP; - mcuid = 183; - archnum = 1; - n_interrupts = 4; - stk500_devcode = 0x33; - avr910_devcode = 0x13; - chip_erase_delay = 20000; + mcuid = 45; + n_interrupts = 19; + n_boot_sections = 4; + boot_section_size = 256; + stk500_devcode = 0x70; + avr910_devcode = 0x76; + chip_erase_delay = 10000; pagel = 0xd7; - bs2 = 0xa0; - signature = 0x1e 0x90 0x01; - is_at90s1200 = yes; + bs2 = 0xc2; + signature = 0x1e 0x93 0x07; + reset = io; timeout = 200; stabdelay = 100; cmdexedelay = 25; - synchloops = 1; - pollvalue = 0xff; + synchloops = 32; + pollindex = 3; + pollvalue = 0x53; predelay = 1; postdelay = 1; pp_controlstack = @@ -8029,89 +5801,112 @@ part parent ".classic-nocal" # 1200 0x66, 0x76, 0x67, 0x77, 0x6a, 0x7a, 0x6b, 0x7b, 0xbe, 0xfd, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00; hventerstabdelay = 100; + latchcycles = 5; + togglevtg = 1; + poweroffdelay = 15; + resetdelayms = 2; hvleavestabdelay = 15; - chiperasepulsewidth = 15; - programfusepulsewidth = 2; - programlockpolltimeout = 1; - factory_fcpu = 1000000; - chip_erase = "1010.1100--1000.0000--xxxx.xxxx--xxxx.xxxx"; + resetdelay = 15; + chiperasepolltimeout = 10; + programfusepolltimeout = 5; + programlockpolltimeout = 5; + chip_erase = "1010.1100--100x.xxxx--xxxx.xxxx--xxxx.xxxx"; pgm_enable = "1010.1100--0101.0011--xxxx.xxxx--xxxx.xxxx"; memory "eeprom" - size = 64; - min_write_delay = 4000; + size = 512; + page_size = 4; + min_write_delay = 9000; max_write_delay = 9000; - readback = 0x00 0xff; - mode = 0x04; + readback = 0xff 0xff; + mode = 4; delay = 20; - blocksize = 32; + blocksize = 128; readsize = 256; - read = "1010.0000--xxxx.xxxx--xxaa.aaaa--oooo.oooo"; - write = "1100.0000--xxxx.xxxx--xxaa.aaaa--iiii.iiii"; + read = "1010.0000--00xx.xxxa--aaaa.aaaa--oooo.oooo"; + write = "1100.0000--00xx.xxxa--aaaa.aaaa--iiii.iiii"; ; memory "flash" - size = 1024; - min_write_delay = 4000; - max_write_delay = 9000; - readback = 0xff 0xff; - mode = 0x02; - delay = 15; - blocksize = 128; + paged = yes; + size = 8192; + page_size = 64; + num_pages = 128; + min_write_delay = 4500; + max_write_delay = 4500; + readback = 0xff 0x00; + mode = 33; + delay = 10; + blocksize = 64; readsize = 256; - read_lo = "0010.0000--xxxx.xxxa--aaaa.aaaa--oooo.oooo"; - read_hi = "0010.1000--xxxx.xxxa--aaaa.aaaa--oooo.oooo"; - write_lo = "0100.0000--xxxx.xxxa--aaaa.aaaa--iiii.iiii"; - write_hi = "0100.1000--xxxx.xxxa--aaaa.aaaa--iiii.iiii"; + read_lo = "0010.0000--0000.aaaa--aaaa.aaaa--oooo.oooo"; + read_hi = "0010.1000--0000.aaaa--aaaa.aaaa--oooo.oooo"; + loadpage_lo = "0100.0000--0000.xxxx--xxxa.aaaa--iiii.iiii"; + loadpage_hi = "0100.1000--0000.xxxx--xxxa.aaaa--iiii.iiii"; + writepage = "0100.1100--0000.aaaa--aaax.xxxx--xxxx.xxxx"; ; - memory "fuse" + memory "lfuse" size = 1; - initval = 0xdf; - bitmask = 0x21; + min_write_delay = 2000; + max_write_delay = 2000; + read = "0101.0000--0000.0000--xxxx.xxxx--oooo.oooo"; + write = "1010.1100--1010.0000--xxxx.xxxx--iiii.iiii"; + ; + + memory "hfuse" + size = 1; + min_write_delay = 2000; + max_write_delay = 2000; + read = "0101.1000--0000.1000--xxxx.xxxx--oooo.oooo"; + write = "1010.1100--1010.1000--xxxx.xxxx--iiii.iiii"; ; memory "lock" - bitmask = 0x06; - min_write_delay = 9000; - max_write_delay = 20000; - read = NULL; - write = "1010.1100--1111.1ii1--xxxx.xxxx--xxxx.xxxx"; + size = 1; + min_write_delay = 2000; + max_write_delay = 2000; + read = "0101.1000--0000.0000--xxxx.xxxx--oooo.oooo"; + write = "1010.1100--111x.xxxx--xxxx.xxxx--11ii.iiii"; ; - memory "io" - size = 64; + memory "signature" + size = 3; + read = "0011.0000--xxxx.xxxx--xxxx.xxaa--oooo.oooo"; ; - memory "sram" - size = 32; - offset = 0x60; + memory "calibration" + size = 4; + read = "0011.1000--00xx.xxxx--0000.00aa--oooo.oooo"; ; ; #------------------------------------------------------------ -# AT90S2313 +# ATmega8A #------------------------------------------------------------ -part parent ".classic-nocal" # 2313 - desc = "AT90S2313"; - id = "2313"; - variants = - "AT90S2313-10PC: DIP20, Fmax=10 MHz, T=[0 C, 70 C], Vcc=[4 V, 6 V]", - "AT90S2313-10PI: DIP20, Fmax=10 MHz, T=[-40 C, 85 C], Vcc=[4 V, 6 V]", - "AT90S2313-10SC: SOIC20, Fmax=10 MHz, T=[0 C, 70 C], Vcc=[4 V, 6 V]", - "AT90S2313-10SI: SOIC20, Fmax=10 MHz, T=[-40 C, 85 C], Vcc=[4 V, 6 V]", - "AT90S2313-4PC: DIP20, Fmax=4 MHz, T=[0 C, 70 C], Vcc=[2.7 V, 6 V]", - "AT90S2313-4PI: DIP20, Fmax=4 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 6 V]", - "AT90S2313-4SC: SOIC20, Fmax=4 MHz, T=[0 C, 70 C], Vcc=[2.7 V, 6 V]", - "AT90S2313-4SI: SOIC20, Fmax=4 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 6 V]"; +part parent "m8" + desc = "ATmega8A"; + id = "m8a"; + mcuid = 46; +; + +#------------------------------------------------------------ +# ATmega8515 +#------------------------------------------------------------ + +part + desc = "ATmega8515"; + id = "m8515"; prog_modes = PM_SPM | PM_ISP | PM_HVPP; - mcuid = 186; - n_interrupts = 11; - stk500_devcode = 0x40; - avr910_devcode = 0x20; - chip_erase_delay = 20000; - signature = 0x1e 0x91 0x01; + mcuid = 160; + n_interrupts = 17; + n_boot_sections = 4; + boot_section_size = 256; + stk500_devcode = 0x63; + avr910_devcode = 0x3a; + chip_erase_delay = 9000; + signature = 0x1e 0x93 0x06; timeout = 200; stabdelay = 100; cmdexedelay = 25; @@ -8126,85 +5921,99 @@ part parent ".classic-nocal" # 2313 0x66, 0x76, 0x67, 0x77, 0x6a, 0x7a, 0x6b, 0x7b, 0xbe, 0xfd, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00; hventerstabdelay = 100; + latchcycles = 6; hvleavestabdelay = 15; - chiperasepulsewidth = 15; - programfusepulsewidth = 2; - programlockpolltimeout = 1; - factory_fcpu = 1000000; - chip_erase = "1010.1100--1000.0000--xxxx.xxxx--xxxx.xxxx"; + chiperasepolltimeout = 10; + programfusepolltimeout = 5; + programlockpolltimeout = 5; + chip_erase = "1010.1100--100x.xxxx--xxxx.xxxx--xxxx.xxxx"; pgm_enable = "1010.1100--0101.0011--xxxx.xxxx--xxxx.xxxx"; memory "eeprom" - size = 128; - min_write_delay = 4000; + size = 512; + min_write_delay = 9000; max_write_delay = 9000; - readback = 0x80 0x7f; - mode = 0x04; - delay = 12; - blocksize = 64; + readback = 0xff 0xff; + mode = 4; + delay = 20; + blocksize = 128; readsize = 256; - read = "1010.0000--xxxx.xxxx--xaaa.aaaa--oooo.oooo"; - write = "1100.0000--xxxx.xxxx--xaaa.aaaa--iiii.iiii"; + read = "1010.0000--00xx.xxxa--aaaa.aaaa--oooo.oooo"; + write = "1100.0000--00xx.xxxa--aaaa.aaaa--iiii.iiii"; ; memory "flash" - size = 2048; - min_write_delay = 4000; - max_write_delay = 9000; - readback = 0x7f 0x7f; - mode = 0x04; - delay = 12; - blocksize = 128; + paged = yes; + size = 8192; + page_size = 64; + num_pages = 128; + min_write_delay = 4500; + max_write_delay = 4500; + readback = 0xff 0xff; + mode = 33; + delay = 6; + blocksize = 64; readsize = 256; - read_lo = "0010.0000--xxxx.xxaa--aaaa.aaaa--oooo.oooo"; - read_hi = "0010.1000--xxxx.xxaa--aaaa.aaaa--oooo.oooo"; - write_lo = "0100.0000--xxxx.xxaa--aaaa.aaaa--iiii.iiii"; - write_hi = "0100.1000--xxxx.xxaa--aaaa.aaaa--iiii.iiii"; + read_lo = "0010.0000--0000.aaaa--aaaa.aaaa--oooo.oooo"; + read_hi = "0010.1000--0000.aaaa--aaaa.aaaa--oooo.oooo"; + loadpage_lo = "0100.0000--0000.xxxx--xxxa.aaaa--iiii.iiii"; + loadpage_hi = "0100.1000--0000.xxxx--xxxa.aaaa--iiii.iiii"; + writepage = "0100.1100--0000.aaaa--aaax.xxxx--xxxx.xxxx"; ; - memory "fuse" + memory "lfuse" + size = 1; + min_write_delay = 4500; + max_write_delay = 4500; + read = "0101.0000--0000.0000--xxxx.xxxx--oooo.oooo"; + write = "1010.1100--1010.0000--xxxx.xxxx--iiii.iiii"; + ; + + memory "hfuse" size = 1; - initval = 0xdf; - bitmask = 0x21; + min_write_delay = 4500; + max_write_delay = 4500; + read = "0101.1000--0000.1000--xxxx.xxxx--oooo.oooo"; + write = "1010.1100--1010.1000--xxxx.xxxx--iiii.iiii"; ; memory "lock" - bitmask = 0x06; - min_write_delay = 9000; - max_write_delay = 9000; - read = NULL; - write = "1010.1100--111x.xiix--xxxx.xxxx--xxxx.xxxx"; + size = 1; + min_write_delay = 4500; + max_write_delay = 4500; + read = "0101.1000--0000.0000--xxxx.xxxx--oooo.oooo"; + write = "1010.1100--111x.xxxx--xxxx.xxxx--11ii.iiii"; ; - memory "io" - size = 64; + memory "signature" + size = 3; + read = "0011.0000--xxxx.xxxx--xxxx.xxaa--oooo.oooo"; ; - memory "sram" - size = 128; - offset = 0x60; + memory "calibration" + size = 4; + read = "0011.1000--00xx.xxxx--0000.00aa--oooo.oooo"; ; ; #------------------------------------------------------------ -# AT90S2323 +# ATmega8535 #------------------------------------------------------------ -part parent ".classic-nocal" # 2323 - desc = "AT90S2323"; - id = "2323"; - variants = - "AT90S2323-10PC: DIP8, Fmax=10 MHz, T=[0 C, 70 C], Vcc=[4 V, 6 V]", - "AT90S2323-10PI: DIP8, Fmax=10 MHz, T=[-40 C, 85 C], Vcc=[4 V, 6 V]", - "AT90S2323-10SC: SOIC8, Fmax=10 MHz, T=[0 C, 70 C], Vcc=[4 V, 6 V]", - "AT90S2323-10SI: SOIC8, Fmax=10 MHz, T=[-40 C, 85 C], Vcc=[4 V, 6 V]"; - prog_modes = PM_SPM | PM_ISP | PM_HVSP; - mcuid = 187; - n_interrupts = 3; - stk500_devcode = 0x41; - avr910_devcode = 0x48; - chip_erase_delay = 18000; - signature = 0x1e 0x91 0x02; +part + desc = "ATmega8535"; + id = "m8535"; + prog_modes = PM_SPM | PM_ISP | PM_HVPP; + mcuid = 161; + n_interrupts = 21; + n_boot_sections = 4; + boot_section_size = 256; + stk500_devcode = 0x64; + avr910_devcode = 0x69; + chip_erase_delay = 9000; + pagel = 0xd7; + bs2 = 0xa0; + signature = 0x1e 0x93 0x08; timeout = 200; stabdelay = 100; cmdexedelay = 25; @@ -8213,118 +6022,103 @@ part parent ".classic-nocal" # 2323 pollvalue = 0x53; predelay = 1; postdelay = 1; - hvsp_controlstack = - 0x4c, 0x0c, 0x1c, 0x2c, 0x3c, 0x64, 0x74, 0x00, - 0x68, 0x78, 0x68, 0x68, 0x00, 0x00, 0x68, 0x78, - 0x78, 0x00, 0x6d, 0x0c, 0x80, 0x40, 0x20, 0x10, - 0x11, 0x08, 0x04, 0x02, 0x03, 0x08, 0x04, 0x00; + pp_controlstack = + 0x0e, 0x1e, 0x0f, 0x1f, 0x2e, 0x3e, 0x2f, 0x3f, + 0x4e, 0x5e, 0x4f, 0x5f, 0x6e, 0x7e, 0x6f, 0x7f, + 0x66, 0x76, 0x67, 0x77, 0x6a, 0x7a, 0x6b, 0x7b, + 0xbe, 0xfd, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00; hventerstabdelay = 100; - latchcycles = 1; - poweroffdelay = 25; - resetdelayus = 50; - hvleavestabdelay = 100; - resetdelay = 25; - chiperasepolltimeout = 40; - programfusepolltimeout = 25; - programlockpolltimeout = 25; - synchcycles = 6; - factory_fcpu = 1000000; + latchcycles = 6; + hvleavestabdelay = 15; + chiperasepolltimeout = 10; + programfusepolltimeout = 5; + programlockpolltimeout = 5; chip_erase = "1010.1100--100x.xxxx--xxxx.xxxx--xxxx.xxxx"; pgm_enable = "1010.1100--0101.0011--xxxx.xxxx--xxxx.xxxx"; memory "eeprom" - size = 128; + size = 512; min_write_delay = 9000; - max_write_delay = 20000; - readback = 0x00 0xff; - mode = 0x04; - delay = 12; - blocksize = 64; + max_write_delay = 9000; + readback = 0xff 0xff; + mode = 4; + delay = 20; + blocksize = 128; readsize = 256; - read = "1010.0000--0000.0000--xaaa.aaaa--oooo.oooo"; - write = "1100.0000--0000.0000--xaaa.aaaa--iiii.iiii"; + read = "1010.0000--00xx.xxxa--aaaa.aaaa--oooo.oooo"; + write = "1100.0000--00xx.xxxa--aaaa.aaaa--iiii.iiii"; ; memory "flash" - size = 2048; - min_write_delay = 9000; - max_write_delay = 20000; + paged = yes; + size = 8192; + page_size = 64; + num_pages = 128; + min_write_delay = 4500; + max_write_delay = 4500; readback = 0xff 0xff; - mode = 0x04; - delay = 12; - blocksize = 128; - readsize = 128; - read_lo = "0010.0000--xxxx.xxaa--aaaa.aaaa--oooo.oooo"; - read_hi = "0010.1000--xxxx.xxaa--aaaa.aaaa--oooo.oooo"; - write_lo = "0100.0000--xxxx.xxaa--aaaa.aaaa--iiii.iiii"; - write_hi = "0100.1000--xxxx.xxaa--aaaa.aaaa--iiii.iiii"; + mode = 33; + delay = 6; + blocksize = 64; + readsize = 256; + read_lo = "0010.0000--0000.aaaa--aaaa.aaaa--oooo.oooo"; + read_hi = "0010.1000--0000.aaaa--aaaa.aaaa--oooo.oooo"; + loadpage_lo = "0100.0000--0000.xxxx--xxxa.aaaa--iiii.iiii"; + loadpage_hi = "0100.1000--0000.xxxx--xxxa.aaaa--iiii.iiii"; + writepage = "0100.1100--0000.aaaa--aaax.xxxx--xxxx.xxxx"; ; - memory "fuse" + memory "lfuse" size = 1; - initval = 0xde; - bitmask = 0x21; - min_write_delay = 9000; - max_write_delay = 20000; - read = "0101.1000--xxxx.xxxx--xxxx.xxxx--xxox.xxxo"; - write = "1010.1100--1011.111i--xxxx.xxxx--xxxx.xxxx"; + min_write_delay = 2000; + max_write_delay = 2000; + read = "0101.0000--0000.0000--xxxx.xxxx--oooo.oooo"; + write = "1010.1100--1010.0000--xxxx.xxxx--iiii.iiii"; ; - memory "lock" - bitmask = 0x06; - min_write_delay = 9000; - max_write_delay = 20000; - read = "0 1 0 1 1 0 0 0 x x x x x x x x x x x x x x x x o1 o2 x x x x x x"; - write = "1010.1100--1111.1ii1--xxxx.xxxx--xxxx.xxxx"; + memory "hfuse" + size = 1; + min_write_delay = 2000; + max_write_delay = 2000; + read = "0101.1000--0000.1000--xxxx.xxxx--oooo.oooo"; + write = "1010.1100--1010.1000--xxxx.xxxx--iiii.iiii"; ; - memory "io" - size = 64; + memory "lock" + size = 1; + min_write_delay = 2000; + max_write_delay = 2000; + read = "0101.1000--0000.0000--xxxx.xxxx--oooo.oooo"; + write = "1010.1100--111x.xxxx--xxxx.xxxx--11ii.iiii"; ; - memory "sram" - size = 128; - offset = 0x60; + memory "signature" + size = 3; + read = "0011.0000--xxxx.xxxx--xxxx.xxaa--oooo.oooo"; ; -; - -#------------------------------------------------------------ -# AT90S2343 (also AT90S2323 and ATtiny22) -#------------------------------------------------------------ -part parent "2323" # 2343 - desc = "AT90S2343"; - id = "2343"; - variants = - "AT90S2343-10PC: DIP8, Fmax=10 MHz, T=[0 C, 70 C], Vcc=[4 V, 6 V]", - "AT90S2343-10PI: DIP8, Fmax=10 MHz, T=[-40 C, 85 C], Vcc=[4 V, 6 V]", - "AT90S2343-10SC: SOIC8, Fmax=10 MHz, T=[0 C, 70 C], Vcc=[4 V, 6 V]", - "AT90S2343-10SI: SOIC8, Fmax=10 MHz, T=[-40 C, 85 C], Vcc=[4 V, 6 V]"; - mcuid = 189; - stk500_devcode = 0x43; - avr910_devcode = 0x4c; - signature = 0x1e 0x91 0x03; + memory "calibration" + size = 4; + read = "0011.1000--00xx.xxxx--0000.00aa--oooo.oooo"; + ; ; #------------------------------------------------------------ -# AT90S2333 +# ATtiny26 #------------------------------------------------------------ -part parent ".classic-nocal" # 2333 - desc = "AT90S2333"; - id = "2333"; - variants = - "AT90S2333-8AC: TQFP32, Fmax=8 MHz, T=[0 C, 70 C], Vcc=[4 V, 6 V]", - "AT90S2333-8AI: TQFP32, Fmax=8 MHz, T=[-40 C, 85 C], Vcc=[4 V, 6 V]", - "AT90S2333-8PC: DIP28, Fmax=8 MHz, T=[0 C, 70 C], Vcc=[4 V, 6 V]", - "AT90S2333-8PI: DIP28, Fmax=8 MHz, T=[-40 C, 85 C], Vcc=[4 V, 6 V]"; - prog_modes = PM_SPM | PM_ISP | PM_HVPP; - mcuid = 188; - n_interrupts = 14; - stk500_devcode = 0x42; - avr910_devcode = 0x34; - chip_erase_delay = 20000; - signature = 0x1e 0x91 0x05; +part + desc = "ATtiny26"; + id = "t26"; + prog_modes = PM_ISP | PM_HVPP; + mcuid = 17; + n_interrupts = 12; + stk500_devcode = 0x21; + avr910_devcode = 0x5e; + chip_erase_delay = 9000; + pagel = 0xb3; + bs2 = 0xb2; + signature = 0x1e 0x91 0x09; timeout = 200; stabdelay = 100; cmdexedelay = 25; @@ -8334,143 +6128,105 @@ part parent ".classic-nocal" # 2333 predelay = 1; postdelay = 1; pp_controlstack = - 0x0e, 0x1e, 0x0f, 0x1f, 0x2e, 0x3e, 0x2f, 0x3f, - 0x4e, 0x5e, 0x4f, 0x5f, 0x6e, 0x7e, 0x6f, 0x7f, - 0x66, 0x76, 0x67, 0x77, 0x6a, 0x7a, 0x6b, 0x7b, - 0xbe, 0xfd, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00; + 0xc4, 0xe4, 0xc4, 0xe4, 0xcc, 0xec, 0xcc, 0xec, + 0xd4, 0xf4, 0xd4, 0xf4, 0xdc, 0xfc, 0xdc, 0xfc, + 0xc8, 0xe8, 0xd8, 0xf8, 0x4c, 0x6c, 0x5c, 0x7c, + 0xec, 0xbc, 0x00, 0x06, 0x00, 0x00, 0x00, 0x00; hventerstabdelay = 100; + latchcycles = 5; + togglevtg = 1; + poweroffdelay = 15; + resetdelayms = 2; hvleavestabdelay = 15; - chiperasepulsewidth = 15; - programfusepulsewidth = 2; - programlockpolltimeout = 1; - factory_fcpu = 1000000; - chip_erase = "1010.1100--1000.0000--xxxx.xxxx--xxxx.xxxx"; + chiperasepolltimeout = 10; + programfusepolltimeout = 5; + programlockpolltimeout = 5; + chip_erase = "1010.1100--100x.xxxx--xxxx.xxxx--xxxx.xxxx"; pgm_enable = "1010.1100--0101.0011--xxxx.xxxx--xxxx.xxxx"; memory "eeprom" size = 128; min_write_delay = 9000; - max_write_delay = 20000; - readback = 0x00 0xff; - mode = 0x04; - delay = 12; - blocksize = 128; + max_write_delay = 9000; + readback = 0xff 0xff; + mode = 4; + delay = 10; + blocksize = 64; readsize = 256; read = "1010.0000--xxxx.xxxx--xaaa.aaaa--oooo.oooo"; write = "1100.0000--xxxx.xxxx--xaaa.aaaa--iiii.iiii"; ; memory "flash" + paged = yes; size = 2048; - min_write_delay = 9000; - max_write_delay = 20000; + page_size = 32; + num_pages = 64; + min_write_delay = 4500; + max_write_delay = 4500; readback = 0xff 0xff; - mode = 0x04; - delay = 12; - blocksize = 128; + mode = 33; + delay = 6; + blocksize = 16; readsize = 256; read_lo = "0010.0000--xxxx.xxaa--aaaa.aaaa--oooo.oooo"; read_hi = "0010.1000--xxxx.xxaa--aaaa.aaaa--oooo.oooo"; - write_lo = "0100.0000--xxxx.xxaa--aaaa.aaaa--iiii.iiii"; - write_hi = "0100.1000--xxxx.xxaa--aaaa.aaaa--iiii.iiii"; + loadpage_lo = "0100.0000--xxxx.xxxx--xxxx.aaaa--iiii.iiii"; + loadpage_hi = "0100.1000--xxxx.xxxx--xxxx.aaaa--iiii.iiii"; + writepage = "0100.1100--xxxx.xxaa--aaaa.xxxx--xxxx.xxxx"; ; - memory "fuse" + memory "lfuse" size = 1; - bitmask = 0x3f; min_write_delay = 9000; - max_write_delay = 20000; - pwroff_after_write = yes; - read = "0101.0000--xxxx.xxxx--xxxx.xxxx--xxoo.oooo"; - write = "1010.1100--101i.iiii--xxxx.xxxx--xxxx.xxxx"; + max_write_delay = 9000; + read = "0101.0000--0000.0000--xxxx.xxxx--oooo.oooo"; + write = "1010.1100--1010.0000--xxxx.xxxx--iiii.iiii"; ; - memory "lock" - initval = -1; - bitmask = 0x06; + memory "hfuse" + size = 1; min_write_delay = 9000; - max_write_delay = 20000; - read = "0101.1000--xxxx.xxxx--xxxx.xxxx--xxxx.xoox"; - write = "1010.1100--1111.1ii1--xxxx.xxxx--xxxx.xxxx"; - ; - - memory "io" - size = 64; + max_write_delay = 9000; + read = "0101.1000--0000.1000--xxxx.xxxx--oooo.oooo"; + write = "1010.1100--1010.1000--xxxx.xxxx--xxxi.iiii"; ; - memory "sram" - size = 128; - offset = 0x60; - ; -; - -#------------------------------------------------------------ -# AT90S4433 -#------------------------------------------------------------ - -part parent "2333" # 4433 - desc = "AT90S4433"; - id = "4433"; - variants = - "AT90S4433-8AC: TQFP32, Fmax=8 MHz, T=[0 C, 70 C], Vcc=[4 V, 6 V]", - "AT90S4433-8AI: TQFP32, Fmax=8 MHz, T=[-40 C, 85 C], Vcc=[4 V, 6 V]", - "AT90S4433-8PC: DIP28, Fmax=8 MHz, T=[0 C, 70 C], Vcc=[4 V, 6 V]", - "AT90S4433-8PI: DIP28, Fmax=8 MHz, T=[-40 C, 85 C], Vcc=[4 V, 6 V]"; - mcuid = 191; - stk500_devcode = 0x51; - avr910_devcode = 0x30; - signature = 0x1e 0x92 0x03; - - memory "eeprom" - size = 256; - read = "1010.0000--xxxx.xxxx--aaaa.aaaa--oooo.oooo"; - write = "1100.0000--xxxx.xxxx--aaaa.aaaa--iiii.iiii"; - ; - - memory "flash" - size = 4096; - read_lo = "0010.0000--xxxx.xaaa--aaaa.aaaa--oooo.oooo"; - read_hi = "0010.1000--xxxx.xaaa--aaaa.aaaa--oooo.oooo"; - write_lo = "0100.0000--xxxx.xaaa--aaaa.aaaa--iiii.iiii"; - write_hi = "0100.1000--xxxx.xaaa--aaaa.aaaa--iiii.iiii"; + memory "lock" + size = 1; + min_write_delay = 9000; + max_write_delay = 9000; + read = "0101.1000--xxxx.xxxx--xxxx.xxxx--xxxx.xxoo"; + write = "1010.1100--1111.11ii--xxxx.xxxx--xxxx.xxxx"; ; - memory "fuse" - initval = 0xda; + memory "signature" + size = 3; + read = "0011.0000--xxxx.xxxx--0000.00aa--oooo.oooo"; ; - memory "lock" - initval = 0xff; + memory "calibration" + size = 4; + read = "0011.1000--xxxx.xxxx--0000.00aa--oooo.oooo"; ; ; #------------------------------------------------------------ -# AT90S4414 +# ATtiny261 #------------------------------------------------------------ -part parent ".classic-nocal" # 4414 - desc = "AT90S4414"; - id = "4414"; - variants = - "AT90S4414-4AC: TQFP44, Fmax=4 MHz, T=[0 C, 70 C], Vcc=[2.7 V, 6 V]", - "AT90S4414-4AI: TQFP44, Fmax=4 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 6 V]", - "AT90S4414-4JC: LCC44, Fmax=4 MHz, T=[0 C, 70 C], Vcc=[2.7 V, 6 V]", - "AT90S4414-4JI: LCC44, Fmax=4 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 6 V]", - "AT90S4414-4PC: DIP40, Fmax=4 MHz, T=[0 C, 70 C], Vcc=[2.7 V, 6 V]", - "AT90S4414-4PI: DIP40, Fmax=4 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 6 V]", - "AT90S4414-8AC: TQFP44, Fmax=8 MHz, T=[0 C, 70 C], Vcc=[4 V, 6 V]", - "AT90S4414-8AI: TQFP44, Fmax=8 MHz, T=[-40 C, 85 C], Vcc=[4 V, 6 V]", - "AT90S4414-8JC: LCC44, Fmax=8 MHz, T=[0 C, 70 C], Vcc=[4 V, 6 V]", - "AT90S4414-8JI: LCC44, Fmax=8 MHz, T=[-40 C, 85 C], Vcc=[4 V, 6 V]", - "AT90S4414-8PC: DIP40, Fmax=8 MHz, T=[0 C, 70 C], Vcc=[4 V, 6 V]", - "AT90S4414-8PI: DIP40, Fmax=8 MHz, T=[-40 C, 85 C], Vcc=[4 V, 6 V]"; - prog_modes = PM_SPM | PM_ISP | PM_HVPP; - mcuid = 190; - n_interrupts = 13; - stk500_devcode = 0x50; - avr910_devcode = 0x28; - chip_erase_delay = 20000; - signature = 0x1e 0x92 0x01; +part + desc = "ATtiny261"; + id = "t261"; + prog_modes = PM_SPM | PM_ISP | PM_HVPP | PM_debugWIRE; + mcuid = 30; + n_interrupts = 19; + chip_erase_delay = 4000; + pagel = 0xb3; + bs2 = 0xb2; +# stk500_devcode = 0x21; +# avr910_devcode = 0x5e; + signature = 0x1e 0x91 0x0c; timeout = 200; stabdelay = 100; cmdexedelay = 25; @@ -8480,131 +6236,135 @@ part parent ".classic-nocal" # 4414 predelay = 1; postdelay = 1; pp_controlstack = - 0x0e, 0x1e, 0x0f, 0x1f, 0x2e, 0x3e, 0x2f, 0x3f, - 0x4e, 0x5e, 0x4f, 0x5f, 0x6e, 0x7e, 0x6f, 0x7f, - 0x66, 0x76, 0x67, 0x77, 0x6a, 0x7a, 0x6b, 0x7b, - 0xbe, 0xfd, 0x00, 0x01, 0x00, 0x00, 0x00, 0x01; + 0xc4, 0xe4, 0xc4, 0xe4, 0xcc, 0xec, 0xcc, 0xec, + 0xd4, 0xf4, 0xd4, 0xf4, 0xdc, 0xfc, 0xdc, 0xfc, + 0xc8, 0xe8, 0xd8, 0xf8, 0x4c, 0x6c, 0x5c, 0x7c, + 0xec, 0xbc, 0x00, 0x06, 0x00, 0x00, 0x00, 0x00; + flash_instr = 0xb4, 0x00, 0x10; + eeprom_instr = + 0xbb, 0xff, 0xbb, 0xee, 0xbb, 0xcc, 0xb2, 0x0d, + 0xbc, 0x00, 0xb4, 0x00, 0xba, 0x0d, 0xbb, 0xbc, + 0x99, 0xe1, 0xbb, 0xac; hventerstabdelay = 100; + latchcycles = 5; + togglevtg = 1; + poweroffdelay = 15; + resetdelayms = 2; hvleavestabdelay = 15; - chiperasepulsewidth = 15; - programfusepulsewidth = 2; - programlockpolltimeout = 1; - factory_fcpu = 1000000; - chip_erase = "1010.1100--1000.0000--xxxx.xxxx--xxxx.xxxx"; + chiperasepolltimeout = 10; + programfusepolltimeout = 5; + programlockpolltimeout = 5; + spmcr = 0x57; + eecr = 0x3c; + ocdrev = 1; + chip_erase = "1010.1100--100x.xxxx--xxxx.xxxx--xxxx.xxxx"; pgm_enable = "1010.1100--0101.0011--xxxx.xxxx--xxxx.xxxx"; memory "eeprom" - size = 256; - min_write_delay = 9000; - max_write_delay = 20000; - readback = 0x80 0x7f; - mode = 0x04; - delay = 12; - blocksize = 64; + size = 128; + page_size = 4; + num_pages = 32; + min_write_delay = 4000; + max_write_delay = 4000; + readback = 0xff 0xff; + mode = 65; + delay = 10; + blocksize = 4; readsize = 256; - read = "1010.0000--xxxx.xxxa--aaaa.aaaa--oooo.oooo"; - write = "1100.0000--xxxx.xxxa--aaaa.aaaa--iiii.iiii"; + read = "1010.0000--xxxx.xxxx--xaaa.aaaa--oooo.oooo"; + write = "1100.0000--xxxx.xxxx--xaaa.aaaa--iiii.iiii"; + loadpage_lo = "1100.0001--0000.0000--0000.00aa--iiii.iiii"; + writepage = "1100.0010--00xx.xxxx--xaaa.aa00--xxxx.xxxx"; ; memory "flash" - size = 4096; - min_write_delay = 9000; - max_write_delay = 20000; - readback = 0x7f 0x7f; - mode = 0x04; - delay = 12; - blocksize = 64; + paged = yes; + size = 2048; + page_size = 32; + num_pages = 64; + min_write_delay = 4500; + max_write_delay = 4500; + readback = 0xff 0xff; + mode = 65; + delay = 6; + blocksize = 32; readsize = 256; - read_lo = "0010.0000--xxxx.aaaa--aaaa.aaaa--oooo.oooo"; - read_hi = "0010.1000--xxxx.aaaa--aaaa.aaaa--oooo.oooo"; - write_lo = "0100.0000--xxxx.aaaa--aaaa.aaaa--iiii.iiii"; - write_hi = "0100.1000--xxxx.aaaa--aaaa.aaaa--iiii.iiii"; + read_lo = "0010.0000--xxxx.xxaa--aaaa.aaaa--oooo.oooo"; + read_hi = "0010.1000--xxxx.xxaa--aaaa.aaaa--oooo.oooo"; + loadpage_lo = "0100.0000--xxxx.xxxx--xxxx.aaaa--iiii.iiii"; + loadpage_hi = "0100.1000--xxxx.xxxx--xxxx.aaaa--iiii.iiii"; + writepage = "0100.1100--xxxx.xxaa--aaaa.xxxx--xxxx.xxxx"; ; - memory "fuse" + memory "lfuse" + size = 1; + min_write_delay = 4500; + max_write_delay = 4500; + read = "0101.0000--0000.0000--xxxx.xxxx--oooo.oooo"; + write = "1010.1100--1010.0000--xxxx.xxxx--iiii.iiii"; + ; + + memory "hfuse" + size = 1; + min_write_delay = 4500; + max_write_delay = 4500; + read = "0101.1000--0000.1000--xxxx.xxxx--oooo.oooo"; + write = "1010.1100--1010.1000--xxxx.xxxx--iiii.iiii"; + ; + + memory "efuse" size = 1; - initval = 0xdf; - bitmask = 0x21; + min_write_delay = 4500; + max_write_delay = 4500; + read = "0101.0000--0000.1000--xxxx.xxxx--oooo.oooo"; + write = "1010.1100--1010.0100--xxxx.xxxx--xxxx.xxxi"; ; memory "lock" - bitmask = 0x06; - min_write_delay = 9000; - max_write_delay = 9000; - read = NULL; - write = "1010.1100--1111.1ii1--xxxx.xxxx--xxxx.xxxx"; + size = 1; + min_write_delay = 4500; + max_write_delay = 4500; + read = "0101.1000--xxxx.xxxx--xxxx.xxxx--xxxx.xxoo"; + write = "1010.1100--1111.11ii--xxxx.xxxx--xxxx.xxxx"; ; - memory "io" - size = 64; + memory "signature" + size = 3; + read = "0011.0000--xxxx.xxxx--0000.00aa--oooo.oooo"; ; - memory "sram" - size = 256; - offset = 0x60; + memory "calibration" + size = 1; + read = "0011.1000--xxxx.xxxx--0000.0000--oooo.oooo"; ; ; #------------------------------------------------------------ -# AT90S8515 +# ATtiny261A #------------------------------------------------------------ -part parent "4414" # 8515 - desc = "AT90S8515"; - id = "8515"; - variants = - "AT90S8515-8PC: DIP40, Fmax=8 MHz, T=[0 C, 70 C], Vcc=[4 V, 6 V]"; - mcuid = 193; - stk500_devcode = 0x60; - avr910_devcode = 0x38; - signature = 0x1e 0x93 0x01; - pp_controlstack = - 0x0e, 0x1e, 0x0f, 0x1f, 0x2e, 0x3e, 0x2f, 0x3f, - 0x4e, 0x5e, 0x4f, 0x5f, 0x6e, 0x7e, 0x6f, 0x7f, - 0x66, 0x76, 0x67, 0x77, 0x6a, 0x7a, 0x6b, 0x7b, - 0xbe, 0xfd, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00; - resetdelay = 15; - - memory "eeprom" - size = 512; - min_write_delay = 4000; - max_write_delay = 9000; - blocksize = 128; - ; - - memory "flash" - size = 8192; - min_write_delay = 4000; - max_write_delay = 9000; - blocksize = 128; - ; - - memory "sram" - size = 512; - ; +part parent "t261" + desc = "ATtiny261A"; + id = "t261a"; + mcuid = 31; ; #------------------------------------------------------------ -# AT90S4434 +# ATtiny461 #------------------------------------------------------------ -part parent ".classic-nocal" # 4434 - desc = "AT90S4434"; - id = "4434"; - variants = - "AT90S4434-8AC: TQFP44, Fmax=8 MHz, T=[0 C, 70 C], Vcc=[4 V, 6 V]", - "AT90S4434-8AI: TQFP44, Fmax=8 MHz, T=[-40 C, 85 C], Vcc=[4 V, 6 V]", - "AT90S4434-8JC: LCC44, Fmax=8 MHz, T=[0 C, 70 C], Vcc=[4 V, 6 V]", - "AT90S4434-8JI: LCC44, Fmax=8 MHz, T=[-40 C, 85 C], Vcc=[4 V, 6 V]", - "AT90S4434-8PC: DIP40, Fmax=8 MHz, T=[0 C, 70 C], Vcc=[4 V, 6 V]", - "AT90S4434-8PI: DIP40, Fmax=8 MHz, T=[-40 C, 85 C], Vcc=[4 V, 6 V]"; - prog_modes = PM_SPM | PM_ISP | PM_HVPP; - mcuid = 192; - n_interrupts = 17; - stk500_devcode = 0x52; - avr910_devcode = 0x6c; - chip_erase_delay = 20000; - signature = 0x1e 0x92 0x02; +part + desc = "ATtiny461"; + id = "t461"; + prog_modes = PM_SPM | PM_ISP | PM_HVPP | PM_debugWIRE; + mcuid = 33; + n_interrupts = 19; + chip_erase_delay = 4000; + pagel = 0xb3; + bs2 = 0xb2; +# stk500_devcode = 0x21; +# avr910_devcode = 0x5e; + signature = 0x1e 0x92 0x08; timeout = 200; stabdelay = 100; cmdexedelay = 25; @@ -8614,143 +6374,135 @@ part parent ".classic-nocal" # 4434 predelay = 1; postdelay = 1; pp_controlstack = - 0x0e, 0x1e, 0x0f, 0x1f, 0x2e, 0x3e, 0x2f, 0x3f, - 0x4e, 0x5e, 0x4f, 0x5f, 0x6e, 0x7e, 0x6f, 0x7f, - 0x66, 0x76, 0x67, 0x77, 0x6a, 0x7a, 0x6b, 0x7b, - 0xbe, 0xfd, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00; + 0xc4, 0xe4, 0xc4, 0xe4, 0xcc, 0xec, 0xcc, 0xec, + 0xd4, 0xf4, 0xd4, 0xf4, 0xdc, 0xfc, 0xdc, 0xfc, + 0xc8, 0xe8, 0xd8, 0xf8, 0x4c, 0x6c, 0x5c, 0x7c, + 0xec, 0xbc, 0x00, 0x06, 0x00, 0x00, 0x00, 0x00; + flash_instr = 0xb4, 0x00, 0x10; + eeprom_instr = + 0xbb, 0xff, 0xbb, 0xee, 0xbb, 0xcc, 0xb2, 0x0d, + 0xbc, 0x00, 0xb4, 0x00, 0xba, 0x0d, 0xbb, 0xbc, + 0x99, 0xe1, 0xbb, 0xac; hventerstabdelay = 100; + latchcycles = 5; + togglevtg = 1; + poweroffdelay = 15; + resetdelayms = 2; hvleavestabdelay = 15; - chiperasepulsewidth = 15; - programfusepulsewidth = 2; - programlockpolltimeout = 1; - factory_fcpu = 1000000; - chip_erase = "1010.1100--1000.0000--xxxx.xxxx--xxxx.xxxx"; + chiperasepolltimeout = 10; + programfusepolltimeout = 5; + programlockpolltimeout = 5; + spmcr = 0x57; + eecr = 0x3c; + ocdrev = 1; + chip_erase = "1010.1100--100x.xxxx--xxxx.xxxx--xxxx.xxxx"; pgm_enable = "1010.1100--0101.0011--xxxx.xxxx--xxxx.xxxx"; memory "eeprom" size = 256; - min_write_delay = 9000; - max_write_delay = 20000; - readback = 0x00 0xff; - mode = 0x04; - delay = 12; - blocksize = 128; + page_size = 4; + num_pages = 64; + min_write_delay = 4000; + max_write_delay = 4000; + readback = 0xff 0xff; + mode = 65; + delay = 10; + blocksize = 4; readsize = 256; read = "1010.0000--xxxx.xxxx--aaaa.aaaa--oooo.oooo"; write = "1100.0000--xxxx.xxxx--aaaa.aaaa--iiii.iiii"; + loadpage_lo = "1100.0001--0000.0000--0000.00aa--iiii.iiii"; + writepage = "1100.0010--00xx.xxxx--aaaa.aa00--xxxx.xxxx"; ; memory "flash" + paged = yes; size = 4096; - min_write_delay = 9000; - max_write_delay = 20000; + page_size = 64; + num_pages = 64; + min_write_delay = 4500; + max_write_delay = 4500; readback = 0xff 0xff; - mode = 0x04; - delay = 12; - blocksize = 128; + mode = 65; + delay = 6; + blocksize = 64; readsize = 256; read_lo = "0010.0000--xxxx.xaaa--aaaa.aaaa--oooo.oooo"; read_hi = "0010.1000--xxxx.xaaa--aaaa.aaaa--oooo.oooo"; - write_lo = "0100.0000--xxxx.xaaa--aaaa.aaaa--iiii.iiii"; - write_hi = "0100.1000--xxxx.xaaa--aaaa.aaaa--iiii.iiii"; + loadpage_lo = "0100.0000--xxxx.xxxx--xxxa.aaaa--iiii.iiii"; + loadpage_hi = "0100.1000--xxxx.xxxx--xxxa.aaaa--iiii.iiii"; + writepage = "0100.1100--xxxx.xaaa--aaax.xxxx--xxxx.xxxx"; ; - memory "fuse" + memory "lfuse" size = 1; - initval = 0xdf; - bitmask = 0x21; - min_write_delay = 9000; - max_write_delay = 20000; - read = "0101.1000--xxxx.xxxx--xxxx.xxxx--xxox.xxxo"; - write = "1010.1100--1011.111i--xxxx.xxxx--xxxx.xxxx"; - ; - - memory "lock" - bitmask = 0x06; - min_write_delay = 9000; - max_write_delay = 20000; - read = "0 1 0 1 1 0 0 0 x x x x x x x x x x x x x x x x o1 o2 x x x x x x"; - write = "1010.1100--1111.1ii1--xxxx.xxxx--xxxx.xxxx"; + min_write_delay = 4500; + max_write_delay = 4500; + read = "0101.0000--0000.0000--xxxx.xxxx--oooo.oooo"; + write = "1010.1100--1010.0000--xxxx.xxxx--iiii.iiii"; ; - memory "io" - size = 64; + memory "hfuse" + size = 1; + min_write_delay = 4500; + max_write_delay = 4500; + read = "0101.1000--0000.1000--xxxx.xxxx--oooo.oooo"; + write = "1010.1100--1010.1000--xxxx.xxxx--iiii.iiii"; ; - memory "sram" - size = 256; - offset = 0x60; + memory "efuse" + size = 1; + min_write_delay = 4500; + max_write_delay = 4500; + read = "0101.0000--0000.1000--xxxx.xxxx--oooo.oooo"; + write = "1010.1100--1010.0100--xxxx.xxxx--xxxx.xxxi"; ; -; - -#------------------------------------------------------------ -# AT90S8535 -#------------------------------------------------------------ - -part parent "4434" # 8535 - desc = "AT90S8535"; - id = "8535"; - variants = - "AT90S8535-8AC: TQFP44, Fmax=8 MHz, T=[0 C, 70 C], Vcc=[4 V, 6 V]", - "AT90S8535-8AI: TQFP44, Fmax=8 MHz, T=[-40 C, 85 C], Vcc=[4 V, 6 V]", - "AT90S8535-8JC: LCC44, Fmax=8 MHz, T=[0 C, 70 C], Vcc=[4 V, 6 V]", - "AT90S8535-8JI: LCC44, Fmax=8 MHz, T=[-40 C, 85 C], Vcc=[4 V, 6 V]", - "AT90S8535-8PC: DIP40, Fmax=8 MHz, T=[0 C, 70 C], Vcc=[4 V, 6 V]", - "AT90S8535-8PI: DIP40, Fmax=8 MHz, T=[-40 C, 85 C], Vcc=[4 V, 6 V]"; - mcuid = 195; - stk500_devcode = 0x61; - avr910_devcode = 0x68; - signature = 0x1e 0x93 0x03; - memory "eeprom" - size = 512; - read = "1010.0000--xxxx.xxxa--aaaa.aaaa--oooo.oooo"; - write = "1100.0000--xxxx.xxxa--aaaa.aaaa--iiii.iiii"; + memory "lock" + size = 1; + min_write_delay = 4500; + max_write_delay = 4500; + read = "0101.1000--xxxx.xxxx--xxxx.xxxx--xxxx.xxoo"; + write = "1010.1100--1111.11ii--xxxx.xxxx--xxxx.xxxx"; ; - memory "flash" - size = 8192; - read_lo = "0010.0000--xxxx.aaaa--aaaa.aaaa--oooo.oooo"; - read_hi = "0010.1000--xxxx.aaaa--aaaa.aaaa--oooo.oooo"; - write_lo = "0100.0000--xxxx.aaaa--aaaa.aaaa--iiii.iiii"; - write_hi = "0100.1000--xxxx.aaaa--aaaa.aaaa--iiii.iiii"; + memory "signature" + size = 3; + read = "0011.0000--xxxx.xxxx--0000.00aa--oooo.oooo"; ; - memory "fuse" - max_write_delay = 9000; + memory "calibration" + size = 1; + read = "0011.1000--xxxx.xxxx--0000.0000--oooo.oooo"; ; +; - memory "lock" - max_write_delay = 9000; - ; +#------------------------------------------------------------ +# ATtiny461A +#------------------------------------------------------------ - memory "sram" - size = 512; - ; +part parent "t461" + desc = "ATtiny461A"; + id = "t461a"; + mcuid = 34; ; #------------------------------------------------------------ -# ATmega103 +# ATtiny861 #------------------------------------------------------------ -part parent ".classic-nocal" # m103 - desc = "ATmega103"; - id = "m103"; - variants = - "ATmega103-6AC: TQFP64, Fmax=6 MHz, T=[0 C, 70 C], Vcc=[4 V, 5.5 V]", - "ATmega103-6AI: TQFP64, Fmax=6 MHz, T=[-40 C, 85 C], Vcc=[4 V, 5.5 V]", - "ATmega103L-4AC: TQFP64, Fmax=4 MHz, T=[0 C, 70 C], Vcc=[2.7 V, 3.6 V]", - "ATmega103L-4AI: TQFP64, Fmax=4 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 3.6 V]"; - prog_modes = PM_SPM | PM_ISP | PM_HVPP; - mcuid = 84; - archnum = 31; - n_interrupts = 24; - stk500_devcode = 0xb1; - avr910_devcode = 0x41; - chip_erase_delay = 112000; - pagel = 0xa0; - bs2 = 0xd7; - signature = 0x1e 0x97 0x01; +part + desc = "ATtiny861"; + id = "t861"; + prog_modes = PM_SPM | PM_ISP | PM_HVPP | PM_debugWIRE; + mcuid = 38; + n_interrupts = 19; + chip_erase_delay = 4000; + pagel = 0xb3; + bs2 = 0xb2; +# stk500_devcode = 0x21; +# avr910_devcode = 0x5e; + signature = 0x1e 0x93 0x0d; timeout = 200; stabdelay = 100; cmdexedelay = 25; @@ -8760,115 +6512,135 @@ part parent ".classic-nocal" # m103 predelay = 1; postdelay = 1; pp_controlstack = - 0x0e, 0x1e, 0x8e, 0x9e, 0x2e, 0x3e, 0xae, 0xbe, - 0x4e, 0x5e, 0xce, 0xde, 0x6e, 0x7e, 0xee, 0xde, - 0x66, 0x76, 0xe6, 0xf6, 0x6a, 0x7a, 0xea, 0x7a, - 0x7f, 0xfd, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00; + 0xc4, 0xe4, 0xc4, 0xe4, 0xcc, 0xec, 0xcc, 0xec, + 0xd4, 0xf4, 0xd4, 0xf4, 0xdc, 0xfc, 0xdc, 0xfc, + 0xc8, 0xe8, 0xd8, 0xf8, 0x4c, 0x6c, 0x5c, 0x7c, + 0xec, 0xbc, 0x00, 0x06, 0x00, 0x00, 0x00, 0x00; + flash_instr = 0xb4, 0x00, 0x10; + eeprom_instr = + 0xbb, 0xff, 0xbb, 0xee, 0xbb, 0xcc, 0xb2, 0x0d, + 0xbc, 0x00, 0xb4, 0x00, 0xba, 0x0d, 0xbb, 0xbc, + 0x99, 0xe1, 0xbb, 0xac; hventerstabdelay = 100; + latchcycles = 5; + togglevtg = 1; + poweroffdelay = 15; + resetdelayms = 2; hvleavestabdelay = 15; - chiperasepulsewidth = 15; - programfusepulsewidth = 2; - programlockpolltimeout = 10; - factory_fcpu = 1000000; - chip_erase = "1010.1100--1000.0000--xxxx.xxxx--xxxx.xxxx"; + chiperasepolltimeout = 10; + programfusepolltimeout = 5; + programlockpolltimeout = 5; + spmcr = 0x57; + eecr = 0x3c; + ocdrev = 1; + chip_erase = "1010.1100--100x.xxxx--xxxx.xxxx--xxxx.xxxx"; pgm_enable = "1010.1100--0101.0011--xxxx.xxxx--xxxx.xxxx"; memory "eeprom" - size = 4096; + size = 512; + page_size = 4; + num_pages = 128; min_write_delay = 4000; - max_write_delay = 9000; - readback = 0x80 0x7f; - mode = 0x04; - delay = 12; - blocksize = 64; + max_write_delay = 4000; + readback = 0xff 0xff; + mode = 65; + delay = 10; + blocksize = 4; readsize = 256; - read = "1010.0000--xxxx.aaaa--aaaa.aaaa--oooo.oooo"; - write = "1100.0000--xxxx.aaaa--aaaa.aaaa--iiii.iiii"; + read = "1010.0000--xxxx.xxxa--aaaa.aaaa--oooo.oooo"; + write = "1100.0000--xxxx.xxxa--aaaa.aaaa--iiii.iiii"; + loadpage_lo = "1100.0001--0000.0000--0000.00aa--iiii.iiii"; + writepage = "1100.0010--00xx.xxxa--aaaa.aa00--xxxx.xxxx"; ; memory "flash" paged = yes; - size = 0x20000; - page_size = 256; - num_pages = 512; - min_write_delay = 22000; - max_write_delay = 56000; + size = 8192; + page_size = 64; + num_pages = 128; + min_write_delay = 4500; + max_write_delay = 4500; readback = 0xff 0xff; - mode = 0x11; - delay = 70; - blocksize = 256; + mode = 65; + delay = 6; + blocksize = 64; readsize = 256; - read_lo = "0010.0000--aaaa.aaaa--aaaa.aaaa--oooo.oooo"; - read_hi = "0010.1000--aaaa.aaaa--aaaa.aaaa--oooo.oooo"; - loadpage_lo = "0100.0000--xxxx.xxxx--xaaa.aaaa--iiii.iiii"; - loadpage_hi = "0100.1000--xxxx.xxxx--xaaa.aaaa--iiii.iiii"; - writepage = "0100.1100--aaaa.aaaa--axxx.xxxx--xxxx.xxxx"; + read_lo = "0010.0000--xxxx.aaaa--aaaa.aaaa--oooo.oooo"; + read_hi = "0010.1000--xxxx.aaaa--aaaa.aaaa--oooo.oooo"; + loadpage_lo = "0100.0000--xxxx.xxxx--xxxa.aaaa--iiii.iiii"; + loadpage_hi = "0100.1000--xxxx.xxxx--xxxa.aaaa--iiii.iiii"; + writepage = "0100.1100--xxxx.aaaa--aaax.xxxx--xxxx.xxxx"; ; - memory "fuse" + memory "lfuse" size = 1; - initval = 0xdf; - bitmask = 0x2b; - min_write_delay = 9000; - max_write_delay = 9000; - read = "0101.0000--xxxx.xxxx--xxxx.xxxx--xxox.o1oo"; - write = "1010.1100--1011.i1ii--xxxx.xxxx--xxxx.xxxx"; + min_write_delay = 4500; + max_write_delay = 4500; + read = "0101.0000--0000.0000--xxxx.xxxx--oooo.oooo"; + write = "1010.1100--1010.0000--xxxx.xxxx--iiii.iiii"; + ; + + memory "hfuse" + size = 1; + min_write_delay = 4500; + max_write_delay = 4500; + read = "0101.1000--0000.1000--xxxx.xxxx--oooo.oooo"; + write = "1010.1100--1010.1000--xxxx.xxxx--iiii.iiii"; + ; + + memory "efuse" + size = 1; + min_write_delay = 4500; + max_write_delay = 4500; + read = "0101.0000--0000.1000--xxxx.xxxx--oooo.oooo"; + write = "1010.1100--1010.0100--xxxx.xxxx--xxxx.xxxi"; ; memory "lock" - bitmask = 0x06; - min_write_delay = 9000; - max_write_delay = 9000; - read = "0101.1000--xxxx.xxxx--xxxx.xxxx--xxxx.xoox"; - write = "1010.1100--1111.1ii1--xxxx.xxxx--xxxx.xxxx"; + size = 1; + min_write_delay = 4500; + max_write_delay = 4500; + read = "0101.1000--xxxx.xxxx--xxxx.xxxx--xxxx.xxoo"; + write = "1010.1100--1111.11ii--xxxx.xxxx--xxxx.xxxx"; ; - memory "io" - size = 64; + memory "signature" + size = 3; + read = "0011.0000--xxxx.xxxx--0000.00aa--oooo.oooo"; ; - memory "sram" - size = 4000; - offset = 0x60; + memory "calibration" + size = 1; + read = "0011.1000--xxxx.xxxx--0000.0000--oooo.oooo"; ; ; #------------------------------------------------------------ -# ATmega161 +# ATtiny861A #------------------------------------------------------------ -part parent ".classic-nocal" # m161 - desc = "ATmega161"; - id = "m161"; - variants = - "ATmega161-8AC: TQFP44, Fmax=8 MHz, T=[0 C, 70 C], Vcc=[4 V, 5.5 V]", - "ATmega161-8AI: TQFP44, Fmax=8 MHz, T=[-40 C, 85 C], Vcc=[4 V, 5.5 V]", - "ATmega161-8PC: DIP40, Fmax=8 MHz, T=[0 C, 70 C], Vcc=[4 V, 5.5 V]", - "ATmega161-8PI: DIP40, Fmax=8 MHz, T=[-40 C, 85 C], Vcc=[4 V, 5.5 V]", - "ATmega161L-4AC: TQFP44, Fmax=4 MHz, T=[0 C, 70 C], Vcc=[2.7 V, 5.5 V]", - "ATmega161L-4AI: TQFP44, Fmax=4 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega161L-4PC: DIP40, Fmax=4 MHz, T=[0 C, 70 C], Vcc=[2.7 V, 5.5 V]", - "ATmega161L-4PI: DIP40, Fmax=4 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]"; - prog_modes = PM_SPM | PM_ISP | PM_HVPP; - mcuid = 89; - archnum = 5; - n_interrupts = 21; - n_boot_sections = 1; - boot_section_size = 1024; - stk500_devcode = 0x80; - avr910_devcode = 0x60; - chip_erase_delay = 28000; - pagel = 0xd7; - bs2 = 0xa0; - signature = 0x1e 0x94 0x01; - timeout = 200; - stabdelay = 100; - cmdexedelay = 25; - synchloops = 32; - pollindex = 3; - pollvalue = 0x53; - predelay = 1; - postdelay = 1; +part parent "t861" + desc = "ATtiny861A"; + id = "t861a"; + mcuid = 39; +; + +#------------------------------------------------------------ +# ATtiny28 +#------------------------------------------------------------ + +# This is an HVPP-only device. + +part + desc = "ATtiny28"; + id = "t28"; + prog_modes = PM_HVPP; + mcuid = 18; + n_interrupts = 6; + stk500_devcode = 0x22; + avr910_devcode = 0x5c; + signature = 0x1e 0x91 0x07; + serial = no; pp_controlstack = 0x0e, 0x1e, 0x0f, 0x1f, 0x2e, 0x3e, 0x2f, 0x3f, 0x4e, 0x5e, 0x4f, 0x5f, 0x6e, 0x7e, 0x6f, 0x7f, @@ -8876,128 +6648,52 @@ part parent ".classic-nocal" # m161 0xbe, 0xfd, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00; hventerstabdelay = 100; hvleavestabdelay = 15; - chiperasepolltimeout = 30; - programfusepolltimeout = 2; - programlockpolltimeout = 2; - factory_fcpu = 1000000; - chip_erase = "1010.1100--1000.0000--xxxx.xxxx--xxxx.xxxx"; - pgm_enable = "1010.1100--0101.0011--xxxx.xxxx--xxxx.xxxx"; - - memory "eeprom" - size = 512; - min_write_delay = 3400; - max_write_delay = 3400; - readback = 0xff 0xff; - mode = 0x04; - delay = 5; - blocksize = 128; - readsize = 256; - read = "1010.0000--xxxx.xxxa--aaaa.aaaa--oooo.oooo"; - write = "1100.0000--xxxx.xxxa--aaaa.aaaa--iiii.iiii"; - ; + resetdelay = 15; + chiperasepolltimeout = 10; + programfusepolltimeout = 5; + programlockpolltimeout = 5; memory "flash" - paged = yes; - size = 0x4000; - page_size = 128; - num_pages = 128; - min_write_delay = 14000; - max_write_delay = 14000; - readback = 0xff 0xff; - mode = 0x21; - delay = 16; - blocksize = 128; + size = 2048; + page_size = 2; + delay = 5; readsize = 256; - read_lo = "0010.0000--xxxa.aaaa--aaaa.aaaa--oooo.oooo"; - read_hi = "0010.1000--xxxa.aaaa--aaaa.aaaa--oooo.oooo"; - loadpage_lo = "0100.0000--xxxx.xxxx--xxaa.aaaa--iiii.iiii"; - loadpage_hi = "0100.1000--xxxx.xxxx--xxaa.aaaa--iiii.iiii"; - writepage = "0100.1100--xxxa.aaaa--aaxx.xxxx--xxxx.xxxx"; ; memory "fuse" size = 1; - initval = 0xda; - bitmask = 0x77; - min_write_delay = 2000; - max_write_delay = 2000; - read = "0101.0000--xxxx.xxxx--xxxx.xxxx--xoxo.oooo"; - write = "1010.1100--101x.xxxx--xxxx.xxxx--1i1i.1iii"; ; memory "lock" - bitmask = 0x3f; - min_write_delay = 2000; - max_write_delay = 2000; + size = 1; ; - memory "io" - size = 64; + memory "signature" + size = 3; ; - memory "sram" - size = 1024; - offset = 0x60; + memory "calibration" + size = 1; ; ; #------------------------------------------------------------ -# ATmega162 +# ATmega48 #------------------------------------------------------------ -part parent ".classic" # m162 - desc = "ATmega162"; - id = "m162"; - variants = - "ATmega162: N/A, Fmax=16 MHz, T=[N/A, N/A], Vcc=[N/A, N/A]", - "ATmega162-16AC: TQFP44, Fmax=16 MHz, T=[0 C, 70 C], Vcc=[4.5 V, 5.5 V]", - "ATmega162-16AI: TQFP44, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega162-16AJ: TQFP44, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega162-16AU: TQFP44, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega162-16AUR: TQFP44, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega162-16MC: VFQFN44, Fmax=16 MHz, T=[0 C, 70 C], Vcc=[4.5 V, 5.5 V]", - "ATmega162-16MI: VFQFN44, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega162-16MJ: VFQFN44, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega162-16MU: VFQFN44, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega162-16MUR: VFQFN44, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega162-16PC: DIP40, Fmax=16 MHz, T=[0 C, 70 C], Vcc=[4.5 V, 5.5 V]", - "ATmega162-16PI: DIP40, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega162-16PJ: DIP40, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega162-16PU: DIP40, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega162L-8AC: TQFP44, Fmax=8 MHz, T=[0 C, 70 C], Vcc=[2.7 V, 5.5 V]", - "ATmega162L-8AI: TQFP44, Fmax=8 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega162L-8MC: VFQFN44, Fmax=8 MHz, T=[0 C, 70 C], Vcc=[2.7 V, 5.5 V]", - "ATmega162L-8MI: VFQFN44, Fmax=8 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega162L-8PC: DIP40, Fmax=8 MHz, T=[0 C, 70 C], Vcc=[2.7 V, 5.5 V]", - "ATmega162L-8PI: DIP40, Fmax=8 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega162V-1AC: TQFP44, Fmax=1 MHz, T=[0 C, 70 C], Vcc=[1.8 V, 3.6 V]", - "ATmega162V-1MC: VFQFN44, Fmax=1 MHz, T=[0 C, 70 C], Vcc=[1.8 V, 3.6 V]", - "ATmega162V-1PC: DIP40, Fmax=1 MHz, T=[0 C, 70 C], Vcc=[1.8 V, 3.6 V]", - "ATmega162V-8AI: TQFP44, Fmax=8 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega162V-8AJ: TQFP44, Fmax=8 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega162V-8AU: TQFP44, Fmax=8 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega162V-8AUR: TQFP44, Fmax=8 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega162V-8MI: VFQFN44, Fmax=8 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega162V-8MJ: VFQFN44, Fmax=8 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega162V-8MU: VFQFN44, Fmax=8 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega162V-8MUR: VFQFN44, Fmax=8 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega162V-8PI: DIP40, Fmax=8 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega162V-8PJ: DIP40, Fmax=8 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega162V-8PU: DIP40, Fmax=8 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]"; - prog_modes = PM_SPM | PM_ISP | PM_HVPP | PM_JTAG | PM_JTAGmkI; - mcuid = 90; - archnum = 5; - n_interrupts = 28; - n_boot_sections = 4; - boot_section_size = 256; - stk500_devcode = 0x83; - avr910_devcode = 0x63; - chip_erase_delay = 9000; +part + desc = "ATmega48"; + id = "m48"; + prog_modes = PM_SPM | PM_ISP | PM_HVPP | PM_debugWIRE; + mcuid = 67; + n_interrupts = 26; + stk500_devcode = 0x59; + chip_erase_delay = 45000; pagel = 0xd7; - bs2 = 0xa0; - signature = 0x1e 0x94 0x04; + bs2 = 0xc2; +# avr910_devcode = 0x??; + signature = 0x1e 0x92 0x05; reset = io; - allowfullpagebitstream = yes; timeout = 200; stabdelay = 100; cmdexedelay = 25; @@ -9006,123 +6702,174 @@ part parent ".classic" # m162 pollvalue = 0x53; predelay = 1; postdelay = 1; + pollmethod = 1; pp_controlstack = 0x0e, 0x1e, 0x0f, 0x1f, 0x2e, 0x3e, 0x2f, 0x3f, 0x4e, 0x5e, 0x4f, 0x5f, 0x6e, 0x7e, 0x6f, 0x7f, 0x66, 0x76, 0x67, 0x77, 0x6a, 0x7a, 0x6b, 0x7b, 0xbe, 0xfd, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00; + flash_instr = 0xb6, 0x01, 0x11; + eeprom_instr = + 0xbd, 0xf2, 0xbd, 0xe1, 0xbb, 0xcf, 0xb4, 0x00, + 0xbe, 0x01, 0xb6, 0x01, 0xbc, 0x00, 0xbb, 0xbf, + 0x99, 0xf9, 0xbb, 0xaf; hventerstabdelay = 100; - latchcycles = 6; + latchcycles = 5; + togglevtg = 1; + poweroffdelay = 15; + resetdelayms = 1; hvleavestabdelay = 15; resetdelay = 15; chiperasepolltimeout = 10; programfusepolltimeout = 5; programlockpolltimeout = 5; - idr = 0x04; spmcr = 0x57; - eecr = 0x3c; - ocdrev = 2; + eecr = 0x3f; + ocdrev = 1; + chip_erase = "1010.1100--100x.xxxx--xxxx.xxxx--xxxx.xxxx"; + pgm_enable = "1010.1100--0101.0011--xxxx.xxxx--xxxx.xxxx"; memory "eeprom" - size = 512; + size = 256; page_size = 4; - min_write_delay = 9000; - max_write_delay = 9000; - mode = 0x41; + min_write_delay = 3600; + max_write_delay = 3600; + readback = 0xff 0xff; + mode = 65; delay = 20; blocksize = 4; readsize = 256; - read = "1010.0000--00xx.xxaa--aaaa.aaaa--oooo.oooo"; - write = "1100.0000--00xx.xxaa--aaaa.aaaa--iiii.iiii"; + read = "1010.0000--000x.xxxx--aaaa.aaaa--oooo.oooo"; + write = "1100.0000--000x.xxxx--aaaa.aaaa--iiii.iiii"; loadpage_lo = "1100.0001--0000.0000--0000.00aa--iiii.iiii"; - writepage = "1100.0010--00xx.xxaa--aaaa.aa00--xxxx.xxxx"; + writepage = "1100.0010--00xx.xxxx--aaaa.aa00--xxxx.xxxx"; ; memory "flash" paged = yes; - size = 0x4000; - page_size = 128; - num_pages = 128; + size = 4096; + page_size = 64; + num_pages = 64; min_write_delay = 4500; max_write_delay = 4500; - mode = 0x41; - delay = 10; - blocksize = 128; + mode = 65; + delay = 6; + blocksize = 64; readsize = 256; - read_lo = "0010.0000--00aa.aaaa--aaaa.aaaa--oooo.oooo"; - read_hi = "0010.1000--00aa.aaaa--aaaa.aaaa--oooo.oooo"; - loadpage_lo = "0100.0000--00xx.xxxx--xxaa.aaaa--iiii.iiii"; - loadpage_hi = "0100.1000--00xx.xxxx--xxaa.aaaa--iiii.iiii"; - writepage = "0100.1100--00aa.aaaa--aaxx.xxxx--xxxx.xxxx"; + read_lo = "0010.0000--0000.0aaa--aaaa.aaaa--oooo.oooo"; + read_hi = "0010.1000--0000.0aaa--aaaa.aaaa--oooo.oooo"; + loadpage_lo = "0100.0000--000x.xxxx--xxxa.aaaa--iiii.iiii"; + loadpage_hi = "0100.1000--000x.xxxx--xxxa.aaaa--iiii.iiii"; + writepage = "0100.1100--0000.0aaa--aaax.xxxx--xxxx.xxxx"; ; memory "lfuse" size = 1; - initval = 0x62; - min_write_delay = 16000; - max_write_delay = 16000; + min_write_delay = 4500; + max_write_delay = 4500; read = "0101.0000--0000.0000--xxxx.xxxx--oooo.oooo"; write = "1010.1100--1010.0000--xxxx.xxxx--iiii.iiii"; ; memory "hfuse" size = 1; - initval = 0x99; - min_write_delay = 16000; - max_write_delay = 16000; + min_write_delay = 4500; + max_write_delay = 4500; read = "0101.1000--0000.1000--xxxx.xxxx--oooo.oooo"; write = "1010.1100--1010.1000--xxxx.xxxx--iiii.iiii"; ; memory "efuse" size = 1; - initval = 0xff; - bitmask = 0x1e; - min_write_delay = 16000; - max_write_delay = 16000; + min_write_delay = 4500; + max_write_delay = 4500; read = "0101.0000--0000.1000--xxxx.xxxx--oooo.oooo"; - write = "1010.1100--1010.0100--xxxx.xxxx--111i.iii1"; + write = "1010.1100--1010.0100--xxxx.xxxx--xxxx.xxxi"; ; memory "lock" - bitmask = 0x3f; - min_write_delay = 16000; - max_write_delay = 16000; + size = 1; + min_write_delay = 4500; + max_write_delay = 4500; + read = "0101.1000--0000.0000--xxxx.xxxx--oooo.oooo"; + write = "1010.1100--111x.xxxx--xxxx.xxxx--11ii.iiii"; ; - memory "sram" - size = 1024; + memory "signature" + size = 3; + read = "0011.0000--000x.xxxx--xxxx.xxaa--oooo.oooo"; + ; + + memory "calibration" + size = 1; + read = "0011.1000--000x.xxxx--0000.0000--oooo.oooo"; ; ; #------------------------------------------------------------ -# ATmega163 +# ATmega48A #------------------------------------------------------------ -part parent ".classic" # m163 - desc = "ATmega163"; - id = "m163"; - variants = - "ATmega163-8AC: TQFP44, Fmax=8 MHz, T=[0 C, 70 C], Vcc=[4 V, 5.5 V]", - "ATmega163-8AI: TQFP44, Fmax=8 MHz, T=[-40 C, 85 C], Vcc=[4 V, 5.5 V]", - "ATmega163-8PC: DIP40, Fmax=8 MHz, T=[0 C, 70 C], Vcc=[4 V, 5.5 V]", - "ATmega163-8PI: DIP40, Fmax=8 MHz, T=[-40 C, 85 C], Vcc=[4 V, 5.5 V]", - "ATmega163L-4AC: TQFP44, Fmax=4 MHz, T=[0 C, 70 C], Vcc=[2.7 V, 5.5 V]", - "ATmega163L-4AI: TQFP44, Fmax=4 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega163L-4PC: DIP40, Fmax=4 MHz, T=[0 C, 70 C], Vcc=[2.7 V, 5.5 V]", - "ATmega163L-4PI: DIP40, Fmax=4 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]"; - prog_modes = PM_SPM | PM_ISP | PM_HVPP; - mcuid = 91; - archnum = 5; - n_interrupts = 18; +part parent "m48" + desc = "ATmega48A"; + id = "m48a"; + mcuid = 68; +; + +#------------------------------------------------------------ +# ATmega48P +#------------------------------------------------------------ + +part parent "m48" + desc = "ATmega48P"; + id = "m48p"; + mcuid = 69; + signature = 0x1e 0x92 0x0a; +; + +#------------------------------------------------------------ +# ATmega48PA +#------------------------------------------------------------ + +part parent "m48" + desc = "ATmega48PA"; + id = "m48pa"; + mcuid = 70; + signature = 0x1e 0x92 0x0a; +; + +#------------------------------------------------------------ +# ATmega48PB +#------------------------------------------------------------ + +part parent "m48" + desc = "ATmega48PB"; + id = "m48pb"; + mcuid = 71; + n_interrupts = 27; + chip_erase_delay = 10500; + signature = 0x1e 0x92 0x10; +; + +#------------------------------------------------------------ +# ATmega88 +#------------------------------------------------------------ + +part + desc = "ATmega88"; + id = "m88"; + prog_modes = PM_SPM | PM_ISP | PM_HVPP | PM_debugWIRE; + mcuid = 79; + n_interrupts = 26; n_boot_sections = 4; boot_section_size = 256; - stk500_devcode = 0x81; - avr910_devcode = 0x64; - chip_erase_delay = 32000; + stk500_devcode = 0x73; + chip_erase_delay = 9000; pagel = 0xd7; - bs2 = 0xa0; - signature = 0x1e 0x94 0x02; + bs2 = 0xc2; +# avr910_devcode = 0x??; + signature = 0x1e 0x93 0x0a; + reset = io; timeout = 200; stabdelay = 100; cmdexedelay = 25; @@ -9131,168 +6878,47 @@ part parent ".classic" # m163 pollvalue = 0x53; predelay = 1; postdelay = 1; + pollmethod = 1; pp_controlstack = 0x0e, 0x1e, 0x0f, 0x1f, 0x2e, 0x3e, 0x2f, 0x3f, 0x4e, 0x5e, 0x4f, 0x5f, 0x6e, 0x7e, 0x6f, 0x7f, 0x66, 0x76, 0x67, 0x77, 0x6a, 0x7a, 0x6b, 0x7b, 0xbe, 0xfd, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00; + flash_instr = 0xb6, 0x01, 0x11; + eeprom_instr = + 0xbd, 0xf2, 0xbd, 0xe1, 0xbb, 0xcf, 0xb4, 0x00, + 0xbe, 0x01, 0xb6, 0x01, 0xbc, 0x00, 0xbb, 0xbf, + 0x99, 0xf9, 0xbb, 0xaf; hventerstabdelay = 100; - hvleavestabdelay = 15; - chiperasepolltimeout = 30; - programfusepolltimeout = 2; - programlockpolltimeout = 2; - - memory "eeprom" - size = 512; - min_write_delay = 4000; - max_write_delay = 4000; - readback = 0xff 0xff; - mode = 0x41; - delay = 20; - blocksize = 4; - readsize = 256; - read = "1010.0000--xxxx.xxxa--aaaa.aaaa--oooo.oooo"; - write = "1100.0000--xxxx.xxxa--aaaa.aaaa--iiii.iiii"; - ; - - memory "flash" - paged = yes; - size = 0x4000; - page_size = 128; - num_pages = 128; - min_write_delay = 16000; - max_write_delay = 16000; - readback = 0xff 0xff; - mode = 0x11; - delay = 20; - blocksize = 128; - readsize = 256; - read_lo = "0010.0000--xxxa.aaaa--aaaa.aaaa--oooo.oooo"; - read_hi = "0010.1000--xxxa.aaaa--aaaa.aaaa--oooo.oooo"; - loadpage_lo = "0100.0000--xxxx.xxxx--xxaa.aaaa--iiii.iiii"; - loadpage_hi = "0100.1000--xxxx.xxxx--xxaa.aaaa--iiii.iiii"; - writepage = "0100.1100--xxxa.aaaa--aaxx.xxxx--xxxx.xxxx"; - ; - - memory "lfuse" - size = 1; - initval = 0xdf; - bitmask = 0xef; - min_write_delay = 2000; - max_write_delay = 2000; - read = "0101.0000--0000.0000--xxxx.xxxx--ooxx.oooo"; - write = "1010.1100--1010.0000--xxxx.xxxx--ii11.iiii"; - ; - - memory "hfuse" - size = 1; - initval = 0xff; - bitmask = 0x07; - min_write_delay = 2000; - max_write_delay = 2000; - read = "0101.1000--0000.1000--xxxx.xxxx--xxxx.1ooo"; - write = "1010.1100--1010.1000--xxxx.xxxx--1111.1iii"; - ; - - memory "lock" - bitmask = 0x3f; - min_write_delay = 2000; - max_write_delay = 2000; - ; - - memory "io" - size = 64; - ; - - memory "sram" - size = 1024; - offset = 0x60; - ; -; - -#------------------------------------------------------------ -# ATmega8515 -#------------------------------------------------------------ - -part parent ".classic" # m8515 - desc = "ATmega8515"; - id = "m8515"; - variants = - "ATmega8515: N/A, Fmax=16 MHz, T=[N/A, N/A], Vcc=[N/A, N/A]", - "ATmega8515-16AC: TQFP44, Fmax=16 MHz, T=[0, 70 C], Vcc=[4.5 V, 5.5 V]", - "ATmega8515-16AI: TQFP44, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[4.5 V, 5.5 V]", - "ATmega8515-16AU: TQFP44, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[4.5 V, 5.5 V]", - "ATmega8515-16AUR: TQFP44, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[4.5 V, 5.5 V]", - "ATmega8515-16JC: PLCC44, Fmax=16 MHz, T=[0, 70 C], Vcc=[4.5 V, 5.5 V]", - "ATmega8515-16JI: PLCC44, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[4.5 V, 5.5 V]", - "ATmega8515-16JU: PLCC44, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[4.5 V, 5.5 V]", - "ATmega8515-16JUR: PLCC44, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[4.5 V, 5.5 V]", - "ATmega8515-16MC: QFN44, Fmax=16 MHz, T=[0, 70 C], Vcc=[4.5 V, 5.5 V]", - "ATmega8515-16MI: QFN44, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[4.5 V, 5.5 V]", - "ATmega8515-16MU: QFN44, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[4.5 V, 5.5 V]", - "ATmega8515-16MUR: VQFN44, Fmax=16 MHz, T=[N/A, N/A], Vcc=[4.5 V, 5.5 V]", - "ATmega8515-16PC: PDIP40, Fmax=16 MHz, T=[0, 70 C], Vcc=[4.5 V, 5.5 V]", - "ATmega8515-16PI: PDIP40, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[4.5 V, 5.5 V]", - "ATmega8515-16PU: PDIP40, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[4.5 V, 5.5 V]", - "ATmega8515L-8AC: TQFP44, Fmax=8 MHz, T=[0, 70 C], Vcc=[2.7 V, 5.5 V]", - "ATmega8515L-8AI: TQFP44, Fmax=8 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega8515L-8AU: TQFP44, Fmax=8 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega8515L-8AUR: TQFP44, Fmax=8 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega8515L-8JC: PLCC44, Fmax=8 MHz, T=[0, 70 C], Vcc=[2.7 V, 5.5 V]", - "ATmega8515L-8JI: PLCC44, Fmax=8 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega8515L-8JU: PLCC44, Fmax=8 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega8515L-8JUR: PLCC44, Fmax=8 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega8515L-8MC: QFN44, Fmax=8 MHz, T=[0, 70 C], Vcc=[2.7 V, 5.5 V]", - "ATmega8515L-8MI: QFN44, Fmax=8 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega8515L-8MU: MLF44, Fmax=8 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega8515L-8MUR: VQFN44, Fmax=8 MHz, T=[N/A, N/A], Vcc=[2.7 V, 5.5 V]", - "ATmega8515L-8PC: PDIP40, Fmax=8 MHz, T=[0, 70 C], Vcc=[2.7 V, 5.5 V]", - "ATmega8515L-8PI: PDIP40, Fmax=8 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega8515L-8PU: PDIP40, Fmax=8 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]"; - prog_modes = PM_SPM | PM_ISP | PM_HVPP; - mcuid = 160; - archnum = 4; - n_interrupts = 17; - n_boot_sections = 4; - boot_section_size = 256; - stk500_devcode = 0x63; - avr910_devcode = 0x3a; - chip_erase_delay = 9000; - pagel = 0xd7; - bs2 = 0xa0; - signature = 0x1e 0x93 0x06; - timeout = 200; - stabdelay = 100; - cmdexedelay = 25; - synchloops = 32; - pollindex = 3; - pollvalue = 0x53; - predelay = 1; - postdelay = 1; - pp_controlstack = - 0x0e, 0x1e, 0x0f, 0x1f, 0x2e, 0x3e, 0x2f, 0x3f, - 0x4e, 0x5e, 0x4f, 0x5f, 0x6e, 0x7e, 0x6f, 0x7f, - 0x66, 0x76, 0x67, 0x77, 0x6a, 0x7a, 0x6b, 0x7b, - 0xbe, 0xfd, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00; - hventerstabdelay = 100; - latchcycles = 6; + latchcycles = 5; + togglevtg = 1; + poweroffdelay = 15; + resetdelayms = 1; hvleavestabdelay = 15; resetdelay = 15; chiperasepolltimeout = 10; programfusepolltimeout = 5; programlockpolltimeout = 5; + spmcr = 0x57; + eecr = 0x3f; + ocdrev = 1; + chip_erase = "1010.1100--100x.xxxx--xxxx.xxxx--xxxx.xxxx"; + pgm_enable = "1010.1100--0101.0011--xxxx.xxxx--xxxx.xxxx"; memory "eeprom" size = 512; - min_write_delay = 9000; - max_write_delay = 9000; + page_size = 4; + min_write_delay = 3600; + max_write_delay = 3600; readback = 0xff 0xff; - mode = 0x04; + mode = 65; delay = 20; - blocksize = 128; + blocksize = 4; readsize = 256; - read = "1010.0000--00xx.xxxa--aaaa.aaaa--oooo.oooo"; - write = "1100.0000--00xx.xxxa--aaaa.aaaa--iiii.iiii"; + read = "1010.0000--000x.xxxa--aaaa.aaaa--oooo.oooo"; + write = "1100.0000--000x.xxxa--aaaa.aaaa--iiii.iiii"; + loadpage_lo = "1100.0001--0000.0000--0000.00aa--iiii.iiii"; + writepage = "1100.0010--00xx.xxxa--aaaa.aa00--xxxx.xxxx"; ; memory "flash" @@ -9302,21 +6928,20 @@ part parent ".classic" # m8515 num_pages = 128; min_write_delay = 4500; max_write_delay = 4500; - readback = 0xff 0x00; - mode = 0x21; - delay = 10; + readback = 0xff 0xff; + mode = 65; + delay = 6; blocksize = 64; readsize = 256; read_lo = "0010.0000--0000.aaaa--aaaa.aaaa--oooo.oooo"; read_hi = "0010.1000--0000.aaaa--aaaa.aaaa--oooo.oooo"; - loadpage_lo = "0100.0000--0000.xxxx--xxxa.aaaa--iiii.iiii"; - loadpage_hi = "0100.1000--0000.xxxx--xxxa.aaaa--iiii.iiii"; + loadpage_lo = "0100.0000--000x.xxxx--xxxa.aaaa--iiii.iiii"; + loadpage_hi = "0100.1000--000x.xxxx--xxxa.aaaa--iiii.iiii"; writepage = "0100.1100--0000.aaaa--aaax.xxxx--xxxx.xxxx"; ; memory "lfuse" size = 1; - initval = 0xe1; min_write_delay = 4500; max_write_delay = 4500; read = "0101.0000--0000.0000--xxxx.xxxx--oooo.oooo"; @@ -9325,85 +6950,103 @@ part parent ".classic" # m8515 memory "hfuse" size = 1; - initval = 0xd9; min_write_delay = 4500; max_write_delay = 4500; read = "0101.1000--0000.1000--xxxx.xxxx--oooo.oooo"; write = "1010.1100--1010.1000--xxxx.xxxx--iiii.iiii"; ; - memory "lock" - bitmask = 0x3f; + memory "efuse" + size = 1; min_write_delay = 4500; max_write_delay = 4500; + read = "0101.0000--0000.1000--xxxx.xxxx--oooo.oooo"; + write = "1010.1100--1010.0100--xxxx.xxxx--xxxx.xiii"; ; - memory "calibration" - size = 4; - read = "0011.1000--00xx.xxxx--0000.00aa--oooo.oooo"; + memory "lock" + size = 1; + min_write_delay = 4500; + max_write_delay = 4500; + read = "0101.1000--0000.0000--xxxx.xxxx--oooo.oooo"; + write = "1010.1100--111x.xxxx--xxxx.xxxx--11ii.iiii"; ; - memory "io" - size = 64; + memory "signature" + size = 3; + read = "0011.0000--000x.xxxx--xxxx.xxaa--oooo.oooo"; ; - memory "sram" - size = 512; - offset = 0x60; + memory "calibration" + size = 1; + read = "0011.1000--000x.xxxx--0000.0000--oooo.oooo"; ; ; #------------------------------------------------------------ -# ATmega8535 +# ATmega88A #------------------------------------------------------------ -part parent ".classic" # m8535 - desc = "ATmega8535"; - id = "m8535"; - variants = - "ATmega8535: N/A, Fmax=16 MHz, T=[N/A, N/A], Vcc=[N/A, N/A]", - "ATmega8535-16AC: TQFP44, Fmax=16 MHz, T=[0, 70 C], Vcc=[4.5 V, 5.5 V]", - "ATmega8535-16AI: TQFP44, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[4.5 V, 5.5 V]", - "ATmega8535-16AU: TQFP44, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[4.5 V, 5.5 V]", - "ATmega8535-16AUR: TQFP44, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[4.5 V, 5.5 V]", - "ATmega8535-16JC: PLCC44, Fmax=16 MHz, T=[0, 70 C], Vcc=[4.5 V, 5.5 V]", - "ATmega8535-16JI: PLCC44, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[4.5 V, 5.5 V]", - "ATmega8535-16JU: PLCC44, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[4.5 V, 5.5 V]", - "ATmega8535-16JUR: PLCC44, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[4.5 V, 5.5 V]", - "ATmega8535-16MC: QFN44, Fmax=16 MHz, T=[0, 70 C], Vcc=[4.5 V, 5.5 V]", - "ATmega8535-16MI: QFN44, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[4.5 V, 5.5 V]", - "ATmega8535-16MU: MLF44, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[4.5 V, 5.5 V]", - "ATmega8535-16MUR: VQFN44, Fmax=16 MHz, T=[N/A, N/A], Vcc=[4.5 V, 5.5 V]", - "ATmega8535-16PC: PDIP40, Fmax=16 MHz, T=[0, 70 C], Vcc=[4.5 V, 5.5 V]", - "ATmega8535-16PI: PDIP40, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[4.5 V, 5.5 V]", - "ATmega8535-16PU: PDIP40, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[4.5 V, 5.5 V]", - "ATmega8535L-8AC: TQFP44, Fmax=8 MHz, T=[0, 70 C], Vcc=[2.7 V, 5.5 V]", - "ATmega8535L-8AI: TQFP44, Fmax=8 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega8535L-8AU: TQFP44, Fmax=8 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega8535L-8AUR: TQFP44, Fmax=8 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega8535L-8JC: PLCC44, Fmax=8 MHz, T=[0, 70 C], Vcc=[2.7 V, 5.5 V]", - "ATmega8535L-8JI: PLCC44, Fmax=8 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega8535L-8JU: PLCC44, Fmax=8 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega8535L-8JUR: PLCC44, Fmax=8 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega8535L-8MC: QFN44, Fmax=8 MHz, T=[0, 70 C], Vcc=[2.7 V, 5.5 V]", - "ATmega8535L-8MI: QFN44, Fmax=8 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega8535L-8MU: MLF44, Fmax=8 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega8535L-8MUR: MLF44, Fmax=8 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega8535L-8PC: PDIP40, Fmax=8 MHz, T=[0, 70 C], Vcc=[2.7 V, 5.5 V]", - "ATmega8535L-8PI: PDIP40, Fmax=8 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega8535L-8PU: PDIP40, Fmax=8 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]"; - prog_modes = PM_SPM | PM_ISP | PM_HVPP; - mcuid = 161; - archnum = 4; - n_interrupts = 21; +part parent "m88" + desc = "ATmega88A"; + id = "m88a"; + mcuid = 80; +; + +#------------------------------------------------------------ +# ATmega88P +#------------------------------------------------------------ + +part parent "m88" + desc = "ATmega88P"; + id = "m88p"; + mcuid = 81; + signature = 0x1e 0x93 0x0f; +; + +#------------------------------------------------------------ +# ATmega88PA +#------------------------------------------------------------ + +part parent "m88" + desc = "ATmega88PA"; + id = "m88pa"; + mcuid = 82; + signature = 0x1e 0x93 0x0f; +; + +#------------------------------------------------------------ +# ATmega88PB +#------------------------------------------------------------ + +part parent "m88" + desc = "ATmega88PB"; + id = "m88pb"; + mcuid = 83; + n_interrupts = 27; + chip_erase_delay = 10500; + signature = 0x1e 0x93 0x16; +; + +#------------------------------------------------------------ +# ATmega168 +#------------------------------------------------------------ + +part + desc = "ATmega168"; + id = "m168"; + prog_modes = PM_SPM | PM_ISP | PM_HVPP | PM_debugWIRE; + mcuid = 99; + n_interrupts = 26; n_boot_sections = 4; boot_section_size = 256; - stk500_devcode = 0x64; - avr910_devcode = 0x69; + stk500_devcode = 0x86; chip_erase_delay = 9000; pagel = 0xd7; - bs2 = 0xa0; - signature = 0x1e 0x93 0x08; + bs2 = 0xc2; +# avr910_devcode = 0x??; + signature = 0x1e 0x94 0x06; + reset = io; timeout = 200; stabdelay = 100; cmdexedelay = 25; @@ -9412,54 +7055,70 @@ part parent ".classic" # m8535 pollvalue = 0x53; predelay = 1; postdelay = 1; + pollmethod = 1; pp_controlstack = 0x0e, 0x1e, 0x0f, 0x1f, 0x2e, 0x3e, 0x2f, 0x3f, 0x4e, 0x5e, 0x4f, 0x5f, 0x6e, 0x7e, 0x6f, 0x7f, 0x66, 0x76, 0x67, 0x77, 0x6a, 0x7a, 0x6b, 0x7b, 0xbe, 0xfd, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00; + flash_instr = 0xb6, 0x01, 0x11; + eeprom_instr = + 0xbd, 0xf2, 0xbd, 0xe1, 0xbb, 0xcf, 0xb4, 0x00, + 0xbe, 0x01, 0xb6, 0x01, 0xbc, 0x00, 0xbb, 0xbf, + 0x99, 0xf9, 0xbb, 0xaf; hventerstabdelay = 100; - latchcycles = 6; + latchcycles = 5; + togglevtg = 1; + poweroffdelay = 15; + resetdelayms = 1; hvleavestabdelay = 15; resetdelay = 15; chiperasepolltimeout = 10; programfusepolltimeout = 5; programlockpolltimeout = 5; + spmcr = 0x57; + eecr = 0x3f; + ocdrev = 1; + chip_erase = "1010.1100--100x.xxxx--xxxx.xxxx--xxxx.xxxx"; + pgm_enable = "1010.1100--0101.0011--xxxx.xxxx--xxxx.xxxx"; memory "eeprom" size = 512; - min_write_delay = 9000; - max_write_delay = 9000; + page_size = 4; + min_write_delay = 3600; + max_write_delay = 3600; readback = 0xff 0xff; - mode = 0x04; + mode = 65; delay = 20; - blocksize = 128; + blocksize = 4; readsize = 256; - read = "1010.0000--00xx.xxxa--aaaa.aaaa--oooo.oooo"; - write = "1100.0000--00xx.xxxa--aaaa.aaaa--iiii.iiii"; + read = "1010.0000--000x.xxxa--aaaa.aaaa--oooo.oooo"; + write = "1100.0000--000x.xxxa--aaaa.aaaa--iiii.iiii"; + loadpage_lo = "1100.0001--0000.0000--0000.00aa--iiii.iiii"; + writepage = "1100.0010--00xx.xxxa--aaaa.aa00--xxxx.xxxx"; ; memory "flash" paged = yes; - size = 8192; - page_size = 64; + size = 0x4000; + page_size = 128; num_pages = 128; min_write_delay = 4500; max_write_delay = 4500; - readback = 0xff 0x00; - mode = 0x21; - delay = 10; - blocksize = 64; + readback = 0xff 0xff; + mode = 65; + delay = 6; + blocksize = 128; readsize = 256; - read_lo = "0010.0000--0000.aaaa--aaaa.aaaa--oooo.oooo"; - read_hi = "0010.1000--0000.aaaa--aaaa.aaaa--oooo.oooo"; - loadpage_lo = "0100.0000--0000.xxxx--xxxa.aaaa--iiii.iiii"; - loadpage_hi = "0100.1000--0000.xxxx--xxxa.aaaa--iiii.iiii"; - writepage = "0100.1100--0000.aaaa--aaax.xxxx--xxxx.xxxx"; + read_lo = "0010.0000--000a.aaaa--aaaa.aaaa--oooo.oooo"; + read_hi = "0010.1000--000a.aaaa--aaaa.aaaa--oooo.oooo"; + loadpage_lo = "0100.0000--000x.xxxx--xxaa.aaaa--iiii.iiii"; + loadpage_hi = "0100.1000--000x.xxxx--xxaa.aaaa--iiii.iiii"; + writepage = "0100.1100--000a.aaaa--aaxx.xxxx--xxxx.xxxx"; ; memory "lfuse" size = 1; - initval = 0xe1; min_write_delay = 4500; max_write_delay = 4500; read = "0101.0000--0000.0000--xxxx.xxxx--oooo.oooo"; @@ -9468,71 +7127,102 @@ part parent ".classic" # m8535 memory "hfuse" size = 1; - initval = 0xd9; min_write_delay = 4500; max_write_delay = 4500; read = "0101.1000--0000.1000--xxxx.xxxx--oooo.oooo"; write = "1010.1100--1010.1000--xxxx.xxxx--iiii.iiii"; ; + memory "efuse" + size = 1; + min_write_delay = 4500; + max_write_delay = 4500; + read = "0101.0000--0000.1000--xxxx.xxxx--oooo.oooo"; + write = "1010.1100--1010.0100--xxxx.xxxx--xxxx.xiii"; + ; + memory "lock" - bitmask = 0x3f; + size = 1; min_write_delay = 4500; max_write_delay = 4500; + read = "0101.1000--0000.0000--xxxx.xxxx--oooo.oooo"; + write = "1010.1100--111x.xxxx--xxxx.xxxx--11ii.iiii"; ; - memory "calibration" - size = 4; - read = "0011.1000--00xx.xxxx--0000.00aa--oooo.oooo"; + memory "signature" + size = 3; + read = "0011.0000--000x.xxxx--xxxx.xxaa--oooo.oooo"; ; - memory "io" - size = 64; + memory "calibration" + size = 1; + read = "0011.1000--000x.xxxx--0000.0000--oooo.oooo"; ; +; - memory "sram" - size = 512; - offset = 0x60; - ; +#------------------------------------------------------------ +# ATmega168A +#------------------------------------------------------------ + +part parent "m168" + desc = "ATmega168A"; + id = "m168a"; + mcuid = 100; ; #------------------------------------------------------------ -# ATmega8 +# ATmega168P #------------------------------------------------------------ -part parent ".classic" # m8 - desc = "ATmega8"; - id = "m8"; - variants = - "ATmega8: N/A, Fmax=16 MHz, T=[N/A, N/A], Vcc=[N/A, N/A]", - "ATmega8-16AN: TQFP32, Fmax=16 MHz, T=[-40 C, 105 C], Vcc=[4.5 V, 5.5 V]", - "ATmega8-16AU: TQFP32, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[4.5 V, 5.5 V]", - "ATmega8-16AUR: TQFP32, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[4.5 V, 5.5 V]", - "ATmega8-16MN: QFN32, Fmax=16 MHz, T=[-40 C, 105 C], Vcc=[4.5 V, 5.5 V]", - "ATmega8-16MU: MLF32, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[4.5 V, 5.5 V]", - "ATmega8-16MUR: MLF32, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[4.5 V, 5.5 V]", - "ATmega8-16PN: PDIP28, Fmax=16 MHz, T=[-40 C, 105 C], Vcc=[4.5 V, 5.5 V]", - "ATmega8-16PU: PDIP28, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[4.5 V, 5.5 V]", - "ATmega8L-8AN: TQFP32, Fmax=8 MHz, T=[-40 C, 105 C], Vcc=[2.7 V, 5.5 V]", - "ATmega8L-8AU: TQFP32, Fmax=8 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega8L-8AUR: TQFP32, Fmax=8 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega8L-8MN: QFN32, Fmax=8 MHz, T=[-40 C, 105 C], Vcc=[2.7 V, 5.5 V]", - "ATmega8L-8MU: MLF32, Fmax=8 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega8L-8MUR: VQFN32, Fmax=8 MHz, T=[N/A, N/A], Vcc=[2.7 V, 5.5 V]", - "ATmega8L-8PN: PDIP28, Fmax=8 MHz, T=[-40 C, 105 C], Vcc=[2.7 V, 5.5 V]", - "ATmega8L-8PU: PDIP28, Fmax=8 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]"; - prog_modes = PM_SPM | PM_ISP | PM_HVPP; - mcuid = 45; - archnum = 4; - n_interrupts = 19; +part parent "m168" + desc = "ATmega168P"; + id = "m168p"; + mcuid = 101; + signature = 0x1e 0x94 0x0b; +; + +#------------------------------------------------------------ +# ATmega168PA +#------------------------------------------------------------ + +part parent "m168" + desc = "ATmega168PA"; + id = "m168pa"; + mcuid = 102; + signature = 0x1e 0x94 0x0b; +; + +#------------------------------------------------------------ +# ATmega168PB +#------------------------------------------------------------ + +part parent "m168" + desc = "ATmega168PB"; + id = "m168pb"; + mcuid = 103; + n_interrupts = 27; + chip_erase_delay = 10500; + signature = 0x1e 0x94 0x15; +; + +#------------------------------------------------------------ +# ATtiny828 +#------------------------------------------------------------ + +part + desc = "ATtiny828"; + id = "t828"; + prog_modes = PM_SPM | PM_ISP | PM_HVPP | PM_debugWIRE; + mcuid = 35; + n_interrupts = 26; n_boot_sections = 4; boot_section_size = 256; - stk500_devcode = 0x70; - avr910_devcode = 0x76; - chip_erase_delay = 9000; + stk500_devcode = 0x86; + chip_erase_delay = 15000; pagel = 0xd7; bs2 = 0xc2; - signature = 0x1e 0x93 0x07; +# avr910_devcode = 0x??; + signature = 0x1e 0x93 0x14; reset = io; timeout = 200; stabdelay = 100; @@ -9542,34 +7232,46 @@ part parent ".classic" # m8 pollvalue = 0x53; predelay = 1; postdelay = 1; + pollmethod = 1; pp_controlstack = 0x0e, 0x1e, 0x0f, 0x1f, 0x2e, 0x3e, 0x2f, 0x3f, 0x4e, 0x5e, 0x4f, 0x5f, 0x6e, 0x7e, 0x6f, 0x7f, 0x66, 0x76, 0x67, 0x77, 0x6a, 0x7a, 0x6b, 0x7b, 0xbe, 0xfd, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00; + flash_instr = 0xb6, 0x01, 0x11; + eeprom_instr = + 0xbd, 0xf2, 0xbd, 0xe1, 0xbb, 0xcf, 0xb4, 0x00, + 0xbe, 0x01, 0xb6, 0x01, 0xbc, 0x00, 0xbb, 0xbf, + 0x99, 0xf9, 0xbb, 0xaf; hventerstabdelay = 100; latchcycles = 5; togglevtg = 1; poweroffdelay = 15; - resetdelayms = 2; + resetdelayms = 1; hvleavestabdelay = 15; resetdelay = 15; - chiperasepolltimeout = 20; - programfusepolltimeout = 10; - programlockpolltimeout = 10; + chiperasepolltimeout = 10; + programfusepolltimeout = 5; + programlockpolltimeout = 5; + spmcr = 0x57; + eecr = 0x3f; + chip_erase = "1010.1100--100x.xxxx--xxxx.xxxx--xxxx.xxxx"; + pgm_enable = "1010.1100--0101.0011--xxxx.xxxx--xxxx.xxxx"; memory "eeprom" - size = 512; + size = 256; page_size = 4; - min_write_delay = 9000; - max_write_delay = 9000; + min_write_delay = 3600; + max_write_delay = 3600; readback = 0xff 0xff; - mode = 0x04; - delay = 20; - blocksize = 128; + mode = 65; + delay = 5; + blocksize = 4; readsize = 256; - read = "1010.0000--00xx.xxxa--aaaa.aaaa--oooo.oooo"; - write = "1100.0000--00xx.xxxa--aaaa.aaaa--iiii.iiii"; + read = "1010.0000--000x.xxxa--aaaa.aaaa--oooo.oooo"; + write = "1100.0000--000x.xxxa--aaaa.aaaa--iiii.iiii"; + loadpage_lo = "1100.0001--0000.0000--0000.00aa--iiii.iiii"; + writepage = "1100.0010--00xx.xxxa--aaaa.aa00--xxxx.xxxx"; ; memory "flash" @@ -9579,21 +7281,20 @@ part parent ".classic" # m8 num_pages = 128; min_write_delay = 4500; max_write_delay = 4500; - readback = 0xff 0x00; - mode = 0x21; - delay = 10; - blocksize = 64; + readback = 0xff 0xff; + mode = 65; + delay = 6; + blocksize = 128; readsize = 256; read_lo = "0010.0000--0000.aaaa--aaaa.aaaa--oooo.oooo"; read_hi = "0010.1000--0000.aaaa--aaaa.aaaa--oooo.oooo"; - loadpage_lo = "0100.0000--0000.xxxx--xxxa.aaaa--iiii.iiii"; - loadpage_hi = "0100.1000--0000.xxxx--xxxa.aaaa--iiii.iiii"; + loadpage_lo = "0100.0000--000x.xxxx--xxxa.aaaa--iiii.iiii"; + loadpage_hi = "0100.1000--000x.xxxx--xxxa.aaaa--iiii.iiii"; writepage = "0100.1100--0000.aaaa--aaax.xxxx--xxxx.xxxx"; ; memory "lfuse" size = 1; - initval = 0xe1; min_write_delay = 4500; max_write_delay = 4500; read = "0101.0000--0000.0000--xxxx.xxxx--oooo.oooo"; @@ -9602,487 +7303,450 @@ part parent ".classic" # m8 memory "hfuse" size = 1; - initval = 0xd9; min_write_delay = 4500; max_write_delay = 4500; read = "0101.1000--0000.1000--xxxx.xxxx--oooo.oooo"; write = "1010.1100--1010.1000--xxxx.xxxx--iiii.iiii"; ; - memory "lock" - bitmask = 0x3f; + memory "efuse" + size = 1; min_write_delay = 4500; max_write_delay = 4500; + read = "0101.0000--0000.1000--xxxx.xxxx--oooo.oooo"; + write = "1010.1100--1010.0100--xxxx.xxxx--111i.iiii"; ; - memory "calibration" - size = 4; - read = "0011.1000--00xx.xxxx--0000.00aa--oooo.oooo"; + memory "lock" + size = 1; + min_write_delay = 4500; + max_write_delay = 4500; + read = "0101.1000--0000.0000--xxxx.xxxx--oooo.oooo"; + write = "1010.1100--111x.xxxx--xxxx.xxxx--11ii.iiii"; ; - memory "io" - size = 64; + memory "signature" + size = 3; + read = "0011.0000--000x.xxxx--xxxx.xxaa--oooo.oooo"; ; - memory "sram" - size = 1024; - offset = 0x60; + memory "calibration" + size = 1; + read = "0011.1000--000x.xxxx--0000.0000--oooo.oooo"; ; ; #------------------------------------------------------------ -# ATmega8A +# ATtiny828R #------------------------------------------------------------ -part parent "m8" # m8a - desc = "ATmega8A"; - id = "m8a"; - variants = - "ATmega8A: N/A, Fmax=16 MHz, T=[N/A, N/A], Vcc=[2.7 V, 5.5 V]", - "ATmega8A-AN: TQFP32, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega8A-ANR: TQFP32, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega8A-AU: TQFP32, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega8A-AUR: TQFP32, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega8A-MN: QFN32, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega8A-MNR: VQFN32, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega8A-MU: VQFN32, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega8A-MUR: QFN32, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega8A-PN: PDIP28, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega8A-PU: PDIP28, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]"; - mcuid = 46; +part parent "t828" + desc = "ATtiny828R"; + id = "t828r"; + mcuid = 36; ; #------------------------------------------------------------ -# ATmega16 +# ATtiny87 #------------------------------------------------------------ -part parent "m8" # m16 - desc = "ATmega16"; - id = "m16"; - variants = - "ATmega16: N/A, Fmax=16 MHz, T=[N/A, N/A], Vcc=[N/A, N/A]", - "ATmega16-16AQR: TQFP44, Fmax=16 MHz, T=[N/A, N/A], Vcc=[4.5 V, 5.5 V]", - "ATmega16-16AU: TQFP44, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[4.5 V, 5.5 V]", - "ATmega16-16AUR: TQFP44, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[4.5 V, 5.5 V]", - "ATmega16-16MQ: MLF44, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[4.5 V, 5.5 V]", - "ATmega16-16MU: MLF44, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[4.5 V, 5.5 V]", - "ATmega16-16MUR: MLF44, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[4.5 V, 5.5 V]", - "ATmega16-16PU: PDIP40, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[4.5 V, 5.5 V]", - "ATmega16L-8AQ: TQFP44, Fmax=8 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega16L-8AQR: TQFP44, Fmax=8 MHz, T=[N/A, N/A], Vcc=[2.7 V, 5.5 V]", - "ATmega16L-8AU: TQFP44, Fmax=8 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega16L-8AUR: TQFP44, Fmax=8 MHz, T=[N/A, N/A], Vcc=[2.7 V, 5.5 V]", - "ATmega16L-8MU: MLF44, Fmax=8 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega16L-8MUR: VQFN44, Fmax=8 MHz, T=[N/A, N/A], Vcc=[2.7 V, 5.5 V]", - "ATmega16L-8PU: PDIP40, Fmax=8 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]"; - prog_modes = PM_SPM | PM_ISP | PM_HVPP | PM_JTAG | PM_JTAGmkI; - mcuid = 49; - archnum = 5; - n_interrupts = 21; - stk500_devcode = 0x82; - avr910_devcode = 0x74; - bs2 = 0xa0; - signature = 0x1e 0x94 0x03; - allowfullpagebitstream = yes; - latchcycles = 6; - togglevtg = 0; - poweroffdelay = 0; - resetdelayms = 0; +part + desc = "ATtiny87"; + id = "t87"; + prog_modes = PM_SPM | PM_ISP | PM_HVPP | PM_debugWIRE; + mcuid = 27; + n_interrupts = 20; +# no STK500 devcode in XML file, use the ATtiny45 one + stk500_devcode = 0x14; +# Try the AT90S2313 devcode: + avr910_devcode = 0x20; + chip_erase_delay = 15000; + signature = 0x1e 0x93 0x87; + reset = io; + timeout = 200; + stabdelay = 100; + cmdexedelay = 25; + synchloops = 32; + pollindex = 3; + pollvalue = 0x53; + predelay = 1; + postdelay = 1; + pp_controlstack = + 0x0e, 0x1e, 0x0e, 0x1e, 0x2e, 0x3e, 0x2e, 0x3e, + 0x4e, 0x5e, 0x4e, 0x5e, 0x6e, 0x7e, 0x6e, 0x7e, + 0x06, 0x16, 0x46, 0x56, 0x0a, 0x1a, 0x4a, 0x5a, + 0x1e, 0x7c, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00; + flash_instr = 0xb6, 0x01, 0x11; + eeprom_instr = + 0xbd, 0xf2, 0xbd, 0xe1, 0xbb, 0xcf, 0xb4, 0x00, + 0xbe, 0x01, 0xb6, 0x01, 0xbc, 0x00, 0xbb, 0xbf, + 0x99, 0xf9, 0xbb, 0xaf; + hventerstabdelay = 100; + latchcycles = 5; + togglevtg = 1; + poweroffdelay = 20; + resetdelayms = 1; + hvleavestabdelay = 15; chiperasepolltimeout = 10; programfusepolltimeout = 5; programlockpolltimeout = 5; - idr = 0x31; spmcr = 0x57; - eecr = 0x3c; - ocdrev = 2; + eecr = 0x3f; + chip_erase = "1010.1100--100x.xxxx--xxxx.xxxx--xxxx.xxxx"; + pgm_enable = "1010.1100--0101.0011--xxxx.xxxx--xxxx.xxxx"; memory "eeprom" - read = "1010.0000--00xx.xxaa--aaaa.aaaa--oooo.oooo"; - write = "1100.0000--00xx.xxaa--aaaa.aaaa--iiii.iiii"; + size = 512; + page_size = 4; + min_write_delay = 4000; + max_write_delay = 4500; + readback = 0xff 0xff; + mode = 65; + delay = 10; + blocksize = 4; + readsize = 256; + read = "1010.0000--00xx.xxxa--aaaa.aaaa--oooo.oooo"; + write = "1100.0000--00xx.xxxa--aaaa.aaaa--iiii.iiii"; loadpage_lo = "1100.0001--0000.0000--0000.00aa--iiii.iiii"; - writepage = "1100.0010--00xx.xxaa--aaaa.aa00--xxxx.xxxx"; + writepage = "1100.0010--00xx.xxxa--aaaa.aa00--xxxx.xxxx"; ; memory "flash" - size = 0x4000; + paged = yes; + size = 8192; page_size = 128; - blocksize = 128; - read_lo = "0010.0000--00aa.aaaa--aaaa.aaaa--oooo.oooo"; - read_hi = "0010.1000--00aa.aaaa--aaaa.aaaa--oooo.oooo"; - loadpage_lo = "0100.0000--00xx.xxxx--xxaa.aaaa--iiii.iiii"; - loadpage_hi = "0100.1000--00xx.xxxx--xxaa.aaaa--iiii.iiii"; - writepage = "0100.1100--00aa.aaaa--aaxx.xxxx--xxxx.xxxx"; + num_pages = 64; + min_write_delay = 4500; + max_write_delay = 4500; + readback = 0xff 0xff; + mode = 65; + delay = 10; + blocksize = 64; + readsize = 256; + read_lo = "0010.0000--000a.aaaa--aaaa.aaaa--oooo.oooo"; + read_hi = "0010.1000--000a.aaaa--aaaa.aaaa--oooo.oooo"; + loadpage_lo = "0100.0000--000x.xxxx--xxaa.aaaa--iiii.iiii"; + loadpage_hi = "0100.1000--000x.xxxx--xxaa.aaaa--iiii.iiii"; + writepage = "0100.1100--0000.aaaa--aaax.xxxx--xxxx.xxxx"; ; - memory "hfuse" - initval = 0x99; + memory "lfuse" + size = 1; + min_write_delay = 9000; + max_write_delay = 9000; + read = "0101.0000--0000.0000--xxxx.xxxx--oooo.oooo"; + write = "1010.1100--1010.0000--xxxx.xxxx--iiii.iiii"; ; -; -#------------------------------------------------------------ -# ATmega16A -#------------------------------------------------------------ + memory "hfuse" + size = 1; + min_write_delay = 9000; + max_write_delay = 9000; + read = "0101.1000--0000.1000--xxxx.xxxx--oooo.oooo"; + write = "1010.1100--1010.1000--xxxx.xxxx--iiii.iiii"; + ; -part parent "m16" # m16a - desc = "ATmega16A"; - id = "m16a"; - variants = - "ATmega16A: N/A, Fmax=16 MHz, T=[N/A, N/A], Vcc=[2.7 V, 5.5 V]", - "ATmega16A-AU: TQFP44, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega16A-AUR: TQFP44, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega16A-MU: MLF44, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega16A-MUR: VQFN44, Fmax=16 MHz, T=[N/A, N/A], Vcc=[2.7 V, 5.5 V]", - "ATmega16A-PU: PDIP40, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]"; - mcuid = 50; -; + memory "efuse" + size = 1; + min_write_delay = 9000; + max_write_delay = 9000; + read = "0101.0000--0000.1000--xxxx.xxxx--oooo.oooo"; + write = "1010.1100--1010.0100--xxxx.xxxx--xxxx.xxxi"; + ; + + memory "lock" + size = 1; + min_write_delay = 9000; + max_write_delay = 9000; + read = "0101.1000--0000.0000--0000.0000--oooo.oooo"; + write = "1010.1100--111x.xxxx--xxxx.xxxx--xxxx.xxii"; + ; +# ATtiny87 has Signature Bytes: 0x1E 0x93 0x87. + memory "signature" + size = 3; + read = "0011.0000--000x.xxxx--xxxx.xxaa--oooo.oooo"; + ; + + memory "calibration" + size = 1; + read = "0011.1000--000x.xxxx--0000.000a--oooo.oooo"; + ; +; #------------------------------------------------------------ -# ATmega32 +# ATtiny167 #------------------------------------------------------------ -part parent "m8" # m32 - desc = "ATmega32"; - id = "m32"; - variants = - "ATmega32: N/A, Fmax=16 MHz, T=[N/A, N/A], Vcc=[N/A, N/A]", - "ATmega32-16AQ: TQFP44, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[4.5 V, 5.5 V]", - "ATmega32-16AQR: TQFP44, Fmax=16 MHz, T=[N/A, N/A], Vcc=[4.5 V, 5.5 V]", - "ATmega32-16AU: TQFP44, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[4.5 V, 5.5 V]", - "ATmega32-16AUR: TQFP44, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[4.5 V, 5.5 V]", - "ATmega32-16MU: MLF44, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[4.5 V, 5.5 V]", - "ATmega32-16MUR: VQFN44, Fmax=16 MHz, T=[N/A, N/A], Vcc=[4.5 V, 5.5 V]", - "ATmega32-16PU: PDIP40, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[4.5 V, 5.5 V]", - "ATmega32L-8AU: TQFP44, Fmax=8 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega32L-8AUR: TQFP44, Fmax=8 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega32L-8MU: MLF44, Fmax=8 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega32L-8MUR: VQFN44, Fmax=8 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega32L-8PU: PDIP40, Fmax=8 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]"; - prog_modes = PM_SPM | PM_ISP | PM_HVPP | PM_JTAG | PM_JTAGmkI; - mcuid = 58; - archnum = 5; - n_interrupts = 21; - boot_section_size = 512; - stk500_devcode = 0x91; - avr910_devcode = 0x72; - bs2 = 0xa0; - signature = 0x1e 0x95 0x02; - allowfullpagebitstream = yes; - latchcycles = 6; - togglevtg = 0; - poweroffdelay = 0; - resetdelayms = 0; +part + desc = "ATtiny167"; + id = "t167"; + prog_modes = PM_SPM | PM_ISP | PM_HVPP | PM_debugWIRE; + mcuid = 29; + n_interrupts = 20; +# no STK500 devcode in XML file, use the ATtiny45 one + stk500_devcode = 0x14; +# avr910_devcode = 0x??; +# Try the AT90S2313 devcode: + avr910_devcode = 0x20; + chip_erase_delay = 15000; + signature = 0x1e 0x94 0x87; + reset = io; + timeout = 200; + stabdelay = 100; + cmdexedelay = 25; + synchloops = 32; + pollindex = 3; + pollvalue = 0x53; + predelay = 1; + postdelay = 1; + pp_controlstack = + 0x0e, 0x1e, 0x0e, 0x1e, 0x2e, 0x3e, 0x2e, 0x3e, + 0x4e, 0x5e, 0x4e, 0x5e, 0x6e, 0x7e, 0x6e, 0x7e, + 0x06, 0x16, 0x46, 0x56, 0x0a, 0x1a, 0x4a, 0x5a, + 0x1e, 0x7c, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00; + flash_instr = 0xb6, 0x01, 0x11; + eeprom_instr = + 0xbd, 0xf2, 0xbd, 0xe1, 0xbb, 0xcf, 0xb4, 0x00, + 0xbe, 0x01, 0xb6, 0x01, 0xbc, 0x00, 0xbb, 0xbf, + 0x99, 0xf9, 0xbb, 0xaf; + hventerstabdelay = 100; + latchcycles = 5; + togglevtg = 1; + poweroffdelay = 20; + resetdelayms = 1; + hvleavestabdelay = 15; chiperasepolltimeout = 10; programfusepolltimeout = 5; programlockpolltimeout = 5; - idr = 0x31; spmcr = 0x57; - eecr = 0x3c; - ocdrev = 2; + eecr = 0x3f; + chip_erase = "1010.1100--100x.xxxx--xxxx.xxxx--xxxx.xxxx"; + pgm_enable = "1010.1100--0101.0011--xxxx.xxxx--xxxx.xxxx"; memory "eeprom" - size = 1024; - blocksize = 64; - read = "1010.0000--00xx.xxaa--aaaa.aaaa--oooo.oooo"; - write = "1100.0000--00xx.xxaa--aaaa.aaaa--iiii.iiii"; + size = 512; + page_size = 4; + min_write_delay = 4000; + max_write_delay = 4500; + readback = 0xff 0xff; + mode = 65; + delay = 10; + blocksize = 4; + readsize = 256; + read = "1010.0000--00xx.xxxa--aaaa.aaaa--oooo.oooo"; + write = "1100.0000--00xx.xxxa--aaaa.aaaa--iiii.iiii"; loadpage_lo = "1100.0001--0000.0000--0000.00aa--iiii.iiii"; - writepage = "1100.0010--00xx.xxaa--aaaa.aa00--xxxx.xxxx"; + writepage = "1100.0010--00xx.xxxa--aaaa.aa00--xxxx.xxxx"; ; memory "flash" - size = 0x8000; + paged = yes; + size = 0x4000; page_size = 128; - num_pages = 256; - read_lo = "0010.0000--00aa.aaaa--aaaa.aaaa--oooo.oooo"; - read_hi = "0010.1000--00aa.aaaa--aaaa.aaaa--oooo.oooo"; - loadpage_lo = "0100.0000--00xx.xxxx--xxaa.aaaa--iiii.iiii"; - loadpage_hi = "0100.1000--00xx.xxxx--xxaa.aaaa--iiii.iiii"; - writepage = "0100.1100--00aa.aaaa--aaxx.xxxx--xxxx.xxxx"; + num_pages = 128; + min_write_delay = 4500; + max_write_delay = 4500; + readback = 0xff 0xff; + mode = 65; + delay = 10; + blocksize = 64; + readsize = 256; + read_lo = "0010.0000--000a.aaaa--aaaa.aaaa--oooo.oooo"; + read_hi = "0010.1000--000a.aaaa--aaaa.aaaa--oooo.oooo"; + loadpage_lo = "0100.0000--000x.xxxx--xxaa.aaaa--iiii.iiii"; + loadpage_hi = "0100.1000--000x.xxxx--xxaa.aaaa--iiii.iiii"; + writepage = "0100.1100--000a.aaaa--aaxx.xxxx--xxxx.xxxx"; + ; + + memory "lfuse" + size = 1; + min_write_delay = 9000; + max_write_delay = 9000; + read = "0101.0000--0000.0000--xxxx.xxxx--oooo.oooo"; + write = "1010.1100--1010.0000--xxxx.xxxx--iiii.iiii"; ; memory "hfuse" - initval = 0x99; + size = 1; + min_write_delay = 9000; + max_write_delay = 9000; + read = "0101.1000--0000.1000--xxxx.xxxx--oooo.oooo"; + write = "1010.1100--1010.1000--xxxx.xxxx--iiii.iiii"; ; - memory "sram" - size = 2048; + memory "efuse" + size = 1; + min_write_delay = 9000; + max_write_delay = 9000; + read = "0101.0000--0000.1000--xxxx.xxxx--oooo.oooo"; + write = "1010.1100--1010.0100--xxxx.xxxx--xxxx.xxxi"; ; -; -#------------------------------------------------------------ -# ATmega32A -#------------------------------------------------------------ + memory "lock" + size = 1; + min_write_delay = 9000; + max_write_delay = 9000; + read = "0101.1000--0000.0000--0000.0000--oooo.oooo"; + write = "1010.1100--111x.xxxx--xxxx.xxxx--xxxx.xxii"; + ; +# ATtiny167 has Signature Bytes: 0x1E 0x94 0x87. + memory "signature" + size = 3; + read = "0011.0000--000x.xxxx--xxxx.xxaa--oooo.oooo"; + ; -part parent "m32" # m32a - desc = "ATmega32A"; - id = "m32a"; - variants = - "ATmega32A-AN: TQFP44, Fmax=16 MHz, T=[-40 C, 105 C], Vcc=[2.7 V, 5.5 V]", - "ATmega32A-ANR: TQFP44, Fmax=16 MHz, T=[N/A, N/A], Vcc=[2.7 V, 5.5 V]", - "ATmega32A-AU: TQFP44, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega32A-AUR: TQFP44, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega32A-MN: VQFN44, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega32A-MNR: VQFN44, Fmax=16 MHz, T=[N/A, N/A], Vcc=[2.7 V, 5.5 V]", - "ATmega32A-MU: MLF44, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega32A-MUR: VQFN44, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega32A-PN: PDIP40, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega32A-PU: PDIP40, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]"; - mcuid = 59; + memory "calibration" + size = 1; + read = "0011.1000--000x.xxxx--0000.000a--oooo.oooo"; + ; ; #------------------------------------------------------------ -# ATmega64 +# ATtiny48 #------------------------------------------------------------ -part parent "m8" # m64 - desc = "ATmega64"; - id = "m64"; - variants = - "ATmega64: N/A, Fmax=16 MHz, T=[N/A, N/A], Vcc=[N/A, N/A]", - "ATmega64-16AN: TQFP64, Fmax=16 MHz, T=[-40 C, 105 C], Vcc=[4.5 V, 5.5 V]", - "ATmega64-16AU: TQFP64, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[4.2 V, 5.5 V]", - "ATmega64-16AUR: TQFP64, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[4.2 V, 5.5 V]", - "ATmega64-16MN: QFN64, Fmax=16 MHz, T=[-40 C, 105 C], Vcc=[4.5 V, 5.5 V]", - "ATmega64-16MU: QFN64, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[4.5 V, 5.5 V]", - "ATmega64-16MUR: VQFN64, Fmax=16 MHz, T=[N/A, N/A], Vcc=[4.5 V, 5.5 V]", - "ATmega64L-8AN: TQFP64, Fmax=8 MHz, T=[-40 C, 105 C], Vcc=[2.7 V, 5.5 V]", - "ATmega64L-8AQ: TQFP64, Fmax=8 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega64L-8AQR: TQFP64, Fmax=8 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega64L-8AU: TQFP64, Fmax=8 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega64L-8AUR: TQFP64, Fmax=8 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega64L-8MN: QFN64, Fmax=8 MHz, T=[-40 C, 105 C], Vcc=[2.7 V, 5.5 V]", - "ATmega64L-8MQ: MLF64, Fmax=8 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega64L-8MQR: VQFN64, Fmax=8 MHz, T=[N/A, N/A], Vcc=[2.7 V, 5.5 V]", - "ATmega64L-8MU: QFN64, Fmax=8 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega64L-8MUR: MLF64, Fmax=8 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]"; - prog_modes = PM_SPM | PM_ISP | PM_HVPP | PM_JTAG | PM_JTAGmkI; - mcuid = 72; - archnum = 5; - n_interrupts = 35; - boot_section_size = 1024; - stk500_devcode = 0xa0; - avr910_devcode = 0x45; - bs2 = 0xa0; - signature = 0x1e 0x96 0x02; - allowfullpagebitstream = yes; - latchcycles = 6; - togglevtg = 0; - poweroffdelay = 0; - resetdelayms = 0; +part + desc = "ATtiny48"; + id = "t48"; + prog_modes = PM_SPM | PM_ISP | PM_HVPP | PM_debugWIRE; + mcuid = 23; + n_interrupts = 20; + stk500_devcode = 0x73; + chip_erase_delay = 15000; + pagel = 0xd7; + bs2 = 0xc2; +# avr910_devcode = 0x??; + signature = 0x1e 0x92 0x09; + reset = io; + timeout = 200; + stabdelay = 100; + cmdexedelay = 25; + synchloops = 32; + pollindex = 3; + pollvalue = 0x53; + predelay = 1; + postdelay = 1; + pollmethod = 1; + pp_controlstack = + 0x0e, 0x1e, 0x0f, 0x1f, 0x2e, 0x3e, 0x2f, 0x3f, + 0x4e, 0x5e, 0x4f, 0x5f, 0x6e, 0x7e, 0x6f, 0x7f, + 0x66, 0x76, 0x67, 0x77, 0x6a, 0x7a, 0x6b, 0x7b, + 0xbe, 0xfd, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00; + flash_instr = 0xb6, 0x01, 0x11; + eeprom_instr = + 0xbd, 0xf2, 0xbd, 0xe1, 0xbb, 0xcf, 0xb4, 0x00, + 0xbe, 0x01, 0xb6, 0x01, 0xbc, 0x00, 0xbb, 0xbf, + 0x99, 0xf9, 0xbb, 0xaf; + hventerstabdelay = 100; + latchcycles = 5; + togglevtg = 1; + poweroffdelay = 15; + resetdelayms = 1; + hvleavestabdelay = 15; + resetdelay = 15; chiperasepolltimeout = 10; programfusepolltimeout = 5; programlockpolltimeout = 5; - idr = 0x22; - spmcr = 0x68; - eecr = 0x3c; - ocdrev = 2; + spmcr = 0x57; + eecr = 0x3f; + ocdrev = 1; + chip_erase = "1010.1100--100x.xxxx--xxxx.xxxx--xxxx.xxxx"; + pgm_enable = "1010.1100--0101.0011--xxxx.xxxx--xxxx.xxxx"; memory "eeprom" - size = 2048; - page_size = 8; - blocksize = 64; - read = "1010.0000--xxxx.aaaa--aaaa.aaaa--oooo.oooo"; - write = "1100.0000--xxxx.aaaa--aaaa.aaaa--iiii.iiii"; + size = 64; + page_size = 4; + min_write_delay = 3600; + max_write_delay = 3600; + readback = 0xff 0xff; + mode = 65; + delay = 20; + blocksize = 4; + readsize = 64; + read = "1010.0000--000x.xxxx--xaaa.aaaa--oooo.oooo"; + write = "1100.0000--000x.xxxx--xaaa.aaaa--iiii.iiii"; + loadpage_lo = "1100.0001--0000.0000--0000.00aa--iiii.iiii"; + writepage = "1100.0010--00xx.xxxx--xaaa.aa00--xxxx.xxxx"; ; memory "flash" - size = 0x10000; - page_size = 256; - num_pages = 256; - blocksize = 128; - read_lo = "0010.0000--xaaa.aaaa--aaaa.aaaa--oooo.oooo"; - read_hi = "0010.1000--xaaa.aaaa--aaaa.aaaa--oooo.oooo"; - loadpage_lo = "0100.0000--xxxx.xxxx--xaaa.aaaa--iiii.iiii"; - loadpage_hi = "0100.1000--xxxx.xxxx--xaaa.aaaa--iiii.iiii"; - writepage = "0100.1100--xaaa.aaaa--axxx.xxxx--xxxx.xxxx"; - ; - - memory "hfuse" - initval = 0x99; - ; - - memory "efuse" - size = 1; - initval = 0xfd; - bitmask = 0x03; + paged = yes; + size = 4096; + page_size = 64; + num_pages = 64; min_write_delay = 4500; max_write_delay = 4500; - read = "0101.0000--0000.1000--xxxx.xxxx--oooo.oooo"; - write = "1010.1100--1010.0100--xxxx.xxxx--xxxx.xxii"; - ; - - memory "io" - size = 224; - ; - - memory "sram" - size = 4096; - offset = 0x100; - ; -; - -#------------------------------------------------------------ -# ATmega64A -#------------------------------------------------------------ - -part parent "m64" # m64a - desc = "ATmega64A"; - id = "m64a"; - variants = - "ATmega64A-AN: TQFP64, Fmax=16 MHz, T=[-40 C, 105 C], Vcc=[2.7 V, 5.5 V]", - "ATmega64A-ANR: TQFP64, Fmax=16 MHz, T=[-40 C, 105 C], Vcc=[2.7 V, 5.5 V]", - "ATmega64A-AU: TQFP64, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega64A-AUR: TQFP64, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega64A-MN: QFN64, Fmax=16 MHz, T=[-40 C, 105 C], Vcc=[2.7 V, 5.5 V]", - "ATmega64A-MU: MLF64, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega64A-MUR: VQFN64, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]"; - mcuid = 73; -; - -#------------------------------------------------------------ -# ATmega128 -#------------------------------------------------------------ - -part parent "m8" # m128 - desc = "ATmega128"; - id = "m128"; - variants = - "ATmega128-16AN: TQFP64, Fmax=16 MHz, T=[-40 C, 105 C], Vcc=[4.5 V, 5.5 V]", - "ATmega128-16ANR: TQFP64, Fmax=16 MHz, T=[-40 C, 105 C], Vcc=[4.5 V, 5.5 V]", - "ATmega128-16AU: TQFP64, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[4.5 V, 5.5 V]", - "ATmega128-16AUR: TQFP64, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[4.5 V, 5.5 V]", - "ATmega128-16MN: MLF64, Fmax=16 MHz, T=[-40 C, 105 C], Vcc=[4.5 V, 5.5 V]", - "ATmega128-16MNR: MLF64, Fmax=16 MHz, T=[N/A, N/A], Vcc=[4.5 V, 5.5 V]", - "ATmega128-16MU: MLF64, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[4.5 V, 5.5 V]", - "ATmega128-16MUR: MLF64, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[4.5 V, 5.5 V]", - "ATmega128L-8AN: TQFP64, Fmax=8 MHz, T=[-40 C, 105 C], Vcc=[3 V, 5.5 V]", - "ATmega128L-8ANR: TQFP64, Fmax=8 MHz, T=[-40 C, 105 C], Vcc=[3 V, 5.5 V]", - "ATmega128L-8AU: TQFP64, Fmax=8 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega128L-8AUR: TQFP64, Fmax=8 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega128L-8MN: MLF64, Fmax=8 MHz, T=[-40 C, 105 C], Vcc=[3 V, 5.5 V]", - "ATmega128L-8MNR: MLF64, Fmax=8 MHz, T=[N/A, N/A], Vcc=[2.7 V, 5.5 V]", - "ATmega128L-8MU: MLF64, Fmax=8 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega128L-8MUR: MLF64, Fmax=8 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]"; - prog_modes = PM_SPM | PM_ISP | PM_HVPP | PM_JTAG | PM_JTAGmkI; - mcuid = 85; - archnum = 51; - n_interrupts = 35; - boot_section_size = 1024; - stk500_devcode = 0xb2; - avr910_devcode = 0x43; - chip_erase_delay = 10000; - bs2 = 0xa0; - signature = 0x1e 0x97 0x02; - allowfullpagebitstream = yes; - latchcycles = 6; - togglevtg = 0; - poweroffdelay = 0; - resetdelayms = 0; - chiperasepolltimeout = 10; - programfusepolltimeout = 5; - programlockpolltimeout = 5; - idr = 0x22; - rampz = 0x3b; - spmcr = 0x68; - eecr = 0x3c; - ocdrev = 1; - - memory "eeprom" - size = 4096; - page_size = 8; - min_write_delay = 10000; - max_write_delay = 10000; + readback = 0xff 0xff; + mode = 65; + delay = 6; blocksize = 64; - read = "1010.0000--xxxx.aaaa--aaaa.aaaa--oooo.oooo"; - write = "1100.0000--xxxx.aaaa--aaaa.aaaa--iiii.iiii"; + readsize = 256; + read_lo = "0010.0000--0000.aaaa--aaaa.aaaa--oooo.oooo"; + read_hi = "0010.1000--0000.aaaa--aaaa.aaaa--oooo.oooo"; + loadpage_lo = "0100.0000--000x.xxxx--xxxa.aaaa--iiii.iiii"; + loadpage_hi = "0100.1000--000x.xxxx--xxxa.aaaa--iiii.iiii"; + writepage = "0100.1100--0000.aaaa--aaax.xxxx--xxxx.xxxx"; ; - memory "flash" - size = 0x20000; - page_size = 256; - num_pages = 512; - min_write_delay = 5000; - max_write_delay = 5000; - blocksize = 128; - read_lo = "0010.0000--aaaa.aaaa--aaaa.aaaa--oooo.oooo"; - read_hi = "0010.1000--aaaa.aaaa--aaaa.aaaa--oooo.oooo"; - loadpage_lo = "0100.0000--xxxx.xxxx--xaaa.aaaa--iiii.iiii"; - loadpage_hi = "0100.1000--xxxx.xxxx--xaaa.aaaa--iiii.iiii"; - writepage = "0100.1100--aaaa.aaaa--axxx.xxxx--xxxx.xxxx"; + memory "lfuse" + size = 1; + min_write_delay = 4500; + max_write_delay = 4500; + read = "0101.0000--0000.0000--xxxx.xxxx--oooo.oooo"; + write = "1010.1100--1010.0000--xxxx.xxxx--iiii.iiii"; ; memory "hfuse" - initval = 0x99; + size = 1; + min_write_delay = 4500; + max_write_delay = 4500; + read = "0101.1000--0000.1000--xxxx.xxxx--oooo.oooo"; + write = "1010.1100--1010.1000--xxxx.xxxx--iiii.iiii"; ; memory "efuse" size = 1; - initval = 0xfd; - bitmask = 0x03; min_write_delay = 4500; max_write_delay = 4500; read = "0101.0000--0000.1000--xxxx.xxxx--oooo.oooo"; - write = "1010.1100--1010.0100--xxxx.xxxx--xxxx.xxii"; + write = "1010.1100--1010.0100--xxxx.xxxx--1111.111i"; ; - memory "io" - size = 224; + memory "lock" + size = 1; + min_write_delay = 4500; + max_write_delay = 4500; + read = "0101.1000--0000.0000--xxxx.xxxx--oooo.oooo"; + write = "1010.1100--111x.xxxx--xxxx.xxxx--11ii.iiii"; ; - memory "sram" - size = 4096; - offset = 0x100; + memory "signature" + size = 3; + read = "0011.0000--000x.xxxx--xxxx.xxaa--oooo.oooo"; ; -; - -#------------------------------------------------------------ -# ATmega128A -#------------------------------------------------------------ -part parent "m128" # m128a - desc = "ATmega128A"; - id = "m128a"; - variants = - "ATmega128A: TQFP64, Fmax=N/A, T=[N/A, N/A], Vcc=[N/A, N/A]", - "ATmega128A-AN: TQFP64, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega128A-ANR: TQFP64, Fmax=16 MHz, T=[-40 C, 105 C], Vcc=[2.7 V, 5.5 V]", - "ATmega128A-AU: TQFP64, Fmax=16 MHz, T=[-40 C, 105 C], Vcc=[2.7 V, 5.5 V]", - "ATmega128A-AUR: TQFP64, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega128A-MN: VQFN64, Fmax=16 MHz, T=[-40 C, 105 C], Vcc=[2.7 V, 5.5 V]", - "ATmega128A-MNR: TQFP64, Fmax=16 MHz, T=[N/A, N/A], Vcc=[2.7 V, 5.5 V]", - "ATmega128A-MU: QFN64, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega128A-MUR: QFN64, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]"; - mcuid = 86; + memory "calibration" + size = 1; + read = "0011.1000--000x.xxxx--0000.0000--oooo.oooo"; + ; ; #------------------------------------------------------------ -# ATmega640 +# ATtiny88 #------------------------------------------------------------ -# Almost same as ATmega1280, except for different memory sizes -part parent ".classic" # m640 - desc = "ATmega640"; - id = "m640"; - variants = - "ATmega640: N/A, Fmax=16 MHz, T=[N/A, N/A], Vcc=[N/A, N/A]", - "ATmega640-16AU: TQFP100, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega640-16AUR: TQFP100, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega640-16CU: CBGA100, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega640V-8AU: TQFP100, Fmax=8 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega640V-8AUR: TQFP100, Fmax=8 MHz, T=[N/A, N/A], Vcc=[1.8 V, 5.5 V]", - "ATmega640V-8CU: CBGA100, Fmax=8 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega640V-8CUR: TFBGA100, Fmax=8 MHz, T=[N/A, N/A], Vcc=[1.8 V, 5.5 V]"; - prog_modes = PM_SPM | PM_ISP | PM_HVPP | PM_JTAG; - mcuid = 126; - archnum = 5; - n_interrupts = 57; - n_boot_sections = 4; - boot_section_size = 1024; -# stk500_devcode = 0xB2; -# avr910_devcode = 0x43; +part + desc = "ATtiny88"; + id = "t88"; + prog_modes = PM_SPM | PM_ISP | PM_HVPP | PM_debugWIRE; + mcuid = 28; + n_interrupts = 20; + stk500_devcode = 0x73; chip_erase_delay = 9000; pagel = 0xd7; - bs2 = 0xa0; - signature = 0x1e 0x96 0x08; + bs2 = 0xc2; +# avr910_devcode = 0x??; + signature = 0x1e 0x93 0x11; reset = io; timeout = 200; stabdelay = 100; @@ -10098,6 +7762,11 @@ part parent ".classic" # m640 0x4e, 0x5e, 0x4f, 0x5f, 0x6e, 0x7e, 0x6f, 0x7f, 0x66, 0x76, 0x67, 0x77, 0x6a, 0x7a, 0x6b, 0x7b, 0xbe, 0xfd, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00; + flash_instr = 0xb6, 0x01, 0x11; + eeprom_instr = + 0xbd, 0xf2, 0xbd, 0xe1, 0xbb, 0xcf, 0xb4, 0x00, + 0xbe, 0x01, 0xb6, 0x01, 0xbc, 0x00, 0xbb, 0xbf, + 0x99, 0xf9, 0xbb, 0xaf; hventerstabdelay = 100; latchcycles = 5; togglevtg = 1; @@ -10108,269 +7777,325 @@ part parent ".classic" # m640 chiperasepolltimeout = 10; programfusepolltimeout = 5; programlockpolltimeout = 5; - idr = 0x31; spmcr = 0x57; eecr = 0x3f; - ocdrev = 3; + ocdrev = 1; + chip_erase = "1010.1100--100x.xxxx--xxxx.xxxx--xxxx.xxxx"; + pgm_enable = "1010.1100--0101.0011--xxxx.xxxx--xxxx.xxxx"; memory "eeprom" - size = 4096; - page_size = 8; - min_write_delay = 9000; - max_write_delay = 9000; - mode = 0x41; - delay = 10; - blocksize = 8; - readsize = 256; - read = "1010.0000--xxxx.aaaa--aaaa.aaaa--oooo.oooo"; - write = "1100.0000--xxxx.aaaa--aaaa.aaaa--iiii.iiii"; - loadpage_lo = "1100.0001--0000.0000--0000.0aaa--iiii.iiii"; - writepage = "1100.0010--00xx.aaaa--aaaa.a000--xxxx.xxxx"; + size = 64; + page_size = 4; + min_write_delay = 3600; + max_write_delay = 3600; + readback = 0xff 0xff; + mode = 65; + delay = 20; + blocksize = 4; + readsize = 64; + read = "1010.0000--000x.xxxx--xaaa.aaaa--oooo.oooo"; + write = "1100.0000--000x.xxxx--xaaa.aaaa--iiii.iiii"; + loadpage_lo = "1100.0001--0000.0000--0000.00aa--iiii.iiii"; + writepage = "1100.0010--00xx.xxxx--xaaa.aa00--xxxx.xxxx"; ; memory "flash" paged = yes; - size = 0x10000; - page_size = 256; - num_pages = 256; + size = 8192; + page_size = 64; + num_pages = 128; min_write_delay = 4500; max_write_delay = 4500; - mode = 0x41; - delay = 10; - blocksize = 256; + readback = 0xff 0xff; + mode = 65; + delay = 6; + blocksize = 64; readsize = 256; - read_lo = "0010.0000--0aaa.aaaa--aaaa.aaaa--oooo.oooo"; - read_hi = "0010.1000--0aaa.aaaa--aaaa.aaaa--oooo.oooo"; - loadpage_lo = "0100.0000--xxxx.xxxx--xaaa.aaaa--iiii.iiii"; - loadpage_hi = "0100.1000--xxxx.xxxx--xaaa.aaaa--iiii.iiii"; - writepage = "0100.1100--0aaa.aaaa--axxx.xxxx--xxxx.xxxx"; + read_lo = "0010.0000--0000.aaaa--aaaa.aaaa--oooo.oooo"; + read_hi = "0010.1000--0000.aaaa--aaaa.aaaa--oooo.oooo"; + loadpage_lo = "0100.0000--000x.xxxx--xxxa.aaaa--iiii.iiii"; + loadpage_hi = "0100.1000--000x.xxxx--xxxa.aaaa--iiii.iiii"; + writepage = "0100.1100--0000.aaaa--aaax.xxxx--xxxx.xxxx"; ; memory "lfuse" size = 1; - initval = 0x62; - min_write_delay = 9000; - max_write_delay = 9000; + min_write_delay = 4500; + max_write_delay = 4500; read = "0101.0000--0000.0000--xxxx.xxxx--oooo.oooo"; write = "1010.1100--1010.0000--xxxx.xxxx--iiii.iiii"; ; memory "hfuse" size = 1; - initval = 0x99; - min_write_delay = 9000; - max_write_delay = 9000; + min_write_delay = 4500; + max_write_delay = 4500; read = "0101.1000--0000.1000--xxxx.xxxx--oooo.oooo"; write = "1010.1100--1010.1000--xxxx.xxxx--iiii.iiii"; ; memory "efuse" size = 1; - initval = 0xff; - bitmask = 0x07; - min_write_delay = 9000; - max_write_delay = 9000; + min_write_delay = 4500; + max_write_delay = 4500; read = "0101.0000--0000.1000--xxxx.xxxx--oooo.oooo"; - write = "1010.1100--1010.0100--xxxx.xxxx--xxxx.xiii"; + write = "1010.1100--1010.0100--xxxx.xxxx--xxxx.xxxi"; ; memory "lock" - bitmask = 0x3f; - min_write_delay = 9000; - max_write_delay = 9000; + size = 1; + min_write_delay = 4500; + max_write_delay = 4500; + read = "0101.1000--0000.0000--xxxx.xxxx--oooo.oooo"; + write = "1010.1100--111x.xxxx--xxxx.xxxx--11ii.iiii"; ; - memory "io" - size = 480; + memory "signature" + size = 3; + read = "0011.0000--000x.xxxx--xxxx.xxaa--oooo.oooo"; ; - memory "sram" - size = 8192; - offset = 0x200; + memory "calibration" + size = 1; + read = "0011.1000--000x.xxxx--0000.0000--oooo.oooo"; ; ; #------------------------------------------------------------ -# ATmega1280 +# ATmega328 #------------------------------------------------------------ -part parent "m640" # m1280 - desc = "ATmega1280"; - id = "m1280"; - variants = - "ATmega1280: TQFP100, Fmax=16 MHz, T=[N/A, N/A], Vcc=[4.5 V, 5.5 V]", - "ATmega1280-16AU: TQFP100, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega1280-16AUR: TQFP100, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega1280-16CU: CBGA100, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega1280V-8AU: TQFP100, Fmax=8 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega1280V-8AUR: TQFP100, Fmax=8 MHz, T=[N/A, N/A], Vcc=[1.8 V, 5.5 V]", - "ATmega1280V-8CU: CBGA100, Fmax=8 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 138; - archnum = 51; - signature = 0x1e 0x97 0x03; - rampz = 0x3b; +part + desc = "ATmega328"; + id = "m328"; + prog_modes = PM_SPM | PM_ISP | PM_HVPP | PM_debugWIRE; + mcuid = 118; + n_interrupts = 26; + n_boot_sections = 4; + boot_section_size = 512; + stk500_devcode = 0x86; + chip_erase_delay = 9000; + pagel = 0xd7; + bs2 = 0xc2; +# avr910_devcode = 0x??; + signature = 0x1e 0x95 0x14; + reset = io; + timeout = 200; + stabdelay = 100; + cmdexedelay = 25; + synchloops = 32; + pollindex = 3; + pollvalue = 0x53; + predelay = 1; + postdelay = 1; + pollmethod = 1; + pp_controlstack = + 0x0e, 0x1e, 0x0f, 0x1f, 0x2e, 0x3e, 0x2f, 0x3f, + 0x4e, 0x5e, 0x4f, 0x5f, 0x6e, 0x7e, 0x6f, 0x7f, + 0x66, 0x76, 0x67, 0x77, 0x6a, 0x7a, 0x6b, 0x7b, + 0xbe, 0xfd, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00; + flash_instr = 0xb6, 0x01, 0x11; + eeprom_instr = + 0xbd, 0xf2, 0xbd, 0xe1, 0xbb, 0xcf, 0xb4, 0x00, + 0xbe, 0x01, 0xb6, 0x01, 0xbc, 0x00, 0xbb, 0xbf, + 0x99, 0xf9, 0xbb, 0xaf; + hventerstabdelay = 100; + latchcycles = 5; + togglevtg = 1; + poweroffdelay = 15; + resetdelayms = 1; + hvleavestabdelay = 15; + resetdelay = 15; + chiperasepolltimeout = 10; + programfusepolltimeout = 5; + programlockpolltimeout = 5; + spmcr = 0x57; + eecr = 0x3f; + ocdrev = 1; + chip_erase = "1010.1100--100x.xxxx--xxxx.xxxx--xxxx.xxxx"; + pgm_enable = "1010.1100--0101.0011--xxxx.xxxx--xxxx.xxxx"; - memory "flash" - size = 0x20000; - num_pages = 512; - read_lo = "0010.0000--aaaa.aaaa--aaaa.aaaa--oooo.oooo"; - read_hi = "0010.1000--aaaa.aaaa--aaaa.aaaa--oooo.oooo"; - writepage = "0100.1100--aaaa.aaaa--axxx.xxxx--xxxx.xxxx"; + memory "eeprom" + size = 1024; + page_size = 4; + min_write_delay = 3600; + max_write_delay = 3600; + readback = 0xff 0xff; + mode = 65; + delay = 20; + blocksize = 4; + readsize = 256; + read = "1010.0000--000x.xxaa--aaaa.aaaa--oooo.oooo"; + write = "1100.0000--000x.xxaa--aaaa.aaaa--iiii.iiii"; + loadpage_lo = "1100.0001--0000.0000--0000.00aa--iiii.iiii"; + writepage = "1100.0010--00xx.xxaa--aaaa.aa00--xxxx.xxxx"; + ; + + memory "flash" + paged = yes; + size = 0x8000; + page_size = 128; + num_pages = 256; + min_write_delay = 4500; + max_write_delay = 4500; + readback = 0xff 0xff; + mode = 65; + delay = 6; + blocksize = 128; + readsize = 256; + read_lo = "0010.0000--00aa.aaaa--aaaa.aaaa--oooo.oooo"; + read_hi = "0010.1000--00aa.aaaa--aaaa.aaaa--oooo.oooo"; + loadpage_lo = "0100.0000--000x.xxxx--xxaa.aaaa--iiii.iiii"; + loadpage_hi = "0100.1000--000x.xxxx--xxaa.aaaa--iiii.iiii"; + writepage = "0100.1100--00aa.aaaa--aaxx.xxxx--xxxx.xxxx"; + ; + + memory "lfuse" + size = 1; + min_write_delay = 4500; + max_write_delay = 4500; + read = "0101.0000--0000.0000--xxxx.xxxx--oooo.oooo"; + write = "1010.1100--1010.0000--xxxx.xxxx--iiii.iiii"; + ; + + memory "hfuse" + size = 1; + min_write_delay = 4500; + max_write_delay = 4500; + read = "0101.1000--0000.1000--xxxx.xxxx--oooo.oooo"; + write = "1010.1100--1010.1000--xxxx.xxxx--iiii.iiii"; + ; + + memory "efuse" + size = 1; + min_write_delay = 4500; + max_write_delay = 4500; + read = "0101.0000--0000.1000--xxxx.xxxx--oooo.oooo"; + write = "1010.1100--1010.0100--xxxx.xxxx--xxxx.xiii"; + ; + + memory "lock" + size = 1; + min_write_delay = 4500; + max_write_delay = 4500; + read = "0101.1000--0000.0000--xxxx.xxxx--oooo.oooo"; + write = "1010.1100--111x.xxxx--xxxx.xxxx--11ii.iiii"; + ; + + memory "signature" + size = 3; + read = "0011.0000--000x.xxxx--xxxx.xxaa--oooo.oooo"; + ; + + memory "calibration" + size = 1; + read = "0011.1000--000x.xxxx--0000.0000--oooo.oooo"; ; ; #------------------------------------------------------------ -# ATmega1281 +# ATmega328P #------------------------------------------------------------ -# Identical to ATmega1280 -part parent "m640" # m1281 - desc = "ATmega1281"; - id = "m1281"; - variants = - "ATmega1281: N/A, Fmax=16 MHz, T=[N/A, N/A], Vcc=[4.5 V, 5.5 V]", - "ATmega1281-16AU: TQFP64, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega1281-16AUR: TQFP64, Fmax=16 MHz, T=[N/A, N/A], Vcc=[2.7 V, 5.5 V]", - "ATmega1281-16MU: QFN64, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega1281-16MUR: QFN64, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega1281V-8AU: TQFP64, Fmax=8 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega1281V-8AUR: QFN64, Fmax=8 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega1281V-8MU: MLF64, Fmax=8 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega1281V-8MUR: MLF64, Fmax=8 MHz, T=[N/A, N/A], Vcc=[1.8 V, 5.5 V]"; - mcuid = 139; - archnum = 51; - signature = 0x1e 0x97 0x04; - rampz = 0x3b; +part parent "m328" + desc = "ATmega328P"; + id = "m328p"; + mcuid = 119; + signature = 0x1e 0x95 0x0f; +; - memory "flash" - size = 0x20000; - num_pages = 512; - read_lo = "0010.0000--aaaa.aaaa--aaaa.aaaa--oooo.oooo"; - read_hi = "0010.1000--aaaa.aaaa--aaaa.aaaa--oooo.oooo"; - writepage = "0100.1100--aaaa.aaaa--axxx.xxxx--xxxx.xxxx"; +#------------------------------------------------------------ +# ATmega328PB +#------------------------------------------------------------ + +part parent "m328" + desc = "ATmega328PB"; + id = "m328pb"; + mcuid = 120; + n_interrupts = 45; + chip_erase_delay = 10500; + signature = 0x1e 0x95 0x16; + + memory "efuse" + write = "1010.1100--1010.0100--xxxx.xxxx--xxxx.iiii"; ; ; #------------------------------------------------------------ -# ATmega2560 +# ATmega32m1 #------------------------------------------------------------ -part parent "m640" # m2560 - desc = "ATmega2560"; - id = "m2560"; - variants = - "ATmega2560: TQFP100, Fmax=16 MHz, T=[N/A, N/A], Vcc=[4.5 V, 5.5 V]", - "ATmega2560-16AU: TQFP100, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[4.5 V, 5.5 V]", - "ATmega2560-16AUR: TQFP100, Fmax=16 MHz, T=[N/A, N/A], Vcc=[4.5 V, 5.5 V]", - "ATmega2560-16CU: CBGA100, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[4.5 V, 5.5 V]", - "ATmega2560V-8AU: TQFP100, Fmax=8 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega2560V-8AUR: TQFP100, Fmax=8 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega2560V-8CU: CBGA100, Fmax=8 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 143; - archnum = 6; - stk500_devcode = 0xb2; - signature = 0x1e 0x98 0x01; - pp_controlstack = - 0x0e, 0x1e, 0x0f, 0x1f, 0x2e, 0x3e, 0x2f, 0x3f, - 0x4e, 0x5e, 0x4f, 0x5f, 0x6e, 0x7e, 0x6f, 0x7f, - 0x66, 0x76, 0x67, 0x77, 0x6a, 0x7a, 0x6b, 0x7b, - 0xbe, 0xfd, 0x00, 0x01, 0x00, 0x00, 0x00, 0x02; - latchcycles = 6; - rampz = 0x3b; - eind = 0x5c; - ocdrev = 4; +part parent "m328" + desc = "ATmega32M1"; + id = "m32m1"; + mcuid = 63; + n_interrupts = 31; + bs2 = 0xe2; +# stk500_devcode = 0x??; +# avr910_devcode = 0x??; + signature = 0x1e 0x95 0x84; - memory "flash" - size = 0x40000; - num_pages = 1024; - read_lo = "0010.0000--aaaa.aaaa--aaaa.aaaa--oooo.oooo"; - read_hi = "0010.1000--aaaa.aaaa--aaaa.aaaa--oooo.oooo"; - load_ext_addr = "0100.1101--0000.0000--0000.000a--0000.0000"; - writepage = "0100.1100--aaaa.aaaa--axxx.xxxx--xxxx.xxxx"; + memory "efuse" + write = "1010.1100--1010.0100--xxxx.xxxx--xxii.iiii"; ; ; #------------------------------------------------------------ -# ATmega2561 +# ATmega64m1 #------------------------------------------------------------ -part parent "m640" # m2561 - desc = "ATmega2561"; - id = "m2561"; - variants = - "ATmega2561: N/A, Fmax=16 MHz, T=[N/A, N/A], Vcc=[N/A, N/A]", - "ATmega2561-16AU: TQFP64, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[4.5 V, 5.5 V]", - "ATmega2561-16AUR: TQFP64, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[4.5 V, 5.5 V]", - "ATmega2561-16MU: MLF64, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[4.5 V, 5.5 V]", - "ATmega2561-16MUR: VQFN64, Fmax=16 MHz, T=[N/A, N/A], Vcc=[4.5 V, 5.5 V]", - "ATmega2561V-8AU: TQFP64, Fmax=8 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega2561V-8AUR: TQFP64, Fmax=8 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega2561V-8MU: MLF64, Fmax=8 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega2561V-8MUR: VQFN64, Fmax=8 MHz, T=[N/A, N/A], Vcc=[1.8 V, 5.5 V]"; - mcuid = 144; - archnum = 6; - stk500_devcode = 0xb2; - signature = 0x1e 0x98 0x02; - pp_controlstack = - 0x0e, 0x1e, 0x0f, 0x1f, 0x2e, 0x3e, 0x2f, 0x3f, - 0x4e, 0x5e, 0x4f, 0x5f, 0x6e, 0x7e, 0x6f, 0x7f, - 0x66, 0x76, 0x67, 0x77, 0x6a, 0x7a, 0x6b, 0x7b, - 0xbe, 0xfd, 0x00, 0x01, 0x00, 0x00, 0x00, 0x02; - latchcycles = 6; - rampz = 0x3b; - eind = 0x5c; - ocdrev = 4; +part parent "m328" + desc = "ATmega64M1"; + id = "m64m1"; + mcuid = 76; + n_interrupts = 31; + boot_section_size = 1024; + bs2 = 0xe2; +# stk500_devcode = 0x??; +# avr910_devcode = 0x??; + signature = 0x1e 0x96 0x84; + + memory "eeprom" + size = 2048; + page_size = 8; + read = "1010.0000--000x.xaaa--aaaa.aaaa--oooo.oooo"; + write = "1100.0000--000x.xaaa--aaaa.aaaa--iiii.iiii"; + loadpage_lo = "1100.0001--0000.0000--0000.0aaa--iiii.iiii"; + writepage = "1100.0010--00xx.xaaa--aaaa.a000--xxxx.xxxx"; + ; memory "flash" - size = 0x40000; - num_pages = 1024; + size = 0x10000; + page_size = 256; read_lo = "0010.0000--aaaa.aaaa--aaaa.aaaa--oooo.oooo"; read_hi = "0010.1000--aaaa.aaaa--aaaa.aaaa--oooo.oooo"; - load_ext_addr = "0100.1101--0000.0000--0000.000a--0000.0000"; + loadpage_lo = "0100.0000--000x.xxxx--xaaa.aaaa--iiii.iiii"; + loadpage_hi = "0100.1000--000x.xxxx--xaaa.aaaa--iiii.iiii"; writepage = "0100.1100--aaaa.aaaa--axxx.xxxx--xxxx.xxxx"; ; + + memory "efuse" + write = "1010.1100--1010.0100--xxxx.xxxx--xxii.iiii"; + ; ; #------------------------------------------------------------ -# ATmega164P +# ATtiny2313 #------------------------------------------------------------ -part parent ".classic" # m164p - desc = "ATmega164P"; - id = "m164p"; - variants = - "ATmega164P: N/A, Fmax=20 MHz, T=[N/A, N/A], Vcc=[N/A, N/A]", - "ATmega164P-20AN: TQFP44, Fmax=20 MHz, T=[-40 C, 105 C], Vcc=[2.7 V, 5.5 V]", - "ATmega164P-20AQ: TQFP44, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega164P-20AU: TQFP44, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega164P-20AUR: TQFP44, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega164P-20MN: VQFN44, Fmax=20 MHz, T=[-40 C, 105 C], Vcc=[2.7 V, 5.5 V]", - "ATmega164P-20MQ: VQFN44, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega164P-20MU: VQFN44, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega164P-20MUR: VQFN44, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega164P-20PN: PDIP40, Fmax=20 MHz, T=[-40 C, 105 C], Vcc=[2.7 V, 5.5 V]", - "ATmega164P-20PQ: PDIP40, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega164P-20PU: PDIP40, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega164PV-10AN: TQFP44, Fmax=10 MHz, T=[-40 C, 105 C], Vcc=[1.8 V, 5.5 V]", - "ATmega164PV-10AQ: VQFN44, Fmax=10 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega164PV-10AU: TQFP44, Fmax=10 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega164PV-10AUR: TQFP44, Fmax=10 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega164PV-10MU: VQFN44, Fmax=10 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega164PV-10MUR: VQFN44, Fmax=10 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega164PV-10PN: PDIP40, Fmax=10 MHz, T=[-40 C, 105 C], Vcc=[1.8 V, 5.5 V]", - "ATmega164PV-10PU: PDIP40, Fmax=10 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]"; - prog_modes = PM_SPM | PM_ISP | PM_HVPP | PM_JTAG; - mcuid = 93; - archnum = 5; - n_interrupts = 31; - n_boot_sections = 4; - boot_section_size = 256; - stk500_devcode = 0x82; - avr910_devcode = 0x74; - chip_erase_delay = 55000; - pagel = 0xd7; - bs2 = 0xa0; - signature = 0x1e 0x94 0x0a; +part + desc = "ATtiny2313"; + id = "t2313"; + prog_modes = PM_SPM | PM_ISP | PM_HVPP | PM_debugWIRE; + mcuid = 42; + n_interrupts = 19; + stk500_devcode = 0x23; +# Use the ATtiny26 devcode: + avr910_devcode = 0x5e; + chip_erase_delay = 9000; + pagel = 0xd4; + bs2 = 0xd6; + signature = 0x1e 0x91 0x0a; reset = io; timeout = 200; stabdelay = 100; @@ -10382,61 +8107,70 @@ part parent ".classic" # m164p postdelay = 1; pollmethod = 1; pp_controlstack = - 0x0e, 0x1e, 0x0f, 0x1f, 0x2e, 0x3e, 0x2f, 0x3f, - 0x4e, 0x5e, 0x4f, 0x5f, 0x6e, 0x7e, 0x6f, 0x7f, - 0x66, 0x76, 0x67, 0x77, 0x6a, 0x7a, 0x6b, 0x7b, - 0xbe, 0xfd, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00; + 0x0e, 0x1e, 0x0e, 0x1e, 0x2e, 0x3e, 0x2e, 0x3e, + 0x4e, 0x5e, 0x4e, 0x5e, 0x6e, 0x7e, 0x6e, 0x7e, + 0x26, 0x36, 0x66, 0x76, 0x2a, 0x3a, 0x6a, 0x7a, + 0x2e, 0xfd, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00; + flash_instr = 0xb2, 0x0f, 0x1f; + eeprom_instr = + 0xbb, 0xfe, 0xbb, 0xee, 0xbb, 0xcc, 0xb2, 0x0d, + 0xba, 0x0f, 0xb2, 0x0f, 0xba, 0x0d, 0xbb, 0xbc, + 0x99, 0xe1, 0xbb, 0xac; hventerstabdelay = 100; latchcycles = 5; togglevtg = 1; poweroffdelay = 15; resetdelayms = 1; hvleavestabdelay = 15; - resetdelay = 15; chiperasepolltimeout = 10; programfusepolltimeout = 5; programlockpolltimeout = 5; - idr = 0x31; spmcr = 0x57; - eecr = 0x3f; - ocdrev = 3; + eecr = 0x3c; + ocdrev = 0; + chip_erase = "1010.1100--100x.xxxx--xxxx.xxxx--xxxx.xxxx"; + pgm_enable = "1010.1100--0101.0011--xxxx.xxxx--xxxx.xxxx"; memory "eeprom" - size = 512; + size = 128; page_size = 4; - min_write_delay = 9000; - max_write_delay = 9000; - mode = 0x41; - delay = 20; + min_write_delay = 4000; + max_write_delay = 4500; + readback = 0xff 0xff; + mode = 65; + delay = 6; blocksize = 4; readsize = 256; - read = "1010.0000--00xx.xaaa--aaaa.aaaa--oooo.oooo"; - write = "1100.0000--00xx.xaaa--aaaa.aaaa--iiii.iiii"; + read = "1010.0000--000x.xxxx--xaaa.aaaa--oooo.oooo"; + write = "1100.0000--000x.xxxx--xaaa.aaaa--iiii.iiii"; loadpage_lo = "1100.0001--0000.0000--0000.00aa--iiii.iiii"; - writepage = "1100.0010--00xx.xaaa--aaaa.aa00--xxxx.xxxx"; + writepage = "1100.0010--00xx.xxxx--xaaa.aa00--xxxx.xxxx"; ; memory "flash" paged = yes; - size = 0x4000; - page_size = 128; - num_pages = 128; + size = 2048; + page_size = 32; + num_pages = 64; min_write_delay = 4500; max_write_delay = 4500; - mode = 0x41; - delay = 10; - blocksize = 128; + readback = 0xff 0xff; + mode = 65; + delay = 6; + blocksize = 32; readsize = 256; - read_lo = "0010.0000--0aaa.aaaa--aaaa.aaaa--oooo.oooo"; - read_hi = "0010.1000--0aaa.aaaa--aaaa.aaaa--oooo.oooo"; - loadpage_lo = "0100.0000--00xx.xxxx--xxaa.aaaa--iiii.iiii"; - loadpage_hi = "0100.1000--00xx.xxxx--xxaa.aaaa--iiii.iiii"; - writepage = "0100.1100--0aaa.aaaa--aaxx.xxxx--xxxx.xxxx"; - ; - + read_lo = "0010.0000--0000.00aa--aaaa.aaaa--oooo.oooo"; + read_hi = "0010.1000--0000.00aa--aaaa.aaaa--oooo.oooo"; +# The information in the data sheet of April/2004 is wrong, this works: + loadpage_lo = "0100.0000--000x.xxxx--xxxx.aaaa--iiii.iiii"; +# The information in the data sheet of April/2004 is wrong, this works: + loadpage_hi = "0100.1000--000x.xxxx--xxxx.aaaa--iiii.iiii"; +# The information in the data sheet of April/2004 is wrong, this works: + writepage = "0100.1100--0000.00aa--aaaa.xxxx--xxxx.xxxx"; + ; + memory "lfuse" size = 1; - initval = 0x62; min_write_delay = 9000; max_write_delay = 9000; read = "0101.0000--0000.0000--xxxx.xxxx--oooo.oooo"; @@ -10445,7 +8179,6 @@ part parent ".classic" # m164p memory "hfuse" size = 1; - initval = 0x99; min_write_delay = 9000; max_write_delay = 9000; read = "0101.1000--0000.1000--xxxx.xxxx--oooo.oooo"; @@ -10454,431 +8187,395 @@ part parent ".classic" # m164p memory "efuse" size = 1; - initval = 0xff; - bitmask = 0x07; min_write_delay = 9000; max_write_delay = 9000; read = "0101.0000--0000.1000--xxxx.xxxx--oooo.oooo"; - write = "1010.1100--1010.0100--xxxx.xxxx--1111.1iii"; + write = "1010.1100--1010.0100--xxxx.xxxx--xxxx.xxxi"; ; memory "lock" - bitmask = 0x3f; + size = 1; min_write_delay = 9000; max_write_delay = 9000; + read = "0101.1000--0000.0000--xxxx.xxxx--oooo.oooo"; + write = "1010.1100--111x.xxxx--xxxx.xxxx--11ii.iiii"; ; - - memory "sram" - size = 1024; +# ATtiny2313 has Signature Bytes: 0x1E 0x91 0x0A. + memory "signature" + size = 3; + read = "0011.0000--000x.xxxx--xxxx.xxaa--oooo.oooo"; ; -; - -#------------------------------------------------------------ -# ATmega164A -#------------------------------------------------------------ +# The Tiny2313 has calibration data for both 4 MHz and 8 MHz. +# The information in the data sheet of April/2004 is wrong, this works: -part parent "m164p" # m164a - desc = "ATmega164A"; - id = "m164a"; - variants = - "ATmega164A: N/A, Fmax=20 MHz, T=[N/A, N/A], Vcc=[1.8 V, 5.5 V]", - "ATmega164A-AU: TQFP44, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega164A-AUR: TQFP44, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega164A-CU: VFBGA49, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega164A-CUR: VFBGA49, Fmax=20 MHz, T=[N/A, N/A], Vcc=[1.8 V, 5.5 V]", - "ATmega164A-MCH: QFN44, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega164A-MCHR: QFN44, Fmax=20 MHz, T=[N/A, N/A], Vcc=[1.8 V, 5.5 V]", - "ATmega164A-MU: QFN44, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega164A-MUR: QFN44, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega164A-PU: PDIP40, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 92; - signature = 0x1e 0x94 0x0f; + memory "calibration" + size = 2; + read = "0011.1000--000x.xxxx--0000.000a--oooo.oooo"; + ; ; #------------------------------------------------------------ -# ATmega164PA +# ATtiny2313A #------------------------------------------------------------ -part parent "m164p" # m164pa - desc = "ATmega164PA"; - id = "m164pa"; - variants = - "ATmega164PA: N/A, Fmax=20 MHz, T=[N/A, N/A], Vcc=[1.8 V, 5.5 V]", - "ATmega164PA-AN: TQFP44, Fmax=20 MHz, T=[-40 C, 105 C], Vcc=[1.8 V, 5.5 V]", - "ATmega164PA-ANR: TQFP44, Fmax=20 MHz, T=[-40 C, 105 C], Vcc=[1.8 V, 5.5 V]", - "ATmega164PA-AU: TQFP44, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega164PA-AUR: TQFP44, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega164PA-CU: VFBGA49, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega164PA-CUR: VFBGA49, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega164PA-MCH: QFN44, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega164PA-MCHR: QFN44, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega164PA-MN: TQFP44, Fmax=20 MHz, T=[-40 C, 105 C], Vcc=[1.8 V, 5.5 V]", - "ATmega164PA-MNR: VQFN44, Fmax=20 MHz, T=[-40 C, 105 C], Vcc=[1.8 V, 5.5 V]", - "ATmega164PA-MU: VQFN44, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega164PA-MUR: VQFN44, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega164PA-PN: PDIP40, Fmax=20 MHz, T=[-40 C, 105 C], Vcc=[1.8 V, 5.5 V]", - "ATmega164PA-PU: PDIP40, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 94; +part parent "t2313" + desc = "ATtiny2313A"; + id = "t2313a"; + mcuid = 43; + n_interrupts = 21; ; #------------------------------------------------------------ -# ATmega324P +# ATtiny4313 #------------------------------------------------------------ -part parent "m164p" # m324p - desc = "ATmega324P"; - id = "m324p"; - variants = - "ATmega324P: N/A, Fmax=20 MHz, T=[N/A, N/A], Vcc=[N/A, N/A]", - "ATmega324P-20AN: TQFP44, Fmax=20 MHz, T=[-40 C, 105 C], Vcc=[2.7 V, 5.5 V]", - "ATmega324P-20AQ: TQFP44, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega324P-20AQR: TQFP44, Fmax=20 MHz, T=[N/A, N/A], Vcc=[2.7 V, 5.5 V]", - "ATmega324P-20AU: TQFP44, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega324P-20AUR: TQFP44, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega324P-20MN: VQFN44, Fmax=20 MHz, T=[-40 C, 105 C], Vcc=[2.7 V, 5.5 V]", - "ATmega324P-20MQR: VQFN44, Fmax=20 MHz, T=[N/A, N/A], Vcc=[2.7 V, 5.5 V]", - "ATmega324P-20MU: VQFN44, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega324P-20MUR: VQFN44, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega324P-20PN: PDIP40, Fmax=20 MHz, T=[-40 C, 105 C], Vcc=[2.7 V, 5.5 V]", - "ATmega324P-20PU: PDIP40, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega324PV-10AN: TQFP44, Fmax=10 MHz, T=[-40 C, 105 C], Vcc=[1.8 V, 5.5 V]", - "ATmega324PV-10AU: TQFP44, Fmax=10 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega324PV-10AUR: TQFP44, Fmax=10 MHz, T=[N/A, N/A], Vcc=[1.8 V, 5.5 V]", - "ATmega324PV-10MN: VQFN44, Fmax=10 MHz, T=[-40 C, 105 C], Vcc=[1.8 V, 5.5 V]", - "ATmega324PV-10MU: VQFN44, Fmax=10 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega324PV-10PN: PDIP40, Fmax=10 MHz, T=[-40 C, 105 C], Vcc=[1.8 V, 5.5 V]", - "ATmega324PV-10PU: PDIP40, Fmax=10 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 111; - boot_section_size = 512; - signature = 0x1e 0x95 0x08; +part + desc = "ATtiny4313"; + id = "t4313"; + prog_modes = PM_SPM | PM_ISP | PM_HVPP | PM_debugWIRE; + mcuid = 44; + n_interrupts = 21; + stk500_devcode = 0x23; +# Use the ATtiny26 devcode: + avr910_devcode = 0x5e; + chip_erase_delay = 9000; + pagel = 0xd4; + bs2 = 0xd6; + signature = 0x1e 0x92 0x0d; + reset = io; + timeout = 200; + stabdelay = 100; + cmdexedelay = 25; + synchloops = 32; + pollindex = 3; + pollvalue = 0x53; + predelay = 1; + postdelay = 1; + pollmethod = 1; + pp_controlstack = + 0x0e, 0x1e, 0x0e, 0x1e, 0x2e, 0x3e, 0x2e, 0x3e, + 0x4e, 0x5e, 0x4e, 0x5e, 0x6e, 0x7e, 0x6e, 0x7e, + 0x26, 0x36, 0x66, 0x76, 0x2a, 0x3a, 0x6a, 0x7a, + 0x2e, 0xfd, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00; + flash_instr = 0xb2, 0x0f, 0x1f; + eeprom_instr = + 0xbb, 0xfe, 0xbb, 0xee, 0xbb, 0xcc, 0xb2, 0x0d, + 0xba, 0x0f, 0xb2, 0x0f, 0xba, 0x0d, 0xbb, 0xbc, + 0x99, 0xe1, 0xbb, 0xac; + hventerstabdelay = 100; + latchcycles = 5; + togglevtg = 1; + poweroffdelay = 15; + resetdelayms = 1; + hvleavestabdelay = 15; + chiperasepolltimeout = 10; + programfusepolltimeout = 5; + programlockpolltimeout = 5; + spmcr = 0x57; + eecr = 0x3c; + ocdrev = 0; + chip_erase = "1010.1100--100x.xxxx--xxxx.xxxx--xxxx.xxxx"; + pgm_enable = "1010.1100--0101.0011--xxxx.xxxx--xxxx.xxxx"; memory "eeprom" - size = 1024; - delay = 10; + size = 256; + page_size = 4; + min_write_delay = 4000; + max_write_delay = 4500; + readback = 0xff 0xff; + mode = 65; + delay = 6; + blocksize = 4; + readsize = 256; + read = "1010.0000--000x.xxxx--aaaa.aaaa--oooo.oooo"; + write = "1100.0000--000x.xxxx--aaaa.aaaa--iiii.iiii"; + loadpage_lo = "1100.0001--0000.0000--0000.00aa--iiii.iiii"; + writepage = "1100.0010--00xx.xxxx--aaaa.aa00--xxxx.xxxx"; ; memory "flash" - size = 0x8000; - num_pages = 256; + paged = yes; + size = 4096; + page_size = 64; + num_pages = 64; + min_write_delay = 4500; + max_write_delay = 4500; + readback = 0xff 0xff; + mode = 65; + delay = 6; + blocksize = 32; + readsize = 256; + read_lo = "0010.0000--0000.0aaa--aaaa.aaaa--oooo.oooo"; + read_hi = "0010.1000--0000.0aaa--aaaa.aaaa--oooo.oooo"; + loadpage_lo = "0100.0000--000x.xxxx--xxxa.aaaa--iiii.iiii"; + loadpage_hi = "0100.1000--000x.xxxx--xxxa.aaaa--iiii.iiii"; + writepage = "0100.1100--0000.0aaa--aaax.xxxx--xxxx.xxxx"; ; - memory "sram" - size = 2048; + memory "lfuse" + size = 1; + min_write_delay = 9000; + max_write_delay = 9000; + read = "0101.0000--0000.0000--xxxx.xxxx--oooo.oooo"; + write = "1010.1100--1010.0000--xxxx.xxxx--iiii.iiii"; ; -; - -#------------------------------------------------------------ -# ATmega324A -#------------------------------------------------------------ - -part parent "m324p" # m324a - desc = "ATmega324A"; - id = "m324a"; - variants = - "ATmega324A: N/A, Fmax=20 MHz, T=[N/A, N/A], Vcc=[1.8 V, 5.5 V]", - "ATmega324A-AU: TQFP44, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega324A-AUR: TQFP44, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega324A-CU: VFBGA49, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega324A-MCH: QFN44, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega324A-MU: VQFN44, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega324A-MUR: VQFN44, Fmax=20 MHz, T=[N/A, N/A], Vcc=[1.8 V, 5.5 V]", - "ATmega324A-PU: PDIP40, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 110; - signature = 0x1e 0x95 0x15; -; -#------------------------------------------------------------ -# ATmega324PA -#------------------------------------------------------------ - -part parent "m324p" # m324pa - desc = "ATmega324PA"; - id = "m324pa"; - variants = - "ATmega324PA: N/A, Fmax=20 MHz, T=[N/A, N/A], Vcc=[1.8 V, 5.5 V]", - "ATmega324PA-AN: TQFP44, Fmax=20 MHz, T=[-40 C, 105 C], Vcc=[1.8 V, 5.5 V]", - "ATmega324PA-AU: TQFP44, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega324PA-AUR: TQFP44, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega324PA-CU: VFBGA49, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega324PA-MCH: QFN44, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega324PA-MCHR: VQFN44, Fmax=20 MHz, T=[N/A, N/A], Vcc=[1.8 V, 5.5 V]", - "ATmega324PA-MN: VQFN44, Fmax=20 MHz, T=[-40 C, 105 C], Vcc=[1.8 V, 5.5 V]", - "ATmega324PA-MNR: VQFN44, Fmax=20 MHz, T=[-40 C, 105 C], Vcc=[1.8 V, 5.5 V]", - "ATmega324PA-MU: VQFN44, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega324PA-MUR: VQFN44, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega324PA-PN: PDIP40, Fmax=20 MHz, T=[-40 C, 105 C], Vcc=[1.8 V, 5.5 V]", - "ATmega324PA-PU: PDIP40, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 112; - signature = 0x1e 0x95 0x11; -; + memory "hfuse" + size = 1; + min_write_delay = 9000; + max_write_delay = 9000; + read = "0101.1000--0000.1000--xxxx.xxxx--oooo.oooo"; + write = "1010.1100--1010.1000--xxxx.xxxx--iiii.iiii"; + ; -#------------------------------------------------------------ -# ATmega324PB -#------------------------------------------------------------ + memory "efuse" + size = 1; + min_write_delay = 9000; + max_write_delay = 9000; + read = "0101.0000--0000.1000--xxxx.xxxx--oooo.oooo"; + write = "1010.1100--1010.0100--xxxx.xxxx--xxxx.xxxi"; + ; -part parent "m324p" # m324pb - desc = "ATmega324PB"; - id = "m324pb"; - variants = - "ATmega324PB-AN: TQFP44, Fmax=20 MHz, T=[-40 C, 105 C], Vcc=[1.8 V, 5.5 V]", - "ATmega324PB-ANR: TQFP44, Fmax=20 MHz, T=[-40 C, 105 C], Vcc=[1.8 V, 5.5 V]", - "ATmega324PB-AU: TQFP44, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega324PB-AUR: TQFP44, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega324PB-MN: QFN44, Fmax=20 MHz, T=[-40 C, 105 C], Vcc=[1.8 V, 5.5 V]", - "ATmega324PB-MNR: QFN44, Fmax=20 MHz, T=[-40 C, 105 C], Vcc=[1.8 V, 5.5 V]", - "ATmega324PB-MU: VQFN44, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega324PB-MUR: VQFN44, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 113; - n_interrupts = 51; - signature = 0x1e 0x95 0x17; + memory "lock" + size = 1; + min_write_delay = 9000; + max_write_delay = 9000; + read = "0101.1000--0000.0000--xxxx.xxxx--oooo.oooo"; + write = "1010.1100--111x.xxxx--xxxx.xxxx--11ii.iiii"; + ; +# ATtiny4313 has Signature Bytes: 0x1E 0x92 0x0D. + memory "signature" + size = 3; + read = "0011.0000--000x.xxxx--xxxx.xxaa--oooo.oooo"; + ; - memory "efuse" - initval = 0x07; - bitmask = 0x0f; - write = "1010.1100--1010.0100--xxxx.xxxx--1111.iiii"; + memory "calibration" + size = 2; + read = "0011.1000--000x.xxxx--0000.000a--oooo.oooo"; ; ; #------------------------------------------------------------ -# ATmega644 +# AT90PWM2 #------------------------------------------------------------ -part parent "m164p" # m644 - desc = "ATmega644"; - id = "m644"; - variants = - "ATmega644: N/A, Fmax=20 MHz, T=[N/A, N/A], Vcc=[N/A, N/A]", - "ATmega644-20AU: TQFP44, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega644-20AUR: TQFP44, Fmax=20 MHz, T=[N/A, N/A], Vcc=[2.7 V, 5.5 V]", - "ATmega644-20MU: MLF44, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega644-20MUR: VQFN44, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega644-20PU: PDIP40, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega644V-10AU: TQFP44, Fmax=10 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega644V-10AUR: TQFP44, Fmax=10 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega644V-10MU: MLF44, Fmax=10 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega644V-10MUR: VQFN44, Fmax=10 MHz, T=[N/A, N/A], Vcc=[1.8 V, 5.5 V]", - "ATmega644V-10PU: PDIP40, Fmax=10 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 127; - n_interrupts = 28; - boot_section_size = 1024; - signature = 0x1e 0x96 0x09; +part + desc = "AT90PWM2"; + id = "pwm2"; + prog_modes = PM_SPM | PM_ISP | PM_HVPP | PM_debugWIRE; + mcuid = 167; + n_interrupts = 32; + n_boot_sections = 4; + boot_section_size = 256; + stk500_devcode = 0x65; + chip_erase_delay = 9000; + pagel = 0xd8; + bs2 = 0xe2; +# avr910_devcode = ?; + signature = 0x1e 0x93 0x81; + reset = io; + timeout = 200; + stabdelay = 100; + cmdexedelay = 25; + synchloops = 32; + pollindex = 3; + pollvalue = 0x53; + predelay = 1; + postdelay = 1; + pollmethod = 1; pp_controlstack = 0x0e, 0x1e, 0x0f, 0x1f, 0x2e, 0x3e, 0x2f, 0x3f, 0x4e, 0x5e, 0x4f, 0x5f, 0x6e, 0x7e, 0x6f, 0x7f, 0x66, 0x76, 0x67, 0x77, 0x6a, 0x7a, 0x6b, 0x7b, - 0xbe, 0xfd, 0x00, 0x01, 0x00, 0x00, 0x00, 0x02; - latchcycles = 6; + 0xbe, 0xfd, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00; + flash_instr = 0xb6, 0x01, 0x11; + eeprom_instr = + 0xbd, 0xf2, 0xbd, 0xe1, 0xbb, 0xcf, 0xb4, 0x00, + 0xbe, 0x01, 0xb6, 0x01, 0xbc, 0x00, 0xbb, 0xbf, + 0x99, 0xf9, 0xbb, 0xaf; + hventerstabdelay = 100; + latchcycles = 5; + togglevtg = 1; + poweroffdelay = 15; + resetdelayms = 1; + hvleavestabdelay = 15; + chiperasepolltimeout = 10; + programfusepolltimeout = 5; + programlockpolltimeout = 5; + spmcr = 0x57; + eecr = 0x3f; + chip_erase = "1010.1100--100x.xxxx--xxxx.xxxx--xxxx.xxxx"; + pgm_enable = "1010.1100--0101.0011--xxxx.xxxx--xxxx.xxxx"; memory "eeprom" - size = 2048; - page_size = 8; - delay = 10; - blocksize = 8; - read = "1010.0000--00xx.aaaa--aaaa.aaaa--oooo.oooo"; - write = "1100.0000--00xx.aaaa--aaaa.aaaa--iiii.iiii"; - loadpage_lo = "1100.0001--0000.0000--0000.0aaa--iiii.iiii"; - writepage = "1100.0010--00xx.aaaa--aaaa.a000--xxxx.xxxx"; - ; - - memory "flash" - size = 0x10000; - page_size = 256; - num_pages = 256; - blocksize = 256; - read_lo = "0010.0000--aaaa.aaaa--aaaa.aaaa--oooo.oooo"; - read_hi = "0010.1000--aaaa.aaaa--aaaa.aaaa--oooo.oooo"; - loadpage_lo = "0100.0000--00xx.xxxx--xaaa.aaaa--iiii.iiii"; - loadpage_hi = "0100.1000--00xx.xxxx--xaaa.aaaa--iiii.iiii"; - writepage = "0100.1100--aaaa.aaaa--axxx.xxxx--xxxx.xxxx"; + size = 512; + page_size = 4; + min_write_delay = 4000; + max_write_delay = 4500; + readback = 0xff 0xff; + mode = 65; + delay = 6; + blocksize = 4; + readsize = 256; + read = "1010.0000--000x.xxxa--aaaa.aaaa--oooo.oooo"; + write = "1100.0000--000x.xxxa--aaaa.aaaa--iiii.iiii"; + loadpage_lo = "1100.0001--0000.0000--0000.00aa--iiii.iiii"; + writepage = "1100.0010--00xx.xxxa--aaaa.aa00--xxxx.xxxx"; ; - memory "sram" - size = 4096; + memory "flash" + paged = yes; + size = 8192; + page_size = 64; + num_pages = 128; + min_write_delay = 4500; + max_write_delay = 4500; + readback = 0xff 0xff; + mode = 65; + delay = 6; + blocksize = 64; + readsize = 256; + read_lo = "0010.0000--0000.aaaa--aaaa.aaaa--oooo.oooo"; + read_hi = "0010.1000--0000.aaaa--aaaa.aaaa--oooo.oooo"; + loadpage_lo = "0100.0000--000x.xxxx--xxxa.aaaa--iiii.iiii"; + loadpage_hi = "0100.1000--000x.xxxx--xxxa.aaaa--iiii.iiii"; + writepage = "0100.1100--0000.aaaa--aaax.xxxx--xxxx.xxxx"; + ; + + memory "lfuse" + size = 1; + min_write_delay = 9000; + max_write_delay = 9000; + read = "0101.0000--0000.0000--xxxx.xxxx--oooo.oooo"; + write = "1010.1100--1010.0000--xxxx.xxxx--iiii.iiii"; + ; + + memory "hfuse" + size = 1; + min_write_delay = 9000; + max_write_delay = 9000; + read = "0101.1000--0000.1000--xxxx.xxxx--oooo.oooo"; + write = "1010.1100--1010.1000--xxxx.xxxx--iiii.iiii"; + ; + + memory "efuse" + size = 1; + min_write_delay = 9000; + max_write_delay = 9000; + read = "0101.0000--0000.1000--xxxx.xxxx--oooo.oooo"; + write = "1010.1100--1010.0100--xxxx.xxxx--iiii.iiii"; + ; + + memory "lock" + size = 1; + min_write_delay = 9000; + max_write_delay = 9000; + read = "0101.1000--0000.0000--xxxx.xxxx--oooo.oooo"; + write = "1010.1100--111x.xxxx--xxxx.xxxx--11ii.iiii"; + ; +# AT90PWM2 has Signature Bytes: 0x1E 0x93 0x81. + memory "signature" + size = 3; + read = "0011.0000--00xx.xxxx--xxxx.xxaa--oooo.oooo"; + ; + + memory "calibration" + size = 1; + read = "0011.1000--000x.xxxx--0000.0000--oooo.oooo"; ; ; #------------------------------------------------------------ -# ATmega644P +# AT90PWM3 #------------------------------------------------------------ -part parent "m644" # m644p - desc = "ATmega644P"; - id = "m644p"; - variants = - "ATmega644P: N/A, Fmax=20 MHz, T=[N/A, N/A], Vcc=[N/A, N/A]", - "ATmega644P-20AN: TQFP44, Fmax=20 MHz, T=[-40 C, 105 C], Vcc=[2.7 V, 5.5 V]", - "ATmega644P-20AQ: TQFP44, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega644P-20AQR: TQFP44, Fmax=20 MHz, T=[N/A, N/A], Vcc=[2.7 V, 5.5 V]", - "ATmega644P-20AU: TQFP44, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega644P-20AUR: TQFP44, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega644P-20MN: VQFN44, Fmax=20 MHz, T=[-40 C, 105 C], Vcc=[2.7 V, 5.5 V]", - "ATmega644P-20MQ: VQFN44, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega644P-20MQR: VQFN44, Fmax=20 MHz, T=[N/A, N/A], Vcc=[2.7 V, 5.5 V]", - "ATmega644P-20MU: VQFN44, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega644P-20MUR: VQFN44, Fmax=20 MHz, T=[N/A, N/A], Vcc=[2.7 V, 5.5 V]", - "ATmega644P-20PN: PDIP40, Fmax=20 MHz, T=[-40 C, 105 C], Vcc=[2.7 V, 5.5 V]", - "ATmega644P-20PQ: PDIP40, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega644P-20PU: PDIP40, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega644PV-10AN: TQFP44, Fmax=10 MHz, T=[-40 C, 105 C], Vcc=[1.8 V, 5.5 V]", - "ATmega644PV-10AQ: TQFP44, Fmax=10 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega644PV-10AQR: TQFP44, Fmax=10 MHz, T=[N/A, N/A], Vcc=[1.8 V, 5.5 V]", - "ATmega644PV-10AU: TQFP44, Fmax=10 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega644PV-10AUR: TQFP44, Fmax=10 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega644PV-10MN: VQFN44, Fmax=10 MHz, T=[-40 C, 105 C], Vcc=[1.8 V, 5.5 V]", - "ATmega644PV-10MQ: VQFN44, Fmax=10 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega644PV-10MQR: VQFN44, Fmax=10 MHz, T=[N/A, N/A], Vcc=[1.8 V, 5.5 V]", - "ATmega644PV-10MU: VQFN44, Fmax=10 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega644PV-10MUR: VQFN44, Fmax=10 MHz, T=[N/A, N/A], Vcc=[1.8 V, 5.5 V]", - "ATmega644PV-10PN: PDIP40, Fmax=10 MHz, T=[-40 C, 105 C], Vcc=[1.8 V, 5.5 V]", - "ATmega644PV-10PQ: PDIP40, Fmax=10 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega644PV-10PU: PDIP40, Fmax=10 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 129; - n_interrupts = 31; - signature = 0x1e 0x96 0x0a; +# Completely identical to AT90PWM2 (including the signature!) + +part parent "pwm2" + desc = "AT90PWM3"; + id = "pwm3"; + mcuid = 169; ; #------------------------------------------------------------ -# ATmega644A +# AT90PWM2B #------------------------------------------------------------ +# Same as AT90PWM2 but different signature. -part parent "m644" # m644a - desc = "ATmega644A"; - id = "m644a"; - variants = - "ATmega644A: N/A, Fmax=20 MHz, T=[N/A, N/A], Vcc=[1.8 V, 5.5 V]", - "ATmega644A-AU: TQFP44, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega644A-AUR: TQFP44, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega644A-MU: VQFN44, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega644A-MUR: VQFN44, Fmax=20 MHz, T=[N/A, N/A], Vcc=[1.8 V, 5.5 V]", - "ATmega644A-PU: PDIP40, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 128; - n_interrupts = 31; +part parent "pwm2" + desc = "AT90PWM2B"; + id = "pwm2b"; + mcuid = 168; + signature = 0x1e 0x93 0x83; + ocdrev = 1; ; #------------------------------------------------------------ -# ATmega644PA +# AT90PWM3B #------------------------------------------------------------ -part parent "m644" # m644pa - desc = "ATmega644PA"; - id = "m644pa"; - variants = - "ATmega644PA-AN: TQFP44, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega644PA-ANR: TQFP44, Fmax=20 MHz, T=[N/A, N/A], Vcc=[1.8 V, 5.5 V]", - "ATmega644PA-AU: TQFP44, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega644PA-AUR: TQFP44, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega644PA-MN: VQFN44, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega644PA-MNR: VQFN44, Fmax=20 MHz, T=[N/A, N/A], Vcc=[1.8 V, 5.5 V]", - "ATmega644PA-MU: QFN44, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega644PA-MUR: VQFN44, Fmax=20 MHz, T=[N/A, N/A], Vcc=[1.8 V, 5.5 V]", - "ATmega644PA-PN: PDIP40, Fmax=20 MHz, T=[-40 C, 105 C], Vcc=[1.8 V, 5.5 V]", - "ATmega644PA-PU: PDIP40, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 130; - n_interrupts = 31; - signature = 0x1e 0x96 0x0a; +# Completely identical to AT90PWM2B (including the signature!) + +part parent "pwm2b" + desc = "AT90PWM3B"; + id = "pwm3b"; + mcuid = 170; ; #------------------------------------------------------------ -# ATmega1284 +# AT90PWM316 #------------------------------------------------------------ -part parent "m164p" # m1284 - desc = "ATmega1284"; - id = "m1284"; - variants = - "ATmega1284-AU: TQFP44, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega1284-AUR: TQFP44, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega1284-MU: MLF44, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega1284-MUR: MLF44, Fmax=20 MHz, T=[N/A, N/A], Vcc=[1.8 V, 5.5 V]", - "ATmega1284-PU: PDIP40, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 140; - archnum = 51; - n_interrupts = 35; - boot_section_size = 1024; - signature = 0x1e 0x97 0x06; - pp_controlstack = - 0x0e, 0x1e, 0x0f, 0x1f, 0x2e, 0x3e, 0x2f, 0x3f, - 0x4e, 0x5e, 0x4f, 0x5f, 0x6e, 0x7e, 0x6f, 0x7f, - 0x66, 0x76, 0x67, 0x77, 0x6a, 0x7a, 0x6b, 0x7b, - 0xbe, 0xfd, 0x00, 0x01, 0x00, 0x00, 0x00, 0x02; - latchcycles = 6; - rampz = 0x3b; +# Similar to AT90PWM3B, but with 16 kiB flash, 512 B EEPROM, and 1024 B SRAM. - memory "eeprom" - size = 4096; - page_size = 8; - delay = 10; - blocksize = 8; - readsize = 128; - read = "1010.0000--00xx.aaaa--aaaa.aaaa--oooo.oooo"; - write = "1100.0000--00xx.aaaa--aaaa.aaaa--iiii.iiii"; - loadpage_lo = "1100.0001--0000.0000--0000.0aaa--iiii.iiii"; - writepage = "1100.0010--00xx.aaaa--aaaa.a000--xxxx.xxxx"; - ; +part parent "pwm3b" + desc = "AT90PWM316"; + id = "pwm316"; + mcuid = 180; + boot_section_size = 512; + signature = 0x1e 0x94 0x83; memory "flash" - size = 0x20000; - page_size = 256; - num_pages = 512; - read_lo = "0010.0000--aaaa.aaaa--aaaa.aaaa--oooo.oooo"; - read_hi = "0010.1000--aaaa.aaaa--aaaa.aaaa--oooo.oooo"; - loadpage_lo = "0100.0000--00xx.xxxx--xaaa.aaaa--iiii.iiii"; - loadpage_hi = "0100.1000--00xx.xxxx--xaaa.aaaa--iiii.iiii"; - writepage = "0100.1100--aaaa.aaaa--axxx.xxxx--xxxx.xxxx"; - ; - - memory "sram" size = 0x4000; + page_size = 128; + mode = 33; + blocksize = 128; + read_lo = "0010.0000--00aa.aaaa--aaaa.aaaa--oooo.oooo"; + read_hi = "0010.1000--00aa.aaaa--aaaa.aaaa--oooo.oooo"; + loadpage_lo = "0100.0000--00xx.xxxx--xxaa.aaaa--iiii.iiii"; + loadpage_hi = "0100.1000--00xx.xxxx--xxaa.aaaa--iiii.iiii"; + writepage = "0100.1100--00aa.aaaa--aaxx.xxxx--xxxx.xxxx"; ; ; #------------------------------------------------------------ -# ATmega1284P +# AT90PWM216 #------------------------------------------------------------ +# Completely identical to AT90PWM316 (including the signature!) -part parent "m1284" # m1284p - desc = "ATmega1284P"; - id = "m1284p"; - variants = - "ATmega1284P-AN: TQFP44, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega1284P-AU: TQFP44, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega1284P-AUR: TQFP44, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega1284P-MN: QFN44, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega1284P-MU: VQFN44, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega1284P-MUR: VQFN44, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega1284P-PN: PDIP40, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega1284P-PU: PDIP40, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 141; - signature = 0x1e 0x97 0x05; +part parent "pwm316" + desc = "AT90PWM216"; + id = "pwm216"; + mcuid = 179; ; #------------------------------------------------------------ -# ATmega128RFA1 +# ATtiny25 #------------------------------------------------------------ -# Identical to ATmega2561 but half the ROM -part parent ".classic" # m128rfa1 - desc = "ATmega128RFA1"; - id = "m128rfa1"; - variants = - "ATmega128RFA1-ZF: VFQFN64, Fmax=16 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 3.6 V]", - "ATmega128RFA1-ZFR: VFQFN64, Fmax=16 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 3.6 V]", - "ATmega128RFA1-ZU: VFQFN64, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 3.6 V]", - "ATmega128RFA1-ZU00: VFQFN64, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 3.6 V]", - "ATmega128RFA1-ZUR: VFQFN64, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 3.6 V]", - "ATmega128RFA1-ZUR-SL514: VFQFN64, Fmax=N/A, T=[-40 C, 85 C], Vcc=[1.8 V, 3.6 V]", - "ATmega128RFA1-ZUR00: VFQFN64, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 3.6 V]"; - prog_modes = PM_SPM | PM_ISP | PM_HVPP | PM_JTAG; - mcuid = 87; - archnum = 51; - n_interrupts = 72; - n_boot_sections = 4; - boot_section_size = 1024; - stk500_devcode = 0xb2; - chip_erase_delay = 18500; - pagel = 0xd7; - bs2 = 0xe2; - signature = 0x1e 0xa7 0x01; +part + desc = "ATtiny25"; + id = "t25"; + prog_modes = PM_SPM | PM_ISP | PM_HVSP | PM_debugWIRE; + mcuid = 16; + n_interrupts = 15; +# no STK500 devcode in XML file, use the ATtiny45 one + stk500_devcode = 0x14; +# avr910_devcode = ?; +# Try the AT90S2313 devcode: + avr910_devcode = 0x20; + chip_erase_delay = 4500; + signature = 0x1e 0x91 0x08; reset = io; timeout = 200; stabdelay = 100; @@ -10889,128 +8586,127 @@ part parent ".classic" # m128rfa1 predelay = 1; postdelay = 1; pollmethod = 1; - pp_controlstack = - 0x0e, 0x1e, 0x0f, 0x1f, 0x2e, 0x3e, 0x2f, 0x3f, - 0x4e, 0x5e, 0x4f, 0x5f, 0x6e, 0x7e, 0x6f, 0x7f, - 0x66, 0x76, 0x67, 0x77, 0x6a, 0x7a, 0x6b, 0x7b, - 0xbe, 0xfd, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00; + hvsp_controlstack = + 0x4c, 0x0c, 0x1c, 0x2c, 0x3c, 0x64, 0x74, 0x66, + 0x68, 0x78, 0x68, 0x68, 0x7a, 0x6a, 0x68, 0x78, + 0x78, 0x7d, 0x6d, 0x0c, 0x80, 0x40, 0x20, 0x10, + 0x11, 0x08, 0x04, 0x02, 0x03, 0x08, 0x04, 0x00; + flash_instr = 0xb4, 0x02, 0x12; + eeprom_instr = + 0xbb, 0xff, 0xbb, 0xee, 0xbb, 0xcc, 0xb2, 0x0d, + 0xbc, 0x02, 0xb4, 0x02, 0xba, 0x0d, 0xbb, 0xbc, + 0x99, 0xe1, 0xbb, 0xac; hventerstabdelay = 100; - latchcycles = 5; + latchcycles = 1; togglevtg = 1; - poweroffdelay = 15; + poweroffdelay = 25; resetdelayms = 1; - hvleavestabdelay = 15; - resetdelay = 15; - chiperasepolltimeout = 10; - programfusepolltimeout = 5; - programlockpolltimeout = 5; - idr = 0x31; - rampz = 0x3b; + hvleavestabdelay = 100; + resetdelay = 25; + chiperasepolltimeout = 40; + programfusepolltimeout = 25; + programlockpolltimeout = 25; + synchcycles = 6; spmcr = 0x57; - eecr = 0x3f; - eind = 0x5c; - ocdrev = 3; + eecr = 0x3c; + ocdrev = 1; + chip_erase = "1010.1100--100x.xxxx--xxxx.xxxx--xxxx.xxxx"; + pgm_enable = "1010.1100--0101.0011--xxxx.xxxx--xxxx.xxxx"; memory "eeprom" - size = 4096; - page_size = 8; - min_write_delay = 13000; - max_write_delay = 13000; - mode = 0x41; - delay = 50; - blocksize = 8; + size = 128; + page_size = 4; + min_write_delay = 4000; + max_write_delay = 4500; + readback = 0xff 0xff; + mode = 65; + delay = 6; + blocksize = 4; readsize = 256; - read = "1010.0000--xxxx.aaaa--aaaa.aaaa--oooo.oooo"; - write = "1100.0000--xxxx.aaaa--aaaa.aaaa--iiii.iiii"; - loadpage_lo = "1100.0001--0000.0000--0000.0aaa--iiii.iiii"; - writepage = "1100.0010--00xx.aaaa--aaaa.a000--xxxx.xxxx"; + read = "1010.0000--000x.xxxx--xaaa.aaaa--oooo.oooo"; + write = "1100.0000--000x.xxxx--xaaa.aaaa--iiii.iiii"; + loadpage_lo = "1100.0001--0000.0000--0000.00aa--iiii.iiii"; + writepage = "1100.0010--00xx.xxxx--xaaa.aa00--xxxx.xxxx"; ; memory "flash" paged = yes; - size = 0x20000; - page_size = 256; - num_pages = 512; - min_write_delay = 4500; + size = 2048; + page_size = 32; + num_pages = 64; + min_write_delay = 4500; max_write_delay = 4500; - mode = 0x41; - delay = 50; - blocksize = 256; + readback = 0xff 0xff; + mode = 65; + delay = 6; + blocksize = 32; readsize = 256; - read_lo = "0010.0000--aaaa.aaaa--aaaa.aaaa--oooo.oooo"; - read_hi = "0010.1000--aaaa.aaaa--aaaa.aaaa--oooo.oooo"; - loadpage_lo = "0100.0000--xxxx.xxxx--xaaa.aaaa--iiii.iiii"; - loadpage_hi = "0100.1000--xxxx.xxxx--xaaa.aaaa--iiii.iiii"; - writepage = "0100.1100--aaaa.aaaa--axxx.xxxx--xxxx.xxxx"; + read_lo = "0010.0000--0000.00aa--aaaa.aaaa--oooo.oooo"; + read_hi = "0010.1000--0000.00aa--aaaa.aaaa--oooo.oooo"; + loadpage_lo = "0100.0000--000x.xxxx--xxxx.aaaa--iiii.iiii"; + loadpage_hi = "0100.1000--000x.xxxx--xxxx.aaaa--iiii.iiii"; + writepage = "0100.1100--0000.00aa--aaaa.xxxx--xxxx.xxxx"; ; memory "lfuse" size = 1; - initval = 0x62; - min_write_delay = 4500; - max_write_delay = 4500; + min_write_delay = 9000; + max_write_delay = 9000; read = "0101.0000--0000.0000--xxxx.xxxx--oooo.oooo"; write = "1010.1100--1010.0000--xxxx.xxxx--iiii.iiii"; ; memory "hfuse" size = 1; - initval = 0x99; - min_write_delay = 4500; - max_write_delay = 4500; + min_write_delay = 9000; + max_write_delay = 9000; read = "0101.1000--0000.1000--xxxx.xxxx--oooo.oooo"; write = "1010.1100--1010.1000--xxxx.xxxx--iiii.iiii"; ; memory "efuse" size = 1; - initval = 0xff; - bitmask = 0x07; - min_write_delay = 4500; - max_write_delay = 4500; + min_write_delay = 9000; + max_write_delay = 9000; read = "0101.0000--0000.1000--xxxx.xxxx--oooo.oooo"; - write = "1010.1100--1010.0100--xxxx.xxxx--xxxx.xiii"; + write = "1010.1100--1010.0100--xxxx.xxxx--xxxx.xxxi"; ; memory "lock" - bitmask = 0x3f; - min_write_delay = 4500; - max_write_delay = 4500; + size = 1; + min_write_delay = 9000; + max_write_delay = 9000; + read = "0101.1000--0000.0000--0000.0000--oooo.oooo"; + write = "1010.1100--111x.xxxx--xxxx.xxxx--11ii.iiii"; ; - - memory "io" - size = 480; +# ATtiny25 has Signature Bytes: 0x1E 0x91 0x08. + memory "signature" + size = 3; + read = "0011.0000--000x.xxxx--xxxx.xxaa--oooo.oooo"; ; - memory "sram" - size = 0x4000; - offset = 0x200; + memory "calibration" + size = 1; + read = "0011.1000--000x.xxxx--0000.000a--oooo.oooo"; ; ; #------------------------------------------------------------ -# ATmega644RFR2 +# ATtiny45 #------------------------------------------------------------ -part parent ".classic" # m644rfr2 - desc = "ATmega644RFR2"; - id = "m644rfr2"; - variants = - "ATmega644RFR2-ZF: VFQFN48, Fmax=16 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 3.6 V]", - "ATmega644RFR2-ZFR: VFQFN48, Fmax=16 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 3.6 V]", - "ATmega644RFR2-ZU: VFQFN48, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 3.6 V]", - "ATmega644RFR2-ZUR: VFQFN48, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 3.6 V]"; - prog_modes = PM_SPM | PM_ISP | PM_HVPP | PM_JTAG; - mcuid = 131; - archnum = 5; - n_interrupts = 77; - n_boot_sections = 4; - boot_section_size = 1024; - stk500_devcode = 0xb2; - chip_erase_delay = 18500; - pagel = 0xd7; - bs2 = 0xe2; - signature = 0x1e 0xa6 0x03; +part + desc = "ATtiny45"; + id = "t45"; + prog_modes = PM_SPM | PM_ISP | PM_HVSP | PM_debugWIRE; + mcuid = 22; + n_interrupts = 15; + stk500_devcode = 0x14; +# avr910_devcode = ?; +# Try the AT90S2313 devcode: + avr910_devcode = 0x20; + chip_erase_delay = 4500; + signature = 0x1e 0x92 0x06; reset = io; timeout = 200; stabdelay = 100; @@ -11021,224 +8717,262 @@ part parent ".classic" # m644rfr2 predelay = 1; postdelay = 1; pollmethod = 1; - pp_controlstack = - 0x0e, 0x1e, 0x0f, 0x1f, 0x2e, 0x3e, 0x2f, 0x3f, - 0x4e, 0x5e, 0x4f, 0x5f, 0x6e, 0x7e, 0x6f, 0x7f, - 0x66, 0x76, 0x67, 0x77, 0x6a, 0x7a, 0x6b, 0x7b, - 0xbe, 0xfd, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00; + hvsp_controlstack = + 0x4c, 0x0c, 0x1c, 0x2c, 0x3c, 0x64, 0x74, 0x66, + 0x68, 0x78, 0x68, 0x68, 0x7a, 0x6a, 0x68, 0x78, + 0x78, 0x7d, 0x6d, 0x0c, 0x80, 0x40, 0x20, 0x10, + 0x11, 0x08, 0x04, 0x02, 0x03, 0x08, 0x04, 0x00; + flash_instr = 0xb4, 0x02, 0x12; + eeprom_instr = + 0xbb, 0xff, 0xbb, 0xee, 0xbb, 0xcc, 0xb2, 0x0d, + 0xbc, 0x02, 0xb4, 0x02, 0xba, 0x0d, 0xbb, 0xbc, + 0x99, 0xe1, 0xbb, 0xac; hventerstabdelay = 100; - latchcycles = 5; + latchcycles = 1; togglevtg = 1; - poweroffdelay = 15; + poweroffdelay = 25; resetdelayms = 1; - hvleavestabdelay = 15; - resetdelay = 15; - chiperasepolltimeout = 20; - programfusepolltimeout = 5; - programlockpolltimeout = 5; - idr = 0x31; - rampz = 0x3b; + hvleavestabdelay = 100; + resetdelay = 25; + chiperasepolltimeout = 40; + programfusepolltimeout = 25; + programlockpolltimeout = 25; + synchcycles = 6; spmcr = 0x57; - eecr = 0x3f; - eind = 0x5c; - ocdrev = 3; + eecr = 0x3c; + ocdrev = 1; + chip_erase = "1010.1100--100x.xxxx--xxxx.xxxx--xxxx.xxxx"; + pgm_enable = "1010.1100--0101.0011--xxxx.xxxx--xxxx.xxxx"; memory "eeprom" - size = 2048; - page_size = 8; - min_write_delay = 13000; - max_write_delay = 13000; - mode = 0x41; - delay = 50; - blocksize = 8; + size = 256; + page_size = 4; + min_write_delay = 4000; + max_write_delay = 4500; + readback = 0xff 0xff; + mode = 65; + delay = 6; + blocksize = 4; readsize = 256; - read = "1010.0000--xxxx.xaaa--aaaa.aaaa--oooo.oooo"; - write = "1100.0000--xxxx.xaaa--aaaa.aaaa--iiii.iiii"; - loadpage_lo = "1100.0001--0000.0000--0000.0aaa--iiii.iiii"; - writepage = "1100.0010--00xx.xaaa--aaaa.a000--xxxx.xxxx"; + read = "1010.0000--000x.xxxx--aaaa.aaaa--oooo.oooo"; + write = "1100.0000--000x.xxxx--aaaa.aaaa--iiii.iiii"; + loadpage_lo = "1100.0001--0000.0000--0000.00aa--iiii.iiii"; + writepage = "1100.0010--00xx.xxxx--aaaa.aa00--xxxx.xxxx"; ; memory "flash" paged = yes; - size = 0x10000; - page_size = 256; - num_pages = 256; + size = 4096; + page_size = 64; + num_pages = 64; min_write_delay = 4500; max_write_delay = 4500; - mode = 0x41; - delay = 50; - blocksize = 256; + readback = 0xff 0xff; + mode = 65; + delay = 6; + blocksize = 32; readsize = 256; - read_lo = "0010.0000--0aaa.aaaa--aaaa.aaaa--oooo.oooo"; - read_hi = "0010.1000--0aaa.aaaa--aaaa.aaaa--oooo.oooo"; - loadpage_lo = "0100.0000--xxxx.xxxx--xaaa.aaaa--iiii.iiii"; - loadpage_hi = "0100.1000--xxxx.xxxx--xaaa.aaaa--iiii.iiii"; - writepage = "0100.1100--0aaa.aaaa--axxx.xxxx--xxxx.xxxx"; + read_lo = "0010.0000--0000.0aaa--aaaa.aaaa--oooo.oooo"; + read_hi = "0010.1000--0000.0aaa--aaaa.aaaa--oooo.oooo"; + loadpage_lo = "0100.0000--000x.xxxx--xxxa.aaaa--iiii.iiii"; + loadpage_hi = "0100.1000--000x.xxxx--xxxa.aaaa--iiii.iiii"; + writepage = "0100.1100--0000.0aaa--aaax.xxxx--xxxx.xxxx"; ; memory "lfuse" size = 1; - initval = 0x62; - min_write_delay = 4500; - max_write_delay = 4500; + min_write_delay = 9000; + max_write_delay = 9000; read = "0101.0000--0000.0000--xxxx.xxxx--oooo.oooo"; write = "1010.1100--1010.0000--xxxx.xxxx--iiii.iiii"; ; memory "hfuse" size = 1; - initval = 0x99; - min_write_delay = 4500; - max_write_delay = 4500; + min_write_delay = 9000; + max_write_delay = 9000; read = "0101.1000--0000.1000--xxxx.xxxx--oooo.oooo"; write = "1010.1100--1010.1000--xxxx.xxxx--iiii.iiii"; ; memory "efuse" size = 1; - initval = 0xfe; - bitmask = 0x07; - min_write_delay = 4500; - max_write_delay = 4500; + min_write_delay = 9000; + max_write_delay = 9000; read = "0101.0000--0000.1000--xxxx.xxxx--oooo.oooo"; - write = "1010.1100--1010.0100--xxxx.xxxx--xxxx.xiii"; + write = "1010.1100--1010.0100--xxxx.xxxx--xxxx.xxxi"; ; memory "lock" - bitmask = 0x3f; - min_write_delay = 4500; - max_write_delay = 4500; - ; - - ##### - # Three separate flash pages - # - Offset 0x100 in signature row - # - Only programmable with JTAG or HVPP - # - Readable from an application - # - Cannot be read using ISP - # - Not erased by chip erase - # - memory "usersig" - paged = yes; - size = 768; - page_size = 256; - num_pages = 3; - offset = 0x100; - min_write_delay = 4500; - max_write_delay = 4500; - mode = 0x41; - delay = 50; - blocksize = 256; - readsize = 256; + size = 1; + min_write_delay = 9000; + max_write_delay = 9000; + read = "0101.1000--0000.0000--0000.0000--oooo.oooo"; + write = "1010.1100--111x.xxxx--xxxx.xxxx--11ii.iiii"; ; - - memory "io" - size = 480; +# ATtiny45 has Signature Bytes: 0x1E 0x92 0x08. (Data sheet 2586C-AVR-06/05 (doc2586.pdf) indicates otherwise!) + memory "signature" + size = 3; + read = "0011.0000--000x.xxxx--xxxx.xxaa--oooo.oooo"; ; - memory "sram" - size = 8192; - offset = 0x200; + memory "calibration" + size = 1; + read = "0011.1000--000x.xxxx--0000.000a--oooo.oooo"; ; ; #------------------------------------------------------------ -# ATmega1284RFR2 +# ATtiny85 #------------------------------------------------------------ -part parent "m644rfr2" # m1284rfr2 - desc = "ATmega1284RFR2"; - id = "m1284rfr2"; - variants = - "ATmega1284RFR2-ZF: VFQFN48, Fmax=16 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 3.6 V]", - "ATmega1284RFR2-ZFR: VFQFN48, Fmax=16 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 3.6 V]", - "ATmega1284RFR2-ZU: VFQFN48, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 3.6 V]", - "ATmega1284RFR2-ZUR: VFQFN48, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 3.6 V]"; - mcuid = 142; - archnum = 51; - signature = 0x1e 0xa7 0x03; +part + desc = "ATtiny85"; + id = "t85"; + prog_modes = PM_SPM | PM_ISP | PM_HVSP | PM_debugWIRE; + mcuid = 26; + n_interrupts = 15; +# no STK500 devcode in XML file, use the ATtiny45 one + stk500_devcode = 0x14; +# avr910_devcode = ?; +# Try the AT90S2313 devcode: + avr910_devcode = 0x20; + chip_erase_delay = 4500; + signature = 0x1e 0x93 0x0b; + reset = io; + timeout = 200; + stabdelay = 100; + cmdexedelay = 25; + synchloops = 32; + pollindex = 3; + pollvalue = 0x53; + predelay = 1; + postdelay = 1; + pollmethod = 1; + hvsp_controlstack = + 0x4c, 0x0c, 0x1c, 0x2c, 0x3c, 0x64, 0x74, 0x66, + 0x68, 0x78, 0x68, 0x68, 0x7a, 0x6a, 0x68, 0x78, + 0x78, 0x7d, 0x6d, 0x0c, 0x80, 0x40, 0x20, 0x10, + 0x11, 0x08, 0x04, 0x02, 0x03, 0x08, 0x04, 0x00; + flash_instr = 0xb4, 0x02, 0x12; + eeprom_instr = + 0xbb, 0xff, 0xbb, 0xee, 0xbb, 0xcc, 0xb2, 0x0d, + 0xbc, 0x02, 0xb4, 0x02, 0xba, 0x0d, 0xbb, 0xbc, + 0x99, 0xe1, 0xbb, 0xac; + hventerstabdelay = 100; + latchcycles = 1; + togglevtg = 1; + poweroffdelay = 25; + resetdelayms = 1; + hvleavestabdelay = 100; + resetdelay = 25; + chiperasepolltimeout = 40; + programfusepolltimeout = 25; + programlockpolltimeout = 25; + synchcycles = 6; + spmcr = 0x57; + eecr = 0x3c; + ocdrev = 1; + chip_erase = "1010.1100--100x.xxxx--xxxx.xxxx--xxxx.xxxx"; + pgm_enable = "1010.1100--0101.0011--xxxx.xxxx--xxxx.xxxx"; memory "eeprom" - size = 4096; - read = "1010.0000--xxxa.aaaa--aaaa.aaaa--oooo.oooo"; - write = "1100.0000--xxxa.aaaa--aaaa.aaaa--iiii.iiii"; - writepage = "1100.0010--00xa.aaaa--aaaa.a000--xxxx.xxxx"; + size = 512; + page_size = 4; + min_write_delay = 4000; + max_write_delay = 4500; + readback = 0xff 0xff; + mode = 65; + delay = 6; + blocksize = 4; + readsize = 256; + read = "1010.0000--000x.xxxa--aaaa.aaaa--oooo.oooo"; + write = "1100.0000--000x.xxxa--aaaa.aaaa--iiii.iiii"; + loadpage_lo = "1100.0001--0000.0000--0000.00aa--iiii.iiii"; + writepage = "1100.0010--00xx.xxxa--aaaa.aa00--xxxx.xxxx"; ; memory "flash" - size = 0x20000; - num_pages = 512; - read_lo = "0010.0000--aaaa.aaaa--aaaa.aaaa--oooo.oooo"; - read_hi = "0010.1000--aaaa.aaaa--aaaa.aaaa--oooo.oooo"; - writepage = "0100.1100--aaaa.aaaa--axxx.xxxx--xxxx.xxxx"; + paged = yes; + size = 8192; + page_size = 64; + num_pages = 128; + min_write_delay = 4500; + max_write_delay = 4500; + readback = 0xff 0xff; + mode = 65; + delay = 6; + blocksize = 32; + readsize = 256; + read_lo = "0010.0000--0000.aaaa--aaaa.aaaa--oooo.oooo"; + read_hi = "0010.1000--0000.aaaa--aaaa.aaaa--oooo.oooo"; + loadpage_lo = "0100.0000--000x.xxxx--xxxa.aaaa--iiii.iiii"; + loadpage_hi = "0100.1000--000x.xxxx--xxxa.aaaa--iiii.iiii"; + writepage = "0100.1100--0000.aaaa--aaax.xxxx--xxxx.xxxx"; ; - memory "sram" - size = 0x4000; + memory "lfuse" + size = 1; + min_write_delay = 9000; + max_write_delay = 9000; + read = "0101.0000--0000.0000--xxxx.xxxx--oooo.oooo"; + write = "1010.1100--1010.0000--xxxx.xxxx--iiii.iiii"; ; -; - -#------------------------------------------------------------ -# ATmega2564RFR2 -#------------------------------------------------------------ -part parent "m644rfr2" # m2564rfr2 - desc = "ATmega2564RFR2"; - id = "m2564rfr2"; - variants = - "ATmega2564RFR2-ZF: VFQFN48, Fmax=16 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 3.6 V]", - "ATmega2564RFR2-ZFR: VFQFN48, Fmax=16 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 3.6 V]", - "ATmega2564RFR2-ZU: VFQFN48, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 3.6 V]", - "ATmega2564RFR2-ZUR: VFQFN48, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 3.6 V]"; - mcuid = 145; - archnum = 6; - signature = 0x1e 0xa8 0x03; - ocdrev = 4; + memory "hfuse" + size = 1; + min_write_delay = 9000; + max_write_delay = 9000; + read = "0101.1000--0000.1000--xxxx.xxxx--oooo.oooo"; + write = "1010.1100--1010.1000--xxxx.xxxx--iiii.iiii"; + ; - memory "eeprom" - size = 8192; - read = "1010.0000--xxxa.aaaa--aaaa.aaaa--oooo.oooo"; - write = "1100.0000--xxxa.aaaa--aaaa.aaaa--iiii.iiii"; - writepage = "1100.0010--00xa.aaaa--aaaa.a000--xxxx.xxxx"; + memory "efuse" + size = 1; + min_write_delay = 9000; + max_write_delay = 9000; + read = "0101.0000--0000.1000--xxxx.xxxx--oooo.oooo"; + write = "1010.1100--1010.0100--xxxx.xxxx--xxxx.xxxi"; ; - memory "flash" - size = 0x40000; - num_pages = 1024; - read_lo = "0010.0000--aaaa.aaaa--aaaa.aaaa--oooo.oooo"; - read_hi = "0010.1000--aaaa.aaaa--aaaa.aaaa--oooo.oooo"; - load_ext_addr = "0100.1101--0000.0000--0000.000a--0000.0000"; - writepage = "0100.1100--aaaa.aaaa--axxx.xxxx--xxxx.xxxx"; + memory "lock" + size = 1; + min_write_delay = 9000; + max_write_delay = 9000; + read = "0101.1000--0000.0000--0000.0000--oooo.oooo"; + write = "1010.1100--111x.xxxx--xxxx.xxxx--11ii.iiii"; + ; +# ATtiny85 has Signature Bytes: 0x1E 0x93 0x08. + memory "signature" + size = 3; + read = "0011.0000--000x.xxxx--xxxx.xxaa--oooo.oooo"; ; - memory "sram" - size = 0x8000; + memory "calibration" + size = 1; + read = "0011.1000--000x.xxxx--0000.000a--oooo.oooo"; ; ; #------------------------------------------------------------ -# ATmega64RFR2 +# ATmega640 #------------------------------------------------------------ +# Almost same as ATmega1280, except for different memory sizes -part parent ".classic" # m64rfr2 - desc = "ATmega64RFR2"; - id = "m64rfr2"; - variants = - "ATmega64RFR2-ZF: VFQFN64, Fmax=16 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 3.6 V]", - "ATmega64RFR2-ZFR: VFQFN64, Fmax=16 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 3.6 V]", - "ATmega64RFR2-ZU: VFQFN64, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 3.6 V]", - "ATmega64RFR2-ZUR: VFQFN64, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 3.6 V]"; +part + desc = "ATmega640"; + id = "m640"; prog_modes = PM_SPM | PM_ISP | PM_HVPP | PM_JTAG; - mcuid = 78; - archnum = 5; - n_interrupts = 77; + mcuid = 126; + n_interrupts = 57; n_boot_sections = 4; boot_section_size = 1024; - stk500_devcode = 0xb2; - chip_erase_delay = 18500; +# stk500_devcode = 0xB2; +# avr910_devcode = 0x43; + chip_erase_delay = 9000; pagel = 0xd7; - bs2 = 0xe2; - signature = 0x1e 0xa6 0x02; + bs2 = 0xa0; + signature = 0x1e 0x96 0x08; reset = io; timeout = 200; stabdelay = 100; @@ -11260,30 +8994,29 @@ part parent ".classic" # m64rfr2 poweroffdelay = 15; resetdelayms = 1; hvleavestabdelay = 15; - resetdelay = 15; - chiperasepolltimeout = 20; + chiperasepolltimeout = 10; programfusepolltimeout = 5; programlockpolltimeout = 5; idr = 0x31; rampz = 0x3b; spmcr = 0x57; - eecr = 0x3f; - eind = 0x5c; ocdrev = 3; + chip_erase = "1010.1100--1000.0000--xxxx.xxxx--xxxx.xxxx"; + pgm_enable = "1010.1100--0101.0011--xxxx.xxxx--xxxx.xxxx"; memory "eeprom" - size = 2048; + size = 4096; page_size = 8; - min_write_delay = 13000; - max_write_delay = 13000; - mode = 0x41; - delay = 50; + min_write_delay = 9000; + max_write_delay = 9000; + mode = 65; + delay = 10; blocksize = 8; readsize = 256; - read = "1010.0000--xxxx.xaaa--aaaa.aaaa--oooo.oooo"; - write = "1100.0000--xxxx.xaaa--aaaa.aaaa--iiii.iiii"; + read = "1010.0000--xxxx.aaaa--aaaa.aaaa--oooo.oooo"; + write = "1100.0000--xxxx.aaaa--aaaa.aaaa--iiii.iiii"; loadpage_lo = "1100.0001--0000.0000--0000.0aaa--iiii.iiii"; - writepage = "1100.0010--00xx.xaaa--aaaa.a000--xxxx.xxxx"; + writepage = "1100.0010--00xx.aaaa--aaaa.a000--xxxx.xxxx"; ; memory "flash" @@ -11293,8 +9026,8 @@ part parent ".classic" # m64rfr2 num_pages = 256; min_write_delay = 4500; max_write_delay = 4500; - mode = 0x41; - delay = 50; + mode = 65; + delay = 10; blocksize = 256; readsize = 256; read_lo = "0010.0000--0aaa.aaaa--aaaa.aaaa--oooo.oooo"; @@ -11306,171 +9039,65 @@ part parent ".classic" # m64rfr2 memory "lfuse" size = 1; - initval = 0x62; - min_write_delay = 4500; - max_write_delay = 4500; + min_write_delay = 9000; + max_write_delay = 9000; read = "0101.0000--0000.0000--xxxx.xxxx--oooo.oooo"; write = "1010.1100--1010.0000--xxxx.xxxx--iiii.iiii"; ; memory "hfuse" size = 1; - initval = 0x99; - min_write_delay = 4500; - max_write_delay = 4500; + min_write_delay = 9000; + max_write_delay = 9000; read = "0101.1000--0000.1000--xxxx.xxxx--oooo.oooo"; write = "1010.1100--1010.1000--xxxx.xxxx--iiii.iiii"; ; memory "efuse" size = 1; - initval = 0xfe; - bitmask = 0x07; - min_write_delay = 4500; - max_write_delay = 4500; + min_write_delay = 9000; + max_write_delay = 9000; read = "0101.0000--0000.1000--xxxx.xxxx--oooo.oooo"; write = "1010.1100--1010.0100--xxxx.xxxx--xxxx.xiii"; ; memory "lock" - bitmask = 0x3f; - min_write_delay = 4500; - max_write_delay = 4500; - ; - - ##### - # Three separate flash pages - # - Offset 0x100 in signature row - # - Only programmable with JTAG or HVPP - # - Readable from an application - # - Cannot be read using ISP - # - Not erased by chip erase - # - memory "usersig" - paged = yes; - size = 768; - page_size = 256; - num_pages = 3; - offset = 0x100; - min_write_delay = 4500; - max_write_delay = 4500; - mode = 0x41; - delay = 50; - blocksize = 256; - readsize = 256; - ; - - memory "io" - size = 480; - ; - - memory "sram" - size = 8192; - offset = 0x200; - ; -; - -#------------------------------------------------------------ -# ATmega128RFR2 -#------------------------------------------------------------ - -part parent "m64rfr2" # m128rfr2 - desc = "ATmega128RFR2"; - id = "m128rfr2"; - variants = - "ATmega128RFR2-ZF: VFQFN64, Fmax=16 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 3.6 V]", - "ATmega128RFR2-ZFR: VFQFN64, Fmax=16 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 3.6 V]", - "ATmega128RFR2-ZU: VFQFN64, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 3.6 V]", - "ATmega128RFR2-ZUR: VFQFN64, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 3.6 V]"; - mcuid = 88; - archnum = 51; - signature = 0x1e 0xa7 0x02; - - memory "eeprom" - size = 4096; - read = "1010.0000--xxxa.aaaa--aaaa.aaaa--oooo.oooo"; - write = "1100.0000--xxxa.aaaa--aaaa.aaaa--iiii.iiii"; - writepage = "1100.0010--00xa.aaaa--aaaa.a000--xxxx.xxxx"; - ; - - memory "flash" - size = 0x20000; - num_pages = 512; - read_lo = "0010.0000--aaaa.aaaa--aaaa.aaaa--oooo.oooo"; - read_hi = "0010.1000--aaaa.aaaa--aaaa.aaaa--oooo.oooo"; - writepage = "0100.1100--aaaa.aaaa--axxx.xxxx--xxxx.xxxx"; - ; - - memory "sram" - size = 0x4000; - ; -; - -#------------------------------------------------------------ -# ATmega256RFR2 -#------------------------------------------------------------ - -part parent "m64rfr2" # m256rfr2 - desc = "ATmega256RFR2"; - id = "m256rfr2"; - variants = - "ATmega256RFR2-ZF: VFQFN64, Fmax=16 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 3.6 V]", - "ATmega256RFR2-ZFR: VFQFN64, Fmax=16 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 3.6 V]", - "ATmega256RFR2-ZU: VFQFN64, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 3.6 V]", - "ATmega256RFR2-ZUR: VFQFN64, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 3.6 V]"; - mcuid = 108; - archnum = 6; - signature = 0x1e 0xa8 0x02; - ocdrev = 4; - - memory "eeprom" - size = 8192; - read = "1010.0000--xxxa.aaaa--aaaa.aaaa--oooo.oooo"; - write = "1100.0000--xxxa.aaaa--aaaa.aaaa--iiii.iiii"; - writepage = "1100.0010--00xa.aaaa--aaaa.a000--xxxx.xxxx"; + size = 1; + min_write_delay = 9000; + max_write_delay = 9000; + read = "0101.1000--0000.0000--xxxx.xxxx--oooo.oooo"; + write = "1010.1100--111x.xxxx--xxxx.xxxx--11ii.iiii"; ; - memory "flash" - size = 0x40000; - num_pages = 1024; - read_lo = "0010.0000--aaaa.aaaa--aaaa.aaaa--oooo.oooo"; - read_hi = "0010.1000--aaaa.aaaa--aaaa.aaaa--oooo.oooo"; - load_ext_addr = "0100.1101--0000.0000--0000.000a--0000.0000"; - writepage = "0100.1100--aaaa.aaaa--axxx.xxxx--xxxx.xxxx"; + memory "signature" + size = 3; + read = "0011.0000--xxxx.xxxx--xxxx.xxaa--oooo.oooo"; ; - memory "sram" - size = 0x8000; + memory "calibration" + size = 1; + read = "0011.1000--xxxx.xxxx--0000.0000--oooo.oooo"; ; ; #------------------------------------------------------------ -# ATmega165 +# ATmega1280 #------------------------------------------------------------ -part parent ".classic" # m165 - desc = "ATmega165"; - id = "m165"; - variants = - "ATmega165: N/A, Fmax=16 MHz, T=[N/A, N/A], Vcc=[N/A, N/A]", - "ATmega165-16AI: TQFP64, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega165-16AU: TQFP64, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega165-16MI: VFQFN64, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega165-16MU: VFQFN64, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega165V-8AI: TQFP64, Fmax=8 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega165V-8AU: TQFP64, Fmax=8 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega165V-8MI: VFQFN64, Fmax=8 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega165V-8MU: VFQFN64, Fmax=8 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]"; +part + desc = "ATmega1280"; + id = "m1280"; prog_modes = PM_SPM | PM_ISP | PM_HVPP | PM_JTAG; - mcuid = 95; - archnum = 5; - n_interrupts = 22; + mcuid = 138; + n_interrupts = 57; n_boot_sections = 4; - boot_section_size = 256; + boot_section_size = 1024; +# stk500_devcode = 0xB2; +# avr910_devcode = 0x43; chip_erase_delay = 9000; pagel = 0xd7; bs2 = 0xa0; - signature = 0x1e 0x94 0x07; + signature = 0x1e 0x97 0x03; reset = io; timeout = 200; stabdelay = 100; @@ -11487,660 +9114,527 @@ part parent ".classic" # m165 0x66, 0x76, 0x67, 0x77, 0x6a, 0x7a, 0x6b, 0x7b, 0xbe, 0xfd, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00; hventerstabdelay = 100; - latchcycles = 6; + latchcycles = 5; + togglevtg = 1; + poweroffdelay = 15; + resetdelayms = 1; hvleavestabdelay = 15; - resetdelay = 15; chiperasepolltimeout = 10; programfusepolltimeout = 5; programlockpolltimeout = 5; idr = 0x31; + rampz = 0x3b; spmcr = 0x57; - eecr = 0x3f; ocdrev = 3; + chip_erase = "1010.1100--1000.0000--xxxx.xxxx--xxxx.xxxx"; + pgm_enable = "1010.1100--0101.0011--xxxx.xxxx--xxxx.xxxx"; memory "eeprom" - size = 512; - page_size = 4; - num_pages = 128; + size = 4096; + page_size = 8; min_write_delay = 9000; max_write_delay = 9000; - mode = 0x41; - delay = 20; - blocksize = 4; + mode = 65; + delay = 10; + blocksize = 8; readsize = 256; - read = "1010.0000--0000.00xa--aaaa.aaaa--oooo.oooo"; - write = "1100.0000--0000.00xa--aaaa.aaaa--iiii.iiii"; - loadpage_lo = "1100.0001--0000.0000--0000.00aa--iiii.iiii"; - writepage = "1100.0010--0000.00xa--aaaa.aa00--xxxx.xxxx"; + read = "1010.0000--xxxx.aaaa--aaaa.aaaa--oooo.oooo"; + write = "1100.0000--xxxx.aaaa--aaaa.aaaa--iiii.iiii"; + loadpage_lo = "1100.0001--0000.0000--0000.0aaa--iiii.iiii"; + writepage = "1100.0010--00xx.aaaa--aaaa.a000--xxxx.xxxx"; ; memory "flash" paged = yes; - size = 0x4000; - page_size = 128; - num_pages = 128; + size = 0x20000; + page_size = 256; + num_pages = 512; min_write_delay = 4500; max_write_delay = 4500; - mode = 0x41; + mode = 65; delay = 10; - blocksize = 128; + blocksize = 256; readsize = 256; - read_lo = "0010.0000--xxxa.aaaa--aaaa.aaaa--oooo.oooo"; - read_hi = "0010.1000--xxxa.aaaa--aaaa.aaaa--oooo.oooo"; - loadpage_lo = "0100.0000--0000.xxxx--xxaa.aaaa--iiii.iiii"; - loadpage_hi = "0100.1000--0000.xxxx--xxaa.aaaa--iiii.iiii"; - writepage = "0100.1100--xxxa.aaaa--aaxx.xxxx--xxxx.xxxx"; + read_lo = "0010.0000--aaaa.aaaa--aaaa.aaaa--oooo.oooo"; + read_hi = "0010.1000--aaaa.aaaa--aaaa.aaaa--oooo.oooo"; + loadpage_lo = "0100.0000--xxxx.xxxx--xaaa.aaaa--iiii.iiii"; + loadpage_hi = "0100.1000--xxxx.xxxx--xaaa.aaaa--iiii.iiii"; + writepage = "0100.1100--aaaa.aaaa--axxx.xxxx--xxxx.xxxx"; ; memory "lfuse" size = 1; - initval = 0x62; - min_write_delay = 4500; - max_write_delay = 4500; + min_write_delay = 9000; + max_write_delay = 9000; read = "0101.0000--0000.0000--xxxx.xxxx--oooo.oooo"; write = "1010.1100--1010.0000--xxxx.xxxx--iiii.iiii"; ; memory "hfuse" size = 1; - initval = 0x99; - min_write_delay = 4500; - max_write_delay = 4500; + min_write_delay = 9000; + max_write_delay = 9000; read = "0101.1000--0000.1000--xxxx.xxxx--oooo.oooo"; write = "1010.1100--1010.1000--xxxx.xxxx--iiii.iiii"; ; memory "efuse" size = 1; - initval = 0xff; - bitmask = 0x0f; - min_write_delay = 4500; - max_write_delay = 4500; + min_write_delay = 9000; + max_write_delay = 9000; read = "0101.0000--0000.1000--xxxx.xxxx--oooo.oooo"; - write = "1010.1100--1010.0100--xxxx.xxxx--xxxx.iiii"; + write = "1010.1100--1010.0100--xxxx.xxxx--xxxx.xiii"; ; memory "lock" - bitmask = 0x3f; - min_write_delay = 4500; - max_write_delay = 4500; - ; - - memory "sram" - size = 1024; + size = 1; + min_write_delay = 9000; + max_write_delay = 9000; + read = "0101.1000--0000.0000--xxxx.xxxx--oooo.oooo"; + write = "1010.1100--111x.xxxx--xxxx.xxxx--11ii.iiii"; ; -; -#------------------------------------------------------------ -# ATmega165P -#------------------------------------------------------------ - -part parent "m165" # m165p - desc = "ATmega165P"; - id = "m165p"; - variants = - "ATmega165P: N/A, Fmax=16 MHz, T=[N/A, N/A], Vcc=[N/A, N/A]", - "ATmega165P-16AN: TQFP64, Fmax=16 MHz, T=[-40 C, 105 C], Vcc=[2.7 V, 5.5 V]", - "ATmega165P-16ANR: TQFP64, Fmax=16 MHz, T=[N/A, N/A], Vcc=[2.7 V, 5.5 V]", - "ATmega165P-16AU: TQFP64, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega165P-16AUR: TQFP64, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega165P-16MN: VQFN64, Fmax=16 MHz, T=[N/A, N/A], Vcc=[2.7 V, 5.5 V]", - "ATmega165P-16MNR: VQFN64, Fmax=16 MHz, T=[N/A, N/A], Vcc=[2.7 V, 5.5 V]", - "ATmega165P-16MU: QFN64, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega165P-16MUR: VQFN64, Fmax=16 MHz, T=[N/A, N/A], Vcc=[2.7 V, 5.5 V]", - "ATmega165PV-8AN: TQFP64, Fmax=8 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega165PV-8ANR: TQFP64, Fmax=8 MHz, T=[N/A, N/A], Vcc=[1.8 V, 5.5 V]", - "ATmega165PV-8AU: TQFP64, Fmax=8 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega165PV-8AUR: TQFP64, Fmax=8 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega165PV-8MU: MLF64, Fmax=8 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega165PV-8MUR: QFN64, Fmax=8 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 97; - - memory "eeprom" - min_write_delay = 3600; - max_write_delay = 3600; + memory "signature" + size = 3; + read = "0011.0000--xxxx.xxxx--xxxx.xxaa--oooo.oooo"; ; -; - -#------------------------------------------------------------ -# ATmega165A -#------------------------------------------------------------ - -part parent "m165" # m165a - desc = "ATmega165A"; - id = "m165a"; - variants = - "ATmega165A-AN: TQFP64, Fmax=16 MHz, T=[-40 C, 105 C], Vcc=[1.8 V, 5.5 V]", - "ATmega165A-ANR: TQFP64, Fmax=16 MHz, T=[-40 C, 105 C], Vcc=[1.8 V, 5.5 V]", - "ATmega165A-AU: TQFP64, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega165A-AUR: TQFP64, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega165A-MCH: QFN64, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega165A-MCHR: QFN64, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega165A-MN: QFN64, Fmax=16 MHz, T=[-40 C, 105 C], Vcc=[1.8 V, 5.5 V]", - "ATmega165A-MNR: QFN64, Fmax=16 MHz, T=[-40 C, 105 C], Vcc=[1.8 V, 5.5 V]", - "ATmega165A-MU: MLF64, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega165A-MUR: TQFP64, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 96; - signature = 0x1e 0x94 0x10; - memory "eeprom" - min_write_delay = 3600; - max_write_delay = 3600; + memory "calibration" + size = 1; + read = "0011.1000--xxxx.xxxx--0000.0000--oooo.oooo"; ; ; #------------------------------------------------------------ -# ATmega165PA +# ATmega1281 #------------------------------------------------------------ +# Identical to ATmega1280 -part parent "m165" # m165pa - desc = "ATmega165PA"; - id = "m165pa"; - variants = - "ATmega165PA: N/A, Fmax=16 MHz, T=[N/A, N/A], Vcc=[1.8 V, 5.5 V]", - "ATmega165PA-AN: TQFP64, Fmax=16 MHz, T=[-40 C, 105 C], Vcc=[1.8 V, 5.5 V]", - "ATmega165PA-ANR: TQFP64, Fmax=16 MHz, T=[-40 C, 105 C], Vcc=[1.8 V, 5.5 V]", - "ATmega165PA-AU: TQFP64, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega165PA-AUR: TQFP64, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega165PA-MCH: QFN64, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega165PA-MCHR: QFN64, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega165PA-MN: TQFP64, Fmax=16 MHz, T=[-40 C, 105 C], Vcc=[1.8 V, 5.5 V]", - "ATmega165PA-MNR: VQFN64, Fmax=16 MHz, T=[-40 C, 105 C], Vcc=[1.8 V, 5.5 V]", - "ATmega165PA-MU: QFN64, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega165PA-MUR: VQFN64, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 98; - - memory "eeprom" - min_write_delay = 3600; - max_write_delay = 3600; - ; +part parent "m1280" + desc = "ATmega1281"; + id = "m1281"; + mcuid = 139; + signature = 0x1e 0x97 0x04; ; #------------------------------------------------------------ -# ATmega325 +# ATmega2560 #------------------------------------------------------------ -part parent "m165" # m325 - desc = "ATmega325"; - id = "m325"; - variants = - "ATmega325: N/A, Fmax=16 MHz, T=[N/A, N/A], Vcc=[N/A, N/A]", - "ATmega325-16AU: TQFP64, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega325-16AUR: TQFP64, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega325-16MU: QFN64, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega325-16MUR: VQFN64, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega325V-8AU: TQFP64, Fmax=8 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega325V-8AUR: TQFP64, Fmax=8 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega325V-8MU: MLF64, Fmax=8 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega325V-8MUR: VQFN64, Fmax=8 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 114; - boot_section_size = 512; -# stk500_devcode = 0x??; # No STK500v1 support? -# avr910_devcode = 0x??; # Try the ATmega16 one - avr910_devcode = 0x74; - signature = 0x1e 0x95 0x05; +part + desc = "ATmega2560"; + id = "m2560"; + prog_modes = PM_SPM | PM_ISP | PM_HVPP | PM_JTAG; + mcuid = 143; + n_interrupts = 57; + n_boot_sections = 4; + boot_section_size = 1024; + stk500_devcode = 0xb2; +# avr910_devcode = 0x43; + chip_erase_delay = 9000; + pagel = 0xd7; + bs2 = 0xa0; + signature = 0x1e 0x98 0x01; + reset = io; + timeout = 200; + stabdelay = 100; + cmdexedelay = 25; + synchloops = 32; + pollindex = 3; + pollvalue = 0x53; + predelay = 1; + postdelay = 1; + pollmethod = 1; + pp_controlstack = + 0x0e, 0x1e, 0x0f, 0x1f, 0x2e, 0x3e, 0x2f, 0x3f, + 0x4e, 0x5e, 0x4f, 0x5f, 0x6e, 0x7e, 0x6f, 0x7f, + 0x66, 0x76, 0x67, 0x77, 0x6a, 0x7a, 0x6b, 0x7b, + 0xbe, 0xfd, 0x00, 0x01, 0x00, 0x00, 0x00, 0x02; + hventerstabdelay = 100; + latchcycles = 5; + togglevtg = 1; + poweroffdelay = 15; + resetdelayms = 1; + hvleavestabdelay = 15; + chiperasepolltimeout = 10; + programfusepolltimeout = 5; + programlockpolltimeout = 5; + idr = 0x31; + rampz = 0x3b; + spmcr = 0x57; + ocdrev = 4; + chip_erase = "1010.1100--1000.0000--xxxx.xxxx--xxxx.xxxx"; + pgm_enable = "1010.1100--0101.0011--xxxx.xxxx--xxxx.xxxx"; memory "eeprom" - size = 1024; - num_pages = 0; + size = 4096; + page_size = 8; + min_write_delay = 9000; + max_write_delay = 9000; + mode = 65; delay = 10; - read = "1010.0000--0000.00aa--aaaa.aaaa--oooo.oooo"; - write = "1100.0000--0000.00aa--aaaa.aaaa--iiii.iiii"; - writepage = "1100.0010--0000.00aa--aaaa.aa00--xxxx.xxxx"; + blocksize = 8; + readsize = 256; + read = "1010.0000--xxxx.aaaa--aaaa.aaaa--oooo.oooo"; + write = "1100.0000--xxxx.aaaa--aaaa.aaaa--iiii.iiii"; + loadpage_lo = "1100.0001--0000.0000--0000.0aaa--iiii.iiii"; + writepage = "1100.0010--00xx.aaaa--aaaa.a000--xxxx.xxxx"; ; memory "flash" - size = 0x8000; - num_pages = 256; - read_lo = "0010.0000--0aaa.aaaa--aaaa.aaaa--oooo.oooo"; - read_hi = "0010.1000--0aaa.aaaa--aaaa.aaaa--oooo.oooo"; - loadpage_lo = "0100.0000--0000.0000--aaaa.aaaa--iiii.iiii"; - loadpage_hi = "0100.1000--0000.0000--aaaa.aaaa--iiii.iiii"; - writepage = "0100.1100--0aaa.aaaa--aaaa.aaaa--xxxx.xxxx"; + paged = yes; + size = 0x40000; + page_size = 256; + num_pages = 1024; + min_write_delay = 4500; + max_write_delay = 4500; + mode = 65; + delay = 10; + blocksize = 256; + readsize = 256; + read_lo = "0010.0000--aaaa.aaaa--aaaa.aaaa--oooo.oooo"; + read_hi = "0010.1000--aaaa.aaaa--aaaa.aaaa--oooo.oooo"; + loadpage_lo = "0100.0000--xxxx.xxxx--xaaa.aaaa--iiii.iiii"; + loadpage_hi = "0100.1000--xxxx.xxxx--xaaa.aaaa--iiii.iiii"; + load_ext_addr = "0100.1101--0000.0000--0000.000a--0000.0000"; + writepage = "0100.1100--aaaa.aaaa--axxx.xxxx--xxxx.xxxx"; ; memory "lfuse" + size = 1; min_write_delay = 9000; max_write_delay = 9000; + read = "0101.0000--0000.0000--xxxx.xxxx--oooo.oooo"; + write = "1010.1100--1010.0000--xxxx.xxxx--iiii.iiii"; ; memory "hfuse" + size = 1; min_write_delay = 9000; max_write_delay = 9000; + read = "0101.1000--0000.1000--xxxx.xxxx--oooo.oooo"; + write = "1010.1100--1010.1000--xxxx.xxxx--iiii.iiii"; ; memory "efuse" - bitmask = 0x07; + size = 1; min_write_delay = 9000; max_write_delay = 9000; - write = "1010.1100--1010.0100--0000.0000--1111.1iii"; + read = "0101.0000--0000.1000--xxxx.xxxx--oooo.oooo"; + write = "1010.1100--1010.0100--xxxx.xxxx--xxxx.xiii"; ; memory "lock" + size = 1; min_write_delay = 9000; max_write_delay = 9000; + read = "0101.1000--0000.0000--xxxx.xxxx--oooo.oooo"; + write = "1010.1100--111x.xxxx--xxxx.xxxx--11ii.iiii"; ; - memory "sram" - size = 2048; + memory "signature" + size = 3; + read = "0011.0000--xxxx.xxxx--xxxx.xxaa--oooo.oooo"; + ; + + memory "calibration" + size = 1; + read = "0011.1000--xxxx.xxxx--0000.0000--oooo.oooo"; ; ; #------------------------------------------------------------ -# ATmega325P +# ATmega2561 #------------------------------------------------------------ -part parent "m325" # m325p - desc = "ATmega325P"; - id = "m325p"; - variants = - "ATmega325P: N/A, Fmax=20 MHz, T=[N/A, N/A], Vcc=[N/A, N/A]", - "ATmega325P-20AU: TQFP64, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega325P-20AUR: TQFP64, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega325P-20MU: MLF64, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega325PV-10AU: TQFP64, Fmax=10 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega325PV-10AUR: TQFP64, Fmax=10 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega325PV-10MU: MLF64, Fmax=10 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega325PV-10MUR: VQFN64, Fmax=10 MHz, T=[N/A, N/A], Vcc=[1.8 V, 5.5 V]"; - mcuid = 116; - signature = 0x1e 0x95 0x0d; +part parent "m2560" + desc = "ATmega2561"; + id = "m2561"; + mcuid = 144; + signature = 0x1e 0x98 0x02; ; #------------------------------------------------------------ -# ATmega325A +# ATmega128RFA1 #------------------------------------------------------------ +# Identical to ATmega2561 but half the ROM -part parent "m325" # m325a - desc = "ATmega325A"; - id = "m325a"; - variants = - "ATmega325A-AN: TQFP64, Fmax=20 MHz, T=[-40 C, 105 C], Vcc=[1.8 V, 5.5 V]", - "ATmega325A-ANR: TQFP64, Fmax=20 MHz, T=[-40 C, 105 C], Vcc=[1.8 V, 5.5 V]", - "ATmega325A-AU: TQFP64, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega325A-AUR: TQFP64, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega325A-MN: VQFN64, Fmax=20 MHz, T=[-40 C, 105 C], Vcc=[1.8 V, 5.5 V]", - "ATmega325A-MNR: VQFN64, Fmax=20 MHz, T=[-40 C, 105 C], Vcc=[1.8 V, 5.5 V]", - "ATmega325A-MU: QFN64, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega325A-MUR: VQFN64, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 115; +part parent "m2561" + desc = "ATmega128RFA1"; + id = "m128rfa1"; + mcuid = 87; + n_interrupts = 72; + chip_erase_delay = 55000; + bs2 = 0xe2; + signature = 0x1e 0xa7 0x01; + ocdrev = 3; + + memory "flash" + size = 0x20000; + num_pages = 512; + min_write_delay = 50000; + max_write_delay = 50000; + delay = 20; + load_ext_addr = NULL; + ; ; #------------------------------------------------------------ -# ATmega325PA +# ATmega256RFR2 #------------------------------------------------------------ -part parent "m325" # m325pa - desc = "ATmega325PA"; - id = "m325pa"; - variants = - "ATmega325PA: N/A, Fmax=20 MHz, T=[N/A, N/A], Vcc=[1.8 V, 5.5 V]", - "ATmega325PA-AN: TQFP64, Fmax=20 MHz, T=[-40 C, 105 C], Vcc=[1.8 V, 5.5 V]", - "ATmega325PA-ANR: TQFP64, Fmax=20 MHz, T=[-40 C, 105 C], Vcc=[1.8 V, 5.5 V]", - "ATmega325PA-AU: TQFP64, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega325PA-AUR: TQFP64, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega325PA-MN: QFN64, Fmax=20 MHz, T=[-40 C, 105 C], Vcc=[1.8 V, 5.5 V]", - "ATmega325PA-MNR: QFN64, Fmax=20 MHz, T=[-40 C, 105 C], Vcc=[1.8 V, 5.5 V]", - "ATmega325PA-MU: VQFN64, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega325PA-MUR: VQFN64, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 117; - signature = 0x1e 0x95 0x0d; +part parent "m2561" + desc = "ATmega256RFR2"; + id = "m256rfr2"; + mcuid = 108; + n_interrupts = 77; + chip_erase_delay = 18500; + bs2 = 0xe2; + signature = 0x1e 0xa8 0x02; + + memory "eeprom" + size = 8192; + min_write_delay = 13000; + max_write_delay = 13000; + read = "1010.0000--xxxa.aaaa--aaaa.aaaa--oooo.oooo"; + write = "1100.0000--xxxa.aaaa--aaaa.aaaa--iiii.iiii"; + writepage = "1100.0010--00xa.aaaa--aaaa.a000--xxxx.xxxx"; + ; ; #------------------------------------------------------------ -# ATmega3250 +# ATmega128RFR2 #------------------------------------------------------------ -part parent "m165" # m3250 - desc = "ATmega3250"; - id = "m3250"; - variants = - "ATmega3250: N/A, Fmax=16 MHz, T=[N/A, N/A], Vcc=[2.7 V, 5.5 V]", - "ATmega3250-16AU: TQFP100, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega3250-16AUR: TQFP100, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega3250V-8AU: TQFP100, Fmax=8 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega3250V-8AUR: TQFP100, Fmax=8 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 146; - n_interrupts = 25; - boot_section_size = 512; - avr910_devcode = 0x74; - signature = 0x1e 0x95 0x06; +part parent "m128rfa1" + desc = "ATmega128RFR2"; + id = "m128rfr2"; + mcuid = 88; + n_interrupts = 77; + signature = 0x1e 0xa7 0x02; +; - memory "eeprom" - size = 1024; - num_pages = 0; - delay = 10; - read = "1010.0000--0000.00aa--aaaa.aaaa--oooo.oooo"; - write = "1100.0000--0000.00aa--aaaa.aaaa--iiii.iiii"; - writepage = "1100.0010--0000.00aa--aaaa.aa00--xxxx.xxxx"; +#------------------------------------------------------------ +# ATmega64RFR2 +#------------------------------------------------------------ + +part parent "m128rfa1" + desc = "ATmega64RFR2"; + id = "m64rfr2"; + mcuid = 78; + n_interrupts = 77; + signature = 0x1e 0xa6 0x02; + + memory "eeprom" + size = 2048; + min_write_delay = 13000; + max_write_delay = 13000; + read = "1010.0000--xxxx.xaaa--aaaa.aaaa--oooo.oooo"; + write = "1100.0000--xxxx.xaaa--aaaa.aaaa--iiii.iiii"; + writepage = "1100.0010--00xx.xaaa--aaaa.a000--xxxx.xxxx"; ; memory "flash" - size = 0x8000; + size = 0x10000; num_pages = 256; read_lo = "0010.0000--0aaa.aaaa--aaaa.aaaa--oooo.oooo"; read_hi = "0010.1000--0aaa.aaaa--aaaa.aaaa--oooo.oooo"; - loadpage_lo = "0100.0000--0000.0000--aaaa.aaaa--iiii.iiii"; - loadpage_hi = "0100.1000--0000.0000--aaaa.aaaa--iiii.iiii"; - writepage = "0100.1100--0aaa.aaaa--aaaa.aaaa--xxxx.xxxx"; - ; - - memory "lfuse" - min_write_delay = 9000; - max_write_delay = 9000; - ; - - memory "hfuse" - min_write_delay = 9000; - max_write_delay = 9000; - ; - - memory "efuse" - bitmask = 0x07; - min_write_delay = 9000; - max_write_delay = 9000; - write = "1010.1100--1010.0100--0000.0000--1111.1iii"; - ; - - memory "lock" - min_write_delay = 9000; - max_write_delay = 9000; - ; - - memory "sram" - size = 2048; + writepage = "0100.1100--0aaa.aaaa--axxx.xxxx--xxxx.xxxx"; ; ; #------------------------------------------------------------ -# ATmega3250P +# ATmega2564RFR2 #------------------------------------------------------------ -part parent "m3250" # m3250p - desc = "ATmega3250P"; - id = "m3250p"; - variants = - "ATmega3250P: TQFP100, Fmax=20 MHz, T=[N/A, N/A], Vcc=[N/A, N/A]", - "ATmega3250P-20AU: TQFP100, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega3250P-20AUR: TQFP100, Fmax=20 MHz, T=[N/A, N/A], Vcc=[2.7 V, 5.5 V]", - "ATmega3250PV-10AU: TQFP100, Fmax=10 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega3250PV-10AUR: TQFP100, Fmax=10 MHz, T=[N/A, N/A], Vcc=[1.8 V, 5.5 V]"; - mcuid = 148; - signature = 0x1e 0x95 0x0e; +part parent "m256rfr2" + desc = "ATmega2564RFR2"; + id = "m2564rfr2"; + mcuid = 145; + signature = 0x1e 0xa8 0x03; ; #------------------------------------------------------------ -# ATmega3250A +# ATmega1284RFR2 #------------------------------------------------------------ -part parent "m3250" # m3250a - desc = "ATmega3250A"; - id = "m3250a"; - variants = - "ATmega3250A-AN: TQFP100, Fmax=20 MHz, T=[-40 C, 105 C], Vcc=[1.8 V, 5.5 V]", - "ATmega3250A-ANR: TQFP100, Fmax=20 MHz, T=[-40 C, 105 C], Vcc=[1.8 V, 5.5 V]", - "ATmega3250A-AU: TQFP100, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega3250A-AUR: TQFP100, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 147; +part parent "m128rfr2" + desc = "ATmega1284RFR2"; + id = "m1284rfr2"; + mcuid = 142; + signature = 0x1e 0xa7 0x03; ; #------------------------------------------------------------ -# ATmega3250PA +# ATmega644RFR2 #------------------------------------------------------------ -part parent "m3250" # m3250pa - desc = "ATmega3250PA"; - id = "m3250pa"; - variants = - "ATmega3250PA-AN: TQFP100, Fmax=20 MHz, T=[-40 C, 105 C], Vcc=[1.8 V, 5.5 V]", - "ATmega3250PA-ANR: TQFP100, Fmax=20 MHz, T=[-40 C, 105 C], Vcc=[1.8 V, 5.5 V]", - "ATmega3250PA-AU: TQFP100, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega3250PA-AUR: TQFP100, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 149; - signature = 0x1e 0x95 0x0e; +part parent "m64rfr2" + desc = "ATmega644RFR2"; + id = "m644rfr2"; + mcuid = 131; + signature = 0x1e 0xa6 0x03; ; #------------------------------------------------------------ -# ATmega645 +# ATtiny24 #------------------------------------------------------------ -part parent "m165" # m645 - desc = "ATmega645"; - id = "m645"; - variants = - "ATmega645: N/A, Fmax=16 MHz, T=[N/A, N/A], Vcc=[N/A, N/A]", - "ATmega645-16AU: TQFP64, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega645-16AUR: TQFP64, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega645-16MU: MLF64, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega645-16MUR: VQFN64, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega645V-8AU: TQFP64, Fmax=8 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega645V-8AUR: TQFP64, Fmax=8 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega645V-8MU: MLF64, Fmax=8 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega645V-8MUR: VQFN64, Fmax=8 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 132; - boot_section_size = 1024; -# stk500_devcode = 0x??; # No STK500v1 support? -# avr910_devcode = 0x??; # Try the ATmega16 one - avr910_devcode = 0x74; - signature = 0x1e 0x96 0x05; - latchcycles = 5; +part + desc = "ATtiny24"; + id = "t24"; + prog_modes = PM_SPM | PM_ISP | PM_HVSP | PM_debugWIRE; + mcuid = 14; + n_interrupts = 17; +# no STK500 devcode in XML file, use the ATtiny45 one + stk500_devcode = 0x14; +# avr910_devcode = ?; +# Try the AT90S2313 devcode: + avr910_devcode = 0x20; + chip_erase_delay = 4500; + signature = 0x1e 0x91 0x0b; + reset = io; + timeout = 200; + stabdelay = 100; + cmdexedelay = 25; + synchloops = 32; + pollindex = 3; + pollvalue = 0x53; + predelay = 1; + postdelay = 1; + pollmethod = 1; + hvsp_controlstack = + 0x4c, 0x0c, 0x1c, 0x2c, 0x3c, 0x64, 0x74, 0x66, + 0x68, 0x78, 0x68, 0x68, 0x7a, 0x6a, 0x68, 0x78, + 0x78, 0x7d, 0x6d, 0x0c, 0x80, 0x40, 0x20, 0x10, + 0x11, 0x08, 0x04, 0x02, 0x03, 0x08, 0x04, 0x0f; + flash_instr = 0xb4, 0x07, 0x17; + eeprom_instr = + 0xbb, 0xff, 0xbb, 0xee, 0xbb, 0xcc, 0xb2, 0x0d, + 0xbc, 0x07, 0xb4, 0x07, 0xba, 0x0d, 0xbb, 0xbc, + 0x99, 0xe1, 0xbb, 0xac; + hventerstabdelay = 100; + latchcycles = 1; togglevtg = 1; - poweroffdelay = 15; - resetdelayms = 1; + poweroffdelay = 25; + resetdelayus = 70; + hvleavestabdelay = 100; + resetdelay = 25; + chiperasepolltimeout = 40; + programfusepolltimeout = 25; + programlockpolltimeout = 25; + synchcycles = 6; + spmcr = 0x57; + eecr = 0x3c; + ocdrev = 1; + chip_erase = "1010.1100--100x.xxxx--xxxx.xxxx--xxxx.xxxx"; + pgm_enable = "1010.1100--0101.0011--xxxx.xxxx--xxxx.xxxx"; memory "eeprom" - size = 2048; - page_size = 8; - num_pages = 0; - delay = 10; - read = "1010.0000--0000.0aaa--aaaa.aaaa--oooo.oooo"; - write = "1100.0000--0000.0aaa--aaaa.aaaa--iiii.iiii"; - loadpage_lo = "1100.0001--0000.0000--0000.0aaa--iiii.iiii"; - writepage = "1100.0010--0000.0aaa--aaaa.a000--xxxx.xxxx"; + size = 128; + page_size = 4; + min_write_delay = 4000; + max_write_delay = 4500; + readback = 0xff 0xff; + mode = 65; + delay = 6; + blocksize = 4; + readsize = 256; + read = "1010.0000--000x.xxxx--xaaa.aaaa--oooo.oooo"; + write = "1100.0000--000x.xxxx--xaaa.aaaa--iiii.iiii"; + loadpage_lo = "1100.0001--0000.0000--0000.00aa--iiii.iiii"; + writepage = "1100.0010--00xx.xxxx--xaaa.aa00--xxxx.xxxx"; ; memory "flash" - size = 0x10000; - page_size = 256; - num_pages = 256; - read_lo = "0010.0000--aaaa.aaaa--aaaa.aaaa--oooo.oooo"; - read_hi = "0010.1000--aaaa.aaaa--aaaa.aaaa--oooo.oooo"; - loadpage_lo = "0100.0000--0000.0000--aaaa.aaaa--iiii.iiii"; - loadpage_hi = "0100.1000--0000.0000--aaaa.aaaa--iiii.iiii"; - writepage = "0100.1100--aaaa.aaaa--aaaa.aaaa--0000.0000"; + paged = yes; + size = 2048; + page_size = 32; + num_pages = 64; + min_write_delay = 4500; + max_write_delay = 4500; + readback = 0xff 0xff; + mode = 65; + delay = 6; + blocksize = 32; + readsize = 256; + read_lo = "0010.0000--0000.00aa--aaaa.aaaa--oooo.oooo"; + read_hi = "0010.1000--0000.00aa--aaaa.aaaa--oooo.oooo"; + loadpage_lo = "0100.0000--000x.xxxx--xxxx.aaaa--iiii.iiii"; + loadpage_hi = "0100.1000--000x.xxxx--xxxx.aaaa--iiii.iiii"; + writepage = "0100.1100--0000.00aa--aaaa.xxxx--xxxx.xxxx"; ; memory "lfuse" + size = 1; min_write_delay = 9000; max_write_delay = 9000; + read = "0101.0000--0000.0000--xxxx.xxxx--oooo.oooo"; + write = "1010.1100--1010.0000--xxxx.xxxx--iiii.iiii"; ; memory "hfuse" + size = 1; min_write_delay = 9000; max_write_delay = 9000; + read = "0101.1000--0000.1000--xxxx.xxxx--oooo.oooo"; + write = "1010.1100--1010.1000--xxxx.xxxx--iiii.iiii"; ; memory "efuse" - bitmask = 0x07; + size = 1; min_write_delay = 9000; max_write_delay = 9000; - write = "1010.1100--1010.0100--0000.0000--1111.1iii"; + read = "0101.0000--0000.1000--xxxx.xxxx--oooo.oooo"; + write = "1010.1100--1010.0100--xxxx.xxxx--xxxx.xxxi"; ; memory "lock" + size = 1; min_write_delay = 9000; max_write_delay = 9000; + read = "0101.1000--0000.0000--0000.0000--oooo.oooo"; + write = "1010.1100--111x.xxxx--xxxx.xxxx--xxxx.xxii"; ; - - memory "sram" - size = 4096; +# ATtiny24 has Signature Bytes: 0x1E 0x91 0x0B. + memory "signature" + size = 3; + read = "0011.0000--000x.xxxx--xxxx.xxaa--oooo.oooo"; ; -; - -#------------------------------------------------------------ -# ATmega645P -#------------------------------------------------------------ -part parent "m645" # m645p - desc = "ATmega645P"; - id = "m645p"; - variants = - "ATmega645P-AU: TQFP64, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega645P-AUR: TQFP64, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega645P-MU: QFN64, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega645P-MUR: VQFN64, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 134; - signature = 0x1e 0x96 0x0d; + memory "calibration" + size = 1; + read = "0011.1000--000x.xxxx--0000.000a--oooo.oooo"; + ; ; #------------------------------------------------------------ -# ATmega645A +# ATtiny24A #------------------------------------------------------------ -part parent "m645" # m645a - desc = "ATmega645A"; - id = "m645a"; - variants = - "ATmega645A: N/A, Fmax=16 MHz, T=[N/A, N/A], Vcc=[1.8 V, 5.5 V]", - "ATmega645A-AU: TQFP64, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega645A-AUR: TQFP64, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega645A-MU: VQFN64, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega645A-MUR: VQFN64, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 133; +part parent "t24" + desc = "ATtiny24A"; + id = "t24a"; + mcuid = 15; ; #------------------------------------------------------------ -# ATmega6450 +# ATtiny44 #------------------------------------------------------------ -part parent "m165" # m6450 - desc = "ATmega6450"; - id = "m6450"; - variants = - "ATmega6450: N/A, Fmax=16 MHz, T=[N/A, N/A], Vcc=[N/A, N/A]", - "ATmega6450-16AU: TQFP100, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega6450-16AUR: TQFP100, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega6450V-8AU: TQFP100, Fmax=8 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega6450V-8AUR: TQFP100, Fmax=8 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 154; - n_interrupts = 25; - boot_section_size = 1024; - avr910_devcode = 0x74; - signature = 0x1e 0x96 0x06; - latchcycles = 5; - togglevtg = 1; - poweroffdelay = 15; - resetdelayms = 1; - - memory "eeprom" - size = 2048; - page_size = 8; - num_pages = 0; - delay = 10; - read = "1010.0000--0000.0aaa--aaaa.aaaa--oooo.oooo"; - write = "1100.0000--0000.0aaa--aaaa.aaaa--iiii.iiii"; - loadpage_lo = "1100.0001--0000.0000--0000.0aaa--iiii.iiii"; - writepage = "1100.0010--0000.0aaa--aaaa.a000--xxxx.xxxx"; - ; - - memory "flash" - size = 0x10000; - page_size = 256; - num_pages = 256; - read_lo = "0010.0000--aaaa.aaaa--aaaa.aaaa--oooo.oooo"; - read_hi = "0010.1000--aaaa.aaaa--aaaa.aaaa--oooo.oooo"; - loadpage_lo = "0100.0000--0000.0000--aaaa.aaaa--iiii.iiii"; - loadpage_hi = "0100.1000--0000.0000--aaaa.aaaa--iiii.iiii"; - writepage = "0100.1100--aaaa.aaaa--aaaa.aaaa--0000.0000"; - ; - - memory "lfuse" - min_write_delay = 9000; - max_write_delay = 9000; - ; - - memory "hfuse" - min_write_delay = 9000; - max_write_delay = 9000; - ; - - memory "efuse" - bitmask = 0x07; - min_write_delay = 9000; - max_write_delay = 9000; - write = "1010.1100--1010.0100--0000.0000--1111.1iii"; - ; - - memory "lock" - min_write_delay = 9000; - max_write_delay = 9000; - ; - - memory "sram" - size = 4096; - ; -; - -#------------------------------------------------------------ -# ATmega6450P -#------------------------------------------------------------ - -part parent "m6450" # m6450p - desc = "ATmega6450P"; - id = "m6450p"; - variants = - "ATmega6450P-AU: TQFP100, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega6450P-AUR: TQFP100, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 156; - signature = 0x1e 0x96 0x0e; -; - -#------------------------------------------------------------ -# ATmega6450A -#------------------------------------------------------------ - -part parent "m6450" # m6450a - desc = "ATmega6450A"; - id = "m6450a"; - variants = - "ATmega6450A-AU: TQFP100, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega6450A-AUR: TQFP100, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 155; -; - -#------------------------------------------------------------ -# ATmega48 -#------------------------------------------------------------ - -part parent ".classic" # m48 - desc = "ATmega48"; - id = "m48"; - variants = - "ATmega48: N/A, Fmax=20 MHz, T=[N/A, N/A], Vcc=[N/A, N/A]", - "ATmega48-20AU: TQFP32, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega48-20AUR: TQFP32, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega48-20MMH: VQFN28, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega48-20MMU: MLF28, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega48-20MU: MLF32, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega48-20MUR: MLF32, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega48-20PU: PDIP28, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega48V-10AU: TQFP32, Fmax=10 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega48V-10AUR: TQFP32, Fmax=10 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega48V-10MMH: VQFN28, Fmax=10 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega48V-10MMU: QFN28, Fmax=10 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega48V-10MMUR: VQFN28, Fmax=10 MHz, T=[N/A, N/A], Vcc=[1.8 V, 5.5 V]", - "ATmega48V-10MU: MLF32, Fmax=10 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega48V-10MUR: MLF32, Fmax=10 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega48V-10PU: PDIP28, Fmax=10 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]"; - prog_modes = PM_SPM | PM_ISP | PM_HVPP | PM_debugWIRE; - mcuid = 67; - archnum = 4; - n_interrupts = 26; - stk500_devcode = 0x59; - chip_erase_delay = 45000; - pagel = 0xd7; - bs2 = 0xc2; -# avr910_devcode = 0x??; - signature = 0x1e 0x92 0x05; +part + desc = "ATtiny44"; + id = "t44"; + prog_modes = PM_SPM | PM_ISP | PM_HVSP | PM_debugWIRE; + mcuid = 20; + n_interrupts = 17; +# no STK500 devcode in XML file, use the ATtiny45 one + stk500_devcode = 0x14; +# avr910_devcode = ?; +# Try the AT90S2313 devcode: + avr910_devcode = 0x20; + chip_erase_delay = 4500; + signature = 0x1e 0x92 0x07; reset = io; timeout = 200; stabdelay = 100; @@ -12151,38 +9645,41 @@ part parent ".classic" # m48 predelay = 1; postdelay = 1; pollmethod = 1; - pp_controlstack = - 0x0e, 0x1e, 0x0f, 0x1f, 0x2e, 0x3e, 0x2f, 0x3f, - 0x4e, 0x5e, 0x4f, 0x5f, 0x6e, 0x7e, 0x6f, 0x7f, - 0x66, 0x76, 0x67, 0x77, 0x6a, 0x7a, 0x6b, 0x7b, - 0xbe, 0xfd, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00; - flash_instr = 0xb6, 0x01, 0x11; + hvsp_controlstack = + 0x4c, 0x0c, 0x1c, 0x2c, 0x3c, 0x64, 0x74, 0x66, + 0x68, 0x78, 0x68, 0x68, 0x7a, 0x6a, 0x68, 0x78, + 0x78, 0x7d, 0x6d, 0x0c, 0x80, 0x40, 0x20, 0x10, + 0x11, 0x08, 0x04, 0x02, 0x03, 0x08, 0x04, 0x0f; + flash_instr = 0xb4, 0x07, 0x17; eeprom_instr = - 0xbd, 0xf2, 0xbd, 0xe1, 0xbb, 0xcf, 0xb4, 0x00, - 0xbe, 0x01, 0xb6, 0x01, 0xbc, 0x00, 0xbb, 0xbf, - 0x99, 0xf9, 0xbb, 0xaf; + 0xbb, 0xff, 0xbb, 0xee, 0xbb, 0xcc, 0xb2, 0x0d, + 0xbc, 0x07, 0xb4, 0x07, 0xba, 0x0d, 0xbb, 0xbc, + 0x99, 0xe1, 0xbb, 0xac; hventerstabdelay = 100; - latchcycles = 5; + latchcycles = 1; togglevtg = 1; - poweroffdelay = 15; - resetdelayms = 1; - hvleavestabdelay = 15; - resetdelay = 15; - chiperasepolltimeout = 10; - programfusepolltimeout = 5; - programlockpolltimeout = 5; - idr = 0x31; + poweroffdelay = 25; + resetdelayus = 70; + hvleavestabdelay = 100; + resetdelay = 25; + chiperasepolltimeout = 40; + programfusepolltimeout = 25; + programlockpolltimeout = 25; + synchcycles = 6; spmcr = 0x57; - eecr = 0x3f; + eecr = 0x3c; ocdrev = 1; + chip_erase = "1010.1100--100x.xxxx--xxxx.xxxx--xxxx.xxxx"; + pgm_enable = "1010.1100--0101.0011--xxxx.xxxx--xxxx.xxxx"; memory "eeprom" size = 256; page_size = 4; - min_write_delay = 3600; - max_write_delay = 3600; - mode = 0x41; - delay = 20; + min_write_delay = 4000; + max_write_delay = 4500; + readback = 0xff 0xff; + mode = 65; + delay = 6; blocksize = 4; readsize = 256; read = "1010.0000--000x.xxxx--aaaa.aaaa--oooo.oooo"; @@ -12198,8752 +9695,3777 @@ part parent ".classic" # m48 num_pages = 64; min_write_delay = 4500; max_write_delay = 4500; - mode = 0x41; - delay = 10; - blocksize = 64; + readback = 0xff 0xff; + mode = 65; + delay = 6; + blocksize = 32; readsize = 256; read_lo = "0010.0000--0000.0aaa--aaaa.aaaa--oooo.oooo"; read_hi = "0010.1000--0000.0aaa--aaaa.aaaa--oooo.oooo"; - loadpage_lo = "0100.0000--000x.xxxx--xxxa.aaaa--iiii.iiii"; - loadpage_hi = "0100.1000--000x.xxxx--xxxa.aaaa--iiii.iiii"; - writepage = "0100.1100--0000.0aaa--aaax.xxxx--xxxx.xxxx"; - ; - - memory "lfuse" - size = 1; - initval = 0x62; - min_write_delay = 4500; - max_write_delay = 4500; - read = "0101.0000--0000.0000--xxxx.xxxx--oooo.oooo"; - write = "1010.1100--1010.0000--xxxx.xxxx--iiii.iiii"; - ; - - memory "hfuse" - size = 1; - initval = 0xdf; - min_write_delay = 4500; - max_write_delay = 4500; - read = "0101.1000--0000.1000--xxxx.xxxx--oooo.oooo"; - write = "1010.1100--1010.1000--xxxx.xxxx--iiii.iiii"; - ; - - memory "efuse" - size = 1; - initval = 0xff; - bitmask = 0x01; - min_write_delay = 4500; - max_write_delay = 4500; - read = "0101.0000--0000.1000--xxxx.xxxx--oooo.oooo"; - write = "1010.1100--1010.0100--xxxx.xxxx--xxxx.xxxi"; - ; - - memory "lock" - bitmask = 0x03; - min_write_delay = 4500; - max_write_delay = 4500; - ; - - memory "sram" - size = 512; - ; -; - -#------------------------------------------------------------ -# ATmega48P -#------------------------------------------------------------ - -part parent "m48" # m48p - desc = "ATmega48P"; - id = "m48p"; - variants = - "ATmega48P-20AU: TQFP32, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega48P-20AUR: TQFP32, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega48P-20MMU: MLF28, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega48P-20MMUR: VQFN28, Fmax=N/A, T=[N/A, N/A], Vcc=[2.7 V, 5.5 V]", - "ATmega48P-20MU: MLF32, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega48P-20MUR: VQFN32, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega48P-20PU: PDIP28, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega48PV-10AU: TQFP32, Fmax=10 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega48PV-10AUR: TQFP32, Fmax=10 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega48PV-10MMU: MLF28, Fmax=10 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega48PV-10MMUR: VQFN28, Fmax=N/A, T=[N/A, N/A], Vcc=[1.8 V, 5.5 V]", - "ATmega48PV-10MU: MLF32, Fmax=10 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega48PV-10MUR: VQFN32, Fmax=N/A, T=[N/A, N/A], Vcc=[1.8 V, 5.5 V]", - "ATmega48PV-10PU: PDIP28, Fmax=10 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 69; - signature = 0x1e 0x92 0x0a; -; - -#------------------------------------------------------------ -# ATmega48A -#------------------------------------------------------------ - -part parent "m48" # m48a - desc = "ATmega48A"; - id = "m48a"; - variants = - "ATmega48A-AU: TQFP32, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega48A-AUR: TQFP32, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega48A-CCU: UFBGA32, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega48A-MMH: VQFN28, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega48A-MMHR: VQFN28, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega48A-MU: QFN32, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega48A-MUR: VQFN32, Fmax=N/A, T=[N/A, N/A], Vcc=[1.8 V, 5.5 V]", - "ATmega48A-PU: PDIP28, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 68; -; - -#------------------------------------------------------------ -# ATmega48PA -#------------------------------------------------------------ - -part parent "m48" # m48pa - desc = "ATmega48PA"; - id = "m48pa"; - variants = - "ATmega48PA: N/A, Fmax=N/A, T=[N/A, N/A], Vcc=[1.8 V, 5.5 V]", - "ATmega48PA-AN: TQFP32, Fmax=20 MHz, T=[-40 C, 105 C], Vcc=[1.8 V, 5.5 V]", - "ATmega48PA-ANR: TQFP32, Fmax=20 MHz, T=[-40 C, 105 C], Vcc=[1.8 V, 5.5 V]", - "ATmega48PA-AU: TQFP32, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega48PA-AUR: QFP32, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega48PA-CCU: UFBGA32, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega48PA-MMH: QFN28, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega48PA-MMHR: QFN28, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega48PA-MMN: QFN28, Fmax=20 MHz, T=[-40 C, 105 C], Vcc=[1.8 V, 5.5 V]", - "ATmega48PA-MMNR: TQFP32, Fmax=20 MHz, T=[-40 C, 105 C], Vcc=[1.8 V, 5.5 V]", - "ATmega48PA-MN: QFN32, Fmax=20 MHz, T=[-40 C, 105 C], Vcc=[1.8 V, 5.5 V]", - "ATmega48PA-MNR: QFN32, Fmax=20 MHz, T=[-40 C, 105 C], Vcc=[1.8 V, 5.5 V]", - "ATmega48PA-MU: QFN32, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega48PA-MUR: VQFN32, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega48PA-PN: SPDIP28, Fmax=20 MHz, T=[-40 C, 105 C], Vcc=[1.8 V, 5.5 V]", - "ATmega48PA-PU: PDIP28, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 70; - signature = 0x1e 0x92 0x0a; -; - -#------------------------------------------------------------ -# ATmega88 -#------------------------------------------------------------ - -part parent "m48" # m88 - desc = "ATmega88"; - id = "m88"; - variants = - "ATmega88: N/A, Fmax=20 MHz, T=[N/A, N/A], Vcc=[N/A, N/A]", - "ATmega88-20AU: TQFP32, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega88-20AUR: TQFP32, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega88-20MU: MLF32, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega88-20MUR: MLF32, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega88-20PU: PDIP28, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega88V-10AU: TQFP32, Fmax=10 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega88V-10AUR: TQFP32, Fmax=10 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega88V-10MU: MLF32, Fmax=10 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega88V-10MUR: VQFN32, Fmax=10 MHz, T=[N/A, N/A], Vcc=[1.8 V, 5.5 V]", - "ATmega88V-10PU: PDIP28, Fmax=10 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 79; - n_boot_sections = 4; - boot_section_size = 256; - stk500_devcode = 0x73; - chip_erase_delay = 9000; -# avr910_devcode = 0x??; - signature = 0x1e 0x93 0x0a; - - memory "eeprom" - size = 512; - read = "1010.0000--000x.xxxa--aaaa.aaaa--oooo.oooo"; - write = "1100.0000--000x.xxxa--aaaa.aaaa--iiii.iiii"; - writepage = "1100.0010--00xx.xxxa--aaaa.aa00--xxxx.xxxx"; - ; - - memory "flash" - size = 8192; - num_pages = 128; - read_lo = "0010.0000--0000.aaaa--aaaa.aaaa--oooo.oooo"; - read_hi = "0010.1000--0000.aaaa--aaaa.aaaa--oooo.oooo"; - writepage = "0100.1100--0000.aaaa--aaax.xxxx--xxxx.xxxx"; - ; - - memory "efuse" - initval = 0xf9; - bitmask = 0x07; - write = "1010.1100--1010.0100--xxxx.xxxx--xxxx.xiii"; - ; - - memory "lock" - bitmask = 0x3f; - ; - - memory "sram" - size = 1024; - ; -; - -#------------------------------------------------------------ -# ATmega88P -#------------------------------------------------------------ - -part parent "m88" # m88p - desc = "ATmega88P"; - id = "m88p"; - variants = - "ATmega88P-20AU: TQFP32, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega88P-20AUR: TQFP32, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega88P-20MU: MLF32, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega88P-20MUR: VQFN32, Fmax=20 MHz, T=[N/A, N/A], Vcc=[2.7 V, 5.5 V]", - "ATmega88P-20PU: PDIP28, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega88PV-10AU: TQFP32, Fmax=10 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega88PV-10AUR: TQFP32, Fmax=10 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega88PV-10MU: MLF32, Fmax=10 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega88PV-10MUR: VQFN32, Fmax=10 MHz, T=[N/A, N/A], Vcc=[1.8 V, 5.5 V]", - "ATmega88PV-10PU: PDIP28, Fmax=10 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 81; - signature = 0x1e 0x93 0x0f; -; - -#------------------------------------------------------------ -# ATmega88A -#------------------------------------------------------------ - -part parent "m88" # m88a - desc = "ATmega88A"; - id = "m88a"; - variants = - "ATmega88A: N/A, Fmax=N/A, T=[N/A, N/A], Vcc=[1.8 V, 5.5 V]", - "ATmega88A-AU: TQFP32, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega88A-AUR: TQFP32, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega88A-CCU: UFBGA32, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega88A-MMH: QFN28, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega88A-MMHR: VQFN28, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega88A-MU: QFN32, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega88A-MUR: VQFN32, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega88A-PU: PDIP28, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 80; -; - -#------------------------------------------------------------ -# ATmega88PA -#------------------------------------------------------------ - -part parent "m88" # m88pa - desc = "ATmega88PA"; - id = "m88pa"; - variants = - "ATmega88PA: N/A, Fmax=20 MHz, T=[N/A, N/A], Vcc=[1.8 V, 5.5 V]", - "ATmega88PA-15MZ: TQFP32, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega88PA-AN: TQFP32, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega88PA-ANR: TQFP32, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega88PA-AU: TQFP32, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega88PA-AUR: TQFP32, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega88PA-CCU: UFBGA32, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega88PA-MMH: QFN28, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega88PA-MMHR: VQFN28, Fmax=20 MHz, T=[N/A, N/A], Vcc=[1.8 V, 5.5 V]", - "ATmega88PA-MMN: VQFN28, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega88PA-MMNR: VQFN28, Fmax=20 MHz, T=[-40 C, 105 C], Vcc=[1.8 V, 5.5 V]", - "ATmega88PA-MMUR: PDIP28, Fmax=20 MHz, T=[-40 C, 105 C], Vcc=[1.8 V, 5.5 V]", - "ATmega88PA-MN: QFN32, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega88PA-MNR: QFN32, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega88PA-MU: QFN32, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega88PA-MUR: VQFN32, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega88PA-PN: PDIP28, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega88PA-PU: PDIP28, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 82; - signature = 0x1e 0x93 0x0f; -; - -#------------------------------------------------------------ -# ATmega168 -#------------------------------------------------------------ - -part parent "m48" # m168 - desc = "ATmega168"; - id = "m168"; - variants = - "ATmega168: N/A, Fmax=20 MHz, T=[N/A, N/A], Vcc=[N/A, N/A]", - "ATmega168-15AD: TQFP32, Fmax=16 MHz, T=[-40 C, 150 C], Vcc=[2.7 V, 5.5 V]", - "ATmega168-20AU: TQFP32, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega168-20AUR: TQFP32, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega168-20MQ: MLF32, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega168-20MQR: QFN32, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega168-20MU: MLF32, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega168-20MUR: MLF32, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega168-20PU: PDIP28, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega168V-10AU: TQFP32, Fmax=10 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega168V-10AUR: TQFP32, Fmax=10 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega168V-10MQ: QFN32, Fmax=10 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega168V-10MQR: QFN32, Fmax=10 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega168V-10MU: MLF32, Fmax=10 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega168V-10MUR: MLF32, Fmax=10 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega168V-10PU: PDIP28, Fmax=10 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 99; - archnum = 5; - n_boot_sections = 4; - boot_section_size = 256; - stk500_devcode = 0x86; - chip_erase_delay = 9000; -# avr910_devcode = 0x??; - signature = 0x1e 0x94 0x06; - - memory "eeprom" - size = 512; - read = "1010.0000--000x.xxxa--aaaa.aaaa--oooo.oooo"; - write = "1100.0000--000x.xxxa--aaaa.aaaa--iiii.iiii"; - writepage = "1100.0010--00xx.xxxa--aaaa.aa00--xxxx.xxxx"; - ; - - memory "flash" - size = 0x4000; - page_size = 128; - num_pages = 128; - blocksize = 128; - read_lo = "0010.0000--000a.aaaa--aaaa.aaaa--oooo.oooo"; - read_hi = "0010.1000--000a.aaaa--aaaa.aaaa--oooo.oooo"; - loadpage_lo = "0100.0000--000x.xxxx--xxaa.aaaa--iiii.iiii"; - loadpage_hi = "0100.1000--000x.xxxx--xxaa.aaaa--iiii.iiii"; - writepage = "0100.1100--000a.aaaa--aaxx.xxxx--xxxx.xxxx"; - ; - - memory "efuse" - initval = 0xf9; - bitmask = 0x07; - write = "1010.1100--1010.0100--xxxx.xxxx--xxxx.xiii"; - ; - - memory "lock" - bitmask = 0x3f; - ; - - memory "sram" - size = 1024; - ; -; - -#------------------------------------------------------------ -# ATmega168P -#------------------------------------------------------------ - -part parent "m168" # m168p - desc = "ATmega168P"; - id = "m168p"; - variants = - "ATmega168P-20AN: TQFP32, Fmax=20 MHz, T=[N/A, N/A], Vcc=[2.7 V, 5.5 V]", - "ATmega168P-20ANR: TQFP32, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega168P-20AU: TQFP32, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega168P-20AUR: TQFP32, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega168P-20MQ: MLF32, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega168P-20MQR: QFN32, Fmax=20 MHz, T=[N/A, N/A], Vcc=[2.7 V, 5.5 V]", - "ATmega168P-20MU: MLF32, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega168P-20MUR: MLF32, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega168P-20PU: PDIP28, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega168PV-10AN: TQFP32, Fmax=10 MHz, T=[N/A, N/A], Vcc=[1.8 V, 5.5 V]", - "ATmega168PV-10AU: TQFP32, Fmax=10 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega168PV-10AUR: TQFP32, Fmax=10 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega168PV-10MU: MLF32, Fmax=10 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega168PV-10MUR: MLF32, Fmax=10 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega168PV-10PU: PDIP28, Fmax=10 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 101; - signature = 0x1e 0x94 0x0b; -; - -#------------------------------------------------------------ -# ATmega168A -#------------------------------------------------------------ - -part parent "m168" # m168a - desc = "ATmega168A"; - id = "m168a"; - variants = - "ATmega168A: N/A, Fmax=20 MHz, T=[N/A, N/A], Vcc=[1.8 V, 5.5 V]", - "ATmega168A-AU: TQFP32, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega168A-AUR: TQFP32, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega168A-CCU: UFBGA32, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega168A-MMH: VQFN28, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega168A-MMHR: VQFN28, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega168A-MU: QFN32, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega168A-MUR: QFN32, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega168A-PU: PDIP28, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 100; -; - -#------------------------------------------------------------ -# ATmega168PA -#------------------------------------------------------------ - -part parent "m168" # m168pa - desc = "ATmega168PA"; - id = "m168pa"; - variants = - "ATmega168PA: N/A, Fmax=20 MHz, T=[N/A, N/A], Vcc=[1.8 V, 5.5 V]", - "ATmega168PA-AN: TQFP32, Fmax=20 MHz, T=[-40 C, 105 C], Vcc=[1.8 V, 5.5 V]", - "ATmega168PA-ANR: TQFP32, Fmax=20 MHz, T=[-40 C, 105 C], Vcc=[1.8 V, 5.5 V]", - "ATmega168PA-AU: TQFP32, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega168PA-AUR: TQFP32, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega168PA-CCU: UFBGA32, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega168PA-MMH: MLF28, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega168PA-MMHR: QFN32, Fmax=N/A, T=[N/A, N/A], Vcc=[1.8 V, 5.5 V]", - "ATmega168PA-MN: QFN32, Fmax=20 MHz, T=[-40 C, 105 C], Vcc=[1.8 V, 5.5 V]", - "ATmega168PA-MNR: QFN32, Fmax=20 MHz, T=[-40 C, 105 C], Vcc=[1.8 V, 5.5 V]", - "ATmega168PA-MU: VQFN32, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega168PA-MUR: QFN32, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega168PA-PN: PDIP28, Fmax=20 MHz, T=[-40 C, 105 C], Vcc=[1.8 V, 5.5 V]", - "ATmega168PA-PU: PDIP28, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 102; - signature = 0x1e 0x94 0x0b; -; - -#------------------------------------------------------------ -# ATmega328 -#------------------------------------------------------------ - -part parent "m48" # m328 - desc = "ATmega328"; - id = "m328"; - variants = - "ATmega328-AU: TQFP32, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega328-AUR: TQFP32, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega328-MMH: MLF28, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega328-MMHR: MLF28, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega328-MU: MLF32, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega328-MUR: MLF32, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega328-PU: PDIP28, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 118; - archnum = 5; - n_boot_sections = 4; - boot_section_size = 512; - stk500_devcode = 0x86; - chip_erase_delay = 9000; -# avr910_devcode = 0x??; - signature = 0x1e 0x95 0x14; - - memory "eeprom" - size = 1024; - read = "1010.0000--000x.xxaa--aaaa.aaaa--oooo.oooo"; - write = "1100.0000--000x.xxaa--aaaa.aaaa--iiii.iiii"; - writepage = "1100.0010--00xx.xxaa--aaaa.aa00--xxxx.xxxx"; - ; - - memory "flash" - size = 0x8000; - page_size = 128; - num_pages = 256; - blocksize = 128; - read_lo = "0010.0000--00aa.aaaa--aaaa.aaaa--oooo.oooo"; - read_hi = "0010.1000--00aa.aaaa--aaaa.aaaa--oooo.oooo"; - loadpage_lo = "0100.0000--000x.xxxx--xxaa.aaaa--iiii.iiii"; - loadpage_hi = "0100.1000--000x.xxxx--xxaa.aaaa--iiii.iiii"; - writepage = "0100.1100--00aa.aaaa--aaxx.xxxx--xxxx.xxxx"; - ; - - memory "hfuse" - initval = 0xd9; - ; - - memory "efuse" - bitmask = 0x07; - write = "1010.1100--1010.0100--xxxx.xxxx--xxxx.xiii"; - ; - - memory "lock" - bitmask = 0x3f; - ; - - memory "sram" - size = 2048; - ; -; - -#------------------------------------------------------------ -# ATmega328P -#------------------------------------------------------------ - -part parent "m328" # m328p - desc = "ATmega328P"; - id = "m328p"; - variants = - "ATmega328P: N/A, Fmax=20 MHz, T=[-40 C, N/A], Vcc=[1.8 V, 5.5 V]", - "ATmega328P-15MZ: MLF32, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega328P-AN: TQFP32, Fmax=20 MHz, T=[-40 C, 105 C], Vcc=[1.8 V, 5.5 V]", - "ATmega328P-ANR: TQFP32, Fmax=20 MHz, T=[-40 C, 105 C], Vcc=[1.8 V, 5.5 V]", - "ATmega328P-AU: TQFP32, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega328P-AUR: TQFP32, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega328P-MMH: MLF28, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega328P-MMHR: MLF28, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega328P-MN: QFN32, Fmax=20 MHz, T=[-40 C, 105 C], Vcc=[1.8 V, 5.5 V]", - "ATmega328P-MNR: MLF32, Fmax=20 MHz, T=[-40 C, 105 C], Vcc=[1.8 V, 5.5 V]", - "ATmega328P-MU: MLF32, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega328P-MUR: MLF32, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega328P-PN: PDIP28, Fmax=20 MHz, T=[-40 C, 105 C], Vcc=[1.8 V, 5.5 V]", - "ATmega328P-PU: PDIP28, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 119; - signature = 0x1e 0x95 0x0f; -; - -#------------------------------------------------------------ -# ATmega48PB -#------------------------------------------------------------ - -part parent "m48" # m48pb - desc = "ATmega48PB"; - id = "m48pb"; - variants = - "ATmega48PB-AN: TQFP32, Fmax=20 MHz, T=[-40 C, 105 C], Vcc=[1.8 V, 5.5 V]", - "ATmega48PB-ANR: TQFP32, Fmax=20 MHz, T=[-40 C, 105 C], Vcc=[1.8 V, 5.5 V]", - "ATmega48PB-AU: TQFP32, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega48PB-AUR: TQFP32, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega48PB-MN: VQFN32, Fmax=20 MHz, T=[-40 C, 105 C], Vcc=[1.8 V, 5.5 V]", - "ATmega48PB-MNR: VQFN32, Fmax=N/A, T=[N/A, N/A], Vcc=[N/A, N/A]", - "ATmega48PB-MU: VFQFN32, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega48PB-MUR: VQFN32, Fmax=N/A, T=[N/A, N/A], Vcc=[N/A, N/A]"; - mcuid = 71; - n_interrupts = 27; - chip_erase_delay = 10500; - signature = 0x1e 0x92 0x10; -; - -#------------------------------------------------------------ -# ATmega88PB -#------------------------------------------------------------ - -part parent "m88" # m88pb - desc = "ATmega88PB"; - id = "m88pb"; - variants = - "ATmega88PB-AN: TQFP32, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega88PB-ANR: TQFP32, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega88PB-AU: TQFP32, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega88PB-AUR: TQFP32, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega88PB-MN: VQFN32, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega88PB-MNR: VQFN32, Fmax=N/A, T=[N/A, N/A], Vcc=[N/A, N/A]", - "ATmega88PB-MU: VFQFN32, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega88PB-MUR: VQFN32, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 83; - n_interrupts = 27; - chip_erase_delay = 10500; - signature = 0x1e 0x93 0x16; -; - -#------------------------------------------------------------ -# ATmega168PB -#------------------------------------------------------------ - -part parent "m168" # m168pb - desc = "ATmega168PB"; - id = "m168pb"; - variants = - "ATmega168PB-AN: TQFP32, Fmax=20 MHz, T=[-40 C, 105 C], Vcc=[1.8 V, 5.5 V]", - "ATmega168PB-ANR: TQFP32, Fmax=20 MHz, T=[-40 C, 105 C], Vcc=[1.8 V, 5.5 V]", - "ATmega168PB-AU: TQFP32, Fmax=20 MHz, T=[-40 C, 105 C], Vcc=[1.8 V, 5.5 V]", - "ATmega168PB-AUR: TQFP32, Fmax=20 MHz, T=[-40 C, 105 C], Vcc=[1.8 V, 5.5 V]", - "ATmega168PB-MN: VQFN32, Fmax=20 MHz, T=[-40 C, 105 C], Vcc=[1.8 V, 5.5 V]", - "ATmega168PB-MU: VFQFN32, Fmax=20 MHz, T=[-40 C, 105 C], Vcc=[1.8 V, 5.5 V]", - "ATmega168PB-MUR: VQFN32, Fmax=20 MHz, T=[-40 C, 105 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 103; - n_interrupts = 27; - chip_erase_delay = 10500; - signature = 0x1e 0x94 0x15; -; - -#------------------------------------------------------------ -# ATmega328PB -#------------------------------------------------------------ - -part parent "m328" # m328pb - desc = "ATmega328PB"; - id = "m328pb"; - variants = - "ATmega328PB-AN: TQFP32, Fmax=20 MHz, T=[-40 C, 105 C], Vcc=[1.8 V, 5.5 V]", - "ATmega328PB-ANR: TQFP32, Fmax=20 MHz, T=[-40 C, 105 C], Vcc=[1.8 V, 5.5 V]", - "ATmega328PB-AU: TQFP32, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega328PB-AUR: TQFP32, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega328PB-MN: QFN32, Fmax=20 MHz, T=[-40 C, 105 C], Vcc=[1.8 V, 5.5 V]", - "ATmega328PB-MNR: QFN32, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega328PB-MU: QFN32, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega328PB-MUR: QFN32, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 120; - n_interrupts = 45; - chip_erase_delay = 10500; - signature = 0x1e 0x95 0x16; - - memory "efuse" - initval = 0xf7; - bitmask = 0x0f; - write = "1010.1100--1010.0100--xxxx.xxxx--xxxx.iiii"; - ; -; - -#------------------------------------------------------------ -# ATmega169 -#------------------------------------------------------------ - -part parent ".classic" # m169 - desc = "ATmega169"; - id = "m169"; - variants = - "ATmega169: N/A, Fmax=16 MHz, T=[N/A, N/A], Vcc=[N/A, N/A]", - "ATmega169-16AI: TQFP64, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega169-16AU: TQFP64, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega169-16MI: VFQFN64, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega169-16MU: VFQFN64, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega169L-4AC: TQFP64, Fmax=4 MHz, T=[0 C, 70 C], Vcc=[2.7 V, 5.5 V]", - "ATmega169L-4MC: VFQFN64, Fmax=4 MHz, T=[0 C, 70 C], Vcc=[2.7 V, 5.5 V]", - "ATmega169L-8AI: TQFP64, Fmax=8 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega169L-8MI: VFQFN64, Fmax=8 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega169V-1AC: TQFP64, Fmax=1 MHz, T=[0 C, 70 C], Vcc=[1.8 V, 5.5 V]", - "ATmega169V-1MC: VFQFN64, Fmax=1 MHz, T=[0 C, 70 C], Vcc=[1.8 V, 5.5 V]", - "ATmega169V-8AI: TQFP64, Fmax=8 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega169V-8AU: TQFP64, Fmax=8 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega169V-8MI: VFQFN64, Fmax=8 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega169V-8MU: VFQFN64, Fmax=8 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]"; - prog_modes = PM_SPM | PM_ISP | PM_HVPP | PM_JTAG | PM_JTAGmkI; - mcuid = 104; - archnum = 5; - n_interrupts = 23; - n_boot_sections = 4; - boot_section_size = 256; - stk500_devcode = 0x85; - avr910_devcode = 0x78; - chip_erase_delay = 9000; - pagel = 0xd7; - bs2 = 0xa0; - signature = 0x1e 0x94 0x05; - timeout = 200; - stabdelay = 100; - cmdexedelay = 25; - synchloops = 32; - pollindex = 3; - pollvalue = 0x53; - predelay = 1; - postdelay = 1; - pollmethod = 1; - pp_controlstack = - 0x0e, 0x1e, 0x0f, 0x1f, 0x2e, 0x3e, 0x2f, 0x3f, - 0x4e, 0x5e, 0x4f, 0x5f, 0x6e, 0x7e, 0x6f, 0x7f, - 0x66, 0x76, 0x67, 0x77, 0x6a, 0x7a, 0x6b, 0x7b, - 0xbe, 0xfd, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00; - hventerstabdelay = 100; - latchcycles = 5; - togglevtg = 1; - poweroffdelay = 15; - resetdelayms = 1; - hvleavestabdelay = 15; - chiperasepolltimeout = 10; - programfusepolltimeout = 5; - programlockpolltimeout = 5; - idr = 0x31; - spmcr = 0x57; - eecr = 0x3f; - ocdrev = 2; - - memory "eeprom" - size = 512; - page_size = 4; - min_write_delay = 9000; - max_write_delay = 9000; - readback = 0xff 0xff; - mode = 0x41; - delay = 20; - blocksize = 4; - readsize = 256; - read = "1010.0000--xxxx.xxxa--aaaa.aaaa--oooo.oooo"; - write = "1100.0000--xxxx.xxxa--aaaa.aaaa--iiii.iiii"; - loadpage_lo = "1100.0001--0000.0000--0000.00aa--iiii.iiii"; - writepage = "1100.0010--00xx.xxxa--aaaa.aa00--xxxx.xxxx"; - ; - - memory "flash" - paged = yes; - size = 0x4000; - page_size = 128; - num_pages = 128; - min_write_delay = 4500; - max_write_delay = 4500; - readback = 0xff 0xff; - mode = 0x41; - delay = 6; - blocksize = 128; - readsize = 256; - read_lo = "0010.0000--xxxa.aaaa--aaaa.aaaa--oooo.oooo"; - read_hi = "0010.1000--xxxa.aaaa--aaaa.aaaa--oooo.oooo"; - loadpage_lo = "0100.0000--xxxx.xxxx--xxaa.aaaa--iiii.iiii"; - loadpage_hi = "0100.1000--xxxx.xxxx--xxaa.aaaa--iiii.iiii"; - writepage = "0100.1100--xxxa.aaaa--aaxx.xxxx--xxxx.xxxx"; - ; - - memory "lfuse" - size = 1; - initval = 0x62; - min_write_delay = 4500; - max_write_delay = 4500; - read = "0101.0000--0000.0000--xxxx.xxxx--oooo.oooo"; - write = "1010.1100--1010.0000--xxxx.xxxx--iiii.iiii"; - ; - - memory "hfuse" - size = 1; - initval = 0x99; - min_write_delay = 4500; - max_write_delay = 4500; - read = "0101.1000--0000.1000--xxxx.xxxx--oooo.oooo"; - write = "1010.1100--1010.1000--xxxx.xxxx--iiii.iiii"; - ; - - memory "efuse" - size = 1; - initval = 0xff; - bitmask = 0x0f; - min_write_delay = 4500; - max_write_delay = 4500; - read = "0101.0000--0000.1000--xxxx.xxxx--oooo.oooo"; - write = "1010.1100--1010.0100--xxxx.xxxx--xxxx.iiii"; - ; - - memory "lock" - bitmask = 0x3f; - min_write_delay = 4500; - max_write_delay = 4500; - ; - - memory "sram" - size = 1024; - ; -; - -#------------------------------------------------------------ -# ATmega169P -#------------------------------------------------------------ - -part parent "m169" # m169p - desc = "ATmega169P"; - id = "m169p"; - variants = - "ATmega169P: N/A, Fmax=16 MHz, T=[N/A, N/A], Vcc=[N/A, N/A]", - "ATmega169P-16AU: TQFP64, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega169P-16AUR: TQFP64, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega169P-16MCH: QFN64, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega169P-16MCHR: QFN64, Fmax=16 MHz, T=[N/A, N/A], Vcc=[2.7 V, 5.5 V]", - "ATmega169P-16MCU: VQFN64, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega169P-16MU: QFN64, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega169P-16MUR: QFN64, Fmax=16 MHz, T=[N/A, N/A], Vcc=[2.7 V, 5.5 V]", - "ATmega169PV-8AU: TQFP64, Fmax=8 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega169PV-8AUR: TQFP64, Fmax=8 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega169PV-8MCH: QFN64, Fmax=8 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega169PV-8MCHR: QFN64, Fmax=8 MHz, T=[N/A, N/A], Vcc=[1.8 V, 5.5 V]", - "ATmega169PV-8MCU: VQFN64, Fmax=8 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega169PV-8MU: MLF64, Fmax=8 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega169PV-8MUR: QFN64, Fmax=8 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]"; - prog_modes = PM_SPM | PM_ISP | PM_HVPP | PM_JTAG; - mcuid = 106; - reset = io; - latchcycles = 6; - togglevtg = 0; - poweroffdelay = 0; - resetdelayms = 0; - resetdelay = 15; - - memory "eeprom" - min_write_delay = 3600; - max_write_delay = 3600; - readback = 0x00 0x00; - ; - - memory "flash" - readback = 0x00 0x00; - delay = 10; - ; -; - -#------------------------------------------------------------ -# ATmega169A -#------------------------------------------------------------ - -part parent "m169" # m169a - desc = "ATmega169A"; - id = "m169a"; - variants = - "ATmega169A-AN: TQFP64, Fmax=16 MHz, T=[-40 C, 105 C], Vcc=[1.8 V, 5.5 V]", - "ATmega169A-AU: TQFP64, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega169A-AUR: TQFP64, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega169A-MCH: DRQFN64, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega169A-MN: QFN64, Fmax=16 MHz, T=[-40 C, 105 C], Vcc=[1.8 V, 5.5 V]", - "ATmega169A-MU: QFN64, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega169A-MUR: QFN64, Fmax=16 MHz, T=[N/A, N/A], Vcc=[1.8 V, 5.5 V]"; - mcuid = 105; - signature = 0x1e 0x94 0x11; - reset = io; - latchcycles = 6; - togglevtg = 0; - poweroffdelay = 0; - resetdelayms = 0; - resetdelay = 15; - - memory "eeprom" - min_write_delay = 3600; - max_write_delay = 3600; - readback = 0x00 0x00; - ; - - memory "flash" - readback = 0x00 0x00; - delay = 10; - ; -; - -#------------------------------------------------------------ -# ATmega169PA -#------------------------------------------------------------ - -part parent "m169" # m169pa - desc = "ATmega169PA"; - id = "m169pa"; - variants = - "ATmega169PA-AN: TQFP64, Fmax=16 MHz, T=[-40 C, 105 C], Vcc=[1.8 V, 5.5 V]", - "ATmega169PA-ANR: TQFP64, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega169PA-AU: TQFP64, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega169PA-AUR: TQFP64, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega169PA-MCH: QFN64, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega169PA-MCHR: QFN64, Fmax=N/A, T=[N/A, N/A], Vcc=[N/A, N/A]", - "ATmega169PA-MN: VQFN64, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega169PA-MNR: QFN64, Fmax=N/A, T=[N/A, N/A], Vcc=[N/A, N/A]", - "ATmega169PA-MU: QFN64, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega169PA-MUR: QFN64, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]"; - prog_modes = PM_SPM | PM_ISP | PM_HVPP | PM_JTAG; - mcuid = 107; - reset = io; - latchcycles = 6; - togglevtg = 0; - poweroffdelay = 0; - resetdelayms = 0; - resetdelay = 15; - - memory "eeprom" - min_write_delay = 3600; - max_write_delay = 3600; - readback = 0x00 0x00; - ; - - memory "flash" - readback = 0x00 0x00; - delay = 10; - ; -; - -#------------------------------------------------------------ -# ATmega329 -#------------------------------------------------------------ - -part parent "m169" # m329 - desc = "ATmega329"; - id = "m329"; - variants = - "ATmega329: N/A, Fmax=16 MHz, T=[N/A, N/A], Vcc=[N/A, N/A]", - "ATmega329-16AU: TQFP64, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[4.5 V, 5.5 V]", - "ATmega329-16AUR: TQFP64, Fmax=16 MHz, T=[N/A, N/A], Vcc=[2.7 V, 5.5 V]", - "ATmega329-16MU: MLF64, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega329-16MUR: VQFN64, Fmax=16 MHz, T=[N/A, N/A], Vcc=[2.7 V, 5.5 V]", - "ATmega329V-8AU: TQFP64, Fmax=8 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega329V-8AUR: TQFP64, Fmax=8 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega329V-8MU: MLF64, Fmax=8 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega329V-8MUR: VQFN64, Fmax=8 MHz, T=[N/A, N/A], Vcc=[1.8 V, 5.5 V]"; - prog_modes = PM_SPM | PM_ISP | PM_HVPP | PM_JTAG; - mcuid = 121; - boot_section_size = 512; - stk500_devcode = 0x00; -# stk500_devcode = 0x85; # no STK500 support, only STK500v2 -# avr910_devcode = 0x?; # try the ATmega169 one: - avr910_devcode = 0x75; - signature = 0x1e 0x95 0x03; - reset = io; - latchcycles = 6; - togglevtg = 0; - poweroffdelay = 0; - resetdelayms = 0; - resetdelay = 15; - ocdrev = 3; - - memory "eeprom" - size = 1024; - readback = 0x00 0x00; - delay = 10; - read = "1010.0000--xxxx.xxaa--aaaa.aaaa--oooo.oooo"; - write = "1100.0000--xxxx.xxaa--aaaa.aaaa--iiii.iiii"; - writepage = "1100.0010--00xx.xxaa--aaaa.aa00--xxxx.xxxx"; - ; - - memory "flash" - size = 0x8000; - num_pages = 256; - readback = 0x00 0x00; - delay = 10; - read_lo = "0010.0000--xaaa.aaaa--aaaa.aaaa--oooo.oooo"; - read_hi = "0010.1000--xaaa.aaaa--aaaa.aaaa--oooo.oooo"; - writepage = "0100.1100--xaaa.aaaa--aaxx.xxxx--xxxx.xxxx"; - ; - - memory "efuse" - bitmask = 0x07; - write = "1010.1100--1010.0100--xxxx.xxxx--xxxx.xiii"; - ; - - memory "sram" - size = 2048; - ; -; - -#------------------------------------------------------------ -# ATmega329P -#------------------------------------------------------------ - -part parent "m329" # m329p - desc = "ATmega329P"; - id = "m329p"; - variants = - "ATmega329P: N/A, Fmax=20 MHz, T=[N/A, N/A], Vcc=[N/A, N/A]", - "ATmega329P-20AN: TQFP64, Fmax=20 MHz, T=[-40 C, 105 C], Vcc=[1.8 V, 5.5 V]", - "ATmega329P-20ANR: TQFP64, Fmax=20 MHz, T=[-40 C, 105 C], Vcc=[2.7 V, 5.5 V]", - "ATmega329P-20AU: TQFP64, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega329P-20AUR: TQFP64, Fmax=20 MHz, T=[N/A, N/A], Vcc=[2.7 V, 5.5 V]", - "ATmega329P-20MN: VQFN64, Fmax=20 MHz, T=[-40 C, 105 C], Vcc=[2.7 V, 5.5 V]", - "ATmega329P-20MNR: VQFN64, Fmax=20 MHz, T=[N/A, N/A], Vcc=[2.7 V, 5.5 V]", - "ATmega329P-20MU: MLF64, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega329P-20MUR: VQFN64, Fmax=20 MHz, T=[N/A, N/A], Vcc=[2.7 V, 5.5 V]", - "ATmega329PV-10AU: TQFP64, Fmax=10 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega329PV-10AUR: TQFP64, Fmax=10 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega329PV-10MN: VQFN64, Fmax=10 MHz, T=[-40 C, 105 C], Vcc=[1.8 V, 5.5 V]", - "ATmega329PV-10MU: MLF64, Fmax=10 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega329PV-10MUR: VQFN64, Fmax=10 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 123; - signature = 0x1e 0x95 0x0b; - - memory "eeprom" - min_write_delay = 3600; - max_write_delay = 3600; - ; -; - -#------------------------------------------------------------ -# ATmega329A -#------------------------------------------------------------ - -part parent "m329" # m329a - desc = "ATmega329A"; - id = "m329a"; - variants = - "ATmega329A-AN: TQFP64, Fmax=20 MHz, T=[-40 C, 105 C], Vcc=[1.8 V, 5.5 V]", - "ATmega329A-AU: TQFP64, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega329A-AUR: TQFP64, Fmax=N/A, T=[N/A, N/A], Vcc=[N/A, N/A]", - "ATmega329A-MN: QFN64, Fmax=20 MHz, T=[-40 C, 105 C], Vcc=[1.8 V, 5.5 V]", - "ATmega329A-MU: VQFN64, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 122; - - memory "eeprom" - min_write_delay = 3600; - max_write_delay = 3600; - ; -; - -#------------------------------------------------------------ -# ATmega329PA -#------------------------------------------------------------ - -part parent "m329" # m329pa - desc = "ATmega329PA"; - id = "m329pa"; - variants = - "ATmega329PA-AN: TQFP64, Fmax=20 MHz, T=[-40 C, 105 C], Vcc=[1.8 V, 5.5 V]", - "ATmega329PA-AU: TQFP64, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega329PA-AUR: TQFP64, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega329PA-MN: QFN64, Fmax=20 MHz, T=[-40 C, 105 C], Vcc=[1.8 V, 5.5 V]", - "ATmega329PA-MU: QFN64, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega329PA-MUR: VQFN64, Fmax=N/A, T=[N/A, N/A], Vcc=[N/A, N/A]"; - mcuid = 124; - signature = 0x1e 0x95 0x0b; - - memory "eeprom" - min_write_delay = 3600; - max_write_delay = 3600; - ; -; - -#------------------------------------------------------------ -# ATmega3290 -#------------------------------------------------------------ - -part parent "m169" # m3290 - desc = "ATmega3290"; - id = "m3290"; - variants = - "ATmega3290: N/A, Fmax=16 MHz, T=[N/A, N/A], Vcc=[N/A, N/A]", - "ATmega3290-16AU: TQFP100, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega3290-16AUR: TQFP100, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega3290V-8AU: TQFP100, Fmax=8 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega3290V-8AUR: TQFP100, Fmax=8 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]"; - prog_modes = PM_SPM | PM_ISP | PM_HVPP | PM_JTAG; - mcuid = 150; - n_interrupts = 25; - boot_section_size = 512; - stk500_devcode = 0x00; - avr910_devcode = 0x75; - signature = 0x1e 0x95 0x04; - reset = io; - latchcycles = 6; - togglevtg = 0; - poweroffdelay = 0; - resetdelayms = 0; - resetdelay = 15; - ocdrev = 3; - - memory "eeprom" - size = 1024; - readback = 0x00 0x00; - delay = 10; - read = "1010.0000--xxxx.xxaa--aaaa.aaaa--oooo.oooo"; - write = "1100.0000--xxxx.xxaa--aaaa.aaaa--iiii.iiii"; - writepage = "1100.0010--00xx.xxaa--aaaa.aa00--xxxx.xxxx"; - ; - - memory "flash" - size = 0x8000; - num_pages = 256; - readback = 0x00 0x00; - delay = 10; - read_lo = "0010.0000--xaaa.aaaa--aaaa.aaaa--oooo.oooo"; - read_hi = "0010.1000--xaaa.aaaa--aaaa.aaaa--oooo.oooo"; - writepage = "0100.1100--xaaa.aaaa--aaxx.xxxx--xxxx.xxxx"; - ; - - memory "efuse" - bitmask = 0x07; - write = "1010.1100--1010.0100--xxxx.xxxx--xxxx.xiii"; - ; - - memory "sram" - size = 2048; - ; -; - -#------------------------------------------------------------ -# ATmega3290P -#------------------------------------------------------------ - -part parent "m3290" # m3290p - desc = "ATmega3290P"; - id = "m3290p"; - variants = - "ATmega3290P: TQFP100, Fmax=20 MHz, T=[N/A, N/A], Vcc=[N/A, N/A]", - "ATmega3290P-20AN: TQFP64, Fmax=10 MHz, T=[-40 C, 105 C], Vcc=[1.8 V, 5.5 V]", - "ATmega3290P-20ANR: TQFP64, Fmax=10 MHz, T=[-40 C, 105 C], Vcc=[1.8 V, 5.5 V]", - "ATmega3290P-20AU: TQFP100, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega3290P-20AUR: TQFP100, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega3290P-20MN: MLF64, Fmax=20 MHz, T=[-40 C, 105 C], Vcc=[1.8 V, 5.5 V]", - "ATmega3290P-20MNR: MLF64, Fmax=20 MHz, T=[-40 C, 105 C], Vcc=[1.8 V, 5.5 V]", - "ATmega3290PV-10AU: TQFP100, Fmax=10 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega3290PV-10AUR: TQFP100, Fmax=10 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 152; - signature = 0x1e 0x95 0x0c; - - memory "eeprom" - min_write_delay = 3600; - max_write_delay = 3600; - ; -; - -#------------------------------------------------------------ -# ATmega3290A -#------------------------------------------------------------ - -part parent "m3290" # m3290a - desc = "ATmega3290A"; - id = "m3290a"; - variants = - "ATmega3290A-AN: TQFP100, Fmax=20 MHz, T=[-40 C, 105 C], Vcc=[1.8 V, 5.5 V]", - "ATmega3290A-ANR: TQFP100, Fmax=20 MHz, T=[-40 C, 105 C], Vcc=[1.8 V, 5.5 V]", - "ATmega3290A-AU: TQFP100, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega3290A-AUR: TQFP100, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 151; - - memory "eeprom" - min_write_delay = 3600; - max_write_delay = 3600; - ; -; - -#------------------------------------------------------------ -# ATmega3290PA -#------------------------------------------------------------ - -part parent "m3290" # m3290pa - desc = "ATmega3290PA"; - id = "m3290pa"; - variants = - "ATmega3290PA-AN: TQFP100, Fmax=20 MHz, T=[-40 C, 105 C], Vcc=[1.8 V, 5.5 V]", - "ATmega3290PA-ANR: TQFP100, Fmax=20 MHz, T=[-40 C, 105 C], Vcc=[1.8 V, 5.5 V]", - "ATmega3290PA-AU: TQFP100, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega3290PA-AUR: TQFP100, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 153; - signature = 0x1e 0x95 0x0c; - - memory "eeprom" - min_write_delay = 3600; - max_write_delay = 3600; - ; -; - -#------------------------------------------------------------ -# ATmega649 -#------------------------------------------------------------ - -part parent "m169" # m649 - desc = "ATmega649"; - id = "m649"; - variants = - "ATmega649: N/A, Fmax=16 MHz, T=[N/A, N/A], Vcc=[N/A, N/A]", - "ATmega649-16AU: TQFP64, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[4.5 V, 5.5 V]", - "ATmega649-16AUR: TQFP64, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega649-16MU: MLF64, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega649-16MUR: VQFN64, Fmax=16 MHz, T=[N/A, N/A], Vcc=[2.7 V, 5.5 V]", - "ATmega649V-8AU: TQFP64, Fmax=8 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega649V-8AUR: TQFP64, Fmax=8 MHz, T=[-40 C, 105 C], Vcc=[1.8 V, 5.5 V]", - "ATmega649V-8MU: MLF64, Fmax=8 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega649V-8MUR: VQFN64, Fmax=8 MHz, T=[N/A, N/A], Vcc=[1.8 V, 5.5 V]"; - prog_modes = PM_SPM | PM_ISP | PM_HVPP | PM_JTAG; - mcuid = 135; - boot_section_size = 1024; - stk500_devcode = 0x00; -# stk500_devcode = 0x85; # no STK500 support, only STK500v2 -# avr910_devcode = 0x?; # try the ATmega169 one: - avr910_devcode = 0x75; - signature = 0x1e 0x96 0x03; - reset = io; - resetdelay = 15; - ocdrev = 3; - - memory "eeprom" - size = 2048; - page_size = 8; - readback = 0x00 0x00; - delay = 10; - read = "1010.0000--xxxx.xaaa--aaaa.aaaa--oooo.oooo"; - write = "1100.0000--xxxx.xaaa--aaaa.aaaa--iiii.iiii"; - loadpage_lo = "1100.0001--0000.0000--0000.0aaa--iiii.iiii"; - writepage = "1100.0010--00xx.xaaa--aaaa.a000--xxxx.xxxx"; - ; - - memory "flash" - size = 0x10000; - page_size = 256; - num_pages = 256; - readback = 0x00 0x00; - delay = 10; - read_lo = "0010.0000--aaaa.aaaa--aaaa.aaaa--oooo.oooo"; - read_hi = "0010.1000--aaaa.aaaa--aaaa.aaaa--oooo.oooo"; - loadpage_lo = "0100.0000--xxxx.xxxx--xaaa.aaaa--iiii.iiii"; - loadpage_hi = "0100.1000--xxxx.xxxx--xaaa.aaaa--iiii.iiii"; - writepage = "0100.1100--aaaa.aaaa--axxx.xxxx--xxxx.xxxx"; - ; - - memory "efuse" - bitmask = 0x07; - write = "1010.1100--1010.0100--xxxx.xxxx--xxxx.xiii"; - ; - - memory "sram" - size = 4096; - ; -; - -#------------------------------------------------------------ -# ATmega649P -#------------------------------------------------------------ - -part parent "m649" # m649p - desc = "ATmega649P"; - id = "m649p"; - variants = - "ATmega649P-AU: TQFP64, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega649P-AUR: TQFP64, Fmax=N/A, T=[N/A, N/A], Vcc=[N/A, N/A]", - "ATmega649P-MU: VQFN64, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega649P-MUR: VQFN64, Fmax=N/A, T=[N/A, N/A], Vcc=[N/A, N/A]"; - mcuid = 137; - signature = 0x1e 0x96 0x0b; - - memory "eeprom" - min_write_delay = 3600; - max_write_delay = 3600; - ; -; - -#------------------------------------------------------------ -# ATmega649A -#------------------------------------------------------------ - -part parent "m649" # m649a - desc = "ATmega649A"; - id = "m649a"; - variants = - "ATmega649A-AU: TQFP64, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega649A-AUR: TQFP64, Fmax=16 MHz, T=[N/A, N/A], Vcc=[1.8 V, 5.5 V]", - "ATmega649A-MU: VQFN64, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega649A-MUR: VQFN64, Fmax=16 MHz, T=[N/A, N/A], Vcc=[1.8 V, 5.5 V]"; - mcuid = 136; - - memory "eeprom" - min_write_delay = 3600; - max_write_delay = 3600; - ; -; - -#------------------------------------------------------------ -# ATmega6490 -#------------------------------------------------------------ - -part parent "m169" # m6490 - desc = "ATmega6490"; - id = "m6490"; - variants = - "ATmega6490: N/A, Fmax=16 MHz, T=[N/A, N/A], Vcc=[N/A, N/A]", - "ATmega6490-16AU: TQFP100, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[4.5 V, 5.5 V]", - "ATmega6490-16AUR: TQFP100, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega6490V-8AU: TQFP100, Fmax=8 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega6490V-8AUR: TQFP100, Fmax=8 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]"; - prog_modes = PM_SPM | PM_ISP | PM_HVPP | PM_JTAG; - mcuid = 157; - n_interrupts = 25; - boot_section_size = 1024; - stk500_devcode = 0x00; - avr910_devcode = 0x75; - signature = 0x1e 0x96 0x04; - reset = io; - resetdelay = 15; - ocdrev = 3; - - memory "eeprom" - size = 2048; - page_size = 8; - readback = 0x00 0x00; - delay = 10; - read = "1010.0000--xxxx.xaaa--aaaa.aaaa--oooo.oooo"; - write = "1100.0000--xxxx.xaaa--aaaa.aaaa--iiii.iiii"; - loadpage_lo = "1100.0001--0000.0000--0000.0aaa--iiii.iiii"; - writepage = "1100.0010--00xx.xaaa--aaaa.a000--xxxx.xxxx"; - ; - - memory "flash" - size = 0x10000; - page_size = 256; - num_pages = 256; - readback = 0x00 0x00; - delay = 10; - read_lo = "0010.0000--aaaa.aaaa--aaaa.aaaa--oooo.oooo"; - read_hi = "0010.1000--aaaa.aaaa--aaaa.aaaa--oooo.oooo"; - loadpage_lo = "0100.0000--xxxx.xxxx--xaaa.aaaa--iiii.iiii"; - loadpage_hi = "0100.1000--xxxx.xxxx--xaaa.aaaa--iiii.iiii"; - writepage = "0100.1100--aaaa.aaaa--axxx.xxxx--xxxx.xxxx"; - ; - - memory "efuse" - bitmask = 0x07; - write = "1010.1100--1010.0100--xxxx.xxxx--xxxx.xiii"; - ; - - memory "sram" - size = 4096; - ; -; - -#------------------------------------------------------------ -# ATmega6490P -#------------------------------------------------------------ - -part parent "m6490" # m6490p - desc = "ATmega6490P"; - id = "m6490p"; - variants = - "ATmega6490P-AU: TQFP100, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega6490P-AUR: TQFP100, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 159; - signature = 0x1e 0x96 0x0c; - - memory "eeprom" - min_write_delay = 3600; - max_write_delay = 3600; - ; -; - -#------------------------------------------------------------ -# ATmega6490A -#------------------------------------------------------------ - -part parent "m6490" # m6490a - desc = "ATmega6490A"; - id = "m6490a"; - variants = - "ATmega6490A-AU: TQFP100, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega6490A-AUR: TQFP100, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 158; - - memory "eeprom" - min_write_delay = 3600; - max_write_delay = 3600; - ; -; - -#------------------------------------------------------------ -# ATmega8HVA -#------------------------------------------------------------ - -part parent ".classic" # m8hva - desc = "ATmega8HVA"; - id = "m8hva"; - variants = - "ATmega8HVA-4CKU: WFLGA36, Fmax=4 MHz, T=[-20 C, 85 C], Vcc=[1.8 V, 9 V]", - "ATmega8HVA-4CKUR: WFLGA36, Fmax=4 MHz, T=[-20 C, 85 C], Vcc=[1.8 V, 9 V]", - "ATmega8HVA-4TU: TSSOP28, Fmax=4 MHz, T=[-20 C, 85 C], Vcc=[1.8 V, 9 V]", - "ATmega8HVA-4TUR: TSSOP28, Fmax=4 MHz, T=[-20 C, 85 C], Vcc=[1.8 V, 9 V]"; - prog_modes = PM_SPM | PM_ISP | PM_HVSP | PM_debugWIRE; - mcuid = 47; - archnum = 4; - n_interrupts = 21; - chip_erase_delay = 4000; - signature = 0x1e 0x93 0x10; - reset = io; - timeout = 200; - stabdelay = 100; - cmdexedelay = 25; - synchloops = 32; - pollindex = 3; - pollvalue = 0x53; - predelay = 1; - postdelay = 1; - pollmethod = 1; - hvsp_controlstack = - 0x4c, 0x0c, 0x1c, 0x2c, 0x3c, 0x64, 0x74, 0x66, - 0x68, 0x78, 0x68, 0x68, 0x7a, 0x6a, 0x68, 0x78, - 0x78, 0x7d, 0x6d, 0x0c, 0x80, 0x40, 0x20, 0x10, - 0x11, 0x08, 0x04, 0x02, 0x03, 0x08, 0x04, 0x0f; - flash_instr = 0xb6, 0x01, 0x11; - eeprom_instr = - 0xbd, 0xf2, 0xbd, 0xe1, 0xbb, 0xcf, 0xb4, 0x00, - 0xbe, 0x01, 0xb6, 0x01, 0xbc, 0x00, 0xbb, 0xbf, - 0x99, 0xf9, 0xbb, 0xaf; - hventerstabdelay = 100; - latchcycles = 1; - togglevtg = 1; - poweroffdelay = 25; - resetdelayms = 1; - resetdelayus = 70; - hvleavestabdelay = 101; - resetdelay = 26; - chiperasepolltimeout = 40; - chiperasetime = 1; - programfusepolltimeout = 25; - programlockpolltimeout = 25; - synchcycles = 6; - idr = 0x31; - spmcr = 0x57; - eecr = 0x3f; - ocdrev = 1; - - memory "eeprom" - size = 256; - page_size = 4; - min_write_delay = 4000; - max_write_delay = 4000; - mode = 0x41; - delay = 20; - blocksize = 4; - readsize = 256; - read = "1010.0000--0000.0000--aaaa.aaaa--oooo.oooo"; - write = "1100.0000--0000.0000--aaaa.aaaa--iiii.iiii"; - loadpage_lo = "1100.0001--0000.0000--0000.00aa--iiii.iiii"; - writepage = "1100.0010--0000.0000--aaaa.aa00--xxxx.xxxx"; - ; - - memory "flash" - paged = yes; - size = 8192; - page_size = 128; - num_pages = 64; - min_write_delay = 4500; - max_write_delay = 4500; - mode = 0x41; - delay = 10; - blocksize = 128; - readsize = 256; - read_lo = "0010.0000--0000.aaaa--aaaa.aaaa--oooo.oooo"; - read_hi = "0010.1000--0000.aaaa--aaaa.aaaa--oooo.oooo"; - loadpage_lo = "0100.0000--0000.0000--00aa.aaaa--iiii.iiii"; - loadpage_hi = "0100.1000--0000.0000--00aa.aaaa--iiii.iiii"; - writepage = "0100.1100--0000.aaaa--aa00.0000--xxxx.xxxx"; - ; - - memory "fuse" - size = 1; - initval = 0xdf; - min_write_delay = 4500; - max_write_delay = 4500; - read = "0101.0000--0000.0000--xxxx.xxxx--oooo.oooo"; - write = "1010.1100--1010.0000--xxxx.xxxx--iiii.iiii"; - ; - - memory "lock" - bitmask = 0x03; - min_write_delay = 4500; - max_write_delay = 4500; - read = "0101.1000--0000.0000--xxxx.xxxx--1111.11oo"; - write = "1010.1100--111x.xxxx--xxxx.xxxx--1111.11ii"; - ; - - memory "sram" - size = 512; - ; -; - -#------------------------------------------------------------ -# ATmega16HVA -#------------------------------------------------------------ - -part parent "m8hva" # m16hva - desc = "ATmega16HVA"; - id = "m16hva"; - variants = - "ATmega16HVA-4CKU: WFLGA36, Fmax=4 MHz, T=[-20 C, 85 C], Vcc=[1.8 V, 9 V]", - "ATmega16HVA-4CKUR: WFLGA36, Fmax=4 MHz, T=[-20 C, 85 C], Vcc=[1.8 V, 9 V]", - "ATmega16HVA-4TU: TSSOP28, Fmax=4 MHz, T=[-20 C, 85 C], Vcc=[1.8 V, 9 V]", - "ATmega16HVA-4TUR: TSSOP28, Fmax=4 MHz, T=[-20 C, 85 C], Vcc=[1.8 V, 9 V]"; - mcuid = 51; - archnum = 5; - signature = 0x1e 0x94 0x0c; - - memory "flash" - size = 0x4000; - num_pages = 128; - read_lo = "0010.0000--000a.aaaa--aaaa.aaaa--oooo.oooo"; - read_hi = "0010.1000--000a.aaaa--aaaa.aaaa--oooo.oooo"; - writepage = "0100.1100--000a.aaaa--aa00.0000--xxxx.xxxx"; - ; -; - -#------------------------------------------------------------ -# ATmega32HVE2 -#------------------------------------------------------------ - -part parent ".classic" # m32hve2 - desc = "ATmega32HVE2"; - id = "m32hve2"; - variants = - "ATmega32HVE2-PLPW: VFQFN48, Fmax=15 MHz, T=[-40 C, 125 C], Vcc=[3 V, 3.6 V]", - "ATmega32HVE2-PLQW: VFQFN48, Fmax=15 MHz, T=[-40 C, 125 C], Vcc=[3 V, 3.6 V]"; - prog_modes = PM_SPM | PM_ISP | PM_HVSP | PM_debugWIRE; - mcuid = 379; - archnum = 5; - n_interrupts = 25; - n_boot_sections = 4; - boot_section_size = 512; - chip_erase_delay = 4000; - signature = 0x1e 0x95 0x13; - reset = io; - timeout = 200; - stabdelay = 100; - cmdexedelay = 25; - synchloops = 32; - pollindex = 3; - pollvalue = 0x53; - predelay = 1; - postdelay = 1; - pollmethod = 1; - hvsp_controlstack = - 0x4c, 0x0c, 0x1c, 0x2c, 0x3c, 0x64, 0x74, 0x66, - 0x68, 0x78, 0x68, 0x68, 0x7a, 0x6a, 0x68, 0x78, - 0x78, 0x7d, 0x6d, 0x0c, 0x80, 0x40, 0x20, 0x10, - 0x11, 0x08, 0x04, 0x02, 0x03, 0x08, 0x04, 0x0f; - flash_instr = 0xb6, 0x01, 0x11; - eeprom_instr = - 0xbd, 0xf2, 0xbd, 0xe1, 0xbb, 0xcf, 0xb4, 0x00, - 0xbe, 0x01, 0xb6, 0x01, 0xbc, 0x00, 0xbb, 0xbf, - 0x99, 0xf9, 0xbb, 0xaf; - hventerstabdelay = 100; - latchcycles = 1; - togglevtg = 1; - poweroffdelay = 25; - resetdelayms = 1; - resetdelayus = 70; - hvleavestabdelay = 101; - resetdelay = 26; - chiperasepolltimeout = 40; - chiperasetime = 1; - programfusepolltimeout = 25; - programlockpolltimeout = 25; - synchcycles = 6; - idr = 0x31; - spmcr = 0x57; - eecr = 0x3f; - ocdrev = 1; - - memory "eeprom" - size = 1024; - page_size = 4; - min_write_delay = 4000; - max_write_delay = 4000; - mode = 0x41; - delay = 20; - blocksize = 4; - readsize = 256; - read = "1010.0000--0000.00aa--aaaa.aaaa--oooo.oooo"; - write = "1100.0000--0000.00aa--aaaa.aaaa--iiii.iiii"; - loadpage_lo = "1100.0001--0000.0000--0000.00aa--iiii.iiii"; - writepage = "1100.0010--0000.00aa--aaaa.aa00--xxxx.xxxx"; - ; - - memory "flash" - paged = yes; - size = 0x8000; - page_size = 128; - num_pages = 256; - min_write_delay = 4500; - max_write_delay = 4500; - mode = 0x41; - delay = 10; - blocksize = 128; - readsize = 256; - read_lo = "0010.0000--0aaa.aaaa--aaaa.aaaa--oooo.oooo"; - read_hi = "0010.1000--0aaa.aaaa--aaaa.aaaa--oooo.oooo"; - loadpage_lo = "0100.0000--0000.0000--00aa.aaaa--iiii.iiii"; - loadpage_hi = "0100.1000--0000.0000--00aa.aaaa--iiii.iiii"; - writepage = "0100.1100--0aaa.aaaa--aa00.0000--xxxx.xxxx"; - ; - - memory "lfuse" - size = 1; - initval = 0xd7; - min_write_delay = 4500; - max_write_delay = 4500; - read = "0101.0000--0000.0000--xxxx.xxxx--oooo.oooo"; - write = "1010.1100--1010.0000--xxxx.xxxx--iiii.iiii"; - ; - - memory "hfuse" - size = 1; - initval = 0xf9; - bitmask = 0x0f; - min_write_delay = 4500; - max_write_delay = 4500; - read = "0101.1000--0000.1000--xxxx.xxxx--1111.oooo"; - write = "1010.1100--1010.1000--xxxx.xxxx--1111.iiii"; - ; - - memory "lock" - bitmask = 0x3f; - min_write_delay = 4500; - max_write_delay = 4500; - read = "0101.1000--0000.0000--xxxx.xxxx--11oo.oooo"; - ; - - memory "sram" - size = 4096; - ; -; - -#------------------------------------------------------------ -# ATmega64HVE2 -#------------------------------------------------------------ - -part parent ".classic" # m64hve2 - desc = "ATmega64HVE2"; - id = "m64hve2"; - variants = - "ATmega64HVE2: N/A, Fmax=N/A, T=[N/A, N/A], Vcc=[3.0 V, 3.6 V]", - "ATmega64HVE2-PLPW: VFQFN48, Fmax=15 MHz, T=[-40 C, 125 C], Vcc=[3 V, 3.6 V]", - "ATmega64HVE2-PLQW: VFQFN48, Fmax=15 MHz, T=[-40 C, 125 C], Vcc=[3 V, 3.6 V]"; - prog_modes = PM_SPM | PM_ISP | PM_HVSP | PM_debugWIRE; - mcuid = 77; - archnum = 5; - n_interrupts = 25; - n_boot_sections = 4; - boot_section_size = 1024; - chip_erase_delay = 4000; - signature = 0x1e 0x96 0x10; - reset = io; - timeout = 200; - stabdelay = 100; - cmdexedelay = 25; - synchloops = 32; - pollindex = 3; - pollvalue = 0x53; - predelay = 1; - postdelay = 1; - pollmethod = 1; - hvsp_controlstack = - 0x4c, 0x0c, 0x1c, 0x2c, 0x3c, 0x64, 0x74, 0x66, - 0x68, 0x78, 0x68, 0x68, 0x7a, 0x6a, 0x68, 0x78, - 0x78, 0x7d, 0x6d, 0x0c, 0x80, 0x40, 0x20, 0x10, - 0x11, 0x08, 0x04, 0x02, 0x03, 0x08, 0x04, 0x0f; - flash_instr = 0xb6, 0x01, 0x11; - eeprom_instr = - 0xbd, 0xf2, 0xbd, 0xe1, 0xbb, 0xcf, 0xb4, 0x00, - 0xbe, 0x01, 0xb6, 0x01, 0xbc, 0x00, 0xbb, 0xbf, - 0x99, 0xf9, 0xbb, 0xaf; - hventerstabdelay = 100; - latchcycles = 1; - togglevtg = 1; - poweroffdelay = 25; - resetdelayms = 1; - resetdelayus = 70; - hvleavestabdelay = 101; - resetdelay = 26; - chiperasepolltimeout = 40; - chiperasetime = 1; - programfusepolltimeout = 25; - programlockpolltimeout = 25; - synchcycles = 6; - idr = 0x31; - spmcr = 0x57; - eecr = 0x3f; - ocdrev = 1; - - memory "eeprom" - size = 1024; - page_size = 4; - min_write_delay = 4000; - max_write_delay = 4000; - mode = 0x41; - delay = 20; - blocksize = 4; - readsize = 256; - read = "1010.0000--0000.00aa--aaaa.aaaa--oooo.oooo"; - write = "1100.0000--0000.00aa--aaaa.aaaa--iiii.iiii"; - loadpage_lo = "1100.0001--0000.0000--0000.00aa--iiii.iiii"; - writepage = "1100.0010--0000.00aa--aaaa.aa00--xxxx.xxxx"; - ; - - memory "flash" - paged = yes; - size = 0x10000; - page_size = 128; - num_pages = 512; - min_write_delay = 4500; - max_write_delay = 4500; - mode = 0x41; - delay = 10; - blocksize = 128; - readsize = 256; - read_lo = "0010.0000--0aaa.aaaa--aaaa.aaaa--oooo.oooo"; - read_hi = "0010.1000--0aaa.aaaa--aaaa.aaaa--oooo.oooo"; - loadpage_lo = "0100.0000--0000.0000--00aa.aaaa--iiii.iiii"; - loadpage_hi = "0100.1000--0000.0000--00aa.aaaa--iiii.iiii"; - writepage = "0100.1100--0aaa.aaaa--aa00.0000--xxxx.xxxx"; - ; - - memory "lfuse" - size = 1; - initval = 0xd7; - min_write_delay = 4500; - max_write_delay = 4500; - read = "0101.0000--0000.0000--xxxx.xxxx--oooo.oooo"; - write = "1010.1100--1010.0000--xxxx.xxxx--iiii.iiii"; - ; - - memory "hfuse" - size = 1; - initval = 0xf9; - bitmask = 0x0f; - min_write_delay = 4500; - max_write_delay = 4500; - read = "0101.1000--0000.1000--xxxx.xxxx--1111.oooo"; - write = "1010.1100--1010.1000--xxxx.xxxx--1111.iiii"; - ; - - memory "lock" - bitmask = 0x3f; - min_write_delay = 4500; - max_write_delay = 4500; - read = "0101.1000--0000.0000--xxxx.xxxx--11oo.oooo"; - ; - - memory "sram" - size = 4096; - ; -; - -#------------------------------------------------------------ -# ATmega16HVB -#------------------------------------------------------------ - -part parent ".classic" # m16hvb - desc = "ATmega16HVB"; - id = "m16hvb"; - variants = - "ATmega16HVB: N/A, Fmax=N/A, T=[N/A, N/A], Vcc=[4 V, 18 V]", - "ATmega16HVB-8X3: TFSOP44, Fmax=8 MHz, T=[-40 C, 85 C], Vcc=[4 V, 25 V]", - "ATmega16HVB-8X3R: TFSOP44, Fmax=8 MHz, T=[-40 C, 85 C], Vcc=[4 V, 25 V]"; - prog_modes = PM_SPM | PM_ISP | PM_HVPP | PM_debugWIRE; - mcuid = 52; - archnum = 5; - n_interrupts = 29; - n_boot_sections = 4; - boot_section_size = 512; - chip_erase_delay = 4000; - pagel = 0xa3; - bs2 = 0xa2; - signature = 0x1e 0x94 0x0d; - reset = io; - timeout = 200; - stabdelay = 100; - cmdexedelay = 25; - synchloops = 32; - pollindex = 3; - pollvalue = 0x53; - predelay = 1; - postdelay = 1; - pollmethod = 1; - pp_controlstack = - 0x0e, 0x1e, 0x0f, 0x1f, 0x2e, 0x3e, 0x2f, 0x3f, - 0x4e, 0x5e, 0x4f, 0x5f, 0x6e, 0x7e, 0x6f, 0x7f, - 0x66, 0x76, 0x67, 0x77, 0x6a, 0x7a, 0x6b, 0x7b, - 0xbe, 0xfd, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00; - flash_instr = 0xb6, 0x01, 0x11; - eeprom_instr = - 0xbd, 0xf2, 0xbd, 0xe1, 0xbb, 0xcf, 0xb4, 0x00, - 0xbe, 0x01, 0xb6, 0x01, 0xbc, 0x00, 0xbb, 0xbf, - 0x99, 0xf9, 0xbb, 0xaf; - hventerstabdelay = 100; - latchcycles = 6; - hvleavestabdelay = 15; - resetdelay = 15; - chiperasepolltimeout = 10; - programfusepolltimeout = 5; - programlockpolltimeout = 5; - idr = 0x31; - spmcr = 0x57; - eecr = 0x3f; - ocdrev = 1; - - memory "eeprom" - size = 512; - page_size = 4; - min_write_delay = 4000; - max_write_delay = 4000; - mode = 0x41; - delay = 10; - blocksize = 4; - readsize = 256; - read = "1010.0000--0000.000a--aaaa.aaaa--oooo.oooo"; - write = "1100.0000--0000.000a--aaaa.aaaa--iiii.iiii"; - loadpage_lo = "1100.0001--0000.0000--0000.00aa--iiii.iiii"; - writepage = "1100.0010--0000.000a--aaaa.aa00--xxxx.xxxx"; - ; - - memory "flash" - paged = yes; - size = 0x4000; - page_size = 128; - num_pages = 128; - min_write_delay = 4500; - max_write_delay = 4500; - mode = 0x41; - delay = 10; - blocksize = 128; - readsize = 256; - read_lo = "0010.0000--000a.aaaa--aaaa.aaaa--oooo.oooo"; - read_hi = "0010.1000--000a.aaaa--aaaa.aaaa--oooo.oooo"; - loadpage_lo = "0100.0000--0000.0000--00aa.aaaa--iiii.iiii"; - loadpage_hi = "0100.1000--0000.0000--00aa.aaaa--iiii.iiii"; - writepage = "0100.1100--000a.aaaa--aa00.0000--xxxx.xxxx"; - ; - - memory "lfuse" - size = 1; - initval = 0xdd; - min_write_delay = 4500; - max_write_delay = 4500; - read = "0101.0000--0000.0000--xxxx.xxxx--oooo.oooo"; - write = "1010.1100--1010.0000--xxxx.xxxx--iiii.iiii"; - ; - - memory "hfuse" - size = 1; - initval = 0xe9; - bitmask = 0x1f; - min_write_delay = 4500; - max_write_delay = 4500; - read = "0101.1000--0000.1000--xxxx.xxxx--111o.oooo"; - write = "1010.1100--1010.1000--xxxx.xxxx--111i.iiii"; - ; - - memory "lock" - bitmask = 0x3f; - min_write_delay = 4500; - max_write_delay = 4500; - read = "0101.1000--0000.0000--xxxx.xxxx--11oo.oooo"; - ; - - memory "sram" - size = 1024; - ; -; - -#------------------------------------------------------------ -# ATmega16HVBrevB -#------------------------------------------------------------ - -part parent "m16hvb" # m16hvbrevb - desc = "ATmega16HVBrevB"; - id = "m16hvbrevb"; - variants = - "ATMEGA16HVB-8X3: TSSOP44, Fmax=8 MHz, T=[-40 C, 85 C], Vcc=[3.0 V, 4.5 V]"; - mcuid = 53; -; - -#------------------------------------------------------------ -# ATmega32HVB -#------------------------------------------------------------ - -part parent "m16hvb" # m32hvb - desc = "ATmega32HVB"; - id = "m32hvb"; - variants = - "ATmega32HVB: N/A, Fmax=N/A, T=[N/A, N/A], Vcc=[4 V, 18 V]", - "ATmega32HVB-8X3: TFSOP44, Fmax=8 MHz, T=[-40 C, 85 C], Vcc=[4 V, 25 V]", - "ATmega32HVB-8X3R: TFSOP44, Fmax=8 MHz, T=[-40 C, 85 C], Vcc=[4 V, 25 V]"; - mcuid = 60; - signature = 0x1e 0x95 0x10; - - memory "eeprom" - size = 1024; - read = "1010.0000--0000.00aa--aaaa.aaaa--oooo.oooo"; - write = "1100.0000--0000.00aa--aaaa.aaaa--iiii.iiii"; - writepage = "1100.0010--0000.00aa--aaaa.aa00--xxxx.xxxx"; - ; - - memory "flash" - size = 0x8000; - num_pages = 256; - read_lo = "0010.0000--00aa.aaaa--aaaa.aaaa--oooo.oooo"; - read_hi = "0010.1000--00aa.aaaa--aaaa.aaaa--oooo.oooo"; - writepage = "0100.1100--00aa.aaaa--aa00.0000--xxxx.xxxx"; - ; - - memory "sram" - size = 2048; - ; -; - -#------------------------------------------------------------ -# ATmega32HVBrevB -#------------------------------------------------------------ - -part parent "m32hvb" # m32hvbrevb - desc = "ATmega32HVBrevB"; - id = "m32hvbrevb"; - variants = - "ATMEGA32HVB-8X3: TSSOP44, Fmax=8 MHz, T=[-40 C, 85 C], Vcc=[3.0 V, 4.5 V]"; - mcuid = 61; -; - -#------------------------------------------------------------ -# ATmega16M1 -#------------------------------------------------------------ - -part parent ".classic" # m16m1 - desc = "ATmega16M1"; - id = "m16m1"; - variants = - "ATmega16M1-AU: TQFP32, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega16M1-MU: QFN32, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]"; - prog_modes = PM_SPM | PM_ISP | PM_HVPP | PM_debugWIRE; - mcuid = 54; - archnum = 5; - n_interrupts = 31; - n_boot_sections = 4; - boot_section_size = 512; - chip_erase_delay = 9000; - pagel = 0xd7; - bs2 = 0xe2; - signature = 0x1e 0x94 0x84; - reset = io; - timeout = 200; - stabdelay = 100; - cmdexedelay = 25; - synchloops = 32; - pollindex = 3; - pollvalue = 0x53; - predelay = 1; - postdelay = 1; - pollmethod = 1; - pp_controlstack = - 0x0e, 0x1e, 0x0f, 0x1f, 0x2e, 0x3e, 0x2f, 0x3f, - 0x4e, 0x5e, 0x4f, 0x5f, 0x6e, 0x7e, 0x6f, 0x7f, - 0x66, 0x76, 0x67, 0x77, 0x6a, 0x7a, 0x6b, 0x7b, - 0xbe, 0xfd, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00; - flash_instr = 0xb6, 0x01, 0x11; - eeprom_instr = - 0xbd, 0xf2, 0xbd, 0xe1, 0xbb, 0xcf, 0xb4, 0x00, - 0xbe, 0x01, 0xb6, 0x01, 0xbc, 0x00, 0xbb, 0xbf, - 0x99, 0xf9, 0xbb, 0xaf; - hventerstabdelay = 100; - latchcycles = 5; - togglevtg = 1; - poweroffdelay = 15; - resetdelayms = 1; - hvleavestabdelay = 15; - resetdelay = 15; - chiperasepolltimeout = 10; - programfusepolltimeout = 5; - programlockpolltimeout = 5; - idr = 0x31; - spmcr = 0x57; - eecr = 0x3f; - ocdrev = 1; - - memory "eeprom" - size = 512; - page_size = 4; - min_write_delay = 3600; - max_write_delay = 3600; - mode = 0x41; - delay = 10; - blocksize = 4; - readsize = 256; - read = "1010.0000--0000.000a--aaaa.aaaa--oooo.oooo"; - write = "1100.0000--0000.000a--aaaa.aaaa--iiii.iiii"; - loadpage_lo = "1100.0001--0000.0000--0000.00aa--iiii.iiii"; - writepage = "1100.0010--0000.000a--aaaa.aa00--xxxx.xxxx"; - ; - - memory "flash" - paged = yes; - size = 0x4000; - page_size = 128; - num_pages = 128; - min_write_delay = 4500; - max_write_delay = 4500; - mode = 0x41; - delay = 10; - blocksize = 128; - readsize = 256; - read_lo = "0010.0000--000a.aaaa--aaaa.aaaa--oooo.oooo"; - read_hi = "0010.1000--000a.aaaa--aaaa.aaaa--oooo.oooo"; - loadpage_lo = "0100.0000--0000.0000--00aa.aaaa--iiii.iiii"; - loadpage_hi = "0100.1000--0000.0000--00aa.aaaa--iiii.iiii"; - writepage = "0100.1100--000a.aaaa--aa00.0000--xxxx.xxxx"; - ; - - memory "lfuse" - size = 1; - initval = 0x62; - min_write_delay = 4500; - max_write_delay = 4500; - read = "0101.0000--0000.0000--xxxx.xxxx--oooo.oooo"; - write = "1010.1100--1010.0000--xxxx.xxxx--iiii.iiii"; - ; - - memory "hfuse" - size = 1; - initval = 0xd9; - min_write_delay = 4500; - max_write_delay = 4500; - read = "0101.1000--0000.1000--xxxx.xxxx--oooo.oooo"; - write = "1010.1100--1010.1000--xxxx.xxxx--iiii.iiii"; - ; - - memory "efuse" - size = 1; - initval = 0xff; - bitmask = 0x3f; - min_write_delay = 4500; - max_write_delay = 4500; - read = "0101.0000--0000.1000--xxxx.xxxx--11oo.oooo"; - write = "1010.1100--1010.0100--xxxx.xxxx--11ii.iiii"; - ; - - memory "lock" - bitmask = 0x3f; - min_write_delay = 4500; - max_write_delay = 4500; - read = "0101.1000--0000.0000--xxxx.xxxx--11oo.oooo"; - ; - - memory "sram" - size = 1024; - ; -; - -#------------------------------------------------------------ -# ATmega32C1 -#------------------------------------------------------------ - -part parent "m16m1" # m32c1 - desc = "ATmega32C1"; - id = "m32c1"; - variants = - "ATmega32C1-15AD: TQFP32, Fmax=16 MHz, T=[-40 C, 150 C], Vcc=[2.7 V, 5.5 V]", - "ATmega32C1-15AZ: TQFP32, Fmax=16 MHz, T=[-40 C, 125 C], Vcc=[2.7 V, 5.5 V]", - "ATmega32C1-15MD: VQFN32, Fmax=16 MHz, T=[-40 C, 150 C], Vcc=[2.7 V, 5.5 V]", - "ATmega32C1-15MZ: VQFN32, Fmax=16 MHz, T=[-40 C, 125 C], Vcc=[2.7 V, 5.5 V]", - "ATmega32C1-AU: TQFP32, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega32C1-ESAD: TQFP32, Fmax=16 MHz, T=[-40 C, 150 C], Vcc=[2.7 V, 5.5 V]", - "ATmega32C1-ESMD: VQFN32, Fmax=16 MHz, T=[-40 C, 150 C], Vcc=[2.7 V, 5.5 V]", - "ATmega32C1-MU: QFN32, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]"; - mcuid = 62; - signature = 0x1e 0x95 0x86; - - memory "eeprom" - size = 1024; - read = "1010.0000--0000.00aa--aaaa.aaaa--oooo.oooo"; - write = "1100.0000--0000.00aa--aaaa.aaaa--iiii.iiii"; - writepage = "1100.0010--0000.00aa--aaaa.aa00--xxxx.xxxx"; - ; - - memory "flash" - size = 0x8000; - num_pages = 256; - read_lo = "0010.0000--00aa.aaaa--aaaa.aaaa--oooo.oooo"; - read_hi = "0010.1000--00aa.aaaa--aaaa.aaaa--oooo.oooo"; - writepage = "0100.1100--00aa.aaaa--aa00.0000--xxxx.xxxx"; - ; - - memory "sram" - size = 2048; - ; -; - -#------------------------------------------------------------ -# ATmega32M1 -#------------------------------------------------------------ - -part parent "m16m1" # m32m1 - desc = "ATmega32M1"; - id = "m32m1"; - variants = - "ATmega32M1: N/A, Fmax=16 MHz, T=[N/A, N/A], Vcc=[2.7 V, 5.5 V]", - "ATmega32M1-AU: TQFP32, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega32M1-AUR: TQFP32, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega32M1-MU: QFN32, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]"; - mcuid = 63; - signature = 0x1e 0x95 0x84; - - memory "eeprom" - size = 1024; - read = "1010.0000--0000.00aa--aaaa.aaaa--oooo.oooo"; - write = "1100.0000--0000.00aa--aaaa.aaaa--iiii.iiii"; - writepage = "1100.0010--0000.00aa--aaaa.aa00--xxxx.xxxx"; - ; - - memory "flash" - size = 0x8000; - num_pages = 256; - read_lo = "0010.0000--00aa.aaaa--aaaa.aaaa--oooo.oooo"; - read_hi = "0010.1000--00aa.aaaa--aaaa.aaaa--oooo.oooo"; - writepage = "0100.1100--00aa.aaaa--aa00.0000--xxxx.xxxx"; - ; - - memory "sram" - size = 2048; - ; -; - -#------------------------------------------------------------ -# ATmega64C1 -#------------------------------------------------------------ - -part parent "m16m1" # m64c1 - desc = "ATmega64C1"; - id = "m64c1"; - variants = - "ATmega64C1-15AD: TQFP32, Fmax=16 MHz, T=[-40 C, 150 C], Vcc=[2.7 V, 5.5 V]", - "ATmega64C1-15AZ: TQFP32, Fmax=16 MHz, T=[-40 C, 125 C], Vcc=[2.7 V, 5.5 V]", - "ATmega64C1-15MD: VQFN32, Fmax=16 MHz, T=[-40 C, 150 C], Vcc=[2.7 V, 5.5 V]", - "ATmega64C1-15MZ: VQFN32, Fmax=16 MHz, T=[-40 C, 125 C], Vcc=[2.7 V, 5.5 V]", - "ATmega64C1-AU: TQFP32, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega64C1-ESAZ: TQFP32, Fmax=16 MHz, T=[-40 C, 125 C], Vcc=[2.7 V, 5.5 V]", - "ATmega64C1-ESMZ: VQFN32, Fmax=16 MHz, T=[-40 C, 125 C], Vcc=[2.7 V, 5.5 V]", - "ATmega64C1-MU: QFN32, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]"; - mcuid = 75; - boot_section_size = 1024; - signature = 0x1e 0x96 0x86; - - memory "eeprom" - size = 2048; - page_size = 8; - blocksize = 8; - read = "1010.0000--0000.0aaa--aaaa.aaaa--oooo.oooo"; - write = "1100.0000--0000.0aaa--aaaa.aaaa--iiii.iiii"; - loadpage_lo = "1100.0001--0000.0000--0000.0aaa--iiii.iiii"; - writepage = "1100.0010--0000.0aaa--aaaa.a000--xxxx.xxxx"; - ; - - memory "flash" - size = 0x10000; - page_size = 256; - num_pages = 256; - blocksize = 256; - read_lo = "0010.0000--0aaa.aaaa--aaaa.aaaa--oooo.oooo"; - read_hi = "0010.1000--0aaa.aaaa--aaaa.aaaa--oooo.oooo"; - loadpage_lo = "0100.0000--0000.0000--0aaa.aaaa--iiii.iiii"; - loadpage_hi = "0100.1000--0000.0000--0aaa.aaaa--iiii.iiii"; - writepage = "0100.1100--0aaa.aaaa--a000.0000--xxxx.xxxx"; - ; - - memory "sram" - size = 4096; - ; -; - -#------------------------------------------------------------ -# ATmega64M1 -#------------------------------------------------------------ - -part parent "m16m1" # m64m1 - desc = "ATmega64M1"; - id = "m64m1"; - variants = - "ATmega64M1-15MD: VQFN32, Fmax=16 MHz, T=[N/A, N/A], Vcc=[2.7 V, 5.5 V]", - "ATmega64M1-AU: TQFP32, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega64M1-MU: QFN32, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]"; - mcuid = 76; - boot_section_size = 1024; - signature = 0x1e 0x96 0x84; - - memory "eeprom" - size = 2048; - page_size = 8; - blocksize = 8; - read = "1010.0000--0000.0aaa--aaaa.aaaa--oooo.oooo"; - write = "1100.0000--0000.0aaa--aaaa.aaaa--iiii.iiii"; - loadpage_lo = "1100.0001--0000.0000--0000.0aaa--iiii.iiii"; - writepage = "1100.0010--0000.0aaa--aaaa.a000--xxxx.xxxx"; - ; - - memory "flash" - size = 0x10000; - page_size = 256; - num_pages = 256; - blocksize = 256; - read_lo = "0010.0000--0aaa.aaaa--aaaa.aaaa--oooo.oooo"; - read_hi = "0010.1000--0aaa.aaaa--aaaa.aaaa--oooo.oooo"; - loadpage_lo = "0100.0000--0000.0000--0aaa.aaaa--iiii.iiii"; - loadpage_hi = "0100.1000--0000.0000--0aaa.aaaa--iiii.iiii"; - writepage = "0100.1100--0aaa.aaaa--a000.0000--xxxx.xxxx"; - ; - - memory "sram" - size = 4096; - ; -; - -#------------------------------------------------------------ -# ATmega8U2 -#------------------------------------------------------------ - -part parent ".classic" # m8u2 - desc = "ATmega8U2"; - id = "m8u2"; - variants = - "ATmega8U2-AU: LQFP32, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega8U2-AUR: TQFP32, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega8U2-MU: QFN32, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega8U2-MUR: VQFN32, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]"; - prog_modes = PM_SPM | PM_ISP | PM_HVPP | PM_debugWIRE; - mcuid = 48; - archnum = 35; - n_interrupts = 29; - n_boot_sections = 4; - boot_section_size = 512; - chip_erase_delay = 9000; - pagel = 0xd7; - bs2 = 0xc6; - signature = 0x1e 0x93 0x89; - usbpid = 0x2fee; - reset = io; - timeout = 200; - stabdelay = 100; - cmdexedelay = 25; - synchloops = 32; - pollindex = 3; - pollvalue = 0x53; - predelay = 1; - postdelay = 1; - pollmethod = 1; - pp_controlstack = - 0x0e, 0x1e, 0x0f, 0x1f, 0x2e, 0x3e, 0x2f, 0x3f, - 0x4e, 0x5e, 0x4f, 0x5f, 0x6e, 0x7e, 0x6f, 0x7f, - 0x66, 0x76, 0x67, 0x77, 0x6a, 0x7a, 0x6b, 0x7b, - 0xbe, 0xfd, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00; - flash_instr = 0xb6, 0x01, 0x11; - eeprom_instr = - 0xbd, 0xf2, 0xbd, 0xe1, 0xbb, 0xcf, 0xb4, 0x00, - 0xbe, 0x01, 0xb6, 0x01, 0xbc, 0x00, 0xbb, 0xbf, - 0x99, 0xf9, 0xbb, 0xaf; - hventerstabdelay = 100; - latchcycles = 5; - togglevtg = 1; - poweroffdelay = 15; - resetdelayms = 1; - hvleavestabdelay = 15; - resetdelay = 15; - chiperasepolltimeout = 10; - programfusepolltimeout = 5; - programlockpolltimeout = 5; - idr = 0x31; - spmcr = 0x57; - eecr = 0x3f; - ocdrev = 1; - - memory "eeprom" - size = 512; - page_size = 4; - num_pages = 128; - min_write_delay = 9000; - max_write_delay = 9000; - mode = 0x41; - delay = 20; - blocksize = 4; - readsize = 256; - read = "1010.0000--0000.aaaa--aaaa.aaaa--oooo.oooo"; - write = "1100.0000--0000.aaaa--aaaa.aaaa--iiii.iiii"; - loadpage_lo = "1100.0001--0000.0000--0000.00aa--iiii.iiii"; - writepage = "1100.0010--0000.aaaa--aaaa.aa00--xxxx.xxxx"; - ; - - memory "flash" - paged = yes; - size = 8192; - page_size = 128; - num_pages = 64; - min_write_delay = 4500; - max_write_delay = 4500; - mode = 0x41; - delay = 6; - blocksize = 128; - readsize = 256; - read_lo = "0010.0000--aaaa.aaaa--aaaa.aaaa--oooo.oooo"; - read_hi = "0010.1000--aaaa.aaaa--aaaa.aaaa--oooo.oooo"; - loadpage_lo = "0100.0000--xxxx.xxxx--xxaa.aaaa--iiii.iiii"; - loadpage_hi = "0100.1000--xxxx.xxxx--xxaa.aaaa--iiii.iiii"; - writepage = "0100.1100--aaaa.aaaa--aaxx.xxxx--xxxx.xxxx"; - ; - - memory "lfuse" - size = 1; - initval = 0x5e; - min_write_delay = 9000; - max_write_delay = 9000; - read = "0101.0000--0000.0000--xxxx.xxxx--oooo.oooo"; - write = "1010.1100--1010.0000--xxxx.xxxx--iiii.iiii"; - ; - - memory "hfuse" - size = 1; - initval = 0xd9; - min_write_delay = 9000; - max_write_delay = 9000; - read = "0101.1000--0000.1000--xxxx.xxxx--oooo.oooo"; - write = "1010.1100--1010.1000--xxxx.xxxx--iiii.iiii"; - ; - - memory "efuse" - size = 1; - initval = 0xf4; - bitmask = 0x0f; - min_write_delay = 9000; - max_write_delay = 9000; - read = "0101.0000--0000.1000--xxxx.xxxx--oooo.oooo"; - write = "1010.1100--1010.0100--xxxx.xxxx--iiii.iiii"; - ; - - memory "lock" - bitmask = 0x3f; - min_write_delay = 9000; - max_write_delay = 9000; - ; - - memory "sram" - size = 512; - ; -; - -#------------------------------------------------------------ -# ATmega16U2 -#------------------------------------------------------------ - -part parent "m8u2" # m16u2 - desc = "ATmega16U2"; - id = "m16u2"; - variants = - "ATmega16U2-AU: TQFP32, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega16U2-AUR: TQFP32, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega16U2-MU: QFN32, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega16U2-MUR: QFN32, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]"; - mcuid = 56; - signature = 0x1e 0x94 0x89; - usbpid = 0x2fef; - - memory "flash" - size = 0x4000; - num_pages = 128; - ; -; - -#------------------------------------------------------------ -# ATmega32U2 -#------------------------------------------------------------ - -part parent "m8u2" # m32u2 - desc = "ATmega32U2"; - id = "m32u2"; - variants = - "ATmega32U2-AU: TQFP32, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega32U2-AUR: TQFP32, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega32U2-MU: QFN32, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega32U2-MUR: VQFN32, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]"; - mcuid = 64; - signature = 0x1e 0x95 0x8a; - usbpid = 0x2ff0; - - memory "eeprom" - size = 1024; - num_pages = 256; - ; - - memory "flash" - size = 0x8000; - num_pages = 256; - ; - - memory "sram" - size = 1024; - ; -; - -#------------------------------------------------------------ -# ATmega16u4 -#------------------------------------------------------------ - -part parent ".classic" # m16u4 - desc = "ATmega16U4"; - id = "m16u4"; - variants = - "ATmega16U4-AU: TQFP44, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega16U4-AUR: TQFP44, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega16U4-MU: QFN44, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega16U4-MUR: VQFN44, Fmax=16 MHz, T=[N/A, N/A], Vcc=[2.7 V, 5.5 V]", - "ATmega16U4RC-AU: TQFP44, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega16U4RC-MU: QFN44, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]"; - prog_modes = PM_SPM | PM_ISP | PM_HVPP | PM_JTAG; - mcuid = 57; - archnum = 5; - n_interrupts = 43; - n_boot_sections = 4; - boot_section_size = 512; -# stk500_devcode = 0xB2; -# avr910_devcode = 0x43; - chip_erase_delay = 9000; - pagel = 0xd7; - bs2 = 0xa0; - signature = 0x1e 0x94 0x88; - usbpid = 0x2ff3; - reset = io; - timeout = 200; - stabdelay = 100; - cmdexedelay = 25; - synchloops = 32; - pollindex = 3; - pollvalue = 0x53; - predelay = 1; - postdelay = 1; - pollmethod = 1; - pp_controlstack = - 0x0e, 0x1e, 0x0f, 0x1f, 0x2e, 0x3e, 0x2f, 0x3f, - 0x4e, 0x5e, 0x4f, 0x5f, 0x6e, 0x7e, 0x6f, 0x7f, - 0x66, 0x76, 0x67, 0x77, 0x6a, 0x7a, 0x6b, 0x7b, - 0xbe, 0xfd, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00; - hventerstabdelay = 100; - latchcycles = 5; - poweroffdelay = 15; - resetdelayms = 1; - hvleavestabdelay = 15; - resetdelay = 15; - chiperasepolltimeout = 10; - programfusepolltimeout = 5; - programlockpolltimeout = 5; - idr = 0x31; - spmcr = 0x57; - eecr = 0x3f; - ocdrev = 3; - - memory "eeprom" - size = 512; - page_size = 4; - min_write_delay = 9000; - max_write_delay = 9000; - mode = 0x41; - delay = 20; - blocksize = 4; - readsize = 256; - read = "1010.0000--xxxx.xxxa--aaaa.aaaa--oooo.oooo"; - write = "1100.0000--xxxx.xxxa--aaaa.aaaa--iiii.iiii"; - loadpage_lo = "1100.0001--0000.0000--0000.00aa--iiii.iiii"; - writepage = "1100.0010--00xx.xxxa--aaaa.aa00--xxxx.xxxx"; - ; - - memory "flash" - paged = yes; - size = 0x4000; - page_size = 128; - num_pages = 128; - min_write_delay = 4500; - max_write_delay = 4500; - mode = 0x41; - delay = 6; - blocksize = 128; - readsize = 256; - read_lo = "0010.0000--0aaa.aaaa--aaaa.aaaa--oooo.oooo"; - read_hi = "0010.1000--0aaa.aaaa--aaaa.aaaa--oooo.oooo"; - loadpage_lo = "0100.0000--xxxx.xxxx--xxaa.aaaa--iiii.iiii"; - loadpage_hi = "0100.1000--xxxx.xxxx--xxaa.aaaa--iiii.iiii"; - writepage = "0100.1100--aaaa.aaaa--aaxx.xxxx--xxxx.xxxx"; - ; - - memory "lfuse" - size = 1; - initval = 0x52; - min_write_delay = 9000; - max_write_delay = 9000; - read = "0101.0000--0000.0000--xxxx.xxxx--oooo.oooo"; - write = "1010.1100--1010.0000--xxxx.xxxx--iiii.iiii"; - ; - - memory "hfuse" - size = 1; - initval = 0x99; - min_write_delay = 9000; - max_write_delay = 9000; - read = "0101.1000--0000.1000--xxxx.xxxx--oooo.oooo"; - write = "1010.1100--1010.1000--xxxx.xxxx--iiii.iiii"; - ; - - memory "efuse" - size = 1; - initval = 0xfb; - bitmask = 0x0f; - min_write_delay = 9000; - max_write_delay = 9000; - read = "0101.0000--0000.1000--xxxx.xxxx--oooo.oooo"; - write = "1010.1100--1010.0100--xxxx.xxxx--1111.iiii"; - ; - - memory "lock" - bitmask = 0x3f; - min_write_delay = 9000; - max_write_delay = 9000; - read = "0101.1000--0000.0000--xxxx.xxxx--00oo.oooo"; - ; - - memory "sram" - size = 1280; - ; -; - -#------------------------------------------------------------ -# ATmega32u4 -#------------------------------------------------------------ - -part parent "m16u4" # m32u4 - desc = "ATmega32U4"; - id = "m32u4"; - variants = - "ATmega32U4-AU: TQFP44, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega32U4-AUR: TQFP44, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega32U4-MU: QFN44, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega32U4-MUR: QFN44, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega32U4RC-AU: TQFP44, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega32U4RC-AUR: QFP44, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega32U4RC-MU: QFN44, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]", - "ATmega32U4RC-MUR: QFN44, Fmax=16 MHz, T=[-40 C, 85 C], Vcc=[2.7 V, 5.5 V]"; - mcuid = 65; - signature = 0x1e 0x95 0x87; - usbpid = 0x2ff4; - - memory "eeprom" - size = 1024; - read = "1010.0000--xxxx.xaaa--aaaa.aaaa--oooo.oooo"; - write = "1100.0000--xxxx.xaaa--aaaa.aaaa--iiii.iiii"; - writepage = "1100.0010--00xx.xaaa--aaaa.aa00--xxxx.xxxx"; - ; - - memory "flash" - size = 0x8000; - num_pages = 256; - ; - - memory "lock" - read = "0101.1000--0000.0000--xxxx.xxxx--oooo.oooo"; - ; - - memory "sram" - size = 2560; - ; -; - -#------------------------------------------------------------ -# ATmega406 -#------------------------------------------------------------ - -part parent ".classic" # m406 - desc = "ATmega406"; - id = "m406"; - variants = - "ATmega406: N/A, Fmax=1 MHz, T=[N/A, N/A], Vcc=[3.3 V, 3.3 V]", - "ATmega406-1AAU: LQFP48, Fmax=1 MHz, T=[-30 C, 85 C], Vcc=[4 V, 25 V]"; - prog_modes = PM_SPM | PM_HVPP | PM_JTAG; - mcuid = 125; - archnum = 5; - n_interrupts = 23; - n_boot_sections = 4; - boot_section_size = 512; - # STK500 parameters (parallel programming IO lines) - pagel = 0xa7; - bs2 = 0xa0; - signature = 0x1e 0x95 0x07; - reset = io; - serial = no; - # STK500v2 HV programming parameters, from XML - pp_controlstack = - 0x0e, 0x1e, 0x0f, 0x1f, 0x2e, 0x3e, 0x2f, 0x3f, - 0x4e, 0x5e, 0x4f, 0x5f, 0x6e, 0x7e, 0x6f, 0x7f, - 0x66, 0x76, 0x67, 0x77, 0x6a, 0x7a, 0x6b, 0x7b, - 0xbe, 0xfd, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00; - hventerstabdelay = 100; - latchcycles = 6; - hvleavestabdelay = 15; - resetdelay = 15; - chiperasepolltimeout = 10; - programfusepolltimeout = 5; - programlockpolltimeout = 5; - idr = 0x31; - spmcr = 0x57; - eecr = 0x3f; - ocdrev = 3; - chip_erase = NULL; - pgm_enable = NULL; - - memory "eeprom" - size = 512; - page_size = 4; - num_pages = 128; - blocksize = 4; - readsize = 4; - ; - - memory "flash" - paged = yes; - size = 0xa000; - page_size = 128; - num_pages = 320; - blocksize = 128; - readsize = 128; - ; - - memory "lfuse" - size = 1; - initval = 0xcd; - ; - - memory "hfuse" - size = 1; - initval = 0xfe; - bitmask = 0x03; - ; - - memory "lock" = NULL; - - memory "lockbits" - size = 1; - initval = 0xff; - bitmask = 0x3f; - ; - - memory "prodsig" - read = NULL; - ; - - memory "signature" - read = NULL; - ; - - memory "calibration" - read = NULL; - ; - - memory "sernum" - read = NULL; - ; -; - -#------------------------------------------------------------ -# ATA6612C -#------------------------------------------------------------ - -part parent ".classic" # a6612c - desc = "ATA6612C"; - id = "a6612c"; - variants = - "ATA6612C-PLQW: VFQFN48, Fmax=16 MHz, T=[-40 C, 125 C], Vcc=[2.7 V, 5.5 V]", - "ATA6612C-PLQW-1: VFQFN48, Fmax=16 MHz, T=[-40 C, 125 C], Vcc=[2.7 V, 5.5 V]"; - prog_modes = PM_SPM | PM_ISP | PM_HVPP | PM_debugWIRE; - mcuid = 216; - archnum = 4; - n_interrupts = 26; - n_boot_sections = 4; - boot_section_size = 256; - stk500_devcode = 0x73; - chip_erase_delay = 4000; - pagel = 0xd7; - bs2 = 0xc2; - signature = 0x1e 0x93 0x0a; - reset = io; - timeout = 200; - stabdelay = 100; - cmdexedelay = 25; - synchloops = 32; - pollindex = 3; - pollvalue = 0x53; - predelay = 1; - postdelay = 1; - pollmethod = 1; - pp_controlstack = - 0x0e, 0x1e, 0x0f, 0x1f, 0x2e, 0x3e, 0x2f, 0x3f, - 0x4e, 0x5e, 0x4f, 0x5f, 0x6e, 0x7e, 0x6f, 0x7f, - 0x66, 0x76, 0x67, 0x77, 0x6a, 0x7a, 0x6b, 0x7b, - 0xbe, 0xfd, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00; - flash_instr = 0xb6, 0x01, 0x11; - eeprom_instr = - 0xbd, 0xf2, 0xbd, 0xe1, 0xbb, 0xcf, 0xb4, 0x00, - 0xbe, 0x01, 0xb6, 0x01, 0xbc, 0x00, 0xbb, 0xbf, - 0x99, 0xf9, 0xbb, 0xaf; - hventerstabdelay = 100; - latchcycles = 5; - togglevtg = 1; - poweroffdelay = 15; - resetdelayms = 1; - hvleavestabdelay = 15; - resetdelay = 15; - chiperasepolltimeout = 10; - programfusepolltimeout = 5; - programlockpolltimeout = 5; - idr = 0x31; - spmcr = 0x57; - eecr = 0x3f; - ocdrev = 1; - - memory "eeprom" - size = 512; - page_size = 4; - min_write_delay = 4000; - max_write_delay = 4000; - mode = 0x41; - delay = 20; - blocksize = 4; - readsize = 256; - read = "1010.0000--000x.xxxa--aaaa.aaaa--oooo.oooo"; - write = "1100.0000--000x.xxxa--aaaa.aaaa--iiii.iiii"; - loadpage_lo = "1100.0001--0000.0000--0000.00aa--iiii.iiii"; - writepage = "1100.0010--00xx.xxxa--aaaa.aa00--xxxx.xxxx"; - ; - - memory "flash" - paged = yes; - size = 8192; - page_size = 64; - num_pages = 128; - min_write_delay = 4500; - max_write_delay = 4500; - mode = 0x41; - delay = 10; - blocksize = 64; - readsize = 256; - read_lo = "0010.0000--0000.aaaa--aaaa.aaaa--oooo.oooo"; - read_hi = "0010.1000--0000.aaaa--aaaa.aaaa--oooo.oooo"; - loadpage_lo = "0100.0000--000x.xxxx--xxxa.aaaa--iiii.iiii"; - loadpage_hi = "0100.1000--000x.xxxx--xxxa.aaaa--iiii.iiii"; - writepage = "0100.1100--0000.aaaa--aaax.xxxx--xxxx.xxxx"; - ; - - memory "lfuse" - size = 1; - initval = 0x62; - min_write_delay = 4500; - max_write_delay = 4500; - read = "0101.0000--0000.0000--xxxx.xxxx--oooo.oooo"; - write = "1010.1100--1010.0000--xxxx.xxxx--iiii.iiii"; - ; - - memory "hfuse" - size = 1; - initval = 0xdf; - min_write_delay = 4500; - max_write_delay = 4500; - read = "0101.1000--0000.1000--xxxx.xxxx--oooo.oooo"; - write = "1010.1100--1010.1000--xxxx.xxxx--iiii.iiii"; - ; - - memory "efuse" - size = 1; - initval = 0xf9; - bitmask = 0x07; - min_write_delay = 4500; - max_write_delay = 4500; - read = "0101.0000--0000.1000--xxxx.xxxx--1111.1ooo"; - write = "1010.1100--1010.0100--xxxx.xxxx--1111.1iii"; - ; - - memory "lock" - bitmask = 0x3f; - min_write_delay = 4500; - max_write_delay = 4500; - read = "0101.1000--0000.0000--xxxx.xxxx--11oo.oooo"; - ; - - memory "sram" - size = 1024; - ; -; - -#------------------------------------------------------------ -# ATA6613C -#------------------------------------------------------------ - -part parent "a6612c" # a6613c - desc = "ATA6613C"; - id = "a6613c"; - variants = - "ATA6613C-PLQW: VFQFN48, Fmax=16 MHz, T=[-40 C, 125 C], Vcc=[2.7 V, 5.5 V]", - "ATA6613C-PLQW-1: VFQFN48, Fmax=16 MHz, T=[-40 C, 125 C], Vcc=[2.7 V, 5.5 V]"; - mcuid = 217; - archnum = 5; - stk500_devcode = 0x86; - chip_erase_delay = 9000; - signature = 0x1e 0x94 0x06; - - memory "eeprom" - min_write_delay = 3600; - max_write_delay = 3600; - ; - - memory "flash" - size = 0x4000; - page_size = 128; - blocksize = 128; - read_lo = "0010.0000--000a.aaaa--aaaa.aaaa--oooo.oooo"; - read_hi = "0010.1000--000a.aaaa--aaaa.aaaa--oooo.oooo"; - loadpage_lo = "0100.0000--000x.xxxx--xxaa.aaaa--iiii.iiii"; - loadpage_hi = "0100.1000--000x.xxxx--xxaa.aaaa--iiii.iiii"; - writepage = "0100.1100--000a.aaaa--aaxx.xxxx--xxxx.xxxx"; - ; -; - -#------------------------------------------------------------ -# ATA6616C -#------------------------------------------------------------ - -part parent ".classic" # a6616c - desc = "ATA6616C"; - id = "a6616c"; - variants = - "ATA6616C-P3PW: VFQFN38, Fmax=16 MHz, T=[-40 C, 125 C], Vcc=[2.7 V, 5.5 V]", - "ATA6616C-P3QW: VFQFN38, Fmax=16 MHz, T=[-40 C, 125 C], Vcc=[2.7 V, 5.5 V]", - "ATA6616C-P3QW-1: VFQFN38, Fmax=16 MHz, T=[-40 C, 125 C], Vcc=[2.7 V, 5.5 V]"; - prog_modes = PM_SPM | PM_ISP | PM_HVPP | PM_debugWIRE; - mcuid = 219; - archnum = 25; - n_interrupts = 20; - stk500_devcode = 0x14; - avr910_devcode = 0x20; - chip_erase_delay = 4000; - pagel = 0xb3; - bs2 = 0xb2; - signature = 0x1e 0x93 0x87; - timeout = 200; - stabdelay = 100; - cmdexedelay = 25; - synchloops = 32; - pollindex = 3; - pollvalue = 0x53; - predelay = 1; - postdelay = 1; - pp_controlstack = - 0x0e, 0x1e, 0x0e, 0x1e, 0x2e, 0x3e, 0x2e, 0x3e, - 0x4e, 0x5e, 0x4e, 0x5e, 0x6e, 0x7e, 0x6e, 0x7e, - 0x06, 0x16, 0x46, 0x56, 0x0a, 0x1a, 0x4a, 0x5a, - 0x1e, 0x7c, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00; - flash_instr = 0xb6, 0x01, 0x11; - eeprom_instr = - 0xbd, 0xf2, 0xbd, 0xe1, 0xbb, 0xcf, 0xb4, 0x00, - 0xbe, 0x01, 0xb6, 0x01, 0xbc, 0x00, 0xbb, 0xbf, - 0x99, 0xf9, 0xbb, 0xaf; - hventerstabdelay = 100; - latchcycles = 5; - togglevtg = 1; - poweroffdelay = 15; - resetdelayms = 1; - hvleavestabdelay = 15; - resetdelay = 15; - chiperasepolltimeout = 10; - programfusepolltimeout = 5; - programlockpolltimeout = 5; - idr = 0x31; - spmcr = 0x57; - eecr = 0x3f; - ocdrev = 1; - - memory "eeprom" - size = 512; - page_size = 4; - min_write_delay = 4000; - max_write_delay = 4000; - mode = 0x41; - delay = 10; - blocksize = 4; - readsize = 256; - read = "1010.0000--00xx.xxxa--aaaa.aaaa--oooo.oooo"; - write = "1100.0000--00xx.xxxa--aaaa.aaaa--iiii.iiii"; - loadpage_lo = "1100.0001--0000.0000--0000.00aa--iiii.iiii"; - writepage = "1100.0010--00xx.xxxa--aaaa.aa00--xxxx.xxxx"; - ; - - memory "flash" - paged = yes; - size = 8192; - page_size = 128; - num_pages = 64; - min_write_delay = 4500; - max_write_delay = 4500; - mode = 0x41; - delay = 10; - blocksize = 64; - readsize = 256; - read_lo = "0010.0000--0000.aaaa--aaaa.aaaa--oooo.oooo"; - read_hi = "0010.1000--0000.aaaa--aaaa.aaaa--oooo.oooo"; - loadpage_lo = "0100.0000--000x.xxxx--xxaa.aaaa--iiii.iiii"; - loadpage_hi = "0100.1000--000x.xxxx--xxaa.aaaa--iiii.iiii"; - writepage = "0100.1100--0000.aaaa--aa00.0000--xxxx.xxxx"; - ; - - memory "lfuse" - size = 1; - initval = 0x62; - min_write_delay = 4500; - max_write_delay = 4500; - read = "0101.0000--0000.0000--xxxx.xxxx--oooo.oooo"; - write = "1010.1100--1010.0000--xxxx.xxxx--iiii.iiii"; - ; - - memory "hfuse" - size = 1; - initval = 0xdf; - min_write_delay = 4500; - max_write_delay = 4500; - read = "0101.1000--0000.1000--xxxx.xxxx--oooo.oooo"; - write = "1010.1100--1010.1000--xxxx.xxxx--iiii.iiii"; - ; - - memory "efuse" - size = 1; - initval = 0xff; - bitmask = 0x01; - min_write_delay = 4500; - max_write_delay = 4500; - read = "0101.0000--0000.1000--xxxx.xxxx--1111.111o"; - write = "1010.1100--1010.0100--xxxx.xxxx--1111.111i"; - ; - - memory "lock" - bitmask = 0x03; - min_write_delay = 4500; - max_write_delay = 4500; - read = "0101.1000--0000.0000--xxxx.xxxx--1111.11oo"; - write = "1010.1100--111x.xxxx--xxxx.xxxx--1111.11ii"; - ; - - memory "sram" - size = 512; - ; -; - -#------------------------------------------------------------ -# ATA6617C -#------------------------------------------------------------ - -part parent "a6616c" # a6617c - desc = "ATA6617C"; - id = "a6617c"; - variants = - "ATA6617C-P3QW: VFQFN38, Fmax=16 MHz, T=[-40 C, 125 C], Vcc=[2.7 V, 5.5 V]", - "ATA6617C-P3QW-1: VFQFN38, Fmax=16 MHz, T=[-40 C, 125 C], Vcc=[2.7 V, 5.5 V]"; - mcuid = 220; - archnum = 35; - signature = 0x1e 0x94 0x87; - - memory "flash" - size = 0x4000; - num_pages = 128; - read_lo = "0010.0000--000a.aaaa--aaaa.aaaa--oooo.oooo"; - read_hi = "0010.1000--000a.aaaa--aaaa.aaaa--oooo.oooo"; - writepage = "0100.1100--000a.aaaa--aaxx.xxxx--xxxx.xxxx"; - ; -; - -#------------------------------------------------------------ -# ATA5505 -#------------------------------------------------------------ - -part parent ".classic" # a5505 - desc = "ATA5505"; - id = "a5505"; - variants = - "ATA5505: N/A, Fmax=N/A, T=[N/A, N/A], Vcc=[2.7 V, 5.5 V]", - "ATA5505-P3QW: VFQFN38, Fmax=N/A, T=[-40 C, 105 C], Vcc=[2.7 V, 5.5 V]"; - prog_modes = PM_SPM | PM_ISP | PM_HVPP | PM_debugWIRE; - mcuid = 198; - archnum = 35; - n_interrupts = 20; - stk500_devcode = 0x14; - avr910_devcode = 0x20; - chip_erase_delay = 4000; - pagel = 0xb3; - bs2 = 0xb2; - signature = 0x1e 0x94 0x87; - timeout = 200; - stabdelay = 100; - cmdexedelay = 25; - synchloops = 32; - pollindex = 3; - pollvalue = 0x53; - predelay = 1; - postdelay = 1; - pp_controlstack = - 0x0e, 0x1e, 0x0e, 0x1e, 0x2e, 0x3e, 0x2e, 0x3e, - 0x4e, 0x5e, 0x4e, 0x5e, 0x6e, 0x7e, 0x6e, 0x7e, - 0x06, 0x16, 0x46, 0x56, 0x0a, 0x1a, 0x4a, 0x5a, - 0x1e, 0x7c, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00; - flash_instr = 0xb6, 0x01, 0x11; - eeprom_instr = - 0xbd, 0xf2, 0xbd, 0xe1, 0xbb, 0xcf, 0xb4, 0x00, - 0xbe, 0x01, 0xb6, 0x01, 0xbc, 0x00, 0xbb, 0xbf, - 0x99, 0xf9, 0xbb, 0xaf; - hventerstabdelay = 100; - latchcycles = 5; - togglevtg = 1; - poweroffdelay = 15; - resetdelayms = 1; - hvleavestabdelay = 15; - resetdelay = 15; - chiperasepolltimeout = 10; - programfusepolltimeout = 5; - programlockpolltimeout = 5; - idr = 0x31; - spmcr = 0x57; - eecr = 0x3f; - ocdrev = 1; - - memory "eeprom" - size = 512; - page_size = 4; - min_write_delay = 4000; - max_write_delay = 4000; - mode = 0x41; - delay = 10; - blocksize = 4; - readsize = 256; - read = "1010.0000--00xx.xxxa--aaaa.aaaa--oooo.oooo"; - write = "1100.0000--00xx.xxxa--aaaa.aaaa--iiii.iiii"; - loadpage_lo = "1100.0001--0000.0000--0000.00aa--iiii.iiii"; - writepage = "1100.0010--00xx.xxxa--aaaa.aa00--xxxx.xxxx"; - ; - - memory "flash" - paged = yes; - size = 0x4000; - page_size = 128; - num_pages = 128; - min_write_delay = 4500; - max_write_delay = 4500; - mode = 0x41; - delay = 10; - blocksize = 64; - readsize = 256; - read_lo = "0010.0000--000a.aaaa--aaaa.aaaa--oooo.oooo"; - read_hi = "0010.1000--000a.aaaa--aaaa.aaaa--oooo.oooo"; - loadpage_lo = "0100.0000--000x.xxxx--xxaa.aaaa--iiii.iiii"; - loadpage_hi = "0100.1000--000x.xxxx--xxaa.aaaa--iiii.iiii"; - writepage = "0100.1100--000a.aaaa--aaxx.xxxx--xxxx.xxxx"; - ; - - memory "lfuse" - size = 1; - initval = 0x62; - min_write_delay = 4500; - max_write_delay = 4500; - read = "0101.0000--0000.0000--xxxx.xxxx--oooo.oooo"; - write = "1010.1100--1010.0000--xxxx.xxxx--iiii.iiii"; - ; - - memory "hfuse" - size = 1; - initval = 0xdf; - min_write_delay = 4500; - max_write_delay = 4500; - read = "0101.1000--0000.1000--xxxx.xxxx--oooo.oooo"; - write = "1010.1100--1010.1000--xxxx.xxxx--iiii.iiii"; - ; - - memory "efuse" - size = 1; - initval = 0xff; - bitmask = 0x01; - min_write_delay = 4500; - max_write_delay = 4500; - read = "0101.0000--0000.1000--xxxx.xxxx--1111.111o"; - write = "1010.1100--1010.0100--xxxx.xxxx--1111.111i"; - ; - - memory "lock" - bitmask = 0x03; - min_write_delay = 4500; - max_write_delay = 4500; - read = "0101.1000--0000.0000--xxxx.xxxx--1111.11oo"; - write = "1010.1100--111x.xxxx--xxxx.xxxx--1111.11ii"; - ; - - memory "sram" - size = 512; - ; -; - -#------------------------------------------------------------ -# ATA6614Q -#------------------------------------------------------------ - -part parent ".classic" # a6614q - desc = "ATA6614Q"; - id = "a6614q"; - variants = - "ATA6614Q-PLQW: VFQFN48, Fmax=16 MHz, T=[-40 C, 125 C], Vcc=[2.7 V, 5.5 V]", - "ATA6614Q-PLQW-1: VFQFN48, Fmax=16 MHz, T=[-40 C, 125 C], Vcc=[2.7 V, 5.5 V]"; - prog_modes = PM_SPM | PM_ISP | PM_HVPP | PM_debugWIRE; - mcuid = 218; - archnum = 5; - n_interrupts = 26; - n_boot_sections = 4; - boot_section_size = 512; - stk500_devcode = 0x86; - chip_erase_delay = 9000; - pagel = 0xd7; - bs2 = 0xc2; - signature = 0x1e 0x95 0x0f; - reset = io; - timeout = 200; - stabdelay = 100; - cmdexedelay = 25; - synchloops = 32; - pollindex = 3; - pollvalue = 0x53; - predelay = 1; - postdelay = 1; - pollmethod = 1; - pp_controlstack = - 0x0e, 0x1e, 0x0f, 0x1f, 0x2e, 0x3e, 0x2f, 0x3f, - 0x4e, 0x5e, 0x4f, 0x5f, 0x6e, 0x7e, 0x6f, 0x7f, - 0x66, 0x76, 0x67, 0x77, 0x6a, 0x7a, 0x6b, 0x7b, - 0xbe, 0xfd, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00; - flash_instr = 0xb6, 0x01, 0x11; - eeprom_instr = - 0xbd, 0xf2, 0xbd, 0xe1, 0xbb, 0xcf, 0xb4, 0x00, - 0xbe, 0x01, 0xb6, 0x01, 0xbc, 0x00, 0xbb, 0xbf, - 0x99, 0xf9, 0xbb, 0xaf; - hventerstabdelay = 100; - latchcycles = 5; - togglevtg = 1; - poweroffdelay = 15; - resetdelayms = 1; - hvleavestabdelay = 15; - resetdelay = 15; - chiperasepolltimeout = 10; - programfusepolltimeout = 5; - programlockpolltimeout = 5; - idr = 0x31; - spmcr = 0x57; - eecr = 0x3f; - ocdrev = 1; - - memory "eeprom" - size = 1024; - page_size = 4; - min_write_delay = 3600; - max_write_delay = 3600; - mode = 0x41; - delay = 20; - blocksize = 4; - readsize = 256; - read = "1010.0000--000x.xxaa--aaaa.aaaa--oooo.oooo"; - write = "1100.0000--000x.xxaa--aaaa.aaaa--iiii.iiii"; - loadpage_lo = "1100.0001--0000.0000--0000.00aa--iiii.iiii"; - writepage = "1100.0010--00xx.xxaa--aaaa.aa00--xxxx.xxxx"; - ; - - memory "flash" - paged = yes; - size = 0x8000; - page_size = 128; - num_pages = 256; - min_write_delay = 4500; - max_write_delay = 4500; - mode = 0x41; - delay = 10; - blocksize = 128; - readsize = 256; - read_lo = "0010.0000--00aa.aaaa--aaaa.aaaa--oooo.oooo"; - read_hi = "0010.1000--00aa.aaaa--aaaa.aaaa--oooo.oooo"; - loadpage_lo = "0100.0000--000x.xxxx--xxaa.aaaa--iiii.iiii"; - loadpage_hi = "0100.1000--000x.xxxx--xxaa.aaaa--iiii.iiii"; - writepage = "0100.1100--00aa.aaaa--aaxx.xxxx--xxxx.xxxx"; - ; - - memory "lfuse" - size = 1; - initval = 0x62; - min_write_delay = 4500; - max_write_delay = 4500; - read = "0101.0000--0000.0000--xxxx.xxxx--oooo.oooo"; - write = "1010.1100--1010.0000--xxxx.xxxx--iiii.iiii"; - ; - - memory "hfuse" - size = 1; - initval = 0xd9; - min_write_delay = 4500; - max_write_delay = 4500; - read = "0101.1000--0000.1000--xxxx.xxxx--oooo.oooo"; - write = "1010.1100--1010.1000--xxxx.xxxx--iiii.iiii"; - ; - - memory "efuse" - size = 1; - initval = 0xff; - bitmask = 0x07; - min_write_delay = 4500; - max_write_delay = 4500; - read = "0101.0000--0000.1000--xxxx.xxxx--1111.1ooo"; - write = "1010.1100--1010.0100--xxxx.xxxx--1111.1iii"; - ; - - memory "lock" - bitmask = 0x3f; - min_write_delay = 4500; - max_write_delay = 4500; - read = "0101.1000--0000.0000--xxxx.xxxx--11oo.oooo"; - ; -; - -#------------------------------------------------------------ -# ATA664251 -#------------------------------------------------------------ - -part parent ".classic" # a664251 - desc = "ATA664251"; - id = "a664251"; - variants = - "ATA664251: N/A, Fmax=N/A, T=[N/A, N/A], Vcc=[1.8 V, 5.5 V]", - "ATA664251-WGQW: VFQFN48, Fmax=16 MHz, T=[-40 C, 125 C], Vcc=[2.7 V, 5.5 V]", - "ATA664251-WGQW-1: VFQFN48, Fmax=16 MHz, T=[-40 C, 125 C], Vcc=[2.7 V, 5.5 V]"; - prog_modes = PM_SPM | PM_ISP | PM_HVPP | PM_debugWIRE; - mcuid = 225; - archnum = 35; - n_interrupts = 20; - stk500_devcode = 0x14; - avr910_devcode = 0x20; - chip_erase_delay = 4000; - pagel = 0xb3; - bs2 = 0xb2; - signature = 0x1e 0x94 0x87; - timeout = 200; - stabdelay = 100; - cmdexedelay = 25; - synchloops = 32; - pollindex = 3; - pollvalue = 0x53; - predelay = 1; - postdelay = 1; - pp_controlstack = - 0x0e, 0x1e, 0x0e, 0x1e, 0x2e, 0x3e, 0x2e, 0x3e, - 0x4e, 0x5e, 0x4e, 0x5e, 0x6e, 0x7e, 0x6e, 0x7e, - 0x06, 0x16, 0x46, 0x56, 0x0a, 0x1a, 0x4a, 0x5a, - 0x1e, 0x7c, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00; - flash_instr = 0xb6, 0x01, 0x11; - eeprom_instr = - 0xbd, 0xf2, 0xbd, 0xe1, 0xbb, 0xcf, 0xb4, 0x00, - 0xbe, 0x01, 0xb6, 0x01, 0xbc, 0x00, 0xbb, 0xbf, - 0x99, 0xf9, 0xbb, 0xaf; - hventerstabdelay = 100; - latchcycles = 5; - togglevtg = 1; - poweroffdelay = 15; - resetdelayms = 1; - hvleavestabdelay = 15; - resetdelay = 15; - chiperasepolltimeout = 10; - programfusepolltimeout = 5; - programlockpolltimeout = 5; - idr = 0x31; - spmcr = 0x57; - eecr = 0x3f; - ocdrev = 1; - - memory "eeprom" - size = 512; - page_size = 4; - min_write_delay = 4000; - max_write_delay = 4000; - mode = 0x41; - delay = 10; - blocksize = 4; - readsize = 256; - read = "1010.0000--00xx.xxxa--aaaa.aaaa--oooo.oooo"; - write = "1100.0000--00xx.xxxa--aaaa.aaaa--iiii.iiii"; - loadpage_lo = "1100.0001--0000.0000--0000.00aa--iiii.iiii"; - writepage = "1100.0010--00xx.xxxa--aaaa.aa00--xxxx.xxxx"; - ; - - memory "flash" - paged = yes; - size = 0x4000; - page_size = 128; - num_pages = 128; - min_write_delay = 4500; - max_write_delay = 4500; - mode = 0x41; - delay = 10; - blocksize = 64; - readsize = 256; - read_lo = "0010.0000--000a.aaaa--aaaa.aaaa--oooo.oooo"; - read_hi = "0010.1000--000a.aaaa--aaaa.aaaa--oooo.oooo"; - loadpage_lo = "0100.0000--000x.xxxx--xxaa.aaaa--iiii.iiii"; - loadpage_hi = "0100.1000--000x.xxxx--xxaa.aaaa--iiii.iiii"; - writepage = "0100.1100--000a.aaaa--aaxx.xxxx--xxxx.xxxx"; - ; - - memory "lfuse" - size = 1; - initval = 0x62; - min_write_delay = 4500; - max_write_delay = 4500; - read = "0101.0000--0000.0000--xxxx.xxxx--oooo.oooo"; - write = "1010.1100--1010.0000--xxxx.xxxx--iiii.iiii"; - ; - - memory "hfuse" - size = 1; - initval = 0xdf; - min_write_delay = 4500; - max_write_delay = 4500; - read = "0101.1000--0000.1000--xxxx.xxxx--oooo.oooo"; - write = "1010.1100--1010.1000--xxxx.xxxx--iiii.iiii"; - ; - - memory "efuse" - size = 1; - initval = 0xff; - bitmask = 0x01; - min_write_delay = 4500; - max_write_delay = 4500; - read = "0101.0000--0000.1000--xxxx.xxxx--1111.111o"; - write = "1010.1100--1010.0100--xxxx.xxxx--1111.111i"; - ; - - memory "lock" - bitmask = 0x03; - min_write_delay = 4500; - max_write_delay = 4500; - read = "0101.1000--0000.0000--xxxx.xxxx--1111.11oo"; - write = "1010.1100--111x.xxxx--xxxx.xxxx--1111.11ii"; - ; - - memory "sram" - size = 512; - ; -; - -#------------------------------------------------------------ -# Logic Green parts -#------------------------------------------------------------ - -part parent "m88" # lgt88p - desc = "LGT8F88P"; - id = "lgt88p"; - mcuid = 227; - signature = 0x1e 0x93 0x0f; - autobaud_sync = 0x1c; - - memory "lfuse" - initval = -1; - ; - - memory "hfuse" - initval = -1; - ; - - memory "efuse" - initval = -1; - bitmask = -1; - ; - - memory "lock" - initval = -1; - bitmask = -1; - ; -; - -#------------------------------------------------------------ -# LGT8F168P -#------------------------------------------------------------ - -part parent "m168" # lgt168p - desc = "LGT8F168P"; - id = "lgt168p"; - mcuid = 228; - signature = 0x1e 0x94 0x0b; - autobaud_sync = 0x1c; - - memory "lfuse" - initval = -1; - ; - - memory "hfuse" - initval = -1; - ; - - memory "efuse" - initval = -1; - bitmask = -1; - ; - - memory "lock" - initval = -1; - bitmask = -1; - ; -; - -#------------------------------------------------------------ -# LGT8F328P -#------------------------------------------------------------ - -part parent "m328" # lgt328p - desc = "LGT8F328P"; - id = "lgt328p"; - mcuid = 229; - signature = 0x1e 0x95 0x0f; - autobaud_sync = 0x1c; - - memory "lfuse" - initval = -1; - ; - - memory "hfuse" - initval = -1; - ; - - memory "efuse" - initval = -1; - bitmask = -1; - ; - - memory "lock" - initval = -1; - bitmask = -1; - ; -; - -#------------------------------------------------------------ -# AT89S51 -#------------------------------------------------------------ - -# MCS-51 family part -# - Tested with -c avrisp -# - USBASP programmers may require different firmware - -part # 89S51 - desc = "AT89S51"; - id = "89S51"; - variants = - "AT89S51: N/A, Fmax=33 MHz, T=[N/A, N/A], Vcc=[4 V, 5.5 V]", - "AT89S51-24AU: TQFP44, Fmax=24 MHz, T=[-40 C, 85 C], Vcc=[4 V, 5.5 V]", - "AT89S51-24JU: PLCC44, Fmax=24 MHz, T=[-40 C, 85 C], Vcc=[4 V, 5.5 V]", - "AT89S51-24PU: PDIP40, Fmax=24 MHz, T=[-40 C, 85 C], Vcc=[4 V, 5.5 V]"; - prog_modes = PM_ISP | PM_HVPP; - mcuid = 372; - archnum = -1; # Not 8-bit AVR - stk500_devcode = 0xe0; - chip_erase_delay = 250000; - signature = 0x1e 0x51 0x06; - timeout = 200; - stabdelay = 100; - cmdexedelay = 25; - synchloops = 32; - pollindex = 4; - pollvalue = 0x69; - predelay = 1; - postdelay = 1; - chiperasepulsewidth = 15; - programfusepulsewidth = 2; - programlockpolltimeout = 1; - chip_erase = "1010.1100--100x.xxxx--xxxx.xxxx--xxxx.xxxx"; - pgm_enable = "1010.1100--0101.0011--xxxx.xxxx--xxxx.xxxx"; - - memory "flash" - size = 4096; - min_write_delay = 4500; - max_write_delay = 4500; - readback = 0xff 0xff; - mode = 0x02; - delay = 10; - blocksize = 256; - read = "0010.0000--xxxa.aaaa--aaaa.aaaa--oooo.oooo"; - write = "0100.0000--xxxa.aaaa--aaaa.aaaa--iiii.iiii"; - # Nonstandard page mode is available but not implemented - ; - - memory "lock" - size = 1; - read = "0010.0100--xxxx.xxxx--xxxx.xxxx--xxxo.ooxx"; - # Nonstandard write: expect verification errors - # See datasheet Page 20, Note 1 https://ww1.microchip.com/downloads/en/DeviceDoc/doc2487.pdf - # Activate lock mode 0 through chip erase: avrdude -e - # Activate lock mode 1: avrdude -e -V -U lock:w:1:m - # Activate lock mode 2: avrdude -e -V -U lock:w:1:m -U lock:w:2:m - # Activate lock mode 3: avrdude -e -V -U lock:w:1:m -U lock:w:2:m -U lock:w:3:m - write = "1010.1100--1110.00ii--xxxx.xxxx--xxxx.xxxx"; - ; - - memory "signature" - size = 3; - read = "0 0 1 0 1 0 0 0 x x x x x x a1 a0 x x x x x x x 0 o o o o o o o o"; - ; -; - -#------------------------------------------------------------ -# AT89S52 -#------------------------------------------------------------ - -part parent "89S51" # 89S52 - desc = "AT89S52"; - id = "89S52"; - variants = - "AT89S52: N/A, Fmax=33 MHz, T=[N/A, N/A], Vcc=[4 V, 5.5 V]", - "AT89S52-24AU: TQFP44, Fmax=24 MHz, T=[-40 C, 85 C], Vcc=[4 V, 5.5 V]", - "AT89S52-24AUR: TQFP44, Fmax=24 MHz, T=[-40 C, 85 C], Vcc=[4 V, 5.5 V]", - "AT89S52-24JU: PLCC44, Fmax=24 MHz, T=[-40 C, 85 C], Vcc=[4 V, 5.5 V]", - "AT89S52-24PU: PDIP40, Fmax=24 MHz, T=[-40 C, 85 C], Vcc=[4 V, 5.5 V]"; - mcuid = 373; - stk500_devcode = 0xe1; - signature = 0x1e 0x52 0x06; - - memory "flash" - size = 8192; - ; -; - -#------------------------------------------------------------ -# AVR XMEGA-C/D family common values -#------------------------------------------------------------ - -part # .xmega-cd - desc = "AVR XMEGA-C/D family common values"; - id = ".xmega-cd"; - prog_modes = PM_SPM | PM_PDI; - n_boot_sections = 1; - mcu_base = 0x0090; - nvm_base = 0x01c0; - autobaud_sync = 0x20; - factory_fcpu = 2000000; - - memory "eeprom" - size = 2048; - page_size = 32; - offset = 0x8c0000; - readsize = 256; - ; - - memory "flash" - size = 0x11000; - page_size = 256; - offset = 0x800000; - readsize = 256; - ; - - memory "application" - size = 0x10000; - page_size = 256; - offset = 0x800000; - readsize = 256; - ; - - memory "apptable" - size = 4096; - page_size = 256; - offset = 0x80f000; - readsize = 256; - ; - - memory "boot" - size = 4096; - page_size = 256; - offset = 0x810000; - readsize = 256; - ; - - ###### - # Collective fuses memory - # - Does not know factory settings (only individual fuse bytes do) - # - fuses[0] (jtaguid) only used for (most) XMEGA-A/B parts - # - fuses[3] always reserved - # - fuses[6] only used in XMEGA-E parts - # - memory "fuses" - size = 6; - offset = 0x8f0020; - ; - - memory "fuse1" - size = 1; - initval = 0x00; - offset = 0x8f0021; - ; - - memory "fuse2" - size = 1; - initval = 0xff; - bitmask = 0x63; - offset = 0x8f0022; - ; - - memory "fuse4" - size = 1; - initval = 0xff; - bitmask = 0x1e; - offset = 0x8f0024; - ; - - memory "fuse5" - size = 1; - initval = 0xff; - bitmask = 0x3f; - offset = 0x8f0025; - ; - - memory "lock" - size = 1; - initval = 0xff; - offset = 0x8f0027; - ; - - memory "prodsig" - size = 64; - offset = 0x8e0200; - readsize = 64; - ; - - memory "sigrow" - alias "prodsig"; - ; - - memory "signature" - size = 3; - offset = 0x1000090; - ; - - memory "calibration" - size = 5; - offset = 0x8e0200; - ; - - memory "tempsense" - size = 2; - offset = 0x8e022e; - ; - - memory "sernum" - size = 14; - offset = 0x8e0208; - ; - - memory "usersig" - size = 256; - page_size = 256; - offset = 0x8e0400; - readsize = 256; - ; - - memory "io" - size = 4096; - readsize = 1; - ; - - memory "sram" - offset = 0x2000; - ; -; - -#------------------------------------------------------------ -# AVR XMEGA-E family common values -#------------------------------------------------------------ - -# Fuse for fault detection action on Px0..5 (unique to XMEGA-E) - -part parent ".xmega-cd" # .xmega-e - desc = "AVR XMEGA-E family common values"; - id = ".xmega-e"; - n_interrupts = 43; - - memory "flash" - page_size = 128; - ; - - memory "application" - page_size = 128; - ; - - memory "apptable" - page_size = 128; - ; - - memory "boot" - page_size = 128; - ; - - memory "fuses" - size = 7; - ; - - memory "fuse2" - bitmask = 0x43; - ; - - memory "fuse6" - size = 1; - initval = 0xff; - offset = 0x8f0026; - ; - - memory "prodsig" - size = 54; - readsize = 54; - ; - - memory "usersig" - size = 128; - page_size = 128; - ; -; - -#------------------------------------------------------------ -# AVR XMEGA-A/B family common values -#------------------------------------------------------------ - -# Most XMEGA-A/B have JTAG, and therefore JTAG user ID - -part parent ".xmega-cd" # .xmega-ab - desc = "AVR XMEGA-A/B family common values"; - id = ".xmega-ab"; - prog_modes = PM_SPM | PM_PDI | PM_XMEGAJTAG; - - memory "fuse0" - size = 1; - initval = 0xff; - offset = 0x8f0020; - ; - - memory "fuse4" - initval = 0xfe; - bitmask = 0x1f; - ; - - memory "prodsig" - size = 52; - readsize = 52; - ; - - memory "calibration" - size = 4; - ; -; - -#------------------------------------------------------------ -# ATxmega16A4U -#------------------------------------------------------------ - -part parent ".xmega-ab" # x16a4u - desc = "ATxmega16A4U"; - id = "x16a4u"; - variants = - "ATxmega16A4U-AN: TQFP44, Fmax=32 MHz, T=[0 C, 105 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega16A4U-ANR: N/A, Fmax=N/A, T=[N/A, N/A], Vcc=[N/A, N/A]", - "ATxmega16A4U-AU: TQFP44, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega16A4U-AUR: TQFP44, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega16A4U-CU: BGA49, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega16A4U-CUR: VFBGA49, Fmax=N/A, T=[N/A, N/A], Vcc=[1.6 V, 3.6 V]", - "ATxmega16A4U-M7: VQFN44, Fmax=32 MHz, T=[-40 C, 105 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega16A4U-MH: QFN44, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega16A4U-MHR: VQFN44, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]"; - prog_modes = PM_SPM | PM_PDI; - mcuid = 232; - archnum = 102; - n_interrupts = 127; - boot_section_size = 4096; - signature = 0x1e 0x94 0x41; - usbpid = 0x2fe3; - - memory "eeprom" - size = 1024; - ; - - memory "flash" - size = 0x5000; - ; - - memory "application" - size = 0x4000; - ; - - memory "apptable" - offset = 0x803000; - ; - - memory "boot" - offset = 0x804000; - ; - - memory "sram" - size = 2048; - ; -; - -#------------------------------------------------------------ -# ATxmega16C4 -#------------------------------------------------------------ - -part parent ".xmega-cd" # x16c4 - desc = "ATxmega16C4"; - id = "x16c4"; - variants = - "ATxmega16C4-AN: TQFP44, Fmax=32 MHz, T=[-40 C, 105 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega16C4-AU: TQFP44, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega16C4-AUR: TQFP44, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega16C4-CU: VFBGA49, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega16C4-CUR: VFBGA49, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega16C4-M7: VFBGA49, Fmax=32 MHz, T=[-40 C, 105 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega16C4-MH: VQFN44, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega16C4-MHR: VQFN44, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]"; - mcuid = 233; - archnum = 102; - n_interrupts = 127; - boot_section_size = 4096; - signature = 0x1e 0x94 0x43; - usbpid = 0x2fd8; - - memory "eeprom" - size = 1024; - ; - - memory "flash" - size = 0x5000; - ; - - memory "application" - size = 0x4000; - ; - - memory "apptable" - offset = 0x803000; - ; - - memory "boot" - offset = 0x804000; - ; - - memory "prodsig" - page_size = 64; - ; - - memory "sram" - size = 2048; - ; -; - -#------------------------------------------------------------ -# ATxmega16D4 -#------------------------------------------------------------ - -part parent ".xmega-cd" # x16d4 - desc = "ATxmega16D4"; - id = "x16d4"; - variants = - "ATxmega16D4: N/A, Fmax=N/A, T=[N/A, N/A], Vcc=[1.6 V, 3.6 V]", - "ATxmega16D4-AN: TQFP44, Fmax=32 MHz, T=[-40 C, 105 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega16D4-AU: TQFP44, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega16D4-AUR: TQFN44, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega16D4-CU: BGA49, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega16D4-CUR: VFBGA49, Fmax=N/A, T=[N/A, N/A], Vcc=[1.6 V, 3.6 V]", - "ATxmega16D4-M7: VFBGA49, Fmax=32 MHz, T=[-40 C, 105 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega16D4-MH: VQFN44, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega16D4-MHR: VQFN44, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]"; - mcuid = 234; - archnum = 102; - n_interrupts = 91; - boot_section_size = 4096; - signature = 0x1e 0x94 0x42; - - memory "eeprom" - size = 1024; - ; - - memory "flash" - size = 0x5000; - ; - - memory "application" - size = 0x4000; - ; - - memory "apptable" - offset = 0x803000; - ; - - memory "boot" - offset = 0x804000; - ; - - memory "prodsig" - size = 52; - readsize = 52; - ; - - memory "sram" - size = 2048; - ; -; - -#------------------------------------------------------------ -# ATxmega16A4 -#------------------------------------------------------------ - -part parent ".xmega-ab" # x16a4 - desc = "ATxmega16A4"; - id = "x16a4"; - variants = - "ATxmega16A4: N/A, Fmax=N/A, T=[N/A, N/A], Vcc=[1.6 V, 3.6 V]", - "ATxmega16A4-AU: TQFP44, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega16A4-AUR: TQFP44, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega16A4-CU: BGA49, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega16A4-CUR: BGA49, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega16A4-MH: QFN44, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega16A4-MHR: QFN44, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega16A4-MU: VQFN44, Fmax=32 MHz, T=[N/A, N/A], Vcc=[1.6 V, 3.6 V]"; - prog_modes = PM_SPM | PM_PDI; - mcuid = 231; - archnum = 102; - n_interrupts = 94; - boot_section_size = 4096; - signature = 0x1e 0x94 0x41; - - memory "eeprom" - size = 1024; - ; - - memory "flash" - size = 0x5000; - ; - - memory "application" - size = 0x4000; - ; - - memory "apptable" - offset = 0x803000; - ; - - memory "boot" - offset = 0x804000; - ; - - memory "fuse2" - bitmask = 0x43; - ; - - memory "sram" - size = 2048; - ; -; - -#------------------------------------------------------------ -# ATxmega32A4U -#------------------------------------------------------------ - -part parent ".xmega-ab" # x32a4u - desc = "ATxmega32A4U"; - id = "x32a4u"; - variants = - "ATxmega32A4U-AN: TQFP44, Fmax=32 MHz, T=[0 C, 105 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega32A4U-ANR: TQFP44, Fmax=32 MHz, T=[0 C, 105 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega32A4U-AU: TQFP44, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega32A4U-AUR: TQFP44, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega32A4U-CU: BGA49, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega32A4U-CUR: VFBGA49, Fmax=N/A, T=[N/A, N/A], Vcc=[N/A, N/A]", - "ATxmega32A4U-M7: VQFN44, Fmax=32 MHz, T=[-40 C, 105 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega32A4U-MH: QFN44, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega32A4U-MHR: VQFN44, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]"; - prog_modes = PM_SPM | PM_PDI; - mcuid = 239; - archnum = 102; - n_interrupts = 127; - boot_section_size = 4096; - signature = 0x1e 0x95 0x41; - usbpid = 0x2fe4; - - memory "eeprom" - size = 1024; - ; - - memory "flash" - size = 0x9000; - ; - - memory "application" - size = 0x8000; - ; - - memory "apptable" - offset = 0x807000; - ; - - memory "boot" - offset = 0x808000; - ; - - memory "sram" - size = 4096; - ; -; - -#------------------------------------------------------------ -# ATxmega32C4 -#------------------------------------------------------------ - -part parent ".xmega-cd" # x32c4 - desc = "ATxmega32C4"; - id = "x32c4"; - variants = - "ATxmega32C4-AN: TQFP44, Fmax=32 MHz, T=[-40 C, 105 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega32C4-AU: TQFP44, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega32C4-AUR: TQFP44, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega32C4-CU: VFBGA49, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega32C4-CUR: VFBGA49, Fmax=N/A, T=[N/A, N/A], Vcc=[N/A, N/A]", - "ATxmega32C4-M7: VFBGA49, Fmax=32 MHz, T=[-40 C, 105 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega32C4-MH: VQFN44, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega32C4-MHR: VQFN44, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]"; - mcuid = 240; - archnum = 102; - n_interrupts = 127; - boot_section_size = 4096; - signature = 0x1e 0x95 0x44; - usbpid = 0x2fd9; - - memory "eeprom" - size = 1024; - ; - - memory "flash" - size = 0x9000; - ; - - memory "application" - size = 0x8000; - ; - - memory "apptable" - offset = 0x807000; - ; - - memory "boot" - offset = 0x808000; - ; - - memory "prodsig" - page_size = 64; - ; - - memory "sram" - size = 4096; - ; -; - -#------------------------------------------------------------ -# ATxmega32D4 -#------------------------------------------------------------ - -part parent ".xmega-cd" # x32d4 - desc = "ATxmega32D4"; - id = "x32d4"; - variants = - "ATxmega32D4: N/A, Fmax=N/A, T=[N/A, N/A], Vcc=[1.6 V, 3.6 V]", - "ATxmega32D4-AN: TQFP44, Fmax=32 MHz, T=[-40 C, 105 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega32D4-ANR: N/A, Fmax=N/A, T=[N/A, N/A], Vcc=[N/A, N/A]", - "ATxmega32D4-AU: TQFP44, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega32D4-AUR: TQFP44, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega32D4-CU: VFBGA49, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega32D4-CUR: VFBGA49, Fmax=N/A, T=[N/A, N/A], Vcc=[1.6 V, 3.6 V]", - "ATxmega32D4-M7: VFBGA49, Fmax=32 MHz, T=[-40 C, 105 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega32D4-MH: VQFN44, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega32D4-MHR: VQFN44, Fmax=N/A, T=[N/A, N/A], Vcc=[1.6 V, 3.6 V]"; - mcuid = 241; - archnum = 102; - n_interrupts = 91; - boot_section_size = 4096; - signature = 0x1e 0x95 0x42; - - memory "eeprom" - size = 1024; - ; - - memory "flash" - size = 0x9000; - ; - - memory "application" - size = 0x8000; - ; - - memory "apptable" - offset = 0x807000; - ; - - memory "boot" - offset = 0x808000; - ; - - memory "prodsig" - size = 52; - readsize = 52; - ; - - memory "sram" - size = 4096; - ; -; - -#------------------------------------------------------------ -# ATxmega32A4 -#------------------------------------------------------------ - -part parent ".xmega-ab" # x32a4 - desc = "ATxmega32A4"; - id = "x32a4"; - variants = - "ATxmega32A4: N/A, Fmax=N/A, T=[N/A, N/A], Vcc=[1.6 V, 3.6 V]", - "ATxmega32A4-AU: TQFP44, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega32A4-AUR: TQFP44, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega32A4-CU: BGA49, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega32A4-CUR: BGA49, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega32A4-MH: QFN44, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega32A4-MHR: QFN44, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega32A4-MU: VQFN44, Fmax=32 MHz, T=[N/A, N/A], Vcc=[1.6 V, 3.6 V]"; - prog_modes = PM_SPM | PM_PDI; - mcuid = 238; - archnum = 102; - n_interrupts = 94; - boot_section_size = 4096; - signature = 0x1e 0x95 0x41; - - memory "eeprom" - size = 1024; - ; - - memory "flash" - size = 0x9000; - ; - - memory "application" - size = 0x8000; - ; - - memory "apptable" - offset = 0x807000; - ; - - memory "boot" - offset = 0x808000; - ; - - memory "fuse2" - bitmask = 0x43; - ; - - memory "sram" - size = 4096; - ; -; - -#------------------------------------------------------------ -# ATxmega64A4U -#------------------------------------------------------------ - -part parent ".xmega-ab" # x64a4u - desc = "ATxmega64A4U"; - id = "x64a4u"; - variants = - "ATxmega64A4U-AN: TQFP44, Fmax=32 MHz, T=[-40 C, 105 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega64A4U-AU: TQFP44, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega64A4U-AUR: TQFP44, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega64A4U-CU: VFBGA49, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega64A4U-CUR: VFBGA49, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega64A4U-M7: VQFN44PW, Fmax=32 MHz, T=[-40 C, 105 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega64A4U-MH: VQFN44, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega64A4U-MHR: VQFN44, Fmax=N/A, T=[N/A, N/A], Vcc=[N/A, N/A]"; - prog_modes = PM_SPM | PM_PDI; - mcuid = 252; - archnum = 104; - n_interrupts = 127; - boot_section_size = 4096; - signature = 0x1e 0x96 0x46; - usbpid = 0x2fe5; - - memory "prodsig" - size = 64; - page_size = 64; - readsize = 64; - ; - - memory "sram" - size = 4096; - ; -; - -#------------------------------------------------------------ -# ATxmega32C3 -#------------------------------------------------------------ - -part parent ".xmega-cd" # x32c3 - desc = "ATxmega32C3"; - id = "x32c3"; - variants = - "ATxmega32C3-AN: TQFP64, Fmax=32 MHz, T=[-40 C, 105 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega32C3-ANR: N/A, Fmax=N/A, T=[N/A, N/A], Vcc=[N/A, N/A]", - "ATxmega32C3-AU: TQFP64, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega32C3-AUR: TQFP64, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega32C3-M7: QFN64, Fmax=32 MHz, T=[-40 C, 105 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega32C3-MH: VQFN64, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega32C3-MHR: VQFN64, Fmax=N/A, T=[N/A, N/A], Vcc=[N/A, N/A]"; - mcuid = 236; - archnum = 102; - n_interrupts = 127; - boot_section_size = 4096; - signature = 0x1e 0x95 0x49; - usbpid = 0x2fe4; - - memory "eeprom" - size = 1024; - ; - - memory "flash" - size = 0x9000; - ; - - memory "application" - size = 0x8000; - ; - - memory "apptable" - offset = 0x807000; - ; - - memory "boot" - offset = 0x808000; - ; - - memory "prodsig" - page_size = 64; - ; - - memory "sram" - size = 4096; - ; -; - -#------------------------------------------------------------ -# ATxmega32D3 -#------------------------------------------------------------ - -part parent ".xmega-cd" # x32d3 - desc = "ATxmega32D3"; - id = "x32d3"; - variants = - "ATxmega32D3-AN: TQFP64, Fmax=32 MHz, T=[-40 C, 105 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega32D3-ANR: N/A, Fmax=N/A, T=[N/A, N/A], Vcc=[N/A, N/A]", - "ATxmega32D3-AU: TQFP64, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega32D3-AUR: TQFP64, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega32D3-MH: QFN64, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega32D3-MHR: VQFN64, Fmax=N/A, T=[N/A, N/A], Vcc=[N/A, N/A]", - "ATxmega32D3-MN: QFN64, Fmax=32 MHz, T=[-40 C, 105 C], Vcc=[1.6 V, 3.6 V]"; - mcuid = 237; - archnum = 102; - n_interrupts = 114; - boot_section_size = 4096; - signature = 0x1e 0x95 0x4a; - - memory "eeprom" - size = 1024; - ; - - memory "flash" - size = 0x9000; - ; - - memory "application" - size = 0x8000; - ; - - memory "apptable" - offset = 0x807000; - ; - - memory "boot" - offset = 0x808000; - ; - - memory "prodsig" - size = 52; - readsize = 52; - ; - - memory "sram" - size = 4096; - ; -; - -#------------------------------------------------------------ -# ATxmega64C3 -#------------------------------------------------------------ - -part parent ".xmega-cd" # x64c3 - desc = "ATxmega64C3"; - id = "x64c3"; - variants = - "ATxmega64C3-AN: TQFP64, Fmax=32 MHz, T=[-40 C, 105 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega64C3-ANR: N/A, Fmax=N/A, T=[N/A, N/A], Vcc=[N/A, N/A]", - "ATxmega64C3-AU: TQFP64, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega64C3-AUR: TQFP64, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega64C3-M7: QFN64, Fmax=32 MHz, T=[-40 C, 105 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega64C3-MH: VQFN64, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega64C3-MHR: VQFN64, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]"; - mcuid = 249; - archnum = 104; - n_interrupts = 127; - boot_section_size = 4096; - signature = 0x1e 0x96 0x49; - usbpid = 0x2fd6; - - memory "prodsig" - page_size = 64; - ; - - memory "sram" - size = 4096; - ; -; - -#------------------------------------------------------------ -# ATxmega64D3 -#------------------------------------------------------------ - -part parent ".xmega-cd" # x64d3 - desc = "ATxmega64D3"; - id = "x64d3"; - variants = - "ATxmega64D3: N/A, Fmax=N/A, T=[N/A, N/A], Vcc=[1.6 V, 3.6 V]", - "ATxmega64D3-AN: TQFP64, Fmax=32 MHz, T=[-40 C, 105 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega64D3-ANR: N/A, Fmax=N/A, T=[N/A, N/A], Vcc=[N/A, N/A]", - "ATxmega64D3-AU: TQFP64, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega64D3-AUR: TQFP64, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega64D3-MH: QFN64, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega64D3-MHR: VQFN64, Fmax=N/A, T=[N/A, N/A], Vcc=[1.6 V, 3.6 V]", - "ATxmega64D3-MN: QFN64, Fmax=32 MHz, T=[-40 C, 105 C], Vcc=[1.6 V, 3.6 V]"; - mcuid = 250; - archnum = 104; - n_interrupts = 114; - boot_section_size = 4096; - signature = 0x1e 0x96 0x4a; - - memory "prodsig" - size = 52; - readsize = 52; - ; - - memory "sram" - size = 4096; - ; -; - -#------------------------------------------------------------ -# ATxmega64D4 -#------------------------------------------------------------ - -part parent ".xmega-cd" # x64d4 - desc = "ATxmega64D4"; - id = "x64d4"; - variants = - "ATxmega64D4-AN: TQFP44, Fmax=32 MHz, T=[-40 C, 105 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega64D4-AU: QFP44, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega64D4-AUR: TQFP44, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega64D4-CU: VFBGA49, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega64D4-CUR: VFBGA49, Fmax=N/A, T=[N/A, N/A], Vcc=[1.6 V, 3.6 V]", - "ATxmega64D4-M7: VFBGA49, Fmax=32 MHz, T=[-40 C, 105 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega64D4-MH: VQFN44, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega64D4-MHR: VQFN44, Fmax=N/A, T=[N/A, N/A], Vcc=[1.6 V, 3.6 V]"; - mcuid = 253; - archnum = 104; - n_interrupts = 91; - boot_section_size = 4096; - signature = 0x1e 0x96 0x47; - - memory "prodsig" - page_size = 64; - ; - - memory "sram" - size = 4096; - ; -; - -#------------------------------------------------------------ -# ATxmega64A1 -#------------------------------------------------------------ - -part parent ".xmega-ab" # x64a1 - desc = "ATxmega64A1"; - id = "x64a1"; - variants = - "ATxmega64A1: N/A, Fmax=N/A, T=[N/A, N/A], Vcc=[1.6 V, 3.6 V]", - "ATxmega64A1-AU: TQFP100, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega64A1-AUR: TQFP100, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega64A1-C7U: VFBGA100, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega64A1-C7UR: VFBGA100, Fmax=N/A, T=[N/A, N/A], Vcc=[1.6 V, 3.6 V]", - "ATxmega64A1-CU: CBGA100, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega64A1-CUR: BGA100, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]"; - mcuid = 243; - archnum = 105; - n_interrupts = 125; - boot_section_size = 4096; - signature = 0x1e 0x96 0x4e; - - memory "fuse2" - bitmask = 0x43; - ; - - memory "sram" - size = 4096; - ; -; - -#------------------------------------------------------------ -# ATxmega64A1U -#------------------------------------------------------------ - -part parent ".xmega-ab" # x64a1u - desc = "ATxmega64A1U"; - id = "x64a1u"; - variants = - "ATxmega64A1U-AN: TQFP100, Fmax=32 MHz, T=[-40 C, 105 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega64A1U-AU: TQFP100, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega64A1U-AUR: TQFP100, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega64A1U-C7U: VFBGA100, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega64A1U-C7UR: VFBGA100, Fmax=N/A, T=[N/A, N/A], Vcc=[N/A, N/A]", - "ATxmega64A1U-CU: CBGA100, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega64A1U-CUR: TFBGA100, Fmax=N/A, T=[N/A, N/A], Vcc=[N/A, N/A]"; - mcuid = 244; - archnum = 105; - n_interrupts = 127; - boot_section_size = 4096; - signature = 0x1e 0x96 0x4e; - usbpid = 0x2fe8; - - memory "prodsig" - size = 64; - page_size = 64; - readsize = 64; - ; - - memory "sram" - size = 4096; - ; -; - -#------------------------------------------------------------ -# ATxmega64A3 -#------------------------------------------------------------ - -part parent ".xmega-ab" # x64a3 - desc = "ATxmega64A3"; - id = "x64a3"; - variants = - "ATxmega64A3: N/A, Fmax=N/A, T=[N/A, N/A], Vcc=[1.6 V, 3.6 V]", - "ATxmega64A3-AU: TQFP64, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega64A3-AUR: TQFP64, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega64A3-MH: QFN64, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega64A3-MHR: QFN64, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega64A3-MU: QFN64, Fmax=32 MHz, T=[N/A, N/A], Vcc=[1.6 V, 3.6 V]"; - mcuid = 246; - archnum = 104; - n_interrupts = 122; - boot_section_size = 4096; - signature = 0x1e 0x96 0x42; - - memory "fuse2" - bitmask = 0x43; - ; - - memory "sram" - size = 4096; - ; -; - -#------------------------------------------------------------ -# ATxmega64A3U -#------------------------------------------------------------ - -part parent ".xmega-ab" # x64a3u - desc = "ATxmega64A3U"; - id = "x64a3u"; - variants = - "ATxmega64A3U-AN: TQFP64, Fmax=32 MHz, T=[-40 C, 105 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega64A3U-AU: TQFP64, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega64A3U-AUR: TQFP64, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega64A3U-MH: QFN64, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega64A3U-MHR: VQFN64, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega64A3U-MN: QFN64, Fmax=32 MHz, T=[-40 C, 105 C], Vcc=[1.6 V, 3.6 V]"; - mcuid = 247; - archnum = 104; - n_interrupts = 127; - boot_section_size = 4096; - signature = 0x1e 0x96 0x42; - usbpid = 0x2fe5; - - memory "sram" - size = 4096; - ; -; - -#------------------------------------------------------------ -# ATxmega64A4 -#------------------------------------------------------------ - -part parent ".xmega-ab" # x64a4 - desc = "ATxmega64A4"; - id = "x64a4"; - variants = - "ATxmega64A4: N/A, Fmax=N/A, T=[N/A, N/A], Vcc=[1.6 V, 3.6 V]"; - mcuid = 251; - archnum = 104; - n_interrupts = 125; - boot_section_size = 4096; - signature = 0x1e 0x96 0x46; - - memory "fuse0" - initval = -1; - ; - - memory "fuse1" - initval = -1; - ; - - memory "fuse2" - initval = -1; - bitmask = -1; - ; - - memory "fuse4" - initval = -1; - bitmask = -1; - ; - - memory "fuse5" - initval = -1; - bitmask = -1; - ; - - memory "lock" - initval = -1; - ; - - memory "sram" - size = 4096; - ; -; - -#------------------------------------------------------------ -# ATxmega64B1 -#------------------------------------------------------------ - -part parent ".xmega-ab" # x64b1 - desc = "ATxmega64B1"; - id = "x64b1"; - variants = - "ATxmega64B1-AU: TQFP100, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega64B1-AUR: TQFP100, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega64B1-CU: VFBGA100, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega64B1-CUR: TQFP100, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]"; - mcuid = 245; - archnum = 104; - n_interrupts = 81; - boot_section_size = 4096; - signature = 0x1e 0x96 0x52; - usbpid = 0x2fe1; - - memory "fuse4" - initval = 0xff; - ; - - memory "calibration" - size = 5; - ; - - memory "sram" - size = 4096; - ; -; - -#------------------------------------------------------------ -# ATxmega64B3 -#------------------------------------------------------------ - -part parent ".xmega-ab" # x64b3 - desc = "ATxmega64B3"; - id = "x64b3"; - variants = - "ATxmega64B3-AU: TQFP64, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega64B3-AUR: TQFP100, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega64B3-MH: QFN64, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]"; - mcuid = 248; - archnum = 104; - n_interrupts = 54; - boot_section_size = 4096; - signature = 0x1e 0x96 0x51; - usbpid = 0x2fdf; - - memory "fuse4" - initval = 0xff; - ; - - memory "calibration" - size = 5; - ; - - memory "sram" - size = 4096; - ; -; - -#------------------------------------------------------------ -# ATxmega128C3 -#------------------------------------------------------------ - -part parent ".xmega-cd" # x128c3 - desc = "ATxmega128C3"; - id = "x128c3"; - variants = - "ATxmega128C3-AN: TQFP64, Fmax=32 MHz, T=[-40 C, 105 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega128C3-AU: TQFP64, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega128C3-AUR: TQFP64, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega128C3-M7: QFN64, Fmax=32 MHz, T=[-40 C, 105 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega128C3-MH: QFN64, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega128C3-MHR: QFN64, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]"; - mcuid = 261; - archnum = 106; - n_interrupts = 127; - boot_section_size = 8192; - signature = 0x1e 0x97 0x52; - usbpid = 0x2fd7; - - memory "flash" - size = 0x22000; - page_size = 512; - ; - - memory "application" - size = 0x20000; - page_size = 512; - ; - - memory "apptable" - size = 8192; - page_size = 512; - offset = 0x81e000; - ; - - memory "boot" - size = 8192; - page_size = 512; - offset = 0x820000; - ; - - memory "prodsig" - page_size = 64; - ; - - memory "usersig" - size = 512; - page_size = 512; - ; - - memory "sram" - size = 8192; - ; -; - -#------------------------------------------------------------ -# ATxmega128D3 -#------------------------------------------------------------ - -part parent ".xmega-cd" # x128d3 - desc = "ATxmega128D3"; - id = "x128d3"; - variants = - "ATxmega128D3: N/A, Fmax=N/A, T=[N/A, N/A], Vcc=[1.6 V, 3.6 V]", - "ATxmega128D3-AN: TQFP64, Fmax=32 MHz, T=[-40 C, 105 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega128D3-AU: TQFP64, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega128D3-AUR: TQFP64, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega128D3-MH: QFN64, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega128D3-MHR: VQFN64, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega128D3-MN: QFN64, Fmax=32 MHz, T=[-40 C, 105 C], Vcc=[1.6 V, 3.6 V]"; - mcuid = 262; - archnum = 106; - n_interrupts = 114; - boot_section_size = 8192; - signature = 0x1e 0x97 0x48; - - memory "flash" - size = 0x22000; - page_size = 512; - ; - - memory "application" - size = 0x20000; - page_size = 512; - ; - - memory "apptable" - size = 8192; - page_size = 512; - offset = 0x81e000; - ; - - memory "boot" - size = 8192; - page_size = 512; - offset = 0x820000; - ; - - memory "prodsig" - size = 52; - readsize = 52; - ; - - memory "usersig" - size = 512; - page_size = 512; - ; - - memory "sram" - size = 8192; - ; -; - -#------------------------------------------------------------ -# ATxmega128D4 -#------------------------------------------------------------ - -part parent ".xmega-cd" # x128d4 - desc = "ATxmega128D4"; - id = "x128d4"; - variants = - "ATxmega128D4-AN: TQFP44, Fmax=32 MHz, T=[-40 C, 105 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega128D4-AU: TQFP44, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega128D4-AUR: TQFP44, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega128D4-CU: VFBGA49, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega128D4-CUR: VFBGA49, Fmax=N/A, T=[N/A, N/A], Vcc=[N/A, N/A]", - "ATxmega128D4-M7: VFBGA49, Fmax=32 MHz, T=[-40 C, 105 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega128D4-MH: QFN44, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega128D4-MHR: VQFN44, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]"; - mcuid = 265; - archnum = 106; - n_interrupts = 91; - boot_section_size = 8192; - signature = 0x1e 0x97 0x47; - - memory "flash" - size = 0x22000; - ; - - memory "application" - size = 0x20000; - page_size = 512; - ; - - memory "apptable" - size = 8192; - page_size = 512; - offset = 0x81e000; - ; - - memory "boot" - size = 8192; - page_size = 512; - offset = 0x820000; - ; - - memory "prodsig" - page_size = 64; - ; - - memory "usersig" - size = 512; - page_size = 512; - ; - - memory "sram" - size = 8192; - ; -; - -#------------------------------------------------------------ -# ATxmega128A1 -#------------------------------------------------------------ - -part parent ".xmega-ab" # x128a1 - desc = "ATxmega128A1"; - id = "x128a1"; - variants = - "ATxmega128A1: N/A, Fmax=N/A, T=[N/A, N/A], Vcc=[1.6 V, 3.6 V]", - "ATxmega128A1-AU: TQFP100, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega128A1-AUR: TQFP100, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega128A1-C7U: VFBGA100, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega128A1-C7UR: VFBGA100, Fmax=N/A, T=[N/A, N/A], Vcc=[1.6 V, 3.6 V]", - "ATxmega128A1-CU: CBGA100, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega128A1-CUR: BGA100, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]"; - mcuid = 254; - archnum = 107; - n_interrupts = 125; - boot_section_size = 8192; - signature = 0x1e 0x97 0x4c; - - memory "flash" - size = 0x22000; - page_size = 512; - ; - - memory "application" - size = 0x20000; - page_size = 512; - ; - - memory "apptable" - size = 8192; - page_size = 512; - offset = 0x81e000; - ; - - memory "boot" - size = 8192; - page_size = 512; - offset = 0x820000; - ; - - memory "fuse2" - bitmask = 0x43; - ; - - memory "usersig" - size = 512; - page_size = 512; - ; - - memory "sram" - size = 8192; - ; -; - -#------------------------------------------------------------ -# ATxmega128A1 revision D -#------------------------------------------------------------ - -part parent "x128a1" # x128a1d - desc = "ATxmega128A1revD"; - id = "x128a1d"; - mcuid = 255; - signature = 0x1e 0x97 0x41; -; - -#------------------------------------------------------------ -# ATxmega128A1U -#------------------------------------------------------------ - -part parent ".xmega-ab" # x128a1u - desc = "ATxmega128A1U"; - id = "x128a1u"; - variants = - "ATxmega128A1U-AN: TQFP100, Fmax=32 MHz, T=[-40 C, 105 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega128A1U-ANR: N/A, Fmax=N/A, T=[N/A, N/A], Vcc=[N/A, N/A]", - "ATxmega128A1U-AU: TQFP100, Fmax=32 MHz, T=[-40 C, 105 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega128A1U-AUR: N/A, Fmax=32 MHz, T=[-40 C, 105 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega128A1U-C7U: VFBGA100, Fmax=32 MHz, T=[-40 C, 105 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega128A1U-C7UR: VFBGA100, Fmax=N/A, T=[N/A, N/A], Vcc=[N/A, N/A]", - "ATxmega128A1U-CU: CBGA100, Fmax=32 MHz, T=[-40 C, 105 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega128A1U-CUR: CBGA100, Fmax=32 MHz, T=[-40 C, 105 C], Vcc=[1.6 V, 3.6 V]"; - mcuid = 256; - archnum = 107; - n_interrupts = 127; - boot_section_size = 8192; - signature = 0x1e 0x97 0x4c; - usbpid = 0x2fed; - - memory "flash" - size = 0x22000; - page_size = 512; - ; - - memory "application" - size = 0x20000; - page_size = 512; - ; - - memory "apptable" - size = 8192; - page_size = 512; - offset = 0x81e000; - ; - - memory "boot" - size = 8192; - page_size = 512; - offset = 0x820000; - ; - - memory "prodsig" - size = 64; - page_size = 64; - readsize = 64; - ; - - memory "usersig" - size = 512; - page_size = 512; - ; - - memory "sram" - size = 8192; - ; -; - -#------------------------------------------------------------ -# ATxmega128A3 -#------------------------------------------------------------ - -part parent ".xmega-ab" # x128a3 - desc = "ATxmega128A3"; - id = "x128a3"; - variants = - "ATxmega128A3: N/A, Fmax=N/A, T=[N/A, N/A], Vcc=[1.6 V, 3.6 V]", - "ATxmega128A3-AU: TQFP64, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega128A3-AUR: TQFP64, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega128A3-MH: QFN64, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega128A3-MHR: QFN64, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega128A3-MU: QFN64, Fmax=32 MHz, T=[N/A, N/A], Vcc=[1.6 V, 3.6 V]"; - mcuid = 258; - archnum = 106; - n_interrupts = 122; - boot_section_size = 8192; - signature = 0x1e 0x97 0x42; - - memory "flash" - size = 0x22000; - page_size = 512; - ; - - memory "application" - size = 0x20000; - page_size = 512; - ; - - memory "apptable" - size = 8192; - page_size = 512; - offset = 0x81e000; - ; - - memory "boot" - size = 8192; - page_size = 512; - offset = 0x820000; - ; - - memory "fuse2" - bitmask = 0x43; - ; - - memory "usersig" - size = 512; - page_size = 512; - ; - - memory "sram" - size = 8192; - ; -; - -#------------------------------------------------------------ -# ATxmega128A3U -#------------------------------------------------------------ - -part parent ".xmega-ab" # x128a3u - desc = "ATxmega128A3U"; - id = "x128a3u"; - variants = - "ATxmega128A3U-AN: TQFP64, Fmax=32 MHz, T=[-40 C, 105 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega128A3U-AU: TQFP64, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega128A3U-AUR: TQFP64, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega128A3U-MH: QFN64, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega128A3U-MHR: QFN64, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega128A3U-MN: QFN64, Fmax=32 MHz, T=[-40 C, 105 C], Vcc=[1.6 V, 3.6 V]"; - mcuid = 259; - archnum = 106; - n_interrupts = 127; - boot_section_size = 8192; - signature = 0x1e 0x97 0x42; - usbpid = 0x2fe6; - - memory "flash" - size = 0x22000; - page_size = 512; - ; - - memory "application" - size = 0x20000; - page_size = 512; - ; - - memory "apptable" - size = 8192; - page_size = 512; - offset = 0x81e000; - ; - - memory "boot" - size = 8192; - page_size = 512; - offset = 0x820000; - ; - - memory "usersig" - size = 512; - page_size = 512; - ; - - memory "sram" - size = 8192; - ; -; - -#------------------------------------------------------------ -# ATxmega128A4 -#------------------------------------------------------------ - -part parent ".xmega-ab" # x128a4 - desc = "ATxmega128A4"; - id = "x128a4"; - variants = - "ATxmega128A4: N/A, Fmax=N/A, T=[N/A, N/A], Vcc=[1.6 V, 3.6 V]"; - mcuid = 263; - archnum = 107; - boot_section_size = 8192; - signature = 0x1e 0x97 0x46; - - memory "flash" - size = 0x22000; - ; - - memory "application" - size = 0x20000; - page_size = 512; - ; - - memory "apptable" - page_size = 512; - offset = 0x81f000; - ; - - memory "boot" - size = 8192; - page_size = 512; - offset = 0x820000; - ; - - memory "fuse0" - initval = -1; - ; - - memory "fuse1" - initval = -1; - ; - - memory "fuse2" - initval = -1; - bitmask = -1; - ; - - memory "fuse4" - initval = -1; - bitmask = -1; - ; - - memory "fuse5" - initval = -1; - bitmask = -1; - ; - - memory "lock" - initval = -1; - ; - - memory "prodsig" - size = 50; - readsize = 50; - ; - - memory "usersig" - size = 512; - page_size = 512; - ; - - memory "sram" - size = 8192; - ; -; - -#------------------------------------------------------------ -# ATxmega128A4U -#------------------------------------------------------------ - -part parent ".xmega-ab" # x128a4u - desc = "ATxmega128A4U"; - id = "x128a4u"; - variants = - "ATxmega128A4U-AN: TQFP44, Fmax=32 MHz, T=[-40 C, 105 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega128A4U-AU: TQFP44, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega128A4U-AUR: TQFP44, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega128A4U-CU: BGA49, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega128A4U-M7: VQFN44PW, Fmax=32 MHz, T=[-40 C, 105 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega128A4U-MH: VQFN44, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega128A4U-MHR: VQFN44, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]"; - prog_modes = PM_SPM | PM_PDI; - mcuid = 264; - archnum = 107; - n_interrupts = 127; - boot_section_size = 8192; - signature = 0x1e 0x97 0x46; - usbpid = 0x2fde; - - memory "flash" - size = 0x22000; - ; - - memory "application" - size = 0x20000; - ; - - memory "apptable" - offset = 0x81f000; - ; - - memory "boot" - size = 8192; - offset = 0x820000; - ; - - memory "prodsig" - size = 64; - page_size = 64; - readsize = 64; - ; - - memory "sram" - size = 8192; - ; -; - -#------------------------------------------------------------ -# ATxmega128B1 -#------------------------------------------------------------ - -part parent ".xmega-ab" # x128b1 - desc = "ATxmega128B1"; - id = "x128b1"; - variants = - "ATxmega128B1-AN: TQFP100, Fmax=32 MHz, T=[-40 C, 105 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega128B1-AU: TQFP100, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega128B1-AUR: TQFP100, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega128B1-CU: VFBGA100, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega128B1-CUR: TFBGA100, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]"; - mcuid = 257; - archnum = 106; - n_interrupts = 81; - boot_section_size = 8192; - signature = 0x1e 0x97 0x4d; - usbpid = 0x2fea; - - memory "flash" - size = 0x22000; - ; - - memory "application" - size = 0x20000; - ; - - memory "apptable" - size = 8192; - offset = 0x81e000; - ; - - memory "boot" - size = 8192; - offset = 0x820000; - ; - - memory "fuse4" - initval = 0xff; - ; - - memory "calibration" - size = 5; - ; - - memory "sram" - size = 8192; - ; -; - -#------------------------------------------------------------ -# ATxmega128B3 -#------------------------------------------------------------ - -part parent ".xmega-ab" # x128b3 - desc = "ATxmega128B3"; - id = "x128b3"; - variants = - "ATxmega128B3-AU: TQFP64, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega128B3-AUR: TQFP64, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega128B3-MCU: VQFN64, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega128B3-MCUR: VQFN64, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega128B3-MH: QFN64, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega128B3-MHR: QFN64, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]"; - mcuid = 260; - archnum = 106; - n_interrupts = 54; - boot_section_size = 8192; - signature = 0x1e 0x97 0x4b; - usbpid = 0x2fe0; - - memory "flash" - size = 0x22000; - ; - - memory "application" - size = 0x20000; - ; - - memory "apptable" - size = 8192; - offset = 0x81e000; - ; - - memory "boot" - size = 8192; - offset = 0x820000; - ; - - memory "fuse4" - initval = 0xff; - ; - - memory "calibration" - size = 5; - ; - - memory "sram" - size = 8192; - ; -; - -#------------------------------------------------------------ -# ATxmega192C3 -#------------------------------------------------------------ - -part parent ".xmega-cd" # x192c3 - desc = "ATxmega192C3"; - id = "x192c3"; - variants = - "ATxmega192C3-AU: TQFP64, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega192C3-AUR: TQFP64, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega192C3-MH: VQFN64, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega192C3-MHR: QFN64, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]"; - mcuid = 269; - archnum = 106; - n_interrupts = 127; - boot_section_size = 8192; - signature = 0x1e 0x97 0x51; - - memory "flash" - size = 0x32000; - page_size = 512; - ; - - memory "application" - size = 0x30000; - page_size = 512; - ; - - memory "apptable" - size = 8192; - page_size = 512; - offset = 0x82e000; - ; - - memory "boot" - size = 8192; - page_size = 512; - offset = 0x830000; - ; - - memory "prodsig" - page_size = 64; - ; - - memory "usersig" - size = 512; - page_size = 512; - ; - - memory "sram" - size = 0x4000; - ; -; - -#------------------------------------------------------------ -# ATxmega192D3 -#------------------------------------------------------------ - -part parent ".xmega-cd" # x192d3 - desc = "ATxmega192D3"; - id = "x192d3"; - variants = - "ATxmega192D3: N/A, Fmax=N/A, T=[N/A, N/A], Vcc=[1.6 V, 3.6 V]", - "ATxmega192D3-AN: TQFP64, Fmax=32 MHz, T=[-40 C, 105 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega192D3-AU: TQFP64, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega192D3-AUR: TQFP64, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega192D3-MH: QFN64, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega192D3-MHR: VQFN64, Fmax=N/A, T=[N/A, N/A], Vcc=[1.6 V, 3.6 V]", - "ATxmega192D3-MN: QFN64, Fmax=32 MHz, T=[-40 C, 105 C], Vcc=[1.6 V, 3.6 V]"; - mcuid = 270; - archnum = 106; - n_interrupts = 114; - boot_section_size = 8192; - signature = 0x1e 0x97 0x49; - - memory "flash" - size = 0x32000; - page_size = 512; - ; - - memory "application" - size = 0x30000; - page_size = 512; - ; - - memory "apptable" - size = 8192; - page_size = 512; - offset = 0x82e000; - ; - - memory "boot" - size = 8192; - page_size = 512; - offset = 0x830000; - ; - - memory "prodsig" - size = 52; - readsize = 52; - ; - - memory "usersig" - size = 512; - page_size = 512; - ; - - memory "sram" - size = 0x4000; - ; -; - -#------------------------------------------------------------ -# ATxmega192A1 -#------------------------------------------------------------ - -part parent ".xmega-ab" # x192a1 - desc = "ATxmega192A1"; - id = "x192a1"; - variants = - "ATxmega192A1-AU: TQFP100, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega192A1-CU: CBGA100, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]"; - mcuid = 266; - archnum = 107; - n_interrupts = 127; - boot_section_size = 8192; - signature = 0x1e 0x97 0x4e; - - memory "flash" - size = 0x32000; - page_size = 512; - ; - - memory "application" - size = 0x30000; - page_size = 512; - ; - - memory "apptable" - size = 8192; - page_size = 512; - offset = 0x82e000; - ; - - memory "boot" - size = 8192; - page_size = 512; - offset = 0x830000; - ; - - memory "fuse0" - initval = -1; - ; - - memory "fuse1" - initval = -1; - ; - - memory "fuse2" - initval = -1; - bitmask = -1; - ; - - memory "fuse4" - initval = -1; - bitmask = -1; - ; - - memory "fuse5" - initval = -1; - bitmask = -1; - ; - - memory "lock" - initval = -1; - ; - - memory "prodsig" - size = 64; - page_size = 64; - readsize = 64; - ; - - memory "usersig" - size = 512; - page_size = 512; - ; - - memory "sram" - size = 0x4000; - ; -; - -#------------------------------------------------------------ -# ATxmega192A3 -#------------------------------------------------------------ - -part parent ".xmega-ab" # x192a3 - desc = "ATxmega192A3"; - id = "x192a3"; - variants = - "ATxmega192A3: N/A, Fmax=N/A, T=[N/A, N/A], Vcc=[1.6 V, 3.6 V]", - "ATxmega192A3-AU: TQFP64, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega192A3-AUR: TQFP64, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega192A3-MH: QFN64, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega192A3-MHR: QFN64, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega192A3-MU: QFN64, Fmax=32 MHz, T=[N/A, N/A], Vcc=[1.6 V, 3.6 V]"; - mcuid = 267; - archnum = 106; - n_interrupts = 122; - boot_section_size = 8192; - signature = 0x1e 0x97 0x44; - - memory "flash" - size = 0x32000; - page_size = 512; - ; - - memory "application" - size = 0x30000; - page_size = 512; - ; - - memory "apptable" - size = 8192; - page_size = 512; - offset = 0x82e000; - ; - - memory "boot" - size = 8192; - page_size = 512; - offset = 0x830000; - ; - - memory "fuse2" - bitmask = 0x43; - ; - - memory "usersig" - size = 512; - page_size = 512; - ; - - memory "sram" - size = 0x4000; - ; -; - -#------------------------------------------------------------ -# ATxmega192A3U -#------------------------------------------------------------ - -part parent ".xmega-ab" # x192a3u - desc = "ATxmega192A3U"; - id = "x192a3u"; - variants = - "ATxmega192A3U-AN: TQFP64, Fmax=32 MHz, T=[-40 C, 105 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega192A3U-ANR: TQFP64, Fmax=32 MHz, T=[-40 C, 105 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega192A3U-AU: TQFP64, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega192A3U-AUR: TQFP64, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega192A3U-MH: QFN64, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega192A3U-MHR: VQFN64, Fmax=N/A, T=[N/A, N/A], Vcc=[N/A, N/A]", - "ATxmega192A3U-MN: QFN64, Fmax=32 MHz, T=[-40 C, 105 C], Vcc=[1.6 V, 3.6 V]"; - mcuid = 268; - archnum = 106; - n_interrupts = 127; - boot_section_size = 8192; - signature = 0x1e 0x97 0x44; - usbpid = 0x2fe7; - - memory "flash" - size = 0x32000; - page_size = 512; - ; - - memory "application" - size = 0x30000; - page_size = 512; - ; - - memory "apptable" - size = 8192; - page_size = 512; - offset = 0x82e000; - ; - - memory "boot" - size = 8192; - page_size = 512; - offset = 0x830000; - ; - - memory "usersig" - size = 512; - page_size = 512; - ; - - memory "sram" - size = 0x4000; - ; -; - -#------------------------------------------------------------ -# ATxmega256C3 -#------------------------------------------------------------ - -part parent ".xmega-cd" # x256c3 - desc = "ATxmega256C3"; - id = "x256c3"; - variants = - "ATxmega256C3-AN: TQFP64, Fmax=32 MHz, T=[-40 C, 105 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega256C3-AU: TQFP64, Fmax=32 MHz, T=[-40 C, 105 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega256C3-AUR: TQFP64, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega256C3-M7: QFN64, Fmax=32 MHz, T=[-40 C, 105 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega256C3-MH: VQFN64, Fmax=32 MHz, T=[-40 C, 105 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega256C3-MHR: QFN64, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]"; - mcuid = 276; - archnum = 106; - n_interrupts = 127; - boot_section_size = 8192; - signature = 0x1e 0x98 0x46; - usbpid = 0x2fda; - - memory "eeprom" - size = 4096; - ; - - memory "flash" - size = 0x42000; - page_size = 512; - ; - - memory "application" - size = 0x40000; - page_size = 512; - ; - - memory "apptable" - size = 8192; - page_size = 512; - offset = 0x83e000; - ; - - memory "boot" - size = 8192; - page_size = 512; - offset = 0x840000; - ; - - memory "prodsig" - page_size = 64; - ; - - memory "usersig" - size = 512; - page_size = 512; - ; - - memory "sram" - size = 0x4000; - ; -; - -#------------------------------------------------------------ -# ATxmega256D3 -#------------------------------------------------------------ - -part parent ".xmega-cd" # x256d3 - desc = "ATxmega256D3"; - id = "x256d3"; - variants = - "ATxmega256D3: N/A, Fmax=N/A, T=[N/A, N/A], Vcc=[1.6 V, 3.6 V]", - "ATxmega256D3-AN: TQFP64, Fmax=32 MHz, T=[-40 C, 105 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega256D3-AU: TQFP64, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega256D3-AUR: TQFP64, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega256D3-MH: QFN64, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega256D3-MHR: VQFN64, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega256D3-MN: QFN64, Fmax=32 MHz, T=[-40 C, 105 C], Vcc=[1.6 V, 3.6 V]"; - mcuid = 277; - archnum = 106; - n_interrupts = 114; - boot_section_size = 8192; - signature = 0x1e 0x98 0x44; - - memory "eeprom" - size = 4096; + loadpage_lo = "0100.0000--000x.xxxx--xxxa.aaaa--iiii.iiii"; + loadpage_hi = "0100.1000--000x.xxxx--xxxa.aaaa--iiii.iiii"; + writepage = "0100.1100--0000.0aaa--aaax.xxxx--xxxx.xxxx"; ; - memory "flash" - size = 0x42000; - page_size = 512; + memory "lfuse" + size = 1; + min_write_delay = 9000; + max_write_delay = 9000; + read = "0101.0000--0000.0000--xxxx.xxxx--oooo.oooo"; + write = "1010.1100--1010.0000--xxxx.xxxx--iiii.iiii"; ; - memory "application" - size = 0x40000; - page_size = 512; + memory "hfuse" + size = 1; + min_write_delay = 9000; + max_write_delay = 9000; + read = "0101.1000--0000.1000--xxxx.xxxx--oooo.oooo"; + write = "1010.1100--1010.1000--xxxx.xxxx--iiii.iiii"; ; - memory "apptable" - size = 8192; - page_size = 512; - offset = 0x83e000; + memory "efuse" + size = 1; + min_write_delay = 9000; + max_write_delay = 9000; + read = "0101.0000--0000.1000--xxxx.xxxx--oooo.oooo"; + write = "1010.1100--1010.0100--xxxx.xxxx--xxxx.xxxi"; ; - memory "boot" - size = 8192; - page_size = 512; - offset = 0x840000; + memory "lock" + size = 1; + min_write_delay = 9000; + max_write_delay = 9000; + read = "0101.1000--0000.0000--0000.0000--oooo.oooo"; + write = "1010.1100--111x.xxxx--xxxx.xxxx--xxxx.xxii"; ; - - memory "prodsig" - size = 52; - readsize = 52; +# ATtiny44 has Signature Bytes: 0x1E 0x92 0x07. + memory "signature" + size = 3; + read = "0011.0000--000x.xxxx--xxxx.xxaa--oooo.oooo"; ; - memory "usersig" - size = 512; - page_size = 512; + memory "calibration" + size = 1; + read = "0011.1000--000x.xxxx--0000.000a--oooo.oooo"; ; +; - memory "sram" - size = 0x4000; - ; +#------------------------------------------------------------ +# ATtiny44A +#------------------------------------------------------------ + +part parent "t44" + desc = "ATtiny44A"; + id = "t44a"; + mcuid = 21; ; #------------------------------------------------------------ -# ATxmega256A1 +# ATtiny84 #------------------------------------------------------------ -part parent ".xmega-ab" # x256a1 - desc = "ATxmega256A1"; - id = "x256a1"; - variants = - "ATxmega256A1-AU: TQFP100, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega256A1-CU: CBGA100, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]"; - mcuid = 271; - archnum = 107; - n_interrupts = 127; - boot_section_size = 8192; - signature = 0x1e 0x98 0x46; +part + desc = "ATtiny84"; + id = "t84"; + prog_modes = PM_SPM | PM_ISP | PM_HVSP | PM_debugWIRE; + mcuid = 24; + n_interrupts = 17; +# no STK500 devcode in XML file, use the ATtiny45 one + stk500_devcode = 0x14; +# avr910_devcode = ?; +# Try the AT90S2313 devcode: + avr910_devcode = 0x20; + chip_erase_delay = 4500; + signature = 0x1e 0x93 0x0c; + reset = io; + timeout = 200; + stabdelay = 100; + cmdexedelay = 25; + synchloops = 32; + pollindex = 3; + pollvalue = 0x53; + predelay = 1; + postdelay = 1; + pollmethod = 1; + hvsp_controlstack = + 0x4c, 0x0c, 0x1c, 0x2c, 0x3c, 0x64, 0x74, 0x66, + 0x68, 0x78, 0x68, 0x68, 0x7a, 0x6a, 0x68, 0x78, + 0x78, 0x7d, 0x6d, 0x0c, 0x80, 0x40, 0x20, 0x10, + 0x11, 0x08, 0x04, 0x02, 0x03, 0x08, 0x04, 0x0f; + flash_instr = 0xb4, 0x07, 0x17; + eeprom_instr = + 0xbb, 0xff, 0xbb, 0xee, 0xbb, 0xcc, 0xb2, 0x0d, + 0xbc, 0x07, 0xb4, 0x07, 0xba, 0x0d, 0xbb, 0xbc, + 0x99, 0xe1, 0xbb, 0xac; + hventerstabdelay = 100; + latchcycles = 1; + togglevtg = 1; + poweroffdelay = 25; + resetdelayus = 70; + hvleavestabdelay = 100; + resetdelay = 25; + chiperasepolltimeout = 40; + programfusepolltimeout = 25; + programlockpolltimeout = 25; + synchcycles = 6; + spmcr = 0x57; + eecr = 0x3c; + ocdrev = 1; + chip_erase = "1010.1100--100x.xxxx--xxxx.xxxx--xxxx.xxxx"; + pgm_enable = "1010.1100--0101.0011--xxxx.xxxx--xxxx.xxxx"; memory "eeprom" - size = 4096; + size = 512; + page_size = 4; + min_write_delay = 4000; + max_write_delay = 4500; + readback = 0xff 0xff; + mode = 65; + delay = 6; + blocksize = 4; + readsize = 256; + read = "1010.0000--000x.xxxa--aaaa.aaaa--oooo.oooo"; + write = "1100.0000--000x.xxxa--aaaa.aaaa--iiii.iiii"; + loadpage_lo = "1100.0001--0000.0000--0000.00aa--iiii.iiii"; + writepage = "1100.0010--00xx.xxxa--aaaa.aa00--xxxx.xxxx"; ; memory "flash" - size = 0x42000; - page_size = 512; - ; - - memory "application" - size = 0x40000; - page_size = 512; - ; - - memory "apptable" - size = 8192; - page_size = 512; - offset = 0x83e000; - ; - - memory "boot" + paged = yes; size = 8192; - page_size = 512; - offset = 0x840000; - ; - - memory "fuse0" - initval = -1; - ; - - memory "fuse1" - initval = -1; + page_size = 64; + num_pages = 128; + min_write_delay = 4500; + max_write_delay = 4500; + readback = 0xff 0xff; + mode = 65; + delay = 6; + blocksize = 32; + readsize = 256; + read_lo = "0010.0000--0000.aaaa--aaaa.aaaa--oooo.oooo"; + read_hi = "0010.1000--0000.aaaa--aaaa.aaaa--oooo.oooo"; + loadpage_lo = "0100.0000--000x.xxxx--xxxa.aaaa--iiii.iiii"; + loadpage_hi = "0100.1000--000x.xxxx--xxxa.aaaa--iiii.iiii"; + writepage = "0100.1100--0000.aaaa--aaax.xxxx--xxxx.xxxx"; ; - memory "fuse2" - initval = -1; - bitmask = -1; + memory "lfuse" + size = 1; + min_write_delay = 9000; + max_write_delay = 9000; + read = "0101.0000--0000.0000--xxxx.xxxx--oooo.oooo"; + write = "1010.1100--1010.0000--xxxx.xxxx--iiii.iiii"; ; - memory "fuse4" - initval = -1; - bitmask = -1; + memory "hfuse" + size = 1; + min_write_delay = 9000; + max_write_delay = 9000; + read = "0101.1000--0000.1000--xxxx.xxxx--oooo.oooo"; + write = "1010.1100--1010.1000--xxxx.xxxx--iiii.iiii"; ; - memory "fuse5" - initval = -1; - bitmask = -1; + memory "efuse" + size = 1; + min_write_delay = 9000; + max_write_delay = 9000; + read = "0101.0000--0000.1000--xxxx.xxxx--oooo.oooo"; + write = "1010.1100--1010.0100--xxxx.xxxx--xxxx.xxxi"; ; memory "lock" - initval = -1; - ; - - memory "prodsig" - size = 64; - page_size = 64; - readsize = 64; + size = 1; + min_write_delay = 9000; + max_write_delay = 9000; + read = "0101.1000--0000.0000--0000.0000--oooo.oooo"; + write = "1010.1100--111x.xxxx--xxxx.xxxx--xxxx.xxii"; ; - - memory "usersig" - size = 512; - page_size = 512; +# ATtiny84 has Signature Bytes: 0x1E 0x93 0x0C. + memory "signature" + size = 3; + read = "0011.0000--000x.xxxx--xxxx.xxaa--oooo.oooo"; ; - memory "sram" - size = 0x4000; + memory "calibration" + size = 1; + read = "0011.1000--000x.xxxx--0000.000a--oooo.oooo"; ; ; #------------------------------------------------------------ -# ATxmega256A3 +# ATtiny84A #------------------------------------------------------------ -part parent ".xmega-ab" # x256a3 - desc = "ATxmega256A3"; - id = "x256a3"; - variants = - "ATxmega256A3: N/A, Fmax=N/A, T=[N/A, N/A], Vcc=[1.6 V, 3.6 V]", - "ATxmega256A3-AU: TQFP64, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega256A3-AUR: TQFP64, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega256A3-MH: QFN64, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega256A3-MHR: QFN64, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega256A3-MU: QFN64, Fmax=32 MHz, T=[N/A, N/A], Vcc=[1.6 V, 3.6 V]"; - mcuid = 272; - archnum = 106; - n_interrupts = 122; - boot_section_size = 8192; - signature = 0x1e 0x98 0x42; - - memory "eeprom" - size = 4096; - ; - - memory "flash" - size = 0x42000; - page_size = 512; - ; +part parent "t84" + desc = "ATtiny84A"; + id = "t84a"; + mcuid = 25; +; - memory "application" - size = 0x40000; - page_size = 512; - ; +#------------------------------------------------------------ +# ATtiny441 +#------------------------------------------------------------ - memory "apptable" - size = 8192; - page_size = 512; - offset = 0x83e000; - ; +part parent "t44" + desc = "ATtiny441"; + id = "t441"; + mcuid = 32; + n_interrupts = 30; + n_page_erase = 4; + signature = 0x1e 0x92 0x15; - memory "boot" - size = 8192; - page_size = 512; - offset = 0x840000; + memory "flash" + page_size = 16; + num_pages = 256; + blocksize = 16; + loadpage_lo = "0100.0000--000x.xxxx--xxxx.xaaa--iiii.iiii"; + loadpage_hi = "0100.1000--000x.xxxx--xxxx.xaaa--iiii.iiii"; + writepage = "0100.1100--0000.0aaa--aaaa.axxx--xxxx.xxxx"; ; - memory "fuse2" - bitmask = 0x43; + memory "efuse" + write = "1010.1100--1010.0100--xxxx.xxxx--iiii.iiii"; ; +; - memory "usersig" - size = 512; - page_size = 512; +#------------------------------------------------------------ +# ATtiny841 +#------------------------------------------------------------ + +part parent "t84" + desc = "ATtiny841"; + id = "t841"; + mcuid = 37; + n_interrupts = 30; + n_page_erase = 4; + signature = 0x1e 0x93 0x15; + + memory "flash" + page_size = 16; + num_pages = 512; + blocksize = 16; + loadpage_lo = "0100.0000--000x.xxxx--xxxx.xaaa--iiii.iiii"; + loadpage_hi = "0100.1000--000x.xxxx--xxxx.xaaa--iiii.iiii"; + writepage = "0100.1100--0000.aaaa--aaaa.axxx--xxxx.xxxx"; ; - memory "sram" - size = 0x4000; + memory "efuse" + write = "1010.1100--1010.0100--xxxx.xxxx--iiii.iiii"; ; ; #------------------------------------------------------------ -# ATxmega256A3U +# ATtiny43U #------------------------------------------------------------ -part parent ".xmega-ab" # x256a3u - desc = "ATxmega256A3U"; - id = "x256a3u"; - variants = - "ATxmega256A3U-AN: TQFP64, Fmax=32 MHz, T=[-40 C, 105 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega256A3U-ANR: N/A, Fmax=N/A, T=[N/A, N/A], Vcc=[N/A, N/A]", - "ATxmega256A3U-AU: TQFP64, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega256A3U-AUR: TQFP64, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega256A3U-MH: QFN64, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega256A3U-MHR: QFN64, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega256A3U-MN: QFN64, Fmax=32 MHz, T=[-40 C, 105 C], Vcc=[1.6 V, 3.6 V]"; - mcuid = 275; - archnum = 106; - n_interrupts = 127; - boot_section_size = 8192; - signature = 0x1e 0x98 0x42; - usbpid = 0x2fec; +part + desc = "ATtiny43U"; + id = "t43u"; + prog_modes = PM_SPM | PM_ISP | PM_HVPP | PM_debugWIRE; + mcuid = 19; + n_interrupts = 16; + stk500_devcode = 0x14; +# avr910_devcode = ?; +# Try the AT90S2313 devcode: + avr910_devcode = 0x20; + chip_erase_delay = 1000; + signature = 0x1e 0x92 0x0c; + reset = io; + timeout = 200; + stabdelay = 100; + cmdexedelay = 25; + synchloops = 32; + pollindex = 3; + pollvalue = 0x53; + predelay = 1; + postdelay = 1; + pollmethod = 1; + pp_controlstack = + 0x0e, 0x1e, 0x0e, 0x1e, 0x2e, 0x3e, 0x2e, 0x3e, + 0x4e, 0x5e, 0x4e, 0x5e, 0x6e, 0x7e, 0x6e, 0x7e, + 0x06, 0x16, 0x46, 0x56, 0x0a, 0x1a, 0x4a, 0x5a, + 0x1e, 0x7c, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00; + flash_instr = 0xb4, 0x07, 0x17; + eeprom_instr = + 0xbb, 0xff, 0xbb, 0xee, 0xbb, 0xcc, 0xb2, 0x0d, + 0xbc, 0x07, 0xb4, 0x07, 0xba, 0x0d, 0xbb, 0xbc, + 0x99, 0xe1, 0xbb, 0xac; + hventerstabdelay = 100; + latchcycles = 5; + togglevtg = 1; + poweroffdelay = 20; + resetdelayms = 1; + hvleavestabdelay = 15; + resetdelay = 15; + chiperasepolltimeout = 10; + programfusepolltimeout = 5; + programlockpolltimeout = 5; + spmcr = 0x57; + eecr = 0x3c; + chip_erase = "1010.1100--100x.xxxx--xxxx.xxxx--xxxx.xxxx"; + pgm_enable = "1010.1100--0101.0011--xxxx.xxxx--xxxx.xxxx"; memory "eeprom" - size = 4096; + paged = yes; + size = 64; + page_size = 4; + num_pages = 16; + min_write_delay = 4000; + max_write_delay = 4500; + readback = 0xff 0xff; + mode = 65; + delay = 5; + blocksize = 4; + readsize = 256; + read = "1010.0000--000x.xxxx--00aa.aaaa--oooo.oooo"; + write = "1100.0000--000x.xxxx--00aa.aaaa--iiii.iiii"; + loadpage_lo = "1100.0001--0000.0000--0000.00aa--iiii.iiii"; + writepage = "1100.0010--00xx.xxxx--00aa.aa00--xxxx.xxxx"; ; memory "flash" - size = 0x42000; - page_size = 512; + paged = yes; + size = 4096; + page_size = 64; + num_pages = 64; + min_write_delay = 4500; + max_write_delay = 4500; + readback = 0xff 0xff; + mode = 65; + delay = 10; + blocksize = 64; + readsize = 256; + read_lo = "0010.0000--0000.0aaa--aaaa.aaaa--oooo.oooo"; + read_hi = "0010.1000--0000.0aaa--aaaa.aaaa--oooo.oooo"; + loadpage_lo = "0100.0000--000x.xxxx--xxxa.aaaa--iiii.iiii"; + loadpage_hi = "0100.1000--000x.xxxx--xxxa.aaaa--iiii.iiii"; + writepage = "0100.1100--0000.0aaa--aaax.xxxx--xxxx.xxxx"; ; - memory "application" - size = 0x40000; - page_size = 512; + memory "lfuse" + size = 1; + min_write_delay = 4500; + max_write_delay = 4500; + read = "0101.0000--0000.0000--xxxx.xxxx--oooo.oooo"; + write = "1010.1100--1010.0000--xxxx.xxxx--iiii.iiii"; ; - memory "apptable" - size = 8192; - page_size = 512; - offset = 0x83e000; + memory "hfuse" + size = 1; + min_write_delay = 4500; + max_write_delay = 4500; + read = "0101.1000--0000.1000--xxxx.xxxx--oooo.oooo"; + write = "1010.1100--1010.1000--xxxx.xxxx--iiii.iiii"; ; - memory "boot" - size = 8192; - page_size = 512; - offset = 0x840000; + memory "efuse" + size = 1; + min_write_delay = 4500; + max_write_delay = 4500; + read = "0101.0000--0000.1000--xxxx.xxxx--oooo.oooo"; + write = "1010.1100--1010.0100--xxxx.xxxx--xxxx.xxxi"; ; - memory "usersig" - size = 512; - page_size = 512; + memory "lock" + size = 1; + min_write_delay = 4500; + max_write_delay = 4500; + read = "0101.1000--0000.0000--xxxx.xxxx--oooo.oooo"; + write = "1010.1100--111x.xxxx--xxxx.xxxx--11ii.iiii"; ; - memory "sram" - size = 0x4000; + memory "signature" + size = 3; + read = "0011.0000--000x.xxxx--xxxx.xxaa--oooo.oooo"; + ; + + memory "calibration" + size = 1; + read = "0011.1000--000x.xxxx--0000.000a--oooo.oooo"; ; ; #------------------------------------------------------------ -# ATxmega256A3B +# ATmega16u4 #------------------------------------------------------------ -part parent ".xmega-ab" # x256a3b - desc = "ATxmega256A3B"; - id = "x256a3b"; - variants = - "ATxmega256A3B: N/A, Fmax=N/A, T=[N/A, N/A], Vcc=[1.6 V, 3.6 V]", - "ATxmega256A3B-AU: TQFP64, Fmax=32 MHz, T=[N/A, N/A], Vcc=[1.6 V, 3.6 V]", - "ATxmega256A3B-MH: QFN64, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega256A3B-MHR: QFN64, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega256A3B-MU: QFN64, Fmax=32 MHz, T=[N/A, N/A], Vcc=[1.6 V, 3.6 V]"; - mcuid = 273; - archnum = 106; - n_interrupts = 122; - boot_section_size = 8192; - signature = 0x1e 0x98 0x43; +part + desc = "ATmega16U4"; + id = "m16u4"; + prog_modes = PM_SPM | PM_ISP | PM_HVPP | PM_JTAG; + mcuid = 57; + n_interrupts = 43; + n_boot_sections = 4; + boot_section_size = 512; +# stk500_devcode = 0xB2; +# avr910_devcode = 0x43; + chip_erase_delay = 9000; + pagel = 0xd7; + bs2 = 0xa0; + signature = 0x1e 0x94 0x88; + usbpid = 0x2ff4; + reset = io; + timeout = 200; + stabdelay = 100; + cmdexedelay = 25; + synchloops = 32; + pollindex = 3; + pollvalue = 0x53; + predelay = 1; + postdelay = 1; + pollmethod = 1; + pp_controlstack = + 0x0e, 0x1e, 0x0f, 0x1f, 0x2e, 0x3e, 0x2f, 0x3f, + 0x4e, 0x5e, 0x4f, 0x5f, 0x6e, 0x7e, 0x6f, 0x7f, + 0x66, 0x76, 0x67, 0x77, 0x6a, 0x7a, 0x6b, 0x7b, + 0xbe, 0xfd, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00; + hventerstabdelay = 100; + latchcycles = 5; + togglevtg = 1; + poweroffdelay = 15; + resetdelayms = 1; + hvleavestabdelay = 15; + chiperasepolltimeout = 10; + programfusepolltimeout = 5; + programlockpolltimeout = 5; + idr = 0x31; + rampz = 0x3b; + spmcr = 0x57; + ocdrev = 3; + chip_erase = "1010.1100--1000.0000--xxxx.xxxx--xxxx.xxxx"; + pgm_enable = "1010.1100--0101.0011--xxxx.xxxx--xxxx.xxxx"; memory "eeprom" - size = 4096; + size = 512; + page_size = 4; + min_write_delay = 9000; + max_write_delay = 9000; + mode = 65; + delay = 20; + blocksize = 4; + readsize = 256; + read = "1010.0000--xxxx.xxxa--aaaa.aaaa--oooo.oooo"; + write = "1100.0000--xxxx.xxxa--aaaa.aaaa--iiii.iiii"; + loadpage_lo = "1100.0001--0000.0000--0000.00aa--iiii.iiii"; + writepage = "1100.0010--00xx.xxxa--aaaa.aa00--xxxx.xxxx"; ; memory "flash" - size = 0x42000; - page_size = 512; + paged = yes; + size = 0x4000; + page_size = 128; + num_pages = 128; + min_write_delay = 4500; + max_write_delay = 4500; + mode = 65; + delay = 6; + blocksize = 128; + readsize = 256; + read_lo = "0010.0000--0aaa.aaaa--aaaa.aaaa--oooo.oooo"; + read_hi = "0010.1000--0aaa.aaaa--aaaa.aaaa--oooo.oooo"; + loadpage_lo = "0100.0000--xxxx.xxxx--xxaa.aaaa--iiii.iiii"; + loadpage_hi = "0100.1000--xxxx.xxxx--xxaa.aaaa--iiii.iiii"; + writepage = "0100.1100--aaaa.aaaa--aaxx.xxxx--xxxx.xxxx"; ; - memory "application" - size = 0x40000; - page_size = 512; + memory "lfuse" + size = 1; + min_write_delay = 9000; + max_write_delay = 9000; + read = "0101.0000--0000.0000--xxxx.xxxx--oooo.oooo"; + write = "1010.1100--1010.0000--xxxx.xxxx--iiii.iiii"; ; - memory "apptable" - size = 8192; - page_size = 512; - offset = 0x83e000; + memory "hfuse" + size = 1; + min_write_delay = 9000; + max_write_delay = 9000; + read = "0101.1000--0000.1000--xxxx.xxxx--oooo.oooo"; + write = "1010.1100--1010.1000--xxxx.xxxx--iiii.iiii"; ; - memory "boot" - size = 8192; - page_size = 512; - offset = 0x840000; + memory "efuse" + size = 1; + min_write_delay = 9000; + max_write_delay = 9000; + read = "0101.0000--0000.1000--xxxx.xxxx--oooo.oooo"; + write = "1010.1100--1010.0100--xxxx.xxxx--1111.iiii"; ; - memory "fuse2" - bitmask = 0x43; + memory "lock" + size = 1; + min_write_delay = 9000; + max_write_delay = 9000; + read = "0101.1000--0000.0000--xxxx.xxxx--00oo.oooo"; + write = "1010.1100--111x.xxxx--xxxx.xxxx--11ii.iiii"; ; - memory "usersig" - size = 512; - page_size = 512; + memory "signature" + size = 3; + read = "0011.0000--xxxx.xxxx--xxxx.xxaa--oooo.oooo"; ; - memory "sram" - size = 0x4000; + memory "calibration" + size = 1; + read = "0011.1000--xxxx.xxxx--0000.0000--oooo.oooo"; ; ; #------------------------------------------------------------ -# ATxmega256A3BU +# ATmega32u4 #------------------------------------------------------------ -part parent ".xmega-ab" # x256a3bu - desc = "ATxmega256A3BU"; - id = "x256a3bu"; - variants = - "ATxmega256A3BU-AU: TQFP64, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega256A3BU-AUR: TQFP64, Fmax=N/A, T=[N/A, N/A], Vcc=[N/A, N/A]", - "ATxmega256A3BU-MH: QFN64, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega256A3BU-MHR: VQFN64, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]"; - mcuid = 274; - archnum = 106; - n_interrupts = 127; - boot_section_size = 8192; - signature = 0x1e 0x98 0x43; - usbpid = 0x2fe2; +part + desc = "ATmega32U4"; + id = "m32u4"; + prog_modes = PM_SPM | PM_ISP | PM_HVPP | PM_JTAG; + mcuid = 65; + n_interrupts = 43; + n_boot_sections = 4; + boot_section_size = 512; +# stk500_devcode = 0xB2; +# avr910_devcode = 0x43; + chip_erase_delay = 9000; + pagel = 0xd7; + bs2 = 0xa0; + signature = 0x1e 0x95 0x87; + usbpid = 0x2ff4; + reset = io; + timeout = 200; + stabdelay = 100; + cmdexedelay = 25; + synchloops = 32; + pollindex = 3; + pollvalue = 0x53; + predelay = 1; + postdelay = 1; + pollmethod = 1; + pp_controlstack = + 0x0e, 0x1e, 0x0f, 0x1f, 0x2e, 0x3e, 0x2f, 0x3f, + 0x4e, 0x5e, 0x4f, 0x5f, 0x6e, 0x7e, 0x6f, 0x7f, + 0x66, 0x76, 0x67, 0x77, 0x6a, 0x7a, 0x6b, 0x7b, + 0xbe, 0xfd, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00; + hventerstabdelay = 100; + latchcycles = 5; + togglevtg = 1; + poweroffdelay = 15; + resetdelayms = 1; + hvleavestabdelay = 15; + chiperasepolltimeout = 10; + programfusepolltimeout = 5; + programlockpolltimeout = 5; + idr = 0x31; + rampz = 0x3b; + spmcr = 0x57; + ocdrev = 3; + chip_erase = "1010.1100--1000.0000--xxxx.xxxx--xxxx.xxxx"; + pgm_enable = "1010.1100--0101.0011--xxxx.xxxx--xxxx.xxxx"; memory "eeprom" - size = 4096; + size = 1024; + page_size = 4; + min_write_delay = 9000; + max_write_delay = 9000; + mode = 65; + delay = 20; + blocksize = 4; + readsize = 256; + read = "1010.0000--xxxx.xaaa--aaaa.aaaa--oooo.oooo"; + write = "1100.0000--xxxx.xaaa--aaaa.aaaa--iiii.iiii"; + loadpage_lo = "1100.0001--0000.0000--0000.00aa--iiii.iiii"; + writepage = "1100.0010--00xx.xaaa--aaaa.aa00--xxxx.xxxx"; ; memory "flash" - size = 0x42000; - page_size = 512; + paged = yes; + size = 0x8000; + page_size = 128; + num_pages = 256; + min_write_delay = 4500; + max_write_delay = 4500; + mode = 65; + delay = 6; + blocksize = 128; + readsize = 256; + read_lo = "0010.0000--0aaa.aaaa--aaaa.aaaa--oooo.oooo"; + read_hi = "0010.1000--0aaa.aaaa--aaaa.aaaa--oooo.oooo"; + loadpage_lo = "0100.0000--xxxx.xxxx--xxaa.aaaa--iiii.iiii"; + loadpage_hi = "0100.1000--xxxx.xxxx--xxaa.aaaa--iiii.iiii"; + writepage = "0100.1100--aaaa.aaaa--aaxx.xxxx--xxxx.xxxx"; ; - memory "application" - size = 0x40000; - page_size = 512; + memory "lfuse" + size = 1; + min_write_delay = 9000; + max_write_delay = 9000; + read = "0101.0000--0000.0000--xxxx.xxxx--oooo.oooo"; + write = "1010.1100--1010.0000--xxxx.xxxx--iiii.iiii"; ; - memory "apptable" - size = 8192; - page_size = 512; - offset = 0x83e000; + memory "hfuse" + size = 1; + min_write_delay = 9000; + max_write_delay = 9000; + read = "0101.1000--0000.1000--xxxx.xxxx--oooo.oooo"; + write = "1010.1100--1010.1000--xxxx.xxxx--iiii.iiii"; ; - memory "boot" - size = 8192; - page_size = 512; - offset = 0x840000; + memory "efuse" + size = 1; + min_write_delay = 9000; + max_write_delay = 9000; + read = "0101.0000--0000.1000--xxxx.xxxx--oooo.oooo"; + write = "1010.1100--1010.0100--xxxx.xxxx--1111.iiii"; ; - memory "usersig" - size = 512; - page_size = 512; + memory "lock" + size = 1; + min_write_delay = 9000; + max_write_delay = 9000; + read = "0101.1000--0000.0000--xxxx.xxxx--oooo.oooo"; + write = "1010.1100--111x.xxxx--xxxx.xxxx--11ii.iiii"; ; - memory "sram" - size = 0x4000; + memory "signature" + size = 3; + read = "0011.0000--xxxx.xxxx--xxxx.xxaa--oooo.oooo"; + ; + + memory "calibration" + size = 1; + read = "0011.1000--xxxx.xxxx--0000.0000--oooo.oooo"; ; ; #------------------------------------------------------------ -# ATxmega384C3 +# AT90USB646 #------------------------------------------------------------ -part parent ".xmega-cd" # x384c3 - desc = "ATxmega384C3"; - id = "x384c3"; - variants = - "ATxmega384C3-AN: TQFP64, Fmax=32 MHz, T=[-40 C, 105 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega384C3-AU: TQFP64, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega384C3-AUR: TQFP64, Fmax=N/A, T=[N/A, N/A], Vcc=[N/A, N/A]", - "ATxmega384C3-M7: QFN64, Fmax=32 MHz, T=[-40 C, 105 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega384C3-MH: QFN64, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega384C3-MHR: VQFN64, Fmax=N/A, T=[N/A, N/A], Vcc=[N/A, N/A]"; - mcuid = 278; - archnum = 106; - n_interrupts = 127; - boot_section_size = 8192; - signature = 0x1e 0x98 0x45; - usbpid = 0x2fdb; +part + desc = "AT90USB646"; + id = "usb646"; + prog_modes = PM_SPM | PM_ISP | PM_HVPP | PM_JTAG; + mcuid = 181; + n_interrupts = 38; + n_boot_sections = 4; + boot_section_size = 1024; +# stk500_devcode = 0xB2; +# avr910_devcode = 0x43; + chip_erase_delay = 9000; + pagel = 0xd7; + bs2 = 0xa0; + signature = 0x1e 0x96 0x82; + usbpid = 0x2ff9; + reset = io; + timeout = 200; + stabdelay = 100; + cmdexedelay = 25; + synchloops = 32; + pollindex = 3; + pollvalue = 0x53; + predelay = 1; + postdelay = 1; + pollmethod = 1; + pp_controlstack = + 0x0e, 0x1e, 0x0f, 0x1f, 0x2e, 0x3e, 0x2f, 0x3f, + 0x4e, 0x5e, 0x4f, 0x5f, 0x6e, 0x7e, 0x6f, 0x7f, + 0x66, 0x76, 0x67, 0x77, 0x6a, 0x7a, 0x6b, 0x7b, + 0xbe, 0xfd, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00; + hventerstabdelay = 100; + latchcycles = 5; + togglevtg = 1; + poweroffdelay = 15; + resetdelayms = 1; + hvleavestabdelay = 15; + chiperasepolltimeout = 10; + programfusepolltimeout = 5; + programlockpolltimeout = 5; + idr = 0x31; + rampz = 0x3b; + spmcr = 0x57; + ocdrev = 3; + chip_erase = "1010.1100--1000.0000--xxxx.xxxx--xxxx.xxxx"; + pgm_enable = "1010.1100--0101.0011--xxxx.xxxx--xxxx.xxxx"; memory "eeprom" - size = 4096; + size = 2048; + page_size = 8; + min_write_delay = 9000; + max_write_delay = 9000; + mode = 65; + delay = 10; + blocksize = 8; + readsize = 256; + read = "1010.0000--xxxx.xaaa--aaaa.aaaa--oooo.oooo"; + write = "1100.0000--xxxx.xaaa--aaaa.aaaa--iiii.iiii"; + loadpage_lo = "1100.0001--0000.0000--0000.0aaa--iiii.iiii"; + writepage = "1100.0010--00xx.xaaa--aaaa.a000--xxxx.xxxx"; ; memory "flash" - size = 0x62000; - page_size = 512; + paged = yes; + size = 0x10000; + page_size = 256; + num_pages = 256; + min_write_delay = 4500; + max_write_delay = 4500; + mode = 65; + delay = 6; + blocksize = 256; + readsize = 256; + read_lo = "0010.0000--0aaa.aaaa--aaaa.aaaa--oooo.oooo"; + read_hi = "0010.1000--0aaa.aaaa--aaaa.aaaa--oooo.oooo"; + loadpage_lo = "0100.0000--xxxx.xxxx--xaaa.aaaa--iiii.iiii"; + loadpage_hi = "0100.1000--xxxx.xxxx--xaaa.aaaa--iiii.iiii"; + writepage = "0100.1100--0aaa.aaaa--axxx.xxxx--xxxx.xxxx"; ; - memory "application" - size = 0x60000; - page_size = 512; + memory "lfuse" + size = 1; + min_write_delay = 9000; + max_write_delay = 9000; + read = "0101.0000--0000.0000--xxxx.xxxx--oooo.oooo"; + write = "1010.1100--1010.0000--xxxx.xxxx--iiii.iiii"; ; - memory "apptable" - size = 8192; - page_size = 512; - offset = 0x85e000; + memory "hfuse" + size = 1; + min_write_delay = 9000; + max_write_delay = 9000; + read = "0101.1000--0000.1000--xxxx.xxxx--oooo.oooo"; + write = "1010.1100--1010.1000--xxxx.xxxx--iiii.iiii"; ; - memory "boot" - size = 8192; - page_size = 512; - offset = 0x860000; + memory "efuse" + size = 1; + min_write_delay = 9000; + max_write_delay = 9000; + read = "0101.0000--0000.1000--xxxx.xxxx--oooo.oooo"; + write = "1010.1100--1010.0100--xxxx.xxxx--xxxx.iiii"; ; - memory "prodsig" - page_size = 64; + memory "lock" + size = 1; + min_write_delay = 9000; + max_write_delay = 9000; + read = "0101.1000--0000.0000--xxxx.xxxx--oooo.oooo"; + write = "1010.1100--111x.xxxx--xxxx.xxxx--11ii.iiii"; ; - memory "usersig" - size = 512; - page_size = 512; + memory "signature" + size = 3; + read = "0011.0000--xxxx.xxxx--xxxx.xxaa--oooo.oooo"; ; - memory "sram" - size = 0x8000; + memory "calibration" + size = 1; + read = "0011.1000--xxxx.xxxx--0000.0000--oooo.oooo"; ; ; #------------------------------------------------------------ -# ATxmega384D3 +# AT90USB647 #------------------------------------------------------------ +# identical to AT90USB646 -part parent ".xmega-cd" # x384d3 - desc = "ATxmega384D3"; - id = "x384d3"; - variants = - "ATxmega384D3-AN: TQFP64, Fmax=32 MHz, T=[-40 C, 105 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega384D3-AU: TQFP64, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega384D3-MH: VQFN64, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega384D3-MHR: QFN64, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega384D3-MN: QFN64, Fmax=32 MHz, T=[-40 C, 105 C], Vcc=[1.6 V, 3.6 V]"; - mcuid = 279; - archnum = 106; - n_interrupts = 114; - boot_section_size = 8192; - signature = 0x1e 0x98 0x47; +part parent "usb646" + desc = "AT90USB647"; + id = "usb647"; + mcuid = 182; +; + +#------------------------------------------------------------ +# AT90USB1286 +#------------------------------------------------------------ + +part + desc = "AT90USB1286"; + id = "usb1286"; + prog_modes = PM_SPM | PM_ISP | PM_HVPP | PM_JTAG; + mcuid = 184; + n_interrupts = 38; + n_boot_sections = 4; + boot_section_size = 1024; +# stk500_devcode = 0xB2; +# avr910_devcode = 0x43; + chip_erase_delay = 9000; + pagel = 0xd7; + bs2 = 0xa0; + signature = 0x1e 0x97 0x82; + usbpid = 0x2ffb; + reset = io; + timeout = 200; + stabdelay = 100; + cmdexedelay = 25; + synchloops = 32; + pollindex = 3; + pollvalue = 0x53; + predelay = 1; + postdelay = 1; + pollmethod = 1; + pp_controlstack = + 0x0e, 0x1e, 0x0f, 0x1f, 0x2e, 0x3e, 0x2f, 0x3f, + 0x4e, 0x5e, 0x4f, 0x5f, 0x6e, 0x7e, 0x6f, 0x7f, + 0x66, 0x76, 0x67, 0x77, 0x6a, 0x7a, 0x6b, 0x7b, + 0xbe, 0xfd, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00; + hventerstabdelay = 100; + latchcycles = 5; + togglevtg = 1; + poweroffdelay = 15; + resetdelayms = 1; + hvleavestabdelay = 15; + chiperasepolltimeout = 10; + programfusepolltimeout = 5; + programlockpolltimeout = 5; + idr = 0x31; + rampz = 0x3b; + spmcr = 0x57; + ocdrev = 3; + chip_erase = "1010.1100--1000.0000--xxxx.xxxx--xxxx.xxxx"; + pgm_enable = "1010.1100--0101.0011--xxxx.xxxx--xxxx.xxxx"; memory "eeprom" size = 4096; + page_size = 8; + min_write_delay = 9000; + max_write_delay = 9000; + mode = 65; + delay = 10; + blocksize = 8; + readsize = 256; + read = "1010.0000--xxxx.aaaa--aaaa.aaaa--oooo.oooo"; + write = "1100.0000--xxxx.aaaa--aaaa.aaaa--iiii.iiii"; + loadpage_lo = "1100.0001--0000.0000--0000.0aaa--iiii.iiii"; + writepage = "1100.0010--00xx.aaaa--aaaa.a000--xxxx.xxxx"; ; memory "flash" - size = 0x62000; - page_size = 512; + paged = yes; + size = 0x20000; + page_size = 256; + num_pages = 512; + min_write_delay = 4500; + max_write_delay = 4500; + mode = 65; + delay = 6; + blocksize = 256; + readsize = 256; + read_lo = "0010.0000--aaaa.aaaa--aaaa.aaaa--oooo.oooo"; + read_hi = "0010.1000--aaaa.aaaa--aaaa.aaaa--oooo.oooo"; + loadpage_lo = "0100.0000--xxxx.xxxx--xaaa.aaaa--iiii.iiii"; + loadpage_hi = "0100.1000--xxxx.xxxx--xaaa.aaaa--iiii.iiii"; + writepage = "0100.1100--aaaa.aaaa--axxx.xxxx--xxxx.xxxx"; ; - memory "application" - size = 0x60000; - page_size = 512; + memory "lfuse" + size = 1; + min_write_delay = 9000; + max_write_delay = 9000; + read = "0101.0000--0000.0000--xxxx.xxxx--oooo.oooo"; + write = "1010.1100--1010.0000--xxxx.xxxx--iiii.iiii"; ; - memory "apptable" - size = 8192; - page_size = 512; - offset = 0x85e000; + memory "hfuse" + size = 1; + min_write_delay = 9000; + max_write_delay = 9000; + read = "0101.1000--0000.1000--xxxx.xxxx--oooo.oooo"; + write = "1010.1100--1010.1000--xxxx.xxxx--iiii.iiii"; ; - memory "boot" - size = 8192; - page_size = 512; - offset = 0x860000; + memory "efuse" + size = 1; + min_write_delay = 9000; + max_write_delay = 9000; + read = "0101.0000--0000.1000--xxxx.xxxx--oooo.oooo"; + write = "1010.1100--1010.0100--xxxx.xxxx--xxxx.iiii"; ; - memory "prodsig" - page_size = 64; + memory "lock" + size = 1; + min_write_delay = 9000; + max_write_delay = 9000; + read = "0101.1000--0000.0000--xxxx.xxxx--oooo.oooo"; + write = "1010.1100--111x.xxxx--xxxx.xxxx--11ii.iiii"; ; - memory "usersig" - size = 512; - page_size = 512; + memory "signature" + size = 3; + read = "0011.0000--xxxx.xxxx--xxxx.xxaa--oooo.oooo"; ; - memory "sram" - size = 0x8000; + memory "calibration" + size = 1; + read = "0011.1000--xxxx.xxxx--0000.0000--oooo.oooo"; ; ; #------------------------------------------------------------ -# ATxmega8E5 +# AT90USB1287 #------------------------------------------------------------ +# identical to AT90USB1286 -part parent ".xmega-e" # x8e5 - desc = "ATxmega8E5"; - id = "x8e5"; - variants = - "ATxmega8E5-AN: TQFP32, Fmax=32 MHz, T=[-40 C, 105 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega8E5-ANR: N/A, Fmax=N/A, T=[N/A, N/A], Vcc=[N/A, N/A]", - "ATxmega8E5-AU: TQFP32, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega8E5-AUR: TQFP32, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega8E5-M4N: UQFN32, Fmax=32 MHz, T=[-40 C, 105 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega8E5-M4U: UQFN32, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega8E5-M4UR: UQFN32, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega8E5-MN: VQFN32, Fmax=32 MHz, T=[-40 C, 105 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega8E5-MNR: N/A, Fmax=N/A, T=[N/A, N/A], Vcc=[N/A, N/A]", - "ATxmega8E5-MU: VQFN32, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega8E5-MUR: VQFN32, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]"; - mcuid = 230; - archnum = 102; - boot_section_size = 2048; - signature = 0x1e 0x93 0x41; +part parent "usb1286" + desc = "AT90USB1287"; + id = "usb1287"; + mcuid = 185; +; + +#------------------------------------------------------------ +# AT90USB162 +#------------------------------------------------------------ + +part + desc = "AT90USB162"; + id = "usb162"; + prog_modes = PM_SPM | PM_ISP | PM_HVPP | PM_debugWIRE; + mcuid = 178; + n_interrupts = 29; + n_boot_sections = 4; + boot_section_size = 512; + chip_erase_delay = 9000; + pagel = 0xd7; + bs2 = 0xc6; + signature = 0x1e 0x94 0x82; + usbpid = 0x2ffa; + reset = io; + timeout = 200; + stabdelay = 100; + cmdexedelay = 25; + synchloops = 32; + pollindex = 3; + pollvalue = 0x53; + predelay = 1; + postdelay = 1; + pollmethod = 1; + pp_controlstack = + 0x0e, 0x1e, 0x0f, 0x1f, 0x2e, 0x3e, 0x2f, 0x3f, + 0x4e, 0x5e, 0x4f, 0x5f, 0x6e, 0x7e, 0x6f, 0x7f, + 0x66, 0x76, 0x67, 0x77, 0x6a, 0x7a, 0x6b, 0x7b, + 0xbe, 0xfd, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00; + hventerstabdelay = 100; + latchcycles = 5; + togglevtg = 1; + poweroffdelay = 15; + resetdelayms = 1; + hvleavestabdelay = 15; + chiperasepolltimeout = 10; + programfusepolltimeout = 5; + programlockpolltimeout = 5; + spmcr = 0x57; + eecr = 0x3f; + eind = 0x5c; + ocdrev = 1; + chip_erase = "1010.1100--100x.xxxx--xxxx.xxxx--xxxx.xxxx"; + pgm_enable = "1010.1100--0101.0011--xxxx.xxxx--xxxx.xxxx"; memory "eeprom" size = 512; + page_size = 4; + num_pages = 128; + min_write_delay = 9000; + max_write_delay = 9000; + mode = 65; + delay = 20; + blocksize = 4; + readsize = 256; + read = "1010.0000--0000.aaaa--aaaa.aaaa--oooo.oooo"; + write = "1100.0000--0000.aaaa--aaaa.aaaa--iiii.iiii"; + loadpage_lo = "1100.0001--0000.0000--0000.00aa--iiii.iiii"; + writepage = "1100.0010--0000.aaaa--aaaa.aa00--xxxx.xxxx"; ; memory "flash" - size = 0x2800; - ; - - memory "application" - size = 8192; - ; - - memory "apptable" - size = 2048; - offset = 0x801800; - ; - - memory "boot" - size = 2048; - offset = 0x802000; - ; - - memory "sram" - size = 1024; + paged = yes; + size = 0x4000; + page_size = 128; + num_pages = 128; + min_write_delay = 4500; + max_write_delay = 4500; + mode = 65; + delay = 6; + blocksize = 128; + readsize = 256; + read_lo = "0010.0000--aaaa.aaaa--aaaa.aaaa--oooo.oooo"; + read_hi = "0010.1000--aaaa.aaaa--aaaa.aaaa--oooo.oooo"; + loadpage_lo = "0100.0000--xxxx.xxxx--xxaa.aaaa--iiii.iiii"; + loadpage_hi = "0100.1000--xxxx.xxxx--xxaa.aaaa--iiii.iiii"; + writepage = "0100.1100--aaaa.aaaa--aaxx.xxxx--xxxx.xxxx"; ; -; - -#------------------------------------------------------------ -# ATxmega16E5 -#------------------------------------------------------------ - -part parent ".xmega-e" # x16e5 - desc = "ATxmega16E5"; - id = "x16e5"; - variants = - "ATxmega16E5-AN: TQFP32, Fmax=32 MHz, T=[-40 C, 105 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega16E5-ANR: TQFP32, Fmax=32 MHz, T=[-40 C, 105 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega16E5-AU: TQFP32, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega16E5-AUR: TQFP32, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega16E5-M4N: UQFN32, Fmax=32 MHz, T=[-40 C, 105 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega16E5-M4U: UQFN32, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega16E5-M4UR: UQFN32, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega16E5-MN: VQFN32, Fmax=32 MHz, T=[-40 C, 105 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega16E5-MNR: N/A, Fmax=N/A, T=[N/A, N/A], Vcc=[N/A, N/A]", - "ATxmega16E5-MU: VQFN32, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega16E5-MUR: VQFN32, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]"; - mcuid = 235; - archnum = 102; - boot_section_size = 4096; - signature = 0x1e 0x94 0x45; - memory "eeprom" - size = 512; + memory "lfuse" + size = 1; + min_write_delay = 9000; + max_write_delay = 9000; + read = "0101.0000--0000.0000--xxxx.xxxx--oooo.oooo"; + write = "1010.1100--1010.0000--xxxx.xxxx--iiii.iiii"; ; - memory "flash" - size = 0x5000; + memory "hfuse" + size = 1; + min_write_delay = 9000; + max_write_delay = 9000; + read = "0101.1000--0000.1000--xxxx.xxxx--oooo.oooo"; + write = "1010.1100--1010.1000--xxxx.xxxx--iiii.iiii"; ; - memory "application" - size = 0x4000; + memory "efuse" + size = 1; + min_write_delay = 9000; + max_write_delay = 9000; + read = "0101.0000--0000.1000--xxxx.xxxx--oooo.oooo"; + write = "1010.1100--1010.0100--xxxx.xxxx--iiii.iiii"; ; - memory "apptable" - offset = 0x803000; + memory "lock" + size = 1; + min_write_delay = 9000; + max_write_delay = 9000; + read = "0101.1000--0000.0000--xxxx.xxxx--oooo.oooo"; + write = "1010.1100--111x.xxxx--xxxx.xxxx--11ii.iiii"; ; - memory "boot" - offset = 0x804000; + memory "signature" + size = 3; + read = "0011.0000--000x.xxxx--xxxx.xxaa--oooo.oooo"; ; - memory "sram" - size = 2048; + memory "calibration" + size = 1; + read = "0011.1000--000x.xxxx--0000.0000--oooo.oooo"; ; ; #------------------------------------------------------------ -# ATxmega32E5 +# AT90USB82 #------------------------------------------------------------ -part parent ".xmega-e" # x32e5 - desc = "ATxmega32E5"; - id = "x32e5"; - variants = - "ATxmega32E5-AN: TQFP32, Fmax=32 MHz, T=[-40 C, 105 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega32E5-ANR: N/A, Fmax=N/A, T=[N/A, N/A], Vcc=[N/A, N/A]", - "ATxmega32E5-AU: TQFP32, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega32E5-AUR: TQFP32, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega32E5-M4N: UQFN32, Fmax=32 MHz, T=[-40 C, 105 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega32E5-M4U: UQFN32, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega32E5-M4UR: UQFN32, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega32E5-MN: VQFN32, Fmax=32 MHz, T=[-40 C, 105 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega32E5-MNR: N/A, Fmax=N/A, T=[N/A, N/A], Vcc=[N/A, N/A]", - "ATxmega32E5-MU: VQFN32, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]", - "ATxmega32E5-MUR: VQFN32, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.6 V, 3.6 V]"; - mcuid = 242; - archnum = 102; - boot_section_size = 4096; - signature = 0x1e 0x95 0x4c; +part + desc = "AT90USB82"; + id = "usb82"; + prog_modes = PM_SPM | PM_ISP | PM_HVPP | PM_debugWIRE; + mcuid = 174; + n_interrupts = 29; + n_boot_sections = 4; + boot_section_size = 512; + chip_erase_delay = 9000; + pagel = 0xd7; + bs2 = 0xc6; + signature = 0x1e 0x93 0x82; + usbpid = 0x2ff7; + reset = io; + timeout = 200; + stabdelay = 100; + cmdexedelay = 25; + synchloops = 32; + pollindex = 3; + pollvalue = 0x53; + predelay = 1; + postdelay = 1; + pollmethod = 1; + pp_controlstack = + 0x0e, 0x1e, 0x0f, 0x1f, 0x2e, 0x3e, 0x2f, 0x3f, + 0x4e, 0x5e, 0x4f, 0x5f, 0x6e, 0x7e, 0x6f, 0x7f, + 0x66, 0x76, 0x67, 0x77, 0x6a, 0x7a, 0x6b, 0x7b, + 0xbe, 0xfd, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00; + hventerstabdelay = 100; + latchcycles = 5; + togglevtg = 1; + poweroffdelay = 15; + resetdelayms = 1; + hvleavestabdelay = 15; + chiperasepolltimeout = 10; + programfusepolltimeout = 5; + programlockpolltimeout = 5; + spmcr = 0x57; + eecr = 0x3f; + eind = 0x5c; + ocdrev = 1; + chip_erase = "1010.1100--100x.xxxx--xxxx.xxxx--xxxx.xxxx"; + pgm_enable = "1010.1100--0101.0011--xxxx.xxxx--xxxx.xxxx"; memory "eeprom" - size = 1024; + size = 512; + page_size = 4; + num_pages = 128; + min_write_delay = 9000; + max_write_delay = 9000; + mode = 65; + delay = 20; + blocksize = 4; + readsize = 256; + read = "1010.0000--0000.aaaa--aaaa.aaaa--oooo.oooo"; + write = "1100.0000--0000.aaaa--aaaa.aaaa--iiii.iiii"; + loadpage_lo = "1100.0001--0000.0000--0000.00aa--iiii.iiii"; + writepage = "1100.0010--0000.aaaa--aaaa.aa00--xxxx.xxxx"; ; memory "flash" - size = 0x9000; + paged = yes; + size = 8192; + page_size = 128; + num_pages = 64; + min_write_delay = 4500; + max_write_delay = 4500; + mode = 65; + delay = 6; + blocksize = 128; + readsize = 256; + read_lo = "0010.0000--aaaa.aaaa--aaaa.aaaa--oooo.oooo"; + read_hi = "0010.1000--aaaa.aaaa--aaaa.aaaa--oooo.oooo"; + loadpage_lo = "0100.0000--xxxx.xxxx--xxaa.aaaa--iiii.iiii"; + loadpage_hi = "0100.1000--xxxx.xxxx--xxaa.aaaa--iiii.iiii"; + writepage = "0100.1100--aaaa.aaaa--aaxx.xxxx--xxxx.xxxx"; ; - memory "application" - size = 0x8000; + memory "lfuse" + size = 1; + min_write_delay = 9000; + max_write_delay = 9000; + read = "0101.0000--0000.0000--xxxx.xxxx--oooo.oooo"; + write = "1010.1100--1010.0000--xxxx.xxxx--iiii.iiii"; ; - memory "apptable" - offset = 0x807000; + memory "hfuse" + size = 1; + min_write_delay = 9000; + max_write_delay = 9000; + read = "0101.1000--0000.1000--xxxx.xxxx--oooo.oooo"; + write = "1010.1100--1010.1000--xxxx.xxxx--iiii.iiii"; ; - memory "boot" - offset = 0x808000; + memory "efuse" + size = 1; + min_write_delay = 9000; + max_write_delay = 9000; + read = "0101.0000--0000.1000--xxxx.xxxx--oooo.oooo"; + write = "1010.1100--1010.0100--xxxx.xxxx--iiii.iiii"; ; - memory "sram" - size = 4096; + memory "lock" + size = 1; + min_write_delay = 9000; + max_write_delay = 9000; + read = "0101.1000--0000.0000--xxxx.xxxx--oooo.oooo"; + write = "1010.1100--111x.xxxx--xxxx.xxxx--11ii.iiii"; ; -; - -#------------------------------------------------------------ -# AVR32UC3A0512 -#------------------------------------------------------------ -part # uc3a0512 - desc = "AT32UC3A0512"; - id = "uc3a0512"; - variants = - "AT32UC3A0512-ALTR: LQFP144, Fmax=66 MHz, T=[-40 C, 85 C], Vcc=[1.65 V, 3.6 V]", - "AT32UC3A0512-ALTRA: LQFP144, Fmax=66 MHz, T=[-40 C, 85 C], Vcc=[1.65 V, 3.6 V]", - "AT32UC3A0512-ALTT: LQFP144, Fmax=66 MHz, T=[-40 C, 85 C], Vcc=[1.65 V, 3.6 V]", - "AT32UC3A0512-ALTTA: LQFP144, Fmax=66 MHz, T=[-40 C, 85 C], Vcc=[1.65 V, 3.6 V]", - "AT32UC3A0512-ALUR: LQFP144, Fmax=66 MHz, T=[-40 C, 85 C], Vcc=[1.65 V, 3.6 V]", - "AT32UC3A0512-ALUT: LQFP144, Fmax=66 MHz, T=[-40 C, 85 C], Vcc=[1.65 V, 3.6 V]", - "AT32UC3A0512-CTUR: TFBGA144, Fmax=66 MHz, T=[-40 C, 85 C], Vcc=[1.65 V, 3.6 V]", - "AT32UC3A0512-CTUT: TFBGA144, Fmax=66 MHz, T=[-40 C, 85 C], Vcc=[1.65 V, 3.6 V]", - "AT32UC3A0512AU-ALTRA: LQFP144, Fmax=66 MHz, T=[-40 C, 85 C], Vcc=[1.65 V, 3.6 V]", - "AT32UC3A0512AU-ALUT: LQFP144, Fmax=66 MHz, T=[-40 C, 85 C], Vcc=[1.65 V, 3.6 V]"; - prog_modes = PM_AVR32JTAG | PM_aWire; - archnum = -1; # Not 8-bit AVR - signature = 0xed 0xc0 0x3f; + memory "signature" + size = 3; + read = "0011.0000--000x.xxxx--xxxx.xxaa--oooo.oooo"; + ; - memory "flash" - paged = yes; - size = 0x80000; # could be set dynamicly - page_size = 512; # bytes - num_pages = 1024; # could be set dynamicly - offset = 0x80000000; - readsize = 512; # bytes + memory "calibration" + size = 1; + read = "0011.1000--000x.xxxx--0000.0000--oooo.oooo"; ; ; #------------------------------------------------------------ -# AVR8X family common values +# ATmega32U2 #------------------------------------------------------------ -part # .avr8x - desc = "AVR8X family common values"; - id = ".avr8x"; - prog_modes = PM_SPM | PM_UPDI; - n_boot_sections = 1; - boot_section_size = 256; - nvm_base = 0x1000; - ocd_base = 0x0f80; - syscfg_base = 0x0f00; - factory_fcpu = 20000000; - - memory "fuses" - size = 10; - offset = 0x1280; - readsize = 1; - ; +part + desc = "ATmega32U2"; + id = "m32u2"; + prog_modes = PM_SPM | PM_ISP | PM_HVPP | PM_debugWIRE; + mcuid = 64; + n_interrupts = 29; + n_boot_sections = 4; + boot_section_size = 512; + chip_erase_delay = 9000; + pagel = 0xd7; + bs2 = 0xc6; + signature = 0x1e 0x95 0x8a; + usbpid = 0x2ff0; + reset = io; + timeout = 200; + stabdelay = 100; + cmdexedelay = 25; + synchloops = 32; + pollindex = 3; + pollvalue = 0x53; + predelay = 1; + postdelay = 1; + pollmethod = 1; + pp_controlstack = + 0x0e, 0x1e, 0x0f, 0x1f, 0x2e, 0x3e, 0x2f, 0x3f, + 0x4e, 0x5e, 0x4f, 0x5f, 0x6e, 0x7e, 0x6f, 0x7f, + 0x66, 0x76, 0x67, 0x77, 0x6a, 0x7a, 0x6b, 0x7b, + 0xbe, 0xfd, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00; + hventerstabdelay = 100; + latchcycles = 5; + togglevtg = 1; + poweroffdelay = 15; + resetdelayms = 1; + hvleavestabdelay = 15; + chiperasepolltimeout = 10; + programfusepolltimeout = 5; + programlockpolltimeout = 5; + spmcr = 0x57; + eecr = 0x3f; + eind = 0x5c; + ocdrev = 1; + chip_erase = "1010.1100--100x.xxxx--xxxx.xxxx--xxxx.xxxx"; + pgm_enable = "1010.1100--0101.0011--xxxx.xxxx--xxxx.xxxx"; - memory "fuse0" - size = 1; - initval = 0x00; - offset = 0x1280; - readsize = 1; + memory "eeprom" + size = 1024; + page_size = 4; + num_pages = 256; + min_write_delay = 9000; + max_write_delay = 9000; + mode = 65; + delay = 20; + blocksize = 4; + readsize = 256; + read = "1010.0000--0000.aaaa--aaaa.aaaa--oooo.oooo"; + write = "1100.0000--0000.aaaa--aaaa.aaaa--iiii.iiii"; + loadpage_lo = "1100.0001--0000.0000--0000.00aa--iiii.iiii"; + writepage = "1100.0010--0000.aaaa--aaaa.aa00--xxxx.xxxx"; ; - memory "wdtcfg" - alias "fuse0"; + memory "flash" + paged = yes; + size = 0x8000; + page_size = 128; + num_pages = 256; + min_write_delay = 4500; + max_write_delay = 4500; + mode = 65; + delay = 6; + blocksize = 128; + readsize = 256; + read_lo = "0010.0000--aaaa.aaaa--aaaa.aaaa--oooo.oooo"; + read_hi = "0010.1000--aaaa.aaaa--aaaa.aaaa--oooo.oooo"; + loadpage_lo = "0100.0000--xxxx.xxxx--xxaa.aaaa--iiii.iiii"; + loadpage_hi = "0100.1000--xxxx.xxxx--xxaa.aaaa--iiii.iiii"; + writepage = "0100.1100--aaaa.aaaa--aaxx.xxxx--xxxx.xxxx"; ; - memory "fuse1" + memory "lfuse" size = 1; - initval = 0x00; - offset = 0x1281; - readsize = 1; - ; - - memory "bodcfg" - alias "fuse1"; + min_write_delay = 9000; + max_write_delay = 9000; + read = "0101.0000--0000.0000--xxxx.xxxx--oooo.oooo"; + write = "1010.1100--1010.0000--xxxx.xxxx--iiii.iiii"; ; - memory "fuse2" + memory "hfuse" size = 1; - initval = 0x7e; - bitmask = 0x83; - offset = 0x1282; - readsize = 1; + min_write_delay = 9000; + max_write_delay = 9000; + read = "0101.1000--0000.1000--xxxx.xxxx--oooo.oooo"; + write = "1010.1100--1010.1000--xxxx.xxxx--iiii.iiii"; ; - memory "osccfg" - alias "fuse2"; + memory "efuse" + size = 1; + min_write_delay = 9000; + max_write_delay = 9000; + read = "0101.0000--0000.1000--xxxx.xxxx--oooo.oooo"; + write = "1010.1100--1010.0100--xxxx.xxxx--iiii.iiii"; ; - memory "fuse5" + memory "lock" size = 1; - initval = 0xf6; - bitmask = 0xcd; - offset = 0x1285; - readsize = 1; + min_write_delay = 9000; + max_write_delay = 9000; + read = "0101.1000--0000.0000--xxxx.xxxx--oooo.oooo"; + write = "1010.1100--111x.xxxx--xxxx.xxxx--11ii.iiii"; ; - memory "syscfg0" - alias "fuse5"; + memory "signature" + size = 3; + read = "0011.0000--000x.xxxx--xxxx.xxaa--oooo.oooo"; ; - memory "fuse6" + memory "calibration" size = 1; - initval = 0xff; - bitmask = 0x07; - offset = 0x1286; - readsize = 1; + read = "0011.1000--000x.xxxx--0000.0000--oooo.oooo"; ; +; - memory "syscfg1" - alias "fuse6"; - ; +#------------------------------------------------------------ +# ATmega16U2 +#------------------------------------------------------------ - memory "fuse7" - size = 1; - initval = 0x00; - offset = 0x1287; - readsize = 1; - ; +part + desc = "ATmega16U2"; + id = "m16u2"; + prog_modes = PM_SPM | PM_ISP | PM_HVPP | PM_debugWIRE; + mcuid = 56; + n_interrupts = 29; + n_boot_sections = 4; + boot_section_size = 512; + chip_erase_delay = 9000; + pagel = 0xd7; + bs2 = 0xc6; + signature = 0x1e 0x94 0x89; + usbpid = 0x2fef; + reset = io; + timeout = 200; + stabdelay = 100; + cmdexedelay = 25; + synchloops = 32; + pollindex = 3; + pollvalue = 0x53; + predelay = 1; + postdelay = 1; + pollmethod = 1; + pp_controlstack = + 0x0e, 0x1e, 0x0f, 0x1f, 0x2e, 0x3e, 0x2f, 0x3f, + 0x4e, 0x5e, 0x4f, 0x5f, 0x6e, 0x7e, 0x6f, 0x7f, + 0x66, 0x76, 0x67, 0x77, 0x6a, 0x7a, 0x6b, 0x7b, + 0xbe, 0xfd, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00; + hventerstabdelay = 100; + latchcycles = 5; + togglevtg = 1; + poweroffdelay = 15; + resetdelayms = 1; + hvleavestabdelay = 15; + chiperasepolltimeout = 10; + programfusepolltimeout = 5; + programlockpolltimeout = 5; + spmcr = 0x57; + eecr = 0x3f; + eind = 0x5c; + ocdrev = 1; + chip_erase = "1010.1100--100x.xxxx--xxxx.xxxx--xxxx.xxxx"; + pgm_enable = "1010.1100--0101.0011--xxxx.xxxx--xxxx.xxxx"; - memory "append" - alias "fuse7"; + memory "eeprom" + size = 512; + page_size = 4; + num_pages = 128; + min_write_delay = 9000; + max_write_delay = 9000; + mode = 65; + delay = 20; + blocksize = 4; + readsize = 256; + read = "1010.0000--0000.aaaa--aaaa.aaaa--oooo.oooo"; + write = "1100.0000--0000.aaaa--aaaa.aaaa--iiii.iiii"; + loadpage_lo = "1100.0001--0000.0000--0000.00aa--iiii.iiii"; + writepage = "1100.0010--0000.aaaa--aaaa.aa00--xxxx.xxxx"; ; - memory "codesize" - alias "fuse7"; + memory "flash" + paged = yes; + size = 0x4000; + page_size = 128; + num_pages = 128; + min_write_delay = 4500; + max_write_delay = 4500; + mode = 65; + delay = 6; + blocksize = 128; + readsize = 256; + read_lo = "0010.0000--aaaa.aaaa--aaaa.aaaa--oooo.oooo"; + read_hi = "0010.1000--aaaa.aaaa--aaaa.aaaa--oooo.oooo"; + loadpage_lo = "0100.0000--xxxx.xxxx--xxaa.aaaa--iiii.iiii"; + loadpage_hi = "0100.1000--xxxx.xxxx--xxaa.aaaa--iiii.iiii"; + writepage = "0100.1100--aaaa.aaaa--aaxx.xxxx--xxxx.xxxx"; ; - memory "fuse8" + memory "lfuse" size = 1; - initval = 0x00; - offset = 0x1288; - readsize = 1; + min_write_delay = 9000; + max_write_delay = 9000; + read = "0101.0000--0000.0000--xxxx.xxxx--oooo.oooo"; + write = "1010.1100--1010.0000--xxxx.xxxx--iiii.iiii"; ; - memory "bootend" - alias "fuse8"; + memory "hfuse" + size = 1; + min_write_delay = 9000; + max_write_delay = 9000; + read = "0101.1000--0000.1000--xxxx.xxxx--oooo.oooo"; + write = "1010.1100--1010.1000--xxxx.xxxx--iiii.iiii"; ; - memory "bootsize" - alias "fuse8"; + memory "efuse" + size = 1; + min_write_delay = 9000; + max_write_delay = 9000; + read = "0101.0000--0000.1000--xxxx.xxxx--oooo.oooo"; + write = "1010.1100--1010.0100--xxxx.xxxx--iiii.iiii"; ; memory "lock" size = 1; - offset = 0x128a; - readsize = 1; - ; - - memory "prodsig" - size = 64; - page_size = 64; - offset = 0x1100; - readsize = 64; - ; - - memory "sigrow" - alias "prodsig"; + min_write_delay = 9000; + max_write_delay = 9000; + read = "0101.1000--0000.0000--xxxx.xxxx--oooo.oooo"; + write = "1010.1100--111x.xxxx--xxxx.xxxx--11ii.iiii"; ; memory "signature" size = 3; - offset = 0x1100; - readsize = 3; - ; - - memory "tempsense" - size = 2; - offset = 0x1120; - readsize = 1; - ; - - memory "sernum" - size = 10; - offset = 0x1103; - readsize = 1; + read = "0011.0000--000x.xxxx--xxxx.xxaa--oooo.oooo"; ; - memory "osccal16" - size = 2; - offset = 0x1118; - readsize = 1; + memory "calibration" + size = 1; + read = "0011.1000--000x.xxxx--0000.0000--oooo.oooo"; ; +; - memory "osccal20" - size = 2; - offset = 0x111a; - readsize = 1; - ; +#------------------------------------------------------------ +# ATmega8U2 +#------------------------------------------------------------ - memory "osc16err" - size = 2; - offset = 0x1122; - readsize = 1; - ; +part + desc = "ATmega8U2"; + id = "m8u2"; + prog_modes = PM_SPM | PM_ISP | PM_HVPP | PM_debugWIRE; + mcuid = 48; + n_interrupts = 29; + n_boot_sections = 4; + boot_section_size = 512; + chip_erase_delay = 9000; + pagel = 0xd7; + bs2 = 0xc6; + signature = 0x1e 0x93 0x89; + usbpid = 0x2fee; + reset = io; + timeout = 200; + stabdelay = 100; + cmdexedelay = 25; + synchloops = 32; + pollindex = 3; + pollvalue = 0x53; + predelay = 1; + postdelay = 1; + pollmethod = 1; + pp_controlstack = + 0x0e, 0x1e, 0x0f, 0x1f, 0x2e, 0x3e, 0x2f, 0x3f, + 0x4e, 0x5e, 0x4f, 0x5f, 0x6e, 0x7e, 0x6f, 0x7f, + 0x66, 0x76, 0x67, 0x77, 0x6a, 0x7a, 0x6b, 0x7b, + 0xbe, 0xfd, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00; + hventerstabdelay = 100; + latchcycles = 5; + togglevtg = 1; + poweroffdelay = 15; + resetdelayms = 1; + hvleavestabdelay = 15; + chiperasepolltimeout = 10; + programfusepolltimeout = 5; + programlockpolltimeout = 5; + spmcr = 0x57; + eecr = 0x3f; + eind = 0x5c; + ocdrev = 1; + chip_erase = "1010.1100--100x.xxxx--xxxx.xxxx--xxxx.xxxx"; + pgm_enable = "1010.1100--0101.0011--xxxx.xxxx--xxxx.xxxx"; - memory "osc20err" - size = 2; - offset = 0x1124; - readsize = 1; + memory "eeprom" + size = 512; + page_size = 4; + num_pages = 128; + min_write_delay = 9000; + max_write_delay = 9000; + mode = 65; + delay = 20; + blocksize = 4; + readsize = 256; + read = "1010.0000--0000.aaaa--aaaa.aaaa--oooo.oooo"; + write = "1100.0000--0000.aaaa--aaaa.aaaa--iiii.iiii"; + loadpage_lo = "1100.0001--0000.0000--0000.00aa--iiii.iiii"; + writepage = "1100.0010--0000.aaaa--aaaa.aa00--xxxx.xxxx"; ; - memory "io" - size = 4352; - readsize = 1; + memory "flash" + paged = yes; + size = 8192; + page_size = 128; + num_pages = 64; + min_write_delay = 4500; + max_write_delay = 4500; + mode = 65; + delay = 6; + blocksize = 128; + readsize = 256; + read_lo = "0010.0000--aaaa.aaaa--aaaa.aaaa--oooo.oooo"; + read_hi = "0010.1000--aaaa.aaaa--aaaa.aaaa--oooo.oooo"; + loadpage_lo = "0100.0000--xxxx.xxxx--xxaa.aaaa--iiii.iiii"; + loadpage_hi = "0100.1000--xxxx.xxxx--xxaa.aaaa--iiii.iiii"; + writepage = "0100.1100--aaaa.aaaa--aaxx.xxxx--xxxx.xxxx"; ; - memory "sib" - size = 32; - readsize = 1; + memory "lfuse" + size = 1; + min_write_delay = 9000; + max_write_delay = 9000; + read = "0101.0000--0000.0000--xxxx.xxxx--oooo.oooo"; + write = "1010.1100--1010.0000--xxxx.xxxx--iiii.iiii"; ; -; - -#------------------------------------------------------------ -# AVR8X tiny family common values -#------------------------------------------------------------ - -part parent ".avr8x" # .avr8x_tiny - desc = "AVR8X tiny family common values"; - id = ".avr8x_tiny"; - family_id = "tinyAVR"; - # Shared UPDI pin, HV on UPDI pin - hvupdi_variant = 0; - memory "userrow" - size = 32; - page_size = 32; - offset = 0x1300; - readsize = 256; + memory "hfuse" + size = 1; + min_write_delay = 9000; + max_write_delay = 9000; + read = "0101.1000--0000.1000--xxxx.xxxx--oooo.oooo"; + write = "1010.1100--1010.1000--xxxx.xxxx--iiii.iiii"; ; - memory "usersig" - alias "userrow"; + memory "efuse" + size = 1; + min_write_delay = 9000; + max_write_delay = 9000; + read = "0101.0000--0000.1000--xxxx.xxxx--oooo.oooo"; + write = "1010.1100--1010.0100--xxxx.xxxx--iiii.iiii"; ; -; - -#------------------------------------------------------------ -# AVR8X mega family common values -#------------------------------------------------------------ - -part parent ".avr8x" # .avr8x_mega - desc = "AVR8X mega family common values"; - id = ".avr8x_mega"; - family_id = "megaAVR"; - # Dedicated UPDI pin, no HV - hvupdi_variant = 1; - memory "fuse5" - bitmask = 0xc9; + memory "lock" + size = 1; + min_write_delay = 9000; + max_write_delay = 9000; + read = "0101.1000--0000.0000--xxxx.xxxx--oooo.oooo"; + write = "1010.1100--111x.xxxx--xxxx.xxxx--11ii.iiii"; ; - memory "userrow" - size = 64; - page_size = 64; - offset = 0x1300; - readsize = 256; + memory "signature" + size = 3; + read = "0011.0000--000x.xxxx--xxxx.xxaa--oooo.oooo"; ; - memory "usersig" - alias "userrow"; + memory "calibration" + size = 1; + read = "0011.1000--000x.xxxx--0000.0000--oooo.oooo"; ; ; #------------------------------------------------------------ -# ATtiny202 +# ATmega165 #------------------------------------------------------------ -part parent ".avr8x_tiny" # t202 - desc = "ATtiny202"; - id = "t202"; - variants = - "ATtiny202-SSF: SOIC8, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny202-SSFR: SOIC8, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny202-SSN: SOIC8, Fmax=20 MHz, T=[-40 C, 105 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny202-SSNR: SOIC8, Fmax=20 MHz, T=[-40 C, 105 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 280; - archnum = 103; - n_interrupts = 26; - signature = 0x1e 0x91 0x23; +part + desc = "ATmega165"; + id = "m165"; + prog_modes = PM_SPM | PM_ISP | PM_HVPP | PM_JTAG; + mcuid = 95; + n_interrupts = 22; + n_boot_sections = 4; + boot_section_size = 256; +# stk500_devcode = 0x??; +# avr910_devcode = 0x??; + chip_erase_delay = 9000; + pagel = 0xd7; + bs2 = 0xa0; + signature = 0x1e 0x94 0x10; + reset = io; + timeout = 200; + stabdelay = 100; + cmdexedelay = 25; + synchloops = 32; + pollindex = 3; + pollvalue = 0x53; + predelay = 1; + postdelay = 1; + pollmethod = 1; + pp_controlstack = + 0x0e, 0x1e, 0x0f, 0x1f, 0x2e, 0x3e, 0x2f, 0x3f, + 0x4e, 0x5e, 0x4f, 0x5f, 0x6e, 0x7e, 0x6f, 0x7f, + 0x66, 0x76, 0x67, 0x77, 0x6a, 0x7a, 0x6b, 0x7b, + 0xbe, 0xfd, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00; + hventerstabdelay = 100; + latchcycles = 6; + hvleavestabdelay = 15; + resetdelay = 15; + chiperasepolltimeout = 10; + programfusepolltimeout = 5; + programlockpolltimeout = 5; + idr = 0x31; + spmcr = 0x57; + eecr = 0x3f; + ocdrev = 3; + chip_erase = "1010.1100--100x.xxxx--xxxx.xxxx--xxxx.xxxx"; + pgm_enable = "1010.1100--0101.0011--xxxx.xxxx--xxxx.xxxx"; memory "eeprom" - size = 64; - page_size = 32; - offset = 0x1400; + size = 512; + page_size = 4; + num_pages = 128; + min_write_delay = 3600; + max_write_delay = 3600; + mode = 65; + delay = 20; + blocksize = 4; readsize = 256; + read = "1010.0000--0000.00xa--aaaa.aaaa--oooo.oooo"; + write = "1100.0000--0000.00xa--aaaa.aaaa--iiii.iiii"; + loadpage_lo = "1100.0001--0000.0000--0000.00aa--iiii.iiii"; + writepage = "1100.0010--0000.00xa--aaaa.aa00--xxxx.xxxx"; ; memory "flash" - size = 2048; - page_size = 64; - offset = 0x8000; + paged = yes; + size = 0x4000; + page_size = 128; + num_pages = 128; + min_write_delay = 4500; + max_write_delay = 4500; + mode = 65; + delay = 10; + blocksize = 128; readsize = 256; + read_lo = "0010.0000--xxxa.aaaa--aaaa.aaaa--oooo.oooo"; + read_hi = "0010.1000--xxxa.aaaa--aaaa.aaaa--oooo.oooo"; + loadpage_lo = "0100.0000--0000.xxxx--xxaa.aaaa--iiii.iiii"; + loadpage_hi = "0100.1000--0000.xxxx--xxaa.aaaa--iiii.iiii"; + writepage = "0100.1100--xxxa.aaaa--aaxx.xxxx--xxxx.xxxx"; ; - memory "fuse4" + memory "lfuse" size = 1; - initval = 0x00; - offset = 0x1284; - readsize = 1; + min_write_delay = 4500; + max_write_delay = 4500; + read = "0101.0000--0000.0000--xxxx.xxxx--oooo.oooo"; + write = "1010.1100--1010.0000--xxxx.xxxx--iiii.iiii"; ; - memory "tcd0cfg" - alias "fuse4"; + memory "hfuse" + size = 1; + min_write_delay = 4500; + max_write_delay = 4500; + read = "0101.1000--0000.1000--xxxx.xxxx--oooo.oooo"; + write = "1010.1100--1010.1000--xxxx.xxxx--iiii.iiii"; + ; + + memory "efuse" + size = 1; + min_write_delay = 4500; + max_write_delay = 4500; + read = "0101.0000--0000.1000--xxxx.xxxx--oooo.oooo"; + write = "1010.1100--1010.0100--xxxx.xxxx--xxxx.iiii"; ; memory "lock" - initval = 0xc5; + size = 1; + min_write_delay = 4500; + max_write_delay = 4500; + read = "0101.1000--0000.0000--xxxx.xxxx--oooo.oooo"; + write = "1010.1100--111x.xxxx--xxxx.xxxx--11ii.iiii"; ; - memory "sram" - size = 128; - offset = 0x3f80; + memory "signature" + size = 3; + read = "0011.0000--0000.0000--xxxx.xxaa--oooo.oooo"; + ; + + memory "calibration" + size = 1; + read = "0011.1000--0000.0000--xxxx.xxxx--oooo.oooo"; ; ; #------------------------------------------------------------ -# ATtiny204 +# ATmega165A #------------------------------------------------------------ -part parent ".avr8x_tiny" # t204 - desc = "ATtiny204"; - id = "t204"; - variants = - "ATtiny204-SSF: SOIC14, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny204-SSFR: SOIC14, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny204-SSN: SOIC14, Fmax=20 MHz, T=[-40 C, 105 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny204-SSNR: SOIC14, Fmax=20 MHz, T=[-40 C, 105 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 281; - archnum = 103; - n_interrupts = 26; - signature = 0x1e 0x91 0x22; - - memory "eeprom" - size = 64; - page_size = 32; - offset = 0x1400; - readsize = 256; - ; - - memory "flash" - size = 2048; - page_size = 64; - offset = 0x8000; - readsize = 256; - ; +part parent "m165" + desc = "ATmega165A"; + id = "m165a"; + mcuid = 96; +; - memory "fuse4" - size = 1; - initval = 0x00; - offset = 0x1284; - readsize = 1; - ; +#------------------------------------------------------------ +# ATmega165P +#------------------------------------------------------------ - memory "tcd0cfg" - alias "fuse4"; - ; +part parent "m165" + desc = "ATmega165P"; + id = "m165p"; + mcuid = 97; + signature = 0x1e 0x94 0x07; +; - memory "lock" - initval = 0xc5; - ; +#------------------------------------------------------------ +# ATmega165PA +#------------------------------------------------------------ - memory "sram" - size = 128; - offset = 0x3f80; - ; +part parent "m165" + desc = "ATmega165PA"; + id = "m165pa"; + mcuid = 98; + signature = 0x1e 0x94 0x07; ; #------------------------------------------------------------ -# ATtiny402 +# ATmega325 #------------------------------------------------------------ -part parent ".avr8x_tiny" # t402 - desc = "ATtiny402"; - id = "t402"; - variants = - "ATtiny402-SSF: SOIC8, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny402-SSFR: SOIC8, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny402-SSN: SOIC8, Fmax=20 MHz, T=[-40 C, 105 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny402-SSNR: SOIC8, Fmax=20 MHz, T=[-40 C, 105 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 284; - archnum = 103; - n_interrupts = 26; - signature = 0x1e 0x92 0x27; +part + desc = "ATmega325"; + id = "m325"; + prog_modes = PM_SPM | PM_ISP | PM_HVPP | PM_JTAG; + mcuid = 114; + n_interrupts = 22; + n_boot_sections = 4; + boot_section_size = 512; +# stk500_devcode = 0x??; # No STK500v1 support? +# avr910_devcode = 0x??; # Try the ATmega16 one + avr910_devcode = 0x74; + chip_erase_delay = 9000; + pagel = 0xd7; + bs2 = 0xa0; + signature = 0x1e 0x95 0x05; + reset = io; + timeout = 200; + stabdelay = 100; + cmdexedelay = 25; + synchloops = 32; + pollindex = 3; + pollvalue = 0x53; + predelay = 1; + postdelay = 1; + pollmethod = 1; + pp_controlstack = + 0x0e, 0x1e, 0x0f, 0x1f, 0x2e, 0x3e, 0x2f, 0x3f, + 0x4e, 0x5e, 0x4f, 0x5f, 0x6e, 0x7e, 0x6f, 0x7f, + 0x66, 0x76, 0x67, 0x77, 0x6a, 0x7a, 0x6b, 0x7b, + 0xbe, 0xfd, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00; + hventerstabdelay = 100; + latchcycles = 5; + togglevtg = 1; + poweroffdelay = 15; + resetdelayms = 1; + hvleavestabdelay = 15; + chiperasepolltimeout = 10; + programfusepolltimeout = 5; + programlockpolltimeout = 5; + idr = 0x31; + spmcr = 0x57; + ocdrev = 3; + chip_erase = "1010.1100--1000.0000--0000.0000--0000.0000"; + pgm_enable = "1010.1100--0101.0011--0000.0000--0000.0000"; memory "eeprom" - size = 128; - page_size = 32; - offset = 0x1400; + size = 1024; + page_size = 4; + min_write_delay = 9000; + max_write_delay = 9000; + readback = 0xff 0xff; + mode = 65; + delay = 10; + blocksize = 4; readsize = 256; + read = "1010.0000--0000.00aa--aaaa.aaaa--oooo.oooo"; + write = "1100.0000--0000.00aa--aaaa.aaaa--iiii.iiii"; + loadpage_lo = "1100.0001--0000.0000--0000.00aa--iiii.iiii"; + writepage = "1100.0010--0000.00aa--aaaa.aa00--xxxx.xxxx"; ; memory "flash" - size = 4096; - page_size = 64; - offset = 0x8000; + paged = yes; + size = 0x8000; + page_size = 128; + num_pages = 256; + min_write_delay = 4500; + max_write_delay = 4500; + readback = 0xff 0xff; + mode = 65; + delay = 10; + blocksize = 128; readsize = 256; + read_lo = "0010.0000--0aaa.aaaa--aaaa.aaaa--oooo.oooo"; + read_hi = "0010.1000--0aaa.aaaa--aaaa.aaaa--oooo.oooo"; + loadpage_lo = "0100.0000--0000.0000--aaaa.aaaa--iiii.iiii"; + loadpage_hi = "0100.1000--0000.0000--aaaa.aaaa--iiii.iiii"; + writepage = "0100.1100--0aaa.aaaa--aaaa.aaaa--xxxx.xxxx"; ; - memory "fuse4" + memory "lfuse" size = 1; - initval = 0x00; - offset = 0x1284; - readsize = 1; + min_write_delay = 9000; + max_write_delay = 9000; + read = "0101.0000--0000.0000--0000.0000--oooo.oooo"; + write = "1010.1100--1010.0000--0000.0000--iiii.iiii"; ; - memory "tcd0cfg" - alias "fuse4"; + memory "hfuse" + size = 1; + min_write_delay = 9000; + max_write_delay = 9000; + read = "0101.1000--0000.1000--0000.0000--oooo.oooo"; + write = "1010.1100--1010.1000--0000.0000--iiii.iiii"; + ; + + memory "efuse" + size = 1; + min_write_delay = 9000; + max_write_delay = 9000; + read = "0101.0000--0000.1000--0000.0000--oooo.oooo"; + write = "1010.1100--1010.0100--0000.0000--1111.1iii"; ; memory "lock" - initval = 0xc5; + size = 1; + min_write_delay = 9000; + max_write_delay = 9000; + read = "0101.1000--0000.0000--xxxx.xxxx--oooo.oooo"; + write = "1010.1100--1110.0000--0000.0000--11ii.iiii"; ; - memory "sram" - size = 256; - offset = 0x3f00; + memory "signature" + size = 3; + read = "0011.0000--0000.0000--0000.00aa--oooo.oooo"; + ; + + memory "calibration" + size = 1; + read = "0011.1000--0000.0000--0000.0000--oooo.oooo"; ; ; #------------------------------------------------------------ -# ATtiny404 +# ATmega325A #------------------------------------------------------------ -part parent ".avr8x_tiny" # t404 - desc = "ATtiny404"; - id = "t404"; - variants = - "ATtiny404-SSF: SOIC14, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny404-SSFR: SOIC14, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny404-SSN: SOIC14, Fmax=20 MHz, T=[-40 C, 105 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny404-SSNR: SOIC14, Fmax=20 MHz, T=[-40 C, 105 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 285; - archnum = 103; - n_interrupts = 26; - signature = 0x1e 0x92 0x26; - - memory "eeprom" - size = 128; - page_size = 32; - offset = 0x1400; - readsize = 256; - ; - - memory "flash" - size = 4096; - page_size = 64; - offset = 0x8000; - readsize = 256; - ; +part parent "m325" + desc = "ATmega325A"; + id = "m325a"; + mcuid = 115; +; - memory "fuse4" - size = 1; - initval = 0x00; - offset = 0x1284; - readsize = 1; - ; +#------------------------------------------------------------ +# ATmega325P +#------------------------------------------------------------ - memory "tcd0cfg" - alias "fuse4"; - ; +part parent "m325" + desc = "ATmega325P"; + id = "m325p"; + mcuid = 116; + signature = 0x1e 0x95 0x0d; +; - memory "lock" - initval = 0xc5; - ; +#------------------------------------------------------------ +# ATmega325PA +#------------------------------------------------------------ - memory "sram" - size = 256; - offset = 0x3f00; - ; +part parent "m325" + desc = "ATmega325PA"; + id = "m325pa"; + mcuid = 117; + signature = 0x1e 0x95 0x0d; ; #------------------------------------------------------------ -# ATtiny406 +# ATmega645 #------------------------------------------------------------ -part parent ".avr8x_tiny" # t406 - desc = "ATtiny406"; - id = "t406"; - variants = - "ATtiny406-MFR: VQFN20, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny406-MNR: VQFN20, Fmax=20 MHz, T=[-40 C, 105 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny406-SF: SOIC20, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny406-SFR: SOIC20, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny406-SN: SOIC20, Fmax=20 MHz, T=[-40 C, 105 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny406-SNR: SOIC20, Fmax=20 MHz, T=[-40 C, 105 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 286; - archnum = 103; - n_interrupts = 26; - signature = 0x1e 0x92 0x25; +part + desc = "ATmega645"; + id = "m645"; + prog_modes = PM_SPM | PM_ISP | PM_HVPP | PM_JTAG; + mcuid = 132; + n_interrupts = 22; + n_boot_sections = 4; + boot_section_size = 1024; +# stk500_devcode = 0x??; # No STK500v1 support? +# avr910_devcode = 0x??; # Try the ATmega16 one + avr910_devcode = 0x74; + chip_erase_delay = 9000; + pagel = 0xd7; + bs2 = 0xa0; + signature = 0x1e 0x96 0x05; + reset = io; + timeout = 200; + stabdelay = 100; + cmdexedelay = 25; + synchloops = 32; + pollindex = 3; + pollvalue = 0x53; + predelay = 1; + postdelay = 1; + pollmethod = 1; + pp_controlstack = + 0x0e, 0x1e, 0x0f, 0x1f, 0x2e, 0x3e, 0x2f, 0x3f, + 0x4e, 0x5e, 0x4f, 0x5f, 0x6e, 0x7e, 0x6f, 0x7f, + 0x66, 0x76, 0x67, 0x77, 0x6a, 0x7a, 0x6b, 0x7b, + 0xbe, 0xfd, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00; + hventerstabdelay = 100; + latchcycles = 5; + togglevtg = 1; + poweroffdelay = 15; + resetdelayms = 1; + hvleavestabdelay = 15; + chiperasepolltimeout = 10; + programfusepolltimeout = 5; + programlockpolltimeout = 5; + idr = 0x31; + spmcr = 0x57; + ocdrev = 3; + chip_erase = "1010.1100--1000.0000--0000.0000--0000.0000"; + pgm_enable = "1010.1100--0101.0011--0000.0000--0000.0000"; memory "eeprom" - size = 128; - page_size = 32; - offset = 0x1400; + size = 2048; + page_size = 8; + min_write_delay = 9000; + max_write_delay = 9000; + readback = 0xff 0xff; + mode = 65; + delay = 10; + blocksize = 8; + readsize = 256; + read = "1010.0000--0000.0aaa--aaaa.aaaa--oooo.oooo"; + write = "1100.0000--0000.0aaa--aaaa.aaaa--iiii.iiii"; + loadpage_lo = "1100.0001--0000.0000--0000.0aaa--iiii.iiii"; + writepage = "1100.0010--0000.0aaa--aaaa.a000--xxxx.xxxx"; + ; + + memory "flash" + paged = yes; + size = 0x10000; + page_size = 256; + num_pages = 256; + min_write_delay = 4500; + max_write_delay = 4500; + readback = 0xff 0xff; + mode = 65; + delay = 10; + blocksize = 128; readsize = 256; + read_lo = "0010.0000--aaaa.aaaa--aaaa.aaaa--oooo.oooo"; + read_hi = "0010.1000--aaaa.aaaa--aaaa.aaaa--oooo.oooo"; + loadpage_lo = "0100.0000--0000.0000--aaaa.aaaa--iiii.iiii"; + loadpage_hi = "0100.1000--0000.0000--aaaa.aaaa--iiii.iiii"; + writepage = "0100.1100--aaaa.aaaa--aaaa.aaaa--0000.0000"; ; - memory "flash" - size = 4096; - page_size = 64; - offset = 0x8000; - readsize = 256; + memory "lfuse" + size = 1; + min_write_delay = 9000; + max_write_delay = 9000; + read = "0101.0000--0000.0000--0000.0000--oooo.oooo"; + write = "1010.1100--1010.0000--0000.0000--iiii.iiii"; ; - memory "fuse4" + memory "hfuse" size = 1; - initval = 0x00; - offset = 0x1284; - readsize = 1; + min_write_delay = 9000; + max_write_delay = 9000; + read = "0101.1000--0000.1000--0000.0000--oooo.oooo"; + write = "1010.1100--1010.1000--0000.0000--iiii.iiii"; ; - memory "tcd0cfg" - alias "fuse4"; + memory "efuse" + size = 1; + min_write_delay = 9000; + max_write_delay = 9000; + read = "0101.0000--0000.1000--0000.0000--oooo.oooo"; + write = "1010.1100--1010.0100--0000.0000--1111.1iii"; ; memory "lock" - initval = 0xc5; + size = 1; + min_write_delay = 9000; + max_write_delay = 9000; + read = "0101.1000--0000.0000--xxxx.xxxx--oooo.oooo"; + write = "1010.1100--1110.0000--0000.0000--11ii.iiii"; ; - memory "sram" - size = 256; - offset = 0x3f00; + memory "signature" + size = 3; + read = "0011.0000--0000.0000--0000.00aa--oooo.oooo"; + ; + + memory "calibration" + size = 1; + read = "0011.1000--0000.0000--0000.0000--oooo.oooo"; ; ; #------------------------------------------------------------ -# ATtiny804 +# ATmega645A #------------------------------------------------------------ -part parent ".avr8x_tiny" # t804 - desc = "ATtiny804"; - id = "t804"; - variants = - "ATtiny804-SSF: SOIC14, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny804-SSFR: SOIC14, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny804-SSN: SOIC14, Fmax=20 MHz, T=[-40 C, 105 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny804-SSNR: SOIC14, Fmax=20 MHz, T=[-40 C, 105 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 295; - archnum = 103; - n_interrupts = 31; - signature = 0x1e 0x93 0x25; - - memory "eeprom" - size = 128; - page_size = 32; - offset = 0x1400; - readsize = 256; - ; - - memory "flash" - size = 8192; - page_size = 64; - offset = 0x8000; - readsize = 256; - ; - - memory "lock" - initval = 0xc5; - ; - - memory "sram" - size = 512; - offset = 0x3e00; - ; +part parent "m645" + desc = "ATmega645A"; + id = "m645a"; + mcuid = 133; ; #------------------------------------------------------------ -# ATtiny806 +# ATmega645P #------------------------------------------------------------ -part parent ".avr8x_tiny" # t806 - desc = "ATtiny806"; - id = "t806"; - variants = - "ATtiny806-MF: VQFN20, Fmax=16 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny806-MFR: QFN20, Fmax=16 MHz, T=[-40 C, 125 C], Vcc=[2.7 V, 5.5 V]", - "ATtiny806-MN: VQFN20, Fmax=20 MHz, T=[-40 C, 105 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny806-MNR: QFN20, Fmax=20 MHz, T=[-40 C, 105 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny806-SF: SOIC20, Fmax=16 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny806-SFR: SOIC300-20, Fmax=16 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny806-SN: SOIC20, Fmax=20 MHz, T=[-40 C, 105 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny806-SNR: SOIC300-20, Fmax=20 MHz, T=[-40 C, 105 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 296; - archnum = 103; - n_interrupts = 31; - signature = 0x1e 0x93 0x24; - - memory "eeprom" - size = 128; - page_size = 32; - offset = 0x1400; - readsize = 256; - ; - - memory "flash" - size = 8192; - page_size = 64; - offset = 0x8000; - readsize = 256; - ; - - memory "lock" - initval = 0xc5; - ; - - memory "sram" - size = 512; - offset = 0x3e00; - ; +part parent "m645" + desc = "ATmega645P"; + id = "m645p"; + mcuid = 134; + signature = 0x1e 0x96 0x0d; ; #------------------------------------------------------------ -# ATtiny807 +# ATmega3250 #------------------------------------------------------------ -part parent ".avr8x_tiny" # t807 - desc = "ATtiny807"; - id = "t807"; - variants = - "ATtiny807-MF: VQFN24, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny807-MFR: VQFN24, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny807-MN: VQFN24, Fmax=20 MHz, T=[-40 C, 105 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny807-MNR: VQFN24, Fmax=20 MHz, T=[-40 C, 105 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny807-MRF: VQFN24, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 297; - archnum = 103; - n_interrupts = 31; - signature = 0x1e 0x93 0x23; +part parent "m325" + desc = "ATmega3250"; + id = "m3250"; + mcuid = 146; + n_interrupts = 25; + signature = 0x1e 0x95 0x06; +; - memory "eeprom" - size = 128; - page_size = 32; - offset = 0x1400; - readsize = 256; - ; +#------------------------------------------------------------ +# ATmega3250A +#------------------------------------------------------------ - memory "flash" - size = 8192; - page_size = 64; - offset = 0x8000; - readsize = 256; - ; +part parent "m325" + desc = "ATmega3250A"; + id = "m3250a"; + mcuid = 147; + n_interrupts = 25; + signature = 0x1e 0x95 0x06; +; - memory "lock" - initval = 0xc5; - ; +#------------------------------------------------------------ +# ATmega3250P +#------------------------------------------------------------ - memory "sram" - size = 512; - offset = 0x3e00; - ; +part parent "m325" + desc = "ATmega3250P"; + id = "m3250p"; + mcuid = 148; + n_interrupts = 25; + signature = 0x1e 0x95 0x0e; ; #------------------------------------------------------------ -# ATtiny1604 +# ATmega3250PA #------------------------------------------------------------ -part parent ".avr8x_tiny" # t1604 - desc = "ATtiny1604"; - id = "t1604"; - variants = - "ATtiny1604-SSF: SOIC14, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny1604-SSFR: SOIC14, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny1604-SSN: SOIC14, Fmax=20 MHz, T=[-40 C, 105 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny1604-SSNR: SOIC14, Fmax=20 MHz, T=[-40 C, 105 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 304; - archnum = 103; - n_interrupts = 31; - signature = 0x1e 0x94 0x25; +part parent "m325" + desc = "ATmega3250PA"; + id = "m3250pa"; + mcuid = 149; + n_interrupts = 25; + signature = 0x1e 0x95 0x0e; +; - memory "eeprom" - size = 256; - page_size = 32; - offset = 0x1400; - readsize = 256; - ; +#------------------------------------------------------------ +# ATmega6450 +#------------------------------------------------------------ - memory "flash" - size = 0x4000; - page_size = 64; - offset = 0x8000; - readsize = 256; - ; +part parent "m645" + desc = "ATmega6450"; + id = "m6450"; + mcuid = 154; + n_interrupts = 25; + signature = 0x1e 0x96 0x06; +; - memory "lock" - initval = 0xc5; - ; +#------------------------------------------------------------ +# ATmega6450A +#------------------------------------------------------------ - memory "sram" - size = 1024; - offset = 0x3c00; - ; +part parent "m645" + desc = "ATmega6450A"; + id = "m6450a"; + mcuid = 155; + n_interrupts = 25; + signature = 0x1e 0x96 0x06; ; #------------------------------------------------------------ -# ATtiny1606 +# ATmega6450P #------------------------------------------------------------ -part parent ".avr8x_tiny" # t1606 - desc = "ATtiny1606"; - id = "t1606"; - variants = - "ATtiny1606-MF: VQFN20, Fmax=16 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny1606-MFR: VQFN20, Fmax=16 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny1606-MN: VQFN20, Fmax=20 MHz, T=[-40 C, 105 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny1606-MNR: VQFN20, Fmax=20 MHz, T=[-40 C, 105 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny1606-SF: SOIC20, Fmax=16 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny1606-SFR: SOIC300-20, Fmax=16 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny1606-SN: SOIC20, Fmax=20 MHz, T=[-40 C, 105 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny1606-SNR: SOIC300-20, Fmax=20 MHz, T=[-40 C, 105 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 305; - archnum = 103; - n_interrupts = 31; - signature = 0x1e 0x94 0x24; +part parent "m645" + desc = "ATmega6450P"; + id = "m6450p"; + mcuid = 156; + n_interrupts = 25; + signature = 0x1e 0x96 0x0e; +; - memory "eeprom" - size = 256; - page_size = 32; - offset = 0x1400; - readsize = 256; - ; +#------------------------------------------------------------ +# AVR XMEGA family common values +#------------------------------------------------------------ - memory "flash" - size = 0x4000; - page_size = 64; - offset = 0x8000; - readsize = 256; - ; +part + desc = "AVR XMEGA family common values"; + id = ".xmega"; + prog_modes = PM_SPM | PM_PDI; + n_boot_sections = 1; + mcu_base = 0x0090; + nvm_base = 0x01c0; + autobaud_sync = 0x20; - memory "lock" - initval = 0xc5; + memory "fuse1" + size = 1; + offset = 0x8f0021; ; - memory "sram" - size = 1024; - offset = 0x3c00; + memory "fuse2" + size = 1; + offset = 0x8f0022; ; -; - -#------------------------------------------------------------ -# ATtiny1607 -#------------------------------------------------------------ - -part parent ".avr8x_tiny" # t1607 - desc = "ATtiny1607"; - id = "t1607"; - variants = - "ATtiny1607-MF: VQFN24, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny1607-MFR: VQFN24, Fmax=16 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny1607-MN: VQFN24, Fmax=20 MHz, T=[-40 C, 105 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny1607-MNR: VQFN24, Fmax=20 MHz, T=[-40 C, 105 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny1607-MRF: VQFN24, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 306; - archnum = 103; - n_interrupts = 31; - signature = 0x1e 0x94 0x23; - memory "eeprom" - size = 256; - page_size = 32; - offset = 0x1400; - readsize = 256; + memory "fuse4" + size = 1; + offset = 0x8f0024; ; - memory "flash" - size = 0x4000; - page_size = 64; - offset = 0x8000; - readsize = 256; + memory "fuse5" + size = 1; + offset = 0x8f0025; ; memory "lock" - initval = 0xc5; + size = 1; + offset = 0x8f0027; ; - memory "sram" - size = 1024; - offset = 0x3c00; + memory "signature" + size = 3; + offset = 0x1000090; + ; + + memory "prodsig" + size = 50; + page_size = 50; + offset = 0x8e0200; + readsize = 50; + ; + + memory "data" + # SRAM, only used to supply the offset + offset = 0x1000000; ; ; #------------------------------------------------------------ -# ATtiny212 +# ATxmega16A4U #------------------------------------------------------------ -part parent ".avr8x_tiny" # t212 - desc = "ATtiny212"; - id = "t212"; - variants = - "ATtiny212-SSF: SOIC8, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny212-SSFR: SOIC8, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny212-SSN: SOIC8, Fmax=20 MHz, T=[-40 C, 105 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny212-SSNR: SOIC8, Fmax=20 MHz, T=[-40 C, 105 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 282; - archnum = 103; - n_interrupts = 26; - signature = 0x1e 0x91 0x21; +part parent ".xmega" + desc = "ATxmega16A4U"; + id = "x16a4u"; + mcuid = 232; + n_interrupts = 127; + boot_section_size = 4096; + signature = 0x1e 0x94 0x41; + usbpid = 0x2fe3; memory "eeprom" - size = 64; + size = 1024; page_size = 32; - offset = 0x1400; + offset = 0x8c0000; readsize = 256; ; memory "flash" - size = 2048; - page_size = 64; - offset = 0x8000; + size = 0x5000; + page_size = 256; + offset = 0x800000; readsize = 256; ; - memory "fuse4" - size = 1; - initval = 0x00; - offset = 0x1284; - readsize = 1; + memory "application" + size = 0x4000; + page_size = 256; + offset = 0x800000; + readsize = 256; ; - memory "tcd0cfg" - alias "fuse4"; + memory "apptable" + size = 4096; + page_size = 256; + offset = 0x803000; + readsize = 256; ; - memory "lock" - initval = 0xc5; + memory "boot" + size = 4096; + page_size = 256; + offset = 0x804000; + readsize = 256; ; - memory "sram" - size = 128; - offset = 0x3f80; + memory "usersig" + size = 256; + page_size = 256; + offset = 0x8e0400; + readsize = 256; ; ; #------------------------------------------------------------ -# ATtiny214 +# ATxmega16C4 #------------------------------------------------------------ -part parent ".avr8x_tiny" # t214 - desc = "ATtiny214"; - id = "t214"; - variants = - "ATtiny214-SSF: SOIC14, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny214-SSFR: SOIC14, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny214-SSN: SOIC14, Fmax=20 MHz, T=[-40 C, 105 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny214-SSNR: SOIC14, Fmax=20 MHz, T=[-40 C, 105 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 283; - archnum = 103; - n_interrupts = 26; - signature = 0x1e 0x91 0x20; - - memory "eeprom" - size = 64; - page_size = 32; - offset = 0x1400; - readsize = 256; - ; +part parent "x16a4u" + desc = "ATxmega16C4"; + id = "x16c4"; + mcuid = 233; + signature = 0x1e 0x94 0x43; +; - memory "flash" - size = 2048; - page_size = 64; - offset = 0x8000; - readsize = 256; - ; +#------------------------------------------------------------ +# ATxmega16D4 +#------------------------------------------------------------ - memory "fuse4" - size = 1; - initval = 0x00; - offset = 0x1284; - readsize = 1; - ; +part parent "x16a4u" + desc = "ATxmega16D4"; + id = "x16d4"; + mcuid = 234; + n_interrupts = 91; + signature = 0x1e 0x94 0x42; +; - memory "tcd0cfg" - alias "fuse4"; - ; +#------------------------------------------------------------ +# ATxmega16A4 +#------------------------------------------------------------ - memory "lock" - initval = 0xc5; - ; +part parent "x16a4u" + desc = "ATxmega16A4"; + id = "x16a4"; + mcuid = 231; + n_interrupts = 94; - memory "sram" - size = 128; - offset = 0x3f80; + memory "fuse0" + size = 1; + offset = 0x8f0020; ; ; #------------------------------------------------------------ -# ATtiny412 +# ATxmega32A4U #------------------------------------------------------------ -part parent ".avr8x_tiny" # t412 - desc = "ATtiny412"; - id = "t412"; - variants = - "ATtiny412-SSF: SOIC8, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny412-SSFR: SOIC8, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny412-SSN: SOIC8, Fmax=20 MHz, T=[-40 C, 105 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny412-SSNR: SOIC8, Fmax=20 MHz, T=[-40 C, 105 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 287; - archnum = 103; - n_interrupts = 26; - signature = 0x1e 0x92 0x23; +part parent ".xmega" + desc = "ATxmega32A4U"; + id = "x32a4u"; + mcuid = 239; + n_interrupts = 127; + boot_section_size = 4096; + signature = 0x1e 0x95 0x41; + usbpid = 0x2fe4; memory "eeprom" - size = 128; + size = 1024; page_size = 32; - offset = 0x1400; + offset = 0x8c0000; readsize = 256; ; memory "flash" - size = 4096; - page_size = 64; - offset = 0x8000; + size = 0x9000; + page_size = 256; + offset = 0x800000; readsize = 256; ; - memory "fuse4" - size = 1; - initval = 0x00; - offset = 0x1284; - readsize = 1; + memory "application" + size = 0x8000; + page_size = 256; + offset = 0x800000; + readsize = 256; ; - memory "tcd0cfg" - alias "fuse4"; + memory "apptable" + size = 4096; + page_size = 256; + offset = 0x807000; + readsize = 256; ; - memory "lock" - initval = 0xc5; + memory "boot" + size = 4096; + page_size = 256; + offset = 0x808000; + readsize = 256; ; - memory "sram" + memory "usersig" size = 256; - offset = 0x3f00; + page_size = 256; + offset = 0x8e0400; + readsize = 256; ; ; #------------------------------------------------------------ -# ATtiny414 +# ATxmega32C4 #------------------------------------------------------------ -part parent ".avr8x_tiny" # t414 - desc = "ATtiny414"; - id = "t414"; - variants = - "ATtiny414-SSF: SOIC14, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny414-SSFR: SOIC14, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny414-SSN: SOIC14, Fmax=20 MHz, T=[-40 C, 105 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny414-SSNR: SOIC14, Fmax=20 MHz, T=[-40 C, 105 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 288; - archnum = 103; - n_interrupts = 26; - signature = 0x1e 0x92 0x22; - - memory "eeprom" - size = 128; - page_size = 32; - offset = 0x1400; - readsize = 256; - ; +part parent "x32a4u" + desc = "ATxmega32C4"; + id = "x32c4"; + mcuid = 240; + signature = 0x1e 0x95 0x44; +; - memory "flash" - size = 4096; - page_size = 64; - offset = 0x8000; - readsize = 256; - ; +#------------------------------------------------------------ +# ATxmega32D4 +#------------------------------------------------------------ - memory "fuse4" - size = 1; - initval = 0x00; - offset = 0x1284; - readsize = 1; - ; +part parent "x32a4u" + desc = "ATxmega32D4"; + id = "x32d4"; + mcuid = 241; + n_interrupts = 91; + signature = 0x1e 0x95 0x42; +; - memory "tcd0cfg" - alias "fuse4"; - ; +#------------------------------------------------------------ +# ATxmega32A4 +#------------------------------------------------------------ - memory "lock" - initval = 0xc5; - ; +part parent "x32a4u" + desc = "ATxmega32A4"; + id = "x32a4"; + mcuid = 238; + n_interrupts = 94; - memory "sram" - size = 256; - offset = 0x3f00; + memory "fuse0" + size = 1; + offset = 0x8f0020; ; ; #------------------------------------------------------------ -# ATtiny416 +# ATxmega64A4U #------------------------------------------------------------ -part parent ".avr8x_tiny" # t416 - desc = "ATtiny416"; - id = "t416"; - variants = - "ATtiny416-MFR: VQFN20, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny416-MNR: VQFN20, Fmax=20 MHz, T=[-40 C, 105 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny416-SF: SOIC20, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny416-SFR: SOIC20, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny416-SN: SOIC20, Fmax=20 MHz, T=[-40 C, 105 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny416-SNR: SOIC20, Fmax=20 MHz, T=[-40 C, 105 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 289; - archnum = 103; - n_interrupts = 26; - signature = 0x1e 0x92 0x21; +part parent ".xmega" + desc = "ATxmega64A4U"; + id = "x64a4u"; + mcuid = 252; + n_interrupts = 127; + boot_section_size = 4096; + signature = 0x1e 0x96 0x46; + usbpid = 0x2fe5; memory "eeprom" - size = 128; + size = 2048; page_size = 32; - offset = 0x1400; + offset = 0x8c0000; readsize = 256; ; memory "flash" - size = 4096; - page_size = 64; - offset = 0x8000; + size = 0x11000; + page_size = 256; + offset = 0x800000; readsize = 256; ; - memory "fuse4" - size = 1; - initval = 0x00; - offset = 0x1284; - readsize = 1; + memory "application" + size = 0x10000; + page_size = 256; + offset = 0x800000; + readsize = 256; ; - memory "tcd0cfg" - alias "fuse4"; + memory "apptable" + size = 4096; + page_size = 256; + offset = 0x80f000; + readsize = 256; ; - memory "lock" - initval = 0xc5; + memory "boot" + size = 4096; + page_size = 256; + offset = 0x810000; + readsize = 256; ; - memory "sram" + memory "usersig" size = 256; - offset = 0x3f00; + page_size = 256; + offset = 0x8e0400; + readsize = 256; ; ; #------------------------------------------------------------ -# ATtiny416auto +# ATxmega64C3 #------------------------------------------------------------ -part parent "t416" # t416auto - desc = "ATtiny416auto"; - id = "t416auto"; - variants = - "ATtiny416-MBT: VQFN20, Fmax=20 MHz, T=[-40 C, 105 C], Vcc=[2.7 V, 5.5 V]", - "ATtiny416-MZT: VQFN20, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[2.7 V, 5.5 V]"; - mcuid = 290; - signature = 0x1e 0x92 0x28; - factory_fcpu = 16000000; +part parent "x64a4u" + desc = "ATxmega64C3"; + id = "x64c3"; + mcuid = 249; + signature = 0x1e 0x96 0x49; + usbpid = 0x2fd6; +; + +#------------------------------------------------------------ +# ATxmega64D3 +#------------------------------------------------------------ - memory "fuse2" - initval = 0x7d; - ; +part parent "x64a4u" + desc = "ATxmega64D3"; + id = "x64d3"; + mcuid = 250; + n_interrupts = 114; + signature = 0x1e 0x96 0x4a; ; #------------------------------------------------------------ -# ATtiny417 +# ATxmega64D4 #------------------------------------------------------------ -part parent ".avr8x_tiny" # t417 - desc = "ATtiny417"; - id = "t417"; - variants = - "ATtiny417-MF: VQFN24, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny417-MFR: QFN24, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny417-MN: VQFN24, Fmax=20 MHz, T=[-40 C, 105 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny417-MNR: QFN24, Fmax=20 MHz, T=[-40 C, 105 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 291; - archnum = 103; - n_interrupts = 26; - signature = 0x1e 0x92 0x20; +part parent "x64a4u" + desc = "ATxmega64D4"; + id = "x64d4"; + mcuid = 253; + n_interrupts = 91; + signature = 0x1e 0x96 0x47; +; - memory "eeprom" - size = 128; - page_size = 32; - offset = 0x1400; - readsize = 256; - ; +#------------------------------------------------------------ +# ATxmega64A1 +#------------------------------------------------------------ - memory "flash" - size = 4096; - page_size = 64; - offset = 0x8000; - readsize = 256; - ; +part parent "x64a4u" + desc = "ATxmega64A1"; + id = "x64a1"; + prog_modes = PM_SPM | PM_PDI | PM_XMEGAJTAG; + mcuid = 243; + n_interrupts = 125; + signature = 0x1e 0x96 0x4e; - memory "fuse4" + memory "fuse0" size = 1; - initval = 0x00; - offset = 0x1284; - readsize = 1; + offset = 0x8f0020; ; +; - memory "tcd0cfg" - alias "fuse4"; - ; +#------------------------------------------------------------ +# ATxmega64A1U +#------------------------------------------------------------ - memory "lock" - initval = 0xc5; - ; +part parent "x64a1" + desc = "ATxmega64A1U"; + id = "x64a1u"; + mcuid = 244; + n_interrupts = 127; + usbpid = 0x2fe8; +; - memory "sram" - size = 256; - offset = 0x3f00; - ; +#------------------------------------------------------------ +# ATxmega64A3 +#------------------------------------------------------------ + +part parent "x64a1" + desc = "ATxmega64A3"; + id = "x64a3"; + mcuid = 246; + n_interrupts = 122; + signature = 0x1e 0x96 0x42; ; #------------------------------------------------------------ -# ATtiny814 +# ATxmega64A3U #------------------------------------------------------------ -part parent ".avr8x_tiny" # t814 - desc = "ATtiny814"; - id = "t814"; - variants = - "ATtiny814-SSF: SOIC14, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny814-SSFR: SOIC14, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny814-SSN: SOIC14, Fmax=20 MHz, T=[-40 C, 105 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny814-SSNR: SOIC14, Fmax=20 MHz, T=[-40 C, 105 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny814-SSNRES: SOIC14, Fmax=20 MHz, T=[-40 C, 105 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 298; - archnum = 103; - n_interrupts = 26; - signature = 0x1e 0x93 0x22; +part parent "x64a1" + desc = "ATxmega64A3U"; + id = "x64a3u"; + mcuid = 247; + n_interrupts = 127; + signature = 0x1e 0x96 0x42; +; - memory "eeprom" - size = 128; - page_size = 32; - offset = 0x1400; - readsize = 256; - ; +#------------------------------------------------------------ +# ATxmega64A4 +#------------------------------------------------------------ - memory "flash" - size = 8192; - page_size = 64; - offset = 0x8000; - readsize = 256; - ; +part parent "x64a1" + desc = "ATxmega64A4"; + id = "x64a4"; + mcuid = 251; + signature = 0x1e 0x96 0x46; +; - memory "fuse4" - size = 1; - initval = 0x00; - offset = 0x1284; - readsize = 1; - ; +#------------------------------------------------------------ +# ATxmega64B1 +#------------------------------------------------------------ - memory "tcd0cfg" - alias "fuse4"; - ; +part parent "x64a1" + desc = "ATxmega64B1"; + id = "x64b1"; + mcuid = 245; + n_interrupts = 81; + signature = 0x1e 0x96 0x52; + usbpid = 0x2fe1; +; - memory "lock" - initval = 0xc5; - ; +#------------------------------------------------------------ +# ATxmega64B3 +#------------------------------------------------------------ - memory "sram" - size = 512; - offset = 0x3e00; - ; +part parent "x64a1" + desc = "ATxmega64B3"; + id = "x64b3"; + mcuid = 248; + n_interrupts = 54; + signature = 0x1e 0x96 0x51; + usbpid = 0x2fdf; ; #------------------------------------------------------------ -# ATtiny816 +# ATxmega128C3 #------------------------------------------------------------ -part parent ".avr8x_tiny" # t816 - desc = "ATtiny816"; - id = "t816"; - variants = - "ATtiny816-MF: VQFN20, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny816-MFR: VQFN20, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny816-MN: VQFN20, Fmax=20 MHz, T=[-40 C, 105 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny816-MNR: VQFN20, Fmax=20 MHz, T=[-40 C, 105 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny816-MNRES: VQFN20, Fmax=20 MHz, T=[-40 C, 105 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny816-SF: SOIC20, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny816-SFR: SOIC20, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny816-SN: SOIC20, Fmax=20 MHz, T=[-40 C, 105 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny816-SNR: SOIC20, Fmax=20 MHz, T=[-40 C, 105 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 299; - archnum = 103; - n_interrupts = 26; - signature = 0x1e 0x93 0x21; +part parent ".xmega" + desc = "ATxmega128C3"; + id = "x128c3"; + mcuid = 261; + n_interrupts = 127; + boot_section_size = 8192; + signature = 0x1e 0x97 0x52; + usbpid = 0x2fd7; memory "eeprom" - size = 128; + size = 2048; page_size = 32; - offset = 0x1400; + offset = 0x8c0000; readsize = 256; ; memory "flash" - size = 8192; - page_size = 64; - offset = 0x8000; + size = 0x22000; + page_size = 512; + offset = 0x800000; readsize = 256; ; - memory "fuse4" - size = 1; - initval = 0x00; - offset = 0x1284; - readsize = 1; + memory "application" + size = 0x20000; + page_size = 512; + offset = 0x800000; + readsize = 256; ; - memory "tcd0cfg" - alias "fuse4"; + memory "apptable" + size = 8192; + page_size = 512; + offset = 0x81e000; + readsize = 256; ; - memory "lock" - initval = 0xc5; + memory "boot" + size = 8192; + page_size = 512; + offset = 0x820000; + readsize = 256; ; - memory "sram" + memory "usersig" size = 512; - offset = 0x3e00; + page_size = 512; + offset = 0x8e0400; + readsize = 256; ; ; #------------------------------------------------------------ -# ATtiny817 +# ATxmega128D3 #------------------------------------------------------------ -part parent ".avr8x_tiny" # t817 - desc = "ATtiny817"; - id = "t817"; - variants = - "ATtiny817-MF: VQFN24, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny817-MFR: VQFN24, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny817-MN: VQFN24, Fmax=20 MHz, T=[-40 C, 105 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny817-MNR: VQFN24, Fmax=20 MHz, T=[-40 C, 105 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny817-MNRES: VQFN24, Fmax=20 MHz, T=[-40 C, 105 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 300; - archnum = 103; - n_interrupts = 26; - signature = 0x1e 0x93 0x20; +part parent "x128c3" + desc = "ATxmega128D3"; + id = "x128d3"; + mcuid = 262; + n_interrupts = 114; + signature = 0x1e 0x97 0x48; +; - memory "eeprom" - size = 128; - page_size = 32; - offset = 0x1400; - readsize = 256; - ; +#------------------------------------------------------------ +# ATxmega128D4 +#------------------------------------------------------------ + +part parent "x128c3" + desc = "ATxmega128D4"; + id = "x128d4"; + mcuid = 265; + n_interrupts = 91; + signature = 0x1e 0x97 0x47; memory "flash" - size = 8192; - page_size = 64; - offset = 0x8000; - readsize = 256; - ; - - memory "fuse4" - size = 1; - initval = 0x00; - offset = 0x1284; - readsize = 1; + page_size = 256; ; +; - memory "tcd0cfg" - alias "fuse4"; - ; +#------------------------------------------------------------ +# ATxmega128A1 +#------------------------------------------------------------ - memory "lock" - initval = 0xc5; - ; +part parent "x128c3" + desc = "ATxmega128A1"; + id = "x128a1"; + prog_modes = PM_SPM | PM_PDI | PM_XMEGAJTAG; + mcuid = 254; + n_interrupts = 125; + signature = 0x1e 0x97 0x4c; - memory "sram" - size = 512; - offset = 0x3e00; + memory "fuse0" + size = 1; + offset = 0x8f0020; ; ; #------------------------------------------------------------ -# ATtiny1614 +# ATxmega128A1 revision D #------------------------------------------------------------ -part parent ".avr8x_tiny" # t1614 - desc = "ATtiny1614"; - id = "t1614"; - variants = - "ATtiny1614-SSF: SOIC14, Fmax=16 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny1614-SSFR: SOIC14, Fmax=16 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny1614-SSN: SOIC14, Fmax=20 MHz, T=[-40 C, 105 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny1614-SSNR: SOIC14, Fmax=20 MHz, T=[-40 C, 105 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 307; - archnum = 103; - n_interrupts = 31; - signature = 0x1e 0x94 0x22; +part parent "x128a1" + desc = "ATxmega128A1revD"; + id = "x128a1d"; + mcuid = 255; + signature = 0x1e 0x97 0x41; +; - memory "eeprom" - size = 256; - page_size = 32; - offset = 0x1400; - readsize = 256; - ; +#------------------------------------------------------------ +# ATxmega128A1U +#------------------------------------------------------------ - memory "flash" - size = 0x4000; - page_size = 64; - offset = 0x8000; - readsize = 256; - ; +part parent "x128a1" + desc = "ATxmega128A1U"; + id = "x128a1u"; + mcuid = 256; + n_interrupts = 127; + usbpid = 0x2fed; +; - memory "fuse4" - size = 1; - initval = 0x00; - offset = 0x1284; - readsize = 1; - ; +#------------------------------------------------------------ +# ATxmega128A3 +#------------------------------------------------------------ - memory "tcd0cfg" - alias "fuse4"; - ; +part parent "x128a1" + desc = "ATxmega128A3"; + id = "x128a3"; + mcuid = 258; + n_interrupts = 122; + signature = 0x1e 0x97 0x42; +; - memory "lock" - initval = 0xc5; - ; +#------------------------------------------------------------ +# ATxmega128A3U +#------------------------------------------------------------ - memory "sram" - size = 2048; - offset = 0x3800; - ; +part parent "x128a1" + desc = "ATxmega128A3U"; + id = "x128a3u"; + mcuid = 259; + n_interrupts = 127; + signature = 0x1e 0x97 0x42; + usbpid = 0x2fe6; ; #------------------------------------------------------------ -# ATtiny1616 +# ATxmega128A4 #------------------------------------------------------------ -part parent ".avr8x_tiny" # t1616 - desc = "ATtiny1616"; - id = "t1616"; - variants = - "ATtiny1616-MFR: QFN20, Fmax=16 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny1616-MNR: QFN20, Fmax=20 MHz, T=[-40 C, 105 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny1616-SF: SOIC20, Fmax=16 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny1616-SFR: SOIC20, Fmax=16 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny1616-SN: SOIC20, Fmax=20 MHz, T=[-40 C, 105 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny1616-SNR: SOIC20, Fmax=20 MHz, T=[-40 C, 105 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 308; - archnum = 103; - n_interrupts = 31; - signature = 0x1e 0x94 0x21; +part parent ".xmega" + desc = "ATxmega128A4"; + id = "x128a4"; + prog_modes = PM_SPM | PM_PDI | PM_XMEGAJTAG; + mcuid = 263; + signature = 0x1e 0x97 0x46; memory "eeprom" - size = 256; + size = 2048; page_size = 32; - offset = 0x1400; + offset = 0x8c0000; readsize = 256; ; memory "flash" - size = 0x4000; - page_size = 64; - offset = 0x8000; + size = 0x22000; + page_size = 512; + offset = 0x800000; readsize = 256; ; - memory "fuse4" - size = 1; - initval = 0x00; - offset = 0x1284; - readsize = 1; + memory "application" + size = 0x20000; + page_size = 512; + offset = 0x800000; + readsize = 256; ; - memory "tcd0cfg" - alias "fuse4"; + memory "apptable" + size = 4096; + page_size = 512; + offset = 0x81f000; + readsize = 256; ; - memory "lock" - initval = 0xc5; + memory "boot" + size = 8192; + page_size = 512; + offset = 0x820000; + readsize = 256; ; - memory "sram" - size = 2048; - offset = 0x3800; + memory "fuse0" + size = 1; + offset = 0x8f0020; + ; + + memory "usersig" + size = 512; + page_size = 512; + offset = 0x8e0400; + readsize = 256; ; ; #------------------------------------------------------------ -# ATtiny1617 +# ATxmega128A4U #------------------------------------------------------------ -part parent ".avr8x_tiny" # t1617 - desc = "ATtiny1617"; - id = "t1617"; - variants = - "ATtiny1617-MF: VQFN24, Fmax=16 MHz, T=[-40 C, 125 C], Vcc=[2.7 V, 5.5 V]", - "ATtiny1617-MFR: VQFN24, Fmax=16 MHz, T=[-40 C, 125 C], Vcc=[2.7 V, 5.5 V]", - "ATtiny1617-MN: QFN24, Fmax=20 MHz, T=[-40 C, 105 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny1617-MNR: QFN24, Fmax=20 MHz, T=[-40 C, 105 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 309; - archnum = 103; - n_interrupts = 31; - signature = 0x1e 0x94 0x20; +part parent ".xmega" + desc = "ATxmega128A4U"; + id = "x128a4u"; + mcuid = 264; + n_interrupts = 127; + boot_section_size = 8192; + signature = 0x1e 0x97 0x46; + usbpid = 0x2fde; memory "eeprom" - size = 256; + size = 2048; page_size = 32; - offset = 0x1400; + offset = 0x8c0000; readsize = 256; ; memory "flash" - size = 0x4000; - page_size = 64; - offset = 0x8000; + size = 0x22000; + page_size = 256; + offset = 0x800000; readsize = 256; ; - memory "fuse4" - size = 1; - initval = 0x00; - offset = 0x1284; - readsize = 1; + memory "application" + size = 0x20000; + page_size = 256; + offset = 0x800000; + readsize = 256; ; - memory "tcd0cfg" - alias "fuse4"; + memory "apptable" + size = 4096; + page_size = 256; + offset = 0x81f000; + readsize = 256; ; - memory "lock" - initval = 0xc5; + memory "boot" + size = 8192; + page_size = 256; + offset = 0x820000; + readsize = 256; ; - memory "sram" - size = 2048; - offset = 0x3800; + memory "usersig" + size = 256; + page_size = 256; + offset = 0x8e0400; + readsize = 256; ; ; #------------------------------------------------------------ -# ATtiny3216 +# ATxmega128B1 #------------------------------------------------------------ -part parent ".avr8x_tiny" # t3216 - desc = "ATtiny3216"; - id = "t3216"; - variants = - "ATtiny3216-SF: SOIC20, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny3216-SFR: SOIC20, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny3216-SN: SOIC20, Fmax=20 MHz, T=[-40 C, 105 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny3216-SNR: SOIC20, Fmax=20 MHz, T=[-40 C, 105 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 314; - archnum = 103; - n_interrupts = 31; - signature = 0x1e 0x95 0x21; +part parent ".xmega" + desc = "ATxmega128B1"; + id = "x128b1"; + prog_modes = PM_SPM | PM_PDI | PM_XMEGAJTAG; + mcuid = 257; + n_interrupts = 81; + boot_section_size = 8192; + signature = 0x1e 0x97 0x4d; + usbpid = 0x2fea; memory "eeprom" - size = 256; - page_size = 64; - offset = 0x1400; + size = 2048; + page_size = 32; + offset = 0x8c0000; readsize = 256; ; memory "flash" - size = 0x8000; - page_size = 128; - offset = 0x8000; + size = 0x22000; + page_size = 256; + offset = 0x800000; readsize = 256; ; - memory "fuse4" - size = 1; - initval = 0x00; - offset = 0x1284; - readsize = 1; + memory "application" + size = 0x20000; + page_size = 256; + offset = 0x800000; + readsize = 256; ; - memory "tcd0cfg" - alias "fuse4"; + memory "apptable" + size = 8192; + page_size = 256; + offset = 0x81e000; + readsize = 256; ; - memory "lock" - initval = 0xc5; + memory "boot" + size = 8192; + page_size = 256; + offset = 0x820000; + readsize = 256; ; - memory "userrow" - size = 64; - page_size = 64; + memory "fuse0" + size = 1; + offset = 0x8f0020; ; - memory "sram" - size = 2048; - offset = 0x3800; + memory "usersig" + size = 256; + page_size = 256; + offset = 0x8e0400; + readsize = 256; ; ; #------------------------------------------------------------ -# ATtiny3217 +# ATxmega128B3 #------------------------------------------------------------ -part parent "t3216" # t3217 - desc = "ATtiny3217"; - id = "t3217"; - variants = - "ATtiny3217-MF: VQFN24, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny3217-MFR: VQFN24, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny3217-MN: VQFN24, Fmax=20 MHz, T=[-40 C, 105 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny3217-MNR: VQFN24, Fmax=20 MHz, T=[-40 C, 105 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 315; - signature = 0x1e 0x95 0x22; +part parent "x128b1" + desc = "ATxmega128B3"; + id = "x128b3"; + mcuid = 260; + n_interrupts = 54; + signature = 0x1e 0x97 0x4b; + usbpid = 0x2fe0; ; #------------------------------------------------------------ -# ATtiny424 +# ATxmega192C3 #------------------------------------------------------------ -part parent ".avr8x_tiny" # t424 - desc = "ATtiny424"; - id = "t424"; - variants = - "ATtiny424: SOIC14, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny424-SSF: SOIC14, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny424-SSFR: SOIC14, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny424-SSU: SOIC14, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny424-SSUR: SOIC14, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny424-XF: TSSOP14, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny424-XFR: TSSOP14, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny424-XU: TSSOP14, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny424-XUR: TSSOP14, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 292; - n_interrupts = 30; - signature = 0x1e 0x92 0x2c; +part parent ".xmega" + desc = "ATxmega192C3"; + id = "x192c3"; + mcuid = 269; + n_interrupts = 127; + boot_section_size = 8192; + signature = 0x1e 0x97 0x51; +# usbpid = 0x2f??; memory "eeprom" - size = 128; + size = 2048; page_size = 32; - offset = 0x1400; + offset = 0x8c0000; readsize = 256; ; memory "flash" - size = 4096; - page_size = 64; - offset = 0x8000; + size = 0x32000; + page_size = 512; + offset = 0x800000; readsize = 256; ; - memory "fuse5" - bitmask = 0xdd; + memory "application" + size = 0x30000; + page_size = 512; + offset = 0x800000; + readsize = 256; ; - memory "lock" - initval = 0xc5; + memory "apptable" + size = 8192; + page_size = 512; + offset = 0x82e000; + readsize = 256; ; - memory "sram" + memory "boot" + size = 8192; + page_size = 512; + offset = 0x830000; + readsize = 256; + ; + + memory "usersig" size = 512; - offset = 0x3e00; + page_size = 512; + offset = 0x8e0400; + readsize = 256; ; ; #------------------------------------------------------------ -# ATtiny426 +# ATxmega192D3 #------------------------------------------------------------ -part parent ".avr8x_tiny" # t426 - desc = "ATtiny426"; - id = "t426"; - variants = - "ATtiny426: VQFN20, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny426-MF: VQFN20, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny426-MFR: VQFN20, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny426-MU: VQFN20, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny426-MUR: VQFN20, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny426-SF: SOIC20, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny426-SFR: SOIC20, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny426-SU: SOIC20, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny426-SUR: SOIC20, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny426-XF: SSOP20, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny426-XFR: SSOP20, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny426-XU: SSOP20, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny426-XUR: SSOP20, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 293; - n_interrupts = 30; - signature = 0x1e 0x92 0x2b; +part parent "x192c3" + desc = "ATxmega192D3"; + id = "x192d3"; + mcuid = 270; + n_interrupts = 114; + signature = 0x1e 0x97 0x49; +; - memory "eeprom" - size = 128; - page_size = 32; - offset = 0x1400; - readsize = 256; - ; +#------------------------------------------------------------ +# ATxmega192A1 +#------------------------------------------------------------ - memory "flash" - size = 4096; - page_size = 64; - offset = 0x8000; - readsize = 256; - ; +part parent "x192c3" + desc = "ATxmega192A1"; + id = "x192a1"; + prog_modes = PM_SPM | PM_PDI | PM_XMEGAJTAG; + mcuid = 266; + signature = 0x1e 0x97 0x4e; - memory "fuse5" - bitmask = 0xdd; + memory "fuse0" + size = 1; + offset = 0x8f0020; ; +; - memory "lock" - initval = 0xc5; - ; +#------------------------------------------------------------ +# ATxmega192A3 +#------------------------------------------------------------ - memory "sram" - size = 512; - offset = 0x3e00; - ; +part parent "x192a1" + desc = "ATxmega192A3"; + id = "x192a3"; + mcuid = 267; + n_interrupts = 122; + signature = 0x1e 0x97 0x44; ; #------------------------------------------------------------ -# ATtiny427 +# ATxmega192A3U #------------------------------------------------------------ -part parent ".avr8x_tiny" # t427 - desc = "ATtiny427"; - id = "t427"; - variants = - "ATtiny427: VQFN24, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny427-MF: VQFN24, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny427-MFR: VQFN24, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny427-MU: VQFN24, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny427-MUR: VQFN24, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 294; - n_interrupts = 30; - signature = 0x1e 0x92 0x2a; +part parent "x192a1" + desc = "ATxmega192A3U"; + id = "x192a3u"; + mcuid = 268; + signature = 0x1e 0x97 0x44; + usbpid = 0x2fe7; +; + +#------------------------------------------------------------ +# ATxmega256C3 +#------------------------------------------------------------ + +part parent ".xmega" + desc = "ATxmega256C3"; + id = "x256c3"; + mcuid = 276; + n_interrupts = 127; + boot_section_size = 8192; + signature = 0x1e 0x98 0x46; + usbpid = 0x2fda; memory "eeprom" - size = 128; + size = 4096; page_size = 32; - offset = 0x1400; + offset = 0x8c0000; readsize = 256; ; memory "flash" - size = 4096; - page_size = 64; - offset = 0x8000; + size = 0x42000; + page_size = 512; + offset = 0x800000; readsize = 256; ; - memory "fuse5" - bitmask = 0xdd; - ; - - memory "lock" - initval = 0xc5; - ; - - memory "sram" - size = 512; - offset = 0x3e00; + memory "application" + size = 0x40000; + page_size = 512; + offset = 0x800000; + readsize = 256; ; -; - -#------------------------------------------------------------ -# ATtiny824 -#------------------------------------------------------------ - -part parent ".avr8x_tiny" # t824 - desc = "ATtiny824"; - id = "t824"; - variants = - "ATtiny824: SOIC14, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny824-SSF: SOIC14, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny824-SSFR: SOIC14, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny824-SSU: SOIC14, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny824-SSUR: SOIC14, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny824-XF: TSSOP14, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny824-XFR: TSSOP14, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny824-XU: TSSOP14, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny824-XUR: TSSOP14, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 301; - n_interrupts = 30; - signature = 0x1e 0x93 0x29; - memory "eeprom" - size = 128; - page_size = 32; - offset = 0x1400; + memory "apptable" + size = 8192; + page_size = 512; + offset = 0x83e000; readsize = 256; ; - memory "flash" + memory "boot" size = 8192; - page_size = 64; - offset = 0x8000; + page_size = 512; + offset = 0x840000; readsize = 256; ; - memory "fuse5" - bitmask = 0xdd; + memory "usersig" + size = 512; + page_size = 512; + offset = 0x8e0400; + readsize = 256; ; +; - memory "lock" - initval = 0xc5; - ; +#------------------------------------------------------------ +# ATxmega256D3 +#------------------------------------------------------------ - memory "sram" - size = 1024; - offset = 0x3c00; - ; +part parent "x256c3" + desc = "ATxmega256D3"; + id = "x256d3"; + mcuid = 277; + n_interrupts = 114; + signature = 0x1e 0x98 0x44; ; #------------------------------------------------------------ -# ATtiny826 +# ATxmega256A1 #------------------------------------------------------------ -part parent ".avr8x_tiny" # t826 - desc = "ATtiny826"; - id = "t826"; - variants = - "ATtiny826: VQFN20, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny826-MF: VQFN20, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny826-MFR: VQFN20, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny826-MU: VQFN20, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny826-MUR: VQFN20, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny826-SF: SOIC20, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny826-SFR: SOIC20, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny826-SU: SOIC20, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny826-SUR: SOIC20, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny826-XF: SSOP20, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny826-XFR: SSOP20, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny826-XU: SSOP20, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny826-XUR: SSOP20, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 302; - n_interrupts = 30; - signature = 0x1e 0x93 0x28; +part parent "x256c3" + desc = "ATxmega256A1"; + id = "x256a1"; + prog_modes = PM_SPM | PM_PDI | PM_XMEGAJTAG; + mcuid = 271; - memory "eeprom" - size = 128; - page_size = 32; - offset = 0x1400; - readsize = 256; + memory "fuse0" + size = 1; + offset = 0x8f0020; ; +; - memory "flash" - size = 8192; - page_size = 64; - offset = 0x8000; - readsize = 256; - ; +#------------------------------------------------------------ +# ATxmega256A3 +#------------------------------------------------------------ - memory "fuse5" - bitmask = 0xdd; - ; +part parent "x256a1" + desc = "ATxmega256A3"; + id = "x256a3"; + mcuid = 272; + n_interrupts = 122; + signature = 0x1e 0x98 0x42; +; - memory "lock" - initval = 0xc5; - ; +#------------------------------------------------------------ +# ATxmega256A3U +#------------------------------------------------------------ - memory "sram" - size = 1024; - offset = 0x3c00; - ; +part parent "x256a1" + desc = "ATxmega256A3U"; + id = "x256a3u"; + mcuid = 275; + signature = 0x1e 0x98 0x42; + usbpid = 0x2fec; ; #------------------------------------------------------------ -# ATtiny827 +# ATxmega256A3B #------------------------------------------------------------ -part parent ".avr8x_tiny" # t827 - desc = "ATtiny827"; - id = "t827"; - variants = - "ATtiny827: VQFN24, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny827-MF: VQFN24, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny827-MFR: VQFN24, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny827-MU: VQFN24, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny827-MUR: VQFN24, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 303; - n_interrupts = 30; - signature = 0x1e 0x93 0x27; - - memory "eeprom" - size = 128; - page_size = 32; - offset = 0x1400; - readsize = 256; - ; - - memory "flash" - size = 8192; - page_size = 64; - offset = 0x8000; - readsize = 256; - ; - - memory "fuse5" - bitmask = 0xdd; - ; +part parent "x256a1" + desc = "ATxmega256A3B"; + id = "x256a3b"; + mcuid = 273; + n_interrupts = 122; + signature = 0x1e 0x98 0x43; +; - memory "lock" - initval = 0xc5; - ; +#------------------------------------------------------------ +# ATxmega256A3BU +#------------------------------------------------------------ - memory "sram" - size = 1024; - offset = 0x3c00; - ; +part parent "x256a1" + desc = "ATxmega256A3BU"; + id = "x256a3bu"; + mcuid = 274; + signature = 0x1e 0x98 0x43; + usbpid = 0x2fe2; ; #------------------------------------------------------------ -# ATtiny1624 +# ATxmega384C3 #------------------------------------------------------------ -part parent ".avr8x_tiny" # t1624 - desc = "ATtiny1624"; - id = "t1624"; - variants = - "ATtiny1624: SOIC14, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny1624-SSF: SOIC14, Fmax=20 MHz, T=[-40 C, N/A], Vcc=[1.8 V, 5.5 V]", - "ATtiny1624-SSFR: SOIC14, Fmax=20 MHz, T=[-40 C, N/A], Vcc=[1.8 V, 5.5 V]", - "ATtiny1624-SSU: SOIC14, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny1624-SSUR: SOIC14, Fmax=20 MHz, T=[-40 C, N/A], Vcc=[1.8 V, 5.5 V]", - "ATtiny1624-XF: TSSOP14, Fmax=20 MHz, T=[-40 C, N/A], Vcc=[1.8 V, 5.5 V]", - "ATtiny1624-XFR: TSSOP14, Fmax=20 MHz, T=[-40 C, N/A], Vcc=[1.8 V, 5.5 V]", - "ATtiny1624-XU: TSSOP14, Fmax=20 MHz, T=[-40 C, N/A], Vcc=[1.8 V, 5.5 V]", - "ATtiny1624-XUR: TSSOP14, Fmax=20 MHz, T=[-40 C, N/A], Vcc=[1.8 V, 5.5 V]"; - mcuid = 310; - n_interrupts = 30; - signature = 0x1e 0x94 0x2a; +part parent ".xmega" + desc = "ATxmega384C3"; + id = "x384c3"; + mcuid = 278; + n_interrupts = 127; + boot_section_size = 8192; + signature = 0x1e 0x98 0x45; + usbpid = 0x2fdb; memory "eeprom" - size = 256; + size = 4096; page_size = 32; - offset = 0x1400; + offset = 0x8c0000; readsize = 256; ; memory "flash" - size = 0x4000; - page_size = 64; - offset = 0x8000; + size = 0x62000; + page_size = 512; + offset = 0x800000; readsize = 256; ; - memory "fuse5" - bitmask = 0xdd; - ; - - memory "lock" - initval = 0xc5; - ; - - memory "sram" - size = 2048; - offset = 0x3800; + memory "application" + size = 0x60000; + page_size = 512; + offset = 0x800000; + readsize = 256; ; -; -#------------------------------------------------------------ -# ATtiny1626 -#------------------------------------------------------------ - -part parent ".avr8x_tiny" # t1626 - desc = "ATtiny1626"; - id = "t1626"; - variants = - "ATtiny1626: VQFN20, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny1626-MF: VQFN20, Fmax=20 MHz, T=[-40 C, N/A], Vcc=[1.8 V, 5.5 V]", - "ATtiny1626-MFR: VQFN20, Fmax=20 MHz, T=[-40 C, N/A], Vcc=[1.8 V, 5.5 V]", - "ATtiny1626-MU: VQFN20, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny1626-MUR: VQFN20, Fmax=20 MHz, T=[-40 C, N/A], Vcc=[1.8 V, 5.5 V]", - "ATtiny1626-SF: SOIC20, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny1626-SFR: SOIC20, Fmax=20 MHz, T=[-40 C, N/A], Vcc=[1.8 V, 5.5 V]", - "ATtiny1626-SU: SOIC20, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny1626-SUR: SOIC20, Fmax=20 MHz, T=[-40 C, N/A], Vcc=[1.8 V, 5.5 V]", - "ATtiny1626-XF: SSOP20, Fmax=20 MHz, T=[-40 C, N/A], Vcc=[1.8 V, 5.5 V]", - "ATtiny1626-XFR: SSOP20, Fmax=20 MHz, T=[-40 C, N/A], Vcc=[1.8 V, 5.5 V]", - "ATtiny1626-XU: SSOP20, Fmax=20 MHz, T=[-40 C, N/A], Vcc=[1.8 V, 5.5 V]", - "ATtiny1626-XUR: SSOP20, Fmax=20 MHz, T=[-40 C, N/A], Vcc=[1.8 V, 5.5 V]"; - mcuid = 311; - n_interrupts = 30; - signature = 0x1e 0x94 0x29; - - memory "eeprom" - size = 256; - page_size = 32; - offset = 0x1400; + memory "apptable" + size = 8192; + page_size = 512; + offset = 0x85e000; readsize = 256; ; - memory "flash" - size = 0x4000; - page_size = 64; - offset = 0x8000; + memory "boot" + size = 8192; + page_size = 512; + offset = 0x860000; readsize = 256; ; - memory "fuse5" - bitmask = 0xdd; + memory "usersig" + size = 512; + page_size = 512; + offset = 0x8e0400; + readsize = 256; ; +; - memory "lock" - initval = 0xc5; - ; +#------------------------------------------------------------ +# ATxmega384D3 +#------------------------------------------------------------ - memory "sram" - size = 2048; - offset = 0x3800; - ; +part parent "x384c3" + desc = "ATxmega384D3"; + id = "x384d3"; + mcuid = 279; + n_interrupts = 114; + signature = 0x1e 0x98 0x47; ; #------------------------------------------------------------ -# ATtiny1627 +# ATxmega8E5 #------------------------------------------------------------ -part parent ".avr8x_tiny" # t1627 - desc = "ATtiny1627"; - id = "t1627"; - variants = - "ATtiny1627: VQFN24, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny1627-MF: VQFN24, Fmax=20 MHz, T=[-40 C, N/A], Vcc=[1.8 V, 5.5 V]", - "ATtiny1627-MFR: VQFN24, Fmax=20 MHz, T=[-40 C, N/A], Vcc=[1.8 V, 5.5 V]", - "ATtiny1627-MU: VQFN24, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny1627-MUR: VQFN24, Fmax=20 MHz, T=[-40 C, N/A], Vcc=[1.8 V, 5.5 V]"; - mcuid = 312; - n_interrupts = 30; - signature = 0x1e 0x94 0x28; +part parent ".xmega" + desc = "ATxmega8E5"; + id = "x8e5"; + mcuid = 230; + n_interrupts = 43; + boot_section_size = 2048; + signature = 0x1e 0x93 0x41; memory "eeprom" - size = 256; + size = 512; page_size = 32; - offset = 0x1400; + offset = 0x8c0000; readsize = 256; ; memory "flash" - size = 0x4000; - page_size = 64; - offset = 0x8000; + size = 0x2800; + page_size = 128; + offset = 0x800000; readsize = 256; ; - memory "fuse5" - bitmask = 0xdd; + memory "application" + size = 8192; + page_size = 128; + offset = 0x800000; + readsize = 256; ; - memory "lock" - initval = 0xc5; + memory "apptable" + size = 2048; + page_size = 128; + offset = 0x801800; + readsize = 256; ; - memory "sram" + memory "boot" size = 2048; - offset = 0x3800; + page_size = 128; + offset = 0x802000; + readsize = 256; + ; + + memory "usersig" + size = 128; + page_size = 128; + offset = 0x8e0400; + readsize = 256; ; ; #------------------------------------------------------------ -# ATtiny3224 +# ATxmega16E5 #------------------------------------------------------------ -part parent ".avr8x_tiny" # t3224 - desc = "ATtiny3224"; - id = "t3224"; - variants = - "ATtiny3224: SOIC14, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny3224-SSF: SOIC14, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny3224-SSFR: SOIC14, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny3224-SSU: SOIC14, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny3224-SSUR: SOIC14, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny3224-XF: TSSOP14, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny3224-XFR: TSSOP14, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny3224-XU: TSSOP14, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny3224-XUR: TSSOP14, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 316; - n_interrupts = 30; - signature = 0x1e 0x95 0x28; +part parent ".xmega" + desc = "ATxmega16E5"; + id = "x16e5"; + mcuid = 235; + n_interrupts = 43; + boot_section_size = 4096; + signature = 0x1e 0x94 0x45; memory "eeprom" - size = 256; - page_size = 64; - offset = 0x1400; + size = 512; + page_size = 32; + offset = 0x8c0000; readsize = 256; ; memory "flash" - size = 0x8000; + size = 0x5000; page_size = 128; - offset = 0x8000; + offset = 0x800000; readsize = 256; ; - memory "fuse5" - bitmask = 0xdd; + memory "application" + size = 0x4000; + page_size = 128; + offset = 0x800000; + readsize = 256; ; - memory "lock" - initval = 0xc5; + memory "apptable" + size = 4096; + page_size = 128; + offset = 0x803000; + readsize = 256; + ; + + memory "boot" + size = 4096; + page_size = 128; + offset = 0x804000; + readsize = 256; ; - memory "sram" - size = 3072; - offset = 0x3400; + memory "usersig" + size = 128; + page_size = 128; + offset = 0x8e0400; + readsize = 256; ; ; #------------------------------------------------------------ -# ATtiny3226 +# ATxmega32E5 #------------------------------------------------------------ -part parent ".avr8x_tiny" # t3226 - desc = "ATtiny3226"; - id = "t3226"; - variants = - "ATtiny3226: VQFN20, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny3226-MF: VQFN20, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny3226-MFR: VQFN20, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny3226-MU: VQFN20, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny3226-MUR: VQFN20, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny3226-SF: SOIC20, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny3226-SFR: SOIC20, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny3226-SU: SOIC20, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny3226-SUR: SOIC20, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny3226-XF: SSOP20, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny3226-XFR: SSOP20, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny3226-XU: SSOP20, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny3226-XUR: SSOP20, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 317; - n_interrupts = 30; - signature = 0x1e 0x95 0x27; +part parent ".xmega" + desc = "ATxmega32E5"; + id = "x32e5"; + mcuid = 242; + n_interrupts = 43; + boot_section_size = 4096; + signature = 0x1e 0x95 0x4c; memory "eeprom" - size = 256; - page_size = 64; - offset = 0x1400; + size = 1024; + page_size = 32; + offset = 0x8c0000; readsize = 256; ; memory "flash" + size = 0x9000; + page_size = 128; + offset = 0x800000; + readsize = 256; + ; + + memory "application" size = 0x8000; page_size = 128; - offset = 0x8000; + offset = 0x800000; readsize = 256; ; - memory "fuse5" - bitmask = 0xdd; + memory "apptable" + size = 4096; + page_size = 128; + offset = 0x807000; + readsize = 256; ; - memory "lock" - initval = 0xc5; + memory "boot" + size = 4096; + page_size = 128; + offset = 0x808000; + readsize = 256; ; - memory "sram" - size = 3072; - offset = 0x3400; + memory "usersig" + size = 128; + page_size = 128; + offset = 0x8e0400; + readsize = 256; ; ; #------------------------------------------------------------ -# ATtiny3227 +# AVR32UC3A0512 #------------------------------------------------------------ -part parent ".avr8x_tiny" # t3227 - desc = "ATtiny3227"; - id = "t3227"; - variants = - "ATtiny3227: VQFN24, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny3227-MF: VQFN24, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny3227-MFR: VQFN24, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny3227-MU: VQFN24, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATtiny3227-MUR: VQFN24, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 318; - n_interrupts = 30; - signature = 0x1e 0x95 0x26; - - memory "eeprom" - size = 256; - page_size = 64; - offset = 0x1400; - readsize = 256; - ; +part + desc = "AT32UC3A0512"; + id = "uc3a0512"; + prog_modes = PM_AVR32JTAG | PM_aWire; + signature = 0xed 0xc0 0x3f; memory "flash" - size = 0x8000; - page_size = 128; - offset = 0x8000; - readsize = 256; - ; - - memory "fuse5" - bitmask = 0xdd; + paged = yes; + size = 0x80000; # could be set dynamicly + page_size = 512; # bytes + num_pages = 1024; # could be set dynamicly + offset = 0x80000000; + readsize = 512; # bytes ; +; - memory "lock" - initval = 0xc5; - ; +#------------------------------------------------------------ +# deprecated, use 'uc3a0512' +#------------------------------------------------------------ - memory "sram" - size = 3072; - offset = 0x3400; - ; +part parent "uc3a0512" + desc = "deprecated, use 'uc3a0512'"; + id = "ucr2"; ; #------------------------------------------------------------ -# ATmega808 +# ATtiny1634 #------------------------------------------------------------ -part parent ".avr8x_mega" # m808 - desc = "ATmega808"; - id = "m808"; - variants = - "ATmega808-AF: TQFP32, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATmega808-AFR: TQFN32, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATmega808-AU: TQFP32, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATmega808-AUR: TQFP32, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATmega808-MF: VQFN32, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATmega808-MFR: QFN32, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATmega808-MU: VQFN32, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATmega808-MUR: VQFN32, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATmega808-XF: SSOP28, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATmega808-XFR: SSOP28, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATmega808-XU: SSOP28, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATmega808-XUR: SSOP28, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 319; - archnum = 103; - n_interrupts = 36; - signature = 0x1e 0x93 0x26; +part + desc = "ATtiny1634"; + id = "t1634"; + prog_modes = PM_SPM | PM_ISP | PM_HVPP | PM_debugWIRE; + mcuid = 40; + n_interrupts = 28; + n_page_erase = 4; + stk500_devcode = 0x86; + chip_erase_delay = 9000; + pagel = 0xb3; + bs2 = 0xb1; +# avr910_devcode = 0x??; + signature = 0x1e 0x94 0x12; + reset = io; + timeout = 200; + stabdelay = 100; + cmdexedelay = 25; + synchloops = 32; + pollindex = 3; + pollvalue = 0x53; + predelay = 1; + postdelay = 1; + pollmethod = 1; + pp_controlstack = + 0x0e, 0x1e, 0x0e, 0x1e, 0x2e, 0x3e, 0x2e, 0x3e, + 0x4e, 0x5e, 0x4e, 0x5e, 0x6e, 0x7e, 0x6e, 0x7e, + 0x26, 0x36, 0x66, 0x76, 0x2a, 0x3a, 0x6a, 0x7a, + 0x2e, 0xfd, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00; + flash_instr = 0xb6, 0x01, 0x11; + eeprom_instr = + 0xbd, 0xf2, 0xbd, 0xe1, 0xbb, 0xcf, 0xb4, 0x00, + 0xbe, 0x01, 0xb6, 0x01, 0xbc, 0x00, 0xbb, 0xbf, + 0x99, 0xf9, 0xbb, 0xaf; + hventerstabdelay = 100; + togglevtg = 1; + poweroffdelay = 15; + resetdelayms = 1; + hvleavestabdelay = 15; + resetdelay = 15; + chiperasepolltimeout = 10; + programfusepolltimeout = 5; + programlockpolltimeout = 5; + spmcr = 0x57; + eecr = 0x3c; + chip_erase = "1010.1100--100x.xxxx--xxxx.xxxx--xxxx.xxxx"; + pgm_enable = "1010.1100--0101.0011--xxxx.xxxx--xxxx.xxxx"; memory "eeprom" size = 256; - page_size = 32; - offset = 0x1400; + page_size = 4; + min_write_delay = 3600; + max_write_delay = 3600; + readback = 0xff 0xff; + mode = 65; + delay = 5; + blocksize = 4; readsize = 256; + read = "1010.0000--000x.xxxa--aaaa.aaaa--oooo.oooo"; + write = "1100.0000--000x.xxxa--aaaa.aaaa--iiii.iiii"; + loadpage_lo = "1100.0001--0000.0000--0000.00aa--iiii.iiii"; + writepage = "1100.0010--00xx.xxxa--aaaa.aa00--xxxx.xxxx"; ; memory "flash" - size = 8192; - page_size = 64; - offset = 0x4000; + paged = yes; + size = 0x4000; + page_size = 32; + num_pages = 512; + min_write_delay = 4500; + max_write_delay = 4500; + readback = 0xff 0xff; + mode = 65; + delay = 6; + blocksize = 128; readsize = 256; + read_lo = "0010.0000--00aa.aaaa--aaaa.aaaa--oooo.oooo"; + read_hi = "0010.1000--00aa.aaaa--aaaa.aaaa--oooo.oooo"; + loadpage_lo = "0100.0000--000x.xxxx--xxxx.aaaa--iiii.iiii"; + loadpage_hi = "0100.1000--000x.xxxx--xxxx.aaaa--iiii.iiii"; + writepage = "0100.1100--00aa.aaaa--aaaa.xxxx--xxxx.xxxx"; + ; + + memory "lfuse" + size = 1; + min_write_delay = 4500; + max_write_delay = 4500; + read = "0101.0000--0000.0000--xxxx.xxxx--oooo.oooo"; + write = "1010.1100--1010.0000--xxxx.xxxx--iiii.iiii"; + ; + + memory "hfuse" + size = 1; + min_write_delay = 4500; + max_write_delay = 4500; + read = "0101.1000--0000.1000--xxxx.xxxx--oooo.oooo"; + write = "1010.1100--1010.1000--xxxx.xxxx--iiii.iiii"; + ; + + memory "efuse" + size = 1; + min_write_delay = 4500; + max_write_delay = 4500; + read = "0101.0000--0000.1000--xxxx.xxxx--oooo.oooo"; + write = "1010.1100--1010.0100--xxxx.xxxx--xxxi.iiii"; ; memory "lock" - initval = 0xc5; + size = 1; + min_write_delay = 4500; + max_write_delay = 4500; + read = "0101.1000--0000.0000--xxxx.xxxx--oooo.oooo"; + write = "1010.1100--111x.xxxx--xxxx.xxxx--1111.11ii"; ; - memory "userrow" - size = 32; - page_size = 32; + memory "signature" + size = 3; + read = "0011.0000--000x.xxxx--xxxx.xxaa--oooo.oooo"; ; - memory "sram" - size = 1024; - offset = 0x3c00; + memory "calibration" + size = 1; + read = "0011.1000--000x.xxxx--0000.0000--oooo.oooo"; ; ; #------------------------------------------------------------ -# ATmega809 +# ATtiny1634R #------------------------------------------------------------ -part parent ".avr8x_mega" # m809 - desc = "ATmega809"; - id = "m809"; - variants = - "ATmega809-AF: TQFP48, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATmega809-AFR: TQFP48, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATmega809-AU: TQFP48, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATmega809-AUR: TQFP48, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATmega809-MF: VQFN48, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATmega809-MFR: QFN48, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATmega809-MU: VQFN48, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATmega809-MUR: VQFN48, Fmax=N/A, T=[N/A, N/A], Vcc=[N/A, N/A]"; - mcuid = 320; - archnum = 103; - n_interrupts = 40; - signature = 0x1e 0x93 0x2a; +part parent "t1634" + desc = "ATtiny1634R"; + id = "t1634r"; + mcuid = 41; +; - memory "eeprom" - size = 256; - page_size = 32; - offset = 0x1400; - readsize = 256; - ; +#------------------------------------------------------------ +# Common values for reduced core tinys (4/5/9/10/20/40) +#------------------------------------------------------------ - memory "flash" - size = 8192; - page_size = 64; - offset = 0x4000; - readsize = 256; +part + desc = "Common values for reduced core tinys"; + id = ".reduced_core_tiny"; + prog_modes = PM_TPI; + + memory "fuse" + size = 1; + page_size = 16; + offset = 0x3f40; + blocksize = 4; ; - memory "lock" - initval = 0xc5; + memory "lockbits" + size = 1; + page_size = 16; + offset = 0x3f00; ; - memory "userrow" - size = 32; - page_size = 32; + memory "signature" + size = 3; + page_size = 16; + offset = 0x3fc0; ; - memory "sram" - size = 1024; - offset = 0x3c00; + memory "calibration" + size = 1; + page_size = 16; + offset = 0x3f80; ; ; #------------------------------------------------------------ -# ATmega1608 +# ATtiny4 #------------------------------------------------------------ -part parent ".avr8x_mega" # m1608 - desc = "ATmega1608"; - id = "m1608"; - variants = - "ATmega1608-AF: TQFP32, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATmega1608-AFR: TQFP32, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATmega1608-AU: TQFP32, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega1608-AUR: TQFP32, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega1608-MF: VQFN32, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATmega1608-MFR: VQFN32, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATmega1608-MU: VQFN32, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega1608-MUR: VQFN32, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega1608-XF: SSOP28, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATmega1608-XFR: SSOP28, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATmega1608-XU: SSOP28, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega1608-XUR: SSOP28, Fmax=N/A, T=[N/A, N/A], Vcc=[N/A, N/A]"; - mcuid = 321; - archnum = 103; - n_interrupts = 36; - signature = 0x1e 0x94 0x27; - - memory "eeprom" - size = 256; - page_size = 32; - offset = 0x1400; - readsize = 256; - ; +part parent ".reduced_core_tiny" + desc = "ATtiny4"; + id = "t4"; + mcuid = 0; + n_interrupts = 10; + signature = 0x1e 0x8f 0x0a; memory "flash" - size = 0x4000; - page_size = 64; + size = 512; + page_size = 16; offset = 0x4000; - readsize = 256; - ; - - memory "lock" - initval = 0xc5; + blocksize = 128; ; +; - memory "userrow" - size = 32; - page_size = 32; - ; +#------------------------------------------------------------ +# ATtiny5 +#------------------------------------------------------------ - memory "sram" - size = 2048; - offset = 0x3800; - ; +part parent "t4" + desc = "ATtiny5"; + id = "t5"; + mcuid = 1; + n_interrupts = 11; + signature = 0x1e 0x8f 0x09; ; #------------------------------------------------------------ -# ATmega1609 +# ATtiny9 #------------------------------------------------------------ -part parent ".avr8x_mega" # m1609 - desc = "ATmega1609"; - id = "m1609"; - variants = - "ATmega1609-AF: TQFP48, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATmega1609-AFR: TQFP48, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATmega1609-AU: TQFP48, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega1609-AUR: TQFP48, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega1609-MF: VQFN48, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATmega1609-MFR: VQFN48, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATmega1609-MU: VQFN48, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATmega1609-MUR: VQFN48, Fmax=N/A, T=[N/A, N/A], Vcc=[N/A, N/A]"; - mcuid = 322; - archnum = 103; - n_interrupts = 40; - signature = 0x1e 0x94 0x26; - - memory "eeprom" - size = 256; - page_size = 32; - offset = 0x1400; - readsize = 256; - ; +part parent ".reduced_core_tiny" + desc = "ATtiny9"; + id = "t9"; + mcuid = 2; + n_interrupts = 10; + signature = 0x1e 0x90 0x08; memory "flash" - size = 0x4000; - page_size = 64; + size = 1024; + page_size = 16; offset = 0x4000; - readsize = 256; - ; - - memory "lock" - initval = 0xc5; + blocksize = 128; ; +; - memory "userrow" - size = 32; - page_size = 32; - ; +#------------------------------------------------------------ +# ATtiny10 +#------------------------------------------------------------ - memory "sram" - size = 2048; - offset = 0x3800; - ; +part parent "t9" + desc = "ATtiny10"; + id = "t10"; + mcuid = 3; + n_interrupts = 11; + signature = 0x1e 0x90 0x03; ; #------------------------------------------------------------ -# ATmega3208 +# ATtiny20 #------------------------------------------------------------ -part parent ".avr8x_mega" # m3208 - desc = "ATmega3208"; - id = "m3208"; - variants = - "ATmega3208-AF: TQFP32, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATmega3208-AFR: TQFP32, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATmega3208-AU: TQFP32, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega3208-AUR: TQFP32, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega3208-MF: VQFN32, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATmega3208-MFR: VQFN32, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATmega3208-MU: VQFN32, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega3208-MUR: VQFN32, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega3208-XF: SSOP28, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATmega3208-XFR: SSOP32, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATmega3208-XU: SSOP28, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega3208-XUR: SSOP28, Fmax=N/A, T=[N/A, N/A], Vcc=[N/A, N/A]"; - mcuid = 323; - archnum = 103; - n_interrupts = 36; - signature = 0x1e 0x95 0x30; - - memory "eeprom" - size = 256; - page_size = 64; - offset = 0x1400; - readsize = 256; - ; +part parent ".reduced_core_tiny" + desc = "ATtiny20"; + id = "t20"; + mcuid = 4; + n_interrupts = 17; + signature = 0x1e 0x91 0x0f; memory "flash" - size = 0x8000; - page_size = 128; + size = 2048; + page_size = 16; + n_word_writes = 2; offset = 0x4000; - readsize = 256; - ; - - memory "lock" - initval = 0xc5; - ; - - memory "prodsig" - size = 128; - page_size = 128; - readsize = 128; + blocksize = 128; ; - memory "sram" - size = 4096; - offset = 0x3000; + memory "fuse" + n_word_writes = 2; ; ; #------------------------------------------------------------ -# ATmega3209 +# ATtiny40 #------------------------------------------------------------ -part parent ".avr8x_mega" # m3209 - desc = "ATmega3209"; - id = "m3209"; - variants = - "ATmega3209-AF: TQFP48, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATmega3209-AFR: TQFP48, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATmega3209-AU: TQFP48, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega3209-AUR: TQFP48, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega3209-MF: VQFN48, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATmega3209-MFR: VQFN48, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATmega3209-MU: VQFN48, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega3209-MUR: VQFN48, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 324; - archnum = 103; - n_interrupts = 40; - signature = 0x1e 0x95 0x31; - - memory "eeprom" - size = 256; - page_size = 64; - offset = 0x1400; - readsize = 256; - ; +part parent ".reduced_core_tiny" + desc = "ATtiny40"; + id = "t40"; + mcuid = 5; + n_interrupts = 18; + signature = 0x1e 0x92 0x0e; memory "flash" - size = 0x8000; - page_size = 128; + size = 4096; + page_size = 64; + n_word_writes = 4; offset = 0x4000; - readsize = 256; - ; - - memory "lock" - initval = 0xc5; - ; - - memory "prodsig" - size = 128; - page_size = 128; - readsize = 128; + blocksize = 128; ; - memory "sram" - size = 4096; - offset = 0x3000; + memory "fuse" + n_word_writes = 4; ; ; #------------------------------------------------------------ -# ATmega4808 +# ATtiny102 #------------------------------------------------------------ -part parent ".avr8x_mega" # m4808 - desc = "ATmega4808"; - id = "m4808"; - variants = - "ATmega4808-AF: TQFP32, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATmega4808-AFR: TQFP32, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATmega4808-AU: TQFP32, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega4808-AUR: TQFP32, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega4808-MF: VQFN32, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATmega4808-MFR: VQFN32, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATmega4808-MU: VQFN32, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega4808-MUR: VQFN32, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega4808-XF: SSOP28, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATmega4808-XFR: SSOP28, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATmega4808-XU: SSOP28, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega4808-XUR: SSOP28, Fmax=N/A, T=[N/A, N/A], Vcc=[N/A, N/A]"; - mcuid = 325; - archnum = 103; - n_interrupts = 36; - signature = 0x1e 0x96 0x50; - - memory "eeprom" - size = 256; - page_size = 64; - offset = 0x1400; - readsize = 256; - ; +part parent ".reduced_core_tiny" + desc = "ATtiny102"; + id = "t102"; + mcuid = 6; + n_interrupts = 16; + signature = 0x1e 0x90 0x0c; memory "flash" - size = 0xc000; - page_size = 128; + size = 1024; + page_size = 16; offset = 0x4000; - readsize = 256; + blocksize = 128; ; - memory "lock" - initval = 0xc5; + memory "sigrow" + size = 16; + page_size = 16; + offset = 0x3fc6; ; +; - memory "prodsig" - size = 128; - page_size = 128; - readsize = 128; +#------------------------------------------------------------ +# ATtiny104 +#------------------------------------------------------------ + +part parent ".reduced_core_tiny" + desc = "ATtiny104"; + id = "t104"; + mcuid = 7; + n_interrupts = 16; + signature = 0x1e 0x90 0x0b; + + memory "flash" + size = 1024; + page_size = 16; + offset = 0x4000; + blocksize = 128; ; - memory "sram" - size = 6144; - offset = 0x2800; + memory "sigrow" + size = 16; + page_size = 16; + offset = 0x3fc6; ; ; #------------------------------------------------------------ -# ATmega4809 +# ATmega406 #------------------------------------------------------------ -part parent ".avr8x_mega" # m4809 - desc = "ATmega4809"; - id = "m4809"; - variants = - "ATmega4809-AF: TQFP48, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATmega4809-AFR: TQFP48, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATmega4809-AU: TQFP48, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega4809-AUR: TQFP48, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega4809-MF: VQFN48, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATmega4809-MFR: VQFN48, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "ATmega4809-MU: VQFN48, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega4809-MUR: VQFN48, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "ATmega4809-PF: PDIP40, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 326; - archnum = 103; - n_interrupts = 40; - signature = 0x1e 0x96 0x51; +part + desc = "ATmega406"; + id = "m406"; + prog_modes = PM_SPM | PM_HVPP | PM_JTAG; + mcuid = 125; + n_interrupts = 23; + n_boot_sections = 4; + boot_section_size = 512; + # STK500 parameters (parallel programming IO lines) + pagel = 0xa7; + bs2 = 0xa0; + signature = 0x1e 0x95 0x07; + reset = io; + serial = no; + # STK500v2 HV programming parameters, from XML + pp_controlstack = + 0x0e, 0x1e, 0x0f, 0x1f, 0x2e, 0x3e, 0x2f, 0x3f, + 0x4e, 0x5e, 0x4f, 0x5f, 0x6e, 0x7e, 0x6f, 0x7f, + 0x66, 0x76, 0x67, 0x77, 0x6a, 0x7a, 0x6b, 0x7b, + 0xbe, 0xfd, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00; + idr = 0x51; + spmcr = 0x57; + eecr = 0x3f; memory "eeprom" - size = 256; - page_size = 64; - offset = 0x1400; - readsize = 256; + size = 512; + page_size = 4; + num_pages = 128; + blocksize = 4; + readsize = 4; ; memory "flash" - size = 0xc000; + paged = yes; + size = 0xa000; page_size = 128; - offset = 0x4000; - readsize = 256; + num_pages = 320; + blocksize = 128; + readsize = 128; ; - memory "lock" - initval = 0xc5; + memory "lfuse" + size = 1; ; - memory "prodsig" - size = 128; - page_size = 128; - readsize = 128; + memory "hfuse" + size = 1; + ; + + memory "lockbits" + size = 1; ; - memory "sram" - size = 6144; - offset = 0x2800; + memory "signature" + size = 3; ; ; #------------------------------------------------------------ -# AVR-DA/DB family common values +# AVR8X family common values #------------------------------------------------------------ -part # .avr-da-db - desc = "AVR-DA/DB family common values"; - id = ".avr-da-db"; - family_id = "AVR "; +part + desc = "AVR8X family common values"; + id = ".avr8x"; prog_modes = PM_SPM | PM_UPDI; n_boot_sections = 1; - boot_section_size = 512; - # Dedicated UPDI pin, no HV - hvupdi_variant = 1; nvm_base = 0x1000; ocd_base = 0x0f80; - syscfg_base = 0x0f00; - factory_fcpu = 4000000; - - memory "fuses" - size = 16; - offset = 0x1050; - readsize = 1; - ; memory "fuse0" size = 1; - initval = 0x00; - offset = 0x1050; + offset = 0x1280; readsize = 1; ; @@ -20953,8 +13475,7 @@ part # .avr-da-db memory "fuse1" size = 1; - initval = 0x00; - offset = 0x1051; + offset = 0x1281; readsize = 1; ; @@ -20962,23 +13483,29 @@ part # .avr-da-db alias "fuse1"; ; - memory "fuse2" + memory "fuse2" + size = 1; + offset = 0x1282; + readsize = 1; + ; + + memory "osccfg" + alias "fuse2"; + ; + + memory "fuse4" size = 1; - initval = 0x00; - bitmask = 0x07; - offset = 0x1052; + offset = 0x1284; readsize = 1; ; - memory "osccfg" - alias "fuse2"; + memory "tcd0cfg" + alias "fuse4"; ; memory "fuse5" size = 1; - initval = 0xc0; - bitmask = 0xed; - offset = 0x1055; + offset = 0x1285; readsize = 1; ; @@ -20988,9 +13515,7 @@ part # .avr-da-db memory "fuse6" size = 1; - initval = 0x08; - bitmask = 0x1f; - offset = 0x1056; + offset = 0x1286; readsize = 1; ; @@ -21000,49 +13525,49 @@ part # .avr-da-db memory "fuse7" size = 1; - initval = 0x00; - offset = 0x1057; + offset = 0x1287; readsize = 1; ; - memory "codesize" + memory "append" alias "fuse7"; ; - memory "append" + memory "codesize" alias "fuse7"; ; memory "fuse8" size = 1; - initval = 0x00; - offset = 0x1058; + offset = 0x1288; readsize = 1; ; - memory "bootsize" + memory "bootend" alias "fuse8"; ; - memory "bootend" + memory "bootsize" alias "fuse8"; ; - memory "lock" - size = 4; - offset = 0x1040; - readsize = 4; + memory "fuses" + size = 9; + page_size = 10; + offset = 0x1280; + readsize = 10; ; - memory "prodsig" - size = 128; - page_size = 128; - offset = 0x1100; - readsize = 128; + memory "lock" + size = 1; + offset = 0x128a; + readsize = 1; ; - memory "sigrow" - alias "prodsig"; + memory "tempsense" + size = 2; + offset = 0x1120; + readsize = 1; ; memory "signature" @@ -21051,1393 +13576,1276 @@ part # .avr-da-db readsize = 3; ; - memory "tempsense" - size = 4; + memory "prodsig" + size = 61; + page_size = 61; + offset = 0x1103; + readsize = 61; + ; + + memory "sernum" + size = 10; offset = 0x1104; readsize = 1; ; - memory "sernum" - size = 16; - offset = 0x1110; + memory "osccal16" + size = 2; + offset = 0x1118; + readsize = 1; + ; + + memory "osccal20" + size = 2; + offset = 0x111a; + readsize = 1; + ; + + memory "osc16err" + size = 2; + offset = 0x1122; readsize = 1; ; + memory "osc20err" + size = 2; + offset = 0x1124; + readsize = 1; + ; + + memory "data" + # SRAM, only used to supply the offset + offset = 0x1000000; + ; +; + +#------------------------------------------------------------ +# AVR8X tiny family common values +#------------------------------------------------------------ + +part parent ".avr8x" + desc = "AVR8X tiny family common values"; + id = ".avr8x_tiny"; + family_id = "tinyAVR"; + # Shared UPDI pin, HV on UPDI pin + hvupdi_variant = 0; + memory "userrow" size = 32; page_size = 32; - offset = 0x1080; - readsize = 32; + offset = 0x1300; + readsize = 256; + ; + + memory "usersig" + alias "userrow"; + ; +; + +#------------------------------------------------------------ +# AVR8X mega family common values +#------------------------------------------------------------ + +part parent ".avr8x" + desc = "AVR8X mega family common values"; + id = ".avr8x_mega"; + family_id = "megaAVR"; + # Dedicated UPDI pin, no HV + hvupdi_variant = 1; + + memory "userrow" + size = 64; + page_size = 64; + offset = 0x1300; + readsize = 256; ; memory "usersig" alias "userrow"; ; +; - memory "io" - size = 4160; - readsize = 1; +#------------------------------------------------------------ +# ATtiny202 +#------------------------------------------------------------ + +part parent ".avr8x_tiny" + desc = "ATtiny202"; + id = "t202"; + mcuid = 280; + n_interrupts = 26; + signature = 0x1e 0x91 0x23; + + memory "eeprom" + size = 64; + page_size = 32; + offset = 0x1400; + readsize = 256; + ; + + memory "flash" + size = 2048; + page_size = 64; + offset = 0x8000; + readsize = 256; + ; +; + +#------------------------------------------------------------ +# ATtiny204 +#------------------------------------------------------------ + +part parent ".avr8x_tiny" + desc = "ATtiny204"; + id = "t204"; + mcuid = 281; + n_interrupts = 26; + signature = 0x1e 0x91 0x22; + + memory "eeprom" + size = 64; + page_size = 32; + offset = 0x1400; + readsize = 256; + ; + + memory "flash" + size = 2048; + page_size = 64; + offset = 0x8000; + readsize = 256; + ; +; + +#------------------------------------------------------------ +# ATtiny402 +#------------------------------------------------------------ + +part parent ".avr8x_tiny" + desc = "ATtiny402"; + id = "t402"; + mcuid = 284; + n_interrupts = 26; + signature = 0x1e 0x92 0x27; + + memory "eeprom" + size = 128; + page_size = 32; + offset = 0x1400; + readsize = 256; + ; + + memory "flash" + size = 4096; + page_size = 64; + offset = 0x8000; + readsize = 256; + ; +; + +#------------------------------------------------------------ +# ATtiny404 +#------------------------------------------------------------ + +part parent ".avr8x_tiny" + desc = "ATtiny404"; + id = "t404"; + mcuid = 285; + n_interrupts = 26; + signature = 0x1e 0x92 0x26; + + memory "eeprom" + size = 128; + page_size = 32; + offset = 0x1400; + readsize = 256; + ; + + memory "flash" + size = 4096; + page_size = 64; + offset = 0x8000; + readsize = 256; + ; +; + +#------------------------------------------------------------ +# ATtiny406 +#------------------------------------------------------------ + +part parent ".avr8x_tiny" + desc = "ATtiny406"; + id = "t406"; + mcuid = 286; + n_interrupts = 26; + signature = 0x1e 0x92 0x25; + + memory "eeprom" + size = 128; + page_size = 32; + offset = 0x1400; + readsize = 256; + ; + + memory "flash" + size = 4096; + page_size = 64; + offset = 0x8000; + readsize = 256; + ; +; + +#------------------------------------------------------------ +# ATtiny804 +#------------------------------------------------------------ + +part parent ".avr8x_tiny" + desc = "ATtiny804"; + id = "t804"; + mcuid = 295; + n_interrupts = 31; + signature = 0x1e 0x93 0x25; + + memory "eeprom" + size = 128; + page_size = 32; + offset = 0x1400; + readsize = 256; ; - memory "sib" - size = 32; - readsize = 1; + memory "flash" + size = 8192; + page_size = 64; + offset = 0x8000; + readsize = 256; ; ; #------------------------------------------------------------ -# AVR32DA28 +# ATtiny806 #------------------------------------------------------------ -part parent ".avr-da-db" # 32da28 - desc = "AVR32DA28"; - id = "32da28"; - variants = - "AVR32DA28-E/SO: SOIC28, Fmax=24 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "AVR32DA28-E/SP: SPDIP28, Fmax=24 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "AVR32DA28-E/SS: SSOP28, Fmax=24 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "AVR32DA28-I/SO: SOIC28, Fmax=24 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "AVR32DA28-I/SP: SPDIP28, Fmax=24 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "AVR32DA28-I/SS: SSOP28, Fmax=24 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "AVR32DA28-SPDIP/SSOP/SOIC: DIP28, Fmax=24 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "AVR32DA28T-E/SO: SOIC28, Fmax=24 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "AVR32DA28T-E/SS: SSOP28, Fmax=24 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "AVR32DA28T-I/SO: SOIC28, Fmax=24 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "AVR32DA28T-I/SS: SSOP28, Fmax=24 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]"; - family_id = " AVR"; - mcuid = 338; - n_interrupts = 41; - signature = 0x1e 0x95 0x34; +part parent ".avr8x_tiny" + desc = "ATtiny806"; + id = "t806"; + mcuid = 296; + n_interrupts = 31; + signature = 0x1e 0x93 0x24; memory "eeprom" - size = 512; + size = 128; + page_size = 32; offset = 0x1400; readsize = 256; ; memory "flash" - size = 0x8000; - page_size = 512; - offset = 0x800000; + size = 8192; + page_size = 64; + offset = 0x8000; readsize = 256; ; - - memory "fuse6" - initval = 0x00; - bitmask = 0x07; - ; - - memory "lock" - initval = 0x5cc5c55c; - ; - - memory "sram" - size = 4096; - offset = 0x7000; - ; ; #------------------------------------------------------------ -# AVR32DA32 +# ATtiny807 #------------------------------------------------------------ -part parent ".avr-da-db" # 32da32 - desc = "AVR32DA32"; - id = "32da32"; - variants = - "AVR32DA32-E/PT: TQFP32, Fmax=24 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "AVR32DA32-E/RXB: VQFN32, Fmax=24 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "AVR32DA32-I/PT: TQFP32, Fmax=24 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "AVR32DA32-I/RXB: VQFN32, Fmax=24 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "AVR32DA32-VQFN/TQFP: QFP32, Fmax=24 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "AVR32DA32T-E/PT: TQFP32, Fmax=24 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "AVR32DA32T-E/RXB: VQFN32, Fmax=24 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "AVR32DA32T-I/PT: TQFP32, Fmax=24 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "AVR32DA32T-I/RXB: VQFN32, Fmax=24 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]"; - family_id = " AVR"; - mcuid = 342; - n_interrupts = 44; - signature = 0x1e 0x95 0x33; +part parent ".avr8x_tiny" + desc = "ATtiny807"; + id = "t807"; + mcuid = 297; + n_interrupts = 31; + signature = 0x1e 0x93 0x23; memory "eeprom" - size = 512; + size = 128; + page_size = 32; offset = 0x1400; readsize = 256; ; memory "flash" - size = 0x8000; - page_size = 512; - offset = 0x800000; + size = 8192; + page_size = 64; + offset = 0x8000; readsize = 256; ; +; - memory "fuse6" - initval = 0x00; - bitmask = 0x07; - ; +#------------------------------------------------------------ +# ATtiny1604 +#------------------------------------------------------------ - memory "lock" - initval = 0x5cc5c55c; +part parent ".avr8x_tiny" + desc = "ATtiny1604"; + id = "t1604"; + mcuid = 304; + n_interrupts = 31; + signature = 0x1e 0x94 0x25; + + memory "eeprom" + size = 256; + page_size = 32; + offset = 0x1400; + readsize = 256; ; - memory "sram" - size = 4096; - offset = 0x7000; + memory "flash" + size = 0x4000; + page_size = 64; + offset = 0x8000; + readsize = 256; ; ; #------------------------------------------------------------ -# AVR32DA48 +# ATtiny1606 #------------------------------------------------------------ -part parent ".avr-da-db" # 32da48 - desc = "AVR32DA48"; - id = "32da48"; - variants = - "AVR32DA48-E/6LX: VQFN48, Fmax=24 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "AVR32DA48-E/PT: TQFP48, Fmax=24 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "AVR32DA48-I/6LX: VQFN48, Fmax=24 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "AVR32DA48-I/PT: TQFP48, Fmax=24 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "AVR32DA48-VQFN/TQFP: QFP48, Fmax=24 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "AVR32DA48T-E/6LX: VQFN48, Fmax=24 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "AVR32DA48T-E/PT: TQFP48, Fmax=24 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "AVR32DA48T-I/6LX: VQFN48, Fmax=24 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "AVR32DA48T-I/PT: TQFP48, Fmax=24 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]"; - family_id = " AVR"; - mcuid = 346; - n_interrupts = 61; - signature = 0x1e 0x95 0x32; +part parent ".avr8x_tiny" + desc = "ATtiny1606"; + id = "t1606"; + mcuid = 305; + n_interrupts = 31; + signature = 0x1e 0x94 0x24; memory "eeprom" - size = 512; + size = 256; + page_size = 32; offset = 0x1400; readsize = 256; ; memory "flash" - size = 0x8000; - page_size = 512; - offset = 0x800000; + size = 0x4000; + page_size = 64; + offset = 0x8000; readsize = 256; ; +; - memory "fuse6" - initval = 0x00; - bitmask = 0x07; - ; +#------------------------------------------------------------ +# ATtiny1607 +#------------------------------------------------------------ - memory "lock" - initval = 0x5cc5c55c; +part parent ".avr8x_tiny" + desc = "ATtiny1607"; + id = "t1607"; + mcuid = 306; + n_interrupts = 31; + signature = 0x1e 0x94 0x23; + + memory "eeprom" + size = 256; + page_size = 32; + offset = 0x1400; + readsize = 256; ; - memory "sram" - size = 4096; - offset = 0x7000; + memory "flash" + size = 0x4000; + page_size = 64; + offset = 0x8000; + readsize = 256; ; ; #------------------------------------------------------------ -# AVR64DA28 +# ATtiny212 #------------------------------------------------------------ -part parent ".avr-da-db" # 64da28 - desc = "AVR64DA28"; - id = "64da28"; - variants = - "AVR64DA28-E/SO: SOIC28, Fmax=24 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "AVR64DA28-E/SP: SPDIP28, Fmax=N/A, T=[N/A, N/A], Vcc=[N/A, N/A]", - "AVR64DA28-E/SS: SSOP28, Fmax=24 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "AVR64DA28-I/SO: SOIC28, Fmax=24 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "AVR64DA28-I/SP: SPDIP28, Fmax=24 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "AVR64DA28-I/SS: SSOP28, Fmax=24 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "AVR64DA28-SPDIP/SSOP/SOIC: DIP28, Fmax=24 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "AVR64DA28T-E/SO: SOIC28, Fmax=24 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "AVR64DA28T-E/SS: SSOP28, Fmax=24 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "AVR64DA28T-I/SO: SOIC28, Fmax=24 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "AVR64DA28T-I/SS: SSOP28, Fmax=24 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]"; - family_id = " AVR"; - mcuid = 351; - n_interrupts = 41; - signature = 0x1e 0x96 0x15; +part parent ".avr8x_tiny" + desc = "ATtiny212"; + id = "t212"; + mcuid = 282; + n_interrupts = 26; + signature = 0x1e 0x91 0x21; memory "eeprom" - size = 512; + size = 64; + page_size = 32; offset = 0x1400; readsize = 256; ; memory "flash" - size = 0x10000; - page_size = 512; - offset = 0x800000; + size = 2048; + page_size = 64; + offset = 0x8000; readsize = 256; ; +; - memory "fuse6" - initval = 0x00; - bitmask = 0x07; - ; +#------------------------------------------------------------ +# ATtiny214 +#------------------------------------------------------------ - memory "lock" - initval = 0x5cc5c55c; +part parent ".avr8x_tiny" + desc = "ATtiny214"; + id = "t214"; + mcuid = 283; + n_interrupts = 26; + signature = 0x1e 0x91 0x20; + + memory "eeprom" + size = 64; + page_size = 32; + offset = 0x1400; + readsize = 256; ; - memory "sram" - size = 8192; - offset = 0x6000; + memory "flash" + size = 2048; + page_size = 64; + offset = 0x8000; + readsize = 256; ; ; #------------------------------------------------------------ -# AVR64DA32 +# ATtiny412 #------------------------------------------------------------ -part parent ".avr-da-db" # 64da32 - desc = "AVR64DA32"; - id = "64da32"; - variants = - "AVR64DA32-E/PT: TQFP32, Fmax=24 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "AVR64DA32-E/RXB: VQFN32, Fmax=24 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "AVR64DA32-I/PT: TQFP32, Fmax=24 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "AVR64DA32-I/RXB: VQFN32, Fmax=24 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "AVR64DA32-VQFN/TQFP: QFP32, Fmax=24 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "AVR64DA32T-E/PT: TQFP32, Fmax=24 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "AVR64DA32T-E/RXB: VQFN32, Fmax=24 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "AVR64DA32T-I/PT: TQFP32, Fmax=24 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "AVR64DA32T-I/RXB: VQFN32, Fmax=24 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]"; - family_id = " AVR"; - mcuid = 355; - n_interrupts = 44; - signature = 0x1e 0x96 0x14; +part parent ".avr8x_tiny" + desc = "ATtiny412"; + id = "t412"; + mcuid = 287; + n_interrupts = 26; + signature = 0x1e 0x92 0x23; memory "eeprom" - size = 512; + size = 128; + page_size = 32; offset = 0x1400; readsize = 256; ; memory "flash" - size = 0x10000; - page_size = 512; - offset = 0x800000; + size = 4096; + page_size = 64; + offset = 0x8000; readsize = 256; ; +; - memory "fuse6" - initval = 0x00; - bitmask = 0x07; - ; +#------------------------------------------------------------ +# ATtiny414 +#------------------------------------------------------------ - memory "lock" - initval = 0x5cc5c55c; +part parent ".avr8x_tiny" + desc = "ATtiny414"; + id = "t414"; + mcuid = 288; + n_interrupts = 26; + signature = 0x1e 0x92 0x22; + + memory "eeprom" + size = 128; + page_size = 32; + offset = 0x1400; + readsize = 256; ; - memory "sram" - size = 8192; - offset = 0x6000; + memory "flash" + size = 4096; + page_size = 64; + offset = 0x8000; + readsize = 256; ; ; #------------------------------------------------------------ -# AVR64DA48 +# ATtiny416 #------------------------------------------------------------ -part parent ".avr-da-db" # 64da48 - desc = "AVR64DA48"; - id = "64da48"; - variants = - "AVR64DA48-E/6LX: VQFN48, Fmax=24 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "AVR64DA48-E/PT: TQFP48, Fmax=24 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "AVR64DA48-I/6LX: VQFN48, Fmax=24 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "AVR64DA48-I/PT: TQFP48, Fmax=24 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "AVR64DA48-VQFN/TQFP: QFP48, Fmax=24 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "AVR64DA48T-E/6LX: VQFN48, Fmax=24 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "AVR64DA48T-E/PT: TQFP48, Fmax=24 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "AVR64DA48T-I/6LX: VQFN48, Fmax=24 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "AVR64DA48T-I/PT: TQFP48, Fmax=24 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]"; - family_id = " AVR"; - mcuid = 359; - n_interrupts = 58; - signature = 0x1e 0x96 0x13; +part parent ".avr8x_tiny" + desc = "ATtiny416"; + id = "t416"; + mcuid = 289; + n_interrupts = 26; + signature = 0x1e 0x92 0x21; memory "eeprom" - size = 512; + size = 128; + page_size = 32; offset = 0x1400; readsize = 256; ; memory "flash" - size = 0x10000; - page_size = 512; - offset = 0x800000; + size = 4096; + page_size = 64; + offset = 0x8000; readsize = 256; ; +; - memory "fuse6" - initval = 0x00; - bitmask = 0x07; - ; +#------------------------------------------------------------ +# ATtiny417 +#------------------------------------------------------------ - memory "lock" - initval = 0x5cc5c55c; +part parent ".avr8x_tiny" + desc = "ATtiny417"; + id = "t417"; + mcuid = 291; + n_interrupts = 26; + signature = 0x1e 0x92 0x20; + + memory "eeprom" + size = 128; + page_size = 32; + offset = 0x1400; + readsize = 256; ; - memory "sram" - size = 8192; - offset = 0x6000; + memory "flash" + size = 4096; + page_size = 64; + offset = 0x8000; + readsize = 256; ; ; #------------------------------------------------------------ -# AVR64DA64 +# ATtiny814 #------------------------------------------------------------ -part parent ".avr-da-db" # 64da64 - desc = "AVR64DA64"; - id = "64da64"; - variants = - "AVR64DA64-E/MR: QFN64, Fmax=24 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "AVR64DA64-E/PT: TQFP64, Fmax=24 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "AVR64DA64-I/MR: QFN64, Fmax=24 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "AVR64DA64-I/PT: TQFP64, Fmax=24 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "AVR64DA64-VQFN/TQFP: QFP64, Fmax=24 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "AVR64DA64T-E/MR: QFN64, Fmax=24 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "AVR64DA64T-E/PT: TQFP64, Fmax=24 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "AVR64DA64T-I/MR: QFN64, Fmax=24 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "AVR64DA64T-I/PT: TQFP64, Fmax=24 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]"; - family_id = " AVR"; - mcuid = 362; - n_interrupts = 64; - signature = 0x1e 0x96 0x12; +part parent ".avr8x_tiny" + desc = "ATtiny814"; + id = "t814"; + mcuid = 298; + n_interrupts = 26; + signature = 0x1e 0x93 0x22; memory "eeprom" - size = 512; + size = 128; + page_size = 32; offset = 0x1400; readsize = 256; ; memory "flash" - size = 0x10000; - page_size = 512; - offset = 0x800000; - readsize = 256; - ; - - memory "fuse6" - initval = 0x00; - bitmask = 0x07; - ; - - memory "lock" - initval = 0x5cc5c55c; - ; - - memory "sram" size = 8192; - offset = 0x6000; + page_size = 64; + offset = 0x8000; + readsize = 256; ; ; #------------------------------------------------------------ -# AVR128DA28 +# ATtiny816 #------------------------------------------------------------ -part parent ".avr-da-db" # 128da28 - desc = "AVR128DA28"; - id = "128da28"; - variants = - "AVR128DA28-E/SO: SOIC28, Fmax=24 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "AVR128DA28-E/SP: SPDIP28, Fmax=24 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "AVR128DA28-E/SS: SSOP28, Fmax=24 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "AVR128DA28-I/SO: SOIC28, Fmax=24 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "AVR128DA28-I/SP: SPDIP28, Fmax=24 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "AVR128DA28-I/SS: SSOP28, Fmax=24 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "AVR128DA28-SPDIP/SSOP/SOIC: DIP28, Fmax=24 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "AVR128DA28T-E/SO: SOIC28, Fmax=24 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "AVR128DA28T-E/SS: SSOP28, Fmax=24 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "AVR128DA28T-I/SO: SOIC28, Fmax=24 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "AVR128DA28T-I/SS: SSOP28, Fmax=24 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]"; - family_id = " AVR"; - mcuid = 364; - n_interrupts = 41; - signature = 0x1e 0x97 0x0a; +part parent ".avr8x_tiny" + desc = "ATtiny816"; + id = "t816"; + mcuid = 299; + n_interrupts = 26; + signature = 0x1e 0x93 0x21; memory "eeprom" - size = 512; + size = 128; + page_size = 32; offset = 0x1400; readsize = 256; ; memory "flash" - size = 0x20000; - page_size = 512; - offset = 0x800000; + size = 8192; + page_size = 64; + offset = 0x8000; readsize = 256; ; - - memory "fuse6" - initval = 0x00; - bitmask = 0x07; - ; - - memory "lock" - initval = 0x5cc5c55c; - ; - - memory "sram" - size = 0x4000; - offset = 0x4000; - ; ; #------------------------------------------------------------ -# AVR128DA32 +# ATtiny817 #------------------------------------------------------------ -part parent ".avr-da-db" # 128da32 - desc = "AVR128DA32"; - id = "128da32"; - variants = - "AVR128DA32-E/PT: TQFP32, Fmax=24 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "AVR128DA32-E/RXB: VQFN32, Fmax=24 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "AVR128DA32-I/PT: TQFP32, Fmax=24 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "AVR128DA32-I/RXB: VQFN32, Fmax=24 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "AVR128DA32-VQFN/TQFP: QFP32, Fmax=24 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "AVR128DA32T-E/PT: TQFP32, Fmax=24 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "AVR128DA32T-E/RXB: VQFN32, Fmax=24 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "AVR128DA32T-I/PT: TQFP32, Fmax=24 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "AVR128DA32T-I/RXB: VQFN32, Fmax=24 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]"; - family_id = " AVR"; - mcuid = 366; - n_interrupts = 44; - signature = 0x1e 0x97 0x09; +part parent ".avr8x_tiny" + desc = "ATtiny817"; + id = "t817"; + mcuid = 300; + n_interrupts = 26; + signature = 0x1e 0x93 0x20; memory "eeprom" - size = 512; + size = 128; + page_size = 32; offset = 0x1400; readsize = 256; ; memory "flash" - size = 0x20000; - page_size = 512; - offset = 0x800000; + size = 8192; + page_size = 64; + offset = 0x8000; readsize = 256; ; - - memory "fuse6" - initval = 0x00; - bitmask = 0x07; - ; - - memory "lock" - initval = 0x5cc5c55c; - ; - - memory "sram" - size = 0x4000; - offset = 0x4000; - ; ; #------------------------------------------------------------ -# AVR128DA48 +# ATtiny1614 #------------------------------------------------------------ -part parent ".avr-da-db" # 128da48 - desc = "AVR128DA48"; - id = "128da48"; - variants = - "AVR128DA48-E/6LX: VQFN48, Fmax=24 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "AVR128DA48-E/PT: TQFP48, Fmax=24 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "AVR128DA48-I/6LX: VQFN48, Fmax=24 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "AVR128DA48-I/PT: TQFP48, Fmax=24 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "AVR128DA48-VQFN/TQFP: QFP48, Fmax=24 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "AVR128DA48T-E/6LX: VQFN48, Fmax=24 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "AVR128DA48T-E/PT: TQFP48, Fmax=24 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "AVR128DA48T-I/6LX: VQFN48, Fmax=24 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "AVR128DA48T-I/PT: TQFP48, Fmax=24 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]"; - family_id = " AVR"; - mcuid = 368; - n_interrupts = 58; - signature = 0x1e 0x97 0x08; +part parent ".avr8x_tiny" + desc = "ATtiny1614"; + id = "t1614"; + mcuid = 307; + n_interrupts = 31; + signature = 0x1e 0x94 0x22; memory "eeprom" - size = 512; + size = 256; + page_size = 32; offset = 0x1400; readsize = 256; ; memory "flash" - size = 0x20000; - page_size = 512; - offset = 0x800000; - readsize = 256; - ; - - memory "fuse6" - initval = 0x00; - bitmask = 0x07; - ; - - memory "lock" - initval = 0x5cc5c55c; - ; - - memory "sram" size = 0x4000; - offset = 0x4000; + page_size = 64; + offset = 0x8000; + readsize = 256; ; ; #------------------------------------------------------------ -# AVR128DA64 +# ATtiny1616 #------------------------------------------------------------ -part parent ".avr-da-db" # 128da64 - desc = "AVR128DA64"; - id = "128da64"; - variants = - "AVR128DA64-E/MR: QFN64, Fmax=24 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "AVR128DA64-E/PT: TQFP64, Fmax=24 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "AVR128DA64-I/MR: QFN64, Fmax=24 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "AVR128DA64-I/PT: TQFP64, Fmax=24 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "AVR128DA64-VQFN/TQFP: QFP64, Fmax=24 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "AVR128DA64T-E/MR: QFN64, Fmax=24 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "AVR128DA64T-E/PT: TQFP64, Fmax=24 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "AVR128DA64T-I/MR: QFN64, Fmax=24 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "AVR128DA64T-I/PT: TQFP64, Fmax=24 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]"; - family_id = " AVR"; - mcuid = 370; - n_interrupts = 64; - signature = 0x1e 0x97 0x07; +part parent ".avr8x_tiny" + desc = "ATtiny1616"; + id = "t1616"; + mcuid = 308; + n_interrupts = 31; + signature = 0x1e 0x94 0x21; memory "eeprom" - size = 512; + size = 256; + page_size = 32; offset = 0x1400; readsize = 256; ; memory "flash" - size = 0x20000; - page_size = 512; - offset = 0x800000; + size = 0x4000; + page_size = 64; + offset = 0x8000; readsize = 256; ; +; - memory "fuse6" - initval = 0x00; - bitmask = 0x07; - ; +#------------------------------------------------------------ +# ATtiny1617 +#------------------------------------------------------------ - memory "lock" - initval = 0x5cc5c55c; +part parent ".avr8x_tiny" + desc = "ATtiny1617"; + id = "t1617"; + mcuid = 309; + n_interrupts = 31; + signature = 0x1e 0x94 0x20; + + memory "eeprom" + size = 256; + page_size = 32; + offset = 0x1400; + readsize = 256; ; - memory "sram" + memory "flash" size = 0x4000; - offset = 0x4000; + page_size = 64; + offset = 0x8000; + readsize = 256; ; ; #------------------------------------------------------------ -# AVR32DA28S +# ATtiny3216 #------------------------------------------------------------ -part parent "32da28" # 32da28s - desc = "AVR32DA28S"; - id = "32da28s"; - variants = - "AVR32DA28S-SPDIP: DIP28, Fmax=24 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 405; - signature = 0x1e 0x95 0x72; +part parent ".avr8x_tiny" + desc = "ATtiny3216"; + id = "t3216"; + mcuid = 314; + n_interrupts = 31; + signature = 0x1e 0x95 0x21; - memory "fusea" - size = 2; - initval = 0x03; - bitmask = 0xfff3; - offset = 0x105a; - readsize = 1; + memory "eeprom" + size = 256; + page_size = 64; + offset = 0x1400; + readsize = 256; ; - memory "pdicfg" - alias "fusea"; + memory "flash" + size = 0x8000; + page_size = 128; + offset = 0x8000; + readsize = 256; ; -; - -#------------------------------------------------------------ -# AVR32DA32S -#------------------------------------------------------------ -part parent "32da32" # 32da32s - desc = "AVR32DA32S"; - id = "32da32s"; - variants = - "AVR32DA32S-VQFN/TQFP: QFP32, Fmax=24 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 406; - signature = 0x1e 0x95 0x71; - - memory "fusea" - size = 2; - initval = 0x03; - bitmask = 0xfff3; - offset = 0x105a; - readsize = 1; + memory "userrow" + size = 64; + page_size = 64; ; - memory "pdicfg" - alias "fusea"; + memory "usersig" + alias "userrow"; ; ; #------------------------------------------------------------ -# AVR32DA48S +# ATtiny3217 #------------------------------------------------------------ -part parent "32da48" # 32da48s - desc = "AVR32DA48S"; - id = "32da48s"; - variants = - "AVR32DA48S-VQFN/TQFP: QFP48, Fmax=24 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 407; - signature = 0x1e 0x95 0x70; - - memory "fusea" - size = 2; - initval = 0x03; - bitmask = 0xfff3; - offset = 0x105a; - readsize = 1; - ; - - memory "pdicfg" - alias "fusea"; - ; +part parent "t3216" + desc = "ATtiny3217"; + id = "t3217"; + mcuid = 315; + signature = 0x1e 0x95 0x22; ; #------------------------------------------------------------ -# AVR64DA28S +# ATtiny424 #------------------------------------------------------------ -part parent "64da28" # 64da28s - desc = "AVR64DA28S"; - id = "64da28s"; - variants = - "AVR64DA28S-SPDIP: DIP28, Fmax=24 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 408; - signature = 0x1e 0x96 0x2e; +part parent ".avr8x_tiny" + desc = "ATtiny424"; + id = "t424"; + mcuid = 292; + n_interrupts = 30; + signature = 0x1e 0x92 0x2c; - memory "fusea" - size = 2; - initval = 0x03; - bitmask = 0xfff3; - offset = 0x105a; - readsize = 1; + memory "eeprom" + size = 128; + page_size = 32; + offset = 0x1400; + readsize = 256; ; - memory "pdicfg" - alias "fusea"; + memory "flash" + size = 4096; + page_size = 64; + offset = 0x8000; + readsize = 256; ; ; #------------------------------------------------------------ -# AVR64DA32S +# ATtiny426 #------------------------------------------------------------ -part parent "64da32" # 64da32s - desc = "AVR64DA32S"; - id = "64da32s"; - variants = - "AVR64DA32S-VQFN/TQFP: QFP32, Fmax=24 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 409; - signature = 0x1e 0x96 0x2d; +part parent ".avr8x_tiny" + desc = "ATtiny426"; + id = "t426"; + mcuid = 293; + n_interrupts = 30; + signature = 0x1e 0x92 0x2b; - memory "fusea" - size = 2; - initval = 0x03; - bitmask = 0xfff3; - offset = 0x105a; - readsize = 1; + memory "eeprom" + size = 128; + page_size = 32; + offset = 0x1400; + readsize = 256; ; - memory "pdicfg" - alias "fusea"; + memory "flash" + size = 4096; + page_size = 64; + offset = 0x8000; + readsize = 256; ; ; #------------------------------------------------------------ -# AVR64DA48S +# ATtiny427 #------------------------------------------------------------ -part parent "64da48" # 64da48s - desc = "AVR64DA48S"; - id = "64da48s"; - variants = - "AVR64DA48S-VQFN/TQFP: QFP48, Fmax=24 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 410; - signature = 0x1e 0x96 0x2c; +part parent ".avr8x_tiny" + desc = "ATtiny427"; + id = "t427"; + mcuid = 294; + n_interrupts = 30; + signature = 0x1e 0x92 0x2a; - memory "fusea" - size = 2; - initval = 0x03; - bitmask = 0xfff3; - offset = 0x105a; - readsize = 1; + memory "eeprom" + size = 128; + page_size = 32; + offset = 0x1400; + readsize = 256; ; - memory "pdicfg" - alias "fusea"; + memory "flash" + size = 4096; + page_size = 64; + offset = 0x8000; + readsize = 256; ; ; #------------------------------------------------------------ -# AVR64DA64S +# ATtiny824 #------------------------------------------------------------ -part parent "64da64" # 64da64s - desc = "AVR64DA64S"; - id = "64da64s"; - variants = - "AVR64DA64S-VQFN/TQFP: QFP64, Fmax=24 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 411; - signature = 0x1e 0x96 0x2b; +part parent ".avr8x_tiny" + desc = "ATtiny824"; + id = "t824"; + mcuid = 301; + n_interrupts = 30; + signature = 0x1e 0x93 0x29; - memory "fusea" - size = 2; - initval = 0x03; - bitmask = 0xfff3; - offset = 0x105a; - readsize = 1; + memory "eeprom" + size = 128; + page_size = 32; + offset = 0x1400; + readsize = 256; ; - memory "pdicfg" - alias "fusea"; + memory "flash" + size = 8192; + page_size = 64; + offset = 0x8000; + readsize = 256; ; ; #------------------------------------------------------------ -# AVR128DA28S +# ATtiny826 #------------------------------------------------------------ -part parent "128da28" # 128da28s - desc = "AVR128DA28S"; - id = "128da28s"; - variants = - "AVR128DA28S-SPDIP: DIP28, Fmax=24 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 394; - signature = 0x1e 0x97 0x12; +part parent ".avr8x_tiny" + desc = "ATtiny826"; + id = "t826"; + mcuid = 302; + n_interrupts = 30; + signature = 0x1e 0x93 0x28; - memory "fusea" - size = 2; - initval = 0x03; - bitmask = 0xfff3; - offset = 0x105a; - readsize = 1; + memory "eeprom" + size = 128; + page_size = 32; + offset = 0x1400; + readsize = 256; ; - memory "pdicfg" - alias "fusea"; + memory "flash" + size = 8192; + page_size = 64; + offset = 0x8000; + readsize = 256; ; ; #------------------------------------------------------------ -# AVR128DA32S +# ATtiny827 #------------------------------------------------------------ -part parent "128da32" # 128da32s - desc = "AVR128DA32S"; - id = "128da32s"; - variants = - "AVR128DA32S-VQFN/TQFP: QFP32, Fmax=24 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 395; - signature = 0x1e 0x97 0x11; +part parent ".avr8x_tiny" + desc = "ATtiny827"; + id = "t827"; + mcuid = 303; + n_interrupts = 30; + signature = 0x1e 0x93 0x27; - memory "fusea" - size = 2; - initval = 0x03; - bitmask = 0xfff3; - offset = 0x105a; - readsize = 1; + memory "eeprom" + size = 128; + page_size = 32; + offset = 0x1400; + readsize = 256; ; - memory "pdicfg" - alias "fusea"; + memory "flash" + size = 8192; + page_size = 64; + offset = 0x8000; + readsize = 256; ; ; #------------------------------------------------------------ -# AVR128DA48S +# ATtiny1624 #------------------------------------------------------------ -part parent "128da48" # 128da48s - desc = "AVR128DA48S"; - id = "128da48s"; - variants = - "AVR128DA48S-VQFN/TQFP: QFP48, Fmax=24 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 396; - signature = 0x1e 0x97 0x10; +part parent ".avr8x_tiny" + desc = "ATtiny1624"; + id = "t1624"; + mcuid = 310; + n_interrupts = 30; + signature = 0x1e 0x94 0x2a; - memory "fusea" - size = 2; - initval = 0x03; - bitmask = 0xfff3; - offset = 0x105a; - readsize = 1; + memory "eeprom" + size = 256; + page_size = 32; + offset = 0x1400; + readsize = 256; ; - memory "pdicfg" - alias "fusea"; + memory "flash" + size = 0x4000; + page_size = 64; + offset = 0x8000; + readsize = 256; ; ; #------------------------------------------------------------ -# AVR128DA64S +# ATtiny1626 #------------------------------------------------------------ -part parent "128da64" # 128da64s - desc = "AVR128DA64S"; - id = "128da64s"; - variants = - "AVR128DA64S-VQFN/TQFP: QFP64, Fmax=24 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 397; - signature = 0x1e 0x97 0x0f; +part parent ".avr8x_tiny" + desc = "ATtiny1626"; + id = "t1626"; + mcuid = 311; + n_interrupts = 30; + signature = 0x1e 0x94 0x29; - memory "fusea" - size = 2; - initval = 0x03; - bitmask = 0xfff3; - offset = 0x105a; - readsize = 1; + memory "eeprom" + size = 256; + page_size = 32; + offset = 0x1400; + readsize = 256; ; - memory "pdicfg" - alias "fusea"; + memory "flash" + size = 0x4000; + page_size = 64; + offset = 0x8000; + readsize = 256; ; ; #------------------------------------------------------------ -# AVR32DB28 +# ATtiny1627 #------------------------------------------------------------ -part parent ".avr-da-db" # 32db28 - desc = "AVR32DB28"; - id = "32db28"; - variants = - "AVR32DB28-E/SO: SOIC28, Fmax=24 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "AVR32DB28-E/SP: SPDIP28, Fmax=24 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "AVR32DB28-E/SS: SSOP28, Fmax=24 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "AVR32DB28-I/SO: SOIC28, Fmax=24 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "AVR32DB28-I/SP: SPDIP28, Fmax=24 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "AVR32DB28-I/SS: SSOP28, Fmax=24 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "AVR32DB28-SPDIP/SSOP/SOIC: DIP28, Fmax=32 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "AVR32DB28T-E/SO: SOIC28, Fmax=24 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "AVR32DB28T-E/SS: SSOP28, Fmax=24 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "AVR32DB28T-I/SO: SOIC28, Fmax=24 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "AVR32DB28T-I/SS: SSOP28, Fmax=24 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 339; - n_interrupts = 42; - signature = 0x1e 0x95 0x37; +part parent ".avr8x_tiny" + desc = "ATtiny1627"; + id = "t1627"; + mcuid = 312; + n_interrupts = 30; + signature = 0x1e 0x94 0x28; memory "eeprom" - size = 512; + size = 256; + page_size = 32; offset = 0x1400; readsize = 256; ; memory "flash" - size = 0x8000; - page_size = 512; - offset = 0x800000; + size = 0x4000; + page_size = 64; + offset = 0x8000; readsize = 256; ; - - memory "lock" - initval = 0x5cc5c55c; - ; - - memory "sram" - size = 4096; - offset = 0x7000; - ; ; #------------------------------------------------------------ -# AVR32DB32 +# ATtiny3224 #------------------------------------------------------------ -part parent ".avr-da-db" # 32db32 - desc = "AVR32DB32"; - id = "32db32"; - variants = - "AVR32DB32-E/PT: TQFP32, Fmax=24 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "AVR32DB32-E/RXB: VQFN32, Fmax=24 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "AVR32DB32-I/PT: TQFP32, Fmax=24 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "AVR32DB32-I/RXB: VQFN32, Fmax=24 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "AVR32DB32-VQFN/TQFP: QFP32, Fmax=32 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "AVR32DB32T-E/PT: TQFP32, Fmax=24 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "AVR32DB32T-E/RXB: VQFN32, Fmax=24 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "AVR32DB32T-I/PT: TQFP32, Fmax=24 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "AVR32DB32T-I/RXB: VQFN32, Fmax=24 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 343; - n_interrupts = 44; - signature = 0x1e 0x95 0x36; +part parent ".avr8x_tiny" + desc = "ATtiny3224"; + id = "t3224"; + mcuid = 316; + n_interrupts = 30; + signature = 0x1e 0x95 0x28; memory "eeprom" - size = 512; + size = 256; + page_size = 64; offset = 0x1400; readsize = 256; ; memory "flash" size = 0x8000; - page_size = 512; - offset = 0x800000; + page_size = 128; + offset = 0x8000; readsize = 256; ; - - memory "lock" - initval = 0x5cc5c55c; - ; - - memory "sram" - size = 4096; - offset = 0x7000; - ; ; #------------------------------------------------------------ -# AVR32DB48 +# ATtiny3226 #------------------------------------------------------------ -part parent ".avr-da-db" # 32db48 - desc = "AVR32DB48"; - id = "32db48"; - variants = - "AVR32DB48-E/6LX: VQFN48, Fmax=24 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "AVR32DB48-E/PT: TQFP48, Fmax=24 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "AVR32DB48-I/6LX: VQFN48, Fmax=24 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "AVR32DB48-I/PT: TQFP48, Fmax=24 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "AVR32DB48-VQFN/TQFP: QFP48, Fmax=32 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "AVR32DB48T-E/6LX: VQFN48, Fmax=24 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "AVR32DB48T-E/PT: TQFP48, Fmax=24 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "AVR32DB48T-I/6LX: VQFN48, Fmax=24 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "AVR32DB48T-I/PT: TQFP48, Fmax=24 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 347; - n_interrupts = 61; - signature = 0x1e 0x95 0x35; +part parent ".avr8x_tiny" + desc = "ATtiny3226"; + id = "t3226"; + mcuid = 317; + n_interrupts = 30; + signature = 0x1e 0x95 0x27; memory "eeprom" - size = 512; + size = 256; + page_size = 64; offset = 0x1400; readsize = 256; ; memory "flash" size = 0x8000; - page_size = 512; - offset = 0x800000; + page_size = 128; + offset = 0x8000; readsize = 256; ; - - memory "lock" - initval = 0x5cc5c55c; - ; - - memory "sram" - size = 4096; - offset = 0x7000; - ; ; #------------------------------------------------------------ -# AVR64DB28 +# ATtiny3227 #------------------------------------------------------------ -part parent ".avr-da-db" # 64db28 - desc = "AVR64DB28"; - id = "64db28"; - variants = - "AVR64DB28-E/SO: SOIC28, Fmax=24 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "AVR64DB28-E/SP: SPDIP28, Fmax=24 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "AVR64DB28-E/SS: SSOP28, Fmax=24 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "AVR64DB28-I/SO: SOIC28, Fmax=24 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "AVR64DB28-I/SP: SPDIP28, Fmax=24 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "AVR64DB28-I/SS: SSOP28, Fmax=24 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "AVR64DB28-SPDIP/SSOP/SOIC: DIP28, Fmax=32 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "AVR64DB28T-E/SO: SOIC28, Fmax=24 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "AVR64DB28T-E/SS: SSOP28, Fmax=24 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "AVR64DB28T-I/SO: SOIC28, Fmax=24 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "AVR64DB28T-I/SS: SSOP28, Fmax=24 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 352; - n_interrupts = 42; - signature = 0x1e 0x96 0x19; +part parent ".avr8x_tiny" + desc = "ATtiny3227"; + id = "t3227"; + mcuid = 318; + n_interrupts = 30; + signature = 0x1e 0x95 0x26; memory "eeprom" - size = 512; + size = 256; + page_size = 64; offset = 0x1400; readsize = 256; ; memory "flash" - size = 0x10000; - page_size = 512; - offset = 0x800000; + size = 0x8000; + page_size = 128; + offset = 0x8000; readsize = 256; ; - - memory "lock" - initval = 0x5cc5c55c; - ; - - memory "sram" - size = 8192; - offset = 0x6000; - ; ; #------------------------------------------------------------ -# AVR64DB32 +# ATmega808 #------------------------------------------------------------ -part parent ".avr-da-db" # 64db32 - desc = "AVR64DB32"; - id = "64db32"; - variants = - "AVR64DB32-E/PT: TQFP32, Fmax=24 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "AVR64DB32-E/RXB: VQFN32, Fmax=24 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "AVR64DB32-I/PT: TQFP32, Fmax=24 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "AVR64DB32-I/RXB: VQFN32, Fmax=24 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "AVR64DB32-VQFN/TQFP: QFP32, Fmax=32 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "AVR64DB32T-E/PT: TQFP32, Fmax=24 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "AVR64DB32T-E/RXB: VQFN32, Fmax=24 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "AVR64DB32T-I/PT: TQFP32, Fmax=24 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "AVR64DB32T-I/RXB: VQFN32, Fmax=24 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 356; - n_interrupts = 44; - signature = 0x1e 0x96 0x18; +part parent ".avr8x_tiny" + desc = "ATmega808"; + id = "m808"; + mcuid = 319; + n_interrupts = 36; + signature = 0x1e 0x93 0x26; memory "eeprom" - size = 512; + size = 256; + page_size = 32; offset = 0x1400; readsize = 256; ; memory "flash" - size = 0x10000; - page_size = 512; - offset = 0x800000; - readsize = 256; - ; - - memory "lock" - initval = 0x5cc5c55c; - ; - - memory "sram" size = 8192; - offset = 0x6000; + page_size = 64; + offset = 0x4000; + readsize = 256; ; ; #------------------------------------------------------------ -# AVR64DB48 +# ATmega809 #------------------------------------------------------------ -part parent ".avr-da-db" # 64db48 - desc = "AVR64DB48"; - id = "64db48"; - variants = - "AVR64DB48-E/6LX: VQFN48, Fmax=24 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "AVR64DB48-E/PT: TQFP48, Fmax=24 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "AVR64DB48-I/6LX: VQFN48, Fmax=24 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "AVR64DB48-I/PT: TQFP48, Fmax=24 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "AVR64DB48-VQFN/TQFP: QFP48, Fmax=32 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "AVR64DB48T-E/6LX: VQFN48, Fmax=24 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "AVR64DB48T-E/PT: TQFP48, Fmax=24 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "AVR64DB48T-I/6LX: VQFN48, Fmax=24 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "AVR64DB48T-I/PT: TQFP48, Fmax=24 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 360; - n_interrupts = 61; - signature = 0x1e 0x96 0x17; +part parent ".avr8x_tiny" + desc = "ATmega809"; + id = "m809"; + mcuid = 320; + n_interrupts = 40; + signature = 0x1e 0x93 0x2a; memory "eeprom" - size = 512; + size = 256; + page_size = 32; offset = 0x1400; readsize = 256; ; memory "flash" - size = 0x10000; - page_size = 512; - offset = 0x800000; - readsize = 256; - ; - - memory "lock" - initval = 0x5cc5c55c; - ; - - memory "sram" size = 8192; - offset = 0x6000; + page_size = 64; + offset = 0x4000; + readsize = 256; ; ; #------------------------------------------------------------ -# AVR64DB64 +# ATmega1608 #------------------------------------------------------------ -part parent ".avr-da-db" # 64db64 - desc = "AVR64DB64"; - id = "64db64"; - variants = - "AVR64DB64-E/MR: QFN64, Fmax=24 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "AVR64DB64-E/PT: TQFP64, Fmax=24 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "AVR64DB64-I/MR: QFN64, Fmax=24 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "AVR64DB64-I/PT: TQFP64, Fmax=24 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "AVR64DB64-VQFN/TQFP: QFP64, Fmax=32 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "AVR64DB64T-E/MR: QFN64, Fmax=24 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "AVR64DB64T-E/PT: TQFP64, Fmax=24 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "AVR64DB64T-I/MR: QFN64, Fmax=24 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "AVR64DB64T-I/PT: TQFP64, Fmax=24 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 363; - n_interrupts = 65; - signature = 0x1e 0x96 0x16; +part parent ".avr8x_tiny" + desc = "ATmega1608"; + id = "m1608"; + mcuid = 321; + n_interrupts = 36; + signature = 0x1e 0x94 0x27; memory "eeprom" - size = 512; + size = 256; + page_size = 32; offset = 0x1400; readsize = 256; ; memory "flash" - size = 0x10000; - page_size = 512; - offset = 0x800000; + size = 0x4000; + page_size = 64; + offset = 0x4000; readsize = 256; ; - - memory "lock" - initval = 0x5cc5c55c; - ; - - memory "sram" - size = 8192; - offset = 0x6000; - ; ; #------------------------------------------------------------ -# AVR128DB28 +# ATmega1609 #------------------------------------------------------------ -part parent ".avr-da-db" # 128db28 - desc = "AVR128DB28"; - id = "128db28"; - variants = - "AVR128DB28-E/SO: SOIC28, Fmax=24 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "AVR128DB28-E/SP: SPDIP28, Fmax=24 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "AVR128DB28-E/SS: SSOP28, Fmax=24 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "AVR128DB28-I/SO: SOIC28, Fmax=24 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "AVR128DB28-I/SP: SPDIP28, Fmax=24 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "AVR128DB28-I/SS: SSOP28, Fmax=24 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "AVR128DB28-SPDIP/SSOP/SOIC: DIP28, Fmax=32 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "AVR128DB28T-E/SO: SOIC28, Fmax=24 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "AVR128DB28T-E/SS: SSOP28, Fmax=24 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "AVR128DB28T-I/SO: SOIC28, Fmax=24 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "AVR128DB28T-I/SS: SSOP28, Fmax=24 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 365; - n_interrupts = 42; - signature = 0x1e 0x97 0x0e; +part parent ".avr8x_tiny" + desc = "ATmega1609"; + id = "m1609"; + mcuid = 322; + n_interrupts = 40; + signature = 0x1e 0x94 0x26; memory "eeprom" - size = 512; + size = 256; + page_size = 32; offset = 0x1400; readsize = 256; ; memory "flash" - size = 0x20000; - page_size = 512; - offset = 0x800000; - readsize = 256; - ; - - memory "lock" - initval = 0x5cc5c55c; - ; - - memory "sram" size = 0x4000; + page_size = 64; offset = 0x4000; + readsize = 256; ; ; #------------------------------------------------------------ -# AVR128DB32 +# ATmega3208 #------------------------------------------------------------ -part parent ".avr-da-db" # 128db32 - desc = "AVR128DB32"; - id = "128db32"; - variants = - "AVR128DB32-E/PT: TQFP32, Fmax=24 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "AVR128DB32-E/RXB: VQFN32, Fmax=24 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "AVR128DB32-I/PT: TQFP32, Fmax=24 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "AVR128DB32-I/RXB: VQFN32, Fmax=24 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "AVR128DB32-VQFN/TQFP: QFP32, Fmax=32 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "AVR128DB32T-E/PT: TQFP32, Fmax=24 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "AVR128DB32T-E/RXB: VQFN32, Fmax=24 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "AVR128DB32T-I/PT: TQFP32, Fmax=24 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "AVR128DB32T-I/RXB: VQFN32, Fmax=24 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 367; - n_interrupts = 44; - signature = 0x1e 0x97 0x0d; +part parent ".avr8x_mega" + desc = "ATmega3208"; + id = "m3208"; + mcuid = 323; + n_interrupts = 36; + signature = 0x1e 0x95 0x30; memory "eeprom" - size = 512; + size = 256; + page_size = 64; offset = 0x1400; readsize = 256; ; memory "flash" - size = 0x20000; - page_size = 512; - offset = 0x800000; - readsize = 256; - ; - - memory "lock" - initval = 0x5cc5c55c; - ; - - memory "sram" - size = 0x4000; + size = 0x8000; + page_size = 128; offset = 0x4000; + readsize = 256; ; ; #------------------------------------------------------------ -# AVR128DB48 +# ATmega3209 #------------------------------------------------------------ -part parent ".avr-da-db" # 128db48 - desc = "AVR128DB48"; - id = "128db48"; - variants = - "AVR128DB48-E/6LX: VQFN48, Fmax=24 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "AVR128DB48-E/PT: TQFP48, Fmax=24 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "AVR128DB48-I/6LX: VQFN48, Fmax=24 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "AVR128DB48-I/PT: TQFP48, Fmax=24 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "AVR128DB48-VQFN/TQFP: QFP48, Fmax=32 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "AVR128DB48T-E/6LX: VQFN48, Fmax=24 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "AVR128DB48T-E/PT: TQFP48, Fmax=24 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "AVR128DB48T-I/6LX: VQFN48, Fmax=24 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "AVR128DB48T-I/PT: TQFP48, Fmax=24 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 369; - n_interrupts = 61; - signature = 0x1e 0x97 0x0c; +part parent ".avr8x_mega" + desc = "ATmega3209"; + id = "m3209"; + mcuid = 324; + n_interrupts = 40; + signature = 0x1e 0x95 0x31; memory "eeprom" - size = 512; + size = 256; + page_size = 64; offset = 0x1400; readsize = 256; ; memory "flash" - size = 0x20000; - page_size = 512; - offset = 0x800000; - readsize = 256; - ; - - memory "lock" - initval = 0x5cc5c55c; - ; - - memory "sram" - size = 0x4000; + size = 0x8000; + page_size = 128; offset = 0x4000; + readsize = 256; ; ; #------------------------------------------------------------ -# AVR128DB64 +# ATmega4808 #------------------------------------------------------------ -part parent ".avr-da-db" # 128db64 - desc = "AVR128DB64"; - id = "128db64"; - variants = - "AVR128DB64-E/MR: QFN64, Fmax=24 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "AVR128DB64-E/PT: TQFP64, Fmax=24 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "AVR128DB64-I/MR: QFN64, Fmax=24 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "AVR128DB64-I/PT: TQFP64, Fmax=24 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "AVR128DB64-VQFN/TQFP: QFP64, Fmax=32 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "AVR128DB64T-E/MR: QFN64, Fmax=24 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "AVR128DB64T-E/PT: TQFP64, Fmax=24 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "AVR128DB64T-I/MR: QFN64, Fmax=24 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "AVR128DB64T-I/PT: TQFP64, Fmax=24 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 371; - n_interrupts = 65; - signature = 0x1e 0x97 0x0b; +part parent ".avr8x_mega" + desc = "ATmega4808"; + id = "m4808"; + mcuid = 325; + n_interrupts = 36; + signature = 0x1e 0x96 0x50; memory "eeprom" - size = 512; + size = 256; + page_size = 64; offset = 0x1400; readsize = 256; ; memory "flash" - size = 0x20000; - page_size = 512; - offset = 0x800000; + size = 0xc000; + page_size = 128; + offset = 0x4000; readsize = 256; ; +; - memory "lock" - initval = 0x5cc5c55c; +#------------------------------------------------------------ +# ATmega4809 +#------------------------------------------------------------ + +part parent ".avr8x_mega" + desc = "ATmega4809"; + id = "m4809"; + mcuid = 326; + n_interrupts = 40; + signature = 0x1e 0x96 0x51; + + memory "eeprom" + size = 256; + page_size = 64; + offset = 0x1400; + readsize = 256; ; - memory "sram" - size = 0x4000; + memory "flash" + size = 0xc000; + page_size = 128; offset = 0x4000; + readsize = 256; ; ; #------------------------------------------------------------ -# AVR-DD/DU family common values +# AVR-Dx family common values #------------------------------------------------------------ -part # .avr-dd-du - desc = "AVR-DD/DU family common values"; - id = ".avr-dd-du"; +part + desc = "AVR-Dx family common values"; + id = ".avrdx"; family_id = "AVR "; prog_modes = PM_SPM | PM_UPDI; n_boot_sections = 1; - boot_section_size = 512; - hvupdi_variant = 2; + # Dedicated UPDI pin, no HV + hvupdi_variant = 1; nvm_base = 0x1000; ocd_base = 0x0f80; - syscfg_base = 0x0f00; - factory_fcpu = 4000000; - - memory "eeprom" - size = 256; - offset = 0x1400; - readsize = 256; - ; - - memory "fuses" - size = 16; - offset = 0x1050; - readsize = 1; - ; memory "fuse0" size = 1; - initval = 0x00; offset = 0x1050; readsize = 1; ; @@ -22448,7 +14856,6 @@ part # .avr-dd-du memory "fuse1" size = 1; - initval = 0x00; offset = 0x1051; readsize = 1; ; @@ -22459,8 +14866,6 @@ part # .avr-dd-du memory "fuse2" size = 1; - initval = 0x00; - bitmask = 0x07; offset = 0x1052; readsize = 1; ; @@ -22469,10 +14874,18 @@ part # .avr-dd-du alias "fuse2"; ; + memory "fuse4" + size = 1; + offset = 0x1054; + readsize = 1; + ; + + memory "tcd0cfg" + alias "fuse4"; + ; + memory "fuse5" size = 1; - initval = 0xd0; - bitmask = 0xf9; offset = 0x1055; readsize = 1; ; @@ -22483,8 +14896,6 @@ part # .avr-dd-du memory "fuse6" size = 1; - initval = 0x08; - bitmask = 0x1f; offset = 0x1056; readsize = 1; ; @@ -22495,7 +14906,6 @@ part # .avr-dd-du memory "fuse7" size = 1; - initval = 0x00; offset = 0x1057; readsize = 1; ; @@ -22510,7 +14920,6 @@ part # .avr-dd-du memory "fuse8" size = 1; - initval = 0x00; offset = 0x1058; readsize = 1; ; @@ -22523,22 +14932,23 @@ part # .avr-dd-du alias "fuse8"; ; + memory "fuses" + size = 9; + page_size = 16; + offset = 0x1050; + readsize = 16; + ; + memory "lock" size = 4; - initval = 0x5cc5c55c; offset = 0x1040; readsize = 4; ; - memory "prodsig" - size = 128; - page_size = 128; - offset = 0x1100; - readsize = 128; - ; - - memory "sigrow" - alias "prodsig"; + memory "tempsense" + size = 2; + offset = 0x1104; + readsize = 1; ; memory "signature" @@ -22547,1660 +14957,1240 @@ part # .avr-dd-du readsize = 3; ; - memory "tempsense" - size = 4; - offset = 0x1104; - readsize = 1; - ; - - memory "sernum" - size = 16; - offset = 0x1110; - readsize = 1; - ; - - memory "userrow" - size = 32; - page_size = 32; - offset = 0x1080; - readsize = 32; - ; - - memory "usersig" - alias "userrow"; - ; - - memory "io" - size = 4160; - readsize = 1; - ; - - memory "sib" - size = 32; - readsize = 1; - ; -; - -#------------------------------------------------------------ -# AVR16DD14 -#------------------------------------------------------------ - -part parent ".avr-dd-du" # 16dd14 - desc = "AVR16DD14"; - id = "16dd14"; - variants = - "AVR16DD14-I/SL: SOIC14, Fmax=24 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "AVR16DD14-SOIC: DIP14, Fmax=32 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 329; - n_interrupts = 36; - signature = 0x1e 0x94 0x34; - - memory "flash" - size = 0x4000; - page_size = 512; - offset = 0x800000; - readsize = 256; - ; - - memory "sram" - size = 2048; - offset = 0x7800; - ; -; - -#------------------------------------------------------------ -# AVR16DD20 -#------------------------------------------------------------ - -part parent ".avr-dd-du" # 16dd20 - desc = "AVR16DD20"; - id = "16dd20"; - variants = - "AVR16DD20-I/REB: VQFN20, Fmax=24 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "AVR16DD20-I/SO: SOIC20, Fmax=24 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "AVR16DD20-SOIC: DIP20, Fmax=32 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "AVR16DD20-VQFN: QFP20, Fmax=32 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 330; - n_interrupts = 36; - signature = 0x1e 0x94 0x33; - - memory "flash" - size = 0x4000; - page_size = 512; - offset = 0x800000; - readsize = 256; + memory "prodsig" + size = 125; + page_size = 125; + offset = 0x1103; + readsize = 125; ; - memory "sram" - size = 2048; - offset = 0x7800; + memory "sernum" + size = 16; + offset = 0x1110; + readsize = 1; ; -; - -#------------------------------------------------------------ -# AVR16DD28 -#------------------------------------------------------------ -part parent ".avr-dd-du" # 16dd28 - desc = "AVR16DD28"; - id = "16dd28"; - variants = - "AVR16DD28-I/SO: SOIC28, Fmax=24 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "AVR16DD28-I/SP: SPDIP28, Fmax=24 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "AVR16DD28-I/SS: SSOP28, Fmax=24 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "AVR16DD28-I/STX: N/A, Fmax=24 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "AVR16DD28-SPDIP/SSOP/SOIC: DIP28, Fmax=32 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "AVR16DD28-VQFN: QFP28, Fmax=32 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 331; - n_interrupts = 36; - signature = 0x1e 0x94 0x32; + memory "userrow" + size = 32; + page_size = 32; + offset = 0x1080; + readsize = 32; + ; - memory "flash" - size = 0x4000; - page_size = 512; - offset = 0x800000; - readsize = 256; + memory "usersig" + alias "userrow"; ; - memory "sram" - size = 2048; - offset = 0x7800; + memory "data" + # SRAM, only used to supply the offset + offset = 0x1000000; ; ; #------------------------------------------------------------ -# AVR16DD32 +# AVR32DA28 #------------------------------------------------------------ -part parent ".avr-dd-du" # 16dd32 - desc = "AVR16DD32"; - id = "16dd32"; - variants = - "AVR16DD32-I/PT: TQFP32, Fmax=24 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "AVR16DD32-I/RXB: VQFN32, Fmax=24 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "AVR16DD32-VQFN/TQFP: QFP32, Fmax=32 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 333; - n_interrupts = 36; - signature = 0x1e 0x94 0x31; +part parent ".avrdx" + desc = "AVR32DA28"; + id = "avr32da28"; + family_id = " AVR"; + mcuid = 338; + n_interrupts = 41; + signature = 0x1e 0x95 0x34; - memory "flash" - size = 0x4000; - page_size = 512; - offset = 0x800000; + memory "eeprom" + size = 512; + offset = 0x1400; readsize = 256; ; - memory "sram" - size = 2048; - offset = 0x7800; - ; -; - -#------------------------------------------------------------ -# AVR32DD14 -#------------------------------------------------------------ - -part parent ".avr-dd-du" # 32dd14 - desc = "AVR32DD14"; - id = "32dd14"; - variants = - "AVR32DD14-I/SL: SOIC14, Fmax=24 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "AVR32DD14-SOIC: DIP14, Fmax=32 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 336; - n_interrupts = 36; - signature = 0x1e 0x95 0x3b; - memory "flash" size = 0x8000; page_size = 512; offset = 0x800000; readsize = 256; ; - - memory "sram" - size = 4096; - offset = 0x7000; - ; ; #------------------------------------------------------------ -# AVR32DD20 +# AVR32DA32 #------------------------------------------------------------ -part parent ".avr-dd-du" # 32dd20 - desc = "AVR32DD20"; - id = "32dd20"; - variants = - "AVR32DD20-I/REB: VQFN20, Fmax=24 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "AVR32DD20-I/SO: SOIC20, Fmax=24 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "AVR32DD20-SOIC: DIP20, Fmax=32 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "AVR32DD20-VQFN: QFP20, Fmax=32 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 337; - n_interrupts = 36; - signature = 0x1e 0x95 0x3a; +part parent ".avrdx" + desc = "AVR32DA32"; + id = "avr32da32"; + family_id = " AVR"; + mcuid = 342; + n_interrupts = 44; + signature = 0x1e 0x95 0x33; - memory "flash" - size = 0x8000; - page_size = 512; - offset = 0x800000; + memory "eeprom" + size = 512; + offset = 0x1400; readsize = 256; ; - memory "sram" - size = 4096; - offset = 0x7000; - ; -; - -#------------------------------------------------------------ -# AVR32DD28 -#------------------------------------------------------------ - -part parent ".avr-dd-du" # 32dd28 - desc = "AVR32DD28"; - id = "32dd28"; - variants = - "AVR32DD28-I/SO: SOIC28, Fmax=24 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "AVR32DD28-I/SP: SPDIP28, Fmax=24 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "AVR32DD28-I/SS: SSOP28, Fmax=24 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "AVR32DD28-I/STX: N/A, Fmax=24 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "AVR32DD28-SPDIP/SSOP/SOIC: DIP28, Fmax=32 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "AVR32DD28-VQFN: QFP28, Fmax=32 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 340; - n_interrupts = 36; - signature = 0x1e 0x95 0x39; - memory "flash" size = 0x8000; page_size = 512; offset = 0x800000; readsize = 256; ; - - memory "sram" - size = 4096; - offset = 0x7000; - ; ; #------------------------------------------------------------ -# AVR32DD32 +# AVR32DA48 #------------------------------------------------------------ -part parent ".avr-dd-du" # 32dd32 - desc = "AVR32DD32"; - id = "32dd32"; - variants = - "AVR32DD32-I/PT: TQFP32, Fmax=24 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "AVR32DD32-I/RXB: VQFN32, Fmax=24 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "AVR32DD32-VQFN/TQFP: QFP32, Fmax=32 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 344; - n_interrupts = 36; - signature = 0x1e 0x95 0x38; +part parent ".avrdx" + desc = "AVR32DA48"; + id = "avr32da48"; + family_id = " AVR"; + mcuid = 346; + n_interrupts = 58; + signature = 0x1e 0x95 0x32; - memory "flash" - size = 0x8000; - page_size = 512; - offset = 0x800000; + memory "eeprom" + size = 512; + offset = 0x1400; readsize = 256; ; - memory "sram" - size = 4096; - offset = 0x7000; - ; -; - -#------------------------------------------------------------ -# AVR64DD14 -#------------------------------------------------------------ - -part parent ".avr-dd-du" # 64dd14 - desc = "AVR64DD14"; - id = "64dd14"; - variants = - "AVR64DD14-I/SL: SOIC14, Fmax=24 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "AVR64DD14-SOIC: DIP14, Fmax=32 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 349; - n_interrupts = 36; - signature = 0x1e 0x96 0x1d; - memory "flash" - size = 0x10000; + size = 0x8000; page_size = 512; offset = 0x800000; readsize = 256; ; - - memory "sram" - size = 8192; - offset = 0x6000; - ; ; #------------------------------------------------------------ -# AVR64DD20 +# AVR64DA28 #------------------------------------------------------------ -part parent ".avr-dd-du" # 64dd20 - desc = "AVR64DD20"; - id = "64dd20"; - variants = - "AVR64DD20-I/SO: SOIC20, Fmax=24 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "AVR64DD20-SOIC: DIP20, Fmax=32 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 350; - n_interrupts = 36; - signature = 0x1e 0x96 0x1c; +part parent ".avrdx" + desc = "AVR64DA28"; + id = "avr64da28"; + family_id = " AVR"; + mcuid = 351; + n_interrupts = 41; + signature = 0x1e 0x96 0x15; - memory "flash" - size = 0x10000; - page_size = 512; - offset = 0x800000; + memory "eeprom" + size = 512; + offset = 0x1400; readsize = 256; ; - memory "sram" - size = 8192; - offset = 0x6000; - ; -; - -#------------------------------------------------------------ -# AVR64DD28 -#------------------------------------------------------------ - -part parent ".avr-dd-du" # 64dd28 - desc = "AVR64DD28"; - id = "64dd28"; - variants = - "AVR64DD28-I/SO: SOIC28, Fmax=24 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "AVR64DD28-I/SP: SPDIP28, Fmax=24 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "AVR64DD28-I/SS: SSOP28, Fmax=24 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "AVR64DD28-I/STX: VQFN28, Fmax=24 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "AVR64DD28-SPDIP/SSOP/SOIC: DIP28, Fmax=32 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "AVR64DD28-VQFN: QFP28, Fmax=32 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 353; - n_interrupts = 36; - signature = 0x1e 0x96 0x1b; - memory "flash" size = 0x10000; page_size = 512; offset = 0x800000; readsize = 256; ; - - memory "sram" - size = 8192; - offset = 0x6000; - ; ; #------------------------------------------------------------ -# AVR64DD32 +# AVR64DA32 #------------------------------------------------------------ -part parent ".avr-dd-du" # 64dd32 - desc = "AVR64DD32"; - id = "64dd32"; - variants = - "AVR64DD32-I/PT: TQFP32, Fmax=24 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "AVR64DD32-I/RXB: VQFN32, Fmax=24 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "AVR64DD32-VQFN/TQFP: QFP32, Fmax=32 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 357; - n_interrupts = 36; - signature = 0x1e 0x96 0x1a; +part parent ".avrdx" + desc = "AVR64DA32"; + id = "avr64da32"; + family_id = " AVR"; + mcuid = 355; + n_interrupts = 44; + signature = 0x1e 0x96 0x14; - memory "flash" - size = 0x10000; - page_size = 512; - offset = 0x800000; + memory "eeprom" + size = 512; + offset = 0x1400; readsize = 256; ; - memory "sram" - size = 8192; - offset = 0x6000; - ; -; - -#------------------------------------------------------------ -# AVR64DU28 -#------------------------------------------------------------ - -part parent ".avr-dd-du" # 64du28 - desc = "AVR64DU28"; - id = "64du28"; - variants = - "AVR64DU28-SSOP/SPDIP: DIP28, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "AVR64DU28-VQFN: QFP28, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 384; - n_interrupts = 34; - signature = 0x1e 0x96 0x22; - memory "flash" size = 0x10000; page_size = 512; offset = 0x800000; readsize = 256; - ; - - memory "fuse5" - bitmask = 0xfb; - ; - - memory "fuse6" - bitmask = 0x0f; - ; - - memory "fusea" - size = 2; - initval = 0x03; - bitmask = 0xfff3; - offset = 0x105a; - readsize = 1; - ; - - memory "pdicfg" - alias "fusea"; - ; - - memory "prodsig" - offset = 0x1080; - ; - - memory "signature" - offset = 0x1080; - ; - - memory "tempsense" - offset = 0x1084; - ; - - memory "sernum" - offset = 0x1090; - ; - - memory "bootrow" - size = 256; - page_size = 256; - offset = 0x1100; - readsize = 256; - ; - - memory "userrow" - size = 512; - page_size = 512; - offset = 0x1200; - ; - - memory "sram" - size = 8192; - offset = 0x6000; - ; -; - -#------------------------------------------------------------ -# AVR64DU32 -#------------------------------------------------------------ - -part parent "64du28" # 64du32 - desc = "AVR64DU32"; - id = "64du32"; - variants = - "AVR64DU32-VQFN/TQFP: QFP32, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 385; - signature = 0x1e 0x96 0x21; -; - -#------------------------------------------------------------ -# AVR16DU14 -#------------------------------------------------------------ - -part parent "64du28" # 16du14 - desc = "AVR16DU14"; - id = "16du14"; - variants = - "AVR16DU14-SOIC: DIP14, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 386; - signature = 0x1e 0x94 0x3b; - - memory "flash" - size = 0x4000; - ; - - memory "sram" - size = 2048; - offset = 0x7800; - ; -; - -#------------------------------------------------------------ -# AVR16DU20 -#------------------------------------------------------------ - -part parent "16du14" # 16du20 - desc = "AVR16DU20"; - id = "16du20"; - variants = - "AVR16DU20-SSOP: DIP20, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "AVR16DU20-VQFN: QFP20, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 387; - signature = 0x1e 0x94 0x3a; + ; ; #------------------------------------------------------------ -# AVR16DU28 +# AVR64DA48 #------------------------------------------------------------ -part parent "16du14" # 16du28 - desc = "AVR16DU28"; - id = "16du28"; - variants = - "AVR16DU28-SSOP/SPDIP: DIP28, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "AVR16DU28-VQFN: QFP28, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 388; - signature = 0x1e 0x94 0x39; -; +part parent ".avrdx" + desc = "AVR64DA48"; + id = "avr64da48"; + family_id = " AVR"; + mcuid = 359; + n_interrupts = 58; + signature = 0x1e 0x96 0x13; -#------------------------------------------------------------ -# AVR16DU32 -#------------------------------------------------------------ + memory "eeprom" + size = 512; + offset = 0x1400; + readsize = 256; + ; -part parent "16du14" # 16du32 - desc = "AVR16DU32"; - id = "16du32"; - variants = - "AVR16DU32-VQFN/TQFP: QFP32, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 389; - signature = 0x1e 0x94 0x38; + memory "flash" + size = 0x10000; + page_size = 512; + offset = 0x800000; + readsize = 256; + ; ; #------------------------------------------------------------ -# AVR32DU14 +# AVR64DA64 #------------------------------------------------------------ -part parent "64du28" # 32du14 - desc = "AVR32DU14"; - id = "32du14"; - variants = - "AVR32DU14-SOIC: DIP14, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 390; - signature = 0x1e 0x95 0x4f; +part parent ".avrdx" + desc = "AVR64DA64"; + id = "avr64da64"; + family_id = " AVR"; + mcuid = 362; + n_interrupts = 64; + signature = 0x1e 0x96 0x12; - memory "flash" - size = 0x8000; + memory "eeprom" + size = 512; + offset = 0x1400; + readsize = 256; ; - memory "sram" - size = 4096; - offset = 0x7000; + memory "flash" + size = 0x10000; + page_size = 512; + offset = 0x800000; + readsize = 256; ; ; #------------------------------------------------------------ -# AVR32DU20 -#------------------------------------------------------------ - -part parent "32du14" # 32du20 - desc = "AVR32DU20"; - id = "32du20"; - variants = - "AVR32DU20-SSOP: DIP20, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "AVR32DU20-VQFN: QFP20, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 391; - signature = 0x1e 0x95 0x4e; -; - -#------------------------------------------------------------ -# AVR32DU28 +# AVR128DA28 #------------------------------------------------------------ -part parent "32du14" # 32du28 - desc = "AVR32DU28"; - id = "32du28"; - variants = - "AVR32DU28-SSOP/SPDIP: DIP28, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "AVR32DU28-VQFN: QFP28, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 392; - signature = 0x1e 0x95 0x40; -; +part parent ".avrdx" + desc = "AVR128DA28"; + id = "avr128da28"; + family_id = " AVR"; + mcuid = 364; + n_interrupts = 41; + signature = 0x1e 0x97 0x0a; -#------------------------------------------------------------ -# AVR32DU32 -#------------------------------------------------------------ + memory "eeprom" + size = 512; + offset = 0x1400; + readsize = 256; + ; -part parent "32du14" # 32du32 - desc = "AVR32DU32"; - id = "32du32"; - variants = - "AVR32DU32-VQFN/TQFP: QFP32, Fmax=32 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 393; - signature = 0x1e 0x95 0x3f; + memory "flash" + size = 0x20000; + page_size = 512; + offset = 0x800000; + readsize = 256; + ; ; #------------------------------------------------------------ -# AVR-Ex family common values +# AVR128DA32 #------------------------------------------------------------ -part # .avr-ex - desc = "AVR-Ex family common values"; - id = ".avr-ex"; - family_id = "AVR "; - prog_modes = PM_SPM | PM_UPDI; - n_boot_sections = 1; - boot_section_size = 256; - # Shared UPDI pin, HV on _RESET - hvupdi_variant = 2; - nvm_base = 0x1000; - ocd_base = 0x0f80; - syscfg_base = 0x0f00; - factory_fcpu = 20000000; - - memory "fuses" - size = 16; - offset = 0x1050; - readsize = 1; - ; - - memory "fuse0" - size = 1; - initval = 0x00; - offset = 0x1050; - readsize = 1; - ; +part parent ".avrdx" + desc = "AVR128DA32"; + id = "avr128da32"; + family_id = " AVR"; + mcuid = 366; + n_interrupts = 44; + signature = 0x1e 0x97 0x09; - memory "wdtcfg" - alias "fuse0"; + memory "eeprom" + size = 512; + offset = 0x1400; + readsize = 256; ; - memory "fuse1" - size = 1; - initval = 0x00; - offset = 0x1051; - readsize = 1; + memory "flash" + size = 0x20000; + page_size = 512; + offset = 0x800000; + readsize = 256; ; +; - memory "bodcfg" - alias "fuse1"; - ; +#------------------------------------------------------------ +# AVR128DA48 +#------------------------------------------------------------ - memory "fuse2" - size = 1; - initval = 0x00; - bitmask = 0x08; - offset = 0x1052; - readsize = 1; - ; +part parent ".avrdx" + desc = "AVR128DA48"; + id = "avr128da48"; + family_id = " AVR"; + mcuid = 368; + n_interrupts = 58; + signature = 0x1e 0x97 0x08; - memory "osccfg" - alias "fuse2"; + memory "eeprom" + size = 512; + offset = 0x1400; + readsize = 256; ; - memory "fuse5" - size = 1; - initval = 0xd0; - bitmask = 0xf9; - offset = 0x1055; - readsize = 1; + memory "flash" + size = 0x20000; + page_size = 512; + offset = 0x800000; + readsize = 256; ; +; - memory "syscfg0" - alias "fuse5"; - ; +#------------------------------------------------------------ +# AVR128DA64 +#------------------------------------------------------------ - memory "fuse6" - size = 1; - initval = 0x07; - bitmask = 0x07; - offset = 0x1056; - readsize = 1; - ; +part parent ".avrdx" + desc = "AVR128DA64"; + id = "avr128da64"; + family_id = " AVR"; + mcuid = 370; + n_interrupts = 64; + signature = 0x1e 0x97 0x07; - memory "syscfg1" - alias "fuse6"; + memory "eeprom" + size = 512; + offset = 0x1400; + readsize = 256; ; - memory "fuse7" - size = 1; - initval = 0x00; - offset = 0x1057; - readsize = 1; + memory "flash" + size = 0x20000; + page_size = 512; + offset = 0x800000; + readsize = 256; ; +; - memory "codesize" - alias "fuse7"; - ; +#------------------------------------------------------------ +# AVR32DB28 +#------------------------------------------------------------ - memory "append" - alias "fuse7"; - ; +part parent ".avrdx" + desc = "AVR32DB28"; + id = "avr32db28"; + mcuid = 339; + n_interrupts = 42; + signature = 0x1e 0x95 0x37; - memory "fuse8" - size = 1; - initval = 0x00; - offset = 0x1058; - readsize = 1; + memory "eeprom" + size = 512; + offset = 0x1400; + readsize = 256; ; - memory "bootsize" - alias "fuse8"; + memory "flash" + size = 0x8000; + page_size = 512; + offset = 0x800000; + readsize = 256; ; +; - memory "bootend" - alias "fuse8"; - ; +#------------------------------------------------------------ +# AVR32DB32 +#------------------------------------------------------------ - memory "lock" - size = 4; - offset = 0x1040; - readsize = 4; - ; +part parent ".avrdx" + desc = "AVR32DB32"; + id = "avr32db32"; + mcuid = 343; + n_interrupts = 44; + signature = 0x1e 0x95 0x36; - memory "prodsig" - size = 128; - page_size = 128; - offset = 0x1100; - readsize = 128; + memory "eeprom" + size = 512; + offset = 0x1400; + readsize = 256; ; - memory "sigrow" - alias "prodsig"; + memory "flash" + size = 0x8000; + page_size = 512; + offset = 0x800000; + readsize = 256; ; +; - memory "signature" - size = 3; - offset = 0x1100; - readsize = 3; - ; +#------------------------------------------------------------ +# AVR32DB48 +#------------------------------------------------------------ - memory "tempsense" - size = 4; - offset = 0x1104; - readsize = 1; - ; +part parent ".avrdx" + desc = "AVR32DB48"; + id = "avr32db48"; + mcuid = 347; + n_interrupts = 61; + signature = 0x1e 0x95 0x35; - memory "sernum" - size = 16; - offset = 0x1110; - readsize = 1; + memory "eeprom" + size = 512; + offset = 0x1400; + readsize = 256; ; - memory "userrow" - size = 64; - page_size = 64; - offset = 0x1080; - readsize = 64; + memory "flash" + size = 0x8000; + page_size = 512; + offset = 0x800000; + readsize = 256; ; +; - memory "usersig" - alias "userrow"; - ; +#------------------------------------------------------------ +# AVR64DB28 +#------------------------------------------------------------ - memory "io" - size = 4160; - readsize = 1; +part parent ".avrdx" + desc = "AVR64DB28"; + id = "avr64db28"; + mcuid = 352; + n_interrupts = 42; + signature = 0x1e 0x96 0x19; + + memory "eeprom" + size = 512; + offset = 0x1400; + readsize = 256; ; - memory "sib" - size = 32; - readsize = 1; + memory "flash" + size = 0x10000; + page_size = 512; + offset = 0x800000; + readsize = 256; ; ; #------------------------------------------------------------ -# AVR8EA28 +# AVR64DB32 #------------------------------------------------------------ -part parent ".avr-ex" # 8ea28 - desc = "AVR8EA28"; - id = "8ea28"; - mcuid = 327; - signature = 0x1e 0x93 0x2c; +part parent ".avrdx" + desc = "AVR64DB32"; + id = "avr64db32"; + mcuid = 356; + n_interrupts = 44; + signature = 0x1e 0x96 0x18; memory "eeprom" size = 512; - page_size = 8; offset = 0x1400; readsize = 256; ; memory "flash" - size = 8192; - page_size = 64; + size = 0x10000; + page_size = 512; offset = 0x800000; readsize = 256; ; +; - memory "fuse0" - initval = -1; - ; +#------------------------------------------------------------ +# AVR64DB48 +#------------------------------------------------------------ - memory "fuse1" - initval = -1; - ; +part parent ".avrdx" + desc = "AVR64DB48"; + id = "avr64db48"; + mcuid = 360; + n_interrupts = 61; + signature = 0x1e 0x96 0x17; - memory "fuse2" - initval = -1; - bitmask = -1; + memory "eeprom" + size = 512; + offset = 0x1400; + readsize = 256; ; - memory "fuse5" - initval = -1; - bitmask = -1; + memory "flash" + size = 0x10000; + page_size = 512; + offset = 0x800000; + readsize = 256; ; +; - memory "fuse6" - initval = -1; - bitmask = -1; - ; +#------------------------------------------------------------ +# AVR64DB64 +#------------------------------------------------------------ - memory "fuse7" - initval = -1; +part parent ".avrdx" + desc = "AVR64DB64"; + id = "avr64db64"; + mcuid = 363; + n_interrupts = 65; + signature = 0x1e 0x96 0x16; + + memory "eeprom" + size = 512; + offset = 0x1400; + readsize = 256; ; - memory "fuse8" - initval = -1; + memory "flash" + size = 0x10000; + page_size = 512; + offset = 0x800000; + readsize = 256; ; ; #------------------------------------------------------------ -# AVR8EA32 +# AVR128DB28 #------------------------------------------------------------ -part parent ".avr-ex" # 8ea32 - desc = "AVR8EA32"; - id = "8ea32"; - mcuid = 328; - signature = 0x1e 0x93 0x2b; +part parent ".avrdx" + desc = "AVR128DB28"; + id = "avr128db28"; + mcuid = 365; + n_interrupts = 42; + signature = 0x1e 0x97 0x0e; memory "eeprom" size = 512; - page_size = 8; offset = 0x1400; readsize = 256; ; memory "flash" - size = 8192; - page_size = 64; + size = 0x20000; + page_size = 512; offset = 0x800000; readsize = 256; ; +; - memory "fuse0" - initval = -1; - ; +#------------------------------------------------------------ +# AVR128DB32 +#------------------------------------------------------------ - memory "fuse1" - initval = -1; - ; +part parent ".avrdx" + desc = "AVR128DB32"; + id = "avr128db32"; + mcuid = 367; + n_interrupts = 44; + signature = 0x1e 0x97 0x0d; - memory "fuse2" - initval = -1; - bitmask = -1; + memory "eeprom" + size = 512; + offset = 0x1400; + readsize = 256; ; - memory "fuse5" - initval = -1; - bitmask = -1; + memory "flash" + size = 0x20000; + page_size = 512; + offset = 0x800000; + readsize = 256; ; +; - memory "fuse6" - initval = -1; - bitmask = -1; - ; +#------------------------------------------------------------ +# AVR128DB48 +#------------------------------------------------------------ - memory "fuse7" - initval = -1; +part parent ".avrdx" + desc = "AVR128DB48"; + id = "avr128db48"; + mcuid = 369; + n_interrupts = 61; + signature = 0x1e 0x97 0x0c; + + memory "eeprom" + size = 512; + offset = 0x1400; + readsize = 256; ; - memory "fuse8" - initval = -1; + memory "flash" + size = 0x20000; + page_size = 512; + offset = 0x800000; + readsize = 256; ; ; #------------------------------------------------------------ -# AVR16EA28 +# AVR128DB64 #------------------------------------------------------------ -part parent ".avr-ex" # 16ea28 - desc = "AVR16EA28"; - id = "16ea28"; - variants = - "AVR16EA28-SSOP/SPDIP: DIP28, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "AVR16EA28-VQFN: QFP28, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 332; - n_interrupts = 43; - signature = 0x1e 0x94 0x37; +part parent ".avrdx" + desc = "AVR128DB64"; + id = "avr128db64"; + mcuid = 371; + n_interrupts = 65; + signature = 0x1e 0x97 0x0b; memory "eeprom" size = 512; - page_size = 8; offset = 0x1400; readsize = 256; ; memory "flash" - size = 0x4000; - page_size = 64; + size = 0x20000; + page_size = 512; offset = 0x800000; readsize = 256; ; +; - memory "lock" - initval = 0x5cc5c55c; +#------------------------------------------------------------ +# AVR16DD14 +#------------------------------------------------------------ + +part parent ".avrdx" + desc = "AVR16DD14"; + id = "avr16dd14"; + mcuid = 329; + n_interrupts = 36; + hvupdi_variant = 2; + signature = 0x1e 0x94 0x34; + + memory "eeprom" + size = 256; + offset = 0x1400; + readsize = 256; ; - memory "sram" - size = 2048; - offset = 0x7800; + memory "flash" + size = 0x4000; + page_size = 512; + offset = 0x800000; + readsize = 256; ; ; #------------------------------------------------------------ -# AVR16EA32 +# AVR16DD20 #------------------------------------------------------------ -part parent ".avr-ex" # 16ea32 - desc = "AVR16EA32"; - id = "16ea32"; - variants = - "AVR16EA32-VQFN/TQFP: QFP32, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 334; - n_interrupts = 43; - signature = 0x1e 0x94 0x36; +part parent ".avrdx" + desc = "AVR16DD20"; + id = "avr16dd20"; + mcuid = 330; + n_interrupts = 36; + hvupdi_variant = 2; + signature = 0x1e 0x94 0x33; memory "eeprom" - size = 512; - page_size = 8; + size = 256; offset = 0x1400; readsize = 256; ; memory "flash" size = 0x4000; - page_size = 64; + page_size = 512; offset = 0x800000; readsize = 256; ; +; - memory "lock" - initval = 0x5cc5c55c; +#------------------------------------------------------------ +# AVR16DD28 +#------------------------------------------------------------ + +part parent ".avrdx" + desc = "AVR16DD28"; + id = "avr16dd28"; + mcuid = 331; + n_interrupts = 36; + hvupdi_variant = 2; + signature = 0x1e 0x94 0x32; + + memory "eeprom" + size = 256; + offset = 0x1400; + readsize = 256; ; - memory "sram" - size = 2048; - offset = 0x7800; + memory "flash" + size = 0x4000; + page_size = 512; + offset = 0x800000; + readsize = 256; ; ; #------------------------------------------------------------ -# AVR16EA48 +# AVR16DD32 #------------------------------------------------------------ -part parent ".avr-ex" # 16ea48 - desc = "AVR16EA48"; - id = "16ea48"; - variants = - "AVR16EA48-VQFN/TQFP: QFP48, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 335; - n_interrupts = 45; - signature = 0x1e 0x94 0x35; +part parent ".avrdx" + desc = "AVR16DD32"; + id = "avr16dd32"; + mcuid = 333; + n_interrupts = 36; + hvupdi_variant = 2; + signature = 0x1e 0x94 0x31; + + memory "eeprom" + size = 256; + offset = 0x1400; + readsize = 256; + ; + + memory "flash" + size = 0x4000; + page_size = 512; + offset = 0x800000; + readsize = 256; + ; +; + +#------------------------------------------------------------ +# AVR32DD14 +#------------------------------------------------------------ + +part parent ".avrdx" + desc = "AVR32DD14"; + id = "avr32dd14"; + mcuid = 336; + n_interrupts = 36; + hvupdi_variant = 2; + signature = 0x1e 0x95 0x3b; memory "eeprom" - size = 512; - page_size = 8; + size = 256; offset = 0x1400; readsize = 256; ; memory "flash" - size = 0x4000; - page_size = 64; + size = 0x8000; + page_size = 512; offset = 0x800000; readsize = 256; ; - - memory "lock" - initval = 0x5cc5c55c; - ; - - memory "sram" - size = 2048; - offset = 0x7800; - ; ; #------------------------------------------------------------ -# AVR32EA28 +# AVR32DD20 #------------------------------------------------------------ -part parent ".avr-ex" # 32ea28 - desc = "AVR32EA28"; - id = "32ea28"; - variants = - "AVR32EA28-SSOP/SPDIP: DIP28, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "AVR32EA28-VQFN: QFP28, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 341; - n_interrupts = 43; - signature = 0x1e 0x95 0x3e; +part parent ".avrdx" + desc = "AVR32DD20"; + id = "avr32dd20"; + mcuid = 337; + n_interrupts = 36; + hvupdi_variant = 2; + signature = 0x1e 0x95 0x3a; memory "eeprom" - size = 512; - page_size = 8; + size = 256; offset = 0x1400; readsize = 256; ; memory "flash" size = 0x8000; - page_size = 64; + page_size = 512; offset = 0x800000; readsize = 256; ; - - memory "lock" - initval = 0x5cc5c55c; - ; - - memory "sram" - size = 4096; - offset = 0x7000; - ; ; #------------------------------------------------------------ -# AVR32EA32 +# AVR32DD28 #------------------------------------------------------------ -part parent ".avr-ex" # 32ea32 - desc = "AVR32EA32"; - id = "32ea32"; - variants = - "AVR32EA32-VQFN/TQFP: QFP32, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 345; - n_interrupts = 43; - signature = 0x1e 0x95 0x3d; +part parent ".avrdx" + desc = "AVR32DD28"; + id = "avr32dd28"; + mcuid = 340; + n_interrupts = 36; + hvupdi_variant = 2; + signature = 0x1e 0x95 0x39; memory "eeprom" - size = 512; - page_size = 8; + size = 256; offset = 0x1400; readsize = 256; ; memory "flash" size = 0x8000; - page_size = 64; + page_size = 512; offset = 0x800000; readsize = 256; ; - - memory "lock" - initval = 0x5cc5c55c; - ; - - memory "sram" - size = 4096; - offset = 0x7000; - ; ; #------------------------------------------------------------ -# AVR32EA48 +# AVR32DD32 #------------------------------------------------------------ -part parent ".avr-ex" # 32ea48 - desc = "AVR32EA48"; - id = "32ea48"; - variants = - "AVR32EA48-VQFN/TQFP: QFP48, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 348; - n_interrupts = 45; - signature = 0x1e 0x95 0x3c; +part parent ".avrdx" + desc = "AVR32DD32"; + id = "avr32dd32"; + mcuid = 344; + n_interrupts = 36; + hvupdi_variant = 2; + signature = 0x1e 0x95 0x38; memory "eeprom" - size = 512; - page_size = 8; + size = 256; offset = 0x1400; readsize = 256; ; memory "flash" size = 0x8000; - page_size = 64; + page_size = 512; offset = 0x800000; readsize = 256; ; - - memory "lock" - initval = 0x5cc5c55c; - ; - - memory "sram" - size = 4096; - offset = 0x7000; - ; ; #------------------------------------------------------------ -# AVR64EA28 +# AVR64DD14 #------------------------------------------------------------ -part parent ".avr-ex" # 64ea28 - desc = "AVR64EA28"; - id = "64ea28"; - variants = - "AVR64EA28-I/SP: SPDIP28, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "AVR64EA28-I/SS: SSOP28, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "AVR64EA28-SSOP/SPDIP: DIP28, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "AVR64EA28-VQFN: QFP28, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 354; - n_interrupts = 43; - signature = 0x1e 0x96 0x20; +part parent ".avrdx" + desc = "AVR64DD14"; + id = "avr64dd14"; + mcuid = 349; + n_interrupts = 36; + hvupdi_variant = 2; + signature = 0x1e 0x96 0x1d; memory "eeprom" - size = 512; - page_size = 8; + size = 256; offset = 0x1400; readsize = 256; ; memory "flash" size = 0x10000; - page_size = 128; + page_size = 512; offset = 0x800000; readsize = 256; ; - - memory "lock" - initval = 0x5cc5c55c; - ; - - memory "sram" - size = 6144; - offset = 0x6800; - ; ; #------------------------------------------------------------ -# AVR64EA32 +# AVR64DD20 #------------------------------------------------------------ -part parent ".avr-ex" # 64ea32 - desc = "AVR64EA32"; - id = "64ea32"; - variants = - "AVR64EA32-I/PT: TQFP32, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "AVR64EA32-I/RXB: VQFN32, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "AVR64EA32-VQFN/TQFP: QFP32, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 358; - n_interrupts = 43; - signature = 0x1e 0x96 0x1f; +part parent ".avrdx" + desc = "AVR64DD20"; + id = "avr64dd20"; + mcuid = 350; + n_interrupts = 36; + hvupdi_variant = 2; + signature = 0x1e 0x96 0x1c; memory "eeprom" - size = 512; - page_size = 8; + size = 256; offset = 0x1400; readsize = 256; ; memory "flash" size = 0x10000; - page_size = 128; + page_size = 512; offset = 0x800000; readsize = 256; ; - - memory "lock" - initval = 0x5cc5c55c; - ; - - memory "sram" - size = 6144; - offset = 0x6800; - ; ; #------------------------------------------------------------ -# AVR64EA48 +# AVR64DD28 #------------------------------------------------------------ -part parent ".avr-ex" # 64ea48 - desc = "AVR64EA48"; - id = "64ea48"; - variants = - "AVR64EA48-I/6LX: VQFN48, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "AVR64EA48-I/PT: TQFP48, Fmax=20 MHz, T=[-40 C, 85 C], Vcc=[1.8 V, 5.5 V]", - "AVR64EA48-VQFN/TQFP: QFP48, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 361; - n_interrupts = 45; - signature = 0x1e 0x96 0x1e; +part parent ".avrdx" + desc = "AVR64DD28"; + id = "avr64dd28"; + mcuid = 353; + n_interrupts = 36; + hvupdi_variant = 2; + signature = 0x1e 0x96 0x1b; memory "eeprom" - size = 512; - page_size = 8; + size = 256; offset = 0x1400; readsize = 256; ; memory "flash" size = 0x10000; - page_size = 128; + page_size = 512; offset = 0x800000; readsize = 256; ; - - memory "lock" - initval = 0x5cc5c55c; - ; - - memory "sram" - size = 6144; - offset = 0x6800; - ; ; #------------------------------------------------------------ -# AVR16EB14 +# AVR64DD32 #------------------------------------------------------------ -part parent ".avr-ex" # 16eb14 - desc = "AVR16EB14"; - id = "16eb14"; - variants = - "AVR16EB14-SOIC/TSSOP: DIP14, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 380; - n_interrupts = 31; - signature = 0x1e 0x94 0x49; +part parent ".avrdx" + desc = "AVR64DD32"; + id = "avr64dd32"; + mcuid = 357; + n_interrupts = 36; + hvupdi_variant = 2; + signature = 0x1e 0x96 0x1a; memory "eeprom" - size = 512; - page_size = 8; + size = 256; offset = 0x1400; readsize = 256; ; memory "flash" - size = 0x4000; - page_size = 64; + size = 0x10000; + page_size = 512; offset = 0x800000; readsize = 256; ; +; - memory "fusea" - size = 2; - initval = 0x03; - bitmask = 0xfff3; - offset = 0x105a; - readsize = 1; - ; - - memory "pdicfg" - alias "fusea"; - ; - - memory "lock" - initval = 0x5cc5c55c; - ; - - memory "prodsig" - offset = 0x1080; - ; - - memory "signature" - offset = 0x1080; - ; - - memory "tempsense" - offset = 0x1084; - ; +#------------------------------------------------------------ +# AVR-Ex family common values +#------------------------------------------------------------ - memory "sernum" - offset = 0x1090; - ; +part parent ".avrdx" + desc = "AVR-Ex family common values"; + id = ".avrex"; + # Shared UPDI pin, HV on _RESET + hvupdi_variant = 2; - memory "bootrow" + memory "userrow" size = 64; page_size = 64; - offset = 0x1100; - readsize = 256; - ; - - memory "userrow" - offset = 0x1200; + readsize = 64; ; - memory "sram" - size = 2048; - offset = 0x7800; + memory "usersig" + alias "userrow"; ; ; #------------------------------------------------------------ -# AVR16EB20 -#------------------------------------------------------------ - -part parent "16eb14" # 16eb20 - desc = "AVR16EB20"; - id = "16eb20"; - variants = - "AVR16EB20-SSOP: DIP20, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "AVR16EB20-VQFN: QFP20, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 381; - signature = 0x1e 0x94 0x40; -; - -#------------------------------------------------------------ -# AVR16EB28 +# AVR8EA28 #------------------------------------------------------------ -part parent "16eb14" # 16eb28 - desc = "AVR16EB28"; - id = "16eb28"; - variants = - "AVR16EB28-SSOP/SPDIP: DIP28, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "AVR16EB28-VQFN: QFP28, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 382; - signature = 0x1e 0x94 0x3f; -; +part parent ".avrex" + desc = "AVR8EA28"; + id = "avr8ea28"; + mcuid = 327; + signature = 0x1e 0x93 0x2c; -#------------------------------------------------------------ -# AVR16EB32 -#------------------------------------------------------------ + memory "eeprom" + size = 512; + page_size = 8; + offset = 0x1400; + readsize = 256; + ; -part parent "16eb14" # 16eb32 - desc = "AVR16EB32"; - id = "16eb32"; - variants = - "AVR16EB32-VQFN/TQFP: QFP32, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 383; - signature = 0x1e 0x94 0x3e; + memory "flash" + size = 8192; + page_size = 64; + offset = 0x800000; + readsize = 256; + ; ; #------------------------------------------------------------ -# AVR32EB14 +# AVR8EA32 #------------------------------------------------------------ -part parent "16eb14" # 32eb14 - desc = "AVR32EB14"; - id = "32eb14"; - variants = - "AVR32EB14-SOIC/TSSOP: DIP14, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 398; - signature = 0x1e 0x95 0x2d; +part parent ".avrex" + desc = "AVR8EA32"; + id = "avr8ea32"; + mcuid = 328; + signature = 0x1e 0x93 0x2b; - memory "flash" - size = 0x8000; + memory "eeprom" + size = 512; + page_size = 8; + offset = 0x1400; + readsize = 256; ; - memory "sram" - size = 3072; - offset = 0x7400; + memory "flash" + size = 8192; + page_size = 64; + offset = 0x800000; + readsize = 256; ; ; #------------------------------------------------------------ -# AVR32EB20 +# AVR16EA28 #------------------------------------------------------------ -part parent "16eb20" # 32eb20 - desc = "AVR32EB20"; - id = "32eb20"; - variants = - "AVR32EB20-SSOP: DIP20, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 399; - signature = 0x1e 0x95 0x2c; +part parent ".avrex" + desc = "AVR16EA28"; + id = "avr16ea28"; + mcuid = 332; + signature = 0x1e 0x94 0x37; - memory "flash" - size = 0x8000; + memory "eeprom" + size = 512; + page_size = 8; + offset = 0x1400; + readsize = 256; ; - memory "sram" - size = 3072; - offset = 0x7400; + memory "flash" + size = 0x4000; + page_size = 64; + offset = 0x800000; + readsize = 256; ; ; #------------------------------------------------------------ -# AVR32EB28 +# AVR16EA32 #------------------------------------------------------------ -part parent "16eb28" # 32eb28 - desc = "AVR32EB28"; - id = "32eb28"; - variants = - "AVR32EB28-SSOP/SPDIP: DIP28, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "AVR32EB28-VQFN: QFP28, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 400; - signature = 0x1e 0x95 0x2b; +part parent ".avrex" + desc = "AVR16EA32"; + id = "avr16ea32"; + mcuid = 334; + signature = 0x1e 0x94 0x36; - memory "flash" - size = 0x8000; + memory "eeprom" + size = 512; + page_size = 8; + offset = 0x1400; + readsize = 256; ; - memory "sram" - size = 3072; - offset = 0x7400; + memory "flash" + size = 0x4000; + page_size = 64; + offset = 0x800000; + readsize = 256; ; ; #------------------------------------------------------------ -# AVR32EB32 +# AVR16EA48 #------------------------------------------------------------ -part parent "16eb32" # 32eb32 - desc = "AVR32EB32"; - id = "32eb32"; - variants = - "AVR32EB32-VQFN/TQFP: QFP32, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 401; - signature = 0x1e 0x95 0x2a; +part parent ".avrex" + desc = "AVR16EA48"; + id = "avr16ea48"; + mcuid = 335; + signature = 0x1e 0x94 0x35; - memory "flash" - size = 0x8000; + memory "eeprom" + size = 512; + page_size = 8; + offset = 0x1400; + readsize = 256; ; - memory "sram" - size = 3072; - offset = 0x7400; + memory "flash" + size = 0x4000; + page_size = 64; + offset = 0x800000; + readsize = 256; ; ; #------------------------------------------------------------ -# AVR-Sx family common values +# AVR32EA28 #------------------------------------------------------------ -part # .avr-sx - desc = "AVR-Sx family common values"; - id = ".avr-sx"; - family_id = "AVR "; - prog_modes = PM_SPM | PM_UPDI; - n_boot_sections = 1; - boot_section_size = 512; - hvupdi_variant = 3; - nvm_base = 0x1000; - ocd_base = 0x0f80; - syscfg_base = 0x0f00; - factory_fcpu = 4000000; +part parent ".avrex" + desc = "AVR32EA28"; + id = "avr32ea28"; + mcuid = 341; + signature = 0x1e 0x95 0x3e; memory "eeprom" - size = 256; + size = 512; + page_size = 8; offset = 0x1400; readsize = 256; ; memory "flash" size = 0x8000; - page_size = 512; + page_size = 64; offset = 0x800000; readsize = 256; ; +; - memory "fuses" - size = 16; - offset = 0x1050; - readsize = 1; - ; - - memory "fuse0" - size = 1; - initval = 0x00; - offset = 0x1050; - readsize = 1; - ; - - memory "wdtcfg" - alias "fuse0"; - ; - - memory "fuse1" - size = 1; - initval = 0x00; - offset = 0x1051; - readsize = 1; - ; - - memory "bodcfg" - alias "fuse1"; - ; - - memory "fuse5" - size = 1; - initval = 0x00; - bitmask = 0xc3; - offset = 0x1055; - readsize = 1; - ; - - memory "syscfg0" - alias "fuse5"; - ; - - memory "fuse6" - size = 1; - initval = 0x48; - bitmask = 0xdf; - offset = 0x1056; - readsize = 1; - ; +#------------------------------------------------------------ +# AVR32EA32 +#------------------------------------------------------------ - memory "syscfg1" - alias "fuse6"; - ; +part parent ".avrex" + desc = "AVR32EA32"; + id = "avr32ea32"; + mcuid = 345; + signature = 0x1e 0x95 0x3d; - memory "fuse7" - size = 1; - initval = 0x00; - offset = 0x1057; - readsize = 1; + memory "eeprom" + size = 512; + page_size = 8; + offset = 0x1400; + readsize = 256; ; - memory "codesize" - alias "fuse7"; + memory "flash" + size = 0x8000; + page_size = 64; + offset = 0x800000; + readsize = 256; ; +; - memory "append" - alias "fuse7"; - ; +#------------------------------------------------------------ +# AVR32EA48 +#------------------------------------------------------------ - memory "fuse8" - size = 1; - initval = 0x00; - offset = 0x1058; - readsize = 1; - ; +part parent ".avrex" + desc = "AVR32EA48"; + id = "avr32ea48"; + mcuid = 348; + signature = 0x1e 0x95 0x3c; - memory "bootsize" - alias "fuse8"; + memory "eeprom" + size = 512; + page_size = 8; + offset = 0x1400; + readsize = 256; ; - memory "bootend" - alias "fuse8"; + memory "flash" + size = 0x8000; + page_size = 64; + offset = 0x800000; + readsize = 256; ; +; - memory "fusea" - size = 2; - initval = 0x03; - bitmask = 0xfff3; - offset = 0x105a; - readsize = 1; - ; +#------------------------------------------------------------ +# AVR64EA28 +#------------------------------------------------------------ - memory "pdicfg" - alias "fusea"; - ; +part parent ".avrex" + desc = "AVR64EA28"; + id = "avr64ea28"; + mcuid = 354; + n_interrupts = 37; + signature = 0x1e 0x96 0x20; - memory "lock" - size = 4; - initval = 0x5cc5c55c; - offset = 0x1040; - readsize = 4; + memory "eeprom" + size = 512; + page_size = 8; + offset = 0x1400; + readsize = 256; ; - memory "prodsig" - size = 128; + memory "flash" + size = 0x10000; page_size = 128; - offset = 0x1080; - readsize = 128; - ; - - memory "sigrow" - alias "prodsig"; - ; - - memory "signature" - size = 3; - offset = 0x1080; - readsize = 3; + offset = 0x800000; + readsize = 256; ; +; - memory "tempsense" - size = 4; - offset = 0x1084; - readsize = 1; - ; +#------------------------------------------------------------ +# AVR64EA32 +#------------------------------------------------------------ - memory "sernum" - size = 16; - offset = 0x1090; - readsize = 1; - ; +part parent ".avrex" + desc = "AVR64EA32"; + id = "avr64ea32"; + mcuid = 358; + n_interrupts = 37; + signature = 0x1e 0x96 0x1f; - memory "bootrow" - size = 256; - page_size = 256; - offset = 0x1100; + memory "eeprom" + size = 512; + page_size = 8; + offset = 0x1400; readsize = 256; ; - memory "userrow" - size = 512; - page_size = 512; - offset = 0x1200; - readsize = 32; + memory "flash" + size = 0x10000; + page_size = 128; + offset = 0x800000; + readsize = 256; ; +; - memory "usersig" - alias "userrow"; - ; +#------------------------------------------------------------ +# AVR64EA48 +#------------------------------------------------------------ - memory "io" - size = 4160; - readsize = 1; - ; +part parent ".avrex" + desc = "AVR64EA48"; + id = "avr64ea48"; + mcuid = 361; + n_interrupts = 45; + signature = 0x1e 0x96 0x1e; - memory "sram" - size = 4096; - offset = 0x7000; + memory "eeprom" + size = 512; + page_size = 8; + offset = 0x1400; + readsize = 256; ; - memory "sib" - size = 32; - readsize = 1; + memory "flash" + size = 0x10000; + page_size = 128; + offset = 0x800000; + readsize = 256; ; ; #------------------------------------------------------------ -# AVR32SD20 +# Logic Green parts #------------------------------------------------------------ -part parent ".avr-sx" # 32sd20 - desc = "AVR32SD20"; - id = "32sd20"; - variants = - "AVR32SD20-SSOP: DIP20, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 402; - n_interrupts = 50; - signature = 0x1e 0x95 0x54; +part parent "m88" + desc = "LGT8F88P"; + id = "lgt8f88p"; + mcuid = 227; + signature = 0x1e 0x93 0x0f; + autobaud_sync = 0x1c; ; #------------------------------------------------------------ -# AVR32SD28 +# LGT8F168P #------------------------------------------------------------ -part parent ".avr-sx" # 32sd28 - desc = "AVR32SD28"; - id = "32sd28"; - variants = - "AVR32SD28-SSOP/SPDIP: DIP28, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]", - "AVR32SD28-VQFN: QFP28, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 403; - n_interrupts = 54; - signature = 0x1e 0x95 0x53; +part parent "m168" + desc = "LGT8F168P"; + id = "lgt8f168p"; + mcuid = 228; + signature = 0x1e 0x94 0x0b; + autobaud_sync = 0x1c; ; #------------------------------------------------------------ -# AVR32SD32 +# LGT8F328P #------------------------------------------------------------ -part parent ".avr-sx" # 32sd32 - desc = "AVR32SD32"; - id = "32sd32"; - variants = - "AVR32SD32-VQFN/TQFP: QFP32, Fmax=20 MHz, T=[-40 C, 125 C], Vcc=[1.8 V, 5.5 V]"; - mcuid = 404; - n_interrupts = 56; - signature = 0x1e 0x95 0x52; +part parent "m328" + desc = "LGT8F328P"; + id = "lgt8f328p"; + mcuid = 229; + signature = 0x1e 0x95 0x0f; + autobaud_sync = 0x1c; ; diff --git a/src/avrdudess/Files/avrdude.exe b/src/avrdudess/Files/avrdude.exe index a8569ff..477bd3f 100644 Binary files a/src/avrdudess/Files/avrdude.exe and b/src/avrdudess/Files/avrdude.exe differ diff --git a/src/avrdudess/Files/presets.xml b/src/avrdudess/Files/presets.xml index 36a768a..bc70e93 100644 --- a/src/avrdudess/Files/presets.xml +++ b/src/avrdudess/Files/presets.xml @@ -27,6 +27,60 @@ 0 Default + + avr109 + m32u4 + COM1 + 57600 + + + a + w + + a + w + false + false + false + false + false + 0xFF + 0xD8 + 0xCB + false + 0xFF + false + + 0 + Arduino Leonardo (ATmega32U4) + + + avr109 + m32u4 + COM1 + 115200 + + + a + w + + a + w + false + false + false + false + false + 0xFF + 0xD8 + 0xCB + false + 0xFF + false + + 0 + Arduino Pro Micro (ATmega32U4) + arduino m328p