I searching for code 16c84 witch outputs PWM and works on a rtc irq so the mainprogram can receive the pulse length.