Re: [Fx2lib-devel] Interrupting on GPIF idle
Status: Beta
Brought to you by:
mulicheng
From: Dennis M. <de...@ub...> - 2009-05-05 17:16:09
|
Eric Winsor wrote: > OK, so all I need to do is write to the GPIFTRIG register again to > restart the GPIF. Correct, but there are other issues, like which flowstate is currently selected, which fifo you want to write to etc. The gpif.h/gpif.c file in fx2lib has functions to do pretty much everything you need to do with gpif. (You'll have to stop using Keil to use it though :) ). > Also I will need to write 0x01 to GPIFIE to enable > the done interrupt And you have to have the gpif interrupts set up correctly. > and write 0x01 to GPIFIRQ when Ive serviced the > interrupt. Correct? > And you also have to clear the main gpif interrupt. Order is important. See the TRM. I've forgotten the details because I just use the GPIF macros in the fx2 library. > Also, what does the waveform bit (bit 1) in GPIFIE do? > You'll have to look it up and post back. I can't recall off the top of my head. -Dennis |