This paper shows how to achieve a flexible embedded system. The system shown comprises two soft-core processors for the signal processing provided from a sensor array. Electronic structure is programmed on a programmable logic array. The two microcontrollers are programmed in C ++. Such a structure has a high flexibility because the designer can adjust the physical structure of the program as necessary. It can also achieve a balance between the two components of the embedded system. In this way one can achieve an optimal performance of the system.