- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
hello dear colleagues,
i need to have a simple solution for detecting pulses ( f=100Hz width 800µs).
think of a monoflop with retrigger, but do not know how to implement.
must detect the absence of pulses from zerocross detector.
if pulses are detectet, normal operation
if pulses are absent, failure condition ( to be detected with 1-bit status register).
any ideas how to get this done the PSoC way ? (schematic)
Chip:CY8C3866LTI-067
Creator: 2.2
best regards Markus
- Labels:
-
PSoC 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I think PWM with One shot mode is suitable for you.
Schematic goes like this.
And Edge detector, Deboucer and Glitch filter(?) are also available.
I think.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The rates and pulse period sufficiently slow you could do this entirely in code.
You have not stipulated decision latency.
Your tasks are -
1) Detect missing pulse, no input
2) Detect pulse too short/long, period OK
3) Detect pulse OK, but period is not
You could use a counter that is enabled by input, when input returns low
look at counter value to determine if runt pulse, or if pulse too long.
A secondary timer/counter to implement period checking, to make
sure no pulse case is handled, as well as out of spec period for
pulse.
Cocde or HW can be used, consider a LUT to implement a state machine
along with counters/timers to measure pulse parameters.
Regards, Dana.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This reference has a one shot approach, but keep in mind one
shots notorius for poor timing accuracy.
www.ti.com/general/docs/lit/getliterature.tsp
You could implement a one shot with comparator and reference
to get more accurate timing.
Regards, Dana.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content