General Structures Of Power Converter Code

Last modified by Microchip on 2024/01/23 19:18

dsPIC® DSCs consist of several different functional blocks:

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.

Initialization program flow

Main program flow

ADC interrupt program flow

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).

Interrupt flow

Back to Top