NEC 78K0S/K 1+ Series Application Note page 21

Sample program (16-bit timer/event counter 00) interval timer
Hide thumbs Also See for 78K0S/K 1+ Series:
Table of Contents

Advertisement

<4> TOC00
0
0
0
0
<5> TMC00
0
0
0
0
<6> Px, PMx, PMCx
78K0S/KA1+ and 78K0S/KB1+ microcontrollers
78K0S/KY1+ and 78K0S/KU1+ microcontrollers
CHAPTER 4 SETTING METHODS
0
1
1
1
1
1
x
0
1
1
1
1
Px Register
P31 = 0
P21 = 0
Application Note U18887EJ1V0AN
Timer output control
1
Enables output.
Timer F/F control upon match between CR000 and TM00
1
Enables inversion operation.
Timer output F/F status setting
0
1
Resets (0) timer output F/F.
Timer F/F control upon match between CR010 and TM00
0
Disables inversion operation.
One-shot pulse output operation control
0
Successive pulse output mode
One-shot pulse output trigger control by software
0
Without one-shot pulse output trigger
Overflow detection of 16-bit timer counter 00 (TM00)
0
Overflow not detected.
Operation
TO00 inversion
mode and clear
timing selection
mode selection
0
Clear & start
Match between
occurs upon
TM00 and
match between
CR000 or
TM00 and
match between
CR000
TM00 and
CR010
1
Match between
TM00 and
CR000, match
between TM00
and CR010, or
valid edge of
TI000 pin
PMx Register
PM31 = 0
PM21 = 0
Interrupt
request
generation
<When used as
compare
register>
Generated
upon match
between TM00
and CR000, or
match between
TM00 and
CR010
<When used as
capture
register>
Generated at
valid edge of
TI000 pin or
TI010 pin
PMCx Register
Setting not required
PMC21 = 0
21

Advertisement

Table of Contents
loading

This manual is also suitable for:

78k0s/ka1+78k0s/kb1+78k0s/ku1+78k0s/ky1+

Table of Contents