cancel
Showing results for 
Search instead for 
Did you mean: 

PSoC Creator & Designer Software

Anonymous
Not applicable
        I am starting to use the device CY8C20666A-24LTXI with PSoC Designer 5.0.   
   
I can program it using miniprog3, but I can't succeed to light a LED (using LED user module). Is there a problem in my code? Is there a common mistake I could have done?   
   
You can look at my project too.   
   
Thanks a lot.   
   
Gabriel   
   
//----------------------------------------------------------------------------   
// C main line   
//----------------------------------------------------------------------------   
   
#include        // part specific constants and macros    
#include "PSoCAPI.h" // PSoC API definitions for all User Modules    
#include "PSoCGPioInt.h"    
    
    
void main(void)    
{    
// Enable global interrupts    
M8C_EnableGInt;    
    
//LED initialisation    
LED_0_Start();    
LED_1_Start();    
LED_0_On();    
LED_1_On();    
    
// Main operating loop    
while (1)    
{    
LED_0_On();    
LED_1_On();    
}    
    
}    
   
0 Likes
Reply
1 Reply
Employee
        I am not able to open the attached project. Check if the pin configured for the LED is StdCPU / Strong drive mode.   
0 Likes
Reply