6 Functions
This chapter describes the processing status of the C33 PE Core and outlines the operation.
6.1 Transition of the Processor Status
The diagram below shows the transition of the operating status in the C33 PE Core.
Reset state
Exception
handling
Debug
exception
handling
6.1.1 Reset State
The processor is initialized when the reset signal is asserted, and then starts processing from the reset vector when
the reset signal is deasserted.
6.1.2 Program Execution State
This is a state in which the processor executes the user program sequentially. The processor state transits to another
when an exception occurs or the slp or halt instruction is executed.
6.1.3 Exception Handling
When a software or other exception occurs, the processor enters an exception handling state. The following are the
possible causes of the need for exception handling:
(1) External interrupt
(2) Software exception
(3) Address misaligned exception
(4) Zero division
(5) NMI
(6) Undefined instruction exception/ext exception
6.1.4 Debug Exception
The C33 PE Core incorporates a debugging assistance facility to increase the efficiency of software development.
To use this facility, a dedicated mode known as "debug mode" is provided. The processor can be switched from user
mode to this mode by the brk instruction or a debug exception. The processor does not normally enter this mode.
6.1.5 HALT and SLEEP Modes
The processor is placed in HALT or SLEEP mode to reduce power consumption by executing the halt or slp
instruction in the software (see Section 6.4). Normally the processor can be taken out of HALT or SLEEP mode by
NMI or an external interrupt as well as initial reset.
S1C33 FAMILY C33 PE CORE MANUAL
Exception
reti
instruction
Program execution state
Debug
exception
retd
instruction
Figure 6.1.1 Processor Status Transition Diagram
slp
instruction
trap
halt
instruction
trap
EPSON
6 FUNCTIONS
Sleep mode
Halt mode
47