Electronic – Need help in choosing Flash size in a microcontroller

flashmspram

I need to decide upon selecting Flash size and RAM for a project. The micro controller I prefer to use is TI MSP430 series. Because of its low power consumption and value line series cost. However I'm a complete newbie to deciding on requirements gathering. Most of my programming experience is on Desktop based systems where generally program size, RAM and processor speed isn't much of a concern for common algorithmic tasks.

I have the following questions:

  1. Are there any guidelines or standard practices regarding deciding the RAM and Flash size for a micro controller?
  2. How many lines of code (C) translate to what amount of Flash size on the MCU?
  3. Is assembly language the only way out if the Flash size needs to kept at a minimum?

Regarding General selection of a Micro controller for a project, how do the professionals in this field go about on deciding the most appropriate micro controller for the task? What resources to they search? What guidelines to they follow?

Best Answer

The answers for all of your questions will depend of what you wanna do.

As you said, you are a newbie, so I suggest you use the biggest microcontroller and just try to do the project. After this you can visualize how much code you use and then scale it according to what was used.