25 MCU’s Hardware Option
The MCU’s Hardware Option defines the device behavior which cannot be programmed or controlled by software.
The hardware options can only be programmed by a Universal Programmer, the “Megawin 8051 Writer” or the
“Megawin 8051 ICP Programmer”. After whole-chip erased, all the hardware options are left in “disabled” state
and there is no ISP-memory and IAP-memory configured. The MPC82G516A has the following Hardware
Options:
ISP-memory Space:
The ISP-memory space is specified by its starting address. And, its higher boundary is limited by the Flash end
address, i.e., 0xFFFF. (See Section 20.1.2: Flash Configuration.)
IAP-memory Space:
The IAP-memory space is specified by its lower boundary. And, its higher boundary is limited by the starting
address of the ISP-memory space if the ISP-memory is configured; otherwise, its higher boundary is located
at address 0xFFFF. (See Section 20.1.2: Flash Configuration.)
LVFWP:
[enabled]: Flash write protection is enabled during IAP/ISP processing when LDO output power falls below VCPF
(i.e., 2.4V).
[disabled]: No Flash write protection.
ENLVRC:
[enabled]: Enable brownout reset when LDO output power falls below VCPF (2.4V).
[disabled]: No brownout reset when LDO output power falls below VCPF (2.4V).
HWBS:
[enabled]: When powered up, MCU will boot from ISP-memory if ISP-memory is configured.
[disabled]: MCU always boots from AP-memory.
SB:
[enabled]: Code dumped on a universal Writer or Programmer is scrambled for security.
[disabled]: Not scrambled.
LOCK:
[enabled]: Code dumped & Device ID read on a universal Writer or Programmer is locked to 0xFF for security.
[disabled]: Not locked.
OSCDN:
[enabled]: Oscillating gain is reduced down for EMI reduction.
[disabled]: Oscillating gain is normal.
HWBS2:
[enabled]: Not only power-up but also any reset will cause MCU to boot from ISP-memory if ISP-memory is
configured.
[disabled]: Where MCU boots from is determined by HWBS.
ENLVRO:
[enabled]: Enable brownout reset when VDD power falls below VOPF (3.7V).
[disabled]: No brownout reset when VDD power falls below VOPF (3.7V).
ENROSC:
[enabled]: Enable built-in RC oscillator.
[disabled]: Disable built-in RC oscillator.
WDSFWP:
[enabled]: The special function register WDTCR will be software-write-protected except the bit CLRW.
[disabled]: The special function register WDTCR is free to be written by software.
119
MPC82G516A Data Sheet
MEGAWIN