ML620Q503/Q504 User's Manual
Chapter 16 Port XT
FEUL620Q504 16–5
16.3 Description of Operation
16.3.1 Input Port Function
In the initial state after system reset, input is disabled for both the pins of the port XT.
When the pins of the port XT are set to the input state by the port XT direction register (PXTDIR), their input
level can be read by reading the port XT data register (PXTD).
16.3.2 Primary Function Other Than Input Port
The low-speed crystal oscillation pin, external clock input pin, or external interrupt is assigned to the port XT as
the primary function other than the input port.
When the XTM1 and XTM0 bits of the frequency control register 0 (FCON2) are set to the crystal oscillation
mode, the low-speed crystal oscillation mode or the external clock input mode is selected.
In the low-speed crystal oscillation mode, both the PXT0 and PXT1 pins are used as the pins for crystal
oscillation.
In the external clock input mode, the PXT1 pin is used as the input pin of the external clock. In this case, the
PXT0 pin is in the input-disabled state.
To use the port XT as the low-speed crystal oscillation pin or the external clock input pin, set the appropriate port
to the input port disabled state.
To use the port XT as the external interrupt input (EXII0 to EXII1), set the appropriate port to the input port
enabled state, and configure the setting to use the port as the external interrupt with the external interrupt mode
register (EXI01SEL).
PXTDIR
setting
FCON2
setting
PXT0 pin
PXT1 pin
Crystal
oscillation
0
1
Crystal
oscillation
Crystal oscillation
External
clock
0
3
Input disabled
External clock
input
Input port/
External
Interrupt
1
2
General-purpose
input pin/
External
Interrupt
General-purpose
input pin/
External Interrupt
Summary of Contents for LAPIS SEMICONDUCTOR ML620Q503
Page 2: ...ML620Q503 Q504 User s Manual Issue Date Apr 16 2015 FEUL620Q504 01...
Page 18: ...Chapter 1 Overview...
Page 32: ...Chapter 2 CPU and Memory Space...
Page 44: ...Chapter 3 Reset Function...
Page 50: ...Chapter 4 Power Management...
Page 70: ...Chapter 5 Interrupts...
Page 134: ...Chapter 6 Clock Generation Circuit...
Page 161: ...Chapter 7 Time Base Counter...
Page 170: ...Chapter 8 Timers...
Page 183: ...Chapter 9 Function Timer FTM...
Page 231: ...Chapter 10 Watchdog Timer...
Page 239: ...Chapter 11 Synchronous Serial Port SSIO...
Page 251: ...Chapter 12 Synchronous Serial Port with FIFO SSIOF...
Page 283: ...Chapter 13 UART...
Page 303: ...Chapter 14 UART with FIFO UARTF...
Page 327: ...Chapter 15 I2 C Bus Interface...
Page 344: ...Chapter 16 Port XT...
Page 350: ...Chapter 17 Port 0...
Page 361: ...Chapter 18 Port 1...
Page 368: ...Chapter 19 Port2...
Page 379: ...Chapter 20 Port 3...
Page 395: ...Chapter 21 Port 4...
Page 410: ...Chapter 22 Port 5...
Page 426: ...Chapter 23 Melody Driver...
Page 439: ...Chapter 24 RC Oscillation type A D Converter RC ADC...
Page 462: ...Chapter 25 Successive Approximation Type A D Converter SA ADC...
Page 479: ...Chapter 26 Analog Comparator...
Page 489: ...Chapter 27 Flash Memory Control...
Page 505: ...Chapter 28 Voltage Level Supervisor VLS...
Page 517: ...Chapter 29 LLD circuit...
Page 519: ...Chapter 30 On Chip Debug Function...
Page 522: ...Appendixes...
Page 552: ...Revision History...