This paper discusses an improved in-situ immunity measurement test bench of a microcontroller-PIC18F458 to conducted continuous wave interference (CWI). The updated measurement algorithm gives more accurate measurement result. Compared with normal failure criterion, the DC shift failure criterion is adopted because it gives better description of the immunity behavior of the microcontroller. Finally, the susceptibility results are explained in detail.