]> 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, write to the Free Software
18 ## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
19 ##
20
21 # Device code addresses:
22 # 0x00: vendor code, 0x01: part family + flash size, 0x02: part number
23
24 # Vendor code
25 vendor_code = {
26     0x1e: 'Atmel',
27     0x00: 'Device locked',
28 }
29
30 # (Part family + flash size, part number)
31 part = {
32     (0x90, 0x01): 'AT90S1200',
33     (0x91, 0x01): 'AT90S2313',
34     (0x92, 0x01): 'AT90S4414',
35     (0x92, 0x05): 'ATmega48', # 4kB flash
36     (0x93, 0x01): 'AT90S8515',
37     (0x93, 0x0a): 'ATmega88', # 8kB flash
38     (0x94, 0x06): 'ATmega168', # 16kB flash
39     (0xff, 0xff): 'Device code erased, or target missing',
40     (0x01, 0x02): 'Device locked',
41     # TODO: Lots more entries.
42 }