ML610Q111/ML610Q112 User’s Manual
Chapter 16 Port B
FEUL610Q111
16-11
16.3 Description of Operation
16.3.1 Input/Output Port Functions
For each pin of Port B, either output or input is selected by setting the Port B direction register (PBDIR).
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 B control registers 0 and 1 (PBCON0 and PBCON1).
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 B control registers 0 and 1 (PBCON0 and PBCON1).
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 B depending on the value set by the Port B data register
(PBD).
In input mode, the input level of each pin of Port B can be read from the Port B data register (PBD).
16.3.2 Primary Function except for Input/Output Port
Port B is assigned to the SA A/D converter input pins(AIN2-5), Analog comparator input(CMP0M, CMP0P), External
interrupts(EXI4-7), Trigger inputs(TETG, TFTG, PCTG, PDTG, PETG, PFTG), UART input pins (RXD0, RXD1) as
primary function except for input/output port.
When used as the SA A/D converter input pins (AIN2-5) and Analog comparator input(CMP0M, CMP0P), set an
applicable port as a high impedance output state.
When used as the External interrupts/Trigger inputs /UART input pins (EXI4-7, TETG, TFTG, PCTG, PDTG, PETG,
PFTG, RXD0, RXD1), set an applicable port as a input state.
16.3.3 Secondary tertiary and fourthly functions
Port B is assigned to PWM output pins (PWMC, PWMD, PWME, PWMF0, PWMF1, PWMF2), comparator output pin
(CMP1OUT), SSIO pins (SIN, SOUT, SCK), UART output pins (TXD0, TXD1), I
2
C pins (SCL, SDA), external clock pin
(CLKIN), clock output pins (OUTCLK, LSCLK) as its secondary, tertiary and fourthly functions. These pins can be used in
secondary, tertiary and fourthly functions mode by setting the PB7MD0 to PB0MD0 bits and the PB7MD1 to PB0MD1
bits of the Port B mode registers (PBMOD0, PBMOD1).
Summary of Contents for ML610Q111
Page 1: ...ML610Q111 ML610Q112 User s Manual Issue Date Nov 16 2016 FEUL610Q111 05 ...
Page 14: ...Chapter 1 Overview ...
Page 26: ...Chapter 2 CPU and Memory Space ...
Page 34: ...Chapter 3 Reset Function ...
Page 38: ...Chapter 4 MCU Control Function ...
Page 53: ...Chapter 5 Interrupts INTs ...
Page 81: ...Chapter 6 Clock Generation Circuit ...
Page 95: ...Chapter 7 Time Base Counter ...
Page 103: ...Chapter 8 Timers ...
Page 145: ...Chapter 9 Watchdog Timer ...
Page 153: ...Chapter 10 PWM ...
Page 199: ...Chapter 11 Synchronous Serial Port ...
Page 212: ...Chapter 12 UART ...
Page 240: ...Chapter 13 I2 C Bus Interface Master ...
Page 254: ...Chapter 14 I2 C Bus Interface Slave ...
Page 269: ...Chapter 15 Port A ...
Page 279: ...Chapter 16 Port B ...
Page 291: ...Chapter 17 Port C ...
Page 303: ...Chapter 18 Port D ...
Page 312: ...Chapter 19 Port AB Interrupts ...
Page 317: ...Chapter 20 Successive Approximation Type A D Converter ...
Page 335: ...Chapter 21 Voltage Level Supervisor ...
Page 342: ...Chapter 22 Analog Comparator ...
Page 353: ...Chapter 23 Data Flash Memory ...
Page 373: ...Chapter 24 On chip Debug ...
Page 375: ...Appendixes ...
Page 393: ...Appendix E ...
Page 398: ...Revision History ...