Firmware is a computer program that establishes the lowest level logic that controls the electronic circuitry of a device of any kind. It is tightly integrated with the electronics of the device, it is the software that has direct interaction with the hardware, thus being in charge of controlling it to correctly execute external instructions. In fact firmware is one of the three main pillars of electronic design. In short, a firmware is a software that physically drives the hardware.