Samsung S3F80JB User Manual

Page 229

Advertising
background image

S3F80JB

RESET

8-11

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

0000H Reset address

JP T,

START

ENTER_STOP:

LD STOPCON,

#0A5H

STOP

NOP

NOP

NOP

RET


ORG

0100H-3

JP T,

START

ORG

0100H

; Reset address

START:

LD

BTCON, #03 ; Clear basic timer counter.

MAIN: NOP

CALL ENTER_STOP ; Enter the STOP mode

LD

BTCON,#02H ; Clear basic timer counter.

JP

T,MAIN

Advertising