Jan 25, 2017
09:39 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jan 25, 2017
09:39 PM
I'm trying to dim an LED usinf PWM. I have a MOSFET connected to a GPIO, which is the PWM pin. Whenever PWM_Start() is called for the first time, the LED lights up, then goes away, as in a spike, then the dimming kicks in. Is there any way to make PWM_Start() to not spike the LED the first time?
Solved! Go to Solution.
Labels
- Labels:
-
PSoC 5LP
1 Solution
Jan 26, 2017
07:55 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jan 26, 2017
07:55 AM
Check pin output state on program startup. I suspect it is HIGH (for some 100ms while program initializes). If so, change pin startup state in pin properties.
2 Replies
Jan 26, 2017
03:57 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jan 26, 2017
03:57 AM
Consider to negate the output of the PRiSM (which you hopefully use). Can you please post your complete project, so that we all can have a look at all of your settings. To do so, use
Creator->File->Create Workspace Bundle (minimal)
and attach the resulting file.
Bob
Jan 26, 2017
07:55 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jan 26, 2017
07:55 AM
Check pin output state on program startup. I suspect it is HIGH (for some 100ms while program initializes). If so, change pin startup state in pin properties.