]> sigrok.org Git - libsigrokdecode.git/blob - decoders/avr_isp/parts.py
avr_isp: Add more parts
[libsigrokdecode.git] / decoders / avr_isp / parts.py
1 ##
2 ## This file is part of the libsigrokdecode project.
3 ##
4 ## Copyright (C) 2012 Uwe Hermann <uwe@hermann-uwe.de>
5 ##
6 ## This program is free software; you can redistribute it and/or modify
7 ## it under the terms of the GNU General Public License as published by
8 ## the Free Software Foundation; either version 2 of the License, or
9 ## (at your option) any later version.
10 ##
11 ## This program is distributed in the hope that it will be useful,
12 ## but WITHOUT ANY WARRANTY; without even the implied warranty of
13 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 ## GNU General Public License for more details.
15 ##
16 ## You should have received a copy of the GNU General Public License
17 ## along with this program; if not, see <http://www.gnu.org/licenses/>.
18 ##
19
20 # Device code addresses:
21 # 0x00: vendor code, 0x01: part family + flash size, 0x02: part number
22
23 # Vendor code
24 vendor_code = {
25     0x1E: 'Atmel',
26     0x00: 'Device locked',
27 }
28
29 # (Part family + flash size, part number)
30 part = {
31     (0x90, 0x01): 'AT90S1200',
32     (0x90, 0x05): 'ATtiny12',
33     (0x90, 0x06): 'ATtiny15',
34     (0x90, 0x07): 'ATtiny13',
35     (0x91, 0x01): 'AT90S2313',
36     (0x91, 0x02): 'AT90S2323',
37     (0x91, 0x03): 'AT90S2343',
38     (0x91, 0x05): 'AT90S2333',
39     (0x91, 0x06): 'ATtiny22',
40     (0x91, 0x07): 'ATtiny28',
41     (0x91, 0x08): 'ATtiny25',
42     (0x91, 0x09): 'ATtiny26',
43     (0x91, 0x0A): 'ATtiny2313',
44     (0x91, 0x0B): 'ATtiny24',
45     (0x91, 0x0C): 'ATtiny261',
46     (0x92, 0x01): 'AT90S4414',
47     (0x92, 0x03): 'AT90S4433',
48     (0x92, 0x05): 'ATmega48(A)',
49     (0x92, 0x06): 'ATtiny45',
50     (0x92, 0x08): 'ATtiny461',
51     (0x92, 0x09): 'ATtiny48',
52     (0x92, 0x0A): 'ATmega48PA',
53     (0x92, 0x0D): 'ATtiny4313',
54     (0x92, 0x10): 'ATmega48PB',
55     (0x93, 0x01): 'AT90S8515',
56     (0x93, 0x03): 'AT90S8535',
57     (0x93, 0x07): 'ATmega8',
58     (0x93, 0x0A): 'ATmega88(A)',
59     (0x93, 0x0B): 'ATtiny85',
60     (0x93, 0x0D): 'ATtiny861',
61     (0x93, 0x0F): 'ATmega88PA',
62     (0x93, 0x11): 'ATtiny88',
63     (0x93, 0x16): 'ATmega88PB',
64     (0x93, 0x89): 'ATmega8U2',
65     (0x94, 0x01): 'ATmega161',
66     (0x94, 0x02): 'ATmega163',
67     (0x94, 0x03): 'ATmega16',
68     (0x94, 0x04): 'ATmega162',
69     (0x94, 0x06): 'ATmega168(A)',
70     (0x94, 0x0A): 'ATmega164PA',
71     (0x94, 0x0B): 'ATmega168PA',
72     (0x94, 0x0F): 'ATmega164A',
73     (0x94, 0x12): 'ATtiny1634',
74     (0x94, 0x15): 'ATmega168PB',
75     (0x94, 0x88): 'ATmega16U4',
76     (0x94, 0x89): 'ATmega16U2',
77     (0x95, 0x01): 'ATmega32',
78     (0x95, 0x01): 'ATmega323',
79     (0x95, 0x0F): 'ATmega328P',
80     (0x95, 0x11): 'ATmega324PA',
81     (0x95, 0x14): 'ATmega328',
82     (0x95, 0x15): 'ATmega324A',
83     (0x95, 0x87): 'ATmega32U4',
84     (0x95, 0x8A): 'ATmega32U2',
85     (0x96, 0x08): 'ATmega640',
86     (0x96, 0x09): 'ATmega644(A)',
87     (0x96, 0x0A): 'ATmega644PA',
88     (0x97, 0x01): 'ATmega103',
89     (0x97, 0x03): 'ATmega1280',
90     (0x97, 0x04): 'ATmega1281',
91     (0x97, 0x05): 'ATmega1284P',
92     (0x97, 0x06): 'ATmega1284',
93     (0x98, 0x01): 'ATmega2560',
94     (0x98, 0x02): 'ATmega2561',
95     (0xFF, 0xFF): 'Device code erased, or target missing',
96     (0x01, 0x02): 'Device locked',
97 }