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

USB superspeed peripherals Forum Discussions

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
250 solutions authored 100 solutions authored 100 likes received

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
250 solutions authored 100 solutions authored 100 likes received

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