You are here

Just Hardware viable? | Cypress Semiconductor

Just Hardware viable?

Summary: 1 Reply, Latest post by hli on 11 Feb 2016 03:01 AM PST
Verified Answers: 0
Last post
Log in to post new comments.
user_365962704's picture
144 posts

Hi all,

I have a simple project were i count the number of PWM pulses with a Counter, when the period counter counts down to 0 it trigger an interrupt where i turn off the PWM and the Counter instances, here i start a Timer, after 'x' time the Timer interrupt is triggered, here i stop the timer and start both PWM and Counter instances again, and the process is repeated.

So i would like to know if i can make this project the 'PSoC way', i mean using just hardware connections, i haven't try nothing yet, nothing comes to my mind when i think how to solve it :/ , so i come here asking for suggestions, for both Software (maybe my aproach can get better) and Hardware (if there is one), i'm not looking for you solve my problem, just a storm of ideas :D


Thanks in advance, find the project attached.


user_78878863's picture
2553 posts

Without looking at the code: this looks like statemachine. For that, use a lookup-table. PWM, counter and timer have start/stop signals that can react to signal flanks (and if not, you can create a pulse from a signal easily).

Log in to post new comments.