Attachments are accessible only for community members.
Apr 17, 2015
10:57 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Apr 17, 2015
10:57 AM
I have a pin called "OVER_CURRENT" that goes low when an over current condition occurs. When this happens I'd like it to latch for 2 seconds. During this period I'd like the driving pin "PIEZO_DRV" to go low. After 2 seconds if the OVER_CURRENT pin is high I'd like the driving pin to go high again. I think this should be pretty simple in hardware but I'm having trouble. I figured I could use a SR Flip Flop but I can't quite make sense of it. I've attached what I have attempted so far.
Labels
- Labels:
-
PSoC 5LP
4 Replies
Apr 17, 2015
11:33 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Apr 17, 2015
11:33 AM
I think the timer component might be helpful for you.
When you over current condition last for lets say 3 seconds, what should happen then?
Apr 17, 2015
11:38 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Apr 17, 2015
11:38 AM
The PIEZO_DRV pin should remain low. I know the timer will be necessary but how do I use it in conjunction with my flip flop?
Attachments are accessible only for community members.
Apr 17, 2015
11:58 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Apr 17, 2015
11:58 AM
Apr 17, 2015
04:57 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Apr 17, 2015
04:57 PM
You could implement an approach based on a pin interrupt,
the systick timer (non UDB chip resource), and a control reg,
would save some chip resources.