Basic Timer Control Register (Btcon) - Samsung KS86C6004 Manual

Table of Contents

Advertisement

BASIC TIMER and TIMER 0

BASIC TIMER CONTROL REGISTER (BTCON)

The basic timer control register, BTCON, is used to select the input clock frequency, to clear the basic timer
counter and frequency dividers, and to enable or disable the watchdog timer function.
A reset clears BTCON to '00H'. This enables the watchdog function and selects a basic timer clock frequency of
f
/4096. To disable the watchdog function, you must write the signature code '1010B' to the basic timer
OSC
register control bits BTCON.7–BTCON.4.
The 8-bit basic timer counter, BTCNT, can be cleared at any time during normal operation by writing a "1" to
BTCON.1. To clear the frequency dividers for both the basic timer input clock and the timer 0 clock, you write a
"1" to BTCON.0.
MSB
Watchdog timer enable bits:
1010B
Other value = Enable watchdog
10-2
BASIC TIMER CONTROL REGISTER (BTCON)
.7
.6
.5
= Disable watchdog
function
function
Figure 10-1. Basic Timer Control Register (BTCON)
KS86C6004/C6008/P6008 MICROCONTROLLER (Preliminary Spec)
DCH, R/W
.4
.3
.2
Basic timer counter clear bit:
0 = No effect
1 = Clear BTCNT
Basic timer input clock selection bits:
00 = f OSC /4096
01 = f OSC /1024
10 = f OSC /128
11 = Invalid selection
.1
.0
LSB
Divider clear bit for basic
timer and timer 0:
0 = No effect
1 = Clear both dividers

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ks86c6008Ks86p6008

Table of Contents