![LAPIS Semiconductor ML610472 Скачать руководство пользователя страница 198](http://html1.mh-extra.com/html/lapis-semiconductor/ml610472/ml610472_user-manual_3645865198.webp)
ML610471/472/473/Q471/Q472/Q473 User's Manual
Chapter 15 Port 4
15-10
15.3 Description of Operation
15.3.1 Input/Output Port Functions
For each pin of Port 4, either output or input is selected by setting the Port 4 direction register (P4DIR).
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 4 control registers 0 and 1 (P4CON0 and P4CON1).
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 4 control registers 0 and 1 (P4CON0 and P4CON1).
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 4 depending on the value set by the Port 4 data register
(P4D).
In input mode, the input level of each pin of Port 4 can be read from the Port 4 data register (P4D).
15.3.2 Secondary and Tertiary Functions
The secondary functions are assigned to Port 4 as the UART0 pins (RXD0, TXD0) and RC-ADC (channel 1) oscillation
pins (IN1, CS1, RS1, RT1). These pins can be used in a secondary function mode by setting the P47MD0 to P40MD3
bits and the P47MD1 to P43MD1 bits of the Port 4 mode registers (P4MOD0, P4MOD1).
Note:
The P44 to P47 pins of Port 4 are configured as pins dedicated to the RC-ADC function during A/D conversion.
Therefore, if any of them is unused, it cannot be used as the primary function (or as the port). For the RC-ADC, see
Chapter 17, “RC Oscillation Type A/D Converter”.
Содержание ML610472
Страница 12: ...Chapter 1 Overview...
Страница 38: ...Chapter 2 CPU and Memory Space...
Страница 44: ...Chapter 3 Reset Function...
Страница 48: ...Chapter 4 MCU Control Function...
Страница 62: ...Chapter 5 Interrupts...
Страница 82: ...Chapter 6 Clock Generation Circuit...
Страница 94: ...Chapter 7 Time Base Counter...
Страница 105: ...Chapter 8 Capture...
Страница 114: ...Chapter 9 Timer...
Страница 133: ...Chapter 10 Watchdog Timer...
Страница 141: ...Chapter 11 UART...
Страница 164: ...Chapter 12 Port 0...
Страница 173: ...Chapter 13 Port 2...
Страница 180: ...Chapter 14 Port 3...
Страница 188: ...Chapter 15 Port 4...
Страница 199: ...Chapter 16 Port 6...
Страница 205: ...Chapter 17 RC Oscillation Type A D Converter...
Страница 225: ...Chapter 18 LCD Drivers...
Страница 243: ...Chapter 19 Power Supply Circuit...
Страница 245: ...Chapter 20 uEASE Flash Writer System...
Страница 249: ...Chapter 21 Software Development...
Страница 258: ...Appendixes...
Страница 280: ...Revision History...