From 678a6582f6568b9f2696130d7fcddc6630963940 Mon Sep 17 00:00:00 2001 From: Holger Vogt Date: Sat, 15 Apr 2023 10:52:59 +0200 Subject: [PATCH] A preliminary fix to reduce the amount of missing pulses considerably. Probably not yet the final solution. --- src/xspice/icm/digital/d_pwm/cfunc.mod | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/xspice/icm/digital/d_pwm/cfunc.mod b/src/xspice/icm/digital/d_pwm/cfunc.mod index 4aa5ec6be..8ed3930b1 100644 --- a/src/xspice/icm/digital/d_pwm/cfunc.mod +++ b/src/xspice/icm/digital/d_pwm/cfunc.mod @@ -404,6 +404,8 @@ void cm_d_pwm(ARGS) *t3 = T(1) + (1 - dphase)/frequency; } + cm_analog_set_temp_bkpt(*t1); + cm_analog_set_temp_bkpt(*t3); } break;