This application demonstrates an LED toggle (LED0 toggles when the switch SW0 is pressed) on a timeout basis and print the LED toggling rate on the serial terminal. The periodicity of the timeout will change from 500 milliseconds to one second, two seconds, four seconds, and back to 500 milliseconds every time you press the switch SW0 on the PIC32CK GC01 Curiosity Ultra Development Board.
The demo application has an extended functionality to read and print the current room temperature periodically when the extension header (EXT1) is plugged with the I/O1 Xplained Pro Extension Kit. The temperature reading is displayed on a serial console periodically.
This project has been verified to work with the following versions of software tools:
Refer Project
Manifest present in harmony-manifest-success.yml under the project
folder firmware/src/config/pic32ck_gc01_cult
- Refer the Release
Notes to know the MPLAB X IDE and
MCC Plugin version. Alternatively, Click
Here.
- Any Serial Terminal application like Tera Term terminal
application.
Because Microchip regularly update tools, occasionally issue(s) could be discovered while using the newer versions of the tools. If the project doesn’t seem to work and version incompatibility is suspected, It is recommended to double-check and use the same versions that the project was tested with. To download original version of MPLAB Harmony v3 packages, refer to document How to Use the MPLAB Harmony v3 Project Manifest Feature
Connect the Type-A male to Micro-B USB cable to Micro-B DEBUG USB port (J900) to program and debug the PIC32CK GC Curiosity Ultra Development Board.
The pre-built hex file can be programmed by following the below steps
Note: This application is programmed using the PKOB4 tool pack v1.14.1168. If the user sees issues with programming, please install this tool pack version and use it accordingly.
Open the Tera Term terminal application on your PC (from the Windows® Start menu by pressing the Start button).
Set the baud rate to 115200.
Reset or power cycle the device.
An LED0 on the PIC32CK GC01 Curiosity Ultra Development Board toggles on every timeout basis and the default periodicity of the timeout is 500 milliseconds.
And also, the LED toggling rate is displayed on the serial terminal.
Press the switch SW0 on the PIC32CK GC01 Curiosity Ultra Development Board to change the periodicity of the timeout to one second.
Every subsequent pressing of the switch SW0 on the PIC32CK GC01 Curiosity Ultra Development Board changes the periodicity of the timeout to 2 seconds, 4 seconds, 500 milliseconds, and back to 1 second in cyclic order.
Testing Extended functionality:
Below diagram shows the sample output log displayed on command prompt.