ML610Q111/ML610Q112 User’s Manual
Chapter 17 Port C
FEUL610Q111
17-6
17.2.3 Port C Direction Register (PCDIR)
Address: 0F261H
Access: R/W
Access size: 8 bits
Initial value: 00H
7
6
5
4
3
2
1
0
PCDIR
PC7DIR
PC6DIR
PC5DIR
PC4DIR
PC3DIR
PC2DIR
PC1DIR
PC0DIR
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
Initial value
0
0
0
0
0
0
0
0
PCDIR is a special function register (SFR) to select the input/output mode of Port C.
[Description of Bits]
•
PC7DIR-PC0DIR
(bits 7 to 0)
The PC7DIR to PC0DIR pins are used to set the input/output direction of the Port C pin.
When used as ML610Q111, setting the value of PC7DIR to PC4DIR do not affect an applicable ports.
PC0DIR
Description
0
PC0 pin: Output (initial value)
1
PC0 pin: Input
PC1DIR
Description
0
PC1 pin: Output (initial value)
1
PC1 pin: Input
PC2DIR
Description
0
PC2 pin: Output (initial value)
1
PC2 pin: Input
PC3DIR
Description
0
PC3 pin: Output (initial value)
1
PC3 pin: Input
PC4DIR
Description
0
PC4 pin: Output (initial value)
1
PC4 pin: Input
PC5DIR
Description
0
PC5 pin: Output (initial value)
1
PC5 pin: Input
PC6DIR
Description
0
PC6 pin: Output (initial value)
1
PC6 pin: Input
PC7DIR
Description
0
PC7 pin: Output (initial value)
1
PC7 pin: Input
Note
:
When it set a value to the bit of the PCD by bit manipulation instruction, if the bit except the applicable bit of the PCD is
set to input mode, the input level of the pin is read, and the value is written in PCD. Therefore, when changes the mode
of the port to output mode from input mode, set output value to PCD, and set port C direction register (PCDIR) to output
mode afterwards.
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 ...