Hi, I have been playing with GCB with PICs for the past couple of days and it is great. Now I am wanting to use it with my AVRs, where is the list of chips so that I can include the right chip name in my firmware. Since I am posting, does anybody know how I can change the output hex to the place I choose rather yhan the install folder.
Thanks!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Ok, thanks. Another three questions, how to calculate how to calculate how long one command takes, does goto take twice that time? Last question, has anybody had trouble opening the commands file, mine sits here forever doing nothing and it never opens.
Thanks!
Spencer
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The time one command takes deppend on the command ( and the clock speed); most of the atmega and similar takes 1 clock cycle, but some takes more than that; PIC ussually takes 4 clock cycles and some ( goto for example ) takes 8 clock cycles. I'm talking about asm commands.
You can have a look to the Instruction Set Summary (in most datasheets) and see how many clock cycles takes every command.
AVR asm has several commands to do a jump, and ussually takes from 2 to 4 clock cycles; then, to know exactly about this you should have a look to the asm file and see how GcBasic convert basic to asm.
Sorry, not sure about what you mean with "commands file"; and from wich application do you want to open it.
If you are in Windows and want to open an .asm file as text, perhaps you can try renaming to .txt., but not sure about this.
Greetings
Arcachofo.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi, I have been playing with GCB with PICs for the past couple of days and it is great. Now I am wanting to use it with my AVRs, where is the list of chips so that I can include the right chip name in my firmware. Since I am posting, does anybody know how I can change the output hex to the place I choose rather yhan the install folder.
Thanks!
Hi kj6art.
To know chipnames i had a look to chipdata folder; for example for atmega128 i use: m128
to change the output hex place, have a look to gcbasic.ini file.
Greetings.
Arcachofo.
Ok, thanks. Another three questions, how to calculate how to calculate how long one command takes, does goto take twice that time? Last question, has anybody had trouble opening the commands file, mine sits here forever doing nothing and it never opens.
Thanks!
Spencer
The time one command takes deppend on the command ( and the clock speed); most of the atmega and similar takes 1 clock cycle, but some takes more than that; PIC ussually takes 4 clock cycles and some ( goto for example ) takes 8 clock cycles. I'm talking about asm commands.
You can have a look to the Instruction Set Summary (in most datasheets) and see how many clock cycles takes every command.
AVR asm has several commands to do a jump, and ussually takes from 2 to 4 clock cycles; then, to know exactly about this you should have a look to the asm file and see how GcBasic convert basic to asm.
Sorry, not sure about what you mean with "commands file"; and from wich application do you want to open it.
If you are in Windows and want to open an .asm file as text, perhaps you can try renaming to .txt., but not sure about this.
Greetings
Arcachofo.
Ran into same problem with the commands in help.chm see https://sourceforge.net/projects/gcbasic/forums/forum/596084/topic/3320177