![]() |
![]() |
![]() |
|
|
|||||||
| Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc. |
|
|
Thread Tools | Display Modes |
|
|
(permalink) |
|
im writing a program using picaxe but ive got a problem, its too long!
i was wondering if there is a way to convert the program into assembler or if the 18x or 18a chips hold more memory than a normall 18? its about 363 lines (i have mabey 10 more to add). thanks alot. |
|
|
|
|
|
|
(permalink) | |
|
Quote:
Either shrink your program to make it fit, write it using a BASIC compiler and a normal PIC, or write it in assembler for a normal PIC. |
||
|
|
|
|
|
(permalink) |
|
just to add to what nigel said, you should realize that a normal PIC can hold typically 2000 lines of code at the very least, and 4K or 8K is not at all uncommon, and some of the fancier ones are far bigger...
The PICaxe is an interesting toy, but it's extremely limited and you're going to have to transition over to the real thing eventually if you want to do anything very advanced. even a BASIC compiler will allow you many times more code on the exact same PIC chip, compared to running the interpreted BASIC that the PICaxe uses.
__________________
EEgeek.net |
|
|
|
|
|
|
(permalink) |
|
alright a basic compiler sounds good, where can i get one that works with the picaxe basic? coz my freind says its different somehow? im not sure... but could u guys point me in the right direction plz. also i know you can convert basic into assembler but u need a special picaxe programmer, so i cant do that, will i need any special hardware to compile the basic?
*edit hmm i just re-read what u said and am i correct in thinking i will have to re-write everything again to suit a normall pic? |
|
|
|
|
|
|
(permalink) |
|
the PICaxe is nothing but a regular PIC that has been pre-programmed with their special firmware. If you want to use it as a normal PIC, you just need a normal programmer, which can be built or purchased cheaply.
There are a handful of BASIC compilers for the PIC, I can't suggest any particular one because I don't program in BASIC, I use C instead. If you choose to go the assembly route, then you can use MPLAB, which is made by the manufacturer, a complete development environment. No matter what, you'll need to re-write stuff... but if you take the time to learn to do it in assembly, it will benefit you a lot more than using the PICaxe software, because assembly can be used on ALL the PICs available.
__________________
EEgeek.net |
|
|
|
|
|
|
(permalink) |
|
Get the 18x
It will allow around 600 basic lines of code. Nice little toy :lol: . |
|
|
|
|
|
|
(permalink) |
|
ok yeh thats alright i only need about 350-400 lines so i will get that thanks, to be hounest i spent ages making it and i really didnt want to re-write it all. i will try to leanr how to code in basic but that will take a long time. for the minute i will stick with picaxe. btw has anyone heasrd of piclogicator? ive read that it doesnt use special firmware but instead it works by converting a flowsheet into assembler.
|
|
|
|
|
|
|
(permalink) | |
|
Quote:
|
||
|
|
|
|
|
(permalink) |
|
yeh well thats where i am now
|
|
|
|
|
|
|
(permalink) | |
|
Quote:
|
||
|
|
|
|
|
(permalink) |
|
Im new to PIC programming and im starting with the PICAXE, ive seen that table above before, but i dont know what the "+i2C" thing is about, anyone care to enlighten me?
__________________
"The glass is neither half-empty, nor half full, it's just twice as big as it needs to be" - Unknown |
|
|
|
|
|
|
(permalink) | |
|
Quote:
|
||
|
|
|
|
|
(permalink) |
|
i2c tutorial:
|
|
|
|
|
|
|
(permalink) |
|
how would you do something like that?
As i said before, im new to the PICAXE and PIC's in general, i first used one 3 days ago at a school holiday program for year 11 and 12 students, we made an electronic dice using PICAXE. I made a PICAXE programmer the next day (at home) and im now going to start experimenting with the PICAXE system. Ive already run into memory issues since im running Picaxe 08 system but that may be due to my codeing technique (or lack thereof) |
|
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|