 To improve the immunity towards electromagnetic fields, extra hardware devices are often used.Hardware protection requires additional circuitry which adds cost, weight and size to a device.Many hardware techniques focus only on the prevention or detection of failures and have no means of recovering from these errors once they occur.