
DS80C400 Network Microcontroller
43 of 96
Table 6. External Memory Addressing Pin Assignments
SIGNAL
MULTIPLEXED (
MUX
= 0)
DEMULTIPLEXED (
MUX
= 1)
A21 P6.5
P6.5
A20 P6.4
P6.4
A19 P4.7
P4.7
A18 P4.6
P4.6
A17 P4.5
P4.5
A16 P4.4
P4.4
A15–A8 P2.7–P2.0
P2.7–P2.0
ADDRESS
A7–A0
P0.7–P0.0 P7.7–P7.0
DATA
D7–D0 P0.7–P0.0
P0.7–P0.0
CE7
P6.3 P6.3
CE6
P6.2 P6.2
CE5
P6.1 P6.1
CE4
P6.0 P6.0
CE3
P4.3 P4.3
CE2
P4.2 P4.2
CE1
P4.1 P4.1
CHIP ENABLES
CE0
P4.0 P4.0
PCE3
P5.7 P5.7
PCE2
P5.6 P5.6
PCE1
P5.5 P5.5
PERIPHERAL CHIP
ENABLES
PCE0
P5.4 P5.4
Combined Program/Data Memory Access
The DS80C400 can be configured to allow data memory access (MOVX) to the program memory area. This feature
might be useful, for example, when modifying lookup tables or supporting in-application programming of code
space. Setting any of the
PDCE7-4
(MCON1.3-0) or
PDCE3-0
(MCON.3-0) bits enables combined program/data
memory access and causes the corresponding chip-enable (
CE
) signal to function for both MOVC and MOVX
operations. When combined program/data memory access is enabled, the peripheral chip-enable (
PCE
) signals
previously assigned to that data memory space are disabled. Write access to combined program and data memory
blocks is controlled by the
WR
signal, and read access is controlled by the
PSEN
signal. This feature is especially
useful if the design achieves in-system reprogrammability through external flash memory, in which a single device
is accessed through both MOVC instructions (program fetch) and MOVX write operations (updates to code
memory).
Figure 1
demonstrates how setting
PDCE
bits can alter external memory data access.
When combined program/data memory access is enabled, there is the potential to inadvertently modify code that a
user meant to leave fixed. For this reason, the DS80C400 provides the ability to write protect the first 0–16kB of
memory accessible through each of the chip enables
CE3
,
CE2
,
CE1
, and
CE0
. The write-protection feature for
each chip enable is invoked by setting the appropriate WPE3–0 (MCON2.3-0) bit. The protected range is defined
by the WPR2–0 (MCON2.6–4) bit settings as shown in
Table 7
. Any MOVX instructions attempting to write to a
protected area are disallowed and set the write-protected interrupt flag (WPIF–MCON2.7), causing a write-protect
interrupt if enabled.
Table 7. Write-Protection Range
MCON2.6–4
RANGE PROTECTED (kB)
000
0 to 2
001
0 to 4
010
0 to 6
011
0 to 8
100
0 to 10
101
0 to 12
110
0 to 14
111
0 to 16
Содержание DS80C400
Страница 6: ...DS80C400 Network Microcontroller 6 of 96...
Страница 7: ...DS80C400 Network Microcontroller 7 of 96...
Страница 15: ...DS80C400 Network Microcontroller 15 of 96...
Страница 16: ...DS80C400 Network Microcontroller 16 of 96 l...
Страница 22: ...DS80C400 Network Microcontroller 22 of 96 OW PIN TIMING...