
ADuC7023
Data Sheet
| Page 42 of 96
REMAP Register
Name:
REMAP
Address:
0xFFFF0220
Default value:
0x00
Access:
Read/write
Table 36. REMAP MMR Bit Designations
Bit
Name
Description
7 to 5
Reserved.
4
Read-only bit. Indicates the size of the
Flash/EE memory available. If this bit is set,
only 32 kB of Flash/EE memory is available.
3
Read-only bit. Indicates the size of the
SRAM memory available. If this bit is set,
only 4 kB of SRAM is available.
2 to 1
JTAFO
Read only bits. See the P0.0/BM
description for further details.
If = [00], then P0.1/P0.2/P0.3 are
configured as JTAG pins.
If = [1x], then P0.1/P0.2/P0.3 are
configured as GPIO pins.
These bits are configured by the kernel
after any reset sequence and depend on
the state of P0.0 during the last reset
sequence.
0
Remap
Remap bit.
This bit is set by the user to remap the
SRAM to Address 0x00000000.
This bit is cleared automatically after reset
to remap the Flash/EE memory to Address
0x00000000.
Reset Operation
There are four kinds of reset: external, power-on, watchdog
expiration, and software force. The RSTSTA register indicates
the source of the last reset, and RSTCLR allows clearing of the
RSTSTA register. These registers can be used during a reset
exception service routine to identify the source of the reset. If
RSTSTA is null, the reset is external.
The RSTCFG register allows different peripherals to retain their
state after a watchdog or software reset.
RSTSTA Register
Name:
RSTSTA
Address:
0xFFFF0230
Default value: 0x01
Access:
Read/write
Table 37. RSTSTA MMR Bit Designations
Bit
Description
7 to 3
Reserved.
2
Software reset.
This bit is set by the user to force a software reset.
This bit is cleared by setting the corresponding bit
in RSTCLR.
1
Watchdog timeout.
This bit is set automatically when a watchdog
timeout occurs.
This bit is cleared by setting the corresponding bit
in RSTCLR.
0
Power-on reset.
This bit is set automatically when a power-on reset
occurs.
This bit is cleared by setting the corresponding bit
in RSTCLR.
RSTCLR Register
Name:
RSTCLR
Address:
0xFFFF0234
Default value: 0x00
Access:
Write
Function:
Note that to clear the RSTSTA register, users
must write the Value 0x07 to the RSTCLR
register.
RSTCFG Register
Name:
RSTCFG
Address:
0xFFFF024C
Default value: 0x00
Access:
Read/write
Table 38. RSTCFG MMR Bit Designations
Bit
Description
7 to 3
Reserved. Always set to 0.
2
This bit is set to 1 to configure the DAC outputs to retain
their state after a watchdog or software reset.
This bit is cleared for the DAC pins and registers to
return to their default state.
1
Reserved. Always set to 0.
0
This bit is set to 1 to configure the GPIO pins to retain
their state after a watchdog or software reset.
This bit is cleared for the GPIO pins and registers to
return to their default state.
Rev. E