Digital Power Starter Kit 3 Firmware
dsPIC33C Buck Converter Voltage Mode Control Example
Hardware Abstraction Layer

Hardware Abstraction Layer Declarations. More...

+ Collaboration diagram for Hardware Abstraction Layer:

Modules

 Hardware Version ID
 Global identified to the hardware version used.
 
 Microcontroller Device Abstraction
 Declarations of fundamental microcontroller device parameters.
 
 State Machine Settings
 Declaration of global state-machine parameters.
 
 Startup Timing Settings
 Declaration of startup timing periods.
 
 Fault Response Settings
 Declaration of fault object trip and recovery delays.
 
 PWM Settings
 Declaration of fundamental PWM parameters.
 
 Input Voltage Feedback
 Declaration of input voltage feedback parameters.
 
 Output Voltage Feedback
 Declaration of output voltage feedback parameters.
 
 Phase Current Feedback
 Declaration of phase current feedback parameters.
 
 Temperature Feedback
 Declaration of temperature feedback parameters.
 
 Adaptive Gain Control Feed Forward
 Declaration of macros calculating additional parameters for Adaptive Gain Modulation.
 
 Control Interrupt Vector Declarations
 Real-time control loop interrupt service routine declarations.
 
 LC Display Interface Declarations
 LC display SPI interface GPIO declarations.
 
 Special Circuit Signals
 
 Special Firmware Options
 

Detailed Description

Hardware Abstraction Layer Declarations.

The hardware abstraction layer introduces global defines which can be used in the firmware section of the source code to reference hardware dependent parameters and device peripheral instances and features. This abstraction is essential to adapt to hardware changes including migration across microcontroller device families and hardware versions with minimum risk and time efforts. As the microcontroller used in this design is a fixed, irreplaceable board component, this particular Hardware Abstraction Layer (HAL) covers declarations of circuit control and feedback signals as well as associated microcontroller peripheral instances and features.