Electrical Engineering Stack Exchange is a question and answer site for electronics and electrical engineering professionals, students, and enthusiasts. It only takes a minute to sign up. Connect and share knowledge within a single location that is structured and easy to search. After making some variables and expanding my program, I noticed the "Data 25" part to increase. I unfortunately do need this extra memory to finish my program.
Assuming my two statements were true, I headed to the microchip website to look for a chip with more Data RAM available.
Here's where I looked. I'm new with electronics and have been messing around with a pic12f so far. Hope someone can clarify this for me since I don't understand this concept. So program memory also known as.
Data memory also known as. Ones that are not initialized to some value fall into the. When the microcontroller is off, ram is off, it doesnt work it cannot store values.
You can see we have an issue, we need to remember that the variable xyz needs to start with the value 5, but ram is volatile.
So we need to have in non volatile memory both the program itself and any other items that we need to know. So all of. Second it needs to copy any. Third and not necessarily in this order, there will be address and size information for. So data memory is the ram, I assume from your output that it is telling you how many bytes of variables the compiler has detected your program needs. The program memory is the program itself the machine code.
Flash which you didnt ask about will hold the program memory and information about the data memory so your program can work. Say your device is an mp3 player and the music is also in the flash perhaps in the form of a file system with files. Best Answers. Media New media New comments Search media. Blogs New entries New comments Blog list Search blogs.
Groups Search groups. Log in Register. Search only containers. Search titles only. Search Advanced search…. New posts. Search forums. Log in. Install the app. Contact us. Haven't received registration validation E-mail? User Control Panel Log out. Forums Posts Latest Posts. View More. Recent Blog Posts. Unread PMs. Forum Themes Elegant Mobile. Essentials Only Full Version. Super Member. Do these work in similar ways? Is SRAM non-volatile? Hi Ian, No, and its not non-volatile on its own but can be used to make a non-volatile module if you provide battery backup and logic to disable writes if main system power is lost.
Regards Ian. Hey there Ian.
0コメント