Documente Academic
Documente Profesional
Documente Cultură
Abstract
This Application Note provides an overview of the Flash Memory and Flash Controller in Zilogs Z8 Encore! family of microcontrollers. It also describes a method to bypass the Flash Controller. The Flash Controller can be bypassed to allow direct control of Flash signals via the GeneralPurpose Input/Output (GPIO) pins. The Flash Memory can be programmed faster by controlling the Flash Memory signals directly and is beneficial when programming a large number of devices. This method is used by third party vendors who manufacture using gang programmers.
These three bytes are: 0x80initiates an auto-baud calculation of the DGB interface data and clock rate. 0xF0OCD Write Testmode Register command. 0x04Data to be written to the Testmode Register enables Flash Controller BYPASS mode. For more information on the On-Chip Debugger, refer to the Z8 Encore! device-specific product specification.
YADDR[5:0]
IN
IN OUT IN IN IN IN IN IN IN IN IN IN
AN011706-0608
Page 2 of 10
AN011706-0608
Page 3 of 10
Registers
XADDR[9:0]
YADDR[5:0] Data Input/Output PortA0 PortA1 PortA2 PortA3 PortA4 PortA5 PortA6 PortA7 DIN[7:0]
When writing data into the registers, the data is latched in on the rising edge of XIN.
During row programming, you must ensure that the cumulative programming high voltage period does not exceed the specification limits for a row. Zilog recommends that row programming must be used onlyone time per row and not in combination with single-byte writes to the same row without first erasing it.
Min 5 5 100 10 20
Max 45 45 4
Unit ns ns ns s s s s ns
AN011706-0608
Page 5 of 10
Min 30 20 20 1 10 200
Max 40 8
Unit s ns ns s ms ms ms
is the cumulative high voltage programming time for a single row before the next erase.
Caution: The same address (byte) cannot be programmed more than twice before the next erase.
XADDR
XE YADDR YE SE OE
TXA
DOUT
TOA TYA
AN011706-0608
Page 6 of 10
XADDR
TADH
TNVS
TPROG TADS
TPGH
NVSTR
TPGS THV
TNVH
TRCV
XADDR
XE
ERASE
TNVS
NVSTR
TERASE TNVH TRCV
AN011706-0608
Page 7 of 10
XADDR
XE
MAS1
ERASE
TNVS
NVSTR
TME TNVH1 TRCV
AN011706-0608
Page 8 of 10
Autobaud at 19.2 kbps OSC CTL reg Write OCD 0x80h Write OCD 0x08, 0x0f, 0x86, 0x01, 0xE7
E7
18
OSC CTL = A4 Write OCD 0x08, 0x0f, 0x86, 0x01, 0xA4 PB3 is now the clock source Send break
START
RESET
Sync to PB3
Wr Testmode Register
SEL = 0x04h DIO = 0x80h CLK Wr/Rd Memory ? Set ADDRH Write SEL = 0x00h CLK DIO = Addr[15:8] Set ADDRL SEL = 0x01h CLK DIO = Addr[7:0] Assert XE & PROG SEL = 0x03h DIO = 0x84h
5 s
Row Writ e Program ming Loop No, increment YADDR Yes Deassert PROG SEL = 0x03h DIO = 0x81h CLK
20 ns 5 s
Wr Done
Deassert XE & NVSTR SEL = 0x03h DIO = 0x00h CLK SEL = 0x07h DIO = HIGHZ
Recovery STOP
1 s
Rd Loop Done
Yes
AN011706-0608
Page 9 of 10
Warning: DO NOT USE IN LIFE SUPPORT LIFE SUPPORT POLICY ZILOG'S PRODUCTS ARE NOT AUTHORIZED FOR USE AS CRITICAL COMPONENTS IN LIFE SUPPORT DEVICES OR SYSTEMS WITHOUT THE EXPRESS PRIOR WRITTEN APPROVAL OF THE PRESIDENT AND GENERAL COUNSEL OF ZILOG CORPORATION.
As used herein Life support devices or systems are devices which (a) are intended for surgical implant into the body, or (b) support or sustain life and whose failure to perform when properly used in accordance with instructions for use provided in the labeling can be reasonably expected to result in a significant injury to the user. A critical component is any component in a life support device or system whose failure to perform can be reasonably expected to cause the failure of the life support device or system or to affect its safety or effectiveness.
Document Disclaimer 2008 by Zilog, Inc. All rights reserved. Information in this publication concerning the devices, applications, or technology described is intended to suggest possible uses and may be superseded. ZILOG, INC. DOES NOT ASSUME LIABILITY FOR OR PROVIDE A REPRESENTATION OF ACCURACY OF THE INFORMATION, DEVICES, OR TECHNOLOGY DESCRIBED IN THIS DOCUMENT. Z I L O G A L S O D O E S N O T A S S U M E L I A B I L I T Y F O R I N T E L L E C T U A L P R O P E RT Y INFRINGEMENT RELATED IN ANY MANNER TO USE OF INFORMATION, DEVICES, OR TECHNOLOGY DESCRIBED HEREIN OR OTHERWISE. The information contained within this document has been verified according to the general principles of electrical and mechanical engineering. Z8, Z8 Encore!, and Z8 Encore! XP are registered trademarks of Zilog, Inc. All other product or service names are the property of their respective owners.
AN011706-0608
Page 10 of 10