BAT32G1x9 user manual | Chapter 6 Universal timer unit Timer4/8
165 / 1149
Rev.1.02
6.3.14
Noise filter enable registers (NFEN1/NFEN2).
The NFEN1/NFEN2 registers set whether the noise filter is used for the input signal of each channel timer input
pin. For pins that need to be noise-cancelling, the corresponding position "1" must be placed to make the noise filter
effective. When the noise filter is active, the 2 clocks are detected to be consistent after synchronization through the
operating clock (f
MCK
) of the target channel; When the noise filter is invalid, synchronization is performed only
through the operating clock (f
MCK
) of the target channel.
The NFEN1/NFEN2 registers are set by the 8-bit memory operation instructions. After generating a reset
signal, the value of the NFEN1/NFEN2 register changes to "00H".
Note: For details, please refer to "6.5.1(2)
To select
the effective edge of the input signal of
the TImn
pin (
CCSmn=1)",
and
Figure 6-22
noise filter allowable register 1 (NFEN1).
Address:
0x40040471
After reset:
00H
R/W
symbol
7
6
5
4
3
2
1
0
NFEN1
0
0
0
0
TNFEN03
TNFEN02
TNFEN01
TNFEN00
Address:
0x40040472
After reset:
00H
R/W
symbol
7
6
5
4
3
2
1
0
NFEN2
TNFEN17
TNFEN16
TNFEN15
TNFEN14
TNFEN13
TNFEN12
TNFEN11
TNFEN10
TNFEN03
the usage (or not) of input signal noise filters at the TI03 pin or RxD0 pin
Note
0
Noise filter OFF
1
Noise filter ON
TNFEN02
The input signal noise filter of the TI02 pin is used or not
0
Noise filter OFF
1
Noise filter ON
TNFEN01
The input signal noise filter of the TI01 pin is used or not
0
Noise filter OFF
1
Noise filter ON
TNFEN00
The input signal noise filter of the TI00 pin is used or not
0
Noise filter OFF
1
Noise filter ON
Note The applicable pin can be switched by setting the ISC1 bit of the input switching control register (ISC). ISC1=0: The
noise filter of the TI03 pin can be selected. ISC1=1: The noise filter of the RxD0 pin can be selected.
TNFEN1n
Ti1n pin input signal noise filter is not used or not
0
Noise filter OFF
1
Noise filter ON
n=0~7
Note: The availability of timer input
/output pins for a channel varies by product. For details, please refer to
"Timer
Input
/Output Pins
for Each Product in
Table
6-2".