Reading a pulses | Cypress Semiconductor
Reading a pulses
Hi I am new to PSoC.
I want to read 3 pulses in a row and then set a pin High.
This is my code it does not work.
/* Place your initialization/startup code here (e.g. MyInst_Start()) */
/* CyGlobalIntEnable; */ /* Uncomment this line to enable global interrupts. */
high = Pin_1_Read(); // reading the pin
while(count < 3)
count = count+high;
if(count > 3)