NEC 78K0S/KB1+ User Manual page 387

8-bit single-chip microcontrollers
Hide thumbs Also See for 78K0S/KB1+:
Table of Contents

Advertisement

Function
Details of
Function
16-bit
PRM00:
timer/event
Prescaler mode
counter 00
register 00
Interval timer
External event
counter
Pulse width
measurement
Square-wave
output
PPG output
One-shot pulse
output with
external trigger
APPENDIX D LIST OF CAUTIONS
The sampling clock used to eliminate noise differs when a TI000 valid edge is
used as the count clock and when it is used as a capture trigger. In the former
case, the count clock is f
, and in the latter case the count clock is selected
XP
by prescaler mode register 00 (PRM00). The capture operation is not
performed until the valid edge is sampled and the valid level is detected twice,
thus eliminating noise with a short pulse width.
When using P31 as the input pin (TI010) of the valid edge, it cannot be used
as a timer output pin (TO00). When using P31 as the timer output pin (TO00),
it cannot be used as the input pin (TI010) of the valid edge.
Changing the CR000 setting during TM00 operation may cause a malfunction.
To change the setting, refer to 6.5 Cautions Related to 16-bit Timer/Event
Counter 00 (17) Changing compare register during timer operation.
When reading the external event counter count value, TM00 should be read.
To use two capture registers, set the TI000 and TI010 pins.
The measurable pulse width in this operation example is up to 1 cycle of the
timer counter.
Changing the CR000 setting during TM00 operation may cause a malfunction.
To change the setting, refer to 6.5 Cautions Related to 16-bit Timer/Event
Counter 00 (17) Changing compare register during timer operation.
Changing the CRC0n0 setting during TM00 operation may cause a
malfunction. To change the setting, refer to 6.5 Cautions Related to 16-bit
Timer/Event Counter 00 (17) Changing compare register during timer
operation.
Values in the following range should be set in CR000 and CR010.
0000H < CR010 < CR000 ≤ FFFFH
The cycle of the pulse generated through PPG output (CR000 setting value +
1) has a duty of (CR010 setting value + 1)/(CR000 setting value + 1).
Do not set the OSPT00 bit to 1 again while the one-shot pulse is being output.
To output the one-shot pulse again, wait until the current one-shot pulse
output is completed.
When using the one-shot pulse output of 16-bit timer/event counter 00 with a
software trigger, do not change the level of the TI000 pin or its alternate-
function port pin.
Because the external trigger is valid even in this case, the timer is cleared and
started even at the level of the TI000 pin or its alternate-function port pin,
resulting in the output of a pulse at an undesired timing.
Do not set 0000H to the CR000 and CR010 registers.
16-bit timer counter 00 starts operating as soon as a value other than 00
(operation stop mode) is set to the TMC003 and TMC002 bits.
User's Manual U17446EJ3V1UD
Cautions
(5/19)
Page
pp.
95, 124
pp.
95, 124
p.96
pp.
100, 124
pp.
101, 122
pp.
102, 104,
105, 107
p.109
p.111
pp.
112, 124
pp.
112, 124
pp.
114, 120
pp.
114, 120
pp.
115, 117
pp.
116, 118
387

Advertisement

Table of Contents
loading

Table of Contents