PostHeaderIcon Duplicating a PIC16C72: Correcting the Record on What This Part Has

Duplication work starts with knowing exactly what is inside the device, and the PIC16C72 is one of those parts where published summaries routinely disagree with the datasheet. The family tables quote maximums that belong to the largest member; feature lists get copied down the line; peripherals that exist only on the 40-pin parts get attributed to the 28-pin ones. Each of those errors propagates into a rebuild, so it is worth settling the specification first.

The part in context

The PIC16C72 is a 28-pin mid-range 8-bit microcontroller with EPROM program memory, a three-timer set, one CCP module, an SSP serial port, and a 5-channel 8-bit A/D converter.

PropertyPIC16C72Commonly misattributed
Program memory2K × 14 words“up to 8K × 14” (that is the PIC16C77)
Data memory128 bytes“up to 368 bytes” (PIC16C76/77)
I/O pins22—
Timer modulesTimer0, Timer1, Timer2—
CCP modules1—
SerialSSP (SPI / I²C)“+ USART” (PIC16C73A and up)
Parallel slave portNone“8-bit PSP” (PIC16C74A and up)
A/D converter5 channels, 8-bit—
Data EEPROMNone—
Packages28-pin SDIP, SOIC, SSOP—

Two of those corrections are structural rather than cosmetic. The USART and the parallel slave port are 40-pin features; the PIC16C72 has neither. A rebuild plan that budgets for serial firmware will be chasing code that does not exist.

The third correction is the one most often overlooked: there is no data EEPROM on this device. Everything persistent lives in program memory. That is actually good news for duplication, because it means the program array is the complete artifact — there is no second non-volatile region to capture separately, and no risk of a rebuild that restores the code but loses the stored configuration.

Copy MCU PIC16C72 Software
Copy MCU PIC16C72 Software

Memory organisation

Reset is at 0000h, interrupts at 0004h. The 13-bit program counter addresses an 8K × 14 space of which 2K is implemented, so reads above 07FFh wrap around.

Data memory is split into banks of 128 bytes, with Special Function Registers at the low addresses and General Purpose Registers above. High-use SFRs are mirrored between banks to reduce bank switching. On a part with 128 bytes and only one CCP, the firmware is typically a tight polling loop rather than an interrupt-driven design, and the code reads accordingly: few ISRs, heavy use of Timer0 or Timer1 as a time base, tight bit manipulation on PORT registers.

What duplication actually involves

Duplicating a PIC16C72 means producing blank parts that behave like the original. Four things have to travel:

ItemSourceFailure mode if omitted
Program array2K instruction wordsNothing runs
Configuration word2007hWrong oscillator mode; device may not start
ID locations2000h–2003hUsually cosmetic, occasionally checked by firmware
Device marking and package variantPhysical partFit and thermal issues, not functional

The verification step deserves emphasis. A checksum comparison proves the files match; it does not prove the device behaves. Because the C72 has an A/D converter, the honest test is to run both parts on the same board with the same stimulus and compare converter readings and output timing — not just whether the board lights up.

How protection works

The code-protect bit sits in the configuration word at 2007h, inside the same EPROM array as the program. Set, it blocks read-out of program memory over the programming interface, in-circuit serial programming included.

Because configuration and program share one array, the documented path out — erasing, which clears the bit — also erases the program. Windowed parts lose both to ultraviolet light; OTP parts have no erase at all. The approaches that preserve the code therefore work around the check rather than through it: a timed disturbance during the protection evaluation, or physical read of the floating-gate cells after decapsulation.

Neighbouring parts in the same datasheet illustrate how the feature set grows with pin count — PIC16C73A program recovery for the 28-pin part that adds the USART, and PIC16C76 firmware and PIC16C77 code recovery for the larger arrays.

Why this part gets duplicated

The PIC16C72 sits in a sweet spot for sensor and appliance control: 22 I/O, five analog inputs, a serial port, 28 pins, and a price that made it ubiquitous through the late 1990s and 2000s. Products built on it are still in service, and the design houses that wrote the firmware have largely moved on.

When a production line needs spares, the programmed OTP devices in stock are the only copy of the program. That is the honest version of what “copy MCU firmware” means in practice — not acquiring someone else’s design, but keeping a product the requester already owns in production after its documentation has been lost.

Limits worth stating upfront

  • No data EEPROM. Any settings the product persists must be in program memory, so the image is everything — but also, nothing is cached elsewhere.
  • 2K words is small. A rebuild that silently drops the last few words will still pass a casual check.
  • OTP parts are single-shot. There is no erase-and-retry.
  • A/D behaviour is not verified by a checksum. Functional comparison on hardware is the only honest test.

FAQ

Does the PIC16C72 have a USART? No. The USART appears on the PIC16C73A and above. The C72 has an SSP, configurable as 3-wire SPI or 2-wire I²C, but no asynchronous serial port.

Does it have a parallel slave port? No. The PSP is a 40-pin feature, present on the PIC16C74A and PIC16C77.

How much program memory does it have? 2K × 14 words, or 3.5 KB in byte terms. The 8K figure in family tables belongs to the PIC16C77.

Is there data EEPROM for storing calibration? None. The 128 bytes are RAM and are lost at power-down. Persistent constants must be in program memory.

Conclusion

Duplicating a PIC16C72 is straightforward in principle and error-prone in practice, because the part is usually described by its family’s maximums rather than its own specification. Get the feature set right — no USART, no parallel slave port, no data EEPROM, 2K words and 128 bytes — and the rest of the work is the standard sequence: recover the array, carry the configuration word and ID locations, and verify behaviour rather than checksums.

Comments are closed.