Hi. I need Help about digital system implementation. I plain develop a digital controller for a temperature control system. I have some problems with control times. I use sample time of 100us, I read an ADC even 100us. My problem is know when I must applicate the output (input signal procesed with a PID ) to the plant. Regards.
Your controller output should be applied to the system every 100us. You could use something like a peridoic timer interrupt with a period of 100us and calculate the controller parameters and apply them to the system in the ISR if the calculation of the parameters take always an equal amount of time.