PostHeaderIcon MSP430G2313: The Voltage Window That Decides Whether a Session Works

Wide supply range is a marketing property until the day a session fails for no visible reason. The part will execute across a range of roughly two volts, and the flash controller will program across a narrower one. A product designed to run near the bottom of the range sits inside the first window and outside the second.

That asymmetry produces a specific and under-diagnosed failure: a device that connects, reads, responds to the debug interface and refuses every attempt to write or erase.

Two windows, not one

The distinction that matters is between the supply needed to execute and the supply needed to move charge.

Executing requires enough voltage for the core and the oscillator to run within their specified timing. That threshold is low, and a product designed for a battery can sit comfortably at it.

Programming requires enough voltage for the charge pump inside the flash controller to place charge on the floating gate deterministically. That threshold is higher, and it is higher still for erase, which is the operation that most often fails silently.

Operation Supply requirement Failure mode when too low
Execute Lowest of the three Unreliable timing, resets
Read flash Low, but above execute in some parts Read returns corrupt data
Program Higher Write reports success, cell does not hold
Erase Highest Partial erase, or no erase at all

The third row is the dangerous one. A programming operation at insufficient voltage may complete without an error flag, because the controller’s verification threshold is also affected. The device then holds a location that reads correctly at the moment of verification and loses its charge over hours or days.

Recognising that this is the problem

The signature is a session where the interface is perfectly healthy and the memory operations are not.

  1. The device identifies itself correctly and the debug connection is stable.
  2. Reads return plausible data, so the interface and the address path work.
  3. Erase either reports failure or reports success and leaves the array unchanged.
  4. Programming appears to work and verification fails, or passes and fails after a power cycle.

Step four separates a voltage problem from a protocol problem. A protocol problem fails immediately and consistently. A voltage problem produces operations that succeed and results that do not persist.

Why raising the supply is not a trivial fix

The obvious response is to supply the device at the top of its range for the session. That works electrically and creates a different problem: every signal on the board is now referenced to a higher level.

Two consequences follow. Inputs driven by other devices on the board may now be above the level those devices can source, so a bus that was working stops working. And the debug interface, which is referenced to the device’s own supply, changes its thresholds, which can break the connection that was previously stable.

There is also a risk that is easy to miss: raising the supply above the level the product’s own regulator provides means the device is being operated outside the conditions it was designed for, and any measurement taken during the session describes a device that is not the product.

The isolation approach

The approach that avoids both problems is to isolate the device from the rest of the board for the duration of the memory operations.

Lift the supply pin and feed it from the bench, leaving the rest of the board at its own level. The device sees the voltage it needs for programming, the other devices see their own, and the debug interface follows the device.

This requires the supply pin to be accessible and the board to tolerate being powered in two parts, which is not always true. Where it is not, the second-best option is to accept the elevated supply and verify everything twice: once immediately and once after a delay, because a marginal programming operation is the failure that only appears later.

What to check before blaming the supply

Two other causes produce the same signature and are cheaper to eliminate.

The clock. Flash programming operations are timed from a clock, and if the clock is wrong the timing is wrong. On a device whose calibration is missing from the information region, the internal oscillator can be far enough off that programming pulses are too short.

The array state. Programming can only clear bits; erasing sets them. An attempt to program a location that was not erased first produces a location that appears to hold the logical AND of the old and new values, which frequently looks like a programming failure and is an ordering failure.

Symptom Most likely cause
Everything works, nothing persists Supply below programming threshold
Verify fails immediately after write Location not erased first
Some locations write, others do not Clock, or worn cells
Works at room temperature, fails warm Marginal cells or supply margin

What this means for the extraction plan

Supply is not a detail to be settled at the end. It determines which operations are available, and the operations available determine the procedure.

Before starting, establish the product’s operating voltage, the device’s programming threshold, and whether the two overlap. Where they do not, plan for isolation before the first session rather than discovering the need halfway through a write that cannot be undone.

The same consideration applies to a restoration: a duplicate programmed at the top of the range and installed in a product running at the bottom may hold its content correctly, or may not. Programming at the highest voltage the device permits, then verifying at the product’s actual voltage, is the discipline that catches the difference.

Related reading

FAQ

Can a device read at a voltage where it cannot program? Yes. Reading needs less than programming.

Does a successful write guarantee the data is there tomorrow? Not at the edge of the supply range.

Is isolation always possible? Only where the supply pin is accessible and the board tolerates split power.

Why does the clock affect programming? The programming pulse width is derived from it.

Conclusion

Wide supply range means two thresholds, not one, and the product’s operating point may sit between them. Establish the product voltage and the programming threshold before the session, plan isolation where they do not overlap, and verify a written image at the voltage the product will actually use.

Comments are closed.