MCUXpresso SDK Documentation

pxp_rotate_output

pxp_rotate_output#

Overview#

The PXP picture rotation project demonstrates how to use the ROTATE0 module to implement rotation functionality. If this example runs correctly, you will see a square with three color(red, green and blue).The rotate degree is changing. In this example the ROTATE0 module is used to rotate the image in output buffer, the width and height of the image are swapped when the rotation angle is 90 or 270 degree. It is necessary to adjust registers such as OUT_LRC and OUT_PS_LRC according to the rotation angle.

Supported Boards#

IMX943-EVK
Hardware requirements
  • Micro USB cable

  • IMX943-EVK board

  • J-Link Debug Probe

  • 12V~20V power supply

  • Personal Computer

  • LCD SPEC panel

Board settings

Connect the LCD SPEC panel to J38

Please note this application can’t support running with Linux BSP!
Prepare the Demo
  1. Connect 12V~20V power supply and J-Link Debug Probe to the board, switch SW1(SYS_PWR) to power on the board.

  2. Connect a micro USB cable between the host PC and the J15(FTDI_DEBUG) USB port on the target board.

  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 re-power up your board or launch the debugger in your IDE to begin running the example

Running the demo

When the example runs, the screen shows what described in overview. The log below shows the output of the demo in the terminal window:

PXP Rotate Output example start...