Hi,Archangel
Darrel told that because there is no room for vars in RAM once PBP has placed its own vars ...
so, no serious work could be done using PBP ... just Blinking the Led, may be ...
Alain
Hi,Archangel
Darrel told that because there is no room for vars in RAM once PBP has placed its own vars ...
so, no serious work could be done using PBP ... just Blinking the Led, may be ...
Alain
************************************************** ***********************
Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
************************************************** ***********************
IF there is the word "Problem" in your question ...
certainly the answer is " RTFM " or " RTFDataSheet " !!!
*****************************************
Arch,
just trying to keep cost down because I plan on producing high numbers. And program is going to be super simple. 12 lines tops. Anyone know of a way to strip one byte of ram? Any way of finding out if PBP3 uses the "w" or "f" register? maybe I can load and unload input into that.
Alain,
I hope you are wrong. haha!
I took your code from your first post and it compiled to 92 words
changed toit's down to 66 wordsCode:#CONFIG __config _WDT_OFF & _MCLRE_OFF & _CP_OFF #ENDCONFIG DEFINE OSC 4 OPTION_REG=%01000000 TRISIO = %00001000 A VAR GPIO.0 B VAR GPIO.1 C VAR GPIO.2 IN VAR GPIO.3 BEGIN: GPIO = %00000111 pause 1000 GPIO = %00000000 pause 1000 goto BEGIN
if you add "END"
it jumps to 78
To see what your PBP code is doing look at the .lst file, that might help you.
If my poor memory serves me I believe Darrel said PBP Library uses 14 bytes of memory and you have a total of 24 for this chip.
Last edited by Archangel; - 10th March 2015 at 20:28.
If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
.
Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
.
There simply is no "Happy Spam" If you do it you will disappear from this forum.
not that wrong ...
http://www.picbasic.co.uk/forum/show...8753#post18753
yess ... that's short !
seen ?
from here : http://www.picbasic.co.uk/forum/show...1725#post71725In PBP, the 10F202 uses PBPPIC12.RAM, which requests 19 bytes of RAM for PBP system use. The 10F200 only has 16 total bytes of RAM available so it looks like it is a no go with PBP unless you want to do a lot of custom stuff.
************************************************** ***********************
Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
************************************************** ***********************
IF there is the word "Problem" in your question ...
certainly the answer is " RTFM " or " RTFDataSheet " !!!
*****************************************
Have you looked into a 12Fseries instead of using the 10F202?
Quite a bit of functionality added for just a few cents difference.
Something like the 12F1571?
12F1571-I/P (8pin Dip) .64 cents per unit Qty 1-25
1KWord Flash, 128Bytes RAM, (6) I/O Ports, (2/4) 8-Bit/16-Bit Timers, (1) Comparator, (3) 16-Bit PWM, (4) 10-Bit ADC ch
10F202-I/P (8pin Dip) .57 cents per unit Qty 1-25
512W Flash, 24Bytes Ram, (4) I/O Ports, (1) 8-Bit timer
Regards,
TABSoft
Elusiveinc,
This is what I use for a program to operate a third tail light. It uses a 10F222.
asm
__CONFIG _MCLRE_OFF & _CP_OFF & _WDT_OFF & _IOFSCS_4MHZ
movwf OSCCAL ; load factory osccal value at start-up
bcf OSCCAL,0 ; Set GP2 as I/O pin
ENDASM
Dave Purola,
N8NTA
EN82fn
Bookmarks