Hi,
I am currently trying to implement a PI controller code to adjust the duty cycle accordingly and maintain a 100V output of a boost converter. I am using a PIC18F4520 and have been reading the application note as guidance...
**broken link removed**
I have done lots of background research on PI control and am now trying to write the code in c, Microchip provide some source code in .asm format but I have only ever used c so its very hard to understand what is going on!
I'm having some difficulties in understanding how the integral term (a_error0:a_error1) is obtained in the code, can anyone help on this?
i understand that the user is meant to define the values of timer_hi and timer_lo, and that when timer0 overflows an interrupt is triggered....but do not know how the interrupt works, and how the a_error0:a_error1 term is calculated?
I have never used interrupts before, so some clear guidance would be very useful!
If anyone has any experience of using PID on a PIC18F chip your help on this would be greatly appreciated....
I am currently trying to implement a PI controller code to adjust the duty cycle accordingly and maintain a 100V output of a boost converter. I am using a PIC18F4520 and have been reading the application note as guidance...
**broken link removed**
I have done lots of background research on PI control and am now trying to write the code in c, Microchip provide some source code in .asm format but I have only ever used c so its very hard to understand what is going on!
I'm having some difficulties in understanding how the integral term (a_error0:a_error1) is obtained in the code, can anyone help on this?
i understand that the user is meant to define the values of timer_hi and timer_lo, and that when timer0 overflows an interrupt is triggered....but do not know how the interrupt works, and how the a_error0:a_error1 term is calculated?
I have never used interrupts before, so some clear guidance would be very useful!
If anyone has any experience of using PID on a PIC18F chip your help on this would be greatly appreciated....