When uploading a Creator-project here you should:
1st. Build->Clean Project (That minimizes the number of files)
2nd. File->Create workspace bundle(minimal,zip)
3rd. Upload here.
I cannot open your project and the supplied PDF is a cypress-datasheet.
When a counter doesn't count there are some reasons I can think of:
Poor signal quality. Can be improved with some conditioning within the PSoC device
Frequency out of limit
Sync with wrong frequency
wrong gating / enabling of counter
Intervention / disturbing the counter due to read-out from program
As you can see from this, we need a bit more information to help you.
Sorry about that. I have re-attached a zip file after following your instructions. Is there a reason you were not able to open it up and run before?
I eagerly await your response. Thank you for your help.
As I said before, the first zip didn't contain what you (and me) expected, have a look by yourself.
The second ZIP was O.K!
I took the freedom to change (and comment) a lot. take care not to overwrite your original project after downloading. Had no time and equipment to test, that is up to you. When you really want to use interrupts (I took them out) contact me for some hints.
Thanks for taking a look. I built and programmed the files you sent and cannot figure out why the comparator output is not triggering when sine wave voltage is above Vdda/2 (it works correctly in the file I originally sent). Please advise, thanks.
I don't have the lightest clue. Does the LED - output show any signal?
Nope. I have it monitored on an Oscope and it is a flatline. When re-programed with original code - it works OK.
Re-build that part of the schematic until that works again, then connect it to the rest of the circuit. There was a small piece of an analog wire which removed. I didn't change the comparator at all.
Here is a list of the items which I am trying to execute.1. If newest_reading is < max_value, write to array buffer; Else wait for next reading2. Once array is filled with 3 measured values, take the average and make a decision about the output state3. Continuously update buffer with latest reading, replacing the oldest reading
What was your end code. I am interigating a RH sensor with a frequency over time. The RH is basicaly a variable capacator.
I was looking at using a comparator. Then use a counter. I saw a zip file on your post. I just copied it and I will take a look at your code tonight. Any help?