ATtiny25 definition

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

Hello all,
I can't find the assembler definition file
for ATtiny25 neither on Atmel's web
or in AVR Studio 4 and 5 Assembler directory

Do i have to make it myself, or is there any
file available? (or maybe if i define it with
some other similar device)

Regards
Nikos

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

You simply didn't look in the correct place. :) Try C:\Program Files\Atmel\AVR Tools\AvrAssembler2\Appnotes for AS4

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

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

Quote:

4 and 5

5? You are not serious? No one should be using 5 at this stage. Move to AS6 SP2 as soon as you can.

In AS6 the def.inc files are in:

C:\Program Files\Atmel\Atmel Studio 6.0\extensions\Atmel\AVRAssembler\2.1.51.64\avrassembler\include\*def.inc

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

clawson wrote:
Quote:

4 and 5

5? You are not serious? No one should be using 5 at this stage. Move to AS6 SP2 as soon as you can.

In AS6 the def.inc files are in:

C:\Program Files\Atmel\Atmel Studio 6.0\extensions\Atmel\AVRAssembler\2.1.51.64\avrassembler\include\*def.inc

Thanks for the reply.
Actually 5 was my type-mistake. I have downloaded but i haven't installed it yet...
I was referring to 3 and 4 !!!
I still compile my asm files with the dos-version
of the assembler and download them to STK200 board.
I never moved to newer boards (and software) because
i never needed, as all of my projects can be done
with the stuff i currently have (and the MCUs that the STK200 (and bascom) can support)
I might install Studio 6 soon and start writing there... (and of course compiled them again with
the dos-version!)

Regards
Nikos

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

Quote:
I was referring to 3 and 4 !!!
From memory the .inc files have been in the same location even in AS3.x

There is really no point in using the old assembler as assembler2 from AS4 is better, the old assembler didn't even allow for conditional assembly and for a while I had to use AVRA with AS3 and maybe even the early versions of AS4.

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

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

js wrote:
Quote:
I was referring to 3 and 4 !!!
From memory the .inc files have been in the same location even in AS3.x

There is really no point in using the old assembler as assembler2 from AS4 is better, the old assembler didn't even allow for conditional assembly and for a while I had to use AVRA with AS3 and maybe even the early versions of AS4.


To my installation, on Studio3 there is a folder \Appnotes wihout the tiny25 ( 11,12,15,22,26,28 )
and for Studio4 on \Assembler\Appnotes about the same and for \Assembler2\Appnotes no file there - only for tiny45 (and on that directory these files are optimized for c programming).
Of course i could create my own based on the datasheet, but i'm too lazy to do that...
I even searched Atmel's web with no result. I think it's packed on the 5 and 6 Studios...
Haven't installed 6 yet, but i downloaded today...

Regards
Nikos

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

Quote:
on Studio3 there is a folder \Appnotes wihout the tiny25
Maybe the chip did not exist when AS3 was around? And how old is your AS4 installation?

In AS4.18 I have tn25def.inc, I'll post it here if you can't find it.

Quote:
and on that directory these files are optimized for c programming
Say what? :-) They WILL NOT work with something like winAvr, they are assembler files.
What makes you think that "these files are optimized for c programming"?

Edit and yes I can confirm that the file does NOT exist in the old assembler app notes folder (too old) but is there under Assembler2.

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

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

js wrote:
Quote:
on Studio3 there is a folder \Appnotes wihout the tiny25
Maybe the chip did not exist when AS3 was around? And how old is your AS4 installation?

In AS4.18 I have tn25def.inc, I'll post it here if you can't find it.

Quote:
and on that directory these files are optimized for c programming
Say what? :-) They WILL NOT work with something like winAvr, they are assembler files.
What makes you think that "these files are optimized for c programming"?

Edit and yes I can confirm that the file does NOT exist in the old assembler app notes folder (too old) but is there under Assembler2.

'optimized' is nothing more than the extra commands for the c compiler (#pragma etc). Of course when removed they can be used with the assembler. Just in my folder there is no file for tiny25 even on \assembler2. Anyway as soon as i install the 6 version, these problems will be no longer problems..

Regards

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

Quote:
Just in my folder there is no file for tiny25 even on \assembler2.
But you haven't old us how OLD is your version of Studio. :wink:

Maybe even if I posted the .inc file Studio may not be able to support it if it is a very old version.

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

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

js wrote:
Quote:
Just in my folder there is no file for tiny25 even on \assembler2.
But you haven't old us how OLD is your version of Studio. :wink:

Maybe even if I posted the .inc file Studio may not be able to support it if it is a very old version.

AVR Studio 3.51
AVR Studio 4.19
but never mind anymore, i installed the 6th version
and found the files that i wanted.

Thanks all for the info.