Samsung KS57C2308 Manual page 226

Single-chip cmos microcontroller
Table of Contents

Advertisement

TIMERS and TIMER/COUNTERS
BASIC TIMER MODE REGISTER (BMOD)
The basic timer mode register, BMOD, is a 4-bit write-only register. Bit 3, the basic timer start control bit, is also
1-bit addressable. All BMOD values are set to logic zero following
is set to the longest interval. (BT counter operation cannot be stopped.) BMOD settings have the following
effects:
— Restart the basic timer;
— Control the frequency of clock signal input to the basic timer;
— Determine time interval required for clock oscillation to stabilize following the release of stop mode by an
interrupt.
By loading different values into the BMOD register, you can dynamically modify the basic timer clock frequency
during program execution. Four BT frequencies, ranging from fxx/2
reset value is logic zero, the default clock frequency setting is fxx/2
The most significant bit of the BMOD register, BMOD.3, is used to restart the basic timer. When BMOD.3 is set
to logic one (enabled) by a 1-bit write instruction, the contents of the BT counter register (BCNT) and the BT
interrupt request flag (IRQB) are both cleared to logic zero, and timer operation is restarted.
The combination of bit settings in the remaining three registers — BMOD.2, BMOD.1, and BMOD.0 —
determines the clock input frequency and oscillation stabilization interval.
BMOD.2
BMOD.1
0
0
0
1
1
0
1
1
NOTES:
1.
Clock frequencies and stabilization intervals assume a system oscillator clock frequency (fxx) of 4.19 MHz.
2.
fxx = selected system clock frequency.
3.
Oscillation stabilization time is the time required to stabilize clock signal oscillation after stop mode is released. The
data in the table column "Oscillation Stabilization" can also be interpreted as "Interrupt Interval Time."
4.
The standard stabilization time for system clock oscillation following a
11-4
Table 11-2. Basic Timer Mode Register (BMOD) Organization
BMOD.3
1
Restart basic timer; clear IRQB, BCNT, and BMOD.3 to "0"
BMOD.0
0
1
1
1
RESET
12
to fxx/2
12
.
Basic Timer Restart Bit
Basic Timer Input Clock
12
fxx/2
(1.02 kHz)
9
fxx/2
(8.18 kHz)
7
fxx/2
(32.7 kHz)
5
fxx/2
(131 kHz)
RESET
KS57C2308/P2308/C2316/P2316
and interrupt request signal generation
5
, are selectable. Since BMOD's
Interval Time
20
2
/fxx (250 ms)
17
2
/fxx (31.3 ms)
15
2
/fxx (7.82 ms)
13
2
/fxx (1.95 ms)
is 31.3 ms at 4.19 MHz.

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

P2308C2316P2316Ks57p2308Ks57c2316Ks57p2316

Table of Contents