← All review reports

Representative results only · all C code here is synthetic · no TI code is included or displayed details

Results are representative and informational only. Under Texas Instruments' C2000 software license terms, real TI SDK source code is confidential and licensed for internal use only, so no TI code is included, displayed, processed, or emitted here. All C code on this site is synthetic, written for this demo, with invented names and values that resemble typical power-converter firmware. The generated headers compile against this demo's sample firmware in CI; the "legacy" files used for the audit are illustrative and not guaranteed to compile on any target. Product ratings come from public IntelliPower data sheets; all circuit values and gains are invented. Independent demo, not affiliated with or endorsed by AMETEK, IntelliPower, or Texas Instruments. TI, C2000, and Code Composer Studio are trademarks of Texas Instruments.

Review: fa10507_revB

FA10507 · IHT1500RM-M-1.25Kw-WRGlobal-FC60-120VAC-LiFeHS-3U16 · board ups_ctrl rev B · target F28004x (float32)
inputs sha256 971fa702431463b5baf93f5dba8c858e695fc949cd45bf9ecab2712a799e00e9
Constants 29/31Checks 2 failedData sheet 2 for reviewStaleness currentNothing written (fail closed)

Constants

AC input
UPS_VIN_MIN_V85.0f
UPS_VIN_MAX_V265.0f
UPS_IIN_LIMIT_A20.0f
UPS_FIN_MIN_HZ47.5f
UPS_FIN_MAX_HZ63.0f
Rectifier / PFC
UPS_VBUS_MIN_V374.7666f
DC bus
UPS_VBUS_SET_V410.0f
UPS_VBUS_FS_V498.3f
UPS_VBUS_V_PER_COUNT0.12165527f
Inverter
UPS_VOUT_SET_V120.0f
UPS_VOUT_LO_V116.4f
UPS_VOUT_HI_V123.6f
UPS_VOUT_FS_PK_V501.65f
UPS_FOUT_HZ60.0f
UPS_FOUT_MODEUPS_FOUT_CHANGER
UPS_PWM_PERIOD_CNT2500u
UPS_PWM_DEADBAND_CNT100u
AC output
UPS_IOUT_RATED_A12.5f
UPS_IOUT_ALARM_An/a (not on data sheet)
UPS_IOUT_TRIP_A15.0f
UPS_OVERLOAD_DELAY_MS30000u
UPS_IOUT_PK_LIMIT_A43.75f
UPS_IOUT_FS_PK_A41.25f
UPS_IOUT_PKLIM_DAC_HI4220u
UPS_IOUT_PKLIM_DAC_LOfail
UPS_OVERLOAD_ACTIONUPS_OL_SHUTDOWN
Battery
UPS_VBAT_NOM_V89.6f
UPS_VBAT_CUTOFF_V70.0f
UPS_VBAT_FS_V167.97f
Control loop (engineer-supplied)
UPS_VLOOP_KP0.8f
UPS_VLOOP_KI0.015f
Choose a constant to see how it's derived

UPS_VIN_MIN_V

Lowest input voltage the unit runs on before transferring to battery · pass

V_{\text{in,min}} = V_{\text{in,min}}^{\text{DS}} = 85\,\text{V}

Stored as float32 → 85.0f (exact).

InputFromData sheet text
ds.vin_minDS-10507 Rev.101119 p285 to 265VAC
Generated C
/* Lowest input voltage the unit runs on before transferring to battery
 * = ds.vin_min
 *   ds.vin_min = 85 V  [DS-10507 Rev.101119 p2: "85 to 265VAC"] */
#define UPS_VIN_MIN_V              85.0f          /* 85 V */

UPS_VIN_MAX_V

Highest input voltage the unit accepts · pass

V_{\text{in,max}} = V_{\text{in,max}}^{\text{DS}} = 265\,\text{V}

Stored as float32 → 265.0f (exact).

InputFromData sheet text
ds.vin_maxDS-10507 Rev.101119 p285 to 265VAC
Generated C
/* Highest input voltage the unit accepts
 * = ds.vin_max
 *   ds.vin_max = 265 V  [DS-10507 Rev.101119 p2: "85 to 265VAC"] */
#define UPS_VIN_MAX_V              265.0f         /* 265 V */

UPS_IIN_LIMIT_A

Input current limit (data sheet maximum input current) · pass

I_{\text{in,max}} = I_{\text{in,max}}^{\text{DS}} = 20\,\text{A}

Stored as float32 → 20.0f (exact).

InputFromData sheet text
ds.iin_maxDS-10507 Rev.101119 p220 Amps
Generated C
/* Input current limit (data sheet maximum input current)
 * = ds.iin_max
 *   ds.iin_max = 20 A  [DS-10507 Rev.101119 p2: "20 Amps"] */
#define UPS_IIN_LIMIT_A            20.0f          /* 20 A */

UPS_FIN_MIN_HZ

Lowest input frequency accepted (follower lock window / transfer to battery) · pass

