 Immunity-aware programming is an example of defensive programming and EMC-aware programming.Although most of these techniques apply to the software in the "victim" device to make it more reliable, a few of these techniques apply to software in the "source" device to make it emit less unwanted noise.Microcontrollers' firmware can inexpensively improve the electromagnetic compatibility of an embedded system.