General Structures Of Power Converter Code
Last modified by Microchip on 2024/01/23 19:18
dsPIC® DSCs consist of several different functional blocks:
- Intelligent Power Peripheral (IPP): ADC
- Intelligent Power Peripheral (IPP): PWM
- Intelligent Power Peripheral (IPP): Comparator
- DSP core
- Other peripherals
For these blocks to work together to perform the desired tasks, a set of commands (instructions) have to be supplied to the dsPIC® DSC which will execute them.
The following shows an example of the program flow of three sets of instructions: initialization, main, and ADC interrupt.
Interrupt
The following shows how the two interrupts stop the sequential execution of the commands (instructions) and force the system to execute in response to the specific event that has generated the interrupt by the called Interrupt Service Routine (ISR).