f_{\text{in,min}} = f_{\text{in,lo}} \cdot \left(1 - k_{f}\right)
= 50\,\text{Hz} \cdot \left(1 - 5\,\%\right)
= 47.5\,\text{Hz}

Stored as float32 → 47.5f (exact).

InputFromData sheet text
ds.fin_nom_loDS-10507 Rev.101119 p250/60 Hz, (±5%)
ds.fin_tol_pctDS-10507 Rev.101119 p250/60 Hz, (±5%)
Generated C
/* Lowest input frequency accepted (follower lock window / transfer to battery)
 * = ds.fin_nom_lo * (1 - ds.fin_tol_pct)
 *   ds.fin_nom_lo = 50 Hz  [DS-10507 Rev.101119 p2: "50/60 Hz, (+/-5%)"]
 *   ds.fin_tol_pct = 5 %  [DS-10507 Rev.101119 p2: "50/60 Hz, (+/-5%)"] */
#define UPS_FIN_MIN_HZ             47.5f          /* 47.5 Hz */

UPS_FIN_MAX_HZ

Highest input frequency accepted (follower lock window / transfer to battery) · pass

f_{\text{in,max}} = f_{\text{in,hi}} \cdot \left(1 + k_{f}\right)
= 60\,\text{Hz} \cdot \left(1 + 5\,\%\right)
= 63\,\text{Hz}

Stored as float32 → 63.0f (exact).

InputFromData sheet text
ds.fin_nom_hiDS-10507 Rev.101119 p250/60 Hz, (±5%)
ds.fin_tol_pctDS-10507 Rev.101119 p250/60 Hz, (±5%)
Generated C
/* Highest input frequency accepted (follower lock window / transfer to battery)
 * = ds.fin_nom_hi * (1 + ds.fin_tol_pct)
 *   ds.fin_nom_hi = 60 Hz  [DS-10507 Rev.101119 p2: "50/60 Hz, (+/-5%)"]
 *   ds.fin_tol_pct = 5 %  [DS-10507 Rev.101119 p2: "50/60 Hz, (+/-5%)"] */
#define UPS_FIN_MAX_HZ             63.0f          /* 63 Hz */

UPS_VBUS_MIN_V

A boost PFC stage must hold the bus above the peak of the highest input voltage · pass

V_{\text{bus,min}} = \sqrt{2} \cdot V_{\text{in,max}}
= \sqrt{2} \cdot 265\,\text{V}
= 374.767\,\text{V}

Stored as float32 → 374.7666f, quantization error 2.01e-06% (round half to even).

Generated C
/* A boost PFC stage must hold the bus above the peak of the highest input voltage
 * = sqrt(2) * vin_max */
#define UPS_VBUS_MIN_V             374.7666f      /* 374.767 V */

UPS_VBUS_SET_V

DC bus regulation setpoint, bus minimum plus design margin, rounded up to 10 V · pass

V_{\text{bus,set}} = \left\lceil \frac{V_{\text{bus,min}} \cdot \left(1 + m_{\text{bus}}\right)}{10} \right\rceil \cdot 10
= \left\lceil \frac{374.767\,\text{V} \cdot \left(1 + 7\,\%\right)}{10} \right\rceil \cdot 10
= 410\,\text{V}

Stored as float32 → 410.0f (exact).

InputFromData sheet text
design.vbus_margindesign fa10507_revB.yamlDC bus setpoint margin above rectified input peak
Generated C
/* DC bus regulation setpoint, bus minimum plus design margin, rounded up to 10 V
 * = ceil(vbus_min * (1 + design.vbus_margin) / 10) * 10
 *   design.vbus_margin = 7 %  [design fa10507_revB.yaml] */
#define UPS_VBUS_SET_V             410.0f         /* 410 V */

UPS_VBUS_FS_V

Bus voltage at ADC full scale (divider ratio times ADC reference) · pass

V_{\text{bus,FS}} = \frac{V_{\text{ref}} \cdot \left(R_{\text{bus,top}} + R_{\text{bus,bot}}\right)}{R_{\text{bus,bot}}}
= \frac{3.3\,\text{V} \cdot \left(1.5\,\mathrm{M}\Omega + 10\,\mathrm{k}\Omega\right)}{10\,\mathrm{k}\Omega}
= 498.3\,\text{V}

Stored as float32 → 498.3f, quantization error 2.45e-06% (round half to even).

InputFromData sheet text
target.v_reftarget f28004x.yamlinternal 3.3 V ADC range selected
board.vbus_r_topboard ups_ctrl_revB.yamlDC bus divider
board.vbus_r_botboard ups_ctrl_revB.yamlDC bus divider
Generated C
/* Bus voltage at ADC full scale (divider ratio times ADC reference)
 * = target.v_ref * (board.vbus_r_top + board.vbus_r_bot) / board.vbus_r_bot
 *   target.v_ref = 3.3 V  [target f28004x.yaml]
 *   board.vbus_r_top = 1.5 Mohm  [board ups_ctrl_revB.yaml]
 *   board.vbus_r_bot = 10 kohm  [board ups_ctrl_revB.yaml] */
