Specifications

S1C6S2N7 TECHNICAL SOFTWARE EPSON II-23
CHAPTER 3: PERIPHERAL CIRCUITS (Special Use Output Ports)
Table 3.3.3
Mask option and register
selection
• Internal divided frequency output (FOUT)
When output port R00 is set to FOUT output, fosc or clock
frequency divided into fosc is generated. Clock frequency
may be selected individually for F1–F4, from among 5 types
by mask option; a clock frequency is then selected from 4
types (i.e., F1–F4) through XFOUT0 and XFOUT1 (0FDH D0
and D1) registers and is generated.
The clock frequency types are shown in Table 3.3.3.
For example mask option is set to Set 4:
Label Mnemonic/operand Comment
LD Y,0FDH ;Set address of FOUT
;frequency control register
LD MY,0011B ;Select 16,384 Hz
LD Y,0F3H ;Set address of output port
OR MY,0001B ;Turn on FOUT
: :
AND MY,1110B ;Turn off FOUT
Mask
Option
Sets
Clock Frequency (Hz)
Set 4
256
(fosc/128)
512
(fosc/64)
1,024
(fosc/32)
2,048
(fosc/16)
512
(fosc/64)
1,024
(fosc/32)
2,048
(fosc/16)
8,192
(fosc/4)
1,024
(fosc/32)
2,048
(fosc/16)
4,096
(fosc/8)
4,096
(fosc/8)
8,192
(fosc/4)
16,384
(fosc/2)
4,096
(fosc/8)
32,768
(fosc/1)
2,048
(fosc/16)
4,096
(fosc/8)
8,192
(fosc/4)
16,384
(fosc/2)
Set 1
Set 2
Set 3
Set 5
(D1,D0)=(0,0) (D1,D0)=(0,1) (D1,D0)=(1,0) (D1,D0)=(1,1)
F1 F2 F3 F4
fosc = 32.768 kHz