Memory control register (mcon), Emory, Ontrol – Maxim Integrated High-Speed Microcontroller Users Guide: DS80C390 Supplement User Manual

Page 59: Egister, Mcon)

Advertising
background image

High-Speed Microcontroller User’s Guide: DS80C390 Supplement

59 of 158

SPTA0
Bit 1

Serial Port 0 Transmit Activity Monitor. When set, this bit indicates that data
is currently being transmitted by serial port 0. It is cleared when the internal
hardware sets the TI_1 bit. Do not alter the Clock Divide Control bits (PMR.7-6)
while this bit is set or serial port data may be lost.

SPRA0
Bit 0

Serial Port 0 Receive Activity Monitor. When set, this bit indicates that data is
currently being received by serial port 0. It is cleared when the internal hardware
sets the RI_1 bit. Do not alter the Clock Divide Control bits (PMR.7-6) while this
bit is set or serial port data may be lost.

MEMORY CONTROL REGISTER (MCON)

7 6 5 4 3 2 1 0

SFR

C6h IDM1 IDM0 CMA

1

PDCE3 PDCE2 PDCE1 PDCE0

RT-0 RT-0 RT-0 R-1 RT-0 RT-0 RT-0 RT-0

R = Unrestricted Read, T = Timed Access Write Only, -n = Value after Reset

IDM1, IDM0
Bits 7-6

Internal Data Memory Configuration Bits 1-0. These bits establish both the
address and type (data and/or program) of the internal 4kB internal SRAM as
shown in the table below. Note that a special lockout feature prevents the use of
the Program and/or Data Memory configuration (IDM1, IDM0 = 11b) and the 10-
bit stack pointer (SA=1) at the same time. The IDM1, IDM0 bits can be set to 11b
only when the SA bit (ACON.2) is cleared, and the SA bit cannot be set while the
IDM1, IDM0 bits are equal to 11b. Attempts to modify the IDMx or SA bits in
these situations will fail and the bit(s) will remain unchanged.

IDM1

IDM0

4kB Internal SRAM

Memory Location


Memory Assignment

0 0 00F000h-00FFFFh

Data

Memory

0 1 000000h-000FFFh

Data

Memory

1 0 400000h-400FFFh

Data

Memory

1

1

400000h-400FFFh

Program and/or Data Memory

CMA
Bit 5

CAN Data Memory Assignment. This bit selects the address of the 256-byte
blocks of CAN Data Memory associated with both CAN controllers.

CMA

CAN 0 Memory Address

CAN 1 Memory Address

0 (default)

00EE00h-00EEFFh

00EF00h-00EFFFh

1 401000h-4010FFh

401100h-4011FFh

Bit 4

Reserved

PDCE3
Bit 3

Program/Data Chip Enable 3. This bit selects whether the CE3 signal functions
as the chip enable for external program memory only (PDCE=0), or as a merged
chip enable for program and data memory (PDCE=1). When PDCE=1, the
microprocessor will use the PSEN signal instead of the RD signal when reading
from external MOVX memory. The Port 4 Control register (P4CNT) determines
the memory range associated with CE3. This bit is ignored if CE3 has not been
previously enabled by the Port 4 Control register.

Advertising