|
3825_03 Datasheet, PDF (82/339 Pages) Renesas Technology Corp – 8-BIT SINGLE-CHIP MICROCOMPUTER | |||
|
◁ |
APPLICATION
2.1 I/O pins
TThe discharging time (t2) at ON is obtained with t = Cr in the same way as the previous page, with
the result of t = 100 ns.
TJudge ON/OFF of key input within the time (t1) which is obtained as follows:
After the completion of âHâ output,
Vt1 = VO ! eât1/T
t1 = âT ! 1n Vt1
VO
VO : âHâ output voltage
Vt1 : Input voltage after t1(s)
<Example> The standard time at VO = 5.0 V, Vt1 = 3.5 V
t1 = â1 ! 10â3 ! 1n 3.5 â 357 µs
5.0
(2) Key input application example
According to the key input without a pull-up
resistor described in (1), an effective applica-
tion example where there are enough ports is
shown below. This method reduces both cur-
rent dissipation and quantity of parts compared
with the example shown in (1).
Figure 2.1.11 shows a connection example 2
for key input using port D and Figure 2.1.12
shows the key input control procedure 2. Fig-
ure 2.1.13 shows a timing diagram 2 where
switch A is pressed.
CMOS I/O
port A
CMOS I/O
port B
CMOS I/O
port C
CMOS I/O
port D
SW A
SW B
SW C
Virtual
capacitor (C)
Fig. 2.1.11 Connection example 2 for key input
V1
Key input
V2
Output âHâ for charging to each
port
V3
Set the port direction register
for the input mode
V4
After inputting âLâ from the
port D, judge ON/OFF of key
input.
V1 In the case of no key input, output âLâ (Noise counter-
measure).
V2 A virtual capacitor (C) is charged by outputting âH.â
(For capacitance, refer to the previous page.)
V3 Set the port direction register for input mode with an
instruction immediately after âHâ is output.
V4 Output âLâ with the next instruction (refer to âFigure
2.1.13 (A)â)
V5 For double reading to ensure data, repeat V2, V3 and V4.
V5
Fig. 2.1.12 Key input control procedure 2
2â10
3825 GROUP USERâS MANUAL
|
▷ |