Anonymous
Not applicable
Oct 23, 2014
12:56 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Oct 23, 2014
12:56 PM
Hello everyone,
Straight to the point,
I'm new for programming in C
I'm trying to provide a PWM signal which constantly changing it's periode or pulse width until a certain value, a delay time is used in each iteraion to see the diffeences.
I'm using a simple for loop, but I still can't see the pwm signal changing in the oscilloscope.
This is the code
--------------------------------------------
PWM_start;
for (i= 0 ; i< 255 ; i++);
{
PWM_WritePulseWidth(i);
Delay10msTimes( 100 );
}
----------------------------------------
Can you please informe with what's wrong.
Thank you
Labels
- Labels:
-
PSoC 1
7 Replies