Founder Insight

From Analogue to PIC16F72: How We Put a Microcontroller in the Inverter

Kunwer Sachdev on Su-Kam’s 2000 analogue MOSFET inverter and 2001 PIC16F72 MCU launch — why microcontroller control beat non-MCU designs. Part 01 of Source Code of an Industry.

By Kunwer Sachdev ·

This is Part 01 of Source Code of an Industry — a series from real production-era inverter control technology, written so the engineering story is not lost.

In 2000, under my leadership at Su-Kam, we designed our first MOSFET inverter. That first generation was analogue — there was no microcontroller. The same year we committed to MCU control. I was actively involved in selecting the Microchip PIC16F72. In 2001 we launched our first MCU-based inverter. That is where the microcontroller journey started for our products — and where much of the Indian inverter industry followed.

I learned Assembly myself for practical knowledge of how the machine worked. Production software was written by the software team. Understanding the code made better technology decisions possible.

The public timestamp — December 2001

On 10 December 2001, The Times of India (New Delhi) published a short piece titled “Digital wonders.” It described Su-Kam’s new digital inverter as fitted with a “unique micro-controller based intelligent control circuit” and a “unique micro controlled based charger,” listed at Rs 9,400.

That clipping is the mainstream press timestamp for the leap this series documents: policy moved from analogue pots into firmware.

What analogue control could — and could not — do

Before the MCU, a typical low-cost inverter brain was a hardware state machine:

  • Comparators and dividers for battery cut-off and mains detect
  • Potentiometers for production and field trim
  • Discrete timers for delays and buzzers
  • Hardwired relay logic
  • Fixed or lightly modulated gate drive

Limits that blocked the roadmap:

  1. One PCB spin ≈ one behaviour
  2. Pot drift — units differed in the field
  3. Weak fault language for dealers
  4. Soft-start, multi-stage charge, UPS vs AVR personalities were expensive in discrete parts
  5. Behaviour lived in tribal knowledge, not a versioned listing

The 2000 analogue MOSFET inverter proved the power topology. The 2001 MCU inverter proved the control topology.

Why PIC16F72

We needed low BOM cost, deterministic AC timing, ADC for Vin / Vbat / current / temperature, GPIO for relays / LEDs / buzzer / fan, and watchdog robustness — without a DSP price the retail market would not pay.

PIC16F72 sat in that window: 8-bit MCU, HS oscillator, WDT, ADC, Timer0/Timer1, external interrupt. Enough to own mains policy, charge stages, modified square-wave timing, and protection language on one chip.

Design selection: product needs map to PIC16F72 single-chip controller
Figure 1 — MCU selection logic for the 2000–2001 product needs.

Design architecture — MOSFET power, MCU brain

The MCU did not replace the transformer or the MOSFET bridge overnight. What changed was the brain.

Block diagram: mains and battery into MOSFET half-bridge and transformer; PIC16F72 senses and commands relays, MSW drive, and HMI
Figure 2 — System design: familiar MOSFET + transformer power stage; intelligence in PIC16F72.

Advantages over inverters without microcontrollers

Capability Analogue / no MCU PIC16F72 MCU control
Mains accept / reject Fixed divider + comparator Firmware windows; UPS vs AVR personalities
Square / MSW regulation Fixed or crude duty Pulse-width regulation from timer ISR
Soft-start on transfer Extra discrete timing Software half-cycle ramp
Battery charging Simple hardwired CV/CC Multi-stage; LA / SMF / tubular setpoints
Protections Few latched trips Low-batt, overload, short, fuse, temperature — coded policy
Operator feedback Limited LEDs Structured LED + buzzer language
Product variants New PCB / pots Flags and straps on the same binary
Change cost Respin + recalibration Firmware revision

The commercial advantage was repeatable intelligence at retail BOM — not “MCU for MCU’s sake.”

Operating modes became software

Analogue boards implemented modes as wiring. The MCU implemented a state machine: boot → ready → mains mode ↔ inverter mode → fault sleep.

State machine: Boot to Ready to MainsMode or Sleep; MainsMode transfers to InvertMode and back
Figure 3 — Mode design encoded in firmware, not only in copper.

Core technology unlocked by the MCU — modified square wave

A fixed 50% square wave is easy in hardware. Regulating it under load is not. Timer interrupts made modified square wave (MSW) practical: each AC half-cycle is a controlled-width pulse on one bridge leg, then off; the complementary leg takes the next half-cycle. Pulse width tracks load and battery state.

MSW timing: Timer ISR turns bridge leg A on then off at pulse width; then leg B on the complementary half-cycle
Figure 4 — MSW gate timing: software pulse width on a square carrier.

That pattern — ISR-timed pulse width on a square carrier — is why technical teams across the industry could ship retail “square wave” inverters that still held output reasonably well, without sine tables or DSP math.

Sensing map

Five analogue quantities (mains, battery, charge current, load current, temperature) plus switch, zero-cross, short-circuit interrupt, fuse sense, and UPS/AVR select fed one policy engine that drove charger relay, changeover relay, charge gate, inverter PWM legs, fan, LEDs, and buzzer.

I/O map of PIC16F72 sensing inputs and actuator outputs
Figure 5 — I/O density that analogue control struggled to deliver cheaply.

Why the industry followed

Once a low-cost PIC could own mains policy, charge stages, MSW timing, and fault language on a familiar MOSFET + transformer stage:

  1. Dealers got more consistent products
  2. Factories got variants without new analogue nets
  3. Competitors could see the pattern on the bench and replicate the architecture
  4. The market standardised on MCU + MOSFET + transformer MSW, then later moved to sine — but control never went back to pure analogue

Limits — and honesty about roles

MCU MSW was not the end of history. Waveform is not pure sine; 8-bit ISR PWM has finite headroom; monolithic Assembly is powerful to ship and harder for large teams to extend. Later generations addressed waveform with newer MCUs and SPWM.

Roles: I led the MOSFET inverter generation and the decision to adopt MCU control, including involvement in selecting PIC16F72, and learned Assembly for practical understanding. Production firmware was written by the software team. This series will show real listings as engineering evidence, with credit where the lines of code belong.

What comes next

Part 02 — deep dive: modified square-wave inverter control from production source (timer reload, half-cycle length, pulse-width law).
Part 03+ — charger algorithms, protection policy, and later MCU generations from the archive.

The hinge year remains clear: analogue MOSFET inverter in 2000 → PIC16F72 MCU launch in 2001 → industry follows the microcontroller path.

— Kunwer Sachdev

Found this story worth sharing? Post it to your network — it takes one click:

Kunwer Sachdev — Inverter Man of India and Solar Man of India

Kunwer Sachdev — known as the Inverter Man of India and the Solar Man of India. Founder of Su-Kam, holder of 106 technology filings, mentor to Su-vastika and other technology companies, and founder of Kunwwer.ai for AI software development. Read his story →

⚡ Backup Calculator