ML610Q111/ML610Q112 User’s Manual
Chapter 15 Port A
FEUL610Q111
15-9
15.3 Description of Operation
15.3.1 Input/Output Port Functions
For each pin of Port A, either output or input is selected by setting the Port A direction register (PADIR).
In output mode, high-impedance output mode, P-channel open drain output mode, N-channel open drain output mode, or
CMOS output mode can be selected by setting the Port A control registers 0 and 1 (PACON0 and PACON1).
In input mode, high-impedance input mode, input mode with a pull-down resistor, or input mode with a pull-up resistor can
be selected by setting the Port A control registers 0 and 1 (PACON0 and PACON1).
At a system reset, high-impedance output mode is selected as the initial state.
In output mode, “L” or “H” level is output to each pin of Port A depending on the value set by the Port A data register
(PAD).
In input mode, the input level of each pin of Port A can be read from the Port A data register (PAD).
15.3.2 Primary Function except for Input/Output Port
Port A is assigned to the SA A/D converter input pins(AIN0, AIN1), Analog comparator input(CMP1P), External
interrupts(EXI0-2), Trigger inputs(TETG, TFTG, PCTG, PDTG, PETG, PFTG) as primary function except for
input/output port.
When used as the SA A/D converter input pins (AIN0, AIN1) and Analog comparator input pin(CMP1P), set an applicable
port as a high impedance output state.
When used as the External interrupts/Trigger inputs(EXI0-2, TETG, TFTG, PCTG, PDTG, PETG, PFTG), set an
applicable port as an input state.
15.3.3 Secondary tertiary and fourthly functions
Port A is assigned to the PWM pins (PWMC, PWMD, PWME), comparator output pins (CMP0OUT), Timers output pin
(TM9OUT, TMFOUT), external clock pin (CLKIN), clock output pin (OUTCLK, LSCLK) as its secondary, tertiary and
fourthly functions. These pins can be used in secondary, tertiary and fourthly functions mode by setting the PA2MD0 to
PA0MD0 bits and the PA2MD1 to PA0MD1 bits of the Port A mode registers (PAMOD0, PAMOD1).
Содержание 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 ...