Operating Modes; Rfc Counters - Epson S1C31D50 Technical Manual

Cmos 32-bit single chip
Hide thumbs Also See for S1C31D50:
Table of Contents

Advertisement

20 R/F CONVERTER (RFC)
4. Configure the following RFC_nCTL register bits:
- RFC_nCTL.EVTEN bit
- RFC_nCTL.SMODE[1:0] bits
- Set the RFC_nCTL.MODEN bit to 1. (Enable RFC operations)

20.4.2 Operating Modes

The RFC has two oscillation modes that use the RFC internal oscillation circuit and an external clock input mode
for measurements using an external input clock. The channels may be configured to a different mode from others.
Oscillation mode
The oscillation mode is selected using the RFC_nCTL.SMODE[1:0] bits.
DC oscillation mode for resistive sensor measurements
This mode performs measurements by DC driving the reference resistor and the resistive sensor to oscillate.
Set the RFC into this mode when a DC bias resistive sensor is connected. This mode allows connection of
two resistive sensors to a channel.
AC oscillation mode for resistive sensor measurements
This mode performs measurements by AC driving the reference resistor and the resistive sensor to oscillate.
Set the RFC into this mode when an AC bias resistive sensor is connected. One resistive sensor only can be
connected to a channel.
External clock input mode (event counter mode)
This mode enables input of external clock/pulses to perform counting similar to the internal oscillation clock.
A sine wave may be input as well as a square wave (for the threshold value of the Schmitt input, refer to "R/F
Converter Characteristics, High level Schmitt input threshold voltage V
old voltage V
" in the "Electrical Characteristics" chapter). This function is enabled by setting the RFC_nCTL.
T-
EVTEN bit to 1. The measurement procedure is the same as when the internal oscillation circuit is used.

20.4.3 RFC Counters

The RFC incorporates two counters shown below.
Measurement counter (MC)
The measurement counter is a 24-bit presettable up counter. Counting the reference oscillation clock and the
sensor oscillation clock for the same duration of time using this counter minimizes errors caused by voltage,
and unevenness of IC quality, as well as external parts and on-board parasitic elements. The counter values
should be corrected via software after the reference and sensor oscillations are completed according to the sen-
sor characteristics to determine the value being currently detected by the sensor.
Time base counter (TC)
The time base counter is a 24-bit presettable up/down counter. The time base counter counts up with TCCLK
during reference oscillation to measure the reference oscillation time. During sensor oscillation, it counts down
from the reference oscillation time and stops the sensor oscillation when it reaches 0x000000. This means that
the sensor oscillation time becomes equal to the reference oscillation time. The value counted during reference
oscillation should be saved in the memory. It can be reused at subsequent sensor oscillations omitting reference
oscillations.
Counter initial value
To obtain the difference between the reference oscillation and sensor oscillation clock count values from the
measurement counter simply, appropriate initial values must be set to the measurement counter before starting
reference oscillation.
20-4
(Enable/disable external clock input mode)
(Select oscillation mode)
Seiko Epson Corporation
and Low level Schmitt input thresh-
T+
S1C31D50/D51 TECHNICAL MANUAL
(Rev. 2.00)

Advertisement

Table of Contents
loading

This manual is also suitable for:

S1c31d51

Table of Contents