Bonjour Alain,
Sorry, I'm still an amateur and I don't use MPLAB...
Are you meaning I just have to add the amount of words in MCS to the memory starting adress?
It can't be that simple?!
Bonjour Alain,
Sorry, I'm still an amateur and I don't use MPLAB...
Are you meaning I just have to add the amount of words in MCS to the memory starting adress?
It can't be that simple?!
Roger
Hi, Roger
Not so simple ...
say it is a 16F628 with 2k memory ( 2048 words )
2048 minus the "little number" is the first memory adress you can use for placing tables ... ( remember the default DEC radix for PbP !!! )
to be sure ... you can let some "blank lines" ... before the Table. Or begin your table on a "round" adress ... 2FF, or 1200 i.e. ( Remember A good programmer NEVER adds mods to his programs !!! ... LoL ...)
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 " !!!
*****************************************
Bonsoir Roger,
Have a look to those nice Subroutines ...
as you see they are placed at the end of the Basic File ...
PbP will AUTOMATICALLY place them in the free memory space ... with some blanks lines before !!!Code:END ' This is the Program END '***************************************************************************** '***************************************************************************** 'Tables de linéarisation '***************************************************************************** '***************************************************************************** '***************************************************************************** Linearisation2:'Linearisation complète Courbe A(15A)> Linéaire B(1B) '***************************************************************************** LOOKUP Lecture, [ 0, 0, 0, 0, 0, 0, 4, 16, 16, 16, 18, 21, 25, 25, 26, 26, 26, 27, 27, 27, 28, 28, 28, 29, 29, 30, 30, 30, 31, 31, 31, 32, 32, 32, 33, 33, 33, 34, 34, 34, 35, 35, 35, 36, 36, 37, 37, 37, 38, 38,_ 38, 39, 39, 39, 40, 40, 40, 41, 41, 41, 42, 42, 42, 43, 43, 43, 44, 44, 45, 45, 45, 46, 46, 46, 47, 47, 47, 48, 48, 48, 49, 49, 49, 50, 50, 50, 51, 51, 52, 52, 52, 53, 53, 53, 54, 54, 54, 55, 55, 55,_ 56, 56, 56, 57, 57, 57, 58, 58, 59, 59, 59, 60, 60, 60, 61, 61, 61, 62, 62, 62, 63, 63, 63, 64, 64, 64, 65, 65, 65, 66, 66, 67, 67, 67, 68, 68, 68, 69, 69, 69, 70, 70, 70, 71, 71, 71, 72, 72, 72, 73,_ 73, 74, 74, 74, 75, 75, 75, 76, 76, 76, 77, 77, 78, 78, 79, 80, 80, 81, 82, 83, 83, 84, 85, 85, 86, 87, 87, 88, 89, 89, 90, 91, 92, 92, 93, 94, 94, 95, 96, 96, 97, 98, 99, 99,100,101,101,102,104,106,_ 108,110,112,114,116,118,120,122,124,126, 128,130,132,134,136,138,140,142,144,146, 148,150,152,155,157,159,161,163,165,167, 169,171,173,175,177,179,181,183,185,187, 189,191,193,195,197,199,201,205,208,214,_ 220,230,240,250,255,255], Result RETURN END '***************************************************************************** Linearisation1:'Linéarisation exp simple à 26 points '***************************************************************************** LOOKUP Lecture, [ 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 7, 8, 9, 10, 11, 12, 12], Result RETURN END '***************************************************************************** '****************************************************
just use a "Gosub Linearisation2 " in your program and PbP will do all the Work !!!
Yes ..., you can cry ...
Alain
Last edited by Acetronics2; - 6th July 2008 at 16:48.
************************************************** ***********************
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 " !!!
*****************************************
As often, I don't see simple things at the first glance.
I should have thought about the PicKit2 prog and its Program Memory viewer...
<img src="http://www.picbasic.co.uk/forum/attachment.php?attachmentid=2729&stc=1&d=121536137 1">
Thank you, Microchip.
Roger
Something else to keep in the back of your head...
If/When you switch over to 18F series PICs and start using MPASM, if you set MCS up to generate a .LST file, in the last few lines of the .LST file, it'll tell you exactly how many bytes/words of program space you've used.
Bookmarks