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

Automated ADC Trigger handling. More...

#include <power_control/drivers/npnz16b.h>

+ Inheritance diagram for NPNZ_ADC_TRGCTRL_s:
+ Collaboration diagram for NPNZ_ADC_TRGCTRL_s:

Data Fields

volatile uint16_t * ptrADCTriggerARegister
 Pointer to ADC trigger #1 register (e.g. TRIG1) More...
 
volatile uint16_t ADCTriggerAOffset
 ADC trigger #1 offset to compensate propagation delays. More...
 
volatile uint16_t * ptrADCTriggerBRegister
 Pointer to ADC trigger #2 register (e.g. TRIG2) More...
 
volatile uint16_t ADCTriggerBOffset
 ADC trigger #2 offset to compensate propagation delays. More...
 
- Data Fields inherited from NPNZ16b_s
volatile struct NPNZ_STATUS_s status
 Control Loop Status and Control flags. More...
 
volatile struct NPNZ_PORTS_s Ports
 Controller input and output ports. More...
 
volatile struct NPNZ_FILTER_PARAMS_s Filter
 Filter parameters such as pointer to history and coefficient arrays and number scaling. More...
 
volatile struct NPNZ_GAIN_CONTROL_s GainControl
 Parameter section for advanced control options. More...
 
volatile struct NPNZ_LIMITS_s Limits
 Input and output clamping values. More...
 
volatile struct NPNZ_ADC_TRGCTRL_s ADCTriggerControl
 Automatic ADC trigger placement options for ADC Trigger A and B. More...
 
volatile struct NPNZ_DATA_PROVIDERS_s DataProviders
 Automated data sources pushing recent data points to user-defined variables. More...
 
volatile struct NPNZ_EXTENSION_HOOKS_s ExtensionHooks
 User extension function triggers using function pointers with parameters. More...
 
volatile struct NPNZ_USER_DATA_BUFFER_s Advanced
 Parameter section for advanced user control options. More...
 

Detailed Description

Automated ADC Trigger handling.

The NPNZ_ADC_TRGCTRL_t data object holds all parameters required to automatically position ADC triggers based on the most recent control output. This feature is used in voltage or average current mode control to automatically track average values in triangular feedback signal waveforms.

This feature is optional and needs to be enabled, configured and managed manually in user code.

Definition at line 354 of file npnz16b.h.

Field Documentation

◆ ADCTriggerAOffset

volatile uint16_t ADCTriggerAOffset

ADC trigger #1 offset to compensate propagation delays.

Definition at line 357 of file npnz16b.h.

◆ ADCTriggerBOffset

volatile uint16_t ADCTriggerBOffset

ADC trigger #2 offset to compensate propagation delays.

Definition at line 359 of file npnz16b.h.

◆ ptrADCTriggerARegister

volatile uint16_t* ptrADCTriggerARegister

Pointer to ADC trigger #1 register (e.g. TRIG1)

Definition at line 356 of file npnz16b.h.

◆ ptrADCTriggerBRegister

volatile uint16_t* ptrADCTriggerBRegister

Pointer to ADC trigger #2 register (e.g. TRIG2)

Definition at line 358 of file npnz16b.h.


The documentation for this struct was generated from the following file: