How can I establish what RAM I need...and therefore which PIC.
I'm generally bemused wrt establishing what 'spec' PIC I need for my PICBAsic program. I guess this is becuase I've not really had to worry about it - I write a simple program, I then flash the PIC - it works.
I'm using a 16f690, for no other reason than it came bundled with my Pickit2 programmer ('lethargy rules ok')....I'm now in a position where I'd like to knock up a few 'widgets', which will need a PIC....I see there are other lesser PICs that have the same functionality as the 16f690, but with less RAM. (PIC16F631/677/685/687/689)
How can I establish what spec PIC I need (from a RAM perspective), for my modest program? (becuase saving some dosh on buying the PIC I can 'just' get away with is always welcome).
Is there some way of establishing that the codespace/RAM for a given picbasic program/pic is say xx% utilized etc?
Re: How can I establish what RAM I need...and therefore which PIC.
Now I'm sure this is going to be embarrasingly obvious/simple, *but*
I'm using a 16F1824, the spec says the following...
"Up to 8 Kbytes Linear Program Memory"
however, when I compile my program & goes above 4096 (as shown in microcode studio) I get an error "ARGUMENT OUT OF RANGE" ....if I strip some code out, to take it below 4096...then all is well again.
So where has the extra 4k of programming space gone?!! ie how can I can take advantage of it?!
Re: How can I establish what RAM I need...and therefore which PIC.
Microcode Studio shows that number, the 4096, in words (2 bytes) for the 16F series. However, for the 18F series Microcode Studio shows that number in bytes. Don't ask me why..... :eek:
Robert