SPC122A Sunplus Technology Co., Ltd., SPC122A Datasheet - Page 8

no-image

SPC122A

Manufacturer Part Number
SPC122A
Description
SOUND CONTROLLER WITH 128KB FLASH MEMORY
Manufacturer
Sunplus Technology Co., Ltd.
Datasheet
6.12. Power Saving Mode
The SPC122A provides a power savings mode (Standby mode) for
those applications that require very low stand-by current.
enter standby mode, the Wake-Up Register should be enabled
and then stop the CPU clock by writing the STOP CLOCK Register.
The CPU will then go to the stand-by mode. In such a mode,
RAM and I/Os will remain in their previous states CPU wakes up.
T1 = 1 / (F
6.13. Timer/Counter
The SPC122A contains two 12-bit timer/counters, TMA and TMB
respectively. TMA can be specified as a timer or a counter, but
TMB can only be used as a timer. In the timer mode, TMA and
TMB are re-loaded up-counters.
$0FFF to $0000, the carry signal leads the timer to reload the
user’s pre-set value and continue to count again. At the same
time, the carry signal will generate the INT signal if the
corresponding bit is enabled in the INT ENABLE Register. If TMA
is specified as a counter, users can reset by loading #0 into the
counter. After the counter has been activated, the value of the
counter can also be read from the counters at the same time.
Timer/Counter Clock source can be selected as follows:
© Sunplus Technology Co., Ltd.
Proprietary & Confidential
MODE SELECT REGISTER
TIMER CLOCK SELECTOR
TMA
TMB
Timer/Counter
CPU
12-BIT COUNTER
CPU CLK
12-BIT TIMER
12-BIT TIMER
), Tw ≧ 65536 x T1
Reset
Sleep
CPU CLOCK (T) or T/4
T/64, T/8192, T/65536 or EXT
CLK
T or T/4
TMA only, select timer or counter
Select T or T/4
When timer overflows from
Clock Source
T1
Wake-up
To
FIG. 1
T w
8
Port IOD7 - 0 is the only wake-up source in the SPC122A. After
the SPC122A wakes up, the internal CPU will go to the RESET
State (Tw ≧ 65536 x T1) and then continue to execute the rest of
program.
FIG.1).
6.14. Volume Control Function
A volume control function provides 8-step volume controller to
control current D/A output. The volume level can be controlled
through software programming. For more information on how to
adjust a volume level, please refer to SPC programming guide.
Differences between SPC121A and SPC122A
Work range
ROM type
ROM SIZE
I/O port
SIO
PWM Output
Multiphase Output
Volume Control
Wakeup Reset will not influence RAM or I/Os (See
F
F
@VDD=2.4V-3.6V
@VDD=3.6V-5.5V
CPU
CPU
(max.)=4.0MHz
(max.)=6.0MHz
SPC121A
Mask
120K
21
"
"
"
"
Preliminary Version: 0.9
P
P
SPC122A
F
F
@VDD=2.4V-3.6V
@VDD=3.6V-5.5V
r
CPU
CPU
r
e
e
(max.)=2.0MHz
(max.)=6.0MHz
SPC122A
l
l
i
i
Flash
128K
SEP. 07, 2001
m
m
28
#
#
#
#
i
i
n
n
a
a
r
r
y
y

Related parts for SPC122A