Jump to main content

##

# 1.12 PTG Interrupt

This example demonstrates how to use PTG peripheral to execute step commands.

## Description

The PTG peripheral is configured to excute a series a step commands. Upon successful excution, LEDs glow in sequence.

## Downloading and building the application

To clone or download this application from Github, go to the main page of this repository and then click Clone button to clone this repository or download as zip file. This content can also be downloaded using content manager by following these instructions.

Path of the application within the repository is apps/ptg/ptg_interrupt.

To build the application, refer to the following table and open the project using its IDE.

Project Name | Description
--- | ---
pic32ak_gc_curiosity.X | MPLABX project for Curiosity Platform Development Board and PIC32AK1216GC41064 General Purpose Dual In-Line

## Setting up the hardware

The following table shows the target hardware for the application projects.

Project Name | Description
--- | ---
pic32ak_gc_curiosity.X | Curiosity Platform Development Board and PIC32AK1216GC41064 General Purpose Dual In-Line

## Setting up Curiosity Platform Development Board

1. Insert the GP DIM on to DIM slot of Curiosity Board
2. Connect the PKoB (J21) on the board to the computer using a USB type-C cable

## Running the application

1. Open the Terminal application (Ex.:Tera term) on the computer
2. Connect to the “PICkit 4 On Board Virtual COM Port” and configure the serial settings as follows
   - Baud: 115200
   - Data: 8 Bits
   - Parity: None
   - Stop: 1 Bit
   - Flow Control: None
3. Build and Program the application project using its IDE
4. Follow the instructions shown in the terminal window
5. See the following message in the console and LED glows

Board | LED | Switch
--- | --- | ---
Curiosity Development Board | LED1 | S1