dsPIC® consists of a number of different functional blocks:
- Intelligent Power Peripheral (IPP): ADC
- Intelligent Power Peripheral (IPP): PWM
- Intelligent Power Peripheral (IPP): Comparator
- DSP core
- Other peripherals
In order for these blocks to work together to a 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.
The following shows how the two interrupts stop the sequential execution of the commands (instructions) and forces the system to execute in response to the specific event that has generated the interrupt by the called Interrupt Service Routine (ISR).