<?xml version="1.0" encoding="UTF-8"?>
<target-description-file>
    <variants>
        <variant ordercode="ATmega3208-AFR" package="TQFP32" pinout="QFP32" speedmax="20000000" tempmax="105"
                 tempmin="-40" vccmax="5.0" vccmin="1.8"/>
        <variant ordercode="ATmega3208-MFR" package="VQFN32" pinout="QFN32" speedmax="20000000" tempmax="105"
                 tempmin="-40" vccmax="5.0" vccmin="1.8"/>
        <variant ordercode="ATmega3208-XFR" package="SSOP28" pinout="SSOP28" speedmax="20000000" tempmax="105"
                 tempmin="-40" vccmax="5.0" vccmin="1.8"/>
    </variants>
    <device architecture="AVR8X" family="AVR MEGA" name="ATmega3208">
        <address-spaces>
            <address-space endianness="little" id="data" name="data" size="0x10000" start="0x0000">
                <memory-segment exec="0" name="EEPROM" pagesize="0x40" rw="RW" size="0x0100" start="0x00001400"
                                type="eeprom"/>
                <memory-segment exec="0" name="FUSES" pagesize="0x40" rw="RW" size="0xA" start="0x00001280"
                                type="fuses"/>
                <memory-segment exec="0" name="INTERNAL_SRAM" rw="RW" size="0x1000" start="0x3000" type="ram"/>
                <memory-segment exec="0" name="IO" rw="RW" size="0x1100" start="0x00000000" type="io"/>
                <memory-segment exec="0" name="LOCKBITS" pagesize="0x40" rw="RW" size="0x1" start="0x0000128A"
                                type="lockbits"/>
                <memory-segment exec="0" name="MAPPED_PROGMEM" pagesize="0x80" rw="RW" size="0x8000"
                                start="0x00004000" type="other"/>
                <memory-segment exec="0" name="PROD_SIGNATURES" pagesize="0x80" rw="R" size="0x7D"
                                start="0x00001103" type="signatures"/>
                <memory-segment exec="0" name="SIGNATURES" pagesize="0x80" rw="R" size="0x3" start="0x00001100"
                                type="signatures"/>
                <memory-segment exec="0" name="USER_SIGNATURES" pagesize="0x40" rw="RW" size="0x40"
                                start="0x00001300" type="user_signatures"/>
            </address-space>
            <address-space endianness="little" id="prog" name="prog" size="0x8000" start="0x0000">
                <memory-segment exec="1" name="PROGMEM" pagesize="0x80" rw="RW" size="0x8000" start="0x00000000"
                                type="flash"/>
            </address-space>
        </address-spaces>
        <peripherals>
            <module id="I2106" name="AC">
                <instance name="AC0">
                    <register-group address-space="data" name="AC0" name-in-module="AC" offset="0x0680"/>
                    <signals>
                        <signal function="AC0" group="N" index="0" pad="PD3"/>
                        <signal function="AC0" group="N" index="1" pad="PD5"/>
                        <signal function="AC0" group="N" index="2" pad="PD7"/>
                        <signal function="AC0" group="OUT" index="0" pad="PA7"/>
                        <signal function="AC0" group="P" index="0" pad="PD2"/>
                        <signal function="AC0" group="P" index="1" pad="PD4"/>
                        <signal function="AC0" group="P" index="2" pad="PD6"/>
                        <signal function="AC0" group="P" index="3" pad="PD1"/>
                    </signals>
                </instance>
            </module>
            <module id="I2132" name="ADC">
                <instance name="ADC0">
                    <register-group address-space="data" name="ADC0" name-in-module="ADC" offset="0x0600"/>
                    <signals>
                        <signal function="AIN0" group="AIN" index="0" pad="PD0"/>
                        <signal function="AIN0" group="AIN" index="1" pad="PD1"/>
                        <signal function="AIN0" group="AIN" index="2" pad="PD2"/>
                        <signal function="AIN0" group="AIN" index="3" pad="PD3"/>
                        <signal function="AIN0" group="AIN" index="4" pad="PD4"/>
                        <signal function="AIN0" group="AIN" index="5" pad="PD5"/>
                        <signal function="AIN0" group="AIN" index="6" pad="PD6"/>
                        <signal function="AIN0" group="AIN" index="7" pad="PD7"/>
                        <signal function="AIN0" group="AIN" index="12" pad="PF2"/>
                        <signal function="AIN0" group="AIN" index="13" pad="PF3"/>
                        <signal function="AIN0" group="AIN" index="14" pad="PF4"/>
                        <signal function="AIN0" group="AIN" index="15" pad="PF5"/>
                    </signals>
                </instance>
            </module>
            <module id="I2114" name="BOD">
                <instance name="BOD">
                    <register-group address-space="data" name="BOD" name-in-module="BOD" offset="0x0080"/>
                </instance>
            </module>
            <module id="I2128" name="CCL">
                <instance name="CCL">
                    <register-group address-space="data" name="CCL" name-in-module="CCL" offset="0x01C0"/>
                    <signals>
                        <signal function="CCL" group="LUT0_IN" index="0" pad="PA0"/>
                        <signal function="CCL" group="LUT0_IN" index="1" pad="PA1"/>
                        <signal function="CCL" group="LUT0_IN" index="2" pad="PA2"/>
                        <signal field="PORTMUX.CCLROUTEA.LUT0" function="CCL_ALT" group="LUT0_OUT" index="0"
                                pad="PA6"/>
                        <signal field="PORTMUX.CCLROUTEA.LUT0" function="CCL" group="LUT0_OUT" index="0" pad="PA3"/>
                        <signal function="CCL" group="LUT1_IN" index="0" pad="PC0"/>
                        <signal function="CCL" group="LUT1_IN" index="1" pad="PC1"/>
                        <signal function="CCL" group="LUT1_IN" index="2" pad="PC2"/>
                        <signal field="PORTMUX.CCLROUTEA.LUT1" function="CCL" group="LUT1_OUT" index="0" pad="PC3"/>
                        <signal function="CCL" group="LUT2_IN" index="0" pad="PD0"/>
                        <signal function="CCL" group="LUT2_IN" index="1" pad="PD1"/>
                        <signal function="CCL" group="LUT2_IN" index="2" pad="PD2"/>
                        <signal field="PORTMUX.CCLROUTEA.LUT2" function="CCL" group="LUT2_OUT" index="0" pad="PD3"/>
                        <signal field="PORTMUX.CCLROUTEA.LUT2" function="CCL_ALT" group="LUT2_OUT" index="1"
                                pad="PD6"/>
                        <signal function="CCL" group="LUT3_IN" index="0" pad="PF0"/>
                        <signal function="CCL" group="LUT3_IN" index="1" pad="PF1"/>
                        <signal function="CCL" group="LUT3_IN" index="2" pad="PF2"/>
                        <signal field="PORTMUX.CCLROUTEA.LUT3" function="CCL_ALT" group="LUT3_OUT" index="1"
                                pad="PF6"/>
                        <signal field="PORTMUX.CCLROUTEA.LUT3" function="CCL" group="LUT3_OUT" index="1" pad="PF3"/>
                    </signals>
                </instance>
            </module>
            <module id="I2600" name="CLKCTRL">
                <instance name="CLKCTRL">
                    <register-group address-space="data" name="CLKCTRL" name-in-module="CLKCTRL" offset="0x0060"/>
                    <signals>
                        <signal function="CLKCTRL" group="CLKI" pad="PA0"/>
                        <signal function="CLKCTRL" group="CLKO" pad="PA7"/>
                        <signal function="CLKCTRL" group="TOSC1" pad="PF0"/>
                        <signal function="CLKCTRL" group="TOSC2" pad="PF1"/>
                    </signals>
                </instance>
            </module>
            <module id="I2100" name="CPU">
                <instance name="CPU">
                    <register-group address-space="data" name="CPU" name-in-module="CPU" offset="0x0030"/>
                    <parameters>
                        <param name="CORE_VERSION" value="V4"/>
                    </parameters>
                </instance>
            </module>
            <module id="I2104" name="CPUINT">
                <instance name="CPUINT">
                    <register-group address-space="data" name="CPUINT" name-in-module="CPUINT" offset="0x0110"/>
                </instance>
            </module>
            <module id="I2122" name="CRCSCAN">
                <instance name="CRCSCAN">
                    <register-group address-space="data" name="CRCSCAN" name-in-module="CRCSCAN" offset="0x0120"/>
                </instance>
            </module>
            <module id="I2600" name="EVSYS">
                <instance name="EVSYS">
                    <register-group address-space="data" name="EVSYS" name-in-module="EVSYS" offset="0x0180"/>
                    <signals>
                        <signal field="PORTMUX.EVSYSROUTEA.EVOUTA" function="EVSYS_ALT" group="EVOUT" index="0"
                                pad="PA7"/>
                        <signal field="PORTMUX.EVSYSROUTEA.EVOUTA" function="EVSYS" group="EVOUT" index="0"
                                pad="PA2"/>
                        <signal field="PORTMUX.EVSYSROUTEA.EVOUTC" function="EVSYS" group="EVOUT" index="2"
                                pad="PC2"/>
                        <signal field="PORTMUX.EVSYSROUTEA.EVOUTD" function="EVSYS_ALT" group="EVOUT" index="3"
                                pad="PD7"/>
                        <signal field="PORTMUX.EVSYSROUTEA.EVOUTD" function="EVSYS" group="EVOUT" index="3"
                                pad="PD2"/>
                        <signal field="PORTMUX.EVSYSROUTEA.EVOUTF" function="EVSYS" group="EVOUT" index="5"
                                pad="PF2"/>
                    </signals>
                </instance>
            </module>
            <module id="I2600" name="FUSE">
                <instance name="FUSE">
                    <register-group address-space="data" name="FUSE" name-in-module="FUSE" offset="0x1280"/>
                </instance>
            </module>
            <module id="I2600" name="GPIO">
                <instance name="GPIO">
                    <register-group address-space="data" name="GPIO" name-in-module="GPIO" offset="0x001C"/>
                </instance>
            </module>
            <module id="I2600" name="LOCKBIT">
                <instance name="LOCKBIT">
                    <register-group address-space="data" name="LOCKBIT" name-in-module="LOCKBIT" offset="0x128A"/>
                </instance>
            </module>
            <module id="I2109" name="NVMCTRL">
                <instance name="NVMCTRL">
                    <register-group address-space="data" name="NVMCTRL" name-in-module="NVMCTRL" offset="0x1000"/>
                </instance>
            </module>
            <module id="I2103" name="PORT">
                <instance name="PORTA">
                    <register-group address-space="data" name="PORTA" name-in-module="PORT" offset="0x0400"/>
                    <signals>
                        <signal function="IOPORT" group="PIN" index="0" pad="PA0"/>
                        <signal function="IOPORT" group="PIN" index="1" pad="PA1"/>
                        <signal function="IOPORT" group="PIN" index="2" pad="PA2"/>
                        <signal function="IOPORT" group="PIN" index="3" pad="PA3"/>
                        <signal function="IOPORT" group="PIN" index="4" pad="PA4"/>
                        <signal function="IOPORT" group="PIN" index="5" pad="PA5"/>
                        <signal function="IOPORT" group="PIN" index="6" pad="PA6"/>
                        <signal function="IOPORT" group="PIN" index="7" pad="PA7"/>
                    </signals>
                </instance>
                <instance name="MISSING_PORTB">
                    <register-group address-space="data" name="PORTB" name-in-module="PORT" offset="0x0420"/>
                </instance>
                <instance name="PORTC">
                    <register-group address-space="data" name="PORTC" name-in-module="PORT" offset="0x0440"/>
                    <signals>
                        <signal function="IOPORT" group="PIN" index="0" pad="PC0"/>
                        <signal function="IOPORT" group="PIN" index="1" pad="PC1"/>
                        <signal function="IOPORT" group="PIN" index="2" pad="PC2"/>
                        <signal function="IOPORT" group="PIN" index="3" pad="PC3"/>
                    </signals>
                </instance>
                <instance name="PORTD">
                    <register-group address-space="data" name="PORTD" name-in-module="PORT" offset="0x0460"/>
                    <signals>
                        <signal function="IOPORT" group="PIN" index="0" pad="PD0"/>
                        <signal function="IOPORT" group="PIN" index="1" pad="PD1"/>
                        <signal function="IOPORT" group="PIN" index="2" pad="PD2"/>
                        <signal function="IOPORT" group="PIN" index="3" pad="PD3"/>
                        <signal function="IOPORT" group="PIN" index="4" pad="PD4"/>
                        <signal function="IOPORT" group="PIN" index="5" pad="PD5"/>
                        <signal function="IOPORT" group="PIN" index="6" pad="PD6"/>
                        <signal function="IOPORT" group="PIN" index="7" pad="PD7"/>
                    </signals>
                </instance>
                <instance name="MISSING_PORTE">
                    <register-group address-space="data" name="PORTE" name-in-module="PORT" offset="0x0480"/>
                </instance>
                <instance name="PORTF">
                    <register-group address-space="data" name="PORTF" name-in-module="PORT" offset="0x04A0"/>
                    <signals>
                        <signal function="IOPORT" group="PIN" index="0" pad="PF0"/>
                        <signal function="IOPORT" group="PIN" index="1" pad="PF1"/>
                        <signal function="IOPORT" group="PIN" index="2" pad="PF2"/>
                        <signal function="IOPORT" group="PIN" index="3" pad="PF3"/>
                        <signal function="IOPORT" group="PIN" index="4" pad="PF4"/>
                        <signal function="IOPORT" group="PIN" index="5" pad="PF5"/>
                        <signal function="IOPORT" group="PIN" index="6" pad="PF6"/>
                    </signals>
                </instance>
            </module>
            <module id="I2600" name="PORTMUX">
                <instance name="PORTMUX">
                    <register-group address-space="data" name="PORTMUX" name-in-module="PORTMUX" offset="0x05E0"/>
                </instance>
            </module>
            <module id="I2111" name="RSTCTRL">
                <instance name="RSTCTRL">
                    <register-group address-space="data" name="RSTCTRL" name-in-module="RSTCTRL" offset="0x0040"/>
                    <signals>
                        <signal function="OTHER" group="RESET" pad="PF6"/>
                    </signals>
                </instance>
            </module>
            <module id="I2116" name="RTC">
                <instance name="RTC">
                    <register-group address-space="data" name="RTC" name-in-module="RTC" offset="0x0140"/>
                </instance>
            </module>
            <module id="I2600" name="SIGROW">
                <instance name="SIGROW">
                    <register-group address-space="data" name="SIGROW" name-in-module="SIGROW" offset="0x1100"/>
                </instance>
            </module>
            <module id="I2112" name="SLPCTRL">
                <instance name="SLPCTRL">
                    <register-group address-space="data" name="SLPCTRL" name-in-module="SLPCTRL" offset="0x0050"/>
                </instance>
            </module>
            <module id="I2107" name="SPI">
                <instance name="SPI0">
                    <register-group address-space="data" name="SPI0" name-in-module="SPI" offset="0x08C0"/>
                    <signals>
                        <signal field="PORTMUX.TWISPIROUTEA.SPI0" function="SPI_ALT" group="MISO" pad="PC1"/>
                        <signal field="PORTMUX.TWISPIROUTEA.SPI0" function="SPI" group="MISO" pad="PA5"/>
                        <signal field="PORTMUX.TWISPIROUTEA.SPI0" function="SPI_ALT" group="MOSI" pad="PC0"/>
                        <signal field="PORTMUX.TWISPIROUTEA.SPI0" function="SPI" group="MOSI" pad="PA4"/>
                        <signal field="PORTMUX.TWISPIROUTEA.SPI0" function="SPI_ALT" group="SCK" pad="PC2"/>
                        <signal field="PORTMUX.TWISPIROUTEA.SPI0" function="SPI" group="SCK" pad="PA6"/>
                        <signal field="PORTMUX.TWISPIROUTEA.SPI0" function="SPI_ALT" group="SS" pad="PC3"/>
                        <signal field="PORTMUX.TWISPIROUTEA.SPI0" function="SPI" group="SS" pad="PA7"/>
                    </signals>
                </instance>
            </module>
            <module id="I2600" name="SYSCFG">
                <instance name="SYSCFG">
                    <register-group address-space="data" name="SYSCFG" name-in-module="SYSCFG" offset="0x0F00"/>
                </instance>
            </module>
            <module id="I2117" name="TCA">
                <instance name="TCA0">
                    <register-group address-space="data" name="TCA0" name-in-module="TCA" offset="0x0A00"/>
                    <signals>
                        <signal field="PORTMUX.TCAROUTEA.TCA0" function="TCA_ALT5" group="WO" index="0" pad="PF0"/>
                        <signal field="PORTMUX.TCAROUTEA.TCA0" function="TCA_ALT3" group="WO" index="0" pad="PD0"/>
                        <signal field="PORTMUX.TCAROUTEA.TCA0" function="TCA_ALT2" group="WO" index="0" pad="PC0"/>
                        <signal field="PORTMUX.TCAROUTEA.TCA0" function="TCA" group="WO" index="0" pad="PA0"/>
                        <signal field="PORTMUX.TCAROUTEA.TCA0" function="TCA_ALT5" group="WO" index="1" pad="PF1"/>
                        <signal field="PORTMUX.TCAROUTEA.TCA0" function="TCA_ALT3" group="WO" index="1" pad="PD1"/>
                        <signal field="PORTMUX.TCAROUTEA.TCA0" function="TCA_ALT2" group="WO" index="1" pad="PC1"/>
                        <signal field="PORTMUX.TCAROUTEA.TCA0" function="TCA" group="WO" index="1" pad="PA1"/>
                        <signal field="PORTMUX.TCAROUTEA.TCA0" function="TCA_ALT5" group="WO" index="2" pad="PF2"/>
                        <signal field="PORTMUX.TCAROUTEA.TCA0" function="TCA_ALT3" group="WO" index="2" pad="PD2"/>
                        <signal field="PORTMUX.TCAROUTEA.TCA0" function="TCA_ALT2" group="WO" index="2" pad="PC2"/>
                        <signal field="PORTMUX.TCAROUTEA.TCA0" function="TCA" group="WO" index="2" pad="PA2"/>
                        <signal field="PORTMUX.TCAROUTEA.TCA0" function="TCA_ALT5" group="WO" index="3" pad="PF3"/>
                        <signal field="PORTMUX.TCAROUTEA.TCA0" function="TCA_ALT3" group="WO" index="3" pad="PD3"/>
                        <signal field="PORTMUX.TCAROUTEA.TCA0" function="TCA_ALT2" group="WO" index="3" pad="PC3"/>
                        <signal field="PORTMUX.TCAROUTEA.TCA0" function="TCA" group="WO" index="3" pad="PA3"/>
                        <signal field="PORTMUX.TCAROUTEA.TCA0" function="TCA_ALT5" group="WO" index="4" pad="PF4"/>
                        <signal field="PORTMUX.TCAROUTEA.TCA0" function="TCA_ALT3" group="WO" index="4" pad="PD4"/>
                        <signal field="PORTMUX.TCAROUTEA.TCA0" function="TCA" group="WO" index="4" pad="PA4"/>
                        <signal field="PORTMUX.TCAROUTEA.TCA0" function="TCA_ALT5" group="WO" index="5" pad="PF5"/>
                        <signal field="PORTMUX.TCAROUTEA.TCA0" function="TCA_ALT3" group="WO" index="5" pad="PD5"/>
                        <signal field="PORTMUX.TCAROUTEA.TCA0" function="TCA" group="WO" index="5" pad="PA5"/>
                    </signals>
                </instance>
            </module>
            <module id="I2119" name="TCB">
                <instance name="TCB0">
                    <register-group address-space="data" name="TCB0" name-in-module="TCB" offset="0x0A80"/>
                    <signals>
                        <signal field="PORTMUX.TCBROUTEA.TCB0" function="TCB0_ALT" group="WO" index="0" pad="PF4"/>
                        <signal field="PORTMUX.TCBROUTEA.TCB0" function="TCB0" group="WO" index="0" pad="PA2"/>
                    </signals>
                </instance>
                <instance name="TCB1">
                    <register-group address-space="data" name="TCB1" name-in-module="TCB" offset="0x0A90"/>
                    <signals>
                        <signal field="PORTMUX.TCBROUTEA.TCB1" function="TCB1_ALT" group="WO" index="0" pad="PF5"/>
                        <signal field="PORTMUX.TCBROUTEA.TCB1" function="TCB1" group="WO" index="0" pad="PA3"/>
                    </signals>
                </instance>
                <instance name="TCB2">
                    <register-group address-space="data" name="TCB2" name-in-module="TCB" offset="0x0AA0"/>
                    <signals>
                        <signal field="PORTMUX.TCBROUTEA.TCB2" function="TCB2" group="WO" index="0" pad="PC0"/>
                    </signals>
                </instance>
            </module>
            <module id="I2110" name="TWI">
                <instance name="TWI0">
                    <register-group address-space="data" name="TWI0" name-in-module="TWI" offset="0x08A0"/>
                    <signals>
                        <signal field="PORTMUX.TWISPIROUTEA.TWI0" function="I2C_ALT2" group="SCL" pad="PF3"/>
                        <signal field="PORTMUX.TWISPIROUTEA.TWI0" function="I2C_ALT" group="SCL" pad="PC3"/>
                        <signal field="PORTMUX.TWISPIROUTEA.TWI0" function="I2C" group="SCL" pad="PA3"/>
                        <signal field="PORTMUX.TWISPIROUTEA.TWI0" function="I2C_ALT2" group="SDA" pad="PF2"/>
                        <signal field="PORTMUX.TWISPIROUTEA.TWI0" function="I2C_ALT" group="SDA" pad="PC2"/>
                        <signal field="PORTMUX.TWISPIROUTEA.TWI0" function="I2C" group="SDA" pad="PA2"/>
                    </signals>
                </instance>
            </module>
            <module id="I2108" name="USART">
                <instance name="USART0">
                    <register-group address-space="data" name="USART0" name-in-module="USART" offset="0x0800"/>
                    <signals>
                        <signal field="PORTMUX.USARTROUTEA.USART0" function="USART0_ALT" group="RXD" pad="PA5"/>
                        <signal field="PORTMUX.USARTROUTEA.USART0" function="USART0" group="RXD" pad="PA1"/>
                        <signal field="PORTMUX.USARTROUTEA.USART0" function="USART0_ALT" group="TXD" pad="PA4"/>
                        <signal field="PORTMUX.USARTROUTEA.USART0" function="USART0" group="TXD" pad="PA0"/>
                        <signal field="PORTMUX.USARTROUTEA.USART0" function="USART0_ALT" group="XCK" pad="PA6"/>
                        <signal field="PORTMUX.USARTROUTEA.USART0" function="USART0" group="XCK" pad="PA2"/>
                        <signal field="PORTMUX.USARTROUTEA.USART0" function="USART0_ALT" group="XDIR" pad="PA7"/>
                        <signal field="PORTMUX.USARTROUTEA.USART0" function="USART0" group="XDIR" pad="PA3"/>
                    </signals>
                </instance>
                <instance name="USART1">
                    <register-group address-space="data" name="USART1" name-in-module="USART" offset="0x0820"/>
                    <signals>
                        <signal field="PORTMUX.USARTROUTEA.USART1" function="USART1" group="RXD" pad="PC1"/>
                        <signal field="PORTMUX.USARTROUTEA.USART1" function="USART1" group="TXD" pad="PC0"/>
                        <signal field="PORTMUX.USARTROUTEA.USART1" function="USART1" group="XCK" pad="PC2"/>
                        <signal field="PORTMUX.USARTROUTEA.USART1" function="USART1" group="XDIR" pad="PC3"/>
                    </signals>
                </instance>
                <instance name="USART2">
                    <register-group address-space="data" name="USART2" name-in-module="USART" offset="0x0840"/>
                    <signals>
                        <signal field="PORTMUX.USARTROUTEA.USART2" function="USART2_ALT" group="RXD" pad="PF5"/>
                        <signal field="PORTMUX.USARTROUTEA.USART2" function="USART2" group="RXD" pad="PF1"/>
                        <signal field="PORTMUX.USARTROUTEA.USART2" function="USART2_ALT" group="TXD" pad="PF4"/>
                        <signal field="PORTMUX.USARTROUTEA.USART2" function="USART2" group="TXD" pad="PF0"/>
                        <signal field="PORTMUX.USARTROUTEA.USART2" function="USART2_ALT" group="XCK" pad="PF6"/>
                        <signal field="PORTMUX.USARTROUTEA.USART2" function="USART2" group="XCK" pad="PF2"/>
                        <signal field="PORTMUX.USARTROUTEA.USART2" function="USART2" group="XDIR" pad="PF3"/>
                    </signals>
                </instance>
            </module>
            <module id="I2603" name="USERROW">
                <instance name="USERROW">
                    <register-group address-space="data" name="USERROW" name-in-module="USERROW" offset="0x1300"/>
                </instance>
            </module>
            <module id="I2103" name="VPORT">
                <instance name="VPORTA">
                    <register-group address-space="data" name="VPORTA" name-in-module="VPORT" offset="0x0000"/>
                </instance>
                <instance name="VPORTB">
                    <register-group address-space="data" name="VPORTB" name-in-module="VPORT" offset="0x0004"/>
                </instance>
                <instance name="VPORTC">
                    <register-group address-space="data" name="VPORTC" name-in-module="VPORT" offset="0x0008"/>
                </instance>
                <instance name="VPORTD">
                    <register-group address-space="data" name="VPORTD" name-in-module="VPORT" offset="0x000C"/>
                </instance>
                <instance name="VPORTE">
                    <register-group address-space="data" name="VPORTE" name-in-module="VPORT" offset="0x0010"/>
                </instance>
                <instance name="VPORTF">
                    <register-group address-space="data" name="VPORTF" name-in-module="VPORT" offset="0x0014"/>
                </instance>
            </module>
            <module id="I2600" name="VREF">
                <instance name="VREF">
                    <register-group address-space="data" name="VREF" name-in-module="VREF" offset="0x00A0"/>
                </instance>
            </module>
            <module id="I2127" name="WDT">
                <instance name="WDT">
                    <register-group address-space="data" name="WDT" name-in-module="WDT" offset="0x0100"/>
                </instance>
            </module>
        </peripherals>
        <interrupts>
            <interrupt index="1" module-instance="CRCSCAN" name="NMI"/>
            <interrupt index="2" module-instance="BOD" name="VLM"/>
            <interrupt index="3" module-instance="RTC" name="CNT"/>
            <interrupt index="4" module-instance="RTC" name="PIT"/>
            <interrupt index="5" module-instance="CCL" name="CCL"/>
            <interrupt index="6" module-instance="PORTA" name="PORT"/>
            <interrupt index="7" module-instance="TCA0" name="LUNF"/>
            <interrupt index="7" module-instance="TCA0" name="OVF"/>
            <interrupt index="8" module-instance="TCA0" name="HUNF"/>
            <interrupt index="9" module-instance="TCA0" name="CMP0"/>
            <interrupt index="9" module-instance="TCA0" name="LCMP0"/>
            <interrupt index="10" module-instance="TCA0" name="CMP1"/>
            <interrupt index="10" module-instance="TCA0" name="LCMP1"/>
            <interrupt index="11" module-instance="TCA0" name="CMP2"/>
            <interrupt index="11" module-instance="TCA0" name="LCMP2"/>
            <interrupt index="12" module-instance="TCB0" name="INT"/>
            <interrupt index="13" module-instance="TCB1" name="INT"/>
            <interrupt index="14" module-instance="TWI0" name="TWIS"/>
            <interrupt index="15" module-instance="TWI0" name="TWIM"/>
            <interrupt index="16" module-instance="SPI0" name="INT"/>
            <interrupt index="17" module-instance="USART0" name="RXC"/>
            <interrupt index="18" module-instance="USART0" name="DRE"/>
            <interrupt index="19" module-instance="USART0" name="TXC"/>
            <interrupt index="20" module-instance="PORTD" name="PORT"/>
            <interrupt index="21" module-instance="AC0" name="AC"/>
            <interrupt index="22" module-instance="ADC0" name="RESRDY"/>
            <interrupt index="23" module-instance="ADC0" name="WCOMP"/>
            <interrupt index="24" module-instance="PORTC" name="PORT"/>
            <interrupt index="25" module-instance="TCB2" name="INT"/>
            <interrupt index="26" module-instance="USART1" name="RXC"/>
            <interrupt index="27" module-instance="USART1" name="DRE"/>
            <interrupt index="28" module-instance="USART1" name="TXC"/>
            <interrupt index="29" module-instance="PORTF" name="PORT"/>
            <interrupt index="30" module-instance="NVMCTRL" name="EE"/>
            <interrupt index="31" module-instance="USART2" name="RXC"/>
            <interrupt index="32" module-instance="USART2" name="DRE"/>
            <interrupt index="33" module-instance="USART2" name="TXC"/>
            <interrupt index="34" module-instance="PORTB" name="PORT"/>
            <interrupt index="35" module-instance="PORTE" name="PORT"/>
        </interrupts>
        <interfaces>
            <interface name="UPDI" type="updi"/>
        </interfaces>
        <property-groups>
            <property-group name="OCD_FEATURES">
                <property name="BREAK_PIN" value="PF6"/>
                <property name="BREAK_PIN_ALT" value="PF2"/>
            </property-group>
            <property-group name="PROGRAMMING_INFO">
                <property name="FUSE_ENABLED_VALUE" value="1"/>
            </property-group>
            <property-group name="UPDI_INTERFACE">
                <property name="OCD_BASE_ADDR" value="0x00000F80"/>
                <property name="PROGMEM_OFFSET" value="0x00004000"/>
            </property-group>
            <property-group name="SIGNATURES">
                <property name="SIGNATURE0" value="0x1E"/>
                <property name="SIGNATURE1" value="0x95"/>
                <property name="SIGNATURE2" value="0x30"/>
            </property-group>
        </property-groups>
    </device>
    <modules>
        <module caption="Analog Comparator" id="I2106" name="AC">
            <register-group caption="Analog Comparator" name="AC" size="0x8">
                <register caption="Control A" initval="0x00" name="CTRLA" offset="0x0" rw="RW" size="1">
                    <bitfield caption="Enable" mask="0x1" name="ENABLE" rw="RW"/>
                    <bitfield caption="Hysteresis Mode" mask="0x6" name="HYSMODE" rw="RW" values="AC_HYSMODE"/>
                    <bitfield caption="Interrupt Mode" mask="0x30" name="INTMODE" rw="RW" values="AC_INTMODE"/>
                    <bitfield caption="Low Power Mode" mask="0x8" name="LPMODE" rw="RW" values="AC_LPMODE"/>
                    <bitfield caption="Output Buffer Enable" mask="0x40" name="OUTEN" rw="RW"/>
                    <bitfield caption="Run in Standby Mode" mask="0x80" name="RUNSTDBY" rw="RW"/>
                </register>
                <register caption="Referance scale control" initval="0xFF" name="DACREF" offset="0x4" rw="RW" size="1">
                    <bitfield caption="DAC voltage reference" mask="0xff" name="DATA" rw="RW"/>
                </register>
                <register caption="Interrupt Control" initval="0x00" name="INTCTRL" offset="0x6" rw="RW" size="1">
                    <bitfield caption="Analog Comparator 0 Interrupt Enable" mask="0x1" name="CMP" rw="RW"/>
                </register>
                <register caption="Mux Control A" initval="0x00" name="MUXCTRLA" offset="0x2" rw="RW" size="1">
                    <bitfield caption="Invert AC Output" mask="0x80" name="INVERT" rw="RW"/>
                    <bitfield caption="Negative Input MUX Selection" mask="0x3" name="MUXNEG" rw="RW"
                              values="AC_MUXNEG"/>
                    <bitfield caption="Positive Input MUX Selection" mask="0x18" name="MUXPOS" rw="RW"
                              values="AC_MUXPOS"/>
                </register>
                <register caption="Status" initval="0x00" name="STATUS" offset="0x7" rw="RW" size="1">
                    <bitfield caption="Analog Comparator Interrupt Flag" mask="0x1" name="CMP" rw="RW"/>
                    <bitfield caption="Analog Comparator State" mask="0x10" name="STATE" rw="R"/>
                </register>
            </register-group>
            <value-group caption="Hysteresis Mode select" name="AC_HYSMODE">
                <value caption="No hysteresis" name="OFF" value="0x00"/>
                <value caption="10mV hysteresis" name="10mV" value="0x01"/>
                <value caption="25mV hysteresis" name="25mV" value="0x02"/>
                <value caption="50mV hysteresis" name="50mV" value="0x03"/>
            </value-group>
            <value-group caption="Interrupt Mode select" name="AC_INTMODE">
                <value caption="Any Edge" name="BOTHEDGE" value="0x00"/>
                <value caption="Negative Edge" name="NEGEDGE" value="0x02"/>
                <value caption="Positive Edge" name="POSEDGE" value="0x03"/>
            </value-group>
            <value-group caption="Low Power Mode select" name="AC_LPMODE">
                <value caption="Low power mode disabled" name="DIS" value="0x0"/>
                <value caption="Low power mode enabled" name="EN" value="0x1"/>
            </value-group>
            <value-group caption="Negative Input MUX Selection select" name="AC_MUXNEG">
                <value caption="Negative Pin 0" name="PIN0" value="0x00"/>
                <value caption="Negative Pin 1" name="PIN1" value="0x01"/>
                <value caption="Negative Pin 2" name="PIN2" value="0x02"/>
                <value caption="DAC Voltage Reference" name="DACREF" value="0x03"/>
            </value-group>
            <value-group caption="Positive Input MUX Selection select" name="AC_MUXPOS">
                <value caption="Positive Pin 0" name="PIN0" value="0x00"/>
                <value caption="Positive Pin 1" name="PIN1" value="0x01"/>
                <value caption="Positive Pin 2" name="PIN2" value="0x02"/>
                <value caption="Positive Pin 3" name="PIN3" value="0x03"/>
            </value-group>
        </module>
        <module caption="Analog to Digital Converter" id="I2132" name="ADC">
            <register-group caption="Analog to Digital Converter" name="ADC" size="0x18">
                <register caption="Calibration" initval="0x01" name="CALIB" offset="0x16" rw="RW" size="1">
                    <bitfield caption="Duty Cycle" mask="0x1" name="DUTYCYC" rw="RW" values="ADC_DUTYCYC"/>
                </register>
                <register caption="Command" initval="0x00" name="COMMAND" offset="0x08" rw="RW" size="1">
                    <bitfield caption="Start Conversion Operation" mask="0x1" name="STCONV" rw="RW"/>
                </register>
                <register caption="Control A" initval="0x00" name="CTRLA" offset="0x00" rw="RW" size="1">
                    <bitfield caption="ADC Enable" mask="0x1" name="ENABLE" rw="RW"/>
                    <bitfield caption="ADC Freerun mode" mask="0x2" name="FREERUN" rw="RW"/>
                    <bitfield caption="ADC Resolution" mask="0x4" name="RESSEL" rw="RW" values="ADC_RESSEL"/>
                    <bitfield caption="Run standby mode" mask="0x80" name="RUNSTBY" rw="RW"/>
                </register>
                <register caption="Control B" initval="0x00" name="CTRLB" offset="0x01" rw="RW" size="1">
                    <bitfield caption="Accumulation Samples" mask="0x7" name="SAMPNUM" rw="RW" values="ADC_SAMPNUM"/>
                </register>
                <register caption="Control C" initval="0x00" name="CTRLC" offset="0x02" rw="RW" size="1">
                    <bitfield caption="Clock Pre-scaler" mask="0x7" name="PRESC" rw="RW" values="ADC_PRESC"/>
                    <bitfield caption="Reference Selection" mask="0x30" name="REFSEL" rw="RW" values="ADC_REFSEL"/>
                    <bitfield caption="Sample Capacitance Selection" mask="0x40" name="SAMPCAP" rw="RW"/>
                </register>
                <register caption="Control D" initval="0x00" name="CTRLD" offset="0x03" rw="RW" size="1">
                    <bitfield caption="Automatic Sampling Delay Variation" mask="0x10" name="ASDV" rw="RW"
                              values="ADC_ASDV"/>
                    <bitfield caption="Initial Delay Selection" mask="0xe0" name="INITDLY" rw="RW"
                              values="ADC_INITDLY"/>
                    <bitfield caption="Sampling Delay Selection" mask="0xf" name="SAMPDLY" rw="RW"/>
                </register>
                <register caption="Control E" initval="0x00" name="CTRLE" offset="0x04" rw="RW" size="1">
                    <bitfield caption="Window Comparator Mode" mask="0x7" name="WINCM" rw="RW" values="ADC_WINCM"/>
                </register>
                <register caption="Debug Control" initval="0x00" name="DBGCTRL" offset="0x0C" rw="RW" size="1">
                    <bitfield caption="Debug run" mask="0x1" name="DBGRUN" rw="RW"/>
                </register>
                <register caption="Event Control" initval="0x00" name="EVCTRL" offset="0x09" rw="RW" size="1">
                    <bitfield caption="Start Event Input Enable" mask="0x1" name="STARTEI" rw="RW"/>
                </register>
                <register caption="Interrupt Control" initval="0x00" name="INTCTRL" offset="0x0A" rw="RW" size="1">
                    <bitfield caption="Result Ready Interrupt Enable" mask="0x1" name="RESRDY" rw="RW"/>
                    <bitfield caption="Window Comparator Interrupt Enable" mask="0x2" name="WCMP" rw="RW"/>
                </register>
                <register caption="Interrupt Flags" initval="0x00" name="INTFLAGS" offset="0x0B" rw="RW" size="1">
                    <bitfield caption="Result Ready Flag" mask="0x1" name="RESRDY" rw="RW"/>
                    <bitfield caption="Window Comparator Flag" mask="0x2" name="WCMP" rw="RW"/>
                </register>
                <register caption="Positive mux input" initval="0x00" name="MUXPOS" offset="0x06" rw="RW" size="1">
                    <bitfield caption="Analog Channel Selection Bits" mask="0x1f" name="MUXPOS" rw="RW"
                              values="ADC_MUXPOS"/>
                </register>
                <register caption="ADC Accumulator Result" name="RES" offset="0x10" rw="R" size="2"/>
                <register caption="Sample Control" initval="0x00" name="SAMPCTRL" offset="0x05" rw="RW" size="1">
                    <bitfield caption="Sample lenght" mask="0x1f" name="SAMPLEN" rw="RW"/>
                </register>
                <register caption="Temporary Data" initval="0x00" name="TEMP" offset="0x0D" rw="RW" size="1">
                    <bitfield caption="Temporary" mask="0xff" name="TEMP" rw="RW"/>
                </register>
                <register caption="Window comparator high threshold" name="WINHT" offset="0x14" rw="RW" size="2"/>
                <register caption="Window comparator low threshold" name="WINLT" offset="0x12" rw="RW" size="2"/>
            </register-group>
            <value-group caption="Duty Cycle select" name="ADC_DUTYCYC">
                <value caption="50% Duty cycle" name="DUTY50" value="0x0"/>
                <value caption="25% Duty cycle" name="DUTY25" value="0x1"/>
            </value-group>
            <value-group caption="ADC Resolution select" name="ADC_RESSEL">
                <value caption="10-bit mode" name="10BIT" value="0x0"/>
                <value caption="8-bit mode" name="8BIT" value="0x1"/>
            </value-group>
            <value-group caption="Accumulation Samples select" name="ADC_SAMPNUM">
                <value caption="1 ADC sample" name="ACC1" value="0x00"/>
                <value caption="Accumulate 2 samples" name="ACC2" value="0x01"/>
                <value caption="Accumulate 4 samples" name="ACC4" value="0x02"/>
                <value caption="Accumulate 8 samples" name="ACC8" value="0x03"/>
                <value caption="Accumulate 16 samples" name="ACC16" value="0x04"/>
                <value caption="Accumulate 32 samples" name="ACC32" value="0x05"/>
                <value caption="Accumulate 64 samples" name="ACC64" value="0x06"/>
            </value-group>
            <value-group caption="Clock Pre-scaler select" name="ADC_PRESC">
                <value caption="CLK_PER divided by 2" name="DIV2" value="0x00"/>
                <value caption="CLK_PER divided by 4" name="DIV4" value="0x01"/>
                <value caption="CLK_PER divided by 8" name="DIV8" value="0x02"/>
                <value caption="CLK_PER divided by 16" name="DIV16" value="0x03"/>
                <value caption="CLK_PER divided by 32" name="DIV32" value="0x04"/>
                <value caption="CLK_PER divided by 64" name="DIV64" value="0x05"/>
                <value caption="CLK_PER divided by 128" name="DIV128" value="0x06"/>
                <value caption="CLK_PER divided by 256" name="DIV256" value="0x07"/>
            </value-group>
            <value-group caption="Reference Selection select" name="ADC_REFSEL">
                <value caption="Internal reference" name="INTREF" value="0x00"/>
                <value caption="VDD" name="VDDREF" value="0x01"/>
                <value caption="External reference" name="VREFA" value="0x02"/>
            </value-group>
            <value-group caption="Automatic Sampling Delay Variation select" name="ADC_ASDV">
                <value caption="The Automatic Sampling Delay Variation is disabled" name="ASVOFF" value="0x0"/>
                <value caption="The Automatic Sampling Delay Variation is enabled" name="ASVON" value="0x1"/>
            </value-group>
            <value-group caption="Initial Delay Selection select" name="ADC_INITDLY">
                <value caption="Delay 0 CLK_ADC cycles" name="DLY0" value="0x00"/>
                <value caption="Delay 16 CLK_ADC cycles" name="DLY16" value="0x01"/>
                <value caption="Delay 32 CLK_ADC cycles" name="DLY32" value="0x02"/>
                <value caption="Delay 64 CLK_ADC cycles" name="DLY64" value="0x03"/>
                <value caption="Delay 128 CLK_ADC cycles" name="DLY128" value="0x04"/>
                <value caption="Delay 256 CLK_ADC cycles" name="DLY256" value="0x05"/>
            </value-group>
            <value-group caption="Window Comparator Mode select" name="ADC_WINCM">
                <value caption="No Window Comparison" name="NONE" value="0x00"/>
                <value caption="Below Window" name="BELOW" value="0x01"/>
                <value caption="Above Window" name="ABOVE" value="0x02"/>
                <value caption="Inside Window" name="INSIDE" value="0x03"/>
                <value caption="Outside Window" name="OUTSIDE" value="0x04"/>
            </value-group>
            <value-group caption="Analog Channel Selection Bits select" name="ADC_MUXPOS">
                <value caption="ADC input pin 0" name="AIN0" value="0x0"/>
                <value caption="ADC input pin 1" name="AIN1" value="0x1"/>
                <value caption="ADC input pin 2" name="AIN2" value="0x2"/>
                <value caption="ADC input pin 3" name="AIN3" value="0x3"/>
                <value caption="ADC input pin 4" name="AIN4" value="0x4"/>
                <value caption="ADC input pin 5" name="AIN5" value="0x5"/>
                <value caption="ADC input pin 6" name="AIN6" value="0x6"/>
                <value caption="ADC input pin 7" name="AIN7" value="0x7"/>
                <value caption="ADC input pin 8" name="AIN8" value="0x8"/>
                <value caption="ADC input pin 9" name="AIN9" value="0x9"/>
                <value caption="ADC input pin 10" name="AIN10" value="0xA"/>
                <value caption="ADC input pin 11" name="AIN11" value="0xB"/>
                <value caption="ADC input pin 12" name="AIN12" value="0xC"/>
                <value caption="ADC input pin 13" name="AIN13" value="0xD"/>
                <value caption="ADC input pin 14" name="AIN14" value="0xE"/>
                <value caption="ADC input pin 15" name="AIN15" value="0xF"/>
                <value caption="AC DAC Reference" name="DACREF" value="0x1C"/>
                <value caption="Temperature sensor" name="TEMPSENSE" value="0x1E"/>
                <value caption="0V (GND)" name="GND" value="0x1F"/>
            </value-group>
        </module>
        <module caption="Bod interface" id="I2114" name="BOD">
            <register-group caption="Bod interface" name="BOD" size="0x10">
                <register caption="Control A" initval="0x05" name="CTRLA" offset="0x0" rw="RW" size="1">
                    <bitfield caption="Operation in active mode" mask="0xc" name="ACTIVE" rw="R" values="BOD_ACTIVE"/>
                    <bitfield caption="Sample frequency" mask="0x10" name="SAMPFREQ" rw="R" values="BOD_SAMPFREQ"/>
                    <bitfield caption="Operation in sleep mode" mask="0x3" name="SLEEP" rw="RW" values="BOD_SLEEP"/>
                </register>
                <register caption="Control B" initval="0x00" name="CTRLB" offset="0x1" rw="RW" size="1">
                    <bitfield caption="Bod level" mask="0x7" name="LVL" rw="R" values="BOD_LVL"/>
                </register>
                <register caption="Voltage level monitor interrupt Control" initval="0x00" name="INTCTRL" offset="0x9"
                          rw="RW" size="1">
                    <bitfield caption="Configuration" mask="0x6" name="VLMCFG" rw="RW" values="BOD_VLMCFG"/>
                    <bitfield caption="voltage level monitor interrrupt enable" mask="0x1" name="VLMIE" rw="RW"/>
                </register>
                <register caption="Voltage level monitor interrupt Flags" initval="0x00" name="INTFLAGS" offset="0xA"
                          rw="RW" size="1">
                    <bitfield caption="Voltage level monitor interrupt flag" mask="0x1" name="VLMIF" rw="RW"/>
                </register>
                <register caption="Voltage level monitor status" initval="0x00" name="STATUS" offset="0xB" rw="RW"
                          size="1">
                    <bitfield caption="Voltage level monitor status" mask="0x1" name="VLMS" rw="R"/>
                </register>
                <register caption="Voltage level monitor Control" initval="0x00" name="VLMCTRLA" offset="0x8" rw="RW"
                          size="1">
                    <bitfield caption="voltage level monitor level" mask="0x3" name="VLMLVL" rw="RW"
                              values="BOD_VLMLVL"/>
                </register>
            </register-group>
            <value-group caption="Operation in active mode select" name="BOD_ACTIVE">
                <value caption="Disabled" name="DIS" value="0x00"/>
                <value caption="Enabled" name="ENABLED" value="0x01"/>
                <value caption="Sampled" name="SAMPLED" value="0x02"/>
                <value caption="Enabled with wake-up halted until BOD is ready" name="ENWAKE" value="0x03"/>
            </value-group>
            <value-group caption="Sample frequency select" name="BOD_SAMPFREQ">
                <value caption="1kHz sampling frequency" name="1KHZ" value="0x0"/>
                <value caption="125Hz sampling frequency" name="125HZ" value="0x1"/>
            </value-group>
            <value-group caption="Operation in sleep mode select" name="BOD_SLEEP">
                <value caption="Disabled" name="DIS" value="0x00"/>
                <value caption="Enabled" name="ENABLED" value="0x01"/>
                <value caption="Sampled" name="SAMPLED" value="0x02"/>
            </value-group>
            <value-group caption="Bod level select" name="BOD_LVL">
                <value caption="1.8 V" name="BODLEVEL0" value="0x00"/>
                <value caption="2.6 V" name="BODLEVEL2" value="0x02"/>
                <value caption="4.2 V" name="BODLEVEL7" value="0x07"/>
            </value-group>
            <value-group caption="Configuration select" name="BOD_VLMCFG">
                <value caption="Interrupt when supply goes below VLM level" name="BELOW" value="0x00"/>
                <value caption="Interrupt when supply goes above VLM level" name="ABOVE" value="0x01"/>
                <value caption="Interrupt when supply crosses VLM level" name="CROSS" value="0x02"/>
            </value-group>
            <value-group caption="voltage level monitor level select" name="BOD_VLMLVL">
                <value caption="VLM threshold 5% above BOD level" name="5ABOVE" value="0x0"/>
                <value caption="VLM threshold 15% above BOD level" name="15ABOVE" value="0x1"/>
                <value caption="VLM threshold 25% above BOD level" name="25ABOVE" value="0x2"/>
            </value-group>
        </module>
        <module caption="Configurable Custom Logic" id="I2128" name="CCL">
            <register-group caption="Configurable Custom Logic" name="CCL" size="0x40">
                <register caption="Control Register A" initval="0x00" name="CTRLA" offset="0x00" rw="RW" size="1">
                    <bitfield caption="Enable" mask="0x1" name="ENABLE" rw="RW"/>
                    <bitfield caption="Run in Standby" mask="0x40" name="RUNSTDBY" rw="RW"/>
                </register>
                <register caption="Interrupt Control 0" initval="0x00" name="INTCTRL0" offset="0x05" rw="RW" size="1">
                    <bitfield caption="Interrupt Mode for LUT0" mask="0x3" name="INTMODE0" rw="RW"
                              values="CCL_INTMODE0"/>
                    <bitfield caption="Interrupt Mode for LUT1" mask="0xc" name="INTMODE1" rw="RW"
                              values="CCL_INTMODE1"/>
                    <bitfield caption="Interrupt Mode for LUT2" mask="0x30" name="INTMODE2" rw="RW"
                              values="CCL_INTMODE2"/>
                    <bitfield caption="Interrupt Mode for LUT3" mask="0xc0" name="INTMODE3" rw="RW"
                              values="CCL_INTMODE3"/>
                </register>
                <register caption="Interrupt Flags" initval="0x00" name="INTFLAGS" offset="0x07" rw="RW" size="1">
                    <bitfield caption="Interrupt Flags" mask="0xf" name="INT" rw="RW"/>
                </register>
                <register caption="LUT Control 0 A" initval="0x00" name="LUT0CTRLA" offset="0x08" rw="RW" size="1">
                    <bitfield caption="Clock Source Selection" mask="0xe" name="CLKSRC" rw="RW" values="CCL_CLKSRC"/>
                    <bitfield caption="Edge Detection Enable" mask="0x80" name="EDGEDET" rw="RW" values="CCL_EDGEDET"/>
                    <bitfield caption="LUT Enable" mask="0x1" name="ENABLE" rw="RW"/>
                    <bitfield caption="Filter Selection" mask="0x30" name="FILTSEL" rw="RW" values="CCL_FILTSEL"/>
                    <bitfield caption="Output Enable" mask="0x40" name="OUTEN" rw="RW"/>
                </register>
                <register caption="LUT Control 0 B" initval="0x00" name="LUT0CTRLB" offset="0x09" rw="RW" size="1">
                    <bitfield caption="LUT Input 0 Source Selection" mask="0xf" name="INSEL0" rw="RW"
                              values="CCL_INSEL0"/>
                    <bitfield caption="LUT Input 1 Source Selection" mask="0xf0" name="INSEL1" rw="RW"
                              values="CCL_INSEL1"/>
                </register>
                <register caption="LUT Control 0 C" initval="0x00" name="LUT0CTRLC" offset="0x0A" rw="RW" size="1">
                    <bitfield caption="LUT Input 2 Source Selection" mask="0xf" name="INSEL2" rw="RW"
                              values="CCL_INSEL2"/>
                </register>
                <register caption="LUT Control 1 A" initval="0x00" name="LUT1CTRLA" offset="0x0C" rw="RW" size="1">
                    <bitfield caption="Clock Source Selection" mask="0xe" name="CLKSRC" rw="RW" values="CCL_CLKSRC"/>
                    <bitfield caption="Edge Detection Enable" mask="0x80" name="EDGEDET" rw="RW" values="CCL_EDGEDET"/>
                    <bitfield caption="LUT Enable" mask="0x1" name="ENABLE" rw="RW"/>
                    <bitfield caption="Filter Selection" mask="0x30" name="FILTSEL" rw="RW" values="CCL_FILTSEL"/>
                    <bitfield caption="Output Enable" mask="0x40" name="OUTEN" rw="RW"/>
                </register>
                <register caption="LUT Control 1 B" initval="0x00" name="LUT1CTRLB" offset="0x0D" rw="RW" size="1">
                    <bitfield caption="LUT Input 0 Source Selection" mask="0xf" name="INSEL0" rw="RW"
                              values="CCL_INSEL0"/>
                    <bitfield caption="LUT Input 1 Source Selection" mask="0xf0" name="INSEL1" rw="RW"
                              values="CCL_INSEL1"/>
                </register>
                <register caption="LUT Control 1 C" initval="0x00" name="LUT1CTRLC" offset="0x0E" rw="RW" size="1">
                    <bitfield caption="LUT Input 2 Source Selection" mask="0xf" name="INSEL2" rw="RW"
                              values="CCL_INSEL2"/>
                </register>
                <register caption="LUT Control 2 A" initval="0x00" name="LUT2CTRLA" offset="0x10" rw="RW" size="1">
                    <bitfield caption="Clock Source Selection" mask="0xe" name="CLKSRC" rw="RW" values="CCL_CLKSRC"/>
                    <bitfield caption="Edge Detection Enable" mask="0x80" name="EDGEDET" rw="RW" values="CCL_EDGEDET"/>
                    <bitfield caption="LUT Enable" mask="0x1" name="ENABLE" rw="RW"/>
                    <bitfield caption="Filter Selection" mask="0x30" name="FILTSEL" rw="RW" values="CCL_FILTSEL"/>
                    <bitfield caption="Output Enable" mask="0x40" name="OUTEN" rw="RW"/>
                </register>
                <register caption="LUT Control 2 B" initval="0x00" name="LUT2CTRLB" offset="0x11" rw="RW" size="1">
                    <bitfield caption="LUT Input 0 Source Selection" mask="0xf" name="INSEL0" rw="RW"
                              values="CCL_INSEL0"/>
                    <bitfield caption="LUT Input 1 Source Selection" mask="0xf0" name="INSEL1" rw="RW"
                              values="CCL_INSEL1"/>
                </register>
                <register caption="LUT Control 2 C" initval="0x00" name="LUT2CTRLC" offset="0x12" rw="RW" size="1">
                    <bitfield caption="LUT Input 2 Source Selection" mask="0xf" name="INSEL2" rw="RW"
                              values="CCL_INSEL2"/>
                </register>
                <register caption="LUT Control 3 A" initval="0x00" name="LUT3CTRLA" offset="0x14" rw="RW" size="1">
                    <bitfield caption="Clock Source Selection" mask="0xe" name="CLKSRC" rw="RW" values="CCL_CLKSRC"/>
                    <bitfield caption="Edge Detection Enable" mask="0x80" name="EDGEDET" rw="RW" values="CCL_EDGEDET"/>
                    <bitfield caption="LUT Enable" mask="0x1" name="ENABLE" rw="RW"/>
                    <bitfield caption="Filter Selection" mask="0x30" name="FILTSEL" rw="RW" values="CCL_FILTSEL"/>
                    <bitfield caption="Output Enable" mask="0x40" name="OUTEN" rw="RW"/>
                </register>
                <register caption="LUT Control 3 B" initval="0x00" name="LUT3CTRLB" offset="0x15" rw="RW" size="1">
                    <bitfield caption="LUT Input 0 Source Selection" mask="0xf" name="INSEL0" rw="RW"
                              values="CCL_INSEL0"/>
                    <bitfield caption="LUT Input 1 Source Selection" mask="0xf0" name="INSEL1" rw="RW"
                              values="CCL_INSEL1"/>
                </register>
                <register caption="LUT Control 3 C" initval="0x00" name="LUT3CTRLC" offset="0x16" rw="RW" size="1">
                    <bitfield caption="LUT Input 2 Source Selection" mask="0xf" name="INSEL2" rw="RW"
                              values="CCL_INSEL2"/>
                </register>
                <register caption="Sequential Control 0" initval="0x00" name="SEQCTRL0" offset="0x01" rw="RW" size="1">
                    <bitfield caption="Sequential Selection" mask="0x7" name="SEQSEL0" rw="RW" values="CCL_SEQSEL0"/>
                </register>
                <register caption="Sequential Control 1" initval="0x00" name="SEQCTRL1" offset="0x02" rw="RW" size="1">
                    <bitfield caption="Sequential Selection" mask="0x7" name="SEQSEL1" rw="RW" values="CCL_SEQSEL1"/>
                </register>
                <register caption="Truth 0" initval="0x00" name="TRUTH0" offset="0x0B" rw="RW" size="1"/>
                <register caption="Truth 1" initval="0x00" name="TRUTH1" offset="0x0F" rw="RW" size="1"/>
                <register caption="Truth 2" initval="0x00" name="TRUTH2" offset="0x13" rw="RW" size="1"/>
                <register caption="Truth 3" initval="0x00" name="TRUTH3" offset="0x17" rw="RW" size="1"/>
            </register-group>
            <value-group caption="Interrupt Mode for LUT0 select" name="CCL_INTMODE0">
                <value caption="Interrupt disabled" name="INTDISABLE" value="0x0"/>
                <value caption="Sense rising edge" name="RISING" value="0x1"/>
                <value caption="Sense falling edge" name="FALLING" value="0x2"/>
                <value caption="Sense both edges" name="BOTH" value="0x3"/>
            </value-group>
            <value-group caption="Interrupt Mode for LUT1 select" name="CCL_INTMODE1">
                <value caption="Interrupt disabled" name="INTDISABLE" value="0x0"/>
                <value caption="Sense rising edge" name="RISING" value="0x1"/>
                <value caption="Sense falling edge" name="FALLING" value="0x2"/>
                <value caption="Sense both edges" name="BOTH" value="0x3"/>
            </value-group>
            <value-group caption="Interrupt Mode for LUT2 select" name="CCL_INTMODE2">
                <value caption="Interrupt disabled" name="INTDISABLE" value="0x0"/>
                <value caption="Sense rising edge" name="RISING" value="0x1"/>
                <value caption="Sense falling edge" name="FALLING" value="0x2"/>
                <value caption="Sense both edges" name="BOTH" value="0x3"/>
            </value-group>
            <value-group caption="Interrupt Mode for LUT3 select" name="CCL_INTMODE3">
                <value caption="Interrupt disabled" name="INTDISABLE" value="0x0"/>
                <value caption="Sense rising edge" name="RISING" value="0x1"/>
                <value caption="Sense falling edge" name="FALLING" value="0x2"/>
                <value caption="Sense both edges" name="BOTH" value="0x3"/>
            </value-group>
            <value-group caption="Clock Source Selection select" name="CCL_CLKSRC">
                <value caption="CLK_PER is clocking the LUT" name="CLKPER" value="0x0"/>
                <value caption="IN[2] is clocking the LUT" name="IN2" value="0x1"/>
                <value caption="20MHz oscillator before prescaler is clocking the LUT" name="OSC20M" value="0x4"/>
                <value caption="32kHz oscillator is clocking the LUT" name="OSCULP32K" value="0x5"/>
                <value caption="32kHz oscillator after DIV32 is clocking the LUT" name="OSCULP1K" value="0x6"/>
            </value-group>
            <value-group caption="Edge Detection Enable select" name="CCL_EDGEDET">
                <value caption="Edge detector is disabled" name="DIS" value="0x0"/>
                <value caption="Edge detector is enabled" name="EN" value="0x1"/>
            </value-group>
            <value-group caption="Filter Selection select" name="CCL_FILTSEL">
                <value caption="Filter disabled" name="DISABLE" value="0x0"/>
                <value caption="Synchronizer enabled" name="SYNCH" value="0x1"/>
                <value caption="Filter enabled" name="FILTER" value="0x2"/>
            </value-group>
            <value-group caption="LUT Input 0 Source Selection select" name="CCL_INSEL0">
                <value caption="Masked input" name="MASK" value="0x00"/>
                <value caption="Feedback input source" name="FEEDBACK" value="0x01"/>
                <value caption="Linked LUT input source" name="LINK" value="0x02"/>
                <value caption="Event input source A" name="EVENTA" value="0x03"/>
                <value caption="Event input source B" name="EVENTB" value="0x04"/>
                <value caption="IO pin LUTn-IN0 input source" name="IO" value="0x05"/>
                <value caption="AC0 OUT input source" name="AC0" value="0x06"/>
                <value caption="USART0 TXD input source" name="USART0" value="0x08"/>
                <value caption="SPI0 MOSI input source" name="SPI0" value="0x09"/>
                <value caption="TCA0 WO0 input source" name="TCA0" value="0x0A"/>
                <value caption="TCB0 WO input source" name="TCB0" value="0x0C"/>
            </value-group>
            <value-group caption="LUT Input 1 Source Selection select" name="CCL_INSEL1">
                <value caption="Masked input" name="MASK" value="0x00"/>
                <value caption="Feedback input source" name="FEEDBACK" value="0x01"/>
                <value caption="Linked LUT input source" name="LINK" value="0x02"/>
                <value caption="Event input source A" name="EVENTA" value="0x03"/>
                <value caption="Event input source B" name="EVENTB" value="0x04"/>
                <value caption="IO pin LUTn-N1 input source" name="IO" value="0x05"/>
                <value caption="AC0 OUT input source" name="AC0" value="0x06"/>
                <value caption="USART1 TXD input source" name="USART1" value="0x08"/>
                <value caption="SPI0 MOSI input source" name="SPI0" value="0x09"/>
                <value caption="TCA0 WO1 input source" name="TCA0" value="0x0A"/>
                <value caption="TCB1 WO input source" name="TCB1" value="0x0C"/>
            </value-group>
            <value-group caption="LUT Input 2 Source Selection select" name="CCL_INSEL2">
                <value caption="Masked input" name="MASK" value="0x00"/>
                <value caption="Feedback input source" name="FEEDBACK" value="0x01"/>
                <value caption="Linked LUT input source" name="LINK" value="0x02"/>
                <value caption="Event input source A" name="EVENTA" value="0x03"/>
                <value caption="Event input source B" name="EVENTB" value="0x04"/>
                <value caption="IO pin LUTn-IN2 input source" name="IO" value="0x05"/>
                <value caption="AC0 OUT input source" name="AC0" value="0x06"/>
                <value caption="USART2 TXD input source" name="USART2" value="0x08"/>
                <value caption="SPI0 SCK input source" name="SPI0" value="0x09"/>
                <value caption="TCA0 WO2 input source" name="TCA0" value="0x0A"/>
                <value caption="TCB2 WO input source" name="TCB2" value="0x0C"/>
            </value-group>
            <value-group caption="Sequential Selection select" name="CCL_SEQSEL0">
                <value caption="Sequential logic disabled" name="DISABLE" value="0x00"/>
                <value caption="D FlipFlop" name="DFF" value="0x01"/>
                <value caption="JK FlipFlop" name="JK" value="0x02"/>
                <value caption="D Latch" name="LATCH" value="0x03"/>
                <value caption="RS Latch" name="RS" value="0x04"/>
            </value-group>
            <value-group caption="Sequential Selection select" name="CCL_SEQSEL1">
                <value caption="Sequential logic disabled" name="DISABLE" value="0x00"/>
                <value caption="D FlipFlop" name="DFF" value="0x01"/>
                <value caption="JK FlipFlop" name="JK" value="0x02"/>
                <value caption="D Latch" name="LATCH" value="0x03"/>
                <value caption="RS Latch" name="RS" value="0x04"/>
            </value-group>
        </module>
        <module caption="Clock controller" id="I2600" name="CLKCTRL">
            <register-group caption="Clock controller" name="CLKCTRL" size="0x20">
                <register caption="MCLK Control A" initval="0x00" name="MCLKCTRLA" offset="0x00" rw="RW" size="1">
                    <bitfield caption="System clock out" mask="0x80" name="CLKOUT" rw="RW"/>
                    <bitfield caption="clock select" mask="0x3" name="CLKSEL" rw="RW" values="CLKCTRL_CLKSEL"/>
                </register>
                <register caption="MCLK Control B" initval="0x11" name="MCLKCTRLB" offset="0x01" rw="RW" size="1">
                    <bitfield caption="Prescaler division" mask="0x1e" name="PDIV" rw="RW" values="CLKCTRL_PDIV"/>
                    <bitfield caption="Prescaler enable" mask="0x1" name="PEN" rw="RW"/>
                </register>
                <register caption="MCLK Lock" name="MCLKLOCK" offset="0x02" rw="RW" size="1">
                    <bitfield caption="lock ebable" mask="0x1" name="LOCKEN" rw="RW"/>
                </register>
                <register caption="MCLK Status" name="MCLKSTATUS" offset="0x03" rw="R" size="1">
                    <bitfield caption="External Clock status" mask="0x80" name="EXTS" rw="R"/>
                    <bitfield caption="20MHz oscillator status" mask="0x10" name="OSC20MS" rw="R"/>
                    <bitfield caption="32KHz oscillator status" mask="0x20" name="OSC32KS" rw="R"/>
                    <bitfield caption="System Oscillator changing" mask="0x1" name="SOSC" rw="R"/>
                    <bitfield caption="32.768 kHz Crystal Oscillator status" mask="0x40" name="XOSC32KS" rw="R"/>
                </register>
                <register caption="OSC20M Calibration A" initval="0x00" name="OSC20MCALIBA" offset="0x11" rw="RW"
                          size="1">
                    <bitfield caption="Calibration" mask="0x7f" name="CAL20M" rw="RW"/>
                </register>
                <register caption="OSC20M Calibration B" name="OSC20MCALIBB" offset="0x12" rw="RW" size="1">
                    <bitfield caption="Lock" mask="0x80" name="LOCK" rw="RW"/>
                    <bitfield caption="Oscillator temperature coefficient" mask="0xf" name="TEMPCAL20M" rw="RW"/>
                </register>
                <register caption="OSC20M Control A" name="OSC20MCTRLA" offset="0x10" rw="RW" size="1">
                    <bitfield caption="Run standby" mask="0x2" name="RUNSTDBY" rw="RW"/>
                </register>
                <register caption="OSC32K Control A" initval="0x00" name="OSC32KCTRLA" offset="0x18" rw="RW" size="1">
                    <bitfield caption="Run standby" mask="0x2" name="RUNSTDBY" rw="RW"/>
                </register>
                <register caption="XOSC32K Control A" initval="0x00" name="XOSC32KCTRLA" offset="0x1C" rw="RW" size="1">
                    <bitfield caption="Crystal startup time" mask="0x30" name="CSUT" rw="RW" values="CLKCTRL_CSUT"/>
                    <bitfield caption="Enable" mask="0x1" name="ENABLE" rw="RW"/>
                    <bitfield caption="Run standby" mask="0x2" name="RUNSTDBY" rw="RW"/>
                    <bitfield caption="Select" mask="0x4" name="SEL" rw="RW"/>
                </register>
            </register-group>
            <value-group caption="clock select select" name="CLKCTRL_CLKSEL">
                <value caption="20MHz oscillator" name="OSC20M" value="0x00"/>
                <value caption="32KHz oscillator" name="OSCULP32K" value="0x01"/>
                <value caption="32.768kHz crystal oscillator" name="XOSC32K" value="0x02"/>
                <value caption="External clock" name="EXTCLK" value="0x03"/>
            </value-group>
            <value-group caption="Prescaler division select" name="CLKCTRL_PDIV">
                <value caption="2X" name="2X" value="0x00"/>
                <value caption="4X" name="4X" value="0x01"/>
                <value caption="8X" name="8X" value="0x02"/>
                <value caption="16X" name="16X" value="0x03"/>
                <value caption="32X" name="32X" value="0x04"/>
                <value caption="64X" name="64X" value="0x05"/>
                <value caption="6X" name="6X" value="0x08"/>
                <value caption="10X" name="10X" value="0x09"/>
                <value caption="12X" name="12X" value="0x0A"/>
                <value caption="24X" name="24X" value="0x0B"/>
                <value caption="48X" name="48X" value="0x0C"/>
            </value-group>
            <value-group caption="Crystal startup time select" name="CLKCTRL_CSUT">
                <value caption="1k cycles" name="1K" value="0x00"/>
                <value caption="16k cycles" name="16K" value="0x01"/>
                <value caption="32k cycles" name="32K" value="0x02"/>
                <value caption="64k cycles" name="64K" value="0x03"/>
            </value-group>
        </module>
        <module caption="CPU" id="I2100" name="CPU">
            <register-group caption="CPU" name="CPU" size="0x10">
                <register caption="Configuration Change Protection" initval="0x00" name="CCP" offset="0x4" rw="RW"
                          size="1">
                    <bitfield caption="CCP signature" mask="0xff" name="CCP" rw="RW" values="CPU_CCP"/>
                </register>
                <register caption="Stack Pointer High" name="SPH" offset="0xE" rw="RW" size="1"/>
                <register caption="Stack Pointer Low" name="SPL" offset="0xD" rw="RW" size="1"/>
                <register caption="Status Register" initval="0x00" name="SREG" offset="0xF" rw="RW" size="1">
                    <bitfield caption="Carry Flag" mask="0x1" name="C" rw="RW"/>
                    <bitfield caption="Half Carry Flag" mask="0x20" name="H" rw="RW"/>
                    <bitfield caption="Global Interrupt Enable Flag" mask="0x80" name="I" rw="RW"/>
                    <bitfield caption="Negative Flag" mask="0x4" name="N" rw="RW"/>
                    <bitfield caption="N Exclusive Or V Flag" mask="0x10" name="S" rw="RW"/>
                    <bitfield caption="Transfer Bit" mask="0x40" name="T" rw="RW"/>
                    <bitfield caption="Two's Complement Overflow Flag" mask="0x8" name="V" rw="RW"/>
                    <bitfield caption="Zero Flag" mask="0x2" name="Z" rw="RW"/>
                </register>
            </register-group>
            <value-group caption="CCP signature select" name="CPU_CCP">
                <value caption="SPM Instruction Protection" name="SPM" value="0x9D"/>
                <value caption="IO Register Protection" name="IOREG" value="0xD8"/>
            </value-group>
        </module>
        <module caption="Interrupt Controller" id="I2104" name="CPUINT">
            <register-group caption="Interrupt Controller" name="CPUINT" size="0x4">
                <register caption="Control A" initval="0x00" name="CTRLA" offset="0x0" rw="RW" size="1">
                    <bitfield caption="Compact Vector Table" mask="0x20" name="CVT" rw="RW"/>
                    <bitfield caption="Interrupt Vector Select" mask="0x40" name="IVSEL" rw="RW"/>
                    <bitfield caption="Round-robin Scheduling Enable" mask="0x1" name="LVL0RR" rw="RW"/>
                </register>
                <register caption="Interrupt Level 0 Priority" initval="0x00" name="LVL0PRI" offset="0x2" rw="RW"
                          size="1">
                    <bitfield caption="Interrupt Level Priority" mask="0xff" name="LVL0PRI" rw="RW"/>
                </register>
                <register caption="Interrupt Level 1 Priority Vector" initval="0x00" name="LVL1VEC" offset="0x3" rw="RW"
                          size="1">
                    <bitfield caption="Interrupt Vector with High Priority" mask="0xff" name="LVL1VEC" rw="RW"/>
                </register>
                <register caption="Status" initval="0x00" name="STATUS" offset="0x1" rw="RW" size="1">
                    <bitfield caption="Level 0 Interrupt Executing" mask="0x1" name="LVL0EX" rw="R"/>
                    <bitfield caption="Level 1 Interrupt Executing" mask="0x2" name="LVL1EX" rw="R"/>
                    <bitfield caption="Non-maskable Interrupt Executing" mask="0x80" name="NMIEX" rw="R"/>
                </register>
            </register-group>
        </module>
        <module caption="CRCSCAN" id="I2122" name="CRCSCAN">
            <register-group caption="CRCSCAN" name="CRCSCAN" size="0x4">
                <register caption="Control A" initval="0x00" name="CTRLA" offset="0x0" rw="RW" size="1">
                    <bitfield caption="Enable CRC scan" mask="0x1" name="ENABLE" rw="RW"/>
                    <bitfield caption="Enable NMI Trigger" mask="0x2" name="NMIEN" rw="RW"/>
                    <bitfield caption="Reset CRC scan" mask="0x80" name="RESET" rw="RW"/>
                </register>
                <register caption="Control B" initval="0x00" name="CTRLB" offset="0x1" rw="RW" size="1">
                    <bitfield caption="CRC Source" mask="0x3" name="SRC" rw="RW" values="CRCSCAN_SRC"/>
                </register>
                <register caption="Status" initval="0x02" name="STATUS" offset="0x2" rw="R" size="1">
                    <bitfield caption="CRC Busy" mask="0x1" name="BUSY" rw="R"/>
                    <bitfield caption="CRC Ok" mask="0x2" name="OK" rw="R"/>
                </register>
            </register-group>
            <value-group caption="CRC Source select" name="CRCSCAN_SRC">
                <value caption="CRC on entire flash" name="FLASH" value="0x0"/>
                <value caption="CRC on boot and appl section of flash" name="APPLICATION" value="0x1"/>
                <value caption="CRC on boot section of flash" name="BOOT" value="0x2"/>
            </value-group>
        </module>
        <module caption="Event System" id="I2600" name="EVSYS">
            <register-group caption="Event System" name="EVSYS" size="0x40">
                <register caption="Multiplexer Channel 0" initval="0x00" name="CHANNEL0" offset="0x10" rw="RW" size="1">
                    <bitfield caption="Generator selector" mask="0xff" name="GENERATOR" rw="RW"
                              values="EVSYS_GENERATOR"/>
                </register>
                <register caption="Multiplexer Channel 1" initval="0x00" name="CHANNEL1" offset="0x11" rw="RW" size="1">
                    <bitfield caption="Generator selector" mask="0xff" name="GENERATOR" rw="RW"
                              values="EVSYS_GENERATOR"/>
                </register>
                <register caption="Multiplexer Channel 2" initval="0x00" name="CHANNEL2" offset="0x12" rw="RW" size="1">
                    <bitfield caption="Generator selector" mask="0xff" name="GENERATOR" rw="RW"
                              values="EVSYS_GENERATOR"/>
                </register>
                <register caption="Multiplexer Channel 3" initval="0x00" name="CHANNEL3" offset="0x13" rw="RW" size="1">
                    <bitfield caption="Generator selector" mask="0xff" name="GENERATOR" rw="RW"
                              values="EVSYS_GENERATOR"/>
                </register>
                <register caption="Multiplexer Channel 4" initval="0x00" name="CHANNEL4" offset="0x14" rw="RW" size="1">
                    <bitfield caption="Generator selector" mask="0xff" name="GENERATOR" rw="RW"
                              values="EVSYS_GENERATOR"/>
                </register>
                <register caption="Multiplexer Channel 5" initval="0x00" name="CHANNEL5" offset="0x15" rw="RW" size="1">
                    <bitfield caption="Generator selector" mask="0xff" name="GENERATOR" rw="RW"
                              values="EVSYS_GENERATOR"/>
                </register>
                <register caption="Channel Strobe" initval="0x00" name="STROBE" offset="0x00" rw="W" size="1">
                    <bitfield caption="Software event on channels" mask="0xff" name="STROBE0" rw="W"
                              values="EVSYS_STROBE0"/>
                </register>
                <register caption="User ADC0" initval="0x00" name="USERADC0" offset="0x28" rw="RW" size="1">
                    <bitfield caption="Channel selector" mask="0xff" name="CHANNEL" rw="RW" values="EVSYS_CHANNEL"/>
                </register>
                <register caption="User CCL LUT0 Event A" initval="0x00" name="USERCCLLUT0A" offset="0x20" rw="RW"
                          size="1">
                    <bitfield caption="Channel selector" mask="0xff" name="CHANNEL" rw="RW" values="EVSYS_CHANNEL"/>
                </register>
                <register caption="User CCL LUT0 Event B" initval="0x00" name="USERCCLLUT0B" offset="0x21" rw="RW"
                          size="1">
                    <bitfield caption="Channel selector" mask="0xff" name="CHANNEL" rw="RW" values="EVSYS_CHANNEL"/>
                </register>
                <register caption="User CCL LUT1 Event A" initval="0x00" name="USERCCLLUT1A" offset="0x22" rw="RW"
                          size="1">
                    <bitfield caption="Channel selector" mask="0xff" name="CHANNEL" rw="RW" values="EVSYS_CHANNEL"/>
                </register>
                <register caption="User CCL LUT1 Event B" initval="0x00" name="USERCCLLUT1B" offset="0x23" rw="RW"
                          size="1">
                    <bitfield caption="Channel selector" mask="0xff" name="CHANNEL" rw="RW" values="EVSYS_CHANNEL"/>
                </register>
                <register caption="User CCL LUT2 Event A" initval="0x00" name="USERCCLLUT2A" offset="0x24" rw="RW"
                          size="1">
                    <bitfield caption="Channel selector" mask="0xff" name="CHANNEL" rw="RW" values="EVSYS_CHANNEL"/>
                </register>
                <register caption="User CCL LUT2 Event B" initval="0x00" name="USERCCLLUT2B" offset="0x25" rw="RW"
                          size="1">
                    <bitfield caption="Channel selector" mask="0xff" name="CHANNEL" rw="RW" values="EVSYS_CHANNEL"/>
                </register>
                <register caption="User CCL LUT3 Event A" initval="0x00" name="USERCCLLUT3A" offset="0x26" rw="RW"
                          size="1">
                    <bitfield caption="Channel selector" mask="0xff" name="CHANNEL" rw="RW" values="EVSYS_CHANNEL"/>
                </register>
                <register caption="User CCL LUT3 Event B" initval="0x00" name="USERCCLLUT3B" offset="0x27" rw="RW"
                          size="1">
                    <bitfield caption="Channel selector" mask="0xff" name="CHANNEL" rw="RW" values="EVSYS_CHANNEL"/>
                </register>
                <register caption="User EVOUT Port A" initval="0x00" name="USEREVOUTA" offset="0x29" rw="RW" size="1">
                    <bitfield caption="Channel selector" mask="0xff" name="CHANNEL" rw="RW" values="EVSYS_CHANNEL"/>
                </register>
                <register caption="User EVOUT Port B" initval="0x00" name="USEREVOUTB" offset="0x2A" rw="RW" size="1">
                    <bitfield caption="Channel selector" mask="0xff" name="CHANNEL" rw="RW" values="EVSYS_CHANNEL"/>
                </register>
                <register caption="User EVOUT Port C" initval="0x00" name="USEREVOUTC" offset="0x2B" rw="RW" size="1">
                    <bitfield caption="Channel selector" mask="0xff" name="CHANNEL" rw="RW" values="EVSYS_CHANNEL"/>
                </register>
                <register caption="User EVOUT Port D" initval="0x00" name="USEREVOUTD" offset="0x2C" rw="RW" size="1">
                    <bitfield caption="Channel selector" mask="0xff" name="CHANNEL" rw="RW" values="EVSYS_CHANNEL"/>
                </register>
                <register caption="User EVOUT Port E" initval="0x00" name="USEREVOUTE" offset="0x2D" rw="RW" size="1">
                    <bitfield caption="Channel selector" mask="0xff" name="CHANNEL" rw="RW" values="EVSYS_CHANNEL"/>
                </register>
                <register caption="User EVOUT Port F" initval="0x00" name="USEREVOUTF" offset="0x2E" rw="RW" size="1">
                    <bitfield caption="Channel selector" mask="0xff" name="CHANNEL" rw="RW" values="EVSYS_CHANNEL"/>
                </register>
                <register caption="User TCA0" initval="0x00" name="USERTCA0" offset="0x33" rw="RW" size="1">
                    <bitfield caption="Channel selector" mask="0xff" name="CHANNEL" rw="RW" values="EVSYS_CHANNEL"/>
                </register>
                <register caption="User TCB0" initval="0x00" name="USERTCB0" offset="0x34" rw="RW" size="1">
                    <bitfield caption="Channel selector" mask="0xff" name="CHANNEL" rw="RW" values="EVSYS_CHANNEL"/>
                </register>
                <register caption="User TCB1" initval="0x00" name="USERTCB1" offset="0x35" rw="RW" size="1">
                    <bitfield caption="Channel selector" mask="0xff" name="CHANNEL" rw="RW" values="EVSYS_CHANNEL"/>
                </register>
                <register caption="User TCB2" initval="0x00" name="USERTCB2" offset="0x36" rw="RW" size="1">
                    <bitfield caption="Channel selector" mask="0xff" name="CHANNEL" rw="RW" values="EVSYS_CHANNEL"/>
                </register>
                <register caption="User TCB3" initval="0x00" name="USERTCB3" offset="0x37" rw="RW" size="1">
                    <bitfield caption="Channel selector" mask="0xff" name="CHANNEL" rw="RW" values="EVSYS_CHANNEL"/>
                </register>
                <register caption="User USART0" initval="0x00" name="USERUSART0" offset="0x2F" rw="RW" size="1">
                    <bitfield caption="Channel selector" mask="0xff" name="CHANNEL" rw="RW" values="EVSYS_CHANNEL"/>
                </register>
                <register caption="User USART1" initval="0x00" name="USERUSART1" offset="0x30" rw="RW" size="1">
                    <bitfield caption="Channel selector" mask="0xff" name="CHANNEL" rw="RW" values="EVSYS_CHANNEL"/>
                </register>
                <register caption="User USART2" initval="0x00" name="USERUSART2" offset="0x31" rw="RW" size="1">
                    <bitfield caption="Channel selector" mask="0xff" name="CHANNEL" rw="RW" values="EVSYS_CHANNEL"/>
                </register>
                <register caption="User USART3" initval="0x00" name="USERUSART3" offset="0x32" rw="RW" size="1">
                    <bitfield caption="Channel selector" mask="0xff" name="CHANNEL" rw="RW" values="EVSYS_CHANNEL"/>
                </register>
            </register-group>
            <value-group caption="Generator selector select" name="EVSYS_GENERATOR">
                <value caption="Off" name="OFF" value="0x0"/>
                <value caption="Unified Program and Debug Interface" name="UPDI" value="0x1"/>
                <value caption="Real Time Counter overflow" name="RTC_OVF" value="0x6"/>
                <value caption="Real Time Counter compare" name="RTC_CMP" value="0x7"/>
                <value caption="Periodic Interrupt Timer output 0" name="RTC_PIT0" value="0x8"/>
                <value caption="Periodic Interrupt Timer output 1" name="RTC_PIT1" value="0x9"/>
                <value caption="Periodic Interrupt Timer output 2" name="RTC_PIT2" value="0xA"/>
                <value caption="Periodic Interrupt Timer output 3" name="RTC_PIT3" value="0xB"/>
                <value caption="Configurable Custom Logic LUT0" name="CCL_LUT0" value="0x10"/>
                <value caption="Configurable Custom Logic LUT1" name="CCL_LUT1" value="0x11"/>
                <value caption="Configurable Custom Logic LUT2" name="CCL_LUT2" value="0x12"/>
                <value caption="Configurable Custom Logic LUT3" name="CCL_LUT3" value="0x13"/>
                <value caption="Analog Comparator 0 out" name="AC0_OUT" value="0x20"/>
                <value caption="ADC 0 Result Ready Event" name="ADC0_RESRDY" value="0x24"/>
                <value caption="Port 0 Pin 0" name="PORT0_PIN0" value="0x40"/>
                <value caption="Port 0 Pin 1" name="PORT0_PIN1" value="0x41"/>
                <value caption="Port 0 Pin 2" name="PORT0_PIN2" value="0x42"/>
                <value caption="Port 0 Pin 3" name="PORT0_PIN3" value="0x43"/>
                <value caption="Port 0 Pin 4" name="PORT0_PIN4" value="0x44"/>
                <value caption="Port 0 Pin 5" name="PORT0_PIN5" value="0x45"/>
                <value caption="Port 0 Pin 6" name="PORT0_PIN6" value="0x46"/>
                <value caption="Port 0 Pin 7" name="PORT0_PIN7" value="0x47"/>
                <value caption="Port 1 Pin 0" name="PORT1_PIN0" value="0x48"/>
                <value caption="Port 1 Pin 1" name="PORT1_PIN1" value="0x49"/>
                <value caption="Port 1 Pin 2" name="PORT1_PIN2" value="0x4A"/>
                <value caption="Port 1 Pin 3" name="PORT1_PIN3" value="0x4B"/>
                <value caption="Port 1 Pin 4" name="PORT1_PIN4" value="0x4C"/>
                <value caption="Port 1 Pin 5" name="PORT1_PIN5" value="0x4D"/>
                <value caption="Port 1 Pin 6" name="PORT1_PIN6" value="0x4E"/>
                <value caption="Port 1 Pin 7" name="PORT1_PIN7" value="0x4F"/>
                <value caption="USART 0 Xclock" name="USART0_XCK" value="0x60"/>
                <value caption="USART 1 Xclock" name="USART1_XCK" value="0x61"/>
                <value caption="USART 2 Xclock" name="USART2_XCK" value="0x62"/>
                <value caption="USART 3 Xclock" name="USART3_XCK" value="0x63"/>
                <value caption="SPI 0 Sclock" name="SPI0_SCK" value="0x68"/>
                <value caption="Timer/Counter A0 overflow / low byte underflow" name="TCA0_OVF_LUNF" value="0x80"/>
                <value caption="Timer/Counter A0 high byte underflow (split mode)" name="TCA0_HUNF" value="0x81"/>
                <value caption="Timer/Counter A0 compare 0" name="TCA0_CMP0" value="0x84"/>
                <value caption="Timer/Counter A0 compare 1" name="TCA0_CMP1" value="0x85"/>
                <value caption="Timer/Counter A0 compare 2" name="TCA0_CMP2" value="0x86"/>
                <value caption="Timer/Counter B0 capture" name="TCB0_CAPT" value="0xA0"/>
                <value caption="Timer/Counter B1 capture" name="TCB1_CAPT" value="0xA2"/>
                <value caption="Timer/Counter B2 capture" name="TCB2_CAPT" value="0xA4"/>
                <value caption="Timer/Counter B3 capture" name="TCB3_CAPT" value="0xA6"/>
            </value-group>
            <value-group caption="Software event on channels select" name="EVSYS_STROBE0">
                <value caption="" name="EV_STROBE_CH0" value="0x01"/>
                <value caption="" name="EV_STROBE_CH1" value="0x02"/>
                <value caption="" name="EV_STROBE_CH2" value="0x04"/>
                <value caption="" name="EV_STROBE_CH3" value="0x08"/>
                <value caption="" name="EV_STROBE_CH4" value="0x10"/>
                <value caption="" name="EV_STROBE_CH5" value="0x20"/>
                <value caption="" name="EV_STROBE_CH6" value="0x40"/>
                <value caption="" name="EV_STROBE_CH7" value="0x80"/>
            </value-group>
            <value-group caption="Channel selector select" name="EVSYS_CHANNEL">
                <value caption="Off" name="OFF" value="0x0"/>
                <value caption="Connect user to event channel 0" name="CHANNEL0" value="0x1"/>
                <value caption="Connect user to event channel 1" name="CHANNEL1" value="0x2"/>
                <value caption="Connect user to event channel 2" name="CHANNEL2" value="0x3"/>
                <value caption="Connect user to event channel 3" name="CHANNEL3" value="0x4"/>
                <value caption="Connect user to event channel 4" name="CHANNEL4" value="0x5"/>
                <value caption="Connect user to event channel 5" name="CHANNEL5" value="0x6"/>
            </value-group>
        </module>
        <module caption="Fuses" id="I2600" name="FUSE">
            <register-group caption="Fuses" name="FUSE" size="0x09">
                <register caption="Application Code Section End" initval="0x00" name="APPEND" offset="0x7" rw="RW"
                          size="1"/>
                <register caption="BOD Configuration" initval="0x00" name="BODCFG" offset="0x1" rw="RW" size="1">
                    <bitfield caption="BOD Operation in Active Mode" mask="0xc" name="ACTIVE" rw="RW"
                              values="FUSE_ACTIVE"/>
                    <bitfield caption="BOD Level" mask="0xe0" name="LVL" rw="RW" values="FUSE_LVL"/>
                    <bitfield caption="BOD Sample Frequency" mask="0x10" name="SAMPFREQ" rw="RW"
                              values="FUSE_SAMPFREQ"/>
                    <bitfield caption="BOD Operation in Sleep Mode" mask="0x3" name="SLEEP" rw="RW"
                              values="FUSE_SLEEP"/>
                </register>
                <register caption="Boot Section End" initval="0x00" name="BOOTEND" offset="0x8" rw="RW" size="1"/>
                <register caption="Oscillator Configuration" initval="0x02" name="OSCCFG" offset="0x2" rw="RW" size="1">
                    <bitfield caption="Frequency Select" mask="0x3" name="FREQSEL" rw="RW" values="FUSE_FREQSEL"/>
                    <bitfield caption="Oscillator Lock" mask="0x80" name="OSCLOCK" rw="RW"/>
                </register>
                <register caption="System Configuration 0" initval="0xC4" name="SYSCFG0" offset="0x5" rw="RW" size="1">
                    <bitfield caption="CRC Source" mask="0xc0" name="CRCSRC" rw="RW" values="FUSE_CRCSRC"/>
                    <bitfield caption="EEPROM Save" mask="0x1" name="EESAVE" rw="RW"/>
                    <bitfield caption="Reset Pin Configuration" mask="0x8" name="RSTPINCFG" rw="RW"
                              values="FUSE_RSTPINCFG"/>
                </register>
                <register caption="System Configuration 1" initval="0x07" name="SYSCFG1" offset="0x6" rw="RW" size="1">
                    <bitfield caption="Startup Time" mask="0x7" name="SUT" rw="RW" values="FUSE_SUT"/>
                </register>
                <register caption="Watchdog Configuration" initval="0x00" name="WDTCFG" offset="0x0" rw="RW" size="1">
                    <bitfield caption="Watchdog Timeout Period" mask="0xf" name="PERIOD" rw="RW" values="FUSE_PERIOD"/>
                    <bitfield caption="Watchdog Window Timeout Period" mask="0xf0" name="WINDOW" rw="RW"
                              values="FUSE_WINDOW"/>
                </register>
            </register-group>
            <value-group caption="BOD Operation in Active Mode select" name="FUSE_ACTIVE">
                <value caption="Disabled" name="DIS" value="0x00"/>
                <value caption="Enabled" name="ENABLED" value="0x01"/>
                <value caption="Sampled" name="SAMPLED" value="0x02"/>
                <value caption="Enabled with wake-up halted until BOD is ready" name="ENWAKE" value="0x03"/>
            </value-group>
            <value-group caption="BOD Level select" name="FUSE_LVL">
                <value caption="1.8 V" name="BODLEVEL0" value="0x00"/>
                <value caption="2.6 V" name="BODLEVEL2" value="0x02"/>
                <value caption="4.2 V" name="BODLEVEL7" value="0x07"/>
            </value-group>
            <value-group caption="BOD Sample Frequency select" name="FUSE_SAMPFREQ">
                <value caption="1kHz sampling frequency" name="1KHZ" value="0x0"/>
                <value caption="125Hz sampling frequency" name="125HZ" value="0x1"/>
            </value-group>
            <value-group caption="BOD Operation in Sleep Mode select" name="FUSE_SLEEP">
                <value caption="Disabled" name="DIS" value="0x00"/>
                <value caption="Enabled" name="ENABLED" value="0x01"/>
                <value caption="Sampled" name="SAMPLED" value="0x02"/>
            </value-group>
            <value-group caption="Frequency Select select" name="FUSE_FREQSEL">
                <value caption="16 MHz" name="16MHZ" value="0x1"/>
                <value caption="20 MHz" name="20MHZ" value="0x2"/>
            </value-group>
            <value-group caption="CRC Source select" name="FUSE_CRCSRC">
                <value caption="The CRC is performed on the entire Flash (boot, application code and application data section)."
                       name="FLASH" value="0x0"/>
                <value caption="The CRC is performed on the boot section of Flash" name="BOOT" value="0x1"/>
                <value caption="The CRC is performed on the boot and application code section of Flash" name="BOOTAPP"
                       value="0x2"/>
                <value caption="Disable CRC." name="NOCRC" value="0x3"/>
            </value-group>
            <value-group caption="Reset Pin Configuration select" name="FUSE_RSTPINCFG">
                <value caption="GPIO mode" name="GPIO" value="0x0"/>
                <value caption="Reset mode" name="RST" value="0x1"/>
            </value-group>
            <value-group caption="Startup Time select" name="FUSE_SUT">
                <value caption="0 ms" name="0MS" value="0x00"/>
                <value caption="1 ms" name="1MS" value="0x01"/>
                <value caption="2 ms" name="2MS" value="0x02"/>
                <value caption="4 ms" name="4MS" value="0x03"/>
                <value caption="8 ms" name="8MS" value="0x04"/>
                <value caption="16 ms" name="16MS" value="0x05"/>
                <value caption="32 ms" name="32MS" value="0x06"/>
                <value caption="64 ms" name="64MS" value="0x07"/>
            </value-group>
            <value-group caption="Watchdog Timeout Period select" name="FUSE_PERIOD">
                <value caption="Off" name="OFF" value="0x00"/>
                <value caption="8 cycles (8ms)" name="8CLK" value="0x01"/>
                <value caption="16 cycles (16ms)" name="16CLK" value="0x02"/>
                <value caption="32 cycles (32ms)" name="32CLK" value="0x03"/>
                <value caption="64 cycles (64ms)" name="64CLK" value="0x04"/>
                <value caption="128 cycles (0.128s)" name="128CLK" value="0x05"/>
                <value caption="256 cycles (0.256s)" name="256CLK" value="0x06"/>
                <value caption="512 cycles (0.512s)" name="512CLK" value="0x07"/>
                <value caption="1K cycles (1.0s)" name="1KCLK" value="0x08"/>
                <value caption="2K cycles (2.0s)" name="2KCLK" value="0x09"/>
                <value caption="4K cycles (4.1s)" name="4KCLK" value="0x0A"/>
                <value caption="8K cycles (8.2s)" name="8KCLK" value="0x0B"/>
            </value-group>
            <value-group caption="Watchdog Window Timeout Period select" name="FUSE_WINDOW">
                <value caption="Off" name="OFF" value="0x00"/>
                <value caption="8 cycles (8ms)" name="8CLK" value="0x01"/>
                <value caption="16 cycles (16ms)" name="16CLK" value="0x02"/>
                <value caption="32 cycles (32ms)" name="32CLK" value="0x03"/>
                <value caption="64 cycles (64ms)" name="64CLK" value="0x04"/>
                <value caption="128 cycles (0.128s)" name="128CLK" value="0x05"/>
                <value caption="256 cycles (0.256s)" name="256CLK" value="0x06"/>
                <value caption="512 cycles (0.512s)" name="512CLK" value="0x07"/>
                <value caption="1K cycles (1.0s)" name="1KCLK" value="0x08"/>
                <value caption="2K cycles (2.0s)" name="2KCLK" value="0x09"/>
                <value caption="4K cycles (4.1s)" name="4KCLK" value="0x0A"/>
                <value caption="8K cycles (8.2s)" name="8KCLK" value="0x0B"/>
            </value-group>
        </module>
        <module caption="General Purpose IO" id="I2600" name="GPIO">
            <register-group caption="General Purpose IO" name="GPIO" size="0x4">
                <register caption="General Purpose IO Register 0" name="GPIOR0" offset="0x0" rw="RW" size="1"/>
                <register caption="General Purpose IO Register 1" name="GPIOR1" offset="0x1" rw="RW" size="1"/>
                <register caption="General Purpose IO Register 2" name="GPIOR2" offset="0x2" rw="RW" size="1"/>
                <register caption="General Purpose IO Register 3" name="GPIOR3" offset="0x3" rw="RW" size="1"/>
            </register-group>
        </module>
        <module caption="Lockbit" id="I2600" name="LOCKBIT">
            <register-group caption="Lockbit" name="LOCKBIT" size="0x2">
                <register caption="Lock Bits" initval="0xC5" name="LOCKBIT" offset="0x0" rw="RW" size="1">
                    <bitfield caption="Lock Bits" mask="0xff" name="LB" rw="RW" values="LOCKBIT_LB"/>
                </register>
            </register-group>
            <value-group caption="Lock Bits select" name="LOCKBIT_LB">
                <value caption="Read and write lock" name="RWLOCK" value="0x3A"/>
                <value caption="No locks" name="NOLOCK" value="0xC5"/>
            </value-group>
        </module>
        <module caption="Non-volatile Memory Controller" id="I2109" name="NVMCTRL">
            <register-group caption="Non-volatile Memory Controller" name="NVMCTRL" size="0x10">
                <register caption="Address" name="ADDR" offset="0x8" rw="RW" size="2"/>
                <register caption="Control A" initval="0x00" name="CTRLA" offset="0x0" rw="RW" size="1">
                    <bitfield caption="Command" mask="0x7" name="CMD" rw="RW" values="NVMCTRL_CMD"/>
                </register>
                <register caption="Control B" initval="0x00" name="CTRLB" offset="0x1" rw="RW" size="1">
                    <bitfield caption="Application code write protect" mask="0x1" name="APCWP" rw="RW"/>
                    <bitfield caption="Boot Lock" mask="0x2" name="BOOTLOCK" rw="RW"/>
                </register>
                <register caption="Data" name="DATA" offset="0x6" rw="RW" size="2"/>
                <register caption="Interrupt Control" initval="0x00" name="INTCTRL" offset="0x3" rw="RW" size="1">
                    <bitfield caption="EEPROM Ready" mask="0x1" name="EEREADY" rw="RW"/>
                </register>
                <register caption="Interrupt Flags" initval="0x00" name="INTFLAGS" offset="0x4" rw="RW" size="1">
                    <bitfield caption="EEPROM Ready" mask="0x1" name="EEREADY" rw="RW"/>
                </register>
                <register caption="Status" initval="0x00" name="STATUS" offset="0x2" rw="R" size="1">
                    <bitfield caption="EEPROM busy" mask="0x2" name="EEBUSY" rw="R"/>
                    <bitfield caption="Flash busy" mask="0x1" name="FBUSY" rw="R"/>
                    <bitfield caption="Write error" mask="0x4" name="WRERROR" rw="R"/>
                </register>
            </register-group>
            <value-group caption="Command select" name="NVMCTRL_CMD">
                <value caption="No Command" name="NONE" value="0x00"/>
                <value caption="Write page" name="PAGEWRITE" value="0x01"/>
                <value caption="Erase page" name="PAGEERASE" value="0x02"/>
                <value caption="Erase and write page" name="PAGEERASEWRITE" value="0x03"/>
                <value caption="Page buffer clear" name="PAGEBUFCLR" value="0x04"/>
                <value caption="Chip erase" name="CHIPERASE" value="0x05"/>
                <value caption="EEPROM erase" name="EEERASE" value="0x06"/>
                <value caption="Write fuse (PDI only)" name="FUSEWRITE" value="0x07"/>
            </value-group>
        </module>
        <module caption="I/O Ports" id="I2103" name="PORT">
            <register-group caption="I/O Ports" name="PORT" size="0x20">
                <register caption="Data Direction" name="DIR" offset="0x00" rw="RW" size="1"/>
                <register caption="Data Direction Clear" name="DIRCLR" offset="0x02" rw="RW" size="1"/>
                <register caption="Data Direction Set" name="DIRSET" offset="0x01" rw="RW" size="1"/>
                <register caption="Data Direction Toggle" name="DIRTGL" offset="0x03" rw="RW" size="1"/>
                <register caption="Input Value" name="IN" offset="0x08" rw="RW" size="1"/>
                <register caption="Interrupt Flags" initval="0x00" name="INTFLAGS" offset="0x09" rw="RW" size="1">
                    <bitfield caption="Pin Interrupt" mask="0xff" name="INT" rw="RW"/>
                </register>
                <register caption="Output Value" name="OUT" offset="0x04" rw="RW" size="1"/>
                <register caption="Output Value Clear" name="OUTCLR" offset="0x06" rw="RW" size="1"/>
                <register caption="Output Value Set" name="OUTSET" offset="0x05" rw="RW" size="1"/>
                <register caption="Output Value Toggle" name="OUTTGL" offset="0x07" rw="RW" size="1"/>
                <register caption="Pin 0 Control" initval="0x00" name="PIN0CTRL" offset="0x10" rw="RW" size="1">
                    <bitfield caption="Inverted I/O Enable" mask="0x80" name="INVEN" rw="RW"/>
                    <bitfield caption="Input/Sense Configuration" mask="0x7" name="ISC" rw="RW" values="PORT_ISC"/>
                    <bitfield caption="Pullup enable" mask="0x8" name="PULLUPEN" rw="RW"/>
                </register>
                <register caption="Pin 1 Control" initval="0x00" name="PIN1CTRL" offset="0x11" rw="RW" size="1">
                    <bitfield caption="Inverted I/O Enable" mask="0x80" name="INVEN" rw="RW"/>
                    <bitfield caption="Input/Sense Configuration" mask="0x7" name="ISC" rw="RW" values="PORT_ISC"/>
                    <bitfield caption="Pullup enable" mask="0x8" name="PULLUPEN" rw="RW"/>
                </register>
                <register caption="Pin 2 Control" initval="0x00" name="PIN2CTRL" offset="0x12" rw="RW" size="1">
                    <bitfield caption="Inverted I/O Enable" mask="0x80" name="INVEN" rw="RW"/>
                    <bitfield caption="Input/Sense Configuration" mask="0x7" name="ISC" rw="RW" values="PORT_ISC"/>
                    <bitfield caption="Pullup enable" mask="0x8" name="PULLUPEN" rw="RW"/>
                </register>
                <register caption="Pin 3 Control" initval="0x00" name="PIN3CTRL" offset="0x13" rw="RW" size="1">
                    <bitfield caption="Inverted I/O Enable" mask="0x80" name="INVEN" rw="RW"/>
                    <bitfield caption="Input/Sense Configuration" mask="0x7" name="ISC" rw="RW" values="PORT_ISC"/>
                    <bitfield caption="Pullup enable" mask="0x8" name="PULLUPEN" rw="RW"/>
                </register>
                <register caption="Pin 4 Control" initval="0x00" name="PIN4CTRL" offset="0x14" rw="RW" size="1">
                    <bitfield caption="Inverted I/O Enable" mask="0x80" name="INVEN" rw="RW"/>
                    <bitfield caption="Input/Sense Configuration" mask="0x7" name="ISC" rw="RW" values="PORT_ISC"/>
                    <bitfield caption="Pullup enable" mask="0x8" name="PULLUPEN" rw="RW"/>
                </register>
                <register caption="Pin 5 Control" initval="0x00" name="PIN5CTRL" offset="0x15" rw="RW" size="1">
                    <bitfield caption="Inverted I/O Enable" mask="0x80" name="INVEN" rw="RW"/>
                    <bitfield caption="Input/Sense Configuration" mask="0x7" name="ISC" rw="RW" values="PORT_ISC"/>
                    <bitfield caption="Pullup enable" mask="0x8" name="PULLUPEN" rw="RW"/>
                </register>
                <register caption="Pin 6 Control" initval="0x00" name="PIN6CTRL" offset="0x16" rw="RW" size="1">
                    <bitfield caption="Inverted I/O Enable" mask="0x80" name="INVEN" rw="RW"/>
                    <bitfield caption="Input/Sense Configuration" mask="0x7" name="ISC" rw="RW" values="PORT_ISC"/>
                    <bitfield caption="Pullup enable" mask="0x8" name="PULLUPEN" rw="RW"/>
                </register>
                <register caption="Pin 7 Control" initval="0x00" name="PIN7CTRL" offset="0x17" rw="RW" size="1">
                    <bitfield caption="Inverted I/O Enable" mask="0x80" name="INVEN" rw="RW"/>
                    <bitfield caption="Input/Sense Configuration" mask="0x7" name="ISC" rw="RW" values="PORT_ISC"/>
                    <bitfield caption="Pullup enable" mask="0x8" name="PULLUPEN" rw="RW"/>
                </register>
                <register caption="Port Control" initval="0x00" name="PORTCTRL" offset="0x0A" rw="RW" size="1">
                    <bitfield caption="Slew Rate Limit Enable" mask="0x1" name="SRL" rw="RW"/>
                </register>
            </register-group>
            <value-group caption="Input/Sense Configuration select" name="PORT_ISC">
                <value caption="Interrupt disabled but input buffer enabled" name="INTDISABLE" value="0x0"/>
                <value caption="Sense Both Edges" name="BOTHEDGES" value="0x1"/>
                <value caption="Sense Rising Edge" name="RISING" value="0x2"/>
                <value caption="Sense Falling Edge" name="FALLING" value="0x3"/>
                <value caption="Digital Input Buffer disabled" name="INPUT_DISABLE" value="0x4"/>
                <value caption="Sense low Level" name="LEVEL" value="0x5"/>
            </value-group>
        </module>
        <module caption="Port Multiplexer" id="I2600" name="PORTMUX">
            <register-group caption="Port Multiplexer" name="PORTMUX" size="0x10">
                <register caption="Port Multiplexer CCL" initval="0x00" name="CCLROUTEA" offset="0x1" rw="RW" size="1">
                    <bitfield caption="CCL LUT0" mask="0x1" name="LUT0" rw="RW"/>
                    <bitfield caption="CCL LUT1" mask="0x2" name="LUT1" rw="RW"/>
                    <bitfield caption="CCL LUT2" mask="0x4" name="LUT2" rw="RW"/>
                    <bitfield caption="CCL LUT3" mask="0x8" name="LUT3" rw="RW"/>
                </register>
                <register caption="Port Multiplexer EVSYS" initval="0x00" name="EVSYSROUTEA" offset="0x0" rw="RW"
                          size="1">
                    <bitfield caption="Event Output A" mask="0x1" name="EVOUTA" rw="RW" values="PORTMUX_EVOUTA"/>
                    <bitfield caption="Event Output B" mask="0x2" name="EVOUTB" rw="RW" values="PORTMUX_EVOUTB"/>
                    <bitfield caption="Event Output C" mask="0x4" name="EVOUTC" rw="RW" values="PORTMUX_EVOUTC"/>
                    <bitfield caption="Event Output D" mask="0x8" name="EVOUTD" rw="RW" values="PORTMUX_EVOUTD"/>
                    <bitfield caption="Event Output E" mask="0x10" name="EVOUTE" rw="RW" values="PORTMUX_EVOUTE"/>
                    <bitfield caption="Event Output F" mask="0x20" name="EVOUTF" rw="RW" values="PORTMUX_EVOUTF"/>
                </register>
                <register caption="Port Multiplexer TCA" initval="0x00" name="TCAROUTEA" offset="0x4" rw="RW" size="1">
                    <bitfield caption="Port Multiplexer TCA0" mask="0x7" name="TCA0" rw="RW" values="PORTMUX_TCA0"/>
                </register>
                <register caption="Port Multiplexer TCB" initval="0x00" name="TCBROUTEA" offset="0x5" rw="RW" size="1">
                    <bitfield caption="Port Multiplexer TCB0" mask="0x1" name="TCB0" rw="RW" values="PORTMUX_TCB0"/>
                    <bitfield caption="Port Multiplexer TCB1" mask="0x2" name="TCB1" rw="RW" values="PORTMUX_TCB1"/>
                    <bitfield caption="Port Multiplexer TCB2" mask="0x4" name="TCB2" rw="RW" values="PORTMUX_TCB2"/>
                    <bitfield caption="Port Multiplexer TCB3" mask="0x8" name="TCB3" rw="RW" values="PORTMUX_TCB3"/>
                </register>
                <register caption="Port Multiplexer TWI and SPI" initval="0x00" name="TWISPIROUTEA" offset="0x3" rw="RW"
                          size="1">
                    <bitfield caption="Port Multiplexer SPI0" mask="0x3" name="SPI0" rw="RW" values="PORTMUX_SPI0"/>
                    <bitfield caption="Port Multiplexer TWI0" mask="0x30" name="TWI0" rw="RW" values="PORTMUX_TWI0"/>
                </register>
                <register caption="Port Multiplexer USART register A" initval="0x00" name="USARTROUTEA" offset="0x2"
                          rw="RW" size="1">
                    <bitfield caption="Port Multiplexer USART0" mask="0x3" name="USART0" rw="RW"
                              values="PORTMUX_USART0"/>
                    <bitfield caption="Port Multiplexer USART1" mask="0xc" name="USART1" rw="RW"
                              values="PORTMUX_USART1"/>
                    <bitfield caption="Port Multiplexer USART2" mask="0x30" name="USART2" rw="RW"
                              values="PORTMUX_USART2"/>
                    <bitfield caption="Port Multiplexer USART3" mask="0xc0" name="USART3" rw="RW"
                              values="PORTMUX_USART3"/>
                </register>
            </register-group>
            <value-group caption="Event Output A select" name="PORTMUX_EVOUTA">
                <value caption="EVOUT on PA2" name="DEFAULT" value="0x0"/>
                <value caption="EVOUT on PA7" name="ALT1" value="0x1"/>
            </value-group>
            <value-group caption="Event Output C select" name="PORTMUX_EVOUTC">
                <value caption="EVOUT on PC2" name="DEFAULT" value="0x0"/>
            </value-group>
            <value-group caption="Event Output D select" name="PORTMUX_EVOUTD">
                <value caption="EVOUT on PD2" name="DEFAULT" value="0x0"/>
                <value caption="EVOUT on PD7" name="ALT1" value="0x1"/>
            </value-group>
            <value-group caption="Event Output F select" name="PORTMUX_EVOUTF">
                <value caption="EVOUT on PF2" name="DEFAULT" value="0x0"/>
            </value-group>
            <value-group caption="Port Multiplexer TCA0 select" name="PORTMUX_TCA0">
                <value caption="TCA0 pins on PA[5:0]" name="PORTA" value="0x0"/>
                <value caption="TCA0 pins on PB[5:0]" name="PORTB" value="0x1"/>
                <value caption="TCA0 pins on PC[5:0]" name="PORTC" value="0x2"/>
                <value caption="TCA0 pins on PD[5:0]" name="PORTD" value="0x3"/>
                <value caption="TCA0 pins on PE[5:0]" name="PORTE" value="0x4"/>
                <value caption="TCA0 pins on PF[5:0]" name="PORTF" value="0x5"/>
            </value-group>
            <value-group caption="Port Multiplexer TCB0 select" name="PORTMUX_TCB0">
                <value caption="WO on PA2" name="DEFAULT" value="0x0"/>
                <value caption="WO on PF4" name="ALT1" value="0x1"/>
            </value-group>
            <value-group caption="Port Multiplexer TCB1 select" name="PORTMUX_TCB1">
                <value caption="WO on PA3" name="DEFAULT" value="0x0"/>
                <value caption="WO on PF5" name="ALT1" value="0x1"/>
            </value-group>
            <value-group caption="Port Multiplexer TCB2 select" name="PORTMUX_TCB2">
                <value caption="WO on PC0" name="DEFAULT" value="0x0"/>
            </value-group>
            <value-group caption="Port Multiplexer TCB3 select" name="PORTMUX_TCB3">
                <value caption="WO on PC1" name="ALT1" value="0x1"/>
            </value-group>
            <value-group caption="Port Multiplexer SPI0 select" name="PORTMUX_SPI0">
                <value caption="SPI0 on PA[7:4]" name="DEFAULT" value="0x0"/>
                <value caption="SPI0 on PC[3:0]" name="ALT1" value="0x1"/>
                <value caption="SPI0 on PE[3:0]" name="ALT2" value="0x2"/>
                <value caption="Not connected to any pins" name="NONE" value="0x3"/>
            </value-group>
            <value-group caption="Port Multiplexer TWI0 select" name="PORTMUX_TWI0">
                <value caption="SCL/SDA on PA[3:2], Slave mode on PC[3:2] in dual TWI mode" name="DEFAULT" value="0x0"/>
                <value caption="SCL/SDA on PA[3:2], Slave mode on PF[3:2] in dual TWI mode" name="ALT1" value="0x1"/>
                <value caption="SCL/SDA on PC[3:2], Slave mode on PF[3:2] in dual TWI mode" name="ALT2" value="0x2"/>
                <value caption="Not connected to any pins" name="NONE" value="0x3"/>
            </value-group>
            <value-group caption="Port Multiplexer USART0 select" name="PORTMUX_USART0">
                <value caption="USART0 on PA[3:0]" name="DEFAULT" value="0x0"/>
                <value caption="USART0 on PA[7:4]" name="ALT1" value="0x1"/>
                <value caption="Not connected to any pins" name="NONE" value="0x3"/>
            </value-group>
            <value-group caption="Port Multiplexer USART1 select" name="PORTMUX_USART1">
                <value caption="USART1 on PC[3:0]" name="DEFAULT" value="0x0"/>
                <value caption="USART1 on PC[7:4]" name="ALT1" value="0x1"/>
                <value caption="Not connected to any pins" name="NONE" value="0x3"/>
            </value-group>
            <value-group caption="Port Multiplexer USART2 select" name="PORTMUX_USART2">
                <value caption="USART2 on PF[3:0]" name="DEFAULT" value="0x0"/>
                <value caption="USART2 on PF[6:4]" name="ALT1" value="0x1"/>
                <value caption="Not connected to any pins" name="NONE" value="0x3"/>
            </value-group>
            <value-group caption="Port Multiplexer USART3 select" name="PORTMUX_USART3">
                <value caption="USART3 on PB[3:0]" name="DEFAULT" value="0x0"/>
                <value caption="USART3 on PB[5:4]" name="ALT1" value="0x1"/>
                <value caption="Not connected to any pins" name="NONE" value="0x3"/>
            </value-group>
        </module>
        <module caption="Reset controller" id="I2111" name="RSTCTRL">
            <register-group caption="Reset controller" name="RSTCTRL" size="0x4">
                <register caption="Reset Flags" initval="0x00" name="RSTFR" offset="0x0" rw="RW" size="1">
                    <bitfield caption="Brown out detector Reset flag" mask="0x2" name="BORF" rw="RW"/>
                    <bitfield caption="External Reset flag" mask="0x4" name="EXTRF" rw="RW"/>
                    <bitfield caption="Power on Reset flag" mask="0x1" name="PORF" rw="RW"/>
                    <bitfield caption="Software Reset flag" mask="0x10" name="SWRF" rw="RW"/>
                    <bitfield caption="UPDI Reset flag" mask="0x20" name="UPDIRF" rw="RW"/>
                    <bitfield caption="Watch dog Reset flag" mask="0x8" name="WDRF" rw="RW"/>
                </register>
                <register caption="Software Reset" initval="0x00" name="SWRR" offset="0x1" rw="RW" size="1">
                    <bitfield caption="Software reset enable" mask="0x1" name="SWRE" rw="RW"/>
                </register>
            </register-group>
        </module>
        <module caption="Real-Time Counter" id="I2116" name="RTC">
            <register-group caption="Real-Time Counter" name="RTC" size="0x20">
                <register caption="Calibration" initval="0x00" name="CALIB" offset="0x06" rw="RW" size="1">
                    <bitfield caption="Error Correction Value" mask="0x7f" name="ERROR" rw="RW"/>
                    <bitfield caption="Error Correction Sign Bit" mask="0x80" name="SIGN" rw="RW"/>
                </register>
                <register caption="Clock Select" initval="0x00" name="CLKSEL" offset="0x07" rw="RW" size="1">
                    <bitfield caption="Clock Select" mask="0x3" name="CLKSEL" rw="RW" values="RTC_CLKSEL"/>
                </register>
                <register caption="Compare" name="CMP" offset="0x0C" rw="RW" size="2"/>
                <register caption="Counter" name="CNT" offset="0x08" rw="RW" size="2"/>
                <register caption="Control A" initval="0x00" name="CTRLA" offset="0x00" rw="RW" size="1">
                    <bitfield caption="Correction enable" mask="0x4" name="CORREN" rw="RW"/>
                    <bitfield caption="Prescaling Factor" mask="0x78" name="PRESCALER" rw="RW" values="RTC_PRESCALER"/>
                    <bitfield caption="Enable" mask="0x1" name="RTCEN" rw="RW"/>
                    <bitfield caption="Run In Standby" mask="0x80" name="RUNSTDBY" rw="RW"/>
                </register>
                <register caption="Debug control" initval="0x00" name="DBGCTRL" offset="0x05" rw="RW" size="1">
                    <bitfield caption="Run in debug" mask="0x1" name="DBGRUN" rw="RW"/>
                </register>
                <register caption="Interrupt Control" initval="0x00" name="INTCTRL" offset="0x02" rw="RW" size="1">
                    <bitfield caption="Compare Match Interrupt enable" mask="0x2" name="CMP" rw="RW"/>
                    <bitfield caption="Overflow Interrupt enable" mask="0x1" name="OVF" rw="RW"/>
                </register>
                <register caption="Interrupt Flags" initval="0x00" name="INTFLAGS" offset="0x03" rw="RW" size="1">
                    <bitfield caption="Compare Match Interrupt" mask="0x2" name="CMP" rw="RW"/>
                    <bitfield caption="Overflow Interrupt Flag" mask="0x1" name="OVF" rw="RW"/>
                </register>
                <register caption="Period" initval="0xFFFF" name="PER" offset="0x0A" rw="RW" size="2"/>
                <register caption="PIT Control A" initval="0x00" name="PITCTRLA" offset="0x10" rw="RW" size="1">
                    <bitfield caption="Period" mask="0x78" name="PERIOD" rw="RW" values="RTC_PERIOD"/>
                    <bitfield caption="Enable" mask="0x1" name="PITEN" rw="RW"/>
                </register>
                <register caption="PIT Debug control" initval="0x00" name="PITDBGCTRL" offset="0x15" rw="RW" size="1">
                    <bitfield caption="Run in debug" mask="0x1" name="DBGRUN" rw="RW"/>
                </register>
                <register caption="PIT Interrupt Control" initval="0x00" name="PITINTCTRL" offset="0x12" rw="RW"
                          size="1">
                    <bitfield caption="Periodic Interrupt" mask="0x1" name="PI" rw="RW"/>
                </register>
                <register caption="PIT Interrupt Flags" initval="0x00" name="PITINTFLAGS" offset="0x13" rw="RW"
                          size="1">
                    <bitfield caption="Periodic Interrupt" mask="0x1" name="PI" rw="RW"/>
                </register>
                <register caption="PIT Status" initval="0x00" name="PITSTATUS" offset="0x11" rw="R" size="1">
                    <bitfield caption="CTRLA Synchronization Busy Flag" mask="0x1" name="CTRLBUSY" rw="R"/>
                </register>
                <register caption="Status" initval="0x00" name="STATUS" offset="0x01" rw="R" size="1">
                    <bitfield caption="Comparator Synchronization Busy Flag" mask="0x8" name="CMPBUSY" rw="R"/>
                    <bitfield caption="Count Synchronization Busy Flag" mask="0x2" name="CNTBUSY" rw="R"/>
                    <bitfield caption="CTRLA Synchronization Busy Flag" mask="0x1" name="CTRLABUSY" rw="R"/>
                    <bitfield caption="Period Synchronization Busy Flag" mask="0x4" name="PERBUSY" rw="R"/>
                </register>
                <register caption="Temporary" name="TEMP" offset="0x04" rw="RW" size="1"/>
            </register-group>
            <value-group caption="Clock Select select" name="RTC_CLKSEL">
                <value caption="Internal 32kHz OSC" name="INT32K" value="0x00"/>
                <value caption="Internal 1kHz OSC" name="INT1K" value="0x01"/>
                <value caption="32KHz Crystal OSC" name="TOSC32K" value="0x02"/>
                <value caption="External Clock" name="EXTCLK" value="0x03"/>
            </value-group>
            <value-group caption="Prescaling Factor select" name="RTC_PRESCALER">
                <value caption="RTC Clock / 1" name="DIV1" value="0x00"/>
                <value caption="RTC Clock / 2" name="DIV2" value="0x01"/>
                <value caption="RTC Clock / 4" name="DIV4" value="0x02"/>
                <value caption="RTC Clock / 8" name="DIV8" value="0x03"/>
                <value caption="RTC Clock / 16" name="DIV16" value="0x04"/>
                <value caption="RTC Clock / 32" name="DIV32" value="0x05"/>
                <value caption="RTC Clock / 64" name="DIV64" value="0x06"/>
                <value caption="RTC Clock / 128" name="DIV128" value="0x07"/>
                <value caption="RTC Clock / 256" name="DIV256" value="0x08"/>
                <value caption="RTC Clock / 512" name="DIV512" value="0x09"/>
                <value caption="RTC Clock / 1024" name="DIV1024" value="0x0A"/>
                <value caption="RTC Clock / 2048" name="DIV2048" value="0x0B"/>
                <value caption="RTC Clock / 4096" name="DIV4096" value="0x0C"/>
                <value caption="RTC Clock / 8192" name="DIV8192" value="0x0D"/>
                <value caption="RTC Clock / 16384" name="DIV16384" value="0x0E"/>
                <value caption="RTC Clock / 32768" name="DIV32768" value="0x0F"/>
            </value-group>
            <value-group caption="Period select" name="RTC_PERIOD">
                <value caption="Off" name="OFF" value="0x00"/>
                <value caption="RTC Clock Cycles 4" name="CYC4" value="0x01"/>
                <value caption="RTC Clock Cycles 8" name="CYC8" value="0x02"/>
                <value caption="RTC Clock Cycles 16" name="CYC16" value="0x03"/>
                <value caption="RTC Clock Cycles 32" name="CYC32" value="0x04"/>
                <value caption="RTC Clock Cycles 64" name="CYC64" value="0x05"/>
                <value caption="RTC Clock Cycles 128" name="CYC128" value="0x06"/>
                <value caption="RTC Clock Cycles 256" name="CYC256" value="0x07"/>
                <value caption="RTC Clock Cycles 512" name="CYC512" value="0x08"/>
                <value caption="RTC Clock Cycles 1024" name="CYC1024" value="0x09"/>
                <value caption="RTC Clock Cycles 2048" name="CYC2048" value="0x0A"/>
                <value caption="RTC Clock Cycles 4096" name="CYC4096" value="0x0B"/>
                <value caption="RTC Clock Cycles 8192" name="CYC8192" value="0x0C"/>
                <value caption="RTC Clock Cycles 16384" name="CYC16384" value="0x0D"/>
                <value caption="RTC Clock Cycles 32768" name="CYC32768" value="0x0E"/>
            </value-group>
        </module>
        <module caption="Signature row" id="I2600" name="SIGROW">
            <register-group caption="Signature row" name="SIGROW" size="0x40">
                <register caption="CRC Checksum Byte 1" name="CHECKSUM1" offset="0x2F" rw="R" size="1"/>
                <register caption="Device ID Byte 0" name="DEVICEID0" offset="0x00" rw="R" size="1"/>
                <register caption="Device ID Byte 1" name="DEVICEID1" offset="0x01" rw="R" size="1"/>
                <register caption="Device ID Byte 2" name="DEVICEID2" offset="0x02" rw="R" size="1"/>
                <register caption="Oscillator Calibration 16 MHz Byte 0" name="OSCCAL16M0" offset="0x18" rw="R"
                          size="1"/>
                <register caption="Oscillator Calibration 16 MHz Byte 1" name="OSCCAL16M1" offset="0x19" rw="R"
                          size="1"/>
                <register caption="Oscillator Calibration 20 MHz Byte 0" name="OSCCAL20M0" offset="0x1A" rw="R"
                          size="1"/>
                <register caption="Oscillator Calibration 20 MHz Byte 1" name="OSCCAL20M1" offset="0x1B" rw="R"
                          size="1"/>
                <register caption="Oscillator Calibration for 32kHz ULP" name="OSCCAL32K" offset="0x14" rw="R"
                          size="1"/>
                <register caption="OSC16 error at 3V" name="OSC16ERR3V" offset="0x22" rw="R" size="1"/>
                <register caption="OSC16 error at 5V" name="OSC16ERR5V" offset="0x23" rw="R" size="1"/>
                <register caption="OSC20 error at 3V" name="OSC20ERR3V" offset="0x24" rw="R" size="1"/>
                <register caption="OSC20 error at 5V" name="OSC20ERR5V" offset="0x25" rw="R" size="1"/>
                <register caption="Serial Number Byte 0" name="SERNUM0" offset="0x03" rw="R" size="1"/>
                <register caption="Serial Number Byte 1" name="SERNUM1" offset="0x04" rw="R" size="1"/>
                <register caption="Serial Number Byte 2" name="SERNUM2" offset="0x05" rw="R" size="1"/>
                <register caption="Serial Number Byte 3" name="SERNUM3" offset="0x06" rw="R" size="1"/>
                <register caption="Serial Number Byte 4" name="SERNUM4" offset="0x07" rw="R" size="1"/>
                <register caption="Serial Number Byte 5" name="SERNUM5" offset="0x08" rw="R" size="1"/>
                <register caption="Serial Number Byte 6" name="SERNUM6" offset="0x09" rw="R" size="1"/>
                <register caption="Serial Number Byte 7" name="SERNUM7" offset="0x0A" rw="R" size="1"/>
                <register caption="Serial Number Byte 8" name="SERNUM8" offset="0x0B" rw="R" size="1"/>
                <register caption="Serial Number Byte 9" name="SERNUM9" offset="0x0C" rw="R" size="1"/>
                <register caption="Temperature Sensor Calibration Byte 0" name="TEMPSENSE0" offset="0x20" rw="R"
                          size="1"/>
                <register caption="Temperature Sensor Calibration Byte 1" name="TEMPSENSE1" offset="0x21" rw="R"
                          size="1"/>
            </register-group>
        </module>
        <module caption="Sleep Controller" id="I2112" name="SLPCTRL">
            <register-group caption="Sleep Controller" name="SLPCTRL" size="0x2">
                <register caption="Control" initval="0x00" name="CTRLA" offset="0x0" rw="RW" size="1">
                    <bitfield caption="Sleep enable" mask="0x1" name="SEN" rw="RW"/>
                    <bitfield caption="Sleep mode" mask="0x6" name="SMODE" rw="RW" values="SLPCTRL_SMODE"/>
                </register>
            </register-group>
            <value-group caption="Sleep mode select" name="SLPCTRL_SMODE">
                <value caption="Idle mode" name="IDLE" value="0x00"/>
                <value caption="Standby Mode" name="STDBY" value="0x01"/>
                <value caption="Power-down Mode" name="PDOWN" value="0x02"/>
            </value-group>
        </module>
        <module caption="Serial Peripheral Interface" id="I2107" name="SPI">
            <register-group caption="Serial Peripheral Interface" name="SPI" size="0x8">
                <register caption="Control A" initval="0x00" name="CTRLA" offset="0x0" rw="RW" size="1">
                    <bitfield caption="Enable Double Speed" mask="0x10" name="CLK2X" rw="RW"/>
                    <bitfield caption="Data Order Setting" mask="0x40" name="DORD" rw="RW"/>
                    <bitfield caption="Enable Module" mask="0x1" name="ENABLE" rw="RW"/>
                    <bitfield caption="Master Operation Enable" mask="0x20" name="MASTER" rw="RW"/>
                    <bitfield caption="Prescaler" mask="0x6" name="PRESC" rw="RW" values="SPI_PRESC"/>
                </register>
                <register caption="Control B" initval="0x00" name="CTRLB" offset="0x1" rw="RW" size="1">
                    <bitfield caption="Buffer Mode Enable" mask="0x80" name="BUFEN" rw="RW"/>
                    <bitfield caption="Buffer Write Mode" mask="0x40" name="BUFWR" rw="RW"/>
                    <bitfield caption="SPI Mode" mask="0x3" name="MODE" rw="RW" values="SPI_MODE"/>
                    <bitfield caption="Slave Select Disable" mask="0x4" name="SSD" rw="RW"/>
                </register>
                <register caption="Data" name="DATA" offset="0x4" rw="RW" size="1"/>
                <register caption="Interrupt Control" name="INTCTRL" offset="0x2" rw="RW" size="1">
                    <bitfield caption="Data Register Empty Interrupt Enable" mask="0x20" name="DREIE" rw="RW"/>
                    <bitfield caption="Interrupt Enable" mask="0x1" name="IE" rw="RW"/>
                    <bitfield caption="Receive Complete Interrupt Enable" mask="0x80" name="RXCIE" rw="RW"/>
                    <bitfield caption="Slave Select Trigger Interrupt Enable" mask="0x10" name="SSIE" rw="RW"/>
                    <bitfield caption="Transfer Complete Interrupt Enable" mask="0x40" name="TXCIE" rw="RW"/>
                </register>
                <register caption="Interrupt Flags" initval="0x00" name="INTFLAGS" offset="0x3" rw="RW" size="1">
                    <mode name="BUFFERED">
                        <bitfield caption="Buffer Overflow" mask="0x1" name="BUFOVF" rw="RW"/>
                        <bitfield caption="Data Register Empty Interrupt Flag" mask="0x20" name="DREIF" rw="RW"/>
                        <bitfield caption="Receive Complete Interrupt Flag" mask="0x80" name="RXCIF" rw="RW"/>
                        <bitfield caption="Slave Select Trigger Interrupt Flag" mask="0x10" name="SSIF" rw="RW"/>
                        <bitfield caption="Transfer Complete Interrupt Flag" mask="0x40" name="TXCIF" rw="RW"/>
                    </mode>
                    <mode name="DEFAULT">
                        <bitfield caption="Interrupt Flag" mask="0x80" name="IF" rw="RW"/>
                        <bitfield caption="Write Collision" mask="0x40" name="WRCOL" rw="RW"/>
                    </mode>
                </register>
            </register-group>
            <value-group caption="Prescaler select" name="SPI_PRESC">
                <value caption="System Clock / 4" name="DIV4" value="0x00"/>
                <value caption="System Clock / 16" name="DIV16" value="0x01"/>
                <value caption="System Clock / 64" name="DIV64" value="0x02"/>
                <value caption="System Clock / 128" name="DIV128" value="0x03"/>
            </value-group>
            <value-group caption="SPI Mode select" name="SPI_MODE">
                <value caption="SPI Mode 0" name="0" value="0x00"/>
                <value caption="SPI Mode 1" name="1" value="0x01"/>
                <value caption="SPI Mode 2" name="2" value="0x02"/>
                <value caption="SPI Mode 3" name="3" value="0x03"/>
            </value-group>
        </module>
        <module caption="System Configuration Registers" id="I2600" name="SYSCFG">
            <register-group caption="System Configuration Registers" name="SYSCFG" size="0x20">
                <register caption="External Break" initval="0x00" name="EXTBRK" offset="0x02" rw="RW" size="1">
                    <bitfield caption="External break enable" mask="0x1" name="ENEXTBRK" rw="RW"/>
                </register>
                <register caption="OCD Message Register" name="OCDM" offset="0x18" rw="RW" size="1"/>
                <register caption="OCD Message Status" initval="0x00" name="OCDMS" offset="0x19" rw="RW" size="1">
                    <bitfield caption="OCD Message Read" mask="0x1" name="OCDMR" rw="RW"/>
                </register>
                <register caption="Revision ID" name="REVID" offset="0x01" rw="RW" size="1"/>
            </register-group>
        </module>
        <module caption="16-bit Timer/Counter Type A" id="I2117" name="TCA">
            <register-group caption="16-bit Timer/Counter Type A - Single Mode" name="TCA_SINGLE" size="0x40">
                <register caption="Compare 0" name="CMP0" offset="0x28" rw="RW" size="2"/>
                <register caption="Compare 0 Buffer" name="CMP0BUF" offset="0x38" rw="RW" size="2"/>
                <register caption="Compare 1" name="CMP1" offset="0x2A" rw="RW" size="2"/>
                <register caption="Compare 1 Buffer" name="CMP1BUF" offset="0x3A" rw="RW" size="2"/>
                <register caption="Compare 2" name="CMP2" offset="0x2C" rw="RW" size="2"/>
                <register caption="Compare 2 Buffer" name="CMP2BUF" offset="0x3C" rw="RW" size="2"/>
                <register caption="Count" name="CNT" offset="0x20" rw="RW" size="2"/>
                <register caption="Control A" initval="0x00" name="CTRLA" offset="0x00" rw="RW" size="1">
                    <bitfield caption="Clock Selection" mask="0xe" name="CLKSEL" rw="RW" values="TCA_SINGLE_CLKSEL"/>
                    <bitfield caption="Module Enable" mask="0x1" name="ENABLE" rw="RW"/>
                </register>
                <register caption="Control B" initval="0x00" name="CTRLB" offset="0x01" rw="RW" size="1">
                    <bitfield caption="Auto Lock Update" mask="0x8" name="ALUPD" rw="RW"/>
                    <bitfield caption="Compare 0 Enable" mask="0x10" name="CMP0EN" rw="RW"/>
                    <bitfield caption="Compare 1 Enable" mask="0x20" name="CMP1EN" rw="RW"/>
                    <bitfield caption="Compare 2 Enable" mask="0x40" name="CMP2EN" rw="RW"/>
                    <bitfield caption="Waveform generation mode" mask="0x7" name="WGMODE" rw="RW"
                              values="TCA_SINGLE_WGMODE"/>
                </register>
                <register caption="Control C" initval="0x00" name="CTRLC" offset="0x02" rw="RW" size="1">
                    <bitfield caption="Compare 0 Waveform Output Value" mask="0x1" name="CMP0OV" rw="RW"/>
                    <bitfield caption="Compare 1 Waveform Output Value" mask="0x2" name="CMP1OV" rw="RW"/>
                    <bitfield caption="Compare 2 Waveform Output Value" mask="0x4" name="CMP2OV" rw="RW"/>
                </register>
                <register caption="Control D" initval="0x00" name="CTRLD" offset="0x03" rw="RW" size="1">
                    <bitfield caption="Split Mode Enable" mask="0x1" name="SPLITM" rw="RW"/>
                </register>
                <register caption="Control E Clear" initval="0x00" name="CTRLECLR" offset="0x04" rw="RW" size="1">
                    <bitfield caption="Command" mask="0xc" name="CMD" rw="RW" values="TCA_SINGLE_CMD"/>
                    <bitfield caption="Direction" mask="0x1" name="DIR" rw="RW"/>
                    <bitfield caption="Lock Update" mask="0x2" name="LUPD" rw="RW"/>
                </register>
                <register caption="Control E Set" initval="0x00" name="CTRLESET" offset="0x05" rw="RW" size="1">
                    <bitfield caption="Command" mask="0xc" name="CMD" rw="RW" values="TCA_SINGLE_CMD"/>
                    <bitfield caption="Direction" mask="0x1" name="DIR" rw="RW" values="TCA_SINGLE_DIR"/>
                    <bitfield caption="Lock Update" mask="0x2" name="LUPD" rw="RW"/>
                </register>
                <register caption="Control F Clear" initval="0x00" name="CTRLFCLR" offset="0x06" rw="RW" size="1">
                    <bitfield caption="Compare 0 Buffer Valid" mask="0x2" name="CMP0BV" rw="RW"/>
                    <bitfield caption="Compare 1 Buffer Valid" mask="0x4" name="CMP1BV" rw="RW"/>
                    <bitfield caption="Compare 2 Buffer Valid" mask="0x8" name="CMP2BV" rw="RW"/>
                    <bitfield caption="Period Buffer Valid" mask="0x1" name="PERBV" rw="RW"/>
                </register>
                <register caption="Control F Set" initval="0x00" name="CTRLFSET" offset="0x07" rw="RW" size="1">
                    <bitfield caption="Compare 0 Buffer Valid" mask="0x2" name="CMP0BV" rw="RW"/>
                    <bitfield caption="Compare 1 Buffer Valid" mask="0x4" name="CMP1BV" rw="RW"/>
                    <bitfield caption="Compare 2 Buffer Valid" mask="0x8" name="CMP2BV" rw="RW"/>
                    <bitfield caption="Period Buffer Valid" mask="0x1" name="PERBV" rw="RW"/>
                </register>
                <register caption="Degbug Control" initval="0x00" name="DBGCTRL" offset="0x0E" rw="RW" size="1">
                    <bitfield caption="Debug Run" mask="0x1" name="DBGRUN" rw="RW"/>
                </register>
                <register caption="Event Control" initval="0x00" name="EVCTRL" offset="0x09" rw="RW" size="1">
                    <bitfield caption="Count on Event Input" mask="0x1" name="CNTEI" rw="RW"/>
                    <bitfield caption="Event Action" mask="0x6" name="EVACT" rw="RW" values="TCA_SINGLE_EVACT"/>
                </register>
                <register caption="Interrupt Control" initval="0x00" name="INTCTRL" offset="0x0A" rw="RW" size="1">
                    <bitfield caption="Compare 0 Interrupt" mask="0x10" name="CMP0" rw="RW"/>
                    <bitfield caption="Compare 1 Interrupt" mask="0x20" name="CMP1" rw="RW"/>
                    <bitfield caption="Compare 2 Interrupt" mask="0x40" name="CMP2" rw="RW"/>
                    <bitfield caption="Overflow Interrupt" mask="0x1" name="OVF" rw="RW"/>
                </register>
                <register caption="Interrupt Flags" initval="0x00" name="INTFLAGS" offset="0x0B" rw="RW" size="1">
                    <bitfield caption="Compare 0 Interrupt" mask="0x10" name="CMP0" rw="RW"/>
                    <bitfield caption="Compare 1 Interrupt" mask="0x20" name="CMP1" rw="RW"/>
                    <bitfield caption="Compare 2 Interrupt" mask="0x40" name="CMP2" rw="RW"/>
                    <bitfield caption="Overflow Interrupt" mask="0x1" name="OVF" rw="RW"/>
                </register>
                <register caption="Period" initval="0xFFFF" name="PER" offset="0x26" rw="RW" size="2"/>
                <register caption="Period Buffer" initval="0xFFFF" name="PERBUF" offset="0x36" rw="RW" size="2"/>
                <register caption="Temporary data for 16-bit Access" name="TEMP" offset="0x0F" rw="RW" size="1"/>
            </register-group>
            <register-group caption="16-bit Timer/Counter Type A - Split Mode" name="TCA_SPLIT" size="0x40">
                <register caption="Control A" initval="0x00" name="CTRLA" offset="0x00" rw="RW" size="1">
                    <bitfield caption="Clock Selection" mask="0xe" name="CLKSEL" rw="RW" values="TCA_SPLIT_CLKSEL"/>
                    <bitfield caption="Module Enable" mask="0x1" name="ENABLE" rw="RW"/>
                </register>
                <register caption="Control B" initval="0x00" name="CTRLB" offset="0x01" rw="RW" size="1">
                    <bitfield caption="High Compare 0 Enable" mask="0x10" name="HCMP0EN" rw="RW"/>
                    <bitfield caption="High Compare 1 Enable" mask="0x20" name="HCMP1EN" rw="RW"/>
                    <bitfield caption="High Compare 2 Enable" mask="0x40" name="HCMP2EN" rw="RW"/>
                    <bitfield caption="Low Compare 0 Enable" mask="0x1" name="LCMP0EN" rw="RW"/>
                    <bitfield caption="Low Compare 1 Enable" mask="0x2" name="LCMP1EN" rw="RW"/>
                    <bitfield caption="Low Compare 2 Enable" mask="0x4" name="LCMP2EN" rw="RW"/>
                </register>
                <register caption="Control C" initval="0x00" name="CTRLC" offset="0x02" rw="RW" size="1">
                    <bitfield caption="High Compare 0 Output Value" mask="0x10" name="HCMP0OV" rw="RW"/>
                    <bitfield caption="High Compare 1 Output Value" mask="0x20" name="HCMP1OV" rw="RW"/>
                    <bitfield caption="High Compare 2 Output Value" mask="0x40" name="HCMP2OV" rw="RW"/>
                    <bitfield caption="Low Compare 0 Output Value" mask="0x1" name="LCMP0OV" rw="RW"/>
                    <bitfield caption="Low Compare 1 Output Value" mask="0x2" name="LCMP1OV" rw="RW"/>
                    <bitfield caption="Low Compare 2 Output Value" mask="0x4" name="LCMP2OV" rw="RW"/>
                </register>
                <register caption="Control D" initval="0x00" name="CTRLD" offset="0x03" rw="RW" size="1">
                    <bitfield caption="Split Mode Enable" mask="0x1" name="SPLITM" rw="RW"/>
                </register>
                <register caption="Control E Clear" initval="0x00" name="CTRLECLR" offset="0x04" rw="RW" size="1">
                    <bitfield caption="Command" mask="0xc" name="CMD" rw="RW" values="TCA_SPLIT_CMD"/>
                </register>
                <register caption="Control E Set" initval="0x00" name="CTRLESET" offset="0x05" rw="RW" size="1">
                    <bitfield caption="Command" mask="0xc" name="CMD" rw="RW" values="TCA_SPLIT_CMD"/>
                </register>
                <register caption="Degbug Control" initval="0x00" name="DBGCTRL" offset="0x0E" rw="RW" size="1">
                    <bitfield caption="Debug Run" mask="0x1" name="DBGRUN" rw="RW"/>
                </register>
                <register caption="High Compare" name="HCMP0" offset="0x29" rw="RW" size="1"/>
                <register caption="High Compare" name="HCMP1" offset="0x2B" rw="RW" size="1"/>
                <register caption="High Compare" name="HCMP2" offset="0x2D" rw="RW" size="1"/>
                <register caption="High Count" name="HCNT" offset="0x21" rw="RW" size="1"/>
                <register caption="High Period" name="HPER" offset="0x27" rw="RW" size="1"/>
                <register caption="Interrupt Control" initval="0x00" name="INTCTRL" offset="0x0A" rw="RW" size="1">
                    <bitfield caption="High Underflow Interrupt Enable" mask="0x2" name="HUNF" rw="RW"/>
                    <bitfield caption="Low Compare 0 Interrupt Enable" mask="0x10" name="LCMP0" rw="RW"/>
                    <bitfield caption="Low Compare 1 Interrupt Enable" mask="0x20" name="LCMP1" rw="RW"/>
                    <bitfield caption="Low Compare 2 Interrupt Enable" mask="0x40" name="LCMP2" rw="RW"/>
                    <bitfield caption="Low Underflow Interrupt Enable" mask="0x1" name="LUNF" rw="RW"/>
                </register>
                <register caption="Interrupt Flags" initval="0x00" name="INTFLAGS" offset="0x0B" rw="RW" size="1">
                    <bitfield caption="High Underflow Interrupt Flag" mask="0x2" name="HUNF" rw="RW"/>
                    <bitfield caption="Low Compare 2 Interrupt Flag" mask="0x10" name="LCMP0" rw="RW"/>
                    <bitfield caption="Low Compare 1 Interrupt Flag" mask="0x20" name="LCMP1" rw="RW"/>
                    <bitfield caption="Low Compare 0 Interrupt Flag" mask="0x40" name="LCMP2" rw="RW"/>
                    <bitfield caption="Low Underflow Interrupt Flag" mask="0x1" name="LUNF" rw="RW"/>
                </register>
                <register caption="Low Compare" name="LCMP0" offset="0x28" rw="RW" size="1"/>
                <register caption="Low Compare" name="LCMP1" offset="0x2A" rw="RW" size="1"/>
                <register caption="Low Compare" name="LCMP2" offset="0x2C" rw="RW" size="1"/>
                <register caption="Low Count" name="LCNT" offset="0x20" rw="RW" size="1"/>
                <register caption="Low Period" name="LPER" offset="0x26" rw="RW" size="1"/>
            </register-group>
            <register-group caption="16-bit Timer/Counter Type A" class="union" name="TCA" size="0x40"
                            union-tag="TCA.SINGLE.CTRLD.SPLITM">
                <register-group name="SINGLE" name-in-module="TCA_SINGLE" offset="0" union-tag-value="0"/>
                <register-group name="SPLIT" name-in-module="TCA_SPLIT" offset="0" union-tag-value="1"/>
            </register-group>
            <value-group caption="Clock Selection select" name="TCA_SINGLE_CLKSEL">
                <value caption="System Clock" name="DIV1" value="0x00"/>
                <value caption="System Clock / 2" name="DIV2" value="0x01"/>
                <value caption="System Clock / 4" name="DIV4" value="0x02"/>
                <value caption="System Clock / 8" name="DIV8" value="0x03"/>
                <value caption="System Clock / 16" name="DIV16" value="0x04"/>
                <value caption="System Clock / 64" name="DIV64" value="0x05"/>
                <value caption="System Clock / 256" name="DIV256" value="0x06"/>
                <value caption="System Clock / 1024" name="DIV1024" value="0x07"/>
            </value-group>
            <value-group caption="Waveform generation mode select" name="TCA_SINGLE_WGMODE">
                <value caption="Normal Mode" name="NORMAL" value="0x00"/>
                <value caption="Frequency Generation Mode" name="FRQ" value="0x01"/>
                <value caption="Single Slope PWM" name="SINGLESLOPE" value="0x03"/>
                <value caption="Dual Slope PWM, overflow on TOP" name="DSTOP" value="0x05"/>
                <value caption="Dual Slope PWM, overflow on TOP and BOTTOM" name="DSBOTH" value="0x06"/>
                <value caption="Dual Slope PWM, overflow on BOTTOM" name="DSBOTTOM" value="0x07"/>
            </value-group>
            <value-group caption="Command select" name="TCA_SINGLE_CMD">
                <value caption="No Command" name="NONE" value="0x00"/>
                <value caption="Force Update" name="UPDATE" value="0x01"/>
                <value caption="Force Restart" name="RESTART" value="0x02"/>
                <value caption="Force Hard Reset" name="RESET" value="0x03"/>
            </value-group>
            <value-group caption="Direction select" name="TCA_SINGLE_DIR">
                <value caption="Count up" name="UP" value="0x0"/>
                <value caption="Count down" name="DOWN" value="0x1"/>
            </value-group>
            <value-group caption="Event Action select" name="TCA_SINGLE_EVACT">
                <value caption="Count on positive edge event" name="POSEDGE" value="0x00"/>
                <value caption="Count on any edge event" name="ANYEDGE" value="0x01"/>
                <value caption="Count on prescaled clock while event line is 1." name="HIGHLVL" value="0x02"/>
                <value caption="Count on prescaled clock. Event controls count direction. Up-count when event line is 0, down-count when event line is 1."
                       name="UPDOWN" value="0x03"/>
            </value-group>
            <value-group caption="Clock Selection select" name="TCA_SPLIT_CLKSEL">
                <value caption="System Clock" name="DIV1" value="0x00"/>
                <value caption="System Clock / 2" name="DIV2" value="0x01"/>
                <value caption="System Clock / 4" name="DIV4" value="0x02"/>
                <value caption="System Clock / 8" name="DIV8" value="0x03"/>
                <value caption="System Clock / 16" name="DIV16" value="0x04"/>
                <value caption="System Clock / 64" name="DIV64" value="0x05"/>
                <value caption="System Clock / 256" name="DIV256" value="0x06"/>
                <value caption="System Clock / 1024" name="DIV1024" value="0x07"/>
            </value-group>
            <value-group caption="Command select" name="TCA_SPLIT_CMD">
                <value caption="No Command" name="NONE" value="0x00"/>
                <value caption="Force Update" name="UPDATE" value="0x01"/>
                <value caption="Force Restart" name="RESTART" value="0x02"/>
                <value caption="Force Hard Reset" name="RESET" value="0x03"/>
            </value-group>
        </module>
        <module caption="16-bit Timer Type B" id="I2119" name="TCB">
            <register-group caption="16-bit Timer Type B" name="TCB" size="0x10">
                <register caption="Compare or Capture" name="CCMP" offset="0xC" rw="RW" size="2"/>
                <register caption="Count" initval="0x0000" name="CNT" offset="0xA" rw="RW" size="2"/>
                <register caption="Control A" initval="0x00" name="CTRLA" offset="0x0" rw="RW" size="1">
                    <bitfield caption="Clock Select" mask="0x6" name="CLKSEL" rw="RW" values="TCB_CLKSEL"/>
                    <bitfield caption="Enable" mask="0x1" name="ENABLE" rw="RW"/>
                    <bitfield caption="Run Standby" mask="0x40" name="RUNSTDBY" rw="RW"/>
                    <bitfield caption="Synchronize Update" mask="0x10" name="SYNCUPD" rw="RW"/>
                </register>
                <register caption="Control Register B" initval="0x00" name="CTRLB" offset="0x1" rw="RW" size="1">
                    <bitfield caption="Asynchronous Enable" mask="0x40" name="ASYNC" rw="RW"/>
                    <bitfield caption="Pin Output Enable" mask="0x10" name="CCMPEN" rw="RW"/>
                    <bitfield caption="Pin Initial State" mask="0x20" name="CCMPINIT" rw="RW"/>
                    <bitfield caption="Timer Mode" mask="0x7" name="CNTMODE" rw="RW" values="TCB_CNTMODE"/>
                </register>
                <register caption="Debug Control" initval="0x00" name="DBGCTRL" offset="0x8" rw="RW" size="1">
                    <bitfield caption="Debug Run" mask="0x1" name="DBGRUN" rw="RW"/>
                </register>
                <register caption="Event Control" initval="0x00" name="EVCTRL" offset="0x4" rw="RW" size="1">
                    <bitfield caption="Event Input Enable" mask="0x1" name="CAPTEI" rw="RW"/>
                    <bitfield caption="Event Edge" mask="0x10" name="EDGE" rw="RW"/>
                    <bitfield caption="Input Capture Noise Cancellation Filter" mask="0x40" name="FILTER" rw="RW"/>
                </register>
                <register caption="Interrupt Control" initval="0x00" name="INTCTRL" offset="0x5" rw="RW" size="1">
                    <bitfield caption="Capture or Timeout" mask="0x1" name="CAPT" rw="RW"/>
                </register>
                <register caption="Interrupt Flags" initval="0x00" name="INTFLAGS" offset="0x6" rw="RW" size="1">
                    <bitfield caption="Capture or Timeout" mask="0x1" name="CAPT" rw="RW"/>
                </register>
                <register caption="Status" initval="0x00" name="STATUS" offset="0x7" rw="R" size="1">
                    <bitfield caption="Run" mask="0x1" name="RUN" rw="R"/>
                </register>
                <register caption="Temporary Value" name="TEMP" offset="0x9" rw="RW" size="1"/>
            </register-group>
            <value-group caption="Clock Select select" name="TCB_CLKSEL">
                <value caption="CLK_PER (No Prescaling)" name="CLKDIV1" value="0x00"/>
                <value caption="CLK_PER/2 (From Prescaler)" name="CLKDIV2" value="0x01"/>
                <value caption="Use Clock from TCA" name="CLKTCA" value="0x02"/>
            </value-group>
            <value-group caption="Timer Mode select" name="TCB_CNTMODE">
                <value caption="Periodic Interrupt" name="INT" value="0x00"/>
                <value caption="Periodic Timeout" name="TIMEOUT" value="0x01"/>
                <value caption="Input Capture Event" name="CAPT" value="0x02"/>
                <value caption="Input Capture Frequency measurement" name="FRQ" value="0x03"/>
                <value caption="Input Capture Pulse-Width measurement" name="PW" value="0x04"/>
                <value caption="Input Capture Frequency and Pulse-Width measurement" name="FRQPW" value="0x05"/>
                <value caption="Single Shot" name="SINGLE" value="0x06"/>
                <value caption="8-bit PWM" name="PWM8" value="0x07"/>
            </value-group>
        </module>
        <module caption="Two-Wire Interface" id="I2110" name="TWI">
            <register-group caption="Two-Wire Interface" name="TWI" size="0x10">
                <register caption="Control A" initval="0x00" name="CTRLA" offset="0x0" rw="RW" size="1">
                    <mode name="DEFAULT">
                        <bitfield caption="FM Plus Enable" mask="0x2" name="FMPEN" rw="RW"/>
                        <bitfield caption="SDA Hold Time" mask="0xc" name="SDAHOLD" rw="RW"
                                  values="TWI_DEFAULT_SDAHOLD"/>
                        <bitfield caption="SDA Setup Time" mask="0x10" name="SDASETUP" rw="RW"
                                  values="TWI_DEFAULT_SDASETUP"/>
                    </mode>
                </register>
                <register caption="Debug Control Register" initval="0x00" name="DBGCTRL" offset="0x2" rw="RW" size="1">
                    <mode name="DEFAULT">
                        <bitfield caption="Debug Run" mask="0x1" name="DBGRUN" rw="RW"/>
                    </mode>
                </register>
                <register caption="Dual Control" initval="0x00" name="DUALCTRL" offset="0x1" rw="RW" size="1">
                    <mode name="DEFAULT">
                        <bitfield caption="Dual Control Enable" mask="0x1" name="ENABLE" rw="RW"/>
                        <bitfield caption="FM Plus Enable" mask="0x2" name="FMPEN" rw="RW"/>
                        <bitfield caption="SDA Hold Time" mask="0xc" name="SDAHOLD" rw="RW"
                                  values="TWI_DEFAULT_SDAHOLD"/>
                    </mode>
                </register>
                <register caption="Master Address" name="MADDR" offset="0x7" rw="RW" size="1"/>
                <register caption="Master Baurd Rate Control" name="MBAUD" offset="0x6" rw="RW" size="1"/>
                <register caption="Master Control A" initval="0x00" name="MCTRLA" offset="0x3" rw="RW" size="1">
                    <bitfield caption="Enable TWI Master" mask="0x1" name="ENABLE" rw="RW"/>
                    <bitfield caption="Quick Command Enable" mask="0x10" name="QCEN" rw="RW"/>
                    <bitfield caption="Read Interrupt Enable" mask="0x80" name="RIEN" rw="RW"/>
                    <bitfield caption="Smart Mode Enable" mask="0x2" name="SMEN" rw="RW"/>
                    <bitfield caption="Inactive Bus Timeout" mask="0xc" name="TIMEOUT" rw="RW" values="TWI_TIMEOUT"/>
                    <bitfield caption="Write Interrupt Enable" mask="0x40" name="WIEN" rw="RW"/>
                </register>
                <register caption="Master Control B" initval="0x00" name="MCTRLB" offset="0x4" rw="RW" size="1">
                    <bitfield caption="Acknowledge Action" mask="0x4" name="ACKACT" rw="RW" values="TWI_ACKACT"/>
                    <bitfield caption="Flush" mask="0x8" name="FLUSH" rw="RW"/>
                    <bitfield caption="Command" mask="0x3" name="MCMD" rw="RW" values="TWI_MCMD"/>
                </register>
                <register caption="Master Data" name="MDATA" offset="0x8" rw="RW" size="1"/>
                <register caption="Master Status" initval="0x00" name="MSTATUS" offset="0x5" rw="RW" size="1">
                    <bitfield caption="Arbitration Lost" mask="0x8" name="ARBLOST" rw="RW"/>
                    <bitfield caption="Bus Error" mask="0x4" name="BUSERR" rw="RW"/>
                    <bitfield caption="Bus State" mask="0x3" name="BUSSTATE" rw="RW" values="TWI_BUSSTATE"/>
                    <bitfield caption="Clock Hold" mask="0x20" name="CLKHOLD" rw="RW"/>
                    <bitfield caption="Read Interrupt Flag" mask="0x80" name="RIF" rw="RW"/>
                    <bitfield caption="Received Acknowledge" mask="0x10" name="RXACK" rw="R"/>
                    <bitfield caption="Write Interrupt Flag" mask="0x40" name="WIF" rw="RW"/>
                </register>
                <register caption="Slave Address" name="SADDR" offset="0xC" rw="RW" size="1"/>
                <register caption="Slave Address Mask" name="SADDRMASK" offset="0xE" rw="RW" size="1">
                    <bitfield caption="Address Enable" mask="0x1" name="ADDREN" rw="RW"/>
                    <bitfield caption="Address Mask" mask="0xfe" name="ADDRMASK" rw="RW"/>
                </register>
                <register caption="Slave Control A" initval="0x00" name="SCTRLA" offset="0x9" rw="RW" size="1">
                    <bitfield caption="Address/Stop Interrupt Enable" mask="0x40" name="APIEN" rw="RW"/>
                    <bitfield caption="Data Interrupt Enable" mask="0x80" name="DIEN" rw="RW"/>
                    <bitfield caption="Enable TWI Slave" mask="0x1" name="ENABLE" rw="RW"/>
                    <bitfield caption="Stop Interrupt Enable" mask="0x20" name="PIEN" rw="RW"/>
                    <bitfield caption="Promiscuous Mode Enable" mask="0x4" name="PMEN" rw="RW"/>
                    <bitfield caption="Smart Mode Enable" mask="0x2" name="SMEN" rw="RW"/>
                </register>
                <register caption="Slave Control B" initval="0x00" name="SCTRLB" offset="0xA" rw="RW" size="1">
                    <bitfield caption="Acknowledge Action" mask="0x4" name="ACKACT" rw="RW" values="TWI_ACKACT"/>
                    <bitfield caption="Command" mask="0x3" name="SCMD" rw="RW" values="TWI_SCMD"/>
                </register>
                <register caption="Slave Data" name="SDATA" offset="0xD" rw="RW" size="1"/>
                <register caption="Slave Status" initval="0x00" name="SSTATUS" offset="0xB" rw="RW" size="1">
                    <bitfield caption="Slave Address or Stop" mask="0x1" name="AP" rw="R" values="TWI_AP"/>
                    <bitfield caption="Address/Stop Interrupt Flag" mask="0x40" name="APIF" rw="RW"/>
                    <bitfield caption="Bus Error" mask="0x4" name="BUSERR" rw="RW"/>
                    <bitfield caption="Clock Hold" mask="0x20" name="CLKHOLD" rw="R"/>
                    <bitfield caption="Collision" mask="0x8" name="COLL" rw="RW"/>
                    <bitfield caption="Data Interrupt Flag" mask="0x80" name="DIF" rw="RW"/>
                    <bitfield caption="Read/Write Direction" mask="0x2" name="DIR" rw="R"/>
                    <bitfield caption="Received Acknowledge" mask="0x10" name="RXACK" rw="R"/>
                </register>
            </register-group>
            <value-group caption="SDA Hold Time select" name="TWI_DEFAULT_SDAHOLD">
                <value caption="SDA hold time off" name="OFF" value="0x00"/>
                <value caption="Typical 50ns hold time" name="50NS" value="0x01"/>
                <value caption="Typical 300ns hold time" name="300NS" value="0x02"/>
                <value caption="Typical 500ns hold time" name="500NS" value="0x03"/>
            </value-group>
            <value-group caption="SDA Setup Time select" name="TWI_DEFAULT_SDASETUP">
                <value caption="SDA setup time is 4 clock cycles" name="4CYC" value="0x0"/>
                <value caption="SDA setup time is 8 clock cycles" name="8CYC" value="0x1"/>
            </value-group>
            <value-group caption="Inactive Bus Timeout select" name="TWI_TIMEOUT">
                <value caption="Bus Timeout Disabled" name="DISABLED" value="0x00"/>
                <value caption="50 Microseconds" name="50US" value="0x01"/>
                <value caption="100 Microseconds" name="100US" value="0x02"/>
                <value caption="200 Microseconds" name="200US" value="0x03"/>
            </value-group>
            <value-group caption="Acknowledge Action select" name="TWI_ACKACT">
                <value caption="Send ACK" name="ACK" value="0x0"/>
                <value caption="Send NACK" name="NACK" value="0x1"/>
            </value-group>
            <value-group caption="Command select" name="TWI_MCMD">
                <value caption="No Action" name="NOACT" value="0x00"/>
                <value caption="Issue Repeated Start Condition" name="REPSTART" value="0x01"/>
                <value caption="Receive or Transmit Data, depending on DIR" name="RECVTRANS" value="0x02"/>
                <value caption="Issue Stop Condition" name="STOP" value="0x03"/>
            </value-group>
            <value-group caption="Bus State select" name="TWI_BUSSTATE">
                <value caption="Unknown Bus State" name="UNKNOWN" value="0x00"/>
                <value caption="Bus is Idle" name="IDLE" value="0x01"/>
                <value caption="This Module Controls The Bus" name="OWNER" value="0x02"/>
                <value caption="The Bus is Busy" name="BUSY" value="0x03"/>
            </value-group>
            <value-group caption="Command select" name="TWI_SCMD">
                <value caption="No Action" name="NOACT" value="0x00"/>
                <value caption="Used To Complete a Transaction" name="COMPTRANS" value="0x02"/>
                <value caption="Used in Response to Address/Data Interrupt" name="RESPONSE" value="0x03"/>
            </value-group>
            <value-group caption="Slave Address or Stop select" name="TWI_AP">
                <value caption="Stop condition generated APIF" name="STOP" value="0x0"/>
                <value caption="Address detection generated APIF" name="ADR" value="0x1"/>
            </value-group>
        </module>
        <module caption="Universal Synchronous and Asynchronous Receiver and Transmitter" id="I2108" name="USART">
            <register-group caption="Universal Synchronous and Asynchronous Receiver and Transmitter" name="USART"
                            size="0x10">
                <register caption="Baud Rate" initval="0x0000" name="BAUD" offset="0x8" rw="RW" size="2"/>
                <register caption="Control A" initval="0x00" name="CTRLA" offset="0x5" rw="RW" size="1">
                    <bitfield caption="Auto-baud Error Interrupt Enable" mask="0x4" name="ABEIE" rw="RW"/>
                    <bitfield caption="Data Register Empty Interrupt Enable" mask="0x20" name="DREIE" rw="RW"/>
                    <bitfield caption="Loop-back Mode Enable" mask="0x8" name="LBME" rw="RW"/>
                    <bitfield caption="RS485 Mode internal transmitter" mask="0x3" name="RS485" rw="RW"
                              values="USART_RS485"/>
                    <bitfield caption="Receive Complete Interrupt Enable" mask="0x80" name="RXCIE" rw="RW"/>
                    <bitfield caption="Receiver Start Frame Interrupt Enable" mask="0x10" name="RXSIE" rw="RW"/>
                    <bitfield caption="Transmit Complete Interrupt Enable" mask="0x40" name="TXCIE" rw="RW"/>
                </register>
                <register caption="Control B" initval="0x00" name="CTRLB" offset="0x6" rw="RW" size="1">
                    <bitfield caption="Multi-processor Communication Mode" mask="0x1" name="MPCM" rw="RW"/>
                    <bitfield caption="Open Drain Mode Enable" mask="0x8" name="ODME" rw="RW"/>
                    <bitfield caption="Reciever enable" mask="0x80" name="RXEN" rw="RW"/>
                    <bitfield caption="Receiver Mode" mask="0x6" name="RXMODE" rw="RW" values="USART_RXMODE"/>
                    <bitfield caption="Start Frame Detection Enable" mask="0x10" name="SFDEN" rw="RW"/>
                    <bitfield caption="Transmitter Enable" mask="0x40" name="TXEN" rw="RW"/>
                </register>
                <register caption="Control C" initval="0x03" name="CTRLC" offset="0x7" rw="RW" size="1">
                    <mode name="MSPI">
                        <bitfield caption="Communication Mode" mask="0xc0" name="CMODE" rw="RW"
                                  values="USART_MSPI_CMODE"/>
                        <bitfield caption="SPI Master Mode, Clock Phase" mask="0x2" name="UCPHA" rw="RW"/>
                        <bitfield caption="SPI Master Mode, Data Order" mask="0x4" name="UDORD" rw="RW"/>
                    </mode>
                    <mode name="NORMAL">
                        <bitfield caption="Character Size" mask="0x7" name="CHSIZE" rw="RW"
                                  values="USART_NORMAL_CHSIZE"/>
                        <bitfield caption="Communication Mode" mask="0xc0" name="CMODE" rw="RW"
                                  values="USART_NORMAL_CMODE"/>
                        <bitfield caption="Parity Mode" mask="0x30" name="PMODE" rw="RW" values="USART_NORMAL_PMODE"/>
                        <bitfield caption="Stop Bit Mode" mask="0x8" name="SBMODE" rw="RW"
                                  values="USART_NORMAL_SBMODE"/>
                    </mode>
                </register>
                <register caption="Control D" initval="0x00" name="CTRLD" offset="0xA" rw="RW" size="1">
                    <bitfield caption="Auto Baud Window" mask="0xc0" name="ABW" rw="RW" values="USART_ABW"/>
                </register>
                <register caption="Debug Control" initval="0x00" name="DBGCTRL" offset="0xB" rw="RW" size="1">
                    <bitfield caption="Autobaud majority voter bypass" mask="0x80" name="ABMBP" rw="RW"/>
                    <bitfield caption="Debug Run" mask="0x1" name="DBGRUN" rw="RW"/>
                </register>
                <register caption="Event Control" initval="0x00" name="EVCTRL" offset="0xC" rw="RW" size="1">
                    <bitfield caption="IrDA Event Input Enable" mask="0x1" name="IREI" rw="RW"/>
                </register>
                <register caption="Receive Data High Byte" initval="0x00" name="RXDATAH" offset="0x1" rw="R" size="1">
                    <bitfield caption="Buffer Overflow" mask="0x40" name="BUFOVF" rw="R"/>
                    <bitfield caption="Receiver Data Register" mask="0x1" name="DATA8" rw="R"/>
                    <bitfield caption="Frame Error" mask="0x4" name="FERR" rw="R"/>
                    <bitfield caption="Parity Error" mask="0x2" name="PERR" rw="R"/>
                    <bitfield caption="Receive Complete Interrupt Flag" mask="0x80" name="RXCIF" rw="R"/>
                </register>
                <register caption="Receive Data Low Byte" initval="0x00" name="RXDATAL" offset="0x0" rw="R" size="1">
                    <bitfield caption="RX Data" mask="0xff" name="DATA" rw="R"/>
                </register>
                <register caption="IRCOM Receiver Pulse Length Control" initval="0x00" name="RXPLCTRL" offset="0xE"
                          rw="RW" size="1">
                    <bitfield caption="Receiver Pulse Lenght" mask="0x7f" name="RXPL" rw="RW"/>
                </register>
                <register caption="Status" initval="0x00" name="STATUS" offset="0x4" rw="RW" size="1">
                    <bitfield caption="Break Detected Flag" mask="0x2" name="BDF" rw="RW"/>
                    <bitfield caption="Data Register Empty Flag" mask="0x20" name="DREIF" rw="R"/>
                    <bitfield caption="Inconsistent Sync Field Interrupt Flag" mask="0x8" name="ISFIF" rw="RW"/>
                    <bitfield caption="Receive Complete Interrupt Flag" mask="0x80" name="RXCIF" rw="R"/>
                    <bitfield caption="Receive Start Interrupt" mask="0x10" name="RXSIF" rw="R"/>
                    <bitfield caption="Transmit Interrupt Flag" mask="0x40" name="TXCIF" rw="RW"/>
                    <bitfield caption="Wait For Break" mask="0x1" name="WFB" rw="RW"/>
                </register>
                <register caption="Transmit Data High Byte" initval="0x00" name="TXDATAH" offset="0x3" rw="RW" size="1">
                    <bitfield caption="Transmit Data Register (CHSIZE=9bit)" mask="0x1" name="DATA8" rw="RW"/>
                </register>
                <register caption="Transmit Data Low Byte" initval="0x00" name="TXDATAL" offset="0x2" rw="RW" size="1">
                    <bitfield caption="Transmit Data Register" mask="0xff" name="DATA" rw="RW"/>
                </register>
                <register caption="IRCOM Transmitter Pulse Length Control" initval="0x00" name="TXPLCTRL" offset="0xD"
                          rw="RW" size="1">
                    <bitfield caption="Transmit pulse length" mask="0xff" name="TXPL" rw="RW"/>
                </register>
            </register-group>
            <value-group caption="RS485 Mode internal transmitter select" name="USART_RS485">
                <value caption="RS485 Mode disabled" name="OFF" value="0x00"/>
                <value caption="RS485 Mode External drive" name="EXT" value="0x01"/>
                <value caption="RS485 Mode Internal drive" name="INT" value="0x02"/>
            </value-group>
            <value-group caption="Receiver Mode select" name="USART_RXMODE">
                <value caption="Normal mode" name="NORMAL" value="0x0"/>
                <value caption="CLK2x mode" name="CLK2X" value="0x1"/>
                <value caption="Generic autobaud mode" name="GENAUTO" value="0x2"/>
                <value caption="LIN constrained autobaud mode" name="LINAUTO" value="0x3"/>
            </value-group>
            <value-group caption="Communication Mode select" name="USART_MSPI_CMODE">
                <value caption="Asynchronous Mode" name="ASYNCHRONOUS" value="0x00"/>
                <value caption="Synchronous Mode" name="SYNCHRONOUS" value="0x01"/>
                <value caption="Infrared Communication" name="IRCOM" value="0x02"/>
                <value caption="Master SPI Mode" name="MSPI" value="0x03"/>
            </value-group>
            <value-group caption="Character Size select" name="USART_NORMAL_CHSIZE">
                <value caption="Character size: 5 bit" name="5BIT" value="0x00"/>
                <value caption="Character size: 6 bit" name="6BIT" value="0x01"/>
                <value caption="Character size: 7 bit" name="7BIT" value="0x02"/>
                <value caption="Character size: 8 bit" name="8BIT" value="0x03"/>
                <value caption="Character size: 9 bit read low byte first" name="9BITL" value="0x06"/>
                <value caption="Character size: 9 bit read high byte first" name="9BITH" value="0x07"/>
            </value-group>
            <value-group caption="Communication Mode select" name="USART_NORMAL_CMODE">
                <value caption="Asynchronous Mode" name="ASYNCHRONOUS" value="0x00"/>
                <value caption="Synchronous Mode" name="SYNCHRONOUS" value="0x01"/>
                <value caption="Infrared Communication" name="IRCOM" value="0x02"/>
                <value caption="Master SPI Mode" name="MSPI" value="0x03"/>
            </value-group>
            <value-group caption="Parity Mode select" name="USART_NORMAL_PMODE">
                <value caption="No Parity" name="DISABLED" value="0x00"/>
                <value caption="Even Parity" name="EVEN" value="0x02"/>
                <value caption="Odd Parity" name="ODD" value="0x03"/>
            </value-group>
            <value-group caption="Stop Bit Mode select" name="USART_NORMAL_SBMODE">
                <value caption="1 stop bit" name="1BIT" value="0x0"/>
                <value caption="2 stop bits" name="2BIT" value="0x1"/>
            </value-group>
            <value-group caption="Auto Baud Window select" name="USART_ABW">
                <value caption="18% tolerance" name="WDW0" value="0x0"/>
                <value caption="15% tolerance" name="WDW1" value="0x1"/>
                <value caption="21% tolerance" name="WDW2" value="0x2"/>
                <value caption="25% tolerance" name="WDW3" value="0x3"/>
            </value-group>
        </module>
        <module caption="User Row" id="I2603" name="USERROW">
            <register-group caption="User Row" name="USERROW" size="0x20">
                <register caption="User Row Byte 0" name="USERROW0" offset="0x00" rw="RW" size="1"/>
                <register caption="User Row Byte 1" name="USERROW1" offset="0x01" rw="RW" size="1"/>
                <register caption="User Row Byte 2" name="USERROW2" offset="0x02" rw="RW" size="1"/>
                <register caption="User Row Byte 3" name="USERROW3" offset="0x03" rw="RW" size="1"/>
                <register caption="User Row Byte 4" name="USERROW4" offset="0x04" rw="RW" size="1"/>
                <register caption="User Row Byte 5" name="USERROW5" offset="0x05" rw="RW" size="1"/>
                <register caption="User Row Byte 6" name="USERROW6" offset="0x06" rw="RW" size="1"/>
                <register caption="User Row Byte 7" name="USERROW7" offset="0x07" rw="RW" size="1"/>
                <register caption="User Row Byte 8" name="USERROW8" offset="0x08" rw="RW" size="1"/>
                <register caption="User Row Byte 9" name="USERROW9" offset="0x09" rw="RW" size="1"/>
                <register caption="User Row Byte 10" name="USERROW10" offset="0x0A" rw="RW" size="1"/>
                <register caption="User Row Byte 11" name="USERROW11" offset="0x0B" rw="RW" size="1"/>
                <register caption="User Row Byte 12" name="USERROW12" offset="0x0C" rw="RW" size="1"/>
                <register caption="User Row Byte 13" name="USERROW13" offset="0x0D" rw="RW" size="1"/>
                <register caption="User Row Byte 14" name="USERROW14" offset="0x0E" rw="RW" size="1"/>
                <register caption="User Row Byte 15" name="USERROW15" offset="0x0F" rw="RW" size="1"/>
                <register caption="User Row Byte 16" name="USERROW16" offset="0x10" rw="RW" size="1"/>
                <register caption="User Row Byte 17" name="USERROW17" offset="0x11" rw="RW" size="1"/>
                <register caption="User Row Byte 18" name="USERROW18" offset="0x12" rw="RW" size="1"/>
                <register caption="User Row Byte 19" name="USERROW19" offset="0x13" rw="RW" size="1"/>
                <register caption="User Row Byte 20" name="USERROW20" offset="0x14" rw="RW" size="1"/>
                <register caption="User Row Byte 21" name="USERROW21" offset="0x15" rw="RW" size="1"/>
                <register caption="User Row Byte 22" name="USERROW22" offset="0x16" rw="RW" size="1"/>
                <register caption="User Row Byte 23" name="USERROW23" offset="0x17" rw="RW" size="1"/>
                <register caption="User Row Byte 24" name="USERROW24" offset="0x18" rw="RW" size="1"/>
                <register caption="User Row Byte 25" name="USERROW25" offset="0x19" rw="RW" size="1"/>
                <register caption="User Row Byte 26" name="USERROW26" offset="0x1A" rw="RW" size="1"/>
                <register caption="User Row Byte 27" name="USERROW27" offset="0x1B" rw="RW" size="1"/>
                <register caption="User Row Byte 28" name="USERROW28" offset="0x1C" rw="RW" size="1"/>
                <register caption="User Row Byte 29" name="USERROW29" offset="0x1D" rw="RW" size="1"/>
                <register caption="User Row Byte 30" name="USERROW30" offset="0x1E" rw="RW" size="1"/>
                <register caption="User Row Byte 31" name="USERROW31" offset="0x1F" rw="RW" size="1"/>
                <register caption="User Row Byte 32" name="USERROW32" offset="0x20" rw="RW" size="1"/>
                <register caption="User Row Byte 33" name="USERROW33" offset="0x21" rw="RW" size="1"/>
                <register caption="User Row Byte 34" name="USERROW34" offset="0x22" rw="RW" size="1"/>
                <register caption="User Row Byte 35" name="USERROW35" offset="0x23" rw="RW" size="1"/>
                <register caption="User Row Byte 36" name="USERROW36" offset="0x24" rw="RW" size="1"/>
                <register caption="User Row Byte 37" name="USERROW37" offset="0x25" rw="RW" size="1"/>
                <register caption="User Row Byte 38" name="USERROW38" offset="0x26" rw="RW" size="1"/>
                <register caption="User Row Byte 39" name="USERROW39" offset="0x27" rw="RW" size="1"/>
                <register caption="User Row Byte 40" name="USERROW40" offset="0x28" rw="RW" size="1"/>
                <register caption="User Row Byte 41" name="USERROW41" offset="0x29" rw="RW" size="1"/>
                <register caption="User Row Byte 42" name="USERROW42" offset="0x2A" rw="RW" size="1"/>
                <register caption="User Row Byte 43" name="USERROW43" offset="0x2B" rw="RW" size="1"/>
                <register caption="User Row Byte 44" name="USERROW44" offset="0x2C" rw="RW" size="1"/>
                <register caption="User Row Byte 45" name="USERROW45" offset="0x2D" rw="RW" size="1"/>
                <register caption="User Row Byte 46" name="USERROW46" offset="0x2E" rw="RW" size="1"/>
                <register caption="User Row Byte 47" name="USERROW47" offset="0x2F" rw="RW" size="1"/>
                <register caption="User Row Byte 48" name="USERROW48" offset="0x30" rw="RW" size="1"/>
                <register caption="User Row Byte 49" name="USERROW49" offset="0x31" rw="RW" size="1"/>
                <register caption="User Row Byte 50" name="USERROW50" offset="0x32" rw="RW" size="1"/>
                <register caption="User Row Byte 51" name="USERROW51" offset="0x33" rw="RW" size="1"/>
                <register caption="User Row Byte 52" name="USERROW52" offset="0x34" rw="RW" size="1"/>
                <register caption="User Row Byte 53" name="USERROW53" offset="0x35" rw="RW" size="1"/>
                <register caption="User Row Byte 54" name="USERROW54" offset="0x36" rw="RW" size="1"/>
                <register caption="User Row Byte 55" name="USERROW55" offset="0x37" rw="RW" size="1"/>
                <register caption="User Row Byte 56" name="USERROW56" offset="0x38" rw="RW" size="1"/>
                <register caption="User Row Byte 57" name="USERROW57" offset="0x39" rw="RW" size="1"/>
                <register caption="User Row Byte 58" name="USERROW58" offset="0x3A" rw="RW" size="1"/>
                <register caption="User Row Byte 59" name="USERROW59" offset="0x3B" rw="RW" size="1"/>
                <register caption="User Row Byte 60" name="USERROW60" offset="0x3C" rw="RW" size="1"/>
                <register caption="User Row Byte 61" name="USERROW61" offset="0x3D" rw="RW" size="1"/>
                <register caption="User Row Byte 62" name="USERROW62" offset="0x3E" rw="RW" size="1"/>
                <register caption="User Row Byte 63" name="USERROW63" offset="0x3F" rw="RW" size="1"/>
            </register-group>
        </module>
        <module caption="Virtual Ports" id="I2103" name="VPORT">
            <register-group caption="Virtual Ports" name="VPORT" size="0x4">
                <register caption="Data Direction" name="DIR" offset="0x0" rw="RW" size="1"/>
                <register caption="Input Value" name="IN" offset="0x2" rw="RW" size="1"/>
                <register caption="Interrupt Flags" initval="0x00" name="INTFLAGS" offset="0x3" rw="RW" size="1">
                    <bitfield caption="Pin Interrupt" mask="0xff" name="INT" rw="RW"/>
                </register>
                <register caption="Output Value" name="OUT" offset="0x1" rw="RW" size="1"/>
            </register-group>
        </module>
        <module caption="Voltage reference" id="I2600" name="VREF">
            <register-group caption="Voltage reference" name="VREF" size="0x2">
                <register caption="Control A" initval="0x00" name="CTRLA" offset="0x0" rw="RW" size="1">
                    <bitfield caption="AC0 reference select" mask="0x7" name="AC0REFSEL" rw="RW"
                              values="VREF_AC0REFSEL"/>
                    <bitfield caption="ADC0 reference select" mask="0x70" name="ADC0REFSEL" rw="RW"
                              values="VREF_ADC0REFSEL"/>
                </register>
                <register caption="Control B" initval="0x00" name="CTRLB" offset="0x1" rw="RW" size="1">
                    <bitfield caption="AC0 DACREF reference enable" mask="0x1" name="AC0REFEN" rw="RW"/>
                    <bitfield caption="ADC0 reference enable" mask="0x2" name="ADC0REFEN" rw="RW"/>
                </register>
            </register-group>
            <value-group caption="AC0 reference select select" name="VREF_AC0REFSEL">
                <value caption="Voltage reference at 0.55V" name="0V55" value="0x00"/>
                <value caption="Voltage reference at 1.1V" name="1V1" value="0x01"/>
                <value caption="Voltage reference at 2.5V" name="2V5" value="0x02"/>
                <value caption="Voltage reference at 4.34V" name="4V34" value="0x03"/>
                <value caption="Voltage reference at 1.5V" name="1V5" value="0x04"/>
                <value caption="AVDD" name="AVDD" value="0x07"/>
            </value-group>
            <value-group caption="ADC0 reference select select" name="VREF_ADC0REFSEL">
                <value caption="Voltage reference at 0.55V" name="0V55" value="0x00"/>
                <value caption="Voltage reference at 1.1V" name="1V1" value="0x01"/>
                <value caption="Voltage reference at 2.5V" name="2V5" value="0x02"/>
                <value caption="Voltage reference at 4.34V" name="4V34" value="0x03"/>
                <value caption="Voltage reference at 1.5V" name="1V5" value="0x04"/>
            </value-group>
        </module>
        <module caption="Watch-Dog Timer" id="I2127" name="WDT">
            <register-group caption="Watch-Dog Timer" name="WDT" size="0x2">
                <register caption="Control A" initval="0x00" name="CTRLA" offset="0x0" rw="RW" size="1">
                    <bitfield caption="Period" mask="0xf" name="PERIOD" rw="RW" values="WDT_PERIOD"/>
                    <bitfield caption="Window" mask="0xf0" name="WINDOW" rw="RW" values="WDT_WINDOW"/>
                </register>
                <register caption="Status" initval="0x00" name="STATUS" offset="0x1" rw="RW" size="1">
                    <bitfield caption="Lock enable" mask="0x80" name="LOCK" rw="RW"/>
                    <bitfield caption="Syncronization busy" mask="0x1" name="SYNCBUSY" rw="R"/>
                </register>
            </register-group>
            <value-group caption="Period select" name="WDT_PERIOD">
                <value caption="Off" name="OFF" value="0x00"/>
                <value caption="8 cycles (8ms)" name="8CLK" value="0x01"/>
                <value caption="16 cycles (16ms)" name="16CLK" value="0x02"/>
                <value caption="32 cycles (32ms)" name="32CLK" value="0x03"/>
                <value caption="64 cycles (64ms)" name="64CLK" value="0x04"/>
                <value caption="128 cycles (0.128s)" name="128CLK" value="0x05"/>
                <value caption="256 cycles (0.256s)" name="256CLK" value="0x06"/>
                <value caption="512 cycles (0.512s)" name="512CLK" value="0x07"/>
                <value caption="1K cycles (1.0s)" name="1KCLK" value="0x08"/>
                <value caption="2K cycles (2.0s)" name="2KCLK" value="0x09"/>
                <value caption="4K cycles (4.1s)" name="4KCLK" value="0x0A"/>
                <value caption="8K cycles (8.2s)" name="8KCLK" value="0x0B"/>
            </value-group>
            <value-group caption="Window select" name="WDT_WINDOW">
                <value caption="Off" name="OFF" value="0x00"/>
                <value caption="8 cycles (8ms)" name="8CLK" value="0x01"/>
                <value caption="16 cycles (16ms)" name="16CLK" value="0x02"/>
                <value caption="32 cycles (32ms)" name="32CLK" value="0x03"/>
                <value caption="64 cycles (64ms)" name="64CLK" value="0x04"/>
                <value caption="128 cycles (0.128s)" name="128CLK" value="0x05"/>
                <value caption="256 cycles (0.256s)" name="256CLK" value="0x06"/>
                <value caption="512 cycles (0.512s)" name="512CLK" value="0x07"/>
                <value caption="1K cycles (1.0s)" name="1KCLK" value="0x08"/>
                <value caption="2K cycles (2.0s)" name="2KCLK" value="0x09"/>
                <value caption="4K cycles (4.1s)" name="4KCLK" value="0x0A"/>
                <value caption="8K cycles (8.2s)" name="8KCLK" value="0x0B"/>
            </value-group>
        </module>
    </modules>
    <pinouts>
        <pinout name="QFN32">
            <pin pad="PA3" position="1"/>
            <pin pad="PA4" position="2"/>
            <pin pad="PA5" position="3"/>
            <pin pad="PA6" position="4"/>
            <pin pad="PA7" position="5"/>
            <pin pad="PC0" position="6"/>
            <pin pad="PC1" position="7"/>
            <pin pad="PC2" position="8"/>
            <pin pad="PC3" position="9"/>
            <pin pad="PD0" position="10"/>
            <pin pad="PD1" position="11"/>
            <pin pad="PD2" position="12"/>
            <pin pad="PD3" position="13"/>
            <pin pad="PD4" position="14"/>
            <pin pad="PD5" position="15"/>
            <pin pad="PD6" position="16"/>
            <pin pad="PD7" position="17"/>
            <pin pad="AVDD" position="18"/>
            <pin pad="GND0" position="19"/>
            <pin pad="PF0" position="20"/>
            <pin pad="PF1" position="21"/>
            <pin pad="PF2" position="22"/>
            <pin pad="PF3" position="23"/>
            <pin pad="PF4" position="24"/>
            <pin pad="PF5" position="25"/>
            <pin pad="PF6" position="26"/>
            <pin pad="UPDI" position="27"/>
            <pin pad="VDD0" position="28"/>
            <pin pad="GND1" position="29"/>
            <pin pad="PA0" position="30"/>
            <pin pad="PA1" position="31"/>
            <pin pad="PA2" position="32"/>
        </pinout>
        <pinout name="QFP32">
            <pin pad="PA3" position="1"/>
            <pin pad="PA4" position="2"/>
            <pin pad="PA5" position="3"/>
            <pin pad="PA6" position="4"/>
            <pin pad="PA7" position="5"/>
            <pin pad="PC0" position="6"/>
            <pin pad="PC1" position="7"/>
            <pin pad="PC2" position="8"/>
            <pin pad="PC3" position="9"/>
            <pin pad="PD0" position="10"/>
            <pin pad="PD1" position="11"/>
            <pin pad="PD2" position="12"/>
            <pin pad="PD3" position="13"/>
            <pin pad="PD4" position="14"/>
            <pin pad="PD5" position="15"/>
            <pin pad="PD6" position="16"/>
            <pin pad="PD7" position="17"/>
            <pin pad="AVDD" position="18"/>
            <pin pad="GND0" position="19"/>
            <pin pad="PF0" position="20"/>
            <pin pad="PF1" position="21"/>
            <pin pad="PF2" position="22"/>
            <pin pad="PF3" position="23"/>
            <pin pad="PF4" position="24"/>
            <pin pad="PF5" position="25"/>
            <pin pad="PF6" position="26"/>
            <pin pad="UPDI" position="27"/>
            <pin pad="VDD0" position="28"/>
            <pin pad="GND1" position="29"/>
            <pin pad="PA0" position="30"/>
            <pin pad="PA1" position="31"/>
            <pin pad="PA2" position="32"/>
        </pinout>
        <pinout name="SSOP28">
            <pin pad="PA7" position="1"/>
            <pin pad="PC0" position="2"/>
            <pin pad="PC1" position="3"/>
            <pin pad="PC2" position="4"/>
            <pin pad="PC3" position="5"/>
            <pin pad="PD0" position="6"/>
            <pin pad="PD1" position="7"/>
            <pin pad="PD2" position="8"/>
            <pin pad="PD3" position="9"/>
            <pin pad="PD4" position="10"/>
            <pin pad="PD5" position="11"/>
            <pin pad="PD6" position="12"/>
            <pin pad="PD7" position="13"/>
            <pin pad="AVDD" position="14"/>
            <pin pad="GND0" position="15"/>
            <pin pad="PF0" position="16"/>
            <pin pad="PF1" position="17"/>
            <pin pad="PF6" position="18"/>
            <pin pad="UPDI" position="19"/>
            <pin pad="VDD0" position="20"/>
            <pin pad="GND1" position="21"/>
            <pin pad="PA0" position="22"/>
            <pin pad="PA1" position="23"/>
            <pin pad="PA2" position="24"/>
            <pin pad="PA3" position="25"/>
            <pin pad="PA4" position="26"/>
            <pin pad="PA5" position="27"/>
            <pin pad="PA6" position="28"/>
        </pinout>
    </pinouts>
</target-description-file>
