The CAN controller inside a PIC18F2680 is hardware, but everything that makes the node useful — which identifiers it listens to, what the eight data bytes mean, how the scaling works — is written in firmware that gets loaded into those registers at boot. That is why a locked PIC18F2680 is a firmware problem before it is a silicon problem.
The PIC18F2680 is a 28-pin enhanced-flash device with 64 KB of program memory, 3,328 bytes of SRAM and 1,024 bytes of data EEPROM. What separates it from the general-purpose members of the family is the ECAN module: CAN 2.0B active at up to 1 Mbps, three dedicated transmit buffers, two receive buffers and six programmable buffers, plus an EUSART that handles LIN. It turns up in body controllers, HVAC bridges, battery management boards and small industrial gateways — equipment that outlives the company that designed it.
The Peripheral Is Documented. The Node Is Not.
Every register in the ECAN block is public. The datasheet will tell you that this buffer carries an identifier and that mask filters it. None of that tells you what identifier 0x18FEF100 means on this particular board, whether byte 3 is a temperature in tenths of a degree or a raw ADC count, or which message triggers the relay.
That map is not in the silicon. It is in the code that configures the acceptance filters, fills the transmit buffers and parses each received frame. Which is why reassembling a DBC file for a node you cannot get documentation for usually starts with a firmware read rather than with a CAN analyser and a lot of guessing.
What “Reading the Software” Actually Returns
It does not return C source. Compilers discard symbol names, and the linker output is instruction words. What comes back is:
- Program flash as an Intel HEX file — 32,768 words for this part
- Config words from
0x300000–0x30000D, including oscillator mode and brown-out settings - Data EEPROM, 1,024 bytes, usually the calibration and counter block
- A disassembly listing with code and data regions separated, so the ECAN initialisation sequence can be read
With that, an engineer can recover the filter table, the message timing and the scaling arithmetic. Recognising the arithmetic is fast: PIC18 code that multiplies by a constant and shifts is easy to spot, and CAN scaling almost always looks like that.
Two Memories, Two Different Failures
Reading flash alone produces a node that boots and transmits but reports nonsense. The reason is the EEPROM: offset values, serial numbers, sensor trim and last-known state typically live there, and the application reads them at start-up without checking.
A read-out that stops at flash is therefore not a partial success — it is a file that will run and lie to you. Reading firmware from an MCU properly means both regions, with the EEPROM preserved byte-for-byte rather than regenerated from defaults.
What Decides Whether It Is Possible
Three things, in this order:
Which protection bits are set. CP0–CP3 cover the program blocks, CPB covers the boot block, CPD covers the EEPROM. A device with EEPROM protection off hands over the calibration block without any package work at all.
The mask revision. Early and late revisions of the same part number do not always respond to the same access approach. The device ID at 0x3FFFFE distinguishes them, and it is read before any commitment is made.
The package and the board. In-circuit serial programming through PGC/PGD on RB6 and RB7 is the cheap path. When the array is gated, invasive MCU extraction becomes necessary, and a part that has been potted or mounted on a dense board raises the risk on both the die and the board.
The same logic applies across the family — a PIC18F4680 is the 40-pin version with the same ECAN block, so a read-out there follows an identical sequence with a wider I/O set. The code protection bits are configured the same way on both.
Before You Send the Board
Two details save a week: the full ordering code including the temperature and package suffix, and a photograph of the marking. The suffix changes the mask revision more often than the base part number does.
Tell us what the node drives and how it is powered, and the answer on feasibility comes back with a scope rather than a range. Contact us with the part number to start, and an NDA can be in place before any file changes hands.
Service scope and next steps
Before we quote a PIC job we confirm the silicon revision and the protection configuration, because both decide whether the on-chip programming area can be read directly or needs a different approach. The full scope of what we handle, how a project runs from electrical integrity test to delivered file, and the payment terms are described on our service capabilities page.
Ready to extract this PIC firmware?
Send us the part number and a short description of what you need. Free evaluation, fixed quotation, and a reply within one business day.

Leave a Reply