This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

simulated environment synchronization

hi everyone,

...trying to simulate a control loop, driven by PWM timer on ST32F103. External hardware is described in a signal function as a simple 2nd order RLC network and fed back to the AD converter.

Signal function typically consist of an infinite loop, containing a diff.eq. set and delayed with "twatch" or "swatch" function, defining its sample time. The timer and ADC on the ARM however ARE NOT synchronized with signal function sampling frequency, thus adding a significand digital noise to the loop!

Ideally, the signal function should be triggered by the change on the timer peripheral pin an running until the ADC conversion start. To my knowledge, rwatch and wwatch doesn't work on the simulated peripherals (only R/W instruction). Did I miss something, is there anything else available (uVision 3.8)... ???

0