- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I want to be able to measure the frequency of an incoming square wave signal (0-5V). Because I want to be able to use equivalent-time sampling to measure frequencies above the max CPU frequency of the PSoC, I simply want to be able capture high or low as fast as possible (at regular, known intervals) and store the results for processing.
Is there a way to do this with a digital input pin? Or do I need to use a serial communication block like SPI?
Thanks,
- John E.
- Labels:
-
PSoC 5LP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello John,
If you are keeping the BusClock to a low frequency and configure the MasterClock to higher value then this is possible. If already the BusClock is very high, then this will not be possible.
Thanks,
Hima
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You could setup a DMA, triggered from a clock, that stores a sample of the signal (captured by a status register) into memory.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This is exactly what I was looking for. Thank you hli.