We need to change a controller code from the out side as they do with industrial MCU . So that you have an mcu,with a program on it, and someone can program some "words" to it, that will determine how it works. So for example you can program an mcu -not with a programer but with some inputs from serial, to do some simple things such as:
if input A==1
b=1
I wonder if there is a smart way to do that with simple software on the mcu, that it has many #defines
for various commands, and it perform them according to values it gets from the outside (and saved for the rest of the program).
I wonder if the industrial programers are using that method, or that every programing of a user is actually load a code(.hex
) to the chip(with internal programer ) .
I prefer the simplest way(i wonder if its by pre defined software)