Post Go back to editing

GPIO Programming Model flowchart confusion

Category: Datasheet/Specs
Product Number: ADSP-BF607

Hello!

I'm trying to configure a pin as GPIO input and enable interrupts. I was following the flow chart starting on page 538 / 2278 in the ADSP-BF60x Blackfin Hardware Reference, Revision 0.5 when I noticed something weird on page 539 / 2278. To me it seems like the flow-chart is telling me to write to registers controlling interrupt functions (PINT_INV_SET) before deciding if I even want to have interrupts enabled (circled red / highlighted yellow in screenshot). Shouldn't the inverters for GPIO pins be controlled by setting bits in PORT_POL / PORT_POL_SET / PORT_POL_CLR?

Thanks!

  • Hi,

    We are checking on this and will get back to you as soon as possible.

    Regards,
    Nandini C

  • Hi,

    As described in the HRM, the PINT_INV_SET register is used to configure the polarity for interrupt generation. By default, setting a bit in this register inverts the signal polarity, causing the PINTx block to generate interrupts on active-low signals or falling edges. If you are using the PINT_INV_CLR register clears the inversion, allowing the PINTx block to respond to active-high signals or rising edges.

    Similarly, setting a bit in the PORT_POL register enables polarity inversion for the corresponding GPIO pin, making it active-low or falling-edge sensitive. Clearing the bit in PORT_POL disables this inversion, returning the pin to its default active-high or rising-edge sensitivity.

    Regards,
    Nandini C

Before You Switch


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