NEC UPD703116 User Manual page 717

32-bit single-chip microcontrollers
Table of Contents

Advertisement

(1) Timer 2 input filter mode registers 0 to 5 (FEM0 to FEM5)
The FEMn registers are used to specify timer 2 input pin filtering and to set the clock source of noise
elimination times and the input valid edge.
These registers can be read/written in 8-bit or 1-bit units.
Cautions 1. Even
TO24/INTP24, and TCLR2/INTP25 pins as INTP20, INTP21, INTP22, INTP23, INTP24, and
INTP25 without using timer 2, be sure to clear the STFTE bit of timer 2 clock stop
register 0 (STOPTE0) to 0.
2. Before setting the INTP2n pin to the trigger mode, set the PMC2 register. If the PMC2
register is set after the FEMn register has been set, an illegal interrupt may occur as
soon as the PMC2 register is set (n = 0 to 5).
3. The noise elimination function starts operating by setting the CEEn bit of the TCRE0
register to 1 (enabling count operations).
7
6
FEM0
DFEN00
0
7
6
FEM1
DFEN01
0
7
6
FEM2
DFEN02
0
7
6
FEM3
DFEN03
0
7
6
FEM4
DFEN04
0
7
6
FEM5
DFEN05
0
Bit position
Bit name
7
DFEN0n
Remark
n = 0 to 5
CHAPTER 14 PORT FUNCTIONS
when
using
the
TI2/INTP20,
5
4
3
0
0
EDGE010
INTP20
5
4
3
0
0
EDGE011
INTP21
5
4
3
0
0
EDGE012
INTP22
5
4
3
0
0
EDGE013
INTP23
5
4
3
0
0
EDGE014
INTP24
5
4
3
0
0
EDGE015
INTP25
Specifies the INTP2n pin filter.
0: Analog filter
1: Digital filter
Caution When the DFEN0n bit = 1, the sampling clock of the digital filter is f
(clock of TM20 and TM21 selected by PRM02 register).
User's Manual U14492EJ5V0UD
TO21/INTP21,
2
1
0
EDGE000
TMS010
TMS000
2
1
0
EDGE001
TMS011
TMS001
2
1
0
EDGE002
TMS012
TMS002
2
1
0
EDGE003
TMS013
TMS003
2
1
0
EDGE004
TMS014
TMS004
2
1
0
EDGE005
TMS015
TMS005
Function
TO22/INTP22,
TO23/INTP23,
Address
Initial value
FFFFF630H
00H
Address
Initial value
FFFFF631H
00H
Address
Initial value
FFFFF632H
00H
Address
Initial value
FFFFF633H
00H
Address
Initial value
FFFFF634H
00H
Address
Initial value
FFFFF635H
00H
XXTM2
(1/2)
717

Advertisement

Table of Contents
loading

Table of Contents