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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi guys,
I wonder if GCB supports AT89C2051, I am unable to find it in hardware settings list.
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
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!
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
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?
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.
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
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