AT90S2313 Replacement

Thread Starter

lubnaan90

Joined Jan 13, 2010
198
Greetings,

Can one use ATtiny2313-20PU , as a possible replacement for AT90S2313 ?

Tried my Best , but cant find
AT90S2313 anywhere , it seems its extinct or something.
 

hgmjr

Joined Jan 28, 2005
9,027
I agree with sgtwookie's recommendation. Use the Attiny2313 as the replacement for the outdated AT90S2313.

hgmjr
 

Thread Starter

lubnaan90

Joined Jan 13, 2010
198
The schematic is an Old Design of Scrolling led text display, that's where i want to use the IC .
I don't want to use the IC for new design .
Since its ok with Sgt Wooki , i'll go ahed with the ATiny replacement .

Thank you .
 

Attachments

Thread Starter

lubnaan90

Joined Jan 13, 2010
198
Yes you can use Attiny2313 as a replacement of a AT90s2313.
But you must set-up the fuse bytes properly, because ATtiny work originally with internal RC oscillator.
http://www.atmel.com/dyn/resources/prod_documents/doc4298.pdf
How to set up the fuse bytes Properly ?
I am simply planing to replace AT90s2313 with Attiny2313 (will program it first as the AT90s2313) , i have attached the Schematic , plz consider it & let me know do i need to take any other precautions ?
 

Attachments

SgtWookie

Joined Jul 17, 2007
22,230
I was merely quoting what was on Atmel's site.

They specified the ATtiny2313A. I do not know what the difference is between the ATtiny2313A and the ATtiny2313 might be. You will need to examine the datasheets to find out.

I have never used an Atmel uC before.
 

Jony130

Joined Feb 17, 2009
5,487
I don't know with software you use.
I only use BASCOM AVR but all software for AVR must have fuse selection.
And you, only need to disable "divided internal clock by 8" (CKDIV8) and enable external oscillator (CKSEL3, CKSEL2, CKSEL1, CKSEL0 to 1100).
And in BASCOM you need to add at the beginning of the program such command
$regfile = "attiny2313.dat"
$crystal = 10000000
 

Attachments

Last edited:

Thread Starter

lubnaan90

Joined Jan 13, 2010
198
As a matter of fact , its my first time using AVR .
By the way i will be building a new programmer for Atiny2313 (check the image)& it will be using CodeVision AVR Software .
 

Attachments

Thread Starter

lubnaan90

Joined Jan 13, 2010
198
I don't know with software you use.
I only use BASCOM AVR but all software for AVR must have fuse selection.
And you, only need to disable "divided internal clock by 8" (CKDIV8) and enable external oscillator (CKSEL3, CKSEL2, CKSEL1, CKSEL0 to 1100).
And in BASCOM you need to add at the beginning of the program such command
Hello ,

As a matter of fact , its my first time using AVR .
By the way i will be building a new programmer for Atiny2313 (check the image)& it will be using CodeVision AVR Software .
 

Attachments

Thread Starter

lubnaan90

Joined Jan 13, 2010
198
By using table 4 from this pdf
http://www.atmel.com/dyn/resources/prod_documents/doc4298.pdf
You will set appropriate fuse bite in Code Vision AVR
If a Fuse Bit check box is checked, then the corresponding fuse bit will be set to 0.
If a Fuse Bits check box is not checked, then the corresponding fuse bit will be set to 1.
Hello , Thank you for your Quote & noted your points ,
Also can you plz tell me what do i do with the below mentioned files i have & when do i use them during the programming ?

1) LedDisp.c
2) LedDisp.hex
3) makefile
4) LEDDISP.DSN
5) LEDDISP.MAX

These files were in the package where i found the Led scrolling project from.
 
Last edited:

Thread Starter

lubnaan90

Joined Jan 13, 2010
198
Yes, but you can open LedDisp.c to in codevision AVR and compile the file and then program chip.
Thank you for your reply ,
Noted ur point ,
So basically what you mean to say is , Since i have LEDDISP.C , i dont have to stress my self & spend lots of time , every thing is Included in the .C file , including the HEX file .
All i will do is, open the leddisp.c file in Codevision & set the fuses correctly & program the chip .
 

astina76

Joined Jun 4, 2009
1
I just build that project (Scrolling text / LedDisp).. and it's work on both chip..
first I used AT90s2313, then replace with ATtiny2313. no need modification on source code, just write the LedDisp.hex file into ATtiny2313. I use ponyprogram2000 and STK200 for the downloader.. and didn't touch the configuration / fusebit area..

br
 
Top