Programming Notes - Epson S1C88650 Technical Manual

Hewlett-packard cmos 8-bit single chip microcomputer technical manual
Table of Contents

Advertisement

5 PERIPHERAL CIRCUITS AND THEIR OPERATION (I/O Ports)
RPTOUT2: 00FF38H•D4
RPTOUT3: 00FF39H•D4
___________ ___________
Controls the TOUT2/TOUT3 (inverted TOUT2/
TOUT3) signal output.
When "1" is written:
When "0" is written: DC output
Reading:
RPTOUT2 and RPTOUT3 are the output control
___________
registers for the TOUT2 and TOUT3 signals,
respectively. When RPTOUT2 (or RPTOUT3) is set
___________
___________
to "1", the TOUT2 (or TOUT3) signal is output from
the P17 port terminal. When "0" is set, P17 is set for
DC output.
At this time, settings of the I/O control register
IOC17 and data register P17D become invalid.
At initial reset, RPTOUT is set to "0" (DC output).
Note: If RPTOUT2 and RPTOUT3 are set to "1" at
the same time, RPTOUT3 is effective.
Furthermore, if the programmable timer is set
in 16-bit mode, the TOUT2 signal cannot be
output.
FOUTON: 00FF40H•D3
Controls the FOUT (f
OSC1
signal output.
When "1" is written: FOUT signal output
When "0" is written: DC output
Reading:
FOUTON is the output control register for FOUT
signal. When "1" is set, the FOUT signal is output
from the P16 port terminal and when "0" is set, P16
is set for DC output. At this time, settings of the I/
O control register IOC16 and data register P16D
become invalid.
At initial reset, FOUTON is set to "0" (DC output).
FOUT0–FOUT2: 00FF40H•D4–D6
FOUT signal frequency is set as shown in Table
5.7.6.2.
Table 5.7.6.2 FOUT frequency settings
FOUT2
FOUT1
FOUT0
1
1
1
1
1
0
1
0
0
1
0
1
0
0
0
0
f
OSC1
f
OSC3
At initial reset, this register is set to "0" (f
60
_________
TOUT signal output
Valid
___________
________
/f
dividing clock)
OSC3
Valid
FOUT frequency
1
f
/ 8
OSC3
0
f
/ 4
OSC3
1
f
/ 2
OSC3
0
f
/ 1
OSC3
1
f
/ 8
OSC1
0
f
/ 4
OSC1
1
f
/ 2
OSC1
0
f
/ 1
OSC1
:
OSC1 oscillation frequency
:
OSC3 oscillation frequency
/1).
OSC1

5.7.7 Programming notes

(1) When changing the port terminal in which the
pull-up resistor is enabled from LOW level to
HIGH, a delay in the waveform rise time will
occur depending on the time constant of the
pull-up resistor and the load capacitance of the
terminal. It is necessary to set an appropriate
wait time for introduction of an I/O port. Make
this wait time the amount of time or more
calculated by the following expression.
Wait time = R
x (C
IN
R
: Pull up resistance Max. value
IN
C
: Terminal capacitance Max. value
IN
(2) Since the special output signals (TOUT0–3,
________________ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
TOUT2–3, and FOUT) are generated
asynchronously from the output control
registers (PTOUT0–3, RPTOUT2–3, and
FOUTON), when the signals is turned ON or
OFF by the output control register settings, a
hazard of a 1/2 cycle or less is generated.
(3) When the FOUT frequency is made "f
you must turn on the OSC3 oscillation circuit
before outputting FOUT. A time interval of
several msec to several 10 msec, from the
turning ON of the OSC3 oscillation circuit to
until the oscillation stabilizes, is necessary, due
to the oscillation element that is used.
Consequently, if an abnormality occurs as the
result of an unstable FOUT signal being output
externally, you should allow an adequate
waiting time after turning ON of the OSC3
oscillation, before turning outputting FOUT.
(The oscillation start time will vary somewhat
depending on the oscillator and on the
externally attached parts. Refer to the oscillation
start time example indicated in Chapter 8,
"ELECTRICAL CHARACTERISTICS".)
(4) The SLP instruction has executed when the
special output signals (TOUT0–3, TOUT2–3,
and FOUT) are in the enable status, an unstable
clock is output for the special output at the time
of return from the SLEEP state. Consequently,
when shifting to the SLEEP state, you should set
the special output signal to the disable status
prior to executing the SLP instruction.
EPSON
+ load capacitance on the
IN
board) x 1.6 [sec]
OSC3
________________ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
S1C88650 TECHNICAL MANUAL
/n",

Advertisement

Table of Contents
loading

Table of Contents