Currently using PIC18F4525 with 48K flash, and 24576 single word instruction locations. 3968 Sram and 1024 Eeprom.
When using Constants, I would like to understand where they reside - Which memory types are used
When using variables, where are they stored?
Secondly - Do you have an example for reading and writing a USB thumb drive without using eblocks?
Thanks.
Memory Usage
Moderator: Benj
-
- Valued Contributor
- Posts: 2045
- Joined: Wed Aug 27, 2008 10:31 pm
- Location: Netherlands
- Has thanked: 553 times
- Been thanked: 1081 times
- Contact:
Re: Memory Usage
Variables are stored in RAM. Constants are generally stored in flash with the code, unused constants are not stored anyware. The easiest way to find the information yourself would be to create a simple program, compile and note the sizes reported, add a variable, compile again and compare the new values to the earlier ones.alanwms wrote:Currently using PIC18F4525 with 48K flash, and 24576 single word instruction locations. 3968 Sram and 1024 Eeprom.
When using Constants, I would like to understand where they reside - Which memory types are used
When using variables, where are they stored?
This device can not read an USB drive without additional hardware. None of the 8 bit PIC devices can be an USB host and USB host is required to connect to a USB drive. A possible solution would be to use a Vinculum 1 USB Host Controller.alanwms wrote: Secondly - Do you have an example for reading and writing a USB thumb drive without using eblocks?
“Integrity is doing the right thing, even when no one is watching.”
― C.S. Lewis
― C.S. Lewis