Z8F042AHH020EG Zilog, Z8F042AHH020EG Datasheet - Page 170

IC ENCORE XP MCU FLASH 4K 20SSOP

Z8F042AHH020EG

Manufacturer Part Number
Z8F042AHH020EG
Description
IC ENCORE XP MCU FLASH 4K 20SSOP
Manufacturer
Zilog
Series
Encore!® XP®r
Datasheet

Specifications of Z8F042AHH020EG

Core Processor
Z8
Core Size
8-Bit
Speed
20MHz
Connectivity
IrDA, UART/USART
Peripherals
Brown-out Detect/Reset, LED, LVD, POR, PWM, Temp Sensor, WDT
Number Of I /o
17
Program Memory Size
4KB (4K x 8)
Program Memory Type
FLASH
Eeprom Size
128 x 8
Ram Size
1K x 8
Voltage - Supply (vcc/vdd)
2.7 V ~ 3.6 V
Data Converters
A/D 7x10b
Oscillator Type
Internal
Operating Temperature
-40°C ~ 105°C
Package / Case
20-SSOP
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Other names
269-4156
Z8F042AHH020EG
PS022517-0508
Byte Programming
Caution:
Follow the steps below to setup the Flash Sector Protect Register from user code:
1. Write
2. Write
3. Read and/or write the Flash Sector Protect Register which is now at Register File
4. Write
Flash Write Protection Option Bit
The Flash Write Protect option bit can block all program and erase operations from user
code. For more information, see
When the Flash Controller is unlocked, writes to Flash Memory from user code programs
a byte into the Flash if the address is located in the unlocked page. An erased Flash byte
contains all 1s (
change a Flash bit (or multiple bits) from zero to one requires a Page Erase or Mass Erase
operation.
Byte Programming is accomplished using the eZ8 CPU’s LDC or LDCI instructions.
Refer to eZ8 CPU Core User Manual (UM0128) for a description of the LDC and LDCI
instructions.
While the Flash Controller programs the 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 once 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 is located in a protected sector.
When user code writes memory locations, only addresses located in the unlocked page are
programmed. Memory writes outside of the unlocked page are ignored.
Follow the steps below to program the Flash from user code:
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
address
Each memory location must not be programmed more than twice before an
erase occurs.
00H
5EH
00H
00H
FF9H
to the Flash Control Register to reset the Flash Controller.
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.
FFH
.
). The programming operation is used to change bits from 1 to 0. To
Option Bits
73H
8CH
to the Flash Control Register.
to the Flash Control Register.
on page 163.
Z8 Encore! XP
00H
Product Specification
to the Flash Control
®
F0822 Series
Flash Memory
157

Related parts for Z8F042AHH020EG