#define UPS_VBUS_FS_V              498.3f         /* 498.3 V */

UPS_VBUS_V_PER_COUNT

Volts of bus per ADC count · pass

k_{\text{bus}} = \frac{V_{\text{bus,FS}}}{D_{\text{ADC}}}
= \frac{498.3\,\text{V}}{4096}
= 0.121655\,\text{V/count}

Stored as float32 → 0.12165527f (exact).

InputFromData sheet text
target.adc_divtarget f28004x.yamlADC transfer function: 1 LSB = V_ref / 4096 (TRM)
Generated C
/* Volts of bus per ADC count
 * = vbus_fs / target.adc_div
 *   target.adc_div = 4096 counts  [target f28004x.yaml] */
#define UPS_VBUS_V_PER_COUNT       0.12165527f    /* 0.121655 V/count */

UPS_VOUT_SET_V

Output voltage setpoint (RMS); a selectable output option would be its own variant and header (none built here) · pass

V_{\text{out}} = V_{\text{out,nom}} = 120\,\text{V}

Stored as float32 → 120.0f (exact).

InputFromData sheet text
ds.vout_nomDS-10507 Rev.101119 p2120VAC, (±3%) Selectable (Optional 240VAC Output)
Generated C
/* Output voltage setpoint (RMS); a selectable output option would be its own variant and header (none built here)
 * = ds.vout_nom
 *   ds.vout_nom = 120 V  [DS-10507 Rev.101119 p2: "120VAC, (+/-3%) Selectable (Optional 240VAC Output)"] */
#define UPS_VOUT_SET_V             120.0f         /* 120 V */

UPS_VOUT_LO_V

Lower edge of the data sheet output regulation band · pass

V_{\text{out,lo}} = V_{\text{out}} \cdot \left(1 - k_{\text{reg}}\right)
= 120\,\text{V} \cdot \left(1 - 3\,\%\right)
= 116.4\,\text{V}

Stored as float32 → 116.4f, quantization error 1.31e-06% (round half to even).

InputFromData sheet text
ds.vout_tol_pctDS-10507 Rev.101119 p2120VAC, (±3%) Selectable (Optional 240VAC Output)
Generated C
/* Lower edge of the data sheet output regulation band
 * = vout_set * (1 - ds.vout_tol_pct)
 *   ds.vout_tol_pct = 3 %  [DS-10507 Rev.101119 p2: "120VAC, (+/-3%) Selectable (Optional 240VAC Output)"] */
#define UPS_VOUT_LO_V              116.4f         /* 116.4 V */

UPS_VOUT_HI_V

Upper edge of the data sheet output regulation band · pass

V_{\text{out,hi}} = V_{\text{out}} \cdot \left(1 + k_{\text{reg}}\right)
= 120\,\text{V} \cdot \left(1 + 3\,\%\right)
= 123.6\,\text{V}

Stored as float32 → 123.6f, quantization error 1.23e-06% (round half to even).

InputFromData sheet text
ds.vout_tol_pctDS-10507 Rev.101119 p2120VAC, (±3%) Selectable (Optional 240VAC Output)
Generated C
/* Upper edge of the data sheet output regulation band
 * = vout_set * (1 + ds.vout_tol_pct)
 *   ds.vout_tol_pct = 3 %  [DS-10507 Rev.101119 p2: "120VAC, (+/-3%) Selectable (Optional 240VAC Output)"] */
#define UPS_VOUT_HI_V              123.6f         /* 123.6 V */

UPS_VOUT_FS_PK_V

Peak output voltage at the edge of the mid-rail-biased sense range · pass

V_{\text{out,FS}} = \frac{\frac{V_{\text{ref}}}{2} \cdot \left(R_{\text{out,top}} + R_{\text{out,bot}}\right)}{R_{\text{out,bot}}}
= \frac{\frac{3.3\,\text{V}}{2} \cdot \left(1\,\mathrm{M}\Omega + 3.3\,\mathrm{k}\Omega\right)}{3.3\,\mathrm{k}\Omega}
= 501.65\,\text{V}

Stored as float32 → 501.65f, quantization error 1.22e-06% (round half to even).

InputFromData sheet text
target.v_reftarget f28004x.yamlinternal 3.3 V ADC range selected
board.vout_r_topboard ups_ctrl_revB.yamlAC output divider
board.vout_r_botboard ups_ctrl_revB.yamlAC output divider
Generated C
/* Peak output voltage at the edge of the mid-rail-biased sense range
 * = target.v_ref / 2 * (board.vout_r_top + board.vout_r_bot) / board.vout_r_bot
 *   target.v_ref = 3.3 V  [target f28004x.yaml]
 *   board.vout_r_top = 1 Mohm  [board ups_ctrl_revB.yaml]
 *   board.vout_r_bot = 3.3 kohm  [board ups_ctrl_revB.yaml] */
