General Category > Discussion - Software

FT260 and LibFT260, using Interrupts

<< < (2/2)

ffred:
Hi,
just to report informations about some tests I did (after a long pause on my FT260 project..) on a small dev board. I put a UMFT260EV1A on it, with a MCP23008 I/O expander connected to 4 buttons and 4 Leds and I connected the MCP23008 INT pin to GPIO3 (INTRIN/WAKEUP) of the FT260.

I had to activate the two HID ports, for I2C & UART, because with only the I2C it wasn't working.. (so the DLL is really using the UART to read the interrupt flag)

so, from LibFT260, I used FT260_UART_Init, FT260_SetInterruptTriggerType, FT260_SetWakeUpInterrupt , then FT260_I2CMaster_Init.
after that I send the config to the MCP23008 to activate the interrupt in open drain mode when I push a button.
and then I could use F260_CleanInterruptFlag to see if an interrupt occured and set a Led ON. and it worked !  ;D

so the Interrupt flag can be used.

Navigation

[0] Message Index

[*] Previous page

Go to full version