SAF-C164SM Infineon Technologies, SAF-C164SM Datasheet - Page 383

no-image

SAF-C164SM

Manufacturer Part Number
SAF-C164SM
Description
16-Bit CMOS Microcontroller
Manufacturer
Infineon Technologies
Datasheet
20.3
After a reset, the modules of the C164CM must be initialized to enable their operation on
a given application. This initialization depends on the task to be performed by the
C164CM in that application and on some system properties such as operating
frequency, external circuitry connected, etc.
Typically, the following initializations should be done before the C164CM is prepared to
run the actual application software:
Memory Areas
The external bus interface can be reconfigured after an external reset because register
BUSCON0 is initialized to the slowest possible bus cycle configuration. The
programmable address windows can be enabled in order to adapt the bus cycle
characteristics to various memory areas or peripherals. Also, after a single-chip mode
reset, the external bus interface can be enabled and configured.
The internal program memory (if available) can be enabled and mapped after an
external reset in order to use the on-chip resources. After a single-chip mode reset, the
internal program memory can be remapped or disabled in order to utilize external
memory (partially or completely).
Programmable program memory can be programmed, for instance, with data received
over a serial link.
Note: Initial Flash or OTP programming will rather be done in bootstrap loader mode.
System Stack
The default setup for the system stack (size, stackpointer, upper and lower limit
registers) can be adjusted to application-specific values. After reset, registers SP and
STKUN contain the same reset value 00’FC00
00’FA00
where the system stack selected by the SP grows downwards from 00’FBFE
Note: The interrupt system, which is disabled upon completion of the internal reset,
Register Bank
The location of a register bank is defined by the context pointer (CP) and can be adjusted
to an application-specific bank before the general purpose registers (GPRs) are used.
After reset, register CP contains the value 00’FC00
the CP grows upward from 00’FC00
User’s Manual
should remain disabled until the SP is initialized.
Traps (including NMI) may occur, although the interrupt system is still disabled.
H
. With the default reset initialization, 256 words of system stack are available,
Application-Specific Initialization Routine
H
.
20-9
H
H
, while register STKOV contains
, i.e. the register bank selected by
C164CM/C164SM
System Reset
Derivatives
V1.0, 2002-02
H
.

Related parts for SAF-C164SM