Counter A Control Register (Cacon); Counter A Registers - Samsung S3F80JB User Manual

8-bit cmos microcontrollers
Table of Contents

Advertisement

S3F80JB

COUNTER A CONTROL REGISTER (CACON)

The counter A control register, CACON, is located in F3H, Set 1, Bank 0, 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
MSB
Counter A Input Clock Selection Bits:
00 = f
OSC
01 = f
/2
OSC
10 = f
/4
OSC
11 = f
/8
OSC
Counter A Interrupt Time 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 Control Register (CACON)
F3H, Set 1, Bank 0, R/W
.7
.6
.5
.4
Figure 12-2. Counter A Control Register (CACON)
Counter A Data High-Byte Register (CADATAH)
F4H, Set 1, Bank 0, R/W
MSB
.7
.6
.5
Counter A Data Low-Byte Register (CADATAL)
F5H, Set 1, Bank 0, R/W
MSB
.7
.6
.5
Figure 12-3. Counter A Registers
.3
.2
.1
.0
Counter A Output Flip-Flop Control Bit(CAOF):
0 = T-F/F is low
1 = T-F/F is high
Counter A Mode Selection Bit:
0 = One shot mode
1 = Repeating mode
Counter A Start/Stop Bit:
0 = Stop counter A
1 = Start counter A
Counter A Interrupt Enable Bit:
0 = Disable interrupt
1 = Enable interrupt
.4
.3
.2
.1
Reset Value: FFH
.4
.3
.2
.1
Reset Value: FFH
COUNTER A
LSB
.0
LSB
.0
LSB
12-3

Advertisement

Table of Contents
loading

Table of Contents