MCUXpresso SDK Documentation

sfa_polling

sfa_polling#

Overview#

The sfa polling example shows how to use SFA driver to measure the frequency of the selected clock in polling mode.

Supported Boards#

FRDM-MCXW71
Hardware requirements
  • Type-C USB cable

  • FRDM-MCXW71 Board

  • Personal Computer

  • Oscilloscope

Board settings
Prepare the Demo
  1. Connect a USB cable between the host PC and the FRDM board J10.

  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.

  5. The demo will measure the frequency of some on-chip clock source. Use the Oscilloscope to probe SFA0_CLK Pin then you will monitor the signal to be measured by SFA.

Running the demo

The log below shows the output of the SFA polling demo in the terminal window(There may be some deviation in the measurement results):

SFA example -- Measure the frequency of clock under test in polling mode
Start to measure Fast Clock.
The actual frequency of Fast Clock is 96007324 Hz.
Start to measure Slow clock.
The actual frequency of the Slow Clock is 32773 Hz.

SFA Measurement Finished.

MCX-W71-EVK
Hardware requirements
  • Type-C USB cable

  • MCX-W71-EVK Board

  • Personal Computer

  • Oscilloscope

Board settings
Prepare the Demo
  1. Connect a USB cable between the host PC and the EVK board J14.

  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.

  5. The demo will measure the frequency of some on-chip clock source. Use the Oscilloscope to probe SFA0_CLK Pin then you will monitor the signal to be measured by SFA.

Running the demo

The log below shows the output of the SFA polling demo in the terminal window(There may be some deviation in the measurement results):

SFA example -- Measure the frequency of clock under test in polling mode
Start to measure Fast Clock.
The actual frequency of Fast Clock is 96007324 Hz.
Start to measure Slow clock.
The actual frequency of the Slow Clock is 32773 Hz.

SFA Measurement Finished.

KW45B41Z-EVK
Hardware requirements
  • Mini/micro USB cable

  • KW45B41Z-EVK Board

  • Personal Computer

  • Oscilloscope

Board settings
Prepare the Demo
  1. Connect a USB cable between the host PC and the EVK board J14.

  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.

  5. The demo will measure the frequency of some on-chip clock source. Use the Oscilloscope to probe SFA0_CLK Pin then you will monitor the signal to be measured by SFA.

Running the demo

The log below shows the output of the SFA polling demo in the terminal window(There may be some deviation in the measurement results):

SFA example -- Measure the frequency of clock under test in polling mode
Start to measure Fast Clock.
The actual frequency of Fast Clock is 96963392 Hz.
Start to measure Slow clock.
The actual frequency of the Slow Clock is 33059 Hz.

SFA Measurement Finished.

KW47-EVK
Hardware requirements
  • Type-C USB cable

  • KW47-EVK Board

  • Personal Computer

  • Oscilloscope

Board settings
Prepare the Demo
  1. Connect a USB cable between the host PC and the EVK board J14.

  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.

  5. The demo will measure the frequency of some on-chip clock source. Use the Oscilloscope to probe SFA0_CLK Pin then you will monitor the signal to be measured by SFA.

Running the demo

The log below shows the output of the SFA polling demo in the terminal window(There may be some deviation in the measurement results):

SFA example -- Measure the frequency of clock under test in polling mode
Start to measure Fast Clock.
The actual frequency of Fast Clock is 96963392 Hz.
Start to measure Slow clock.
The actual frequency of the Slow Clock is 33059 Hz.

SFA Measurement Finished.

MCX-W72-EVK
Hardware requirements
  • Type-C USB cable

  • MCX-W72-EVK Board

  • Personal Computer

  • Oscilloscope

Board settings
Prepare the Demo
  1. Connect a USB cable between the host PC and the EVK board J14.

  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.

  5. The demo will measure the frequency of some on-chip clock source. Use the Oscilloscope to probe SFA0_CLK Pin then you will monitor the signal to be measured by SFA.

Running the demo

The log below shows the output of the SFA polling demo in the terminal window(There may be some deviation in the measurement results):

SFA example -- Measure the frequency of clock under test in polling mode
Start to measure Fast Clock.
The actual frequency of Fast Clock is 96963392 Hz.
Start to measure Slow clock.
The actual frequency of the Slow Clock is 33059 Hz.

