ML610Q111/ML610Q112 User’s Manual
Chapter 15 Port A
FEUL610Q111
15-5
15.2.2 Port A Data Register (PAD)
Address: 0F250H
Access: R/W
Access size: 8 bits
Initial value: 00H
7
6
5
4
3
2
1
0
PAD
―
―
―
―
―
PA2D
PA1D
PA0D
R/W
―
―
―
―
―
R/W
R/W
R/W
Initial value
0
0
0
0
0
0
0
0
PAD is a special function register (SFR) to set the value to be output to the Port A pin or to read the input level of the Port
A. In output mode, the value of PAD is output to the Port A pin. The value written to PAD is readable. In input mode,
the input level of the Port A pin is read when PAD is read. In input mode, it is possible to write to PAD. The value
written to PAD does not affect the pin level. Output mode or input mode is selected by using the port A direction register
(PADIR) described later.
[Description of Bits]
•
PA2D-PA0D
(bits 2
to 0)
The PA2D to PA0D bits are used to set the output value of the Port A pin in output mode and to read the pin level of the
Port A pin in input mode.
PA0D
Description
0
Output or input level of the PA0 pin: ”L”
1
Output or input level of the PA0 pin: ”H”
PA1D
Description
0
Output or input level of the PA1 pin: ”L”
1
Output or input level of the PA1 pin: ”H”
PA2D
Description
0
Output or input level of the PA2 pin: ”L”
1
Output or input level of the PA2 pin: ”H”
Note
:
When it set a value to the bit of the PAD by bit manipulation instruction, if the bit except the applicable bit of the PAD is
set to input mode, the input level of the pin is read, and the value is written in PAD. Therefore, when changes the mode
of the port to output mode from input mode, set output value to PAD, and set port A direction register (PADIR) to output
mode afterwards.
Содержание ML610Q111
Страница 1: ...ML610Q111 ML610Q112 User s Manual Issue Date Nov 16 2016 FEUL610Q111 05 ...
Страница 14: ...Chapter 1 Overview ...
Страница 26: ...Chapter 2 CPU and Memory Space ...
Страница 34: ...Chapter 3 Reset Function ...
Страница 38: ...Chapter 4 MCU Control Function ...
Страница 53: ...Chapter 5 Interrupts INTs ...
Страница 81: ...Chapter 6 Clock Generation Circuit ...
Страница 95: ...Chapter 7 Time Base Counter ...
Страница 103: ...Chapter 8 Timers ...
Страница 145: ...Chapter 9 Watchdog Timer ...
Страница 153: ...Chapter 10 PWM ...
Страница 199: ...Chapter 11 Synchronous Serial Port ...
Страница 212: ...Chapter 12 UART ...
Страница 240: ...Chapter 13 I2 C Bus Interface Master ...
Страница 254: ...Chapter 14 I2 C Bus Interface Slave ...
Страница 269: ...Chapter 15 Port A ...
Страница 279: ...Chapter 16 Port B ...
Страница 291: ...Chapter 17 Port C ...
Страница 303: ...Chapter 18 Port D ...
Страница 312: ...Chapter 19 Port AB Interrupts ...
Страница 317: ...Chapter 20 Successive Approximation Type A D Converter ...
Страница 335: ...Chapter 21 Voltage Level Supervisor ...
Страница 342: ...Chapter 22 Analog Comparator ...
Страница 353: ...Chapter 23 Data Flash Memory ...
Страница 373: ...Chapter 24 On chip Debug ...
Страница 375: ...Appendixes ...
Страница 393: ...Appendix E ...
Страница 398: ...Revision History ...