Clone MCU ATmega461A Software from its embedded memory include flash and eeprom, extract the source code from its memory to copy the firmware to other blank Microcontroller ATmega461A;
The ATMEGA461A has four sources of reset:
Power-on Reset. The MCU is reset when the supply voltage is below the Power-on
Reset threshold (VPOR)
External Reset. The MCU is reset when a low-level is present on the RESET pin for more than 500 ns.
Watchdog Reset. The MCU is reset when the Watchdog Timer period expires, and the Watchdog is enabled.
Brown-out Reset. The MCU is reset when the supply voltage VCC is below the Brown-out Reset threshold (VBOT).
During reset, all I/O registers are then set to their initial values, and the program starts execution from address $000. The instruction placed in address $000 must be an RJMP (relative jump) instruction to the reset handling routine.
If the program never enables an interrupt source, the interrupt vectors are not used, and regular program code can be placed at these locations and faciliate the process of Microcontroller memory reverse engineering.
The circuit diagram in Figure 12 shows the reset logic. Table 4 and Table 5 define the timing and electrical parameters of the reset circuitry.
Note that the register file is unchanged by a reset. Table 5 shows the start-up times from Reset. When the CPU wakes up from Powerdown, only the clock-counting part of the start-up time is used.
The Watchdog Oscillator is used for timing the real-time part of the start-up time. The number Watchdog Oscillator cycles used for each time-out is shown in Table 6.
The frequency of the Watchdog Oscillator is voltage dependent as shown in the Electrical Characteristics section on page 64. The device is shipped with CKSEL = “00”.
A Power-on Reset (POR) pulse is generated by an On-chip Detection circuit. The detection level is nominally defined in Table 4. The POR is activated whenever VCC is below the detection level. The POR circuit can be used to trigger the Start-up Reset, as well as detect a failure in supply voltage.