[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Uisp-dev] Programing ATtiny13
From: |
don |
Subject: |
[Uisp-dev] Programing ATtiny13 |
Date: |
Thu, 20 Oct 2005 19:09:32 -0700 |
User-agent: |
Mutt/1.5.9i |
Hi. I have some ATtiny13 devices I wish to program. The current
version of uisp (CVS) doesn't support this device. I tried to add it
but have not succeeded. Can anyone help?
I made the changes shown below, most of the values are avaialble from
the data sheet. I looked up the stk500 device code in the xml files
from the AvrStudio version 4. I cannot find a value for "code" in
TAvrAtmel.
Using an stk500 system, I cannot program the device, the code always
read as 0xff, until I tried to write to a fuce byte as a test. Now
any access gives "Failed to enter programming mode.".
Here is what I did:
Index: Avr.C
===================================================================
RCS file: /cvsroot/uisp/uisp/src/Avr.C,v
retrieving revision 1.13
diff -u -r1.13 Avr.C
--- Avr.C 7 Feb 2005 22:55:08 -0000 1.13
+++ Avr.C 21 Oct 2005 02:02:16 -0000
@@ -48,6 +48,7 @@
{ "AT90S1200", 0x90, 0x01, 1024, 0, 64, 4000, 4000, AVR_1200 },
{ "ATtiny12", 0x90, 0x05, 1024, 0, 64, 1700, 3400, AVR_TN12 },
+ { "ATtiny13", 0x90, 0x07, 1024, 32, 64, 4500, 4000, AVR_TN13 },
{ "ATtiny15", 0x90, 0x06, 1024, 0, 64, 2000, 4000, AVR_TN15 },
#if 0
/* 12V serial programming only; here just for the evidence */
Index: Avr.h
===================================================================
RCS file: /cvsroot/uisp/uisp/src/Avr.h,v
retrieving revision 1.7
diff -u -r1.7 Avr.h
--- Avr.h 31 Mar 2004 02:25:44 -0000 1.7
+++ Avr.h 21 Oct 2005 02:02:16 -0000
@@ -113,6 +113,8 @@
#define AVR_M103 (AVR_BYTE_POLL | AVR_LOCK_RD12 | AVR_FUSE_RD | AVR_FUSE_OLDWR)
#define AVR_TN12 (AVR_BYTE_POLL | AVR_LOCK_RD12 | AVR_FUSE_RD | AVR_FUSE_NEWWR
\
| AVR_CAL_RD)
+#define AVR_TN13 (AVR_BYTE_POLL | AVR_PAGE_POLL | AVR_LOCK_RD12 | AVR_FUSE_RD \
+ | AVR_FUSE_NEWWR | AVR_CAL_RD | AVR_FUSE_HIGH)
#define AVR_TN15 (AVR_BYTE_POLL | AVR_LOCK_RD12 | AVR_FUSE_RD | AVR_FUSE_NEWWR
\
| AVR_CAL_RD)
#define AVR_M161 (AVR_BYTE_POLL | AVR_PAGE_POLL | AVR_LOCK_BOOT | AVR_FUSE_RD \
Index: AvrAtmel.C
===================================================================
RCS file: /cvsroot/uisp/uisp/src/AvrAtmel.C,v
retrieving revision 1.8
diff -u -r1.8 AvrAtmel.C
--- AvrAtmel.C 30 Oct 2002 23:22:07 -0000 1.8
+++ AvrAtmel.C 21 Oct 2005 02:02:17 -0000
@@ -72,6 +72,7 @@
{"TN11", 0x50, "ATtiny11", false}, /* parallel */
{"TN10", 0x51, "ATtiny10", false}, /* parallel */
{"TN12", 0x55, "ATtiny12", false},
+ {"TN13", 0x55, "ATtiny13", false},
{"TN15", 0x56, "ATtiny15", false},
{"TN19", 0x58, "ATtiny19", false}, /* parallel */
{"TN28", 0x5C, "ATtiny28", false}, /* parallel */
Index: Stk500.C
===================================================================
RCS file: /cvsroot/uisp/uisp/src/Stk500.C,v
retrieving revision 1.29
diff -u -r1.29 Stk500.C
--- Stk500.C 28 Dec 2004 14:54:11 -0000 1.29
+++ Stk500.C 21 Oct 2005 02:02:17 -0000
@@ -155,6 +155,11 @@
{0x42, 0x12, 0x00, 0x00, 0x00, 0x01, 0x01, 0x01, 0x01, 0xff, 0xff, 0xff,
0xff, {0x00, 0x00}, {0x00, 0x40}, {0x00, 0x00, 0x04, 0x00}, 0x20}
},
+ {"ATtiny13",
+ {0x00, 0xD7, 0xA0, 0x01},
+ {0x42, 0x14, 0x00, 0x00, 0x00, 0x01, 0x01, 0x01, 0x02, 0xff, 0xff, 0xff,
+ 0xff, {0x00, 0x00}, {0x00, 0x40}, {0x00, 0x00, 0x04, 0x00}, 0x20}
+ },
{"ATtiny15",
{0x00, 0xD7, 0xA0, 0x01},
{0x42, 0x13, 0x00, 0x00, 0x00, 0x01, 0x01, 0x01, 0x01, 0xff, 0xff, 0xff,
Don Reid
- [Uisp-dev] Programing ATtiny13,
don <=