delay function

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

cross mob
Anonymous
Not applicable

Hello

   

I would like to create a delay function for cyusb 3025 device .is any inbulit api is present in fx3 sdk?.Please tell to how to read value of GPIO pin

   

 

   

thanking you in advance

   

ajish

0 Likes
1 Solution
Anonymous
Not applicable

CyU3PGpioGetValue () to read the value of the GPIO pin.

   

CyU3PBusyWait () for inserting small delays
 

View solution in original post

0 Likes
3 Replies
Anonymous
Not applicable

CyU3PGpioGetValue () to read the value of the GPIO pin.

   

CyU3PBusyWait () for inserting small delays
 

0 Likes
Anonymous
Not applicable

Hello Dhritiman Kashyap

   

Thanks for reply. i need to create particular value delay mainly in microseconds .is there formula to calculate delay function value

   

 

   

with regards ajish

0 Likes
Anonymous
Not applicable

You can specify the delay function value(in usec) as an argument to the CyU3PBusyWait() API.

   

Refer to the FX3 API guide for details.
 

0 Likes