Example description
Overview
========
This example is a reference application to use GPC module to count the
generated pulses on the pin J35.3
This example project will output logs via HDK USB (CON5) to PC.
Hardware requirements
=====================
- LinkIt 7687 HDK.
- Personal Computer
- Type-A to micro-B USB
Board settings
==============
GPC module mapping is listed below, connect pin GPIO33 to GPIO6.
|CHx |GPIOx |PINx | |GPIOx |PINx |
|-----|-------|--------| |------|--------|
| 0 | 33 |J35.3 |==>| 6 |J35.4 |
Prepare the Demo
================
1. Connect a micro USB cable between the host PC and the MK20 USB port (CON5) on the target board.
2. Open a serial terminal on port coresponding to "mbed Serial Port" 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. Connect J35.3 to J35.4.
Running the demo
================
1. Either press the reset button on your board or launch the debugger in your IDE to begin running the demo.
The log will display the pulse number captured by GPC
such as "Generated pulse number: XX , read count from GPC: XX." and this
indicates a successful operation.
Customization options
=====================