S3C80A5B
COUNTER A
12-3
COUNTER A CONTROL REGISTER (CACON)
The counter A control register, CACON, is located in set 1, bank 0, F3H, and is read/write addressable. CACON
contains control settings for the following functions (see Figure 12-2):
— Counter A clock source selection
— Counter A interrupt enable/disable
— Counter A interrupt pending control (read for status, write to clear)
— Counter A interrupt time selection
Counter A Control Register (CACON)
F3H, Set 1, R/W
.7
.6
.5
.4
.3
.2
.1
.0
MSB
LSB
Counter A input clock
selection bits:
00 = f
OSC
01 = f
OSC
/2
10 = f
OSC
/4
11 = f
OSC
/8
Counter A output flip-flop
control bit:
0 = T-FF is Low
1 = T-FF is High
Counter A mode selection bit:
0 = One-shot mode
1 = Repeating mode
Counter A interrupt selection bits:
00 = Elapsed time for Low data value
01 = Elapsed time for High data value
10 = Elapsed time for Low and High
data values
11 = Invalid setting
Counter A interrupt enable bit:
0 = Disable interrupt
1 = Enable interrupt
Counter A start/stop bit:
0 = Stop counter A
1 = Start counter A
Figure 12-2. Counter A Control Register (CACON)