Memory control register 2 (mcon2), Watchdog control (wdcon) – Maxim Integrated High-Speed Microcontroller Users Guide: Network Microcontroller Supplement User Manual

Page 81

Advertising
background image

High-Speed Microcontroller User’s

Guide: Network Microcontroller

Supplement

81

Memory Control Register 2 (MCON2)

R = Unrestricted read, T = Timed-access write, -n = Value after reset

This register is not present on the DS80C41/411.

7

6

5

4

3

2

1

0

SFR D7h

WPIF

WPR2

WPR1

WPR0

WPE3

WPE2

WPE1

WPE0

RT-0

RT-0

RT-0

RT-0

RT-0

RT-0

RT-0

RT-0

WPIF
Bit 7

WPR2-0
Bits 6-4

Write-protected interrupt flag. This flag is set by hardware when an MOVX instruction attempts to write
to a write-protected memory area. Once set, this bit must be cleared by software.

Write-protected range bits 2-0. These bits specify the write-protection range when any write-protected
enable bits are set:

WPR2

WPR1

WPR0

PROTECTION RANGE(kB)

0

0

0

0–2

0

0

1

0–4

0

1

0

0–6

0

1

1

0–8

1

0

0

0–10

1

0

1

0–12

1

1

0

0–14

1

1

1

0–16

WPE3
Bit 3

WPE2
Bit 2

WPE1
Bit 1

WPE0
Bit 0

Write-protected enable 3. Setting the WPE3 to 1 enables write protection on the lower memory loca-
tions controlled by CE3 when PDCE3 (MCON.3) is set. Any MOVX write attempt to these locations sets

the WPIF bit and leaves the data unaltered. Clearing this bit to 0 disables the write protection. The pro-

tection range is specified by the WPR2-0 bits.

Write-protected enable 2. Setting the WPE2 to 1 enables write protection on the lower memory loca-
tions controlled by CE2 if PDCE2 in the MCON register is also set. Any MOVX write to these locations

sets the WPIF bit and no data is altered. Clearing this bit to 0 disables the write protection. The protec-

tion range is specified by the WPR2-0 bits.

Write-protected enable 1. Setting the WPE1 to 1 enables write protection on the lower memory loca-
tions controlled by

CE1 if PDCE1 in the MCON register is also set. Any MOVX write to these locations

sets the WPIF bit and no data is altered. Clearing this bit to 0 disables the write protection. The protec-

tion range is specified by the WPR2-0 bits.

Write-protected enable 0. Setting the WPE0 to 1 enables write protection on the lower memory loca-
tions controlled by CE0 if PDCE0 in the MCON register is also set. Any MOVX write to these locations

sets the WPIF bit and no data is altered. Clearing this bit to 0 disables the write protection. The protec-

tion range is specified by the WPR2-0 bits.

Maxim Integrated

Advertising