1.1 ACC Interrupt

This example application shows how to use an analog comparator controller (ACC) generate an interrupt on a compare event.

Description

This example application shows how to use the ACC Peripheral library to generate an interrupt when a rising/falling edge is detected on one the analog input pins.

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/acc/acc_interrupt/firmware.

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

Project NameDescription
sam_a7d65_curiosity.XMPLABX project for SAMA7D65 Curiosity Board

Setting Up AT91Bootstrap Loader

To load the application binary onto the target device, we need to use at91bootstrap loader. Refer to the at91bootstrap loader documentation for details on how to configure, build and run bootstrap loader project and use it to bootstrap the application binaries.

Setting Up the Hardware

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

Project NameDescription
sam_a7d65_curiosity.XSAMA7D65 Curiosity Board

Setting Up SAMA7D65 Curiosity Board

SETTING UP THE BOARD
  • Connect the USBA port J3 on the board to the computer using a Type-C USB cable (to power the board)
  • Use a jumper wire to connect Pin 40 of RPi connector to 3.3V/GND

Running the Application

  1. Build and run the application using its IDE
  2. Observe LED turning on/off by creating rising/falling edge on Pin 40 of RPi connector
  3. BoardLED Name
    SAMA7D65 Curiosity BoardRGB LED (Green)