RZ/A2M SUB Board RTK79210XXB00000BE
2. Function specifications
R20UT4398EJ0100 Rev.1.00
2-39
2018.10.11
2.14
Key Input Switches
Port P5_6 is set as an analog input pin (AN006), and can be used as a key input switch through an A/D converter
(ADC)
Figure 2.14.1 shows the key input switch block diagram, and Table 2.14.1 shows the AD input pin voltage and AD
value when each switch is pressed.
Figure 2.14.1
Key Input Switch Block Diagram
Table 2.14.1
AD Input Pin Voltage and AD Values When Switch Is Pressed
Switch
Pin voltage (V)
8 bit AD value
10 bit AD value
12 bit AD value
SW4
0.80
62
248
991
SW5
1.65
128
512
2048
[Note] Calculated at AVcc=3.3V, and AVss= 0V. Errors of resistor and voltage are not included.
AVcc
RZ/A2M (U1)
P5_6 /
AN006
SW4
SW5
AVcc
Note:
Red text
indicates a function used.
:
Indicates a function not implemented.
:
Indicates a SUB board.
SW4 : 3.3V * 1.5kR / (1.5kR + 4.7kR) = 0.80V
SW5 : 3.3V * 4.7kR / (4.7kR + 4.7kR) = 1.65V
1.5k
Ω
4.7k
Ω
4.7k
Ω