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

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
PS024604-1005
Caution:
Byte Programming
2. Write
3. Read and/or write the Flash Sector Protect Register, which now resides at Register
4. Write
Flash Write Protection Option Bit
The Flash Write Protect option bit can be enabled to block all program and erase opera-
tions from user code. Refer to the
When the Flash Controller is unlocked, Writes to Program Memory from user code will
program a byte into the Flash if the address is located in the unlocked page. An erased
Flash byte contains all ones (
change bits from one to zero. To change a Flash bit (or multiple bits) from zero to one
requires a Page Erase or Mass Erase operation.
Byte programming can be performed using the eZ8 CPU’s LDC or LDCI instructions.
Refer to the eZ8 CPU User Manual (UM0128) for a description of the LDC and LDCI
instructions.
While the Flash Controller programs Flash memory, the eZ8 CPU idles, but the system
clock and on-chip peripherals continue to operate. Interrupts that occur when a program-
ming operation is in progress are serviced after the programming operation is complete. To
exit programming mode and lock the Flash Controller, write
Register.
User code cannot program Flash Memory on a page that lies in a protected sector. When
user code writes memory locations, only addresses located in the unlocked page are pro-
grammed. Memory Writes outside of the unlocked page are ignored.
The proper steps to program Flash memory from user code are:
1. Write
2. Write the page of memory to be programmed 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.
6. Write Program Memory using LDC or LDCI instructions to program Flash.
7. Repeat Step 6 to program additional memory locations on the same page.
Each memory location must not be programmed more than twice before an erase is re-
quired.
File address
5Eh
00h
00h
to the Flash Control Register to select the Flash Sector Protect Register.
to the Flash Control Register to return the Flash Controller to its reset state.
to the Flash Control Register to reset the Flash Controller.
FF9h
.
P R E L I M I N A R Y
FFh
). The programming operation can only be used to
Option Bits
73h
8Ch
to the Flash Control Register.
to the Flash Control Register.
chapter on page 223 for more information.
Z8FMC16100 Series Flash MCU
00h
Product Specification
to the Flash Control
Byte Programming
215

Related parts for Z8FMC04100