FX3: get values of GPIFII counters

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
josw_3010621
Level 1
Level 1

Hi,

is it possible to read the actual counter values of DATA_COUNT, ADDR_COUNT and CTRL_COUNT registers?

Thanks in advance.

Joe

0 Likes
1 Solution
SrinathS_16
Moderator
Moderator
Moderator
1000 replies posted 750 replies posted 500 replies posted

Hello Joe,

- The current value of the counter cannot be obtained in the firmware. Instead, an event can be generated when the counter limit value is being hit.

- The counter values can be initialized in the firmware using the CyU3PGpifInitDataCounter(), CyU3PGpifInitAddrCounter() and CyU3PGpifInitCtrlCounter() APIs. These APIs perform the same functions as the counter initialization in the state machine.

Best regards,

Srinath S

View solution in original post

0 Likes
1 Reply
SrinathS_16
Moderator
Moderator
Moderator
1000 replies posted 750 replies posted 500 replies posted

Hello Joe,

- The current value of the counter cannot be obtained in the firmware. Instead, an event can be generated when the counter limit value is being hit.

- The counter values can be initialized in the firmware using the CyU3PGpifInitDataCounter(), CyU3PGpifInitAddrCounter() and CyU3PGpifInitCtrlCounter() APIs. These APIs perform the same functions as the counter initialization in the state machine.

Best regards,

Srinath S

0 Likes