Menu

Support for AT89C2051

Help
Waqar
2011-05-20
2013-05-30
  • Waqar

    Waqar - 2011-05-20

    Hi guys,

                    I wonder if GCB supports AT89C2051, I am unable to find it in hardware settings list.

     
  • gcha44

    gcha44 - 2011-05-20

    Hi,
    In hardware settings list you can fing 89S51 but not 89S2051 . Their architecture is the same .
    Perhaps can you try to create your own   *.dat  file with 89S2051 datasheet and with opening 89S51.dat for instance ?
    GC

     
  • Hugh Considine

    Hugh Considine - 2011-05-21

    Sorry, GCBASIC doesn't support any of the Atmel 89* chips. These chips use an Intel 8051 based architecture, which is quite different to the AVR architecture in the 90*, tiny and mega chips.

    The 89s51 and 89s52 are also not supported. I'm not quite sure how chip data files for those ended up in GCBASIC, I'll remove them so as not to give the wrong impression in the future. I hope this hasn't caused too much confusion!

     
  • gcha44

    gcha44 - 2011-05-21

    Thanks Hugh  for this precision . I often use Atmel's µC but I've never tried  89' chips . GCBasic works well with Atmega and  AT90S..  So I remove 89's chip from data's file . Thanks
    GC

     
  • Waqar

    Waqar - 2011-05-21

    Hi GC & Hugh,
    Thanks for your reply GC your .dat file modification is a good idea, I am not sure but once I understand its basic structure I will surely try it at least to see what happens, btw the original 89s51 file is not working with 89C2051.
    Thanks for your reply Hugh, I know its painstaking job to work on such a project, but can we get 89C2051supported in GCB future updates?

     
  • Hugh Considine

    Hugh Considine - 2011-05-22

    It would be quite difficult to support any of the 89* chips, as they have a very different internal architecture - they're not actually AVRs. It's not something that I'm planning for GCBASIC, but if someone else out there knows the 8051 instruction set and has a couple of weeks to spare, there's no reason that 8051 support couldn't be added.

    The best option would be to find a compiler that does support the 89 chips, or to use a different chip that GCBASIC can support. The ATtiny2313 appears to have the same pinout as the 89C2051, so it should be a simple drop-in replacement. I've bought a few myself from SparkFun Electronics for around US$3 each and they work fine with GCBASIC.

     
  • gcha44

    gcha44 - 2011-05-22

    For 89's chips , you can try to use BASCOM-8051 by  "MCS electronics " . Their software is made especially for 8051 family and you can download a demo version (until 4KB of code ! ) .In your case it's perfect  .But it's more complex to use than GCBASIC .
    I think like Hugh . Atiny2313 is very commun chip . You'll find many examples of projects .With AT90S2051 they are very few examples .
    GC

     
  • Waqar

    Waqar - 2011-05-22

    Your are right Hugh the architecture is different comparing to AVRs,  I wish someone will contribute to make GCB compatible with  89C2051 in future, for now I think I should better use BASCOM as GC suggesting, GC I agree that BASCOM is more complex than GCB since I was also considering BASCOM to program 89C2051. Thanks for your help guys

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.