#### garimella

##### Full Member level 5

I have some clarification regarding implementing PI Controller in MCU. I have seen two approaches

First one is direct translation of PI controller equations in software and second one is converting continuous domain to discrete domain and then getting corresponding difference equation, which can be put back to action. I was interested to know which one is better?