Anonymous
Not applicable
Feb 14, 2010
03:39 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Feb 14, 2010
03:39 PM
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();
}
}
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
#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();
}
}
1 Reply
Mar 03, 2010
08:27 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Mar 03, 2010
08:27 PM
I am not able to open the attached project. Check if the pin configured for the LED is StdCPU / Strong drive mode.