
84
EPSON
S1C60N05 TECHNICAL MANUAL
APPENDIX: TECHNICAL INFORMATION
Setting up counter
initial value
The capacitor value and the oscillation frequency by the standard
resistance are determined in the previous section.
This section describes how to set the initial value of the A/D
converter's up counter.
For A/D converter principals, see the technical manual for the
S1C60N05.
fx'tal:
fCR1:
fCR2:
65535 - CUPI:
CUPS:
65535:
tA:
Crystal oscillation frequency
Standard oscillation frequency
Thermistor oscillation frequency
Up counter initial value
Thermistor count value
MAX. counter value
Count time
65535
0
65535 - CUPI
CUPS
fCR1
tA
fCR2
tA
Up counter
65535
0
tA
fx'tal
Up-down counter
fx'tal
Fig. A.2
Figure A.2 shows the relationship between the up counter and the
up-down counter.
The following conditions should be satisfied:
Condition (A): The up-down counter should not overflow during an
up-count
Condition (B): The up counter should not overflow during a down-
count
With these conditions, the up counter initial value can be obtained
with the following equations:
Table A.2
Item
Obtain the up
counter initial value
from the condition
(A)
Obtain the up
counter initial value
from the condition
(B)
Description
From the condition (A) the following equation is
derived:
65535 >
tAfx'tal =
65535 - CUPI
fCR1
× fx'tal
CUPI > ( 1-
fCR1
fx'tal
)
× 65535
Initial value
≤ 65535 - CUPI ...(a)
From the condition (B) the following equation is
derived:
65535 > CUPS =
tA
×fCR2(3)
=
fCR2
fCR1
×(65535 - CUPI)
CUPI = ( 1 -
fCR1
fCR2(3)
)
×65535
Initial value
≤ 65535 - CUPI ...(b)
From the above equations (a) and (b) the initial
value can be determined.
Thermistor 103AT usage example
From fx'tal = 65 kHz, fCR1 = 4.5–13.5 kHz
CUPI = ( 1 -
4.5
×103
65
×103
)
×65535 ≈ 59571
CUPI = ( 1 -
13.5
×103
65
×103
)
× 65535 ≈ 50707
Initial value
≤ 65535 - 59571 = 5964 ...(a)'
fCR1 = 4.5–13.5 kHz,
fCR2 = 85 kHz (IC operational maximum)
CUPI = ( 1 -
4.5
×103
85
×103
)
×65535 ≈ 60608
CUPI = ( 1 -
13.5
×103
85
×103
)
×65535 ≈ 53837
Initial value
≤ 65535 - 60608 = 4927 ...(b)'
From (a)' and (b)', the initial value should be set less
than 4927. Here, it is set to 3000.
(Under the conditions, if the initial value is smaller,
the precision is higher.)
The initial value (3,000) for the up counter is derived from the
above equations.