Post Go back to editing

How to attach interrupt to PORTC pin 0

Thread Summary

The user asked how to attach an interrupt to PORTC pin 0 on the ADSP-BF706. The final answer directed the user to the Button_LED_GPIO_polled example code in the ADSP-BF707 Board Support Package for PINT configuration. The user later reported resolving the issue and shared that configuring a watermark was necessary for SPI read-only operation with DMA.
AI Generated Content
Category: Hardware
Product Number: ADSP-BF706

Dear all,

I am searching for hours but still not clear on how to attach an interrupt to - in my case - PORTC pin 0 on the BF706.

I is clear how to configure the pin as an input etc, where both port and pin are to be specified.

However, the function adi_gpio_RegisterCallback just asks me for the interrupt channel and the pin, where it is not clear to me how the port is specified.

The PINT stuff is completely unclear to me, especially table Table 20-28 about PINT_ASSIGN in the HW refefernce, where PORTC does not seem to appear, in contrast to the description on page 20–7:

PINT0 can sense pin activity on PORTA and PORTB
PINT1 can sense pin activity on PORTB and PORTC
PINT2 can sense pin activity on PORTC and PORTA.

If there was some example code, that would help a lot!!!

BR Andre

Parents
  • Hi Andre,

    Can you please refer to the thread below for details on PINT configuration and assignment for ADSP-BF70x Processor.
    ez.analog.com/.../195978

    Please check the Button_LED_GPIO_polled example code available in the ADSP-BF707 Board Support Package for your reference. You can download the BSP from the following link:
    download.analog.com/.../ADI_ADSP-BF707_EZ-Board-Rel1.0.1.exe

    After installation, please navigate to the following path:
    <Installation path>:\Analog Devices\ADSP-BF707_EZ-Board-Rel1.0.1\BF707_EZ-Board\Blackfin\Examples\services\gpio

    Please use this as a reference and modify it as needed for your specific application requirements.

    Regards,
    Nandini C

Reply
  • Hi Andre,

    Can you please refer to the thread below for details on PINT configuration and assignment for ADSP-BF70x Processor.
    ez.analog.com/.../195978

    Please check the Button_LED_GPIO_polled example code available in the ADSP-BF707 Board Support Package for your reference. You can download the BSP from the following link:
    download.analog.com/.../ADI_ADSP-BF707_EZ-Board-Rel1.0.1.exe

    After installation, please navigate to the following path:
    <Installation path>:\Analog Devices\ADSP-BF707_EZ-Board-Rel1.0.1\BF707_EZ-Board\Blackfin\Examples\services\gpio

    Please use this as a reference and modify it as needed for your specific application requirements.

    Regards,
    Nandini C

Children

Before You Switch


Switching languages will make ADI Explorer unavailable. Resume your session by switching back to English and reopening ADI Explorer.