This is the documentation for the latest (main) development branch of mcuxpresso sdk. If you are looking for the documentation of previous releases, use the drop-down menu on the left and select the desired version.

Hardware requirements

  • Type-C USB cable

  • FRDM-MCXN947 board

  • Personal Computer

  • An encoder with PHASE A/B signals.

Board settings

  1. For pin connection between board and encoder, J3.3(P1_22) -> kINPUTMUX_TrigIn3ToQdc0Phasea -> QDC_PHA J3.1(P2_0) -> kINPUTMUX_TrigIn5ToQdc0Phaseb -> QDC_PHB J1.3(P4_13) -> kINPUTMUX_TrigIn8ToQdc0Index -> QDC_INDEX

Prepare the Demo

  1. Connect a USB cable between the host PC and the MCU-Link USB port on the target board.

  2. Connect the wires between encoder and the MCU board. See to the code for pin mux setting in function “BOARD_InitPins()”.

  3. Open a serial terminal with the following settings:

    • 115200 baud rate

    • 8 data bits

    • No parity

    • One stop bit

    • No flow control

  4. Download the program to the target board.

  5. Either press the reset button on your board or launch the debugger in your IDE to begin running the demo.

Running the demo

${ANCHOR}