#define UPS_VOUT_FS_PK_V           501.65f        /* 501.65 V */

UPS_FOUT_HZ

Output frequency · pass

f_{\text{out}} = f_{\text{out}}^{\text{DS}} = 60\,\text{Hz}

Stored as float32 → 60.0f (exact).

InputFromData sheet text
ds.fout_hzDS-10507 Rev.101119 p260 Hz, Changer
Generated C
/* Output frequency
 * = ds.fout_hz
 *   ds.fout_hz = 60 Hz  [DS-10507 Rev.101119 p2: "60 Hz, Changer"] */
#define UPS_FOUT_HZ                60.0f          /* 60 Hz */

UPS_FOUT_MODE

Changer regenerates a fixed frequency; follower tracks the input · pass

\texttt{UPS\_FOUT\_MODE} = \texttt{UPS\_FOUT\_CHANGER} \quad (\text{data sheet: changer})
InputFromData sheet text
ds.fout_modeDS-10507 Rev.101119 p260 Hz, Changer
Generated C
/* Changer regenerates a fixed frequency; follower tracks the input
 * = ds.fout_mode
 *   ds.fout_mode = changer  [DS-10507 Rev.101119 p2: "60 Hz, Changer"] */
#define UPS_FOUT_MODE              UPS_FOUT_CHANGER

UPS_PWM_PERIOD_CNT

PWM period register, up-down (center-aligned) count mode as usual for inverters (TBPRD = f_clk / (2 f_sw)) · pass

N_{\text{PWM}} = \operatorname{round}\!\left(\frac{f_{\text{clk}}}{2 \cdot f_{\text{sw}}}\right)
= \operatorname{round}\!\left(\frac{100\,\text{MHz}}{2 \cdot 20\,\text{kHz}}\right)
= \operatorname{round}\!\left(2500\right) = 2500

Stored as uint16 → 2500u (exact).

InputFromData sheet text
target.f_pwmclktarget f28004x.yamlEPWMCLK = SYSCLK assumed
design.f_swdesign fa10507_revB.yamlinverter switching frequency (power engineering choice)
Generated C
/* PWM period register, up-down (center-aligned) count mode as usual for inverters (TBPRD = f_clk / (2 f_sw))
 * = round(target.f_pwmclk / (2 * design.f_sw))
 *   target.f_pwmclk = 100 MHz  [target f28004x.yaml]
 *   design.f_sw = 20 kHz  [design fa10507_revB.yaml] */
#define UPS_PWM_PERIOD_CNT         2500u          /* 2500 counts, uint16 */

UPS_PWM_DEADBAND_CNT

Dead-time register · pass

N_{\text{DB}} = \left\lceil t_{\text{DB}} \cdot f_{\text{clk}} \right\rceil
= \left\lceil 1\,\mu\mathrm{s} \cdot 100\,\text{MHz} \right\rceil
= \left\lceil 100 \right\rceil = 100

Stored as uint16 → 100u (exact).

InputFromData sheet text
design.t_deadbanddesign fa10507_revB.yamlgate-drive dead time for an IGBT bridge (power engineering choice)
target.f_pwmclktarget f28004x.yamlEPWMCLK = SYSCLK assumed
Generated C
/* Dead-time register
 * = ceil(design.t_deadband * target.f_pwmclk)
 *   design.t_deadband = 1 us  [design fa10507_revB.yaml]
 *   target.f_pwmclk = 100 MHz  [target f28004x.yaml] */
#define UPS_PWM_DEADBAND_CNT       100u           /* 100 counts, uint16 */

UPS_IOUT_RATED_A

Rated output current (RMS) · pass

I_{\text{rated}} = \frac{S}{V_{\text{out,nom}}}
= \frac{1500\,\text{VA}}{120\,\text{V}}
= 12.5\,\text{A}

Stored as float32 → 12.5f (exact).

InputFromData sheet text
ds.power_vaDS-10507 Rev.101119 p21500 VA, 1250 W
ds.vout_nomDS-10507 Rev.101119 p2120VAC, (±3%) Selectable (Optional 240VAC Output)
Generated C
/* Rated output current (RMS)
 * = ds.power_va / ds.vout_nom
 *   ds.power_va = 1500 VA  [DS-10507 Rev.101119 p2: "1500 VA, 1250 W"]
 *   ds.vout_nom = 120 V  [DS-10507 Rev.101119 p2: "120VAC, (+/-3%) Selectable (Optional 240VAC Output)"] */
#define UPS_IOUT_RATED_A           12.5f          /* 12.5 A */

UPS_IOUT_ALARM_A

Overload alarm current (RMS) · n/a

input ds.overload_alarm_pct not in data sheet

I_{\text{alarm}} = I_{\text{rated}} \cdot k_{\text{alarm}}
Generated C
/* Overload alarm current (RMS)
 * = iout_rated * ds.overload_alarm_pct
 *   NOT GENERATED: input ds.overload_alarm_pct not in data sheet */

UPS_IOUT_TRIP_A

Software overload trip level (RMS, timed; acts after UPS_OVERLOAD_DELAY_MS above this level) · pass

I_{\text{trip}} = I_{\text{rated}} \cdot k_{\text{trip}}
= 12.5\,\text{A} \cdot 120\,\%
= 15\,\text{A}

Stored as float32 → 15.0f (exact).

InputFromData sheet text
ds.overload_trip_pctDS-10507 Rev.101119 p2 (read as 120% of rated)Shutdown at 20% Overload
Generated C
/* Software overload trip level (RMS, timed; acts after UPS_OVERLOAD_DELAY_MS above this level)
 * = iout_rated * ds.overload_trip_pct
 *   ds.overload_trip_pct = 120 %  [DS-10507 Rev.101119 p2 (read as 120% of rated): "Shutdown at 20% Overload"] */
#define UPS_IOUT_TRIP_A            15.0f          /* 15 A */

UPS_OVERLOAD_DELAY_MS

Time above the RMS trip level before the overload action (the data sheet gives no time) · pass

t_{\text{OL}} = t_{\text{OL}}^{\text{design}} = 30000\,\text{ms}

Stored as uint32 → 30000u (exact).

InputFromData sheet text
design.overload_delaydesign fa10507_revB.yamltime at the RMS trip level before the overload action; invented, the data sheet gives none
Generated C
/* Time above the RMS trip level before the overload action (the data sheet gives no time)
 * = design.overload_delay
 *   design.overload_delay = 30 s  [design fa10507_revB.yaml] */
#define UPS_OVERLOAD_DELAY_MS      30000u         /* 30000 ms, uint32 */

UPS_IOUT_PK_LIMIT_A

Hardware peak-current limit (fast comparator, short-circuit protection); must clear the crest factor of rated nonlinear loads · pass

I_{\text{pk,lim}} = k_{\text{pk}} \cdot I_{\text{rated}}
= 3.5 \cdot 12.5\,\text{A}
= 43.75\,\text{A}

Stored as float32 → 43.75f (exact).

InputFromData sheet text
design.pk_limit_factordesign fa10507_revB.yamlhardware peak limit / rated RMS current: clears the rated crest factor with margin (checked)
Generated C
/* Hardware peak-current limit (fast comparator, short-circuit protection); must clear the crest factor of rated nonlinear loads
 * = design.pk_limit_factor * iout_rated
 *   design.pk_limit_factor = 3.5  [design fa10507_revB.yaml] */
#define UPS_IOUT_PK_LIMIT_A        43.75f         /* 43.75 A */

UPS_IOUT_FS_PK_A

Peak current at the edge of the mid-rail-biased current-sense range · pass

I_{\text{FS}} = \frac{\frac{V_{\text{ref}}}{2}}{R_{\text{sh}} \cdot G_{\text{amp}}}
= \frac{\frac{3.3\,\text{V}}{2}}{2\,\mathrm{m}\Omega \cdot 20}
= 41.25\,\text{A}

Stored as float32 → 41.25f (exact).

InputFromData sheet text
target.v_reftarget f28004x.yamlinternal 3.3 V ADC range selected
board.r_shuntboard ups_ctrl_revB.yamloutput current shunt; range must cover the hardware peak limit (~3.5x rated RMS)
board.g_ampboard ups_ctrl_revB.yamlcurrent-sense amplifier gain (alternate part, rev B)
Generated C
/* Peak current at the edge of the mid-rail-biased current-sense range
 * = target.v_ref / 2 / (board.r_shunt * board.g_amp)
 *   target.v_ref = 3.3 V  [target f28004x.yaml]
 *   board.r_shunt = 2 mohm  [board ups_ctrl_revB.yaml]
 *   board.g_amp = 20  [board ups_ctrl_revB.yaml] */
#define UPS_IOUT_FS_PK_A           41.25f         /* 41.25 A */

UPS_IOUT_PKLIM_DAC_HI

Comparator DAC code for the positive hardware peak-current limit · pass

N_{\text{DAC,hi}} = \left\lfloor \frac{\frac{V_{\text{ref}}}{2} + I_{\text{pk,lim}} \cdot R_{\text{sh}} \cdot G_{\text{amp}}}{V_{\text{ref}}} \cdot D_{\text{DAC}} \right\rfloor
= \left\lfloor \frac{\frac{3.3\,\text{V}}{2} + 43.75\,\text{A} \cdot 2\,\mathrm{m}\Omega \cdot 20}{3.3\,\text{V}} \cdot 4096 \right\rfloor
= \left\lfloor 4220.12 \right\rfloor = 4220

Stored as uint16 → 4220u (exact).

InputFromData sheet text
target.v_reftarget f28004x.yamlinternal 3.3 V ADC range selected
board.r_shuntboard ups_ctrl_revB.yamloutput current shunt; range must cover the hardware peak limit (~3.5x rated RMS)
board.g_ampboard ups_ctrl_revB.yamlcurrent-sense amplifier gain (alternate part, rev B)
target.dac_divtarget f28004x.yamlCMPSS DAC: V = DACVAL x V_ref / 4096 (TRM)
Generated C
/* Comparator DAC code for the positive hardware peak-current limit
 * = floor((target.v_ref / 2 + iout_pk_limit * board.r_shunt * board.g_amp) / target.v_ref * target.dac_div)
 *   target.v_ref = 3.3 V  [target f28004x.yaml]
 *   board.r_shunt = 2 mohm  [board ups_ctrl_revB.yaml]
 *   board.g_amp = 20  [board ups_ctrl_revB.yaml]
 *   target.dac_div = 4096 counts  [target f28004x.yaml] */
#define UPS_IOUT_PKLIM_DAC_HI      4220u          /* 4220 counts, uint16 */

UPS_IOUT_PKLIM_DAC_LO

Comparator DAC code for the negative hardware peak-current limit · FAIL

uint16: -124 out of range [0, 65535]

N_{\text{DAC,lo}} = \left\lceil \frac{\frac{V_{\text{ref}}}{2} - I_{\text{pk,lim}} \cdot R_{\text{sh}} \cdot G_{\text{amp}}}{V_{\text{ref}}} \cdot D_{\text{DAC}} \right\rceil
= \left\lceil \frac{\frac{3.3\,\text{V}}{2} - 43.75\,\text{A} \cdot 2\,\mathrm{m}\Omega \cdot 20}{3.3\,\text{V}} \cdot 4096 \right\rceil
= \left\lceil -124.121 \right\rceil = -124
InputFromData sheet text
target.v_reftarget f28004x.yamlinternal 3.3 V ADC range selected
board.r_shuntboard ups_ctrl_revB.yamloutput current shunt; range must cover the hardware peak limit (~3.5x rated RMS)
board.g_ampboard ups_ctrl_revB.yamlcurrent-sense amplifier gain (alternate part, rev B)
target.dac_divtarget f28004x.yamlCMPSS DAC: V = DACVAL x V_ref / 4096 (TRM)

UPS_OVERLOAD_ACTION

What the unit does when the RMS overload persists past the delay · pass

\texttt{UPS\_OVERLOAD\_ACTION} = \texttt{UPS\_OL\_SHUTDOWN} \quad (\text{data sheet: shutdown})
InputFromData sheet text
ds.overload_actionDS-10507 Rev.101119 p2Shutdown at 20% Overload
Generated C
/* What the unit does when the RMS overload persists past the delay
 * = ds.overload_action
 *   ds.overload_action = shutdown  [DS-10507 Rev.101119 p2: "Shutdown at 20% Overload"] */
#define UPS_OVERLOAD_ACTION        UPS_OL_SHUTDOWN

UPS_VBAT_NOM_V

Battery string nominal voltage · pass

V_{\text{bat}} = V_{\text{bat}}^{\text{DS}} = 89.6\,\text{V}

Stored as float32 → 89.6f, quantization error 1.7e-06% (round half to even).

InputFromData sheet text
ds.batt_string_vDS-10507 Rev.101119 p289.6 VDC
Generated C
/* Battery string nominal voltage
 * = ds.batt_string_v
 *   ds.batt_string_v = 89.6 V  [DS-10507 Rev.101119 p2: "89.6 VDC"] */
#define UPS_VBAT_NOM_V             89.6f          /* 89.6 V */

UPS_VBAT_CUTOFF_V

Low-battery shutdown voltage · pass

V_{\text{bat,cut}} = n_{\text{cells}} \cdot V_{\text{cell,cut}}
= 28\,\text{cells} \cdot 2.5\,\text{V}
= 70\,\text{V}

Stored as float32 → 70.0f (exact).

InputFromData sheet text
ds.batt_series_cellsDS-10507 Rev.101119 p2 ("28SIP" read as 28S1P)28SIP
design.cell_cutoff_vdesign fa10507_revB.yamlLiFePO4 per-cell discharge cutoff, generic chemistry figure
Generated C
/* Low-battery shutdown voltage
 * = ds.batt_series_cells * design.cell_cutoff_v
 *   ds.batt_series_cells = 28 cells  [DS-10507 Rev.101119 p2 ("28SIP" read as 28S1P): "28SIP"]
 *   design.cell_cutoff_v = 2.5 V  [design fa10507_revB.yaml] */
#define UPS_VBAT_CUTOFF_V          70.0f          /* 70 V */

UPS_VBAT_FS_V

Battery voltage at ADC full scale · pass

V_{\text{bat,FS}} = \frac{V_{\text{ref}} \cdot \left(R_{\text{bat,top}} + R_{\text{bat,bot}}\right)}{R_{\text{bat,bot}}}
= \frac{3.3\,\text{V} \cdot \left(499\,\mathrm{k}\Omega + 10\,\mathrm{k}\Omega\right)}{10\,\mathrm{k}\Omega}
= 167.97\,\text{V}

Stored as float32 → 167.97f, quantization error 7.27e-07% (round half to even).

InputFromData sheet text
target.v_reftarget f28004x.yamlinternal 3.3 V ADC range selected
board.vbat_r_topboard ups_ctrl_revB.yamlbattery divider
board.vbat_r_botboard ups_ctrl_revB.yamlbattery divider
Generated C
/* Battery voltage at ADC full scale
 * = target.v_ref * (board.vbat_r_top + board.vbat_r_bot) / board.vbat_r_bot
 *   target.v_ref = 3.3 V  [target f28004x.yaml]
 *   board.vbat_r_top = 499 kohm  [board ups_ctrl_revB.yaml]
 *   board.vbat_r_bot = 10 kohm  [board ups_ctrl_revB.yaml] */
#define UPS_VBAT_FS_V              167.97f        /* 167.97 V */

UPS_VLOOP_KP

Voltage-loop proportional gain (tuned by power engineering) · pass

K_P = 0.8 \quad (\text{engineer-supplied})

Stored as float32 → 0.8f, quantization error 1.49e-06% (round half to even).

InputFromData sheet text
design.vloop_kpdesign fa10507_revB.yamlvoltage-loop proportional gain (engineer-tuned, invented)
Generated C
/* Voltage-loop proportional gain (tuned by power engineering)
 * = design.vloop_kp
 *   design.vloop_kp = 0.8  [design fa10507_revB.yaml]
 *   engineer-supplied value, carried through unchanged */
#define UPS_VLOOP_KP               0.8f           /* 0.8 */

UPS_VLOOP_KI

Voltage-loop integral gain per control ISR (tuned by power engineering) · pass

K_I = 0.015 \quad (\text{engineer-supplied})

Stored as float32 → 0.015f, quantization error 2.24e-06% (round half to even).

InputFromData sheet text
design.vloop_kidesign fa10507_revB.yamlvoltage-loop integral gain per ISR (engineer-tuned, invented)
Generated C
/* Voltage-loop integral gain per control ISR (tuned by power engineering)
 * = design.vloop_ki
 *   design.vloop_ki = 0.015  [design fa10507_revB.yaml]
 *   engineer-supplied value, carried through unchanged */
#define UPS_VLOOP_KI               0.015f         /* 0.015 */

Checks

CheckMath
passbus_above_output_peak
The output peak at the top of the regulation band must fit under the bus at the inverter's maximum modulation index (room for modulation limits, dead time and device drop)
\sqrt{2} \cdot V_{\text{out,hi}} \le m_{\max} \cdot V_{\text{bus,set}} \cdot k_{\text{bridge}}
= \sqrt{2} \cdot 123.6\,\text{V} \le 95\,\% \cdot 410\,\text{V} \cdot 0.5
\Rightarrow 174.797\,\text{V} \le 194.75\,\text{V}\quad \checkmark
passbus_sense_range
Bus setpoint must sit inside the bus sensor's range with headroom
V_{\text{bus,set}} \le h \cdot V_{\text{bus,FS}}
= 410\,\text{V} \le 95\,\% \cdot 498.3\,\text{V}
\Rightarrow 410\,\text{V} \le 473.385\,\text{V}\quad \checkmark
passvout_sense_range
Output peak at the top of the regulation band must sit inside the output sensor's range
\sqrt{2} \cdot V_{\text{out,hi}} \le h \cdot V_{\text{out,FS}}
= \sqrt{2} \cdot 123.6\,\text{V} \le 95\,\% \cdot 501.65\,\text{V}
\Rightarrow 174.797\,\text{V} \le 476.567\,\text{V}\quad \checkmark
FAILiout_sense_range
Hardware peak limit must sit inside the current sensor's range, or the sensor saturates before the limit fires
I_{\text{pk,lim}} \le h \cdot I_{\text{FS}}
= 43.75\,\text{A} \le 95\,\% \cdot 41.25\,\text{A}
\Rightarrow 43.75\,\text{A} \le 39.1875\,\text{A}\quad \color{#c0392b}{\times}
passoverload_below_pk_limit
A sinusoidal overload at the RMS trip level must stay under the hardware limit, so the timed overload acts first (crest-factor loads above rated are clipped by the hardware limit, as on real units)
\sqrt{2} \cdot I_{\text{trip}} < I_{\text{pk,lim}}
= \sqrt{2} \cdot 15\,\text{A} < 43.75\,\text{A}
\Rightarrow 21.2132\,\text{A} < 43.75\,\text{A}\quad \checkmark
passcrest_clears_pk_limit
The peak of a rated nonlinear load (the assumed 3:1 crest factor at rated current) must clear the hardware limit, or normal loads trip the fast protection
CF \cdot I_{\text{rated}} < I_{\text{pk,lim}}
= 3 \cdot 12.5\,\text{A} < 43.75\,\text{A}
\Rightarrow 37.5\,\text{A} < 43.75\,\text{A}\quad \checkmark
passcrest_clears_dac_hi
The DAC-derived positive trip threshold must clear the rated illustrative load peak after quantization
CF \cdot I_{\text{rated}} < \frac{\left(\frac{N_{\text{DAC,hi}}}{D_{\text{DAC}}} - 0.5\right) \cdot V_{\text{ref}}}{R_{\text{sh}} \cdot G_{\text{amp}}}
= 3 \cdot 12.5\,\text{A} < \frac{\left(\frac{4220}{4096} - 0.5\right) \cdot 3.3\,\text{V}}{2\,\mathrm{m}\Omega \cdot 20}
\Rightarrow 37.5\,\text{A} < 43.7476\,\text{A}\quad \checkmark
n/acrest_clears_dac_lo
The magnitude of the DAC-derived negative trip threshold must clear the rated illustrative load peak after quantization
CF \cdot I_{\text{rated}} < \frac{\left(0.5 - \frac{N_{\text{DAC,lo}}}{D_{\text{DAC}}}\right) \cdot V_{\text{ref}}}{R_{\text{sh}} \cdot G_{\text{amp}}} \quad (\text{not applicable})
FAILdac_hi_in_range
Positive peak-limit DAC code must exist on this chip's comparator DAC
N_{\text{DAC,hi}} \le N_{\text{DAC}}
\Rightarrow 4220 \le 4095\quad \color{#c0392b}{\times}
passdeadband_in_range
Dead-time count must fit this chip's dead-band counter
N_{\text{DB}} \le N_{\text{DB,max}}
\Rightarrow 100 \le 16383\quad \checkmark
n/aalarm_below_trip
Overload alarm must come before the trip
I_{\text{alarm}} < I_{\text{trip}} \quad (\text{not applicable})
passvbat_sense_range
A fully charged battery must sit inside the battery sensor's range
n_{\text{cells}} \cdot V_{\text{cell,full}} \le h \cdot V_{\text{bat,FS}}
= 28\,\text{cells} \cdot 3.65\,\text{V} \le 95\,\% \cdot 167.97\,\text{V}
\Rightarrow 102.2\,\text{V} \le 159.572\,\text{V}\quad \checkmark
passcutoff_below_nominal
Low-battery cutoff must be below nominal
V_{\text{bat,cut}} < V_{\text{bat}}
\Rightarrow 70\,\text{V} < 89.6\,\text{V}\quad \checkmark
passinput_voltage_order
Minimum input voltage must not exceed maximum input voltage
V_{\text{in,min}}^{\text{DS}} \le V_{\text{in,max}}^{\text{DS}}
\Rightarrow 85\,\text{V} \le 265\,\text{V}\quad \checkmark
passinput_frequency_order
Lower nominal input frequency must not exceed the upper frequency
f_{\text{in,lo}} \le f_{\text{in,hi}}
\Rightarrow 50\,\text{Hz} \le 60\,\text{Hz}\quad \checkmark
passbattery_cells_integer
Battery series cell count must be a whole number
n_{\text{cells}} = \operatorname{round}\!\left(n_{\text{cells}}\right)
= 28\,\text{cells} = \operatorname{round}\!\left(28\,\text{cells}\right)
\Rightarrow 28 = 28\quad \checkmark
passbattery_cells_positive
Battery series cell count must be positive
n_{\text{cells}} > 0
= 28\,\text{cells} > 0
\Rightarrow 28 > 0\quad \checkmark
passoutput_regulation_nonnegative
Output regulation tolerance must not be negative
k_{\text{reg}} \ge 0
= 3\,\% \ge 0
\Rightarrow 0.03 \ge 0\quad \checkmark
passoutput_regulation_below_100
Output regulation tolerance must be below 100%
k_{\text{reg}} < 1
= 3\,\% < 1
\Rightarrow 0.03 < 1\quad \checkmark

Data sheet consistency

FindingHandling
flaggedisolation row says Isolated but this model string has no 'Isolated' token
“IHT1500RM-M-1.25Kw-WRGlobal-FC60-120VAC-LiFeHS-3U16”
“Isolated”
needs engineer review
flaggedthe two printed model numbers differ (page-1 only: Isolated, 120; table only: 120VAC)
“IHT1500RM-M-1.25Kw-WRGlobal-Isolated-FC60-120-LiFeHS-3U16”
“IHT1500RM-M-1.25Kw-WRGlobal-FC60-120VAC-LiFeHS-3U16”
needs engineer review

Staleness of engineer-supplied values

ValueDesign basis
passdesign.vloop_kpdesigned for actual.f_sw = 20 kHz; now 20 kHz
passdesign.vloop_kidesigned for actual.f_sw = 20 kHz; now 20 kHz

Generated C

Not generated: gates failed, nothing written.

Diff against committed version

—

Reviewed by
Date
Decision: approve / reject / waiver