BAT32G1x9 user manual | Chapter 19 Universal serial communication unit
595 / 1149
Rev.1.02
19.3.16
Noise filter enable register 0 (NFEN0).
The NFEN0 register sets whether the noise filter is used for the input signal of each channel's serial data
input pin.
For pins used for SSPI or simple
I2C
communication, the corresponding position must be "0" to invalidate the
noise filter. For pins used for UART communication, 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 object channel; When the noise filter is invalid, synchronization is performed only
through the operating clock (f
MCK
) of the object channel.
The NFEN0 register is set via the 8-bit memory operation instruction.
After generating a reset signal, the value of the NFEN0 register changes to "00H".
Figure 19-20
the format of noise filter enable register 0 (NFEN0).
After reset: 00H
R/W
Symbol
7 6 5 4 3 2 1 0
NFEN0
SNFEN30
RxD
3-pin noise filter is used or not
0
Noise filter OFF
1
Noise filter ON
When used as the RxD3 pin, SNFEN3 0 must be placed at position "1".
When used as a function other than the RxD3 pin, SNFEN30 must be placed at position "0".
SNFEN20
The RxD2 pin is used or not for noise filters
0
Noise filter OFF
1
Noise filter ON
When used as the RxD2 pin, SNFEN20 must be positioned "1".
When used as a function other than the RxD2 pin, the SNFEN20 must be placed at position "0".
SNFEN10
The noise filter of the RxD1 pin is used or not
0
Noise filter OFF
1
Noise filter ON
When used as the RxD1 pin, SNFEN10 must be positioned "1".
When used as a function other than the RxD1 pin, the SNFEN10 must be placed at "0".
SNFEN00
RxD0 pin noise filter is used or not
0
Noise filter OFF
1
Noise filter ON
When used as the RxD0 pin, SNFEN00 must be placed at position "1".
When used as a function other than the RxD0 pin, the SNFEN00 must be placed at "0".
Note that
bit7,
5,
3,
1
must be
set to
"0".
0
SNFEN20
0
SNFEN20
0
SNFEN10
0
SNFEN00