I shouldn't but for the sake of the very strange case I will. On both the chips the code is the same except for the port access. Everything else is identical.
12F675:
#config
__CONFIG...
Intersting, still ~25% larger compared to 12F675.
The 12F1840 has a larger instructionset than the old 675 so one would think there would be "better" ways to do things on the 1840 (though PBP most...
Forgot to change GPIO to LATA and PORT registers.
Now it counts down to 679 words. But still away from 547 words.
Ioannis
I had a test program developed on 12F675 until my samples of 12F1840 arrive.
Now I transferred the exact same code to the 1840 chip and the size of compiled code went from 547 words to 785 words....
which is what I did. its a way to break up the flash data space
enabling reading, writing and erasing of data in a pic sized way
yet deal with large data structures normally beyond a pic's...
Hi Richard,
I take your point however in my logging application I don't need a file system.
Presently data is being streamed via 4G and the planned logger will be there only to safeguard...
don't lose sight of the fact that my code is for a 5 x 7 bit matrix , you have a 4 x 14 bit alpha led's
richard - 12th April 2021, 11:15i can't see any way to make a flash FS that's any less complex or resource hungry than a fat16 or fat32 sd card system , hardly worth the effort
for such a tiny storage space. my system was for...
Hi Richard,
Thanks for your input.
I took a look at your TFT addin and it is heavy going for me to understand what's happening as most is in assembly. I'll try the code when my parts arrive...
Re: 12F675 vs 12F1840
Most strange is the 32 vs 4 MHz clock. Lower clock needs more code space!!! I expected the oposite.
Ioannis Yesterday, 21:07Ioannis