cancel
Showing results for 
Search instead for 
Did you mean: 

PSoC™ 5, 3 & 1

Anonymous
Not applicable

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    
0 Likes
7 Replies