FLUX_AND_CODE
; CORE INTERRUPT SERVICE ROUTINE NMI_ISR: PHA ; 48 Save Accumulator TXA ; 8A Transfer X to A PHA ; 48 Save X TYA ; 98 Transfer Y to A PHA ; 48 Save Y LDA $DD0D ; AD 0D DD Read CIA2 ICR AND #$02 ; 29 02 Check NMI bit BEQ .EXIT ; F0 03 Branch if zero JSR SYNC_LOOP ; 20 00 C0 Jump to PLL sync .EXIT: PLA ; 68 Restore Y TAY ; A8 PLA ; 68 Restore X TAX ; AA PLA ; 68 Restore Accumulator RTI ; 40 Return from Interrupt INIT_VECTORS: SEI ; 78 Disable IRQs LDA #NMI_ISR ; A9 C0 High byte of ISR STA $FFFB ; 8D FB FF CLI ; 58 Enable IRQs RTS ; 60
SYSTEMS_STATUS: ONLINE

System-Level Engineering &
Diagnostics.

Bridging the "no-man's land" between 10W-2kW switch mode power conversion and Assembly-level firmware. Specialising in deterministic control and architectural integrity.

View Case Studies
> In-House Lab-Verified

LDX #$02 ; LOAD RECENT_DEPLOYMENTS

Project Case Studies

#BARE-METAL #C-FIRMWARE #CONTROL_LOOP

50W Flyback Converter Optimization

Investigated and resolved critical ringing and excessive thermal stress in a quasi-resonant / zero voltage switching flyback prototype. Implemented a deterministic state-machine in C to optimize valley switching and implemented active clamp control. Performed rigorous margin analysis and retuned the control logic, achieving stable regulation across all operating conditions.

STM32G4 PicoScope 6000E Gain/Phase Analysis
Flyback converter oscilloscope waveform capture
> Two-output flyback drain waveforms
void update_inverter_state(void) {
  if (fault_flag) {
    DISABLE_ALL_PWM();
    return;
  }
  uint16_t next_duty = calculate_duty();
  UPDATE_TIM1_CCR(next_duty);
}
#BARE-METAL-C #GAN-INVERTER #MCU-CONTROL

High-Speed GaN Inverter Digital Control

Architected and coded the bare-metal C control loop for a high-frequency GaN inverter. The project required highly deterministic execution to ensure nanosecond-precision dead-time generation and fault-handling. Optimized the microcontroller's hardware timers and interrupt priorities, validating the C-code logic entirely in simulation before successful deployment on the physical target.

Bare-Metal C Interrupt Prioritization GaN Gate Drive

LDA #$01 ; LOAD SERVICE_HIERARCHY

The "Fixer" Ladder

LVL_01

The Rescue Mission

3–5 day deep-dive forensic diagnostics for critical failures: overheating, MOSFET destruction, or control loop instability in active prototypes.

  • + Transient Analysis
  • + Stability Margin Audit
  • + Thermal Stress Testing
LVL_02

System Architecture

Hardware-software partitioning. Deterministic analysis of what lives in silicon, FPGA logic, or microcontroller code.

  • + Bare-Metal C & Asm
  • + Verilog FPGA Design
  • + Deterministic Control
LVL_03

Advanced Simulation & Synthesis

High-fidelity piece-wise linear simulation for complex power stages. We validate production logic before hardware arrival through the implementation of digital logic using the SIMPLIS C-code DLL.

  • + Piece-Wise Linear Sim
  • + Digital Synthesis
  • + C-Code DLLs
LDX #$FF ; INIT INFRASTRUCTURE

The Forensic Diagnostic Lab.

Validation and stress-testing that internal teams cannot perform. A state-of-the-art facility dedicated purely to validation, stress-testing, and breaking what shouldn't break.

High-Frequency 4 & 8-Channel Oscilloscopes
Simultaneous capture of logic, inductor current, gate drives, and high-voltage nodes.
High-End AC/DC Sourcing & Loads
Programmable transient injection and boundary condition testing.
PLECS & Simplis Environments
Cycle-by-cycle simulation correlating directly to physical bench data.
TERMINAL_OUTPUT CH1_ACTIVE

> INIT SYSTEM_SCAN...

> DETECTING_TRANSIENT [V_DS_MAX: 650V]

> LOOP_STABILITY_MARGIN: WARNING (32deg)

> APPLYING_COMPENSATION_NETWORK...

> RECALCULATING...

> LOOP_STABILITY_MARGIN: OPTIMAL (65deg)

Toine Werner
> ENV_PORTRAIT_ACTIVE

JSR $C000 ; JUMP TO HYBRID_ENTITY

Bridging the Gap.

Most bugs hide in the "no-man's land" between 10W-2kW switch mode power conversion and embedded firmware. We possess the rare dual-competency to debug high-speed transients on an oscilloscope while simultaneously optimizing Assembly-level control loops.

We don't just fix the hardware; we write the logic that drives it.

10W-2kW
Power Conversion
GaN/SiC
Integration
C/Asm
Embedded Control
Verilog
RTL Logic

Project Intake

Submit your failure mode. If it's a fit, we move from "stuck" to "decided" in under 10 days.

Direct connection for urgent Rescue Missions:
toine.werner@fluxandcode.com +44 7748 474011