AT90S2313 Replacement

Discussion in 'General Electronics Chat' started by lubnaan90, Feb 8, 2010.

  1. lubnaan90

    Thread Starter Active Member

    Jan 13, 2010
    196
    2
    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.
     
  2. SgtWookie

    Expert

    Jul 17, 2007
    22,182
    1,728
  3. hgmjr

    Moderator

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

    hgmjr
     
  4. Jony130

    AAC Fanatic!

    Feb 17, 2009
    3,957
    1,097
  5. lubnaan90

    Thread Starter Active Member

    Jan 13, 2010
    196
    2
    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 .
     
  6. lubnaan90

    Thread Starter Active Member

    Jan 13, 2010
    196
    2
    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 ?
     
  7. SgtWookie

    Expert

    Jul 17, 2007
    22,182
    1,728
    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.
     
  8. Jony130

    AAC Fanatic!

    Feb 17, 2009
    3,957
    1,097
    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
     
    Last edited: Feb 8, 2010
  9. hgmjr

    Moderator

    Jan 28, 2005
    9,030
    214
    What software development tools have you been using to code your AT90S2313?

    hgmjr
     
  10. lubnaan90

    Thread Starter Active Member

    Jan 13, 2010
    196
    2
    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 .
     
  11. lubnaan90

    Thread Starter Active Member

    Jan 13, 2010
    196
    2
    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 .
     
  12. Jony130

    AAC Fanatic!

    Feb 17, 2009
    3,957
    1,097
    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.
     
    • 1.PNG
      1.PNG
      File size:
      59.4 KB
      Views:
      35
  13. lubnaan90

    Thread Starter Active Member

    Jan 13, 2010
    196
    2
    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: Feb 9, 2010
  14. Jony130

    AAC Fanatic!

    Feb 17, 2009
    3,957
    1,097
    The LedDisp.hex is a file ready to upload to flash memory.
    LedDisp.c is a main program that you can compile.
     
  15. lubnaan90

    Thread Starter Active Member

    Jan 13, 2010
    196
    2
    so, i sould be able to open the LedDisp.hex in codevision AVR & simply write the same in the chip , am i correct ?
     
  16. Jony130

    AAC Fanatic!

    Feb 17, 2009
    3,957
    1,097
    Yes, but you can open LedDisp.c to in codevision AVR and compile the file and then program chip.
     
  17. lubnaan90

    Thread Starter Active Member

    Jan 13, 2010
    196
    2
    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 .
     
  18. Jony130

    AAC Fanatic!

    Feb 17, 2009
    3,957
    1,097
    This is what you should do.
     
  19. lubnaan90

    Thread Starter Active Member

    Jan 13, 2010
    196
    2
    Ok, Will go ahead & will keep you posted about the progress.
    Thank you once again .
     
  20. astina76

    New Member

    Jun 4, 2009
    1
    0
    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
     
Loading...