MCUXpresso_MIMXRT1052xxxxB/boards/evkbimxrt1050/driver_examples/clockout
Yilin Sun 6baf4427ce
Updated to v2.15.000
Signed-off-by: Yilin Sun <imi415@imi.moe>
2024-03-18 23:15:10 +08:00
..
armgcc Updated to v2.15.000 2024-03-18 23:15:10 +08:00
board.c Updated to v2.15.000 2024-03-18 23:15:10 +08:00
board.h Updated to v2.15.000 2024-03-18 23:15:10 +08:00
ccm_clockout_v3_14.xml Updated to v2.15.000 2024-03-18 23:15:10 +08:00
clock_config.c Update SDK to v2.13.0 2023-01-26 09:35:56 +08:00
clock_config.h Update SDK to v2.13.0 2023-01-26 09:35:56 +08:00
clockout.c SDK v2.11.1 2022-04-08 22:46:35 +08:00
dcd.c SDK v2.11.1 2022-04-08 22:46:35 +08:00
dcd.h SDK v2.11.1 2022-04-08 22:46:35 +08:00
evkbimxrt1050_sdram_init.jlinkscript Updated to v2.14.0 2023-11-30 20:55:00 +08:00
pin_mux.c SDK v2.11.1 2022-04-08 22:46:35 +08:00
pin_mux.h SDK v2.11.1 2022-04-08 22:46:35 +08:00
readme.md Updated to v2.15.000 2024-03-18 23:15:10 +08:00

readme.md

Overview

The ccm_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. Please note that different targets may have different default clock configurations, so the frequency of the same clock root may be different in different targets even though the dividers are set as the same value.

SDK version

  • Version: 2.15.000

Toolchain supported

  • IAR embedded Workbench 9.40.1
  • Keil MDK 5.38.1
  • GCC ARM Embedded 12.2
  • MCUXpresso 11.8.0

Hardware requirements

  • Mini/micro USB cable
  • EVK_BIMXRT1050 board
  • Personal Computer

Board settings

Connect pin: No special settings are required.

Prepare the Demo

  1. Connect a USB cable between the host PC and the OpenSDA USB port on the target board.
  2. Open a serial terminal with the following settings:
    • 115200 baud rate
    • 8 data bits
    • No parity
    • One stop bit
    • No flow control
  3. Download the program to the target board.
  4. Either press the reset button on your board or launch the debugger in your IDE to begin running the demo.

Running the demo

To measure the output signal of CLKO1, please use the oscilloscope to probe TP27; To measure the output signal of CLKO2, please use the oscilloscope to probe TP28. These instructions are displayed/shown on the terminal window:

Clock Output Driver Example.
Please Choose one clock to be outputted on CLKO1.
	A -- USB1 PLL Clock(Divided by 2).
	B -- SYS PLL Clock(Divided by 2).
	C -- VIDEO PLL Clock(Divided by 2).
	D -- Semc Clock Root.
	E -- Lcdif Pix Clock Root.
	F -- AHB Clock Root.
	G -- IPG Clock Root.
	H -- Perclk Root.
	I -- Ckil Sync Clock Root.
	J -- PLL4 Main Clock.
a

Please set the clock divider, range from 1 to 8.
1

Theoretically, the output frequency of CLKO1 is 240000000 Hz.
Please Choose one clock to be outputted on CLKO2.
	A -- Usdhc1 Clock Root.
	B -- LPI2C Clock Root.
	C -- CSI Clock Root.
	D -- OSC Clock.
	E -- Usdhc2 Clock Root.
	F -- SAI1 Clock Root.
	G -- SAI2 Clock Root.
	H -- SAI3 Clock Root(Shared with ADC1 and ADC2 alt_clk root).
	I -- Can Clock Root(FlexCAN, shared with CANFD).
	J -- Flexspi Clock Root.
	K -- UART Clock Root.
	L -- Spdif0 Clock Root.
c

Please set the clock divider, range from 1 to 8.
2

Theoretically, the output frequency of CLKO2 is 6000000 Hz.

Please press any key to continue.