~ruther/avr-device

ref: f0ea250acb7690c18f366133af3437c6e7d15a19 avr-device/vendor/attiny202.atdf -rw-r--r-- 138.3 KiB
f0ea250a — František Boháček Patch TCCR0 CS correctly 2 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
<?xml version="1.0" encoding="UTF-8"?><avr-tools-device-file xmlns:NumHelper="NumHelper" xmlns:xalan="http://xml.apache.org/xalan" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" schema-version="0.3" xsi:noNamespaceSchemaLocation="schema/avr_tools_device_file.xsd">
  <variants>
    <variant ordercode="ATtiny202-SSFR" package="SOIC8" pinout="SOIC8" speedmax="20000000" tempmax="125" tempmin="-40" vccmax="5.5" vccmin="1.8"/>
    <variant ordercode="ATtiny202-SSNR" package="SOIC8" pinout="SOIC8" speedmax="20000000" tempmax="105" tempmin="-40" vccmax="5.5" vccmin="1.8"/>
  </variants>
  <devices>
    <device architecture="AVR8X" family="AVR TINY" name="ATtiny202">
      <address-spaces>
        <address-space endianness="little" id="data" name="data" size="0x8800" start="0x0000">
          <memory-segment exec="0" name="EEPROM" pagesize="0x20" rw="RW" size="0x0040" start="0x00001400" type="eeprom"/>
          <memory-segment exec="0" name="FUSES" pagesize="0x20" rw="RW" size="0xA" start="0x00001280" type="fuses"/>
          <memory-segment exec="0" name="INTERNAL_SRAM" rw="RW" size="0x0080" start="0x3f80" type="ram"/>
          <memory-segment exec="0" name="IO" rw="RW" size="0x1100" start="0x00000000" type="io"/>
          <memory-segment exec="0" name="LOCKBITS" pagesize="0x20" rw="RW" size="0x1" start="0x0000128A" type="lockbits"/>
          <memory-segment exec="0" name="MAPPED_PROGMEM" pagesize="0x40" rw="RW" size="0x0800" start="0x00008000" type="other"/>
          <memory-segment exec="0" name="PROD_SIGNATURES" pagesize="0x40" rw="R" size="0x3D" start="0x00001103" type="signatures"/>
          <memory-segment exec="0" name="SIGNATURES" pagesize="0x40" rw="R" size="0x3" start="0x00001100" type="signatures"/>
          <memory-segment exec="0" name="USER_SIGNATURES" pagesize="0x20" rw="RW" size="0x20" start="0x00001300" type="user_signatures"/>
        </address-space>
        <address-space endianness="little" id="prog" name="prog" size="0x0800" start="0x0000">
          <memory-segment exec="1" name="PROGMEM" pagesize="0x40" rw="RW" size="0x0800" 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="0x0670"/>
            <signals>
              <signal function="AC0" group="N" index="0" pad="PA6"/>
              <signal function="AC0" group="OUT" pad="PA3"/>
              <signal function="AC0" group="P" index="0" pad="PA7"/>
            </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="PA0"/>
              <signal function="AIN0" group="AIN" index="1" pad="PA1"/>
              <signal function="AIN0" group="AIN" index="2" pad="PA2"/>
              <signal function="AIN0" group="AIN" index="3" pad="PA3"/>
              <signal function="AIN0" group="AIN" index="6" pad="PA6"/>
              <signal function="AIN0" group="AIN" index="7" pad="PA7"/>
            </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 function="CCL" group="LUT1_OUT" index="0" pad="PA6"/>
            </signals>
          </instance>
        </module>
        <module id="I2601" 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="PA3"/>
            </signals>
          </instance>
        </module>
        <module id="I2100" name="CPU">
          <instance name="CPU">
            <register-group address-space="data" name="CPU" name-in-module="CPU" offset="0x0030"/>
            <signals>
              <signal function="OTHER" group="BREAK" pad="PA1"/>
            </signals>
            <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="I2601" name="EVSYS">
          <instance name="EVSYS">
            <register-group address-space="data" name="EVSYS" name-in-module="EVSYS" offset="0x0180"/>
            <signals>
              <signal field="EVSYS.ASYNCCH0.ASYNCCH0" function="EVAINCH0" group="EVAPA" index="0" pad="PA0"/>
              <signal field="EVSYS.ASYNCCH0.ASYNCCH0" function="EVAINCH0" group="EVAPA" index="1" pad="PA1"/>
              <signal field="EVSYS.ASYNCCH0.ASYNCCH0" function="EVAINCH0" group="EVAPA" index="2" pad="PA2"/>
              <signal field="EVSYS.ASYNCCH0.ASYNCCH0" function="EVAINCH0" group="EVAPA" index="3" pad="PA3"/>
              <signal field="EVSYS.ASYNCCH0.ASYNCCH0" function="EVAINCH0" group="EVAPA" index="6" pad="PA6"/>
              <signal field="EVSYS.ASYNCCH0.ASYNCCH0" function="EVAINCH0" group="EVAPA" index="7" pad="PA7"/>
              <signal field="PORTMUX.CTRLA.EVOUT0" function="EVSYS" group="EVOUT" index="0" pad="PA2"/>
              <signal field="EVSYS.SYNCCH0.SYNCCH0" function="EVSINCH0" group="EVSPA" index="0" pad="PA0"/>
              <signal field="EVSYS.SYNCCH0.SYNCCH0" function="EVSINCH0" group="EVSPA" index="1" pad="PA1"/>
              <signal field="EVSYS.SYNCCH0.SYNCCH0" function="EVSINCH0" group="EVSPA" index="2" pad="PA2"/>
              <signal field="EVSYS.SYNCCH0.SYNCCH0" function="EVSINCH0" group="EVSPA" index="3" pad="PA3"/>
              <signal field="EVSYS.SYNCCH0.SYNCCH0" function="EVSINCH0" group="EVSPA" index="6" pad="PA6"/>
              <signal field="EVSYS.SYNCCH0.SYNCCH0" function="EVSINCH0" group="EVSPA" index="7" pad="PA7"/>
            </signals>
          </instance>
        </module>
        <module id="I2601" name="FUSE">
          <instance name="FUSE">
            <register-group address-space="data" name="FUSE" name-in-module="FUSE" offset="0x1280"/>
          </instance>
        </module>
        <module id="I2601" name="GPIO">
          <instance name="GPIO">
            <register-group address-space="data" name="GPIO" name-in-module="GPIO" offset="0x001C"/>
          </instance>
        </module>
        <module id="I2601" 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="6" pad="PA6"/>
              <signal function="IOPORT" group="PIN" index="7" pad="PA7"/>
            </signals>
          </instance>
        </module>
        <module id="I2601" name="PORTMUX">
          <instance name="PORTMUX">
            <register-group address-space="data" name="PORTMUX" name-in-module="PORTMUX" offset="0x0200"/>
          </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="PA0"/>
            </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="I2601" 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="0x0820"/>
            <signals>
              <signal field="PORTMUX.CTRLB.SPI0" function="SPI0_ALT" group="MISO" pad="PA7"/>
              <signal field="PORTMUX.CTRLB.SPI0" function="SPI0" group="MISO" pad="PA2"/>
              <signal field="PORTMUX.CTRLB.SPI0" function="SPI0_ALT" group="MOSI" pad="PA6"/>
              <signal field="PORTMUX.CTRLB.SPI0" function="SPI0" group="MOSI" pad="PA1"/>
              <signal function="SPI0" group="SCK" pad="PA3"/>
              <signal function="SPI0" group="SS" pad="PA0"/>
            </signals>
          </instance>
        </module>
        <module id="I2601" name="SYSCFG">
          <instance name="SYSCFG">
            <register-group address-space="data" name="SYSCFG" name-in-module="SYSCFG" offset="0x0F00"/>
            <signals>
              <signal function="OTHER" group="UPDI" pad="PA0"/>
            </signals>
          </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.CTRLC.TCA00" function="TCA0_ALT" group="WO" index="0" pad="PA7"/>
              <signal field="PORTMUX.CTRLC.TCA00" function="TCA0" group="WO" index="0" pad="PA3"/>
              <signal function="TCA0" group="WO" index="1" pad="PA1"/>
              <signal function="TCA0" group="WO" index="2" pad="PA2"/>
              <signal function="TCA0" group="WO" index="3" pad="PA3"/>
            </signals>
          </instance>
        </module>
        <module id="I2119" name="TCB">
          <instance name="TCB0">
            <register-group address-space="data" name="TCB0" name-in-module="TCB" offset="0x0A40"/>
            <signals>
              <signal function="TCB0" group="WO" pad="PA6"/>
            </signals>
          </instance>
        </module>
        <module id="I2110" name="TWI">
          <instance name="TWI0">
            <register-group address-space="data" name="TWI0" name-in-module="TWI" offset="0x0810"/>
            <signals>
              <signal function="TWI0" group="SCL" pad="PA2"/>
              <signal function="TWI0" group="SDA" pad="PA1"/>
            </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.CTRLB.USART0" function="USART0_ALT" group="RXD" pad="PA2"/>
              <signal field="PORTMUX.CTRLB.USART0" function="USART0" group="RXD" pad="PA7"/>
              <signal field="PORTMUX.CTRLB.USART0" function="USART0_ALT" group="TXD" pad="PA1"/>
              <signal field="PORTMUX.CTRLB.USART0" function="USART0" group="TXD" pad="PA6"/>
              <signal function="USART0" group="XCK" pad="PA3"/>
              <signal function="USART0" group="XDIR" pad="PA0"/>
            </signals>
          </instance>
        </module>
        <module id="I2601" 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>
        </module>
        <module id="I2601" 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="PORTA" name="PORT"/>
        <interrupt index="6" module-instance="RTC" name="CNT"/>
        <interrupt index="7" module-instance="RTC" name="PIT"/>
        <interrupt index="8" module-instance="TCA0" name="LUNF"/>
        <interrupt index="8" module-instance="TCA0" name="OVF"/>
        <interrupt index="9" module-instance="TCA0" name="HUNF"/>
        <interrupt index="10" module-instance="TCA0" name="CMP0"/>
        <interrupt index="10" module-instance="TCA0" name="LCMP0"/>
        <interrupt index="11" module-instance="TCA0" name="CMP1"/>
        <interrupt index="11" module-instance="TCA0" name="LCMP1"/>
        <interrupt index="12" module-instance="TCA0" name="CMP2"/>
        <interrupt index="12" module-instance="TCA0" name="LCMP2"/>
        <interrupt index="13" module-instance="TCB0" name="INT"/>
        <interrupt index="16" module-instance="AC0" name="AC"/>
        <interrupt index="17" module-instance="ADC0" name="RESRDY"/>
        <interrupt index="18" module-instance="ADC0" name="WCOMP"/>
        <interrupt index="19" module-instance="TWI0" name="TWIS"/>
        <interrupt index="20" module-instance="TWI0" name="TWIM"/>
        <interrupt index="21" module-instance="SPI0" name="INT"/>
        <interrupt index="22" module-instance="USART0" name="RXC"/>
        <interrupt index="23" module-instance="USART0" name="DRE"/>
        <interrupt index="24" module-instance="USART0" name="TXC"/>
        <interrupt index="25" module-instance="NVMCTRL" name="EE"/>
      </interrupts>
      <interfaces>
        <interface name="UPDI" type="updi"/>
      </interfaces>
      <property-groups>
        <property-group name="OCD_FEATURES">
          <property name="BREAK_PIN" value="PA1"/>
        </property-group>
        <property-group name="PROGRAMMING_INFO">
          <property name="FUSE_ENABLED_VALUE" value="1"/>
        </property-group>
        <property-group name="UPDI_INTERFACE">
          <property name="PROGMEM_OFFSET" value="0x00008000"/>
        </property-group>
        <property-group name="SIGNATURES">
          <property name="SIGNATURE0" value="0x1E"/>
          <property name="SIGNATURE1" value="0x91"/>
          <property name="SIGNATURE2" value="0x23"/>
        </property-group>
      </property-groups>
    </device>
  </devices>
  <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="Output Buffer Enable" mask="0x40" name="OUTEN" rw="RW"/>
          <bitfield caption="Run in Standby Mode" mask="0x80" name="RUNSTDBY" 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="Negative Input MUX Selection select" name="AC_MUXNEG">
        <value caption="Negative Pin 0" name="PIN0" value="0x00"/>
        <value caption="Voltage Reference" name="VREF" value="0x02"/>
      </value-group>
      <value-group caption="Positive Input MUX Selection select" name="AC_MUXPOS">
        <value caption="Positive Pin 0" name="PIN0" value="0x00"/>
      </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="0x00" 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-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="0x00"/>
        <value caption="ADC input pin 1" name="AIN1" value="0x01"/>
        <value caption="ADC input pin 2" name="AIN2" value="0x02"/>
        <value caption="ADC input pin 3" name="AIN3" value="0x03"/>
        <value caption="ADC input pin 4" name="AIN4" value="0x04"/>
        <value caption="ADC input pin 5" name="AIN5" value="0x05"/>
        <value caption="ADC input pin 6" name="AIN6" value="0x06"/>
        <value caption="ADC input pin 7" name="AIN7" value="0x07"/>
        <value caption="ADC input pin 8" name="AIN8" value="0x08"/>
        <value caption="ADC input pin 9" name="AIN9" value="0x09"/>
        <value caption="ADC input pin 10" name="AIN10" value="0x0A"/>
        <value caption="ADC input pin 11" name="AIN11" value="0x0B"/>
        <value caption="DAC0" name="DAC0" value="0x1C"/>
        <value caption="Internal Ref" name="INTREF" value="0x1D"/>
        <value caption="Temp sensor" name="TEMPSENSE" value="0x1E"/>
        <value caption="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 wakeup halt" name="ENWAKE" value="0x03"/>
      </value-group>
      <value-group caption="Sample frequency select" name="BOD_SAMPFREQ">
        <value caption="1kHz sampling" name="1KHZ" value="0x0"/>
        <value caption="125Hz sampling" 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="0x10">
        <register caption="Control Register A" initval="0x00" name="CTRLA" offset="0x0" 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="LUT Control 0 A" initval="0x00" name="LUT0CTRLA" offset="0x5" rw="RW" size="1">
          <bitfield caption="Clock Source Selection" mask="0x40" name="CLKSRC" rw="RW"/>
          <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="0x8" name="OUTEN" rw="RW"/>
        </register>
        <register caption="LUT Control 0 B" initval="0x00" name="LUT0CTRLB" offset="0x6" 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="0x7" 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="0x9" rw="RW" size="1">
          <bitfield caption="Clock Source Selection" mask="0x40" name="CLKSRC" rw="RW"/>
          <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="0x8" name="OUTEN" rw="RW"/>
        </register>
        <register caption="LUT Control 1 B" initval="0x00" name="LUT1CTRLB" offset="0xA" 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="0xB" 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="0x1" rw="RW" size="1">
          <bitfield caption="Sequential Selection" mask="0x7" name="SEQSEL" rw="RW" values="CCL_SEQSEL"/>
        </register>
        <register caption="Truth 0" initval="0x00" name="TRUTH0" offset="0x8" rw="RW" size="1">
          <bitfield caption="Truth Table" mask="0xff" name="TRUTH" rw="RW"/>
        </register>
        <register caption="Truth 1" initval="0x00" name="TRUTH1" offset="0xC" rw="RW" size="1">
          <bitfield caption="Truth Table" mask="0xff" name="TRUTH" rw="RW"/>
        </register>
      </register-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 0" name="EVENT0" value="0x03"/>
        <value caption="Event input source 1" name="EVENT1" 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="TCB0 WO input source" name="TCB0" value="0x07"/>
        <value caption="TCA0 WO0 input source" name="TCA0" value="0x08"/>
        <value caption="TCD0 WOA input source" name="TCD0" value="0x09"/>
        <value caption="USART0 XCK input source" name="USART0" value="0x0A"/>
        <value caption="SPI0 SCK source" name="SPI0" value="0x0B"/>
      </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 0" name="EVENT0" value="0x03"/>
        <value caption="Event input source 1" name="EVENT1" 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="TCB0 WO input source" name="TCB0" value="0x07"/>
        <value caption="TCA0 WO1 input source" name="TCA0" value="0x08"/>
        <value caption="TCD0 WOB input source" name="TCD0" value="0x09"/>
        <value caption="USART0 TXD input source" name="USART0" value="0x0A"/>
        <value caption="SPI0 MOSI input source" name="SPI0" value="0x0B"/>
      </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 0" name="EVENT0" value="0x03"/>
        <value caption="Event input source 1" name="EVENT1" 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="TCB0 WO input source" name="TCB0" value="0x07"/>
        <value caption="TCA0 WO2 input source" name="TCA0" value="0x08"/>
        <value caption="TCD0 WOA input source" name="TCD0" value="0x09"/>
        <value caption="SPI0 MISO source" name="SPI0" value="0x0B"/>
      </value-group>
      <value-group caption="Sequential Selection select" name="CCL_SEQSEL">
        <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="I2601" 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="0x00" 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" initval="0x00" 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"/>
        </register>
        <register caption="OSC20M Calibration A" initval="0x00" name="OSC20MCALIBA" offset="0x11" rw="RW" size="1">
          <bitfield caption="Calibration" mask="0x3f" name="CAL20M" rw="RW"/>
        </register>
        <register caption="OSC20M Calibration B" initval="0x00" 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-group>
      <value-group caption="clock select select" name="CLKCTRL_CLKSEL">
        <value caption="20MHz internal oscillator" name="OSC20M" value="0x00"/>
        <value caption="32KHz internal Ultra Low Power oscillator" name="OSCULP32K" value="0x01"/>
        <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>
    </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 Flash Access Mode" mask="0x30" name="MODE" rw="RW" values="CRCSCAN_MODE"/>
          <bitfield caption="CRC Source" mask="0x3" name="SRC" rw="RW" values="CRCSCAN_SRC"/>
        </register>
        <register caption="Status" initval="0x00" 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 Flash Access Mode select" name="CRCSCAN_MODE">
        <value caption="Priority to flash" name="PRIORITY" value="0x0"/>
        <value caption="Reserved" name="RESERVED" value="0x1"/>
        <value caption="Lowest priority to flash" name="BACKGROUND" value="0x2"/>
        <value caption="Continuous checks in background" name="CONTINUOUS" value="0x3"/>
      </value-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="I2601" name="EVSYS">
      <register-group caption="Event System" name="EVSYS" size="0x40">
        <register caption="Asynchronous Channel 0 Generator Selection" initval="0x00" name="ASYNCCH0" offset="0x02" rw="RW" size="1">
          <bitfield caption="Asynchronous Channel 0 Generator Selection" mask="0xff" name="ASYNCCH0" rw="RW" values="EVSYS_ASYNCCH0"/>
        </register>
        <register caption="Asynchronous Channel 1 Generator Selection" initval="0x00" name="ASYNCCH1" offset="0x03" rw="RW" size="1">
          <bitfield caption="Asynchronous Channel 1 Generator Selection" mask="0xff" name="ASYNCCH1" rw="RW" values="EVSYS_ASYNCCH1"/>
        </register>
        <register caption="Asynchronous Channel Strobe" initval="0x00" name="ASYNCSTROBE" offset="0x00" rw="W" size="1"/>
        <register caption="Asynchronous User Ch 0 Input Selection - TCB0" initval="0x00" name="ASYNCUSER0" offset="0x12" rw="RW" size="1">
          <bitfield caption="Asynchronous User Ch 0 Input Selection - TCB0" mask="0xff" name="ASYNCUSER0" rw="RW" values="EVSYS_ASYNCUSER0"/>
        </register>
        <register caption="Asynchronous User Ch 1 Input Selection - ADC0" initval="0x00" name="ASYNCUSER1" offset="0x13" rw="RW" size="1">
          <bitfield caption="Asynchronous User Ch 1 Input Selection - ADC0" mask="0xff" name="ASYNCUSER1" rw="RW" values="EVSYS_ASYNCUSER1"/>
        </register>
        <register caption="Asynchronous User Ch 2 Input Selection - CCL LUT0 Event 0" initval="0x00" name="ASYNCUSER2" offset="0x14" rw="RW" size="1">
          <bitfield caption="Asynchronous User Ch 2 Input Selection - CCL LUT0 Event 0" mask="0xff" name="ASYNCUSER2" rw="RW" values="EVSYS_ASYNCUSER2"/>
        </register>
        <register caption="Asynchronous User Ch 3 Input Selection - CCL LUT1 Event 0" initval="0x00" name="ASYNCUSER3" offset="0x15" rw="RW" size="1">
          <bitfield caption="Asynchronous User Ch 3 Input Selection - CCL LUT1 Event 0" mask="0xff" name="ASYNCUSER3" rw="RW" values="EVSYS_ASYNCUSER3"/>
        </register>
        <register caption="Asynchronous User Ch 4 Input Selection - CCL LUT0 Event 1" initval="0x00" name="ASYNCUSER4" offset="0x16" rw="RW" size="1">
          <bitfield caption="Asynchronous User Ch 4 Input Selection - CCL LUT0 Event 1" mask="0xff" name="ASYNCUSER4" rw="RW" values="EVSYS_ASYNCUSER4"/>
        </register>
        <register caption="Asynchronous User Ch 5 Input Selection - CCL LUT1 Event 1" initval="0x00" name="ASYNCUSER5" offset="0x17" rw="RW" size="1">
          <bitfield caption="Asynchronous User Ch 5 Input Selection - CCL LUT1 Event 1" mask="0xff" name="ASYNCUSER5" rw="RW" values="EVSYS_ASYNCUSER5"/>
        </register>
        <register caption="Asynchronous User Ch 6 Input Selection - TCD0 Event 0" initval="0x00" name="ASYNCUSER6" offset="0x18" rw="RW" size="1">
          <bitfield caption="Asynchronous User Ch 6 Input Selection - TCD0 Event 0" mask="0xff" name="ASYNCUSER6" rw="RW" values="EVSYS_ASYNCUSER6"/>
        </register>
        <register caption="Asynchronous User Ch 7 Input Selection - TCD0 Event 1" initval="0x00" name="ASYNCUSER7" offset="0x19" rw="RW" size="1">
          <bitfield caption="Asynchronous User Ch 7 Input Selection - TCD0 Event 1" mask="0xff" name="ASYNCUSER7" rw="RW" values="EVSYS_ASYNCUSER7"/>
        </register>
        <register caption="Asynchronous User Ch 8 Input Selection - Event Out 0" initval="0x00" name="ASYNCUSER8" offset="0x1A" rw="RW" size="1">
          <bitfield caption="Asynchronous User Ch 8 Input Selection - Event Out 0" mask="0xff" name="ASYNCUSER8" rw="RW" values="EVSYS_ASYNCUSER8"/>
        </register>
        <register caption="Asynchronous User Ch 9 Input Selection - Event Out 1" initval="0x00" name="ASYNCUSER9" offset="0x1B" rw="RW" size="1">
          <bitfield caption="Asynchronous User Ch 9 Input Selection - Event Out 1" mask="0xff" name="ASYNCUSER9" rw="RW" values="EVSYS_ASYNCUSER9"/>
        </register>
        <register caption="Asynchronous User Ch 10 Input Selection - Event Out 2" initval="0x00" name="ASYNCUSER10" offset="0x1C" rw="RW" size="1">
          <bitfield caption="Asynchronous User Ch 10 Input Selection - Event Out 2" mask="0xff" name="ASYNCUSER10" rw="RW" values="EVSYS_ASYNCUSER10"/>
        </register>
        <register caption="Synchronous Channel 0 Generator Selection" initval="0x00" name="SYNCCH0" offset="0x0A" rw="RW" size="1">
          <bitfield caption="Synchronous Channel 0 Generator Selection" mask="0xff" name="SYNCCH0" rw="RW" values="EVSYS_SYNCCH0"/>
        </register>
        <register caption="Synchronous Channel 1 Generator Selection" initval="0x00" name="SYNCCH1" offset="0x0B" rw="RW" size="1">
          <bitfield caption="Synchronous Channel 1 Generator Selection" mask="0xff" name="SYNCCH1" rw="RW" values="EVSYS_SYNCCH1"/>
        </register>
        <register caption="Synchronous Channel Strobe" initval="0x00" name="SYNCSTROBE" offset="0x01" rw="W" size="1"/>
        <register caption="Synchronous User Ch 0 Input Selection - TCA0" initval="0x00" name="SYNCUSER0" offset="0x22" rw="RW" size="1">
          <bitfield caption="Synchronous User Ch 0 Input Selection - TCA0" mask="0xff" name="SYNCUSER0" rw="RW" values="EVSYS_SYNCUSER0"/>
        </register>
      </register-group>
      <value-group caption="Asynchronous Channel 0 Generator Selection select" name="EVSYS_ASYNCCH0">
        <value caption="Off" name="OFF" value="0x00"/>
        <value caption="Configurable Custom Logic LUT0" name="CCL_LUT0" value="0x01"/>
        <value caption="Configurable Custom Logic LUT1" name="CCL_LUT1" value="0x02"/>
        <value caption="Analog Comparator 0 out" name="AC0_OUT" value="0x03"/>
        <value caption="Timer/Counter D0 compare B clear" name="TCD0_CMPBCLR" value="0x04"/>
        <value caption="Timer/Counter D0 compare A set" name="TCD0_CMPASET" value="0x05"/>
        <value caption="Timer/Counter D0 compare B set" name="TCD0_CMPBSET" value="0x06"/>
        <value caption="Timer/Counter D0 program event" name="TCD0_PROGEV" value="0x07"/>
        <value caption="Real Time Counter overflow" name="RTC_OVF" value="0x08"/>
        <value caption="Real Time Counter compare" name="RTC_CMP" value="0x09"/>
        <value caption="Asynchronous Event from Pin PA0" name="PORTA_PIN0" value="0x0A"/>
        <value caption="Asynchronous Event from Pin PA1" name="PORTA_PIN1" value="0x0B"/>
        <value caption="Asynchronous Event from Pin PA2" name="PORTA_PIN2" value="0x0C"/>
        <value caption="Asynchronous Event from Pin PA3" name="PORTA_PIN3" value="0x0D"/>
        <value caption="Asynchronous Event from Pin PA4" name="PORTA_PIN4" value="0x0E"/>
        <value caption="Asynchronous Event from Pin PA5" name="PORTA_PIN5" value="0x0F"/>
        <value caption="Asynchronous Event from Pin PA6" name="PORTA_PIN6" value="0x10"/>
        <value caption="Asynchronous Event from Pin PA7" name="PORTA_PIN7" value="0x11"/>
        <value caption="Unified Program and debug interface" name="UPDI" value="0x12"/>
      </value-group>
      <value-group caption="Asynchronous Channel 1 Generator Selection select" name="EVSYS_ASYNCCH1">
        <value caption="Off" name="OFF" value="0x00"/>
        <value caption="Configurable custom logic LUT0" name="CCL_LUT0" value="0x01"/>
        <value caption="Configurable custom logic LUT1" name="CCL_LUT1" value="0x02"/>
        <value caption="Analog Comparator 0 out" name="AC0_OUT" value="0x03"/>
        <value caption="Timer/Counter D0 compare B clear" name="TCD0_CMPBCLR" value="0x04"/>
        <value caption="Timer/Counter D0 compare A set" name="TCD0_CMPASET" value="0x05"/>
        <value caption="Timer/Counter D0 compare B set" name="TCD0_CMPBSET" value="0x06"/>
        <value caption="Timer/Counter D0 program event" name="TCD0_PROGEV" value="0x07"/>
        <value caption="Real Time Counter overflow" name="RTC_OVF" value="0x08"/>
        <value caption="Real Time Counter compare" name="RTC_CMP" value="0x09"/>
        <value caption="Asynchronous Event from Pin PB0" name="PORTB_PIN0" value="0x0A"/>
        <value caption="Asynchronous Event from Pin PB1" name="PORTB_PIN1" value="0x0B"/>
        <value caption="Asynchronous Event from Pin PB2" name="PORTB_PIN2" value="0x0C"/>
        <value caption="Asynchronous Event from Pin PB3" name="PORTB_PIN3" value="0x0D"/>
        <value caption="Asynchronous Event from Pin PB4" name="PORTB_PIN4" value="0x0E"/>
        <value caption="Asynchronous Event from Pin PB5" name="PORTB_PIN5" value="0x0F"/>
        <value caption="Asynchronous Event from Pin PB6" name="PORTB_PIN6" value="0x10"/>
        <value caption="Asynchronous Event from Pin PB7" name="PORTB_PIN7" value="0x11"/>
      </value-group>
      <value-group caption="Asynchronous User Ch 0 Input Selection - TCB0 select" name="EVSYS_ASYNCUSER0">
        <value caption="Off" name="OFF" value="0x00"/>
        <value caption="Synchronous Event Channel 0" name="SYNCCH0" value="0x01"/>
        <value caption="Asynchronous Event Channel 0" name="ASYNCCH0" value="0x03"/>
        <value caption="Asynchronous Event Channel 1" name="ASYNCCH1" value="0x04"/>
      </value-group>
      <value-group caption="Asynchronous User Ch 1 Input Selection - ADC0 select" name="EVSYS_ASYNCUSER1">
        <value caption="Off" name="OFF" value="0x00"/>
        <value caption="Synchronous Event Channel 0" name="SYNCCH0" value="0x01"/>
        <value caption="Asynchronous Event Channel 0" name="ASYNCCH0" value="0x03"/>
        <value caption="Asynchronous Event Channel 1" name="ASYNCCH1" value="0x04"/>
      </value-group>
      <value-group caption="Asynchronous User Ch 2 Input Selection - CCL LUT0 Event 0 select" name="EVSYS_ASYNCUSER2">
        <value caption="Off" name="OFF" value="0x00"/>
        <value caption="Synchronous Event Channel 0" name="SYNCCH0" value="0x01"/>
        <value caption="Asynchronous Event Channel 0" name="ASYNCCH0" value="0x03"/>
        <value caption="Asynchronous Event Channel 1" name="ASYNCCH1" value="0x04"/>
      </value-group>
      <value-group caption="Asynchronous User Ch 3 Input Selection - CCL LUT1 Event 0 select" name="EVSYS_ASYNCUSER3">
        <value caption="Off" name="OFF" value="0x00"/>
        <value caption="Synchronous Event Channel 0" name="SYNCCH0" value="0x01"/>
        <value caption="Asynchronous Event Channel 0" name="ASYNCCH0" value="0x03"/>
        <value caption="Asynchronous Event Channel 1" name="ASYNCCH1" value="0x04"/>
      </value-group>
      <value-group caption="Asynchronous User Ch 4 Input Selection - CCL LUT0 Event 1 select" name="EVSYS_ASYNCUSER4">
        <value caption="Off" name="OFF" value="0x00"/>
        <value caption="Synchronous Event Channel 0" name="SYNCCH0" value="0x01"/>
        <value caption="Asynchronous Event Channel 0" name="ASYNCCH0" value="0x03"/>
        <value caption="Asynchronous Event Channel 1" name="ASYNCCH1" value="0x04"/>
      </value-group>
      <value-group caption="Asynchronous User Ch 5 Input Selection - CCL LUT1 Event 1 select" name="EVSYS_ASYNCUSER5">
        <value caption="Off" name="OFF" value="0x00"/>
        <value caption="Synchronous Event Channel 0" name="SYNCCH0" value="0x01"/>
        <value caption="Asynchronous Event Channel 0" name="ASYNCCH0" value="0x03"/>
        <value caption="Asynchronous Event Channel 1" name="ASYNCCH1" value="0x04"/>
      </value-group>
      <value-group caption="Asynchronous User Ch 6 Input Selection - TCD0 Event 0 select" name="EVSYS_ASYNCUSER6">
        <value caption="Off" name="OFF" value="0x00"/>
        <value caption="Synchronous Event Channel 0" name="SYNCCH0" value="0x01"/>
        <value caption="Asynchronous Event Channel 0" name="ASYNCCH0" value="0x03"/>
        <value caption="Asynchronous Event Channel 1" name="ASYNCCH1" value="0x04"/>
      </value-group>
      <value-group caption="Asynchronous User Ch 7 Input Selection - TCD0 Event 1 select" name="EVSYS_ASYNCUSER7">
        <value caption="Off" name="OFF" value="0x00"/>
        <value caption="Synchronous Event Channel 0" name="SYNCCH0" value="0x01"/>
        <value caption="Asynchronous Event Channel 0" name="ASYNCCH0" value="0x03"/>
        <value caption="Asynchronous Event Channel 1" name="ASYNCCH1" value="0x04"/>
      </value-group>
      <value-group caption="Asynchronous User Ch 8 Input Selection - Event Out 0 select" name="EVSYS_ASYNCUSER8">
        <value caption="Off" name="OFF" value="0x00"/>
        <value caption="Synchronous Event Channel 0" name="SYNCCH0" value="0x01"/>
        <value caption="Asynchronous Event Channel 0" name="ASYNCCH0" value="0x03"/>
        <value caption="Asynchronous Event Channel 1" name="ASYNCCH1" value="0x04"/>
      </value-group>
      <value-group caption="Asynchronous User Ch 9 Input Selection - Event Out 1 select" name="EVSYS_ASYNCUSER9">
        <value caption="Off" name="OFF" value="0x00"/>
        <value caption="Synchronous Event Channel 0" name="SYNCCH0" value="0x01"/>
        <value caption="Asynchronous Event Channel 0" name="ASYNCCH0" value="0x03"/>
        <value caption="Asynchronous Event Channel 1" name="ASYNCCH1" value="0x04"/>
      </value-group>
      <value-group caption="Asynchronous User Ch 10 Input Selection - Event Out 2 select" name="EVSYS_ASYNCUSER10">
        <value caption="Off" name="OFF" value="0x00"/>
        <value caption="Synchronous Event Channel 0" name="SYNCCH0" value="0x01"/>
        <value caption="Asynchronous Event Channel 0" name="ASYNCCH0" value="0x03"/>
        <value caption="Asynchronous Event Channel 1" name="ASYNCCH1" value="0x04"/>
      </value-group>
      <value-group caption="Synchronous Channel 0 Generator Selection select" name="EVSYS_SYNCCH0">
        <value caption="Off" name="OFF" value="0x00"/>
        <value caption="Timer/Counter B0" name="TCB0" value="0x01"/>
        <value caption="Timer/Counter A0 overflow" name="TCA0_OVF_LUNF" value="0x02"/>
        <value caption="Timer/Counter A0 underflow high byte (split mode)" name="TCA0_HUNF" value="0x03"/>
        <value caption="Timer/Counter A0 compare 0" name="TCA0_CMP0" value="0x04"/>
        <value caption="Timer/Counter A0 compare 1" name="TCA0_CMP1" value="0x05"/>
        <value caption="Timer/Counter A0 compare 2" name="TCA0_CMP2" value="0x06"/>
        <value caption="Synchronous Event from Pin PC0" name="PORTC_PIN0" value="0x07"/>
        <value caption="Synchronous Event from Pin PC1" name="PORTC_PIN1" value="0x08"/>
        <value caption="Synchronous Event from Pin PC2" name="PORTC_PIN2" value="0x09"/>
        <value caption="Synchronous Event from Pin PC3" name="PORTC_PIN3" value="0x0A"/>
        <value caption="Synchronous Event from Pin PC4" name="PORTC_PIN4" value="0x0B"/>
        <value caption="Synchronous Event from Pin PC5" name="PORTC_PIN5" value="0x0C"/>
        <value caption="Synchronous Event from Pin PA0" name="PORTA_PIN0" value="0x0D"/>
        <value caption="Synchronous Event from Pin PA1" name="PORTA_PIN1" value="0x0E"/>
        <value caption="Synchronous Event from Pin PA2" name="PORTA_PIN2" value="0x0F"/>
        <value caption="Synchronous Event from Pin PA3" name="PORTA_PIN3" value="0x10"/>
        <value caption="Synchronous Event from Pin PA4" name="PORTA_PIN4" value="0x11"/>
        <value caption="Synchronous Event from Pin PA5" name="PORTA_PIN5" value="0x12"/>
        <value caption="Synchronous Event from Pin PA6" name="PORTA_PIN6" value="0x13"/>
        <value caption="Synchronous Event from Pin PA7" name="PORTA_PIN7" value="0x14"/>
      </value-group>
      <value-group caption="Synchronous Channel 1 Generator Selection select" name="EVSYS_SYNCCH1">
        <value caption="Off" name="OFF" value="0x00"/>
        <value caption="Timer/Counter B0" name="TCB0" value="0x01"/>
        <value caption="Timer/Counter A0 overflow" name="TCA0_OVF_LUNF" value="0x02"/>
        <value caption="Timer/Counter A0 underflow high byte (split mode)" name="TCA0_HUNF" value="0x03"/>
        <value caption="Timer/Counter A0 compare 0" name="TCA0_CMP0" value="0x04"/>
        <value caption="Timer/Counter A0 compare 1" name="TCA0_CMP1" value="0x05"/>
        <value caption="Timer/Counter A0 compare 2" name="TCA0_CMP2" value="0x06"/>
        <value caption="Synchronous Event from Pin PB0" name="PORTB_PIN0" value="0x08"/>
        <value caption="Synchronous Event from Pin PB1" name="PORTB_PIN1" value="0x09"/>
        <value caption="Synchronous Event from Pin PB2" name="PORTB_PIN2" value="0x0A"/>
        <value caption="Synchronous Event from Pin PB3" name="PORTB_PIN3" value="0x0B"/>
        <value caption="Synchronous Event from Pin PB4" name="PORTB_PIN4" value="0x0C"/>
        <value caption="Synchronous Event from Pin PB5" name="PORTB_PIN5" value="0x0D"/>
        <value caption="Synchronous Event from Pin PB6" name="PORTB_PIN6" value="0x0E"/>
        <value caption="Synchronous Event from Pin PB7" name="PORTB_PIN7" value="0x0F"/>
      </value-group>
      <value-group caption="Synchronous User Ch 0 Input Selection - TCA0 select" name="EVSYS_SYNCUSER0">
        <value caption="Off" name="OFF" value="0x00"/>
        <value caption="Synchronous Event Channel 0" name="SYNCCH0" value="0x01"/>
      </value-group>
    </module>
    <module caption="Fuses" id="I2601" 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="0xc" 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="TCD0 Configuration" initval="0x00" name="TCD0CFG" offset="0x4" rw="RW" size="1">
          <bitfield caption="Compare A Default Output Value" mask="0x1" name="CMPA" rw="RW"/>
          <bitfield caption="Compare A Output Enable" mask="0x10" name="CMPAEN" rw="RW"/>
          <bitfield caption="Compare B Default Output Value" mask="0x2" name="CMPB" rw="RW"/>
          <bitfield caption="Compare B Output Enable" mask="0x20" name="CMPBEN" rw="RW"/>
          <bitfield caption="Compare C Default Output Value" mask="0x4" name="CMPC" rw="RW"/>
          <bitfield caption="Compare C Output Enable" mask="0x40" name="CMPCEN" rw="RW"/>
          <bitfield caption="Compare D Default Output Value" mask="0x8" name="CMPD" rw="RW"/>
          <bitfield caption="Compare D Output Enable" mask="0x80" name="CMPDEN" rw="RW"/>
        </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="UPDI mode" name="UPDI" value="0x1"/>
        <value caption="Reset mode" name="RST" value="0x2"/>
      </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="Watch-Dog timer 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="Window mode 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="I2601" 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="I2601" name="LOCKBIT">
      <register-group caption="Lockbit" name="LOCKBIT" size="0x01">
        <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" 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-group>
      <value-group caption="Input/Sense Configuration select" name="PORT_ISC">
        <value caption="Interrupt disabled but input buffer enabled" name="INTDISABLE" value="0x00"/>
        <value caption="Sense Both Edges" name="BOTHEDGES" value="0x01"/>
        <value caption="Sense Rising Edge" name="RISING" value="0x02"/>
        <value caption="Sense Falling Edge" name="FALLING" value="0x03"/>
        <value caption="Digital Input Buffer disabled" name="INPUT_DISABLE" value="0x04"/>
        <value caption="Sense low Level" name="LEVEL" value="0x05"/>
      </value-group>
    </module>
    <module caption="Port Multiplexer" id="I2601" name="PORTMUX">
      <register-group caption="Port Multiplexer" name="PORTMUX" size="0x10">
        <register caption="Port Multiplexer Control A" initval="0x00" name="CTRLA" offset="0x0" rw="RW" size="1">
          <bitfield caption="Event Output 0" mask="0x1" name="EVOUT0" rw="RW"/>
          <bitfield caption="Event Output 1" mask="0x2" name="EVOUT1" rw="RW"/>
          <bitfield caption="Event Output 2" mask="0x4" name="EVOUT2" rw="RW"/>
          <bitfield caption="Configurable Custom Logic LUT0" mask="0x10" name="LUT0" rw="RW" values="PORTMUX_LUT0"/>
          <bitfield caption="Configurable Custom Logic LUT1" mask="0x20" name="LUT1" rw="RW" values="PORTMUX_LUT1"/>
        </register>
        <register caption="Port Multiplexer Control B" initval="0x00" name="CTRLB" offset="0x1" rw="RW" size="1">
          <bitfield caption="Port Multiplexer SPI0" mask="0x4" name="SPI0" rw="RW" values="PORTMUX_SPI0"/>
          <bitfield caption="Port Multiplexer USART0" mask="0x1" name="USART0" rw="RW" values="PORTMUX_USART0"/>
        </register>
        <register caption="Port Multiplexer Control C" initval="0x00" name="CTRLC" offset="0x2" rw="RW" size="1">
          <bitfield caption="Port Multiplexer TCA0 Output 0" mask="0x1" name="TCA00" rw="RW" values="PORTMUX_TCA00"/>
          <bitfield caption="Port Multiplexer TCA0 Output 1" mask="0x2" name="TCA01" rw="RW" values="PORTMUX_TCA01"/>
          <bitfield caption="Port Multiplexer TCA0 Output 2" mask="0x4" name="TCA02" rw="RW" values="PORTMUX_TCA02"/>
          <bitfield caption="Port Multiplexer TCA0 Output 3" mask="0x8" name="TCA03" rw="RW" values="PORTMUX_TCA03"/>
        </register>
        <register caption="Port Multiplexer Control D" initval="0x00" name="CTRLD" offset="0x3" rw="RW" size="1">
          <bitfield caption="Port Multiplexer TCB" mask="0x1" name="TCB0" rw="RW" values="PORTMUX_TCB0"/>
        </register>
      </register-group>
      <value-group caption="Configurable Custom Logic LUT0 select" name="PORTMUX_LUT0">
        <value caption="Default pin" name="DEFAULT" value="0"/>
        <value caption="Alternate pin" name="ALTERNATE" value="1"/>
      </value-group>
      <value-group caption="Configurable Custom Logic LUT1 select" name="PORTMUX_LUT1">
        <value caption="Default pin" name="DEFAULT" value="0"/>
        <value caption="Alternate pin" name="ALTERNATE" value="1"/>
      </value-group>
      <value-group caption="Port Multiplexer SPI0 select" name="PORTMUX_SPI0">
        <value caption="Default pins" name="DEFAULT" value="0"/>
        <value caption="Alternate pins" name="ALTERNATE" value="1"/>
      </value-group>
      <value-group caption="Port Multiplexer USART0 select" name="PORTMUX_USART0">
        <value caption="Default pins" name="DEFAULT" value="0"/>
        <value caption="Alternate pins" name="ALTERNATE" value="1"/>
      </value-group>
      <value-group caption="Port Multiplexer TCA0 Output 0 select" name="PORTMUX_TCA00">
        <value caption="Default pin" name="DEFAULT" value="0"/>
        <value caption="Alternate pin" name="ALTERNATE" value="1"/>
      </value-group>
      <value-group caption="Port Multiplexer TCA0 Output 1 select" name="PORTMUX_TCA01">
        <value caption="Default pin" name="DEFAULT" value="0"/>
        <value caption="Alternate pin" name="ALTERNATE" value="1"/>
      </value-group>
      <value-group caption="Port Multiplexer TCA0 Output 2 select" name="PORTMUX_TCA02">
        <value caption="Default pin" name="DEFAULT" value="0"/>
        <value caption="Alternate pin" name="ALTERNATE" value="1"/>
      </value-group>
      <value-group caption="Port Multiplexer TCA0 Output 3 select" name="PORTMUX_TCA03">
        <value caption="Default pin" name="DEFAULT" value="0"/>
        <value caption="Alternate pin" name="ALTERNATE" value="1"/>
      </value-group>
      <value-group caption="Port Multiplexer TCB select" name="PORTMUX_TCB0">
        <value caption="Default pin" name="DEFAULT" value="0x0"/>
        <value caption="Alternate pin" name="ALTERNATE" value="0x1"/>
      </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="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="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" 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" 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="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="I2601" name="SIGROW">
      <register-group caption="Signature row" name="SIGROW" size="0x40">
        <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="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="I2601" 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="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" name="PER" offset="0x26" rw="RW" size="2"/>
        <register caption="Period Buffer" 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">
          <bitfield caption="FM Plus Enable" mask="0x2" name="FMPEN" rw="RW"/>
          <bitfield caption="SDA Hold Time" mask="0xc" name="SDAHOLD" rw="RW" values="TWI_SDAHOLD"/>
          <bitfield caption="SDA Setup Time" mask="0x10" name="SDASETUP" rw="RW" values="TWI_SDASETUP"/>
        </register>
        <register caption="Debug Control Register" initval="0x00" name="DBGCTRL" offset="0x2" rw="RW" size="1">
          <bitfield caption="Debug Run" mask="0x1" name="DBGRUN" rw="RW"/>
        </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_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_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="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>
    </module>
    <module caption="User Row" id="I2601" 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-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="I2601" 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="ADC0 reference select" mask="0x70" name="ADC0REFSEL" rw="RW" values="VREF_ADC0REFSEL"/>
          <bitfield caption="DAC0/AC0 reference select" mask="0x7" name="DAC0REFSEL" rw="RW" values="VREF_DAC0REFSEL"/>
        </register>
        <register caption="Control B" initval="0x00" name="CTRLB" offset="0x1" rw="RW" size="1">
          <bitfield caption="ADC0 reference enable" mask="0x2" name="ADC0REFEN" rw="RW"/>
          <bitfield caption="DAC0/AC0 reference enable" mask="0x1" name="DAC0REFEN" rw="RW"/>
        </register>
      </register-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>
      <value-group caption="DAC0/AC0 reference select select" name="VREF_DAC0REFSEL">
        <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="Watch-Dog timer 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="Window mode 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="SOIC8">
      <pin pad="VDD" position="1"/>
      <pin pad="PA6" position="2"/>
      <pin pad="PA7" position="3"/>
      <pin pad="PA1" position="4"/>
      <pin pad="PA2" position="5"/>
      <pin pad="PA0" position="6"/>
      <pin pad="PA3" position="7"/>
      <pin pad="GND" position="8"/>
    </pinout>
  </pinouts>
</avr-tools-device-file>
Do not follow this link