
(12 March 2002) REV.
P
rC
ADuC834
–
38
–
PRELIMINARY TECHNICAL DATA
USING T HE FLASH/E E PROGRAM ME MORY
T he 62kByte Flash/EE Program Memory array is mapped
into the lower 62kBytes of the 64 K bytes program space
addressable by the ADuC834, and is used to hold user code
in typical applications.
T he program memory Flash/EE memory arrays can be pro-
grammed in three ways, namely:
(1) Serial Downloading (In-Circuit Programming)
T he ADuC834 facilitates code download via the standard
UART serial port. T he ADuC834 will enter serial download
mode after a reset or power cycle if the
PSEN
pin is pulled low
through an external 1k
resistor. Once in serial download
mode, the user can download code to the full 62kBytes of flash/
EE program memory while the device is in circuit in its target
application hardware.
A PC serial download executable is provided as part of the
ADuC834 QuickStart development system. T he Serial Down-
load protocol is detailed in a MicroConverter Applications
Note uC004.
(2) Parallel Programming
T he parallel programming mode is fully compatible with conven-
tional third party Flash or EEPROM device programmers. A
block diagram of the external pin configuration required to sup-
port parallel programming is shown in Figure 27. In this mode,
Ports 0, 1, and 2 operate as the external data and address bus
interface, ALE operates as the Write Enable strobe, and Port 3 is
used as a general configuration port that configures the device for
various program and erase operations during parallel program-
ming.
T able X III. F lash/E E Memory Parallel Programming Modes
Port 3 Pins
0.7
0.6
0.5
0.4
0.3
0.2 0.1 Mode
Programming
X
X
X
X
0
0
0
Erase Flash/EE Program,
Data, and Security Modes
Read Device Signature/ID
Program Code Byte
Program Data Byte
Read Code Byte
Read Data Byte
Program Security Modes
Read/Verify Security Modes
Redundant
X
X
X
X
X
X
X
All other codes
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
1
0
1
0
X
X
0
0
0
0
0
1
1
0
1
1
1
1
0
0
1
0
0
1
1
0
1
V
DD
GND
P3
P S E N
RESET
P0
P1
P2
ALE
ADuC834
5V
PROGRAM MODE
(SEE TABLE XIII)
GND
PROGRAM
DATA
(D0
D7)
PROGRAM
ADDRESS
(A0
A13)
(P2.0 = A0)
(P1.7 = A13)
WRITE ENABLE
STROBE
COMMAND
ENABLE
P3.0
NEGATIVE
EDGE
P3.6
ENTRY
SEQUENCE
V
DD
Figure 27. Flash/EE Memory Parallel Programming
(3) User Download Mode (ULOAD)
As shown in figure 28 the 62kBytes of user program memory
is split into two seperate blocks. T he upper 6kBytes of the
program memory (E000h to F7FFh) is only programmable
via serial download or parallel programming. T he lower
56kBytes (0000h to DFFFh) is also programmable by a
third method, user download (ULOAD) mode.
Programming the flash/EE program memory via is de-
scribed in more detail in the description of ECON and
also in technote uC0X X .
FFFFH
E000H
DFFFH
0000H
USER BOOTLOADER SPACE.
THE USER BOOTLOADER CAN BE PRO-
GRAMMED VIA THE KERNEL PROGRAM
OR PARALLEL PROGRAMMING BUT IS
READONLY TO USER CODE
6 KBYTE
F800H
F7FFH
USER DOWNLOAD SPACE
EITHER THE KERNEL PROGRAM OR
USER CODE (IN ULOAD MODE) CAN
WRITE TO THIS SPACE.
KERNEL PROGRAM
THE KERNEL PROGRAM CAN DOWN-
LOAD CODE TO THE FULL 62 KBYTES OF
FLASH/EE PROGRAM MEMORY.
56 KBYTE
2 KBYTE
62 KBYTES
OF USER
CODE
Figure 28. Flash/EE Program Memory Map
F lash/E E Program Memory Security
T he ADuC 834 facilitates three modes of Flash/EE program
memory security. T hese modes can be independently activated,
restricting access to the internal code space. T hese security
modes can be enabled as part of serial download protocol as
described in technote uC004 or via parallel programming. T he
security modes available on the ADuC834 are described as
follows:
Lock Mode
T his mode locks the code memory, disabling parallel program-
ming of the program memory. However, reading the memory in
parallel mode and reading the memory via a MOVC command
from extrenal memory is still allowed.
T his mode is deactivated by initiating a
‘
code-erase
’
command
in serial download or parallel programming modes.
Secure Mode
T his mode locks the code memory, disabling parallel programming
of the program memory. Reading/Verifying the memory in
parallel mode and reading the internal memory via a MOVC
command from external memory is also disabled.
T his mode is deactivated by initiating a
“
code-erase
”
command
in serial download or parallel programming modes.
Serial Safe Mode
T his mode disables serial download capability on the device. If
Serial Safe mode is activated and an attempt is made to reset the
part into serial download mode, i.e., RESET asserted and
de-asserted with
PSEN
low, the part will interpret the serial down-
load reset as a normal reset only. It will therefore not enter serial
download mode but only execute a normal reset sequence.
Serial Safe mode can only be disabled by initiating a code-
erase command in parallel programming mode.