Welcome in the forum, Kestis.
I would suggest you to get hands on a PSoC5 Prototyping Kit, ask your local distri. Nothing more you will need. Download the IDE software from Cypress (it's free) and start learning. Using 3 counters running @10MHz 32bit wide with your signals connected to the capture input will do the hardware job. Some C-language programming and you can display/send your results.
I bought the prototyping kit and got it mostly working as I wanted. I have three timers running continuously and connected the signal channels to their capture inputs. Capture_out triggers an interrupt and the measurements are processed. This works perfectly.
The problem is that the timers should be synchronized. Now they seem to be somehow in sync but sometimes the times I measure just aren't right. I wonder what is the best method the synchronize them?
I also have another question. I have added several #includes to the source file for the interrupt. Whenever I change something in the schematic PSoC Creator generates source code again and removes all #includes I have added. How can I prevent this?
1 of 1 people found this helpful
Do not mess around with the generated files. There is an Interrupt_StartEx() API to use your own code which will not be altered at project generation.
You may consider using a control register connected to the counters trigger input