- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I have configured the SPIM component with 11 bits of Manchester data. I want to count the number of falling edges of that Manchester data. Currently have configured the Counter to do so. Counter is configured as :
-------------------------------------
Capture Mode: Falling Edge
Interrupt: On Capture
Compare mode: Less than or Equal
Capture and count input: manchester
Clock: sclk
--------------------------------------
In the ISR, I want to perform action on the particular falling edge.
What is the best way to count the falling edges of the manchester data?
Solved! Go to Solution.
- Labels:
-
PSoC 5LP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I assume you want to count over a specific period of time ? If so
use a timer to enable counter, one shot mode, then attach an ISR
to timer end of period, in that ISR read counter and reset it The
variable used should be declared as volatile. After counter read,
reset counter, restart timer.
Regards, Dana.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I assume you want to count over a specific period of time ? If so
use a timer to enable counter, one shot mode, then attach an ISR
to timer end of period, in that ISR read counter and reset it The
variable used should be declared as volatile. After counter read,
reset counter, restart timer.
Regards, Dana.