- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi everyone
Is it possible to reload a counter(in Timer,Counter or PWM) whith its period register via hardware?
I mean without CPU intervention.
In User Modules Datasheet i don't see a way to do that and the only evident way is Starting and Stoping via software.
Thanks in advance
- Labels:
-
PSoC 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
For PSoC1 the answer is No The Load input is directly connected to the Terminal Count (TC) output for timers, counters and PWMs.
The situation is different when looking at the other PSoCs, there you may use additional signals to force a re-load or even use a reset-input.
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Unlike PSOC 3/4/5LP which have reset capability, the PSOC 1
does not. You are correct, if you stop counter/timer and write
period register it immeadiately updates the actual counter,
whereas if you do it while it is running it only updates on Tc.
There is just no HW hook in PSOC 1 implementation to do what
you want.
Clearly you are trying to short cycle the timer/counter, in general
what is drivijg the need to do that ?
Regards, Dana.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks Dana and Bob for your quick reply.
Dana, I'm tryng to do some sort of "Machester" code with PWM , but I need a relatively fast 400 kbps.
So I'll wait for PSoC 4 Pioneer kit to try that
Best Regards
Fernando
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This might be of interest -
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
Yes Dana
I have tried some combinatorial logic inside PSoC1
Basically what i need, is a bit lasting t=2.5us with .75t high and .25t low for "1's" and .25t high and .75t low for "0's".
So I realized I need Counter-PWM with Compare true at the start of the cycle and with hardwired reload function.
I choose PSoC1 for learning purposes
I'll give a try the App Note you suggest me to see if tweaking it suit my needs.
Thanks a lot
Fernando