Slammer
Member level 3
- Joined
- Aug 3, 2001
- Messages
- 56
- Helped
- 5
- Reputation
- 10
- Reaction score
- 0
- Trophy points
- 1,286
- Location
- Ios Island
- Activity points
- 330
at89s8253 avrdude
The avrdude is a well known isp programming software for AVR family. Hopefully, is very easy to add new devices using the conf files. The conf file defines the device's ISP commands.
The new Atmel's MCS51 family devices like 89S51, 89S52 and 89S5253 have similar ISP commands with AVR devices. I tried to write a conf file definition for AT89S8253 and finally I succedded.
Here is the 89S8253 definition (add this to avrdude.conf or ~/.avrduderc)
With similar way is very easy to add new programming interface. avrdude supports all common AVR isp interfaces but atmel at89isp interface is not included. Here is the definition of at89isp cable:
This definition must added to conf file.
For programming the 89S8253 an at89isp can be used or any other parallel programming device. I have tested the avrdude with at89isp and stk200 interfaces succesfully.
PS: Only byte mode Read/Writes operations supported.
I haven't tested the S51/S52 devices yet. But soon I will do that!
The avrdude is a well known isp programming software for AVR family. Hopefully, is very easy to add new devices using the conf files. The conf file defines the device's ISP commands.
The new Atmel's MCS51 family devices like 89S51, 89S52 and 89S5253 have similar ISP commands with AVR devices. I tried to write a conf file definition for AT89S8253 and finally I succedded.
Here is the 89S8253 definition (add this to avrdude.conf or ~/.avrduderc)
Code:
#------------------------------------------------------------
# AT89S8253
#------------------------------------------------------------
part
id = "8253";
desc = "AT89S8253";
chip_erase_delay = 20000;
pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
"x x x x x x x x x x x x x x x x";
chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
"x x x x x x x x x x x x x x x x";
timeout = 200;
stabdelay = 100;
cmdexedelay = 25;
synchloops = 32;
bytedelay = 0;
pollindex = 3;
pollvalue = 0x53;
predelay = 1;
postdelay = 1;
pollmethod = 0;
memory "flash"
size = 12288;
paged = no;
min_write_delay = 4000;
max_write_delay = 9000;
readback_p1 = 0xff;
readback_p2 = 0xff;
read = " 0 0 1 0 0 0 0 0",
" x x a13 a12 a11 a10 a9 a8",
" a7 a6 a5 a4 a3 a2 a1 a0",
" o o o o o o o o";
write = " 0 1 0 0 0 0 0 0",
" x x a13 a12 a11 a10 a9 a8",
" a7 a6 a5 a4 a3 a2 a1 a0",
" i i i i i i i i";
mode = 0x21;
delay = 12;
;
memory "signature"
size = 2;
readback_p1 = 0x1E;
readback_p2 = 0x73;
read = "0 0 1 0 1 0 0 0 x x x x x x x x",
"x x 1 1 0 0 0 a0 o o o o o o o o";
;
;
With similar way is very easy to add new programming interface. avrdude supports all common AVR isp interfaces but atmel at89isp interface is not included. Here is the definition of at89isp cable:
Code:
programmer
id = "89isp";
desc = "Atmel at89isp cable";
type = par;
reset = 17;
sck = 1;
mosi = 2;
miso = 10;
;
This definition must added to conf file.
For programming the 89S8253 an at89isp can be used or any other parallel programming device. I have tested the avrdude with at89isp and stk200 interfaces succesfully.
PS: Only byte mode Read/Writes operations supported.
I haven't tested the S51/S52 devices yet. But soon I will do that!