
ML610Q421/ML610Q422/ML610421 User’s Manual
Chapter 21 Port 4
21 – 1
21. Port 4
21.1 Overview
This LSI includes Port 4 (P40 to P47) which is an 8-bit input/output port.
This port can have the I2C bus, RC-ADC, synchronous serial port, and PWM output functions as secondary and tertiary
functions.
See the following chapters for reference:
I2C bus:
Chapter 15 “I2C Bus Interface”
UART:
Chapter 14 “UART”
RC-ADC:
Chapter 24 “RC Oscillation Type A/D Converter”
Synchronous serial port:
Chapter 13 “Synchronous Serial Port”
PWM:
Chapter 11 “PWM”
21.1.1 Features
•
Allows selection of high-impedance output, P-channel open drain output, N-channel open drain output, or CMOS
output for each bit in output mode.
•
Allows selection of high-impedance input, input with a pull-down resistor, or input with a pull-up resistor for each bit
in input mode.
•
The P44 and P45 pins can be used as external clock input pins for the timer and PWM.
•
The I2C bus interface pins (SDA, SCL), UART pins (RXD0, TXD0), RC-ADC (channel 1) oscillation pins (IN1,
CS1, RS1, RT1), synchronous serial port pins (SIN0, SCK0, SOUT0), and PWM output pin (PWM0) can be used as
the secondary functions.
21.1.2 Configuration
Figure 21-1 shows the configuration of Port 4.
P4D
:
Port 4 data register
P4DIR
:
Port 4 direction register
P4CON0
:
Port 4 control register
0
P4CON1
:
Port 4 control register
1
P4MOD0
:
Port 4 mode register
0
P4MOD1
:
Port 4 mode register
1
Figure 21-1 Configuration of Port 4
Data bus
Outputs for I
2
C (SDA, SCL)
Output for UART (TXD0)
Outputs for RC-ADC (CS1, RS1, RT1)
Outputs for SIO (SCK0, SOUT)
Output for PWM (PWM0)
P40
to P47
P4DIR
P4MOD0, 1
P4CON0, 1
V
DD
V
DD
V
SS
V
SS
8
9
Port4
Output
Controller
P4D
V
DD
V
SS
Pull-up
Pull-down
Controller
Inputs for I
2
C (SDA, SCL)
Input for UART (RXD0)
Input for RC-ADC (IN0)
Inputs for SIO (SIN0, SCK0)
Inputs for timer PWM
(T02P0CK, T13P1CK)
8
8
Содержание ML610421
Страница 1: ...ML610Q421 ML610Q422 ML610421 User s Manual Issue Date Feb 9 2015 FEUL610Q421 06...
Страница 15: ...Chapter 1 Overview...
Страница 44: ...Chapter 2 CPU and Memory Space...
Страница 49: ...Chapter 3 Reset Function...
Страница 53: ...Chapter 4 MCU Control Function...
Страница 69: ...Chapter 5 Interrupts INTs...
Страница 93: ...Chapter 6 Clock Generation Circuit...
Страница 110: ...Chapter 7 Time Base Counter...
Страница 121: ...Chapter 8 Capture...
Страница 129: ...Chapter 9 1 kHz Timer 1kHzTM...
Страница 135: ...Chapter 10 Timers...
Страница 160: ...Chapter 11 PWM...
Страница 172: ...Chapter 12 Watchdog Timer...
Страница 180: ...Chapter 13 Synchronous Serial Port...
Страница 195: ...Chapter 14 UART...
Страница 216: ...Chapter 15 I2 C Bus Interface...
Страница 231: ...Chapter 16 NMI Pin...
Страница 237: ...Chapter 17 Port 0...
Страница 246: ...Chapter 18 Port 1...
Страница 252: ...Chapter 19 Port 2...
Страница 259: ...Chapter 20 Port 3...
Страница 270: ...Chapter 21 Port 4...
Страница 282: ...Chapter 22 Port A...
Страница 290: ...Chapter 23 Melody Driver...
Страница 304: ...Chapter 24 RC Oscillation Type A D Converter...
Страница 327: ...Chapter 25 Successive Approximation Type A D Converter...
Страница 338: ...Chapter 26 LCD Drivers...
Страница 371: ...Chapter 27 Battery Level Detector...
Страница 378: ...Chapter 28 Power Supply Circuit...
Страница 381: ...Chapter 29 On Chip Debug Function...
Страница 384: ...Appendixes...
Страница 435: ...Revision History...