Hi, for the P24FJ64GB002 three different values are shown for the program memory size in mikroProg suite v2.80:
a- 21K as "Program Memory Size" at the bottom of the config window
b- 64KB as "Flash Memory" in the MCU info window
c- 43K in the "Code Memory dump" window.
I can understand a (number of program Kilo instructions is b/3) and b (number of program Kilobytes) but I can not understand value c.
Rather confusing this last value.
It seems more like an adress range than as a memory size (the pic uses 2 addresses per instruction).
Program Memory size value?
Program Memory size value?
Kind regards, Dany.
Forget your perfect offering. There is a crack in everything, that's how the light gets in... (L. Cohen)
Remember when we were young? We shone like the sun. (David Gilmour)
Forget your perfect offering. There is a crack in everything, that's how the light gets in... (L. Cohen)
Remember when we were young? We shone like the sun. (David Gilmour)
Re: Program Memory size value?
a and b show units of "K Instr" and "KB", which to me seem clear.
As for c...
Datasheet 4.1.1 states...
"it is more appropriate to think of each
address of the program memory as a lower and upper
word, with the upper byte of the upper word being
unimplemented."
So you might argue that showing the number of words in the code windows fits the above statement. Sadly no units are indicated..
Even the datasheet shows confusion. Table 4-1 indicates program memory in words, but then shows the number of instructions
The "ghost" byte has causes confusion ever since PIC24 was first developed.
The only possible "bug" I can see is (arguably) the lack of units in the code window. Units of "43K words" or "43K Addresses" would be clearer.
Whether some other measure might be preferable is another discussion.
As for c...
Datasheet 4.1.1 states...
"it is more appropriate to think of each
address of the program memory as a lower and upper
word, with the upper byte of the upper word being
unimplemented."
So you might argue that showing the number of words in the code windows fits the above statement. Sadly no units are indicated..
Even the datasheet shows confusion. Table 4-1 indicates program memory in words, but then shows the number of instructions
The "ghost" byte has causes confusion ever since PIC24 was first developed.
The only possible "bug" I can see is (arguably) the lack of units in the code window. Units of "43K words" or "43K Addresses" would be clearer.
Whether some other measure might be preferable is another discussion.
Start every day with a smile...... (get it over with)
Re: Program Memory size value?
Indeed.
Kind regards, Dany.
Forget your perfect offering. There is a crack in everything, that's how the light gets in... (L. Cohen)
Remember when we were young? We shone like the sun. (David Gilmour)
Forget your perfect offering. There is a crack in everything, that's how the light gets in... (L. Cohen)
Remember when we were young? We shone like the sun. (David Gilmour)
- filip.grujcic
- Posts: 822
- Joined: 14 May 2018 08:34
Re: Program Memory size value?
Hello,
Thank you for your suggestions, I have passed it onto our developer team for consideration.
Kind regards,
Thank you for your suggestions, I have passed it onto our developer team for consideration.
Kind regards,
Filip Grujcic
Re: Program Memory size value?
I would like to suggest to use the unit "Addresses" (each "address" points to 1.5 bytes actually).
Kind regards, Dany.
Forget your perfect offering. There is a crack in everything, that's how the light gets in... (L. Cohen)
Remember when we were young? We shone like the sun. (David Gilmour)
Forget your perfect offering. There is a crack in everything, that's how the light gets in... (L. Cohen)
Remember when we were young? We shone like the sun. (David Gilmour)