Hardware requirements

  • Mini/Micro USB cable

  • LPCXpresso55S06 board

  • Personal Computer

Board settings

This project does not use the default serial port. P1_10(J13-4) for UART RX, P1_11(J13_6) for UART TX.

Prepare the Demo

  1. Connect a micro USB cable between the PC host and the LPC-Link USB port (J1) on the board.

  2. Open a serial terminal on PC for JLink serial device with these 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

When the example runs successfully, you can see the similar information from the terminal as below.

I2C example – Read Accelerometer Value Found an MMA8652 on board , the device address is 0x1d . The accel values: status_reg = 0xff , x = -192 , y = 188 , z = 2152 status_reg = 0xff , x = -168 , y = 192 , z = 2160 status_reg = 0xff , x = -180 , y = 152 , z = 2144 status_reg = 0xff , x = -200 , y = 132 , z = 2064 status_reg = 0xff , x = -192 , y = 108 , z = 2196 status_reg = 0xff , x = -232 , y = 136 , z = 2092 status_reg = 0xff , x = -260 , y = 192 , z = 1992 status_reg = 0xff , x = -240 , y = 304 , z = 1968 status_reg = 0xff , x = -208 , y = 336 , z = 1976 status_reg = 0xff , x = -208 , y = 296 , z = 1900

End of I2C example .