Z8FMC04100 ZILOG [Zilog, Inc.], Z8FMC04100 Datasheet - Page 236

no-image

Z8FMC04100

Manufacturer Part Number
Z8FMC04100
Description
Z8 Encore-R Motor Control Flash MCUs
Manufacturer
ZILOG [Zilog, Inc.]
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
Z8FMC04100AKEG
Manufacturer:
Zilog
Quantity:
490
Part Number:
Z8FMC04100AKEG
Manufacturer:
Zilog
Quantity:
10 000
Part Number:
Z8FMC04100AKSG
Manufacturer:
Zilog
Quantity:
245
Part Number:
Z8FMC04100AKSG
Manufacturer:
Zilog
Quantity:
10 000
Part Number:
Z8FMC04100QKEG
Manufacturer:
Zilog
Quantity:
490
Part Number:
Z8FMC04100QKSG
Manufacturer:
Zilog
Quantity:
979
214
Z8 Encore!
Product Specification
Program Memory
Flash Write/Erase Protection
®
Motor Control Flash MCUs
Chip Debugger or by using the Flash Controller Bypass mode. Refer to the
chapter on page 223 and the
tion.
The Z8FMC16100 Series Flash MCU device provides several levels of protection against
accidental program and erasure of the contents of Flash memory. This protection is pro-
vided by the Flash Controller unlock mechanism, the Flash Sector Protect Register, and
the Flash Write Protect option bit.
Flash Controller Unlock Mechanism
At Reset, the Flash Controller locks to prevent accidental program or erasure of Flash
memory. To program or erase Flash memory, the Flash Controller must be unlocked. After
unlocking the Flash Controller, the Flash can be programmed or erased. Any value written
by user code to the Flash Control Register or Page Select Register out of sequence will
lock the Flash Controller.
The proper steps to unlock the Flash Controller from user code are:
1. Write
2. Write the page to be programmed or erased to the Page Select Register.
3. Write the first unlock command
4. Write the second unlock command
5. Rewrite the page written in Step 2 to the Page Select Register.
Flash Sector Protection
The Flash Sector Protect Register can be configured to prevent sectors from being pro-
grammed or erased. After a sector is protected, it cannot be unprotected by user code. The
Flash Sector Protect Register is cleared after reset and any previously written protection
values are lost. User code must write this register in their initialization routine if they want
to enable sector protection.
The Flash Sector Protect Register shares its Register File address with the Page Select
Register. The Flash Sector Protect Register is accessed by writing the Flash Control Regis-
ter with 5EH. After the Flash Sector Protect Register is selected, it can be accessed at the
Page Select Register address. When user code writes the Flash Sector Protect Register,
bits can only be set to 1. Therefore, sectors can be protected, but not unprotected, via reg-
ister Write operations. The Flash Sector Protect Register is deselected by writing any
value to the Flash Control Register.
The steps to setup the Flash Sector Protect Register from user code are:
1. Write
00h
00h
to the Flash Control Register to reset the Flash Controller.
to the Flash Control Register to reset the Flash Controller.
P R E L I M I N A R Y
On-Chip Debugger
73h
8Ch
to the Flash Control Register.
to the Flash Control Register.
chapter on page 241 for more informa-
PS024604-1005
Option Bits

Related parts for Z8FMC04100