Stop Mode - Samsung S3F80P5X User Manual

S3f80p5 microcontrollers
Table of Contents

Advertisement

S3F80P5_UM_ REV1.00

STOP MODE

STOP mode is invoked by executing the instruction 'STOP', after setting the stop control register (STOPCON). In
STOP mode, the operation of the CPU and all peripherals is halted. That is, the on-chip main oscillator stops and
the current consumption can be reduced. All system functions stop when the clock "freezes," but data stored in
the internal register file is retained. STOP mode can be released in one of two ways: by a system reset or by an
external interrupt. After releasing from STOP mode, the value of stop control register (STOPCON) is cleared
automatically.
PROGRAMMING TIP – To Enter STOP Mode
This example shows how to enter the stop mode.
ORG
JP
ENTER_STOP:
LD
STOP
NOP
NOP
NOP
RET
ORG
JP
ORG
START:
LD
MAIN:
NOP
CALL
LD
JP
0000H
Reset address
T, START
STOPCON, #0A5H
0100H-3
T, START
0100H
; Reset address
BTCON, #03
; Clear basic timer counter.
ENTER_STOP ; Enter the STOP mode
BTCON,#02H ; Clear basic timer counter.
T,MAIN
RESET
8-11

Advertisement

Table of Contents
loading

Table of Contents