IR calibration according to AN790