leo,我想你的回答可能仍不能解决问题,因为在子程序中上升沿指令已发生了变化,请看以下指令描述:If either DIFU(13) or DIFU(14) is placed within a subroutine, the operand bit will not be turned OFF until the next time the subroutine is executed, i.e., the operand bit may stay ON longer than one cycle.是否有更好的方法,请再指点,我记得davy曾说过"很难",谢谢!