Device Type Code

Go To Last Post
10 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I am looking for the Device Type Code for an ATmega8 and can't seem to find it in the documentation.
Is there a master list some where of Device Type codes and signature bytes for the various AVR chips? Thank you.

Laurence Boyd II

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi,

The sig bytes are usually in the memory programming section of the device datasheet. The mega8's sig is... 1E 93 07.

Kanda

Kanda Embedded Tools
https://www.kanda.com

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

BryanW wrote:

The sig bytes are usually in the memory programming section of the device datasheet. The mega8's sig is... 1E 93 07.

That are signature bytes. I am looking for the device codes too. For example ATmega163 has 0x66 (or 0x60 I do not remember).

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

The device type code for the ATmega8 is 0x77

The device type for 11 ATmega parts is is in the "preprocessor.xls" file now included with the AVR109 zipped code file which you can download from Atmel. The device type is on the "part definations" page and is titled Part Code. Signature bytes and other information pertainant to boot loaders is also here.

Laurence Boyd II

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Great! Device codes are like the AVRprog expects. I have found the "AVR061: STK500 Communication Protocol" but listed device codes do not work with AVRprog.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

:D I sent a query to AVR support and received the following reply

dear customer

The device code you refer to are only 8bit codes which are used for AVRProg
to identify each device. These codes are not stored in the devices, and are
something different from the signature bytes.

Below is the list of all the codes we use, so if you want to you can also
use the same codes in your code.

/* 0x00-0x0f reserved */

#define AT90S1200A 0x10
#define AT90S1200B 0x11
#define AT90S1200C 0x12
#define AT90S1200D 0x13
/* 0x14-0x17 for future AT90S1200 devices */

#define AT90S1220A 0x18
/* 0x19-0x1f for future AT90S1220 devices */

#define AT90S2313A 0x20
/* 0x21-0x27 for future AT90S2313 devices */

#define AT90S4414A 0x28
/* 0x29-0x2f for future AT90S4414 devices */

#define AT90S4433A 0x30
/* 0x31-0x37 for future AT90S4433 devices */

#define AT90S2333A 0x34

#define AT90S8515A 0x38

#define ATmega8515 0x3A
#define ATmega8515B 0x3B
/* 0x39-0x3f for future AT90S8515 devices */

#define AT90S01838C 0x40
#define AT90S01838D 0x41
#define ATmega603 0x42

#define ATmega128 0x43
#define ATmega128B 0x44
#define ATmega64 0x45
#define ATmega64B 0x46

#define AT90S2323A 0x48

#define AT90S2343A 0x4C

#define ATtiny11 0x50
#define ATtiny10 0x51
#define ATtiny12 0x55
#define ATtiny15 0x56

#define ATtiny19 0x58
#define ATtiny28 0x5C
#define ATtiny26 0x5E

#define ATmega161 0x60
#define ATmega161B 0x61
#define ATmega163 0x64
#define AT90S8555 0x65
#define ATmega163B 0x66
#define AT90S8555B 0x67

#define AT90S8535 0x68

#define AT90S4434 0x6C

#define AT90C8534 0x70
#define AT90C8544 0x71

#define ATmega32 0x72
#define ATmega32B 0x73

#define ATmega16 0x74
#define ATmega16B 0x75

#define ATmega8 0x76
#define ATmega8B 0x77

#define ATmega169 0x78
#define ATmega169B 0x79

/* 0x50-0x7f for future AVR devices */

#define AT89C1051 0x80
#define AT89C2051 0x81
#define AT89C51 0x82
#define AT89LV51 0x83
#define AT89C52 0x84
#define AT89LV52 0x85
#define AT89S8252 0x86
#define AT89S53 0x87

/* 0x88-0x8f for future AT89 devices */

/* 0xe0-0xff reserved */

Laurence Boyd II

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi Laurence Boyd II,

 

I´m writing a book about AVR programming in Mexico city and l found your device codes for AVR Prog.

 

May I have your permission to mention your devices codes list in my book including your name?

 

Thank you

 

Regards,

Ernesto

 

Ernesto Paredes Martinez

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Ernesto the OP was made 15 years ago and I don't think that Laurence is still around here, his last post is from 2006.

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

In any event, the device codes you refer to do not belong to Laurence, but were relayed to him by Atmel customer support, so I don't expect you need Laurence's permission...

"Experience is what enables you to recognise a mistake the second time you make it."

"Good judgement comes from experience.  Experience comes from bad judgement."

"Wisdom is always wont to arrive late, and to be a little approximate on first possession."

"When you hear hoofbeats, think horses, not unicorns."

"Fast.  Cheap.  Good.  Pick two."

"We see a lot of arses on handlebars around here." - [J Ekdahl]

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

And, if necessary, I can provide my list of device code from the early days (when I was younger and stupider) when I was doing work with the AVR910 code. But it is now pretty much useless anyway.

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly