time issue | Cypress Semiconductor
I'm new to PSoC Family. I want to know how to calculate the time consumed by the function (like simulation in other controller). As i'm using API for adc conversion i'm not able to check how much time it will take to execute the API.
At the same time i'm trying to drive the LED through port pin p5.In the schematic i made pin as digital output.
And pin drive mode i kept strong drive. And in the code i written
drive_state = (drive_state & 0x02);
UT_Cont_ON_OFF_Write(drive_state); // Turn pin 2 of port to turn LED ON;
Where UT_Cont_ON_OFF_Write is pin name and drive_state is the variable with initial value =0xFF;
Please suggest me about above problem