syscon_clockout#
Overview#
The syscon_clockout driver example shows how to output the internal clock signal. In this driver example, users can choose the clock signal to be outputted, and the divider of the output clock signal. By probing the output pin, users can observe the selected internal clock signal.
Supported Boards#
EVK-MIMXRT595
Hardware requirements
Micro USB cable
EVK-MIMXRT595 board
Personal Computer
Board settings
No special settings are required.
Prepare the Demo
Connect a micro USB cable between the PC host and the CMSIS DAP USB port (J40) on the board
Open a serial terminal with the following settings:
115200 baud rate
8 data bits
No parity
One stop bit
No flow control
Download the program to the target board.
Launch the debugger in your IDE to begin running the demo.
Running the demo
The log below shows the output of the clockout demo in the terminal window:
Clock Output Driver Example.
Please choose one output clock.
A -- OSC_CLK Clock.
B -- Low Power Oscillator Clock.
C -- FRO_DIV2 Clock.
D -- Main Clock.
E -- Dsp Main Clock.
F -- Main System PLL.
G -- SYSPLL0 AUX0_PLL_Clock.
H -- DSP PLL Clock.
I -- SYSPLL0 AUX1_PLL_Clock.
J -- AUDIO PLL Clock.
K -- 32 KHz RTC Clock.
To measure the output clock signal, please use the oscilloscope to probe JP27_2.
EVK-MIMXRT685
Hardware requirements
Micro USB cable
EVK-MIMXRT685 board
Personal Computer
Board settings
Prepare the Demo
Connect a micro USB cable between the PC host and the CMSIS DAP USB port (J5) on the board
Open a serial terminal with the following settings:
115200 baud rate
8 data bits
No parity
One stop bit
No flow control
Download the program to the target board.
Launch the debugger in your IDE to begin running the demo.
Running the demo
The log below shows the output of the clockout demo in the terminal window:
Clock Output Driver Example.
Please choose one output clock.
A -- SFRO Clock.
B -- External Clock.
C -- Low Power Oscillator Clock.
D -- FFRO Clock.
E -- Main Clock.
F -- DSP Main Clock.
G -- Main System PLL.
H -- SYSPLL0 AUX0 PLL.
I -- DSP PLL.
J -- SYSPLL0 AUX1 PLL.
K -- AUDIO PLL.
To measure the output clock signal, please use the oscilloscope to probe J27_6(P1_10).
FRDM-MCXW23
Hardware requirements
Type-C USB cable
FRDM-MCXW23 Board
Personal Computer
Board settings
Use the default jumper settings.
Prepare the Demo
Connect a USB cable between the host PC and the FRDM board J10.
Open a serial terminal with the following settings
115200 baud rate
8 data bits
No parity
One stop bit
No flow control
Build and download the application
Start a debug session or press the reset button
Running the demo
The clock can be measured with an oscilloscope on J1-6.
The log below shows the output of the clockout demo in the terminal window:
Clock Output Driver Example.
Please choose one output clock.
A -- Main Clock.
B -- CLKIN Clock.
C -- FRO 32 MHz Clock.
D -- FRO 1 MHz Clock.
E -- FRO 24 MHz clock.
F -- Oscillator 32 kHz Clock.
LPCXpresso55S16
Hardware requirements
Mini/micro USB cable
LPCXpresso55S16 board
Personal Computer
Board settings
The jumper setting: Default jumpers configuration does not work, you will need to add JP20 and JP21 (JP22 optional for ADC use)
Prepare the Demo
Connect a micro USB cable between the PC host and the CMSIS DAP USB port (J1) on the board
Open a serial terminal with the following settings (See Appendix A in Getting started guide for description how to determine serial port number):
115200 baud rate
8 data bits
No parity
One stop bit
No flow control
Download the program to the target board.
Either press the reset button on your board or launch the debugger in your IDE to begin running the demo.
Running the demo
The log below shows the output of the clockout demo in the terminal window:
Clock Output Driver Example.
Please choose one output clock.
A -- Main Clock.
B -- PLL0 Clock.
C -- CLKIN Clock.
D -- FRO 96 MHz Clock.
E -- FRO 1 MHz Clock.
F -- PLL1 clock.
G -- Oscillator 32 kHz clock.
To measure the output clock signal, please use the oscilloscope to probe J7_6(J9_14).
LPCXpresso55S28
Hardware requirements
Mini/micro USB cable
LPCXpresso55S28 board
Personal Computer
Board settings
No special settings are required.
Prepare the Demo
Note: MCUXpresso IDE project default debug console is semihost
Connect a micro USB cable between the PC host and the CMSIS DAP USB port (P6) on the board
Open a serial terminal with the following settings (See Appendix A in Getting started guide for description how to determine serial port number):
115200 baud rate
8 data bits
No parity
One stop bit
No flow control
Download the program to the target board.
Either press the reset button on your board or launch the debugger in your IDE to begin running the demo.
Running the demo
The log below shows the output of the clockout demo in the terminal window:
Clock Output Driver Example.
Please choose one output clock.
A -- Main Clock.
B -- PLL0 Clock.
C -- CLKIN Clock.
D -- FRO 96 MHz Clock.
E -- FRO 1 MHz Clock.
F -- PLL1 clock.
G -- Oscillator 32 kHz clock.
To measure the output clock signal, please use the oscilloscope to probe P17_13(P23_6).
LPCXpresso55S69
Hardware requirements
Mini/micro USB cable
LPCXpresso55S69 board
Personal Computer
Board settings
No special settings are required.
Prepare the Demo
Connect a micro USB cable between the PC host and the CMSIS DAP USB port (P6) on the board
Open a serial terminal with the following settings (See Appendix A in Getting started guide for description how to determine serial port number):
115200 baud rate
8 data bits
No parity
One stop bit
No flow control
Download the program to the target board.
Either press the reset button on your board or launch the debugger in your IDE to begin running the demo.
Running the demo
The log below shows the output of the clockout demo in the terminal window:
Clock Output Driver Example.
Please choose one output clock.
A -- Main Clock.
B -- PLL0 Clock.
C -- CLKIN Clock.
D -- FRO 96 MHz Clock.
E -- FRO 1 MHz Clock.
F -- PLLQ Clock.
G -- Oscillator 32 kHz Clock.
To measure the output clock signal, please use the oscilloscope to probe P17_13(P23_6).
MIMXRT685-AUD-EVK
Hardware requirements
Micro USB cable
MIMXRT685-AUD-EVK board
Personal Computer
Board settings
Prepare the Demo
Connect a micro USB cable between the PC host and the CMSIS DAP USB port (J5) on the board
Open a serial terminal with the following settings:
115200 baud rate
8 data bits
No parity
One stop bit
No flow control
Download the program to the target board.
Launch the debugger in your IDE to begin running the demo.
Running the demo
The log below shows the output of the clockout demo in the terminal window:
Clock Output Driver Example.
Please choose one output clock.
A -- SFRO Clock.
B -- External Clock.
C -- Low Power Oscillator Clock.
D -- FFRO Clock.
E -- Main Clock.
F -- DSP Main Clock.
G -- Main System PLL.
H -- SYSPLL0 AUX0 PLL.
I -- DSP PLL.
J -- SYSPLL0 AUX1 PLL.
K -- AUDIO PLL.
To measure the output clock signal, please use the oscilloscope to probe TP52(P2_29).
MIMXRT700-EVK
Hardware requirements
Mini/micro USB cable
MIMXRT700-EVK Board
Personal Computer
Board settings
No special settings are required.
Prepare the Demo
Connect the micro and mini USB cable between the PC host and the USB ports on the board.
Open a serial terminal on PC for the serial device with these settings:
115200 baud rate
8 data bits
No parity
One stop bit
No flow control
Download the program to the target board.
Either press the reset button on your board or launch the debugger in your IDE to begin running the demo.
Running the demo
The log below shows the output of the clockout demo in the terminal window:
Clock Output Driver Example.
Please choose one output clock.
A -- Common VDD2 Base Clock.
B -- MAIN PLL PFD0 Clock.
C -- FRO0 Max Clock.
D -- FRO1 Max Clock.
To measure the output clock signal, please use the oscilloscope to probe J3-50.
FRDM-IMXRT700
Hardware requirements
Type-C USB cable
FRDM-IMXRT700 Board
Personal Computer
Board settings
No special settings are required.
Prepare the Demo
Connect the micro and mini USB cable between the PC host and the USB ports on the board.
Open a serial terminal on PC for the serial device with these settings:
115200 baud rate
8 data bits
No parity
One stop bit
No flow control
Download the program to the target board.
Either press the reset button on your board or launch the debugger in your IDE to begin running the demo.
Running the demo
The log below shows the output of the clockout demo in the terminal window:
Clock Output Driver Example.
Please choose one output clock.
A -- Common VDD2 Base Clock.
B -- MAIN PLL PFD0 Clock.
C -- FRO0 Max Clock.
D -- FRO1 Max Clock.
To measure the output clock signal, please use the oscilloscope to probe SJ453-1.
MCXW23-EVK
Hardware requirements
Mini/micro USB cable
MCXW23-EVK Board
Personal Computer
Board settings
Use the default jumper settings.
Prepare the Demo
Connect a USB cable between the host PC and the EVK board J33.
Open a serial terminal with the following settings
115200 baud rate
8 data bits
No parity
One stop bit
No flow control
Build and download the application
Start a debug session or press the reset button
Running the demo
The clock can be measured with an oscilloscope on J21-2.
The log below shows the output of the clockout demo in the terminal window:
Clock Output Driver Example.
Please choose one output clock.
A -- Main Clock.
B -- CLKIN Clock.
C -- FRO 32 MHz Clock.
D -- FRO 1 MHz Clock.
E -- FRO 24 MHz clock.
F -- Oscillator 32 kHz Clock.