Epson E0C6001 Technical Manual page 103

Cmos 4-bit single chip microcomputer
Table of Contents

Advertisement

E0C6001 TECHNICAL SOFTWARE
Table 3.3.3
Mask option and register
selection
II-22
• 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.
Mask
Option
F1
Sets
(D1,D0)=(0,0)
2 5 6
S e t 1
( f o s c / 1 2 8 )
5 1 2
S e t 2
( f o s c / 6 4 )
1 , 0 2 4
S e t 3
( f o s c / 3 2 )
2 , 0 4 8
S e t 4
( f o s c / 1 6 )
4 , 0 9 6
S e t 5
( f o s c / 8 )
For example mask option is set to Set 4:
Label
Mnemonic/operand
LD
Y,0FDH
LD
MY,0011B
LD
Y,0F3H
OR
MY,0001B
:
:
AND
MY,1110B
Clock Frequency (Hz)
F2
F3
(D1,D0)=(0,1)
(D1,D0)=(1,0)
5 1 2
1 , 0 2 4
( f o s c / 6 4 )
( f o s c / 3 2 )
1 , 0 2 4
2 , 0 4 8
( f o s c / 3 2 )
( f o s c / 1 6 )
2 , 0 4 8
4 , 0 9 6
( f o s c / 1 6 )
( f o s c / 8 )
4 , 0 9 6
8 , 1 9 2
( f o s c / 8 )
( f o s c / 4 )
8 , 1 9 2
1 6 , 3 8 4
( f o s c / 4 )
( f o s c / 2 )
Comment
;
Set address of FOUT
;
frequency control register
;
Select 16,384 Hz
;
Set address of output port
;
Turn on FOUT
;
Turn off FOUT
fosc = 32.768 kHz
F4
(D1,D0)=(1,1)
2 , 0 4 8
( f o s c / 1 6 )
4 , 0 9 6
( f o s c / 8 )
8 , 1 9 2
( f o s c / 4 )
1 6 , 3 8 4
( f o s c / 2 )
3 2 , 7 6 8
( f o s c / 1 )

Advertisement

Table of Contents
loading

Table of Contents