r5f21368sdfp Renesas Electronics Corporation., r5f21368sdfp Datasheet - Page 636

no-image

r5f21368sdfp

Manufacturer Part Number
r5f21368sdfp
Description
Renesas Mcu R8c Family / R8c/3xt-a Series
Manufacturer
Renesas Electronics Corporation.
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
r5f21368sdfp#V0
Manufacturer:
Renesas Electronics America
Quantity:
10 000
Under development
R8C/36T-A Group
R01UH0240EJ0001 Rev.0.01
Apr 28, 2011
Figure 25.8
25.3.1.5
25.3.1.6
The primary counter is a 16-bit up counter and the secondary counter is a 16-bit up/down counter.
The primary counter increments when a high level is detected at the CMOS input to CHxA while each channel
is measured.
Two types of measurement data, the primary counter value when a low level is detected at CHxA for the first
time (data 1 hereafter) and the primary counter value when the secondary counter value reaches 0 (data 2
hereafter), are stored in the register.
This secondary counter is activated in measurement STEP 2, and decrements the value set by bits SCS0 to
SCS15 in the TSCUSCS register when a low level is detected and increments when a high level is detected.
However, the counter does not increment any value exceeding the value set by bits SCS0 to SCS15.
The PRE and Main measurement results are reflected in the primary counter.
Only the Main measurement result is reflected in the secondary counter.
The conditions for transition from measurement STEP 1 to measurement STEP 2 are as follows:
• The Main measurement result is determined as low when PRE measurement is turned OFF.
• The PRE measurement result is determined as low and the Main measurement result is determined as low
Either CHxA0 or CHxA1 is selected for CHxA by bits CHXAS00 to CHXAS08, CHXAS10, CHXAS11,
CHXAS16 to CHXAS25, CHXAS27, CHXAS28, and CHXAS31 to CHXAS35 in registers TSCHSEL0 to
TSCHSEL2.
Table 25.12 shows the Image of Counter Operation and Measurement Data when PRE Measurement is Turned
OFF. Table 25.13 shows the Image of Counter Operation and Measurement Data when PRE Measurement is
Turned ON.
In measurement STEP 1, the primary counter values when a low level is detected for the first time are stored in
bits DBR0 to DBR15 in the TSCUDBR register (data 1).
In measurement STEP 2, the primary counter values when the secondary counter value reaches 0 are stored in
bits PRC0 to PRC15 in the TSCUPRC register (data 2). Stored data 1 and data 2 are transferred as the
measurement data to RAM using the DTC in Status 22.
06B1Ch
06B1Ah
when PRE measurement is turned ON.
Preliminary document
Specifications in this document are tentative and subject to change.
Counter Operation
Measurement Data
Measurement Data Transfer
TSCU register
TSCUDBR
TSCUPRC
Store measurement data 1
Store measurement data 2
Transfer
Transfer data 1 and data 2
to RAM using DTC
25. Sensor Control Unit
Page 605 of 725

Related parts for r5f21368sdfp