Root/sie_fs/usr/local/share/urjtag/atmel/atmega128/atmega128

1#
2# $Id: atmega128 244 2002-10-31 19:44:58Z telka $
3#
4# JTAG declarations for ATmega128
5# Copyright (C) 2002 ETC s.r.o.
6#
7# This program is free software; you can redistribute it and/or
8# modify it under the terms of the GNU General Public License
9# as published by the Free Software Foundation; either version 2
10# of the License, or (at your option) any later version.
11#
12# This program is distributed in the hope that it will be useful,
13# but WITHOUT ANY WARRANTY; without even the implied warranty of
14# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15# GNU General Public License for more details.
16#
17# You should have received a copy of the GNU General Public License
18# along with this program; if not, write to the Free Software
19# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
20# 02111-1307, USA.
21#
22# Written by Marcel Telka <marcel@telka.sk>, 2002.
23#
24# Documentation:
25# [1] Atmel Corporation, "ATmega128(L) - 8-bit AVR Microcontroller with
26# 128K Bytes In-System Programmable Flash", 2002, Rev. 2467E-AVR-05/02
27#
28
29# mandatory data registers
30register BSR 205 # see Table 106 in [1]
31register BR 1
32# optional data registers
33register DIR 32
34# user-defined registers
35register RR 1 # Reset Register
36register PER 16 # Programming Enable Register
37register PCR 15 # Programming Command Register
38register VFPLR 2048 # Virtual Flash Page Load Register
39register VFPRR 2056 # Virtual Flash Page Read Register
40
41# see page 250 in [1]
42instruction length 4
43# mandatory instructions
44instruction EXTEST 0000 BSR # see page 250 in [1]
45instruction SAMPLE/PRELOAD 0010 BSR # see page 251 in [1]
46instruction BYPASS 1111 BR # see page 251 in [1]
47# optional instructions
48instruction IDCODE 0001 DIR # see page 250 in [1]
49# user-defined instructions
50instruction AVR_RESET 1100 RR # see page 251 and page 303 in [1]
51# unknown data registers for PRIVATE? instructions
52#instruction PRIVATE0 1000 # see page 246 in [1]
53#instruction PRIVATE1 1001 # see page 246 in [1]
54#instruction PRIVATE2 1010 # see page 246 in [1]
55#instruction PRIVATE3 1011 # see page 246 in [1]
56instruction PROG_ENABLE 0100 PER # see page 303 in [1]
57instruction PROG_COMMANDS 0101 PCR # see page 304 in [1]
58instruction PROG_PAGELOAD 0110 VFPLR # see page 304 in [1]
59instruction PROG_PAGEREAD 0111 VFPRR # see page 304 in [1]
60

Archive Download this file

Branches:
master



interactive