0X5208: P0 Port Chattering Filter Control Register (P0_Chat) - Epson S1C17001 Technical Manual

Cmos 16-bit single chip microcontroller
Table of Contents

Advertisement

10 INPUT/OUTPUT PORT (P)

0x5208: P0 Port Chattering Filter Control Register (P0_CHAT)

Register name Address
Bit
P0 Port
0x5208
D7
Chattering
(8 bits)
D6–4 P0CF2[2:0] P0[7:4] chattering filter time
Filter Control
Register
(P0_CHAT)
D3
D2–0 P0CF1[2:0] P0[3:0] chattering filter time
D7
Reserved
D[6:4]
P0CF2[2:0]: P0[7:4] Chattering Filter Time Select Bits
Set the chattering filter circuit included in the P0[7:4] ports.
D3
Reserved
D[2:0]
P0CF1[2:0]: P0[3:0] Chattering Filter Time Select Bits
Set the chattering filter circuit included in the P0[3:0] ports.
The P0 port includes a chattering filter circuit for key entry, which you can select to use or not use (and
for which you can select a verification time if used) individually for the four P0[3:0] and P0[7:4] ports
using P0CFx[2:0].
Note: • The chattering filter verification time refers to the maximum pulse width that can be
filtered. Generating an input interrupt requires a minimum input time of the verification
time and a maximum input time of twice the verification time.
• Input interrupts will not be accepted for a transition into SLEEP mode with the chatter-
ing filter left on. The chattering filter should be set off (no verification time) before ex-
ecuting the slp command.
• P0 port interrupts must be blocked when P0_CHAT register settings are being changed.
Changing the setting while interrupts are permitted may generate inadvertent P0 inter-
rupts.
• A phenomenon may occur in which the internal signal oscillates due to the time elapsed
until the signal reaches the threshold value if the input signal rise-up/drop-off time is
delayed. Since input interrupts will malfunction under these conditions, the input signal
rise-up/drop-off time should normally be set to 25 ns or less.
100
Name
Function
reserved
reserved
Table 10.8.2: Chattering filter function settings
P0CFx[2:0]
0x7
0x6
0x5
0x4
0x3
0x2
0x1
0x0
(Default: 0x0, *when OSC3 = 2 MHz and PCLK = OSC3)
Setting
P0CF2[2:0]
0x7
16384/f
0x6
0x5
0x4
0x3
0x2
0x1
0x0
P0CF1[2:0]
0x7
16384/f
0x6
0x5
0x4
0x3
0x2
0x1
0x0
Verification time *
16384/f
(8ms)
PCLK
8192/f
(4ms)
PCLK
4096/f
(2ms)
PCLK
2048/f
(1ms)
PCLK
1024/f
(512μs)
PCLK
512/f
(256μs)
PCLK
256/f
(128μs)
PCLK
No verification time (Off)
EPSON
Init. R/W
Remarks
0 when being read.
Filter time
0
R/W
0x0 R/W
PCLK
8192/f
PCLK
4096/f
PCLK
2048/f
PCLK
1024/f
PCLK
512/f
PCLK
256/f
PCLK
None
0 when being read.
Filter time
0x0 R/W
PCLK
8192/f
PCLK
4096/f
PCLK
2048/f
PCLK
1024/f
PCLK
512/f
PCLK
256/f
PCLK
None
S1C17001 TECHNICAL MANUAL

Advertisement

Table of Contents
loading

Table of Contents