Hardware requirements

  • Mini/micro USB cable

  • LPCXpresso804 board

  • Personal Computer

Board settings

No special settings are required.

Prepare the Demo

  1. Connect a micro USB cable between the PC host and the CMSIS DAP USB port on the board

  2. Open a serial terminal with the following settings:

    • 9600 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

The log below shows example output of the CTimer simple match demo using interrupts in the terminal window:

CTimer match example to toggle the output.
This example uses interrupt to change the match period.

Connect Pins P0_20(CAN3-10) and P0_18(CAN3-9) to an oscilloscope. Users can observe two PWM signals, the frequency of which is increased gradually.