naximmo.blogg.se

Msp430 example programs of array
Msp430 example programs of array








msp430 example programs of array

This way it would require 16 bytes RAM and no Flash, but some flash for the code filling it with the proper addresses.

msp430 example programs of array msp430 example programs of array

This array will use 16 bytes of Flash and 0 bytes of RAM.Īnd fill it inside your main() with the required data. The values at the given addresses are accessible with *A. (I omitted A to match your old numbering, as arrays always start with index 0). (unsigned int *)(ADRESSE_BASE + (CH_NB-7)*2) There is no way to generate a loop that is executed at compile-time.įor _really_ complex tasks, you could set up an external python script that generates a source file with the values you need. It reduces code size and you can declare it as static, so it can reside in FLASH and does not need RAM. If your array is static, it should be built at compile-time. It's not really clear what you want to do.ĭo you need just a (static) table of addresses or an array of changing pointers?Īre the values known at compile-time or not?










Msp430 example programs of array