UPDI Enable with High-Voltage Override of RESET Pin
- Recommended: Reset the device before starting the HV enable sequence.
- Apply the HV signal, as described in Figure 31-5.
- Send the NVMPROG key using the
key
instruction after the first SYNC character to start programming. Locked devices will only accept the CHIPERASE key. See also section Chip Erase. - After the programming is
finished, reset the UPDI by writing the UPDI Disable (UPDIDIS) bit in the
Control B (UPDI.CTRLB) register to ‘
1
’ using theSTCS
instruction.
During power-up, the RESET signal must be released before the HV pulse can be applied. The duration of the pulse is recommended in the range from 100 μs to 1 ms before tri-stating.
When applying the rising edge of the HV pulse, the UPDI will be reset. After tri-stating, the UPDI will remain in Reset until the RESET pin is driven low by the debugger. This will release the UPDI Reset and initiate the same enable sequence, as explained in UPDI Enable with Fuse Override of RESET Pin.
When enabled by an HV pulse, only a POR will disable the UPDI configuration on the RESET pin and restore the default setting. If issuing a UPDI Disable command through the UPDIDIS bit in UPDI.CTRLB, the UPDI will be reset, and the clock request will be canceled, but the RESET pin will remain in UPDI configuration.
- If insufficient external protection is added to the UPDI pin, an ESD pulse can be interpreted by the device as a high-voltage override and enable the UPDI.
- The actual threshold voltage for the UPDI HV activation depends on VDD. See the Electrical Characteristics section for more details.