Appendix B: GPIO Control
•
77
•
sig_in_period_counter [15:0] = MIN( INT( Signal_In_Period / Granularity ), 65535)
•
multiplier_out [31:0] = sig_in_period_counter[15:0] x Multiplier_setting[15:0]
•
divider_ou t[27:0] = INT ( multiplier_out[31:0] / Divider_setting )
•
Signal_Out_Period = MAX( divider_out[27:0], 2 ) x Granularity
Counter
The counter maintains a count value that can be increased, decreased, or cleared based on
input signals. The counter outputs two signals (which are inputs to the GPIO LUT).
Counter Incremental Source
Specifies how the input for incrementing the count is handled. The counter’s up event uses
the Q17 label in the LUT. It can be one of the following settings:
•
Disabled
•
On the rising edge
•
On the falling edge
•
On both edges
•
On the high level
•
On the low level
Counter Decrement Event Source
Same as above but for the down event, but uses the Q16 label in the GPIO LUT.