SFA Measurement Finished.

KW47-LOC
Hardware requirements
  • Type-C USB cable

  • KW47-LOC Board

  • Personal Computer

  • Oscilloscope

Board settings
Prepare the Demo
  1. Connect a USB cable between the host PC and the LOC board J3.

  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.

  5. The demo will measure the frequency of some on-chip clock source. Use the Oscilloscope to probe SFA0_CLK Pin then you will monitor the signal to be measured by SFA.

Running the demo

The log below shows the output of the SFA polling demo in the terminal window(There may be some deviation in the measurement results):

SFA example -- Measure the frequency of clock under test in polling mode
Start to measure Fast Clock.
The actual frequency of Fast Clock is 96963392 Hz.
Start to measure Slow clock.
The actual frequency of the Slow Clock is 33059 Hz.

SFA Measurement Finished.

MCXW72-LOC
Hardware requirements
  • Type-C USB cable

  • MCXW72-LOC Board

  • Personal Computer

  • Oscilloscope

Board settings
Prepare the Demo
  1. Connect a USB cable between the host PC and the LOC board J3.

  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.

  5. The demo will measure the frequency of some on-chip clock source. Use the Oscilloscope to probe SFA0_CLK Pin then you will monitor the signal to be measured by SFA.

Running the demo

The log below shows the output of the SFA polling demo in the terminal window(There may be some deviation in the measurement results):

SFA example -- Measure the frequency of clock under test in polling mode
Start to measure Fast Clock.
The actual frequency of Fast Clock is 96963392 Hz.
Start to measure Slow clock.
The actual frequency of the Slow Clock is 33059 Hz.

SFA Measurement Finished.

FRDM-MCXW72
Hardware requirements
  • Type-C USB cable

  • FRDM-MCXW72 Board

  • Personal Computer

  • Oscilloscope

Board settings

No special is needed.

Prepare the Demo
  1. Connect a USB cable between the host PC and the FRDM board J10.

  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.

  5. The demo will measure the frequency of some on-chip clock source. Use the Oscilloscope to probe SFA0_CLK Pin then you will monitor the signal to be measured by SFA.

Running the demo

The log below shows the output of the SFA polling demo in the terminal window(There may be some deviation in the measurement results):

SFA example -- Measure the frequency of clock under test in polling mode
Start to measure Fast Clock.
The actual frequency of Fast Clock is 96963392 Hz.
Start to measure Slow clock.
The actual frequency of the Slow Clock is 33059 Hz.

SFA Measurement Finished.

FRDM-KW43
Hardware requirements
  • Type-C USB cable

  • FRDM-KW43 Board

  • Personal Computer

Board settings
Prepare the Demo
  1. Connect a USB cable between the host PC and the FRDM board J28.

  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.

  5. The demo will measure the frequency of some on-chip clock source. Use the Oscilloscope to probe SFA0_CLK Pin then you will monitor the signal to be measured by SFA.

Running the demo

The log below shows the output of the SFA polling demo in the terminal window(There may be some deviation in the measurement results):

SFA example -- Measure the frequency of clock under test in polling mode
Start to measure Fast Clock.
The actual frequency of Fast Clock is 96963392 Hz.
Start to measure Slow clock.
The actual frequency of the Slow Clock is 33059 Hz.

SFA Measurement Finished.

FRDM-MCXW70
Hardware requirements
  • Type-C USB cable

  • FRDM-MCXW70 Board

  • Personal Computer

Board settings
Prepare the Demo
  1. Connect a USB cable between the host PC and the FRDM board J28.

  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.

  5. The demo will measure the frequency of some on-chip clock source. Use the Oscilloscope to probe SFA0_CLK Pin then you will monitor the signal to be measured by SFA.

Running the demo

The log below shows the output of the SFA polling demo in the terminal window(There may be some deviation in the measurement results):

SFA example -- Measure the frequency of clock under test in polling mode
Start to measure Fast Clock.
The actual frequency of Fast Clock is 96963392 Hz.
Start to measure Slow clock.
The actual frequency of the Slow Clock is 33059 Hz.

SFA Measurement Finished.