Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

PSoC™ 5, 3 & 1 Forum Discussions

pavic_2246186
Level 1
Level 1

Good afternoon. How can I replace the block in the figure below (used in a Psoc 4); in a Psoc 5LP? How can I do it? Thank you!!!

pastedImage_0.png

0 Likes
1 Solution
MotooTanaka
Level 9
Level 9
First comment on KBA 1000 replies posted 750 replies posted

Hi,

I tried with CY8CKIT-059.

Can this be what you were asking for?

000-schematic.JPG

001-Configure.JPG

main.c

============================

#include "project.h"

void init_hardware(void)

{

    CyGlobalIntEnable; /* Enable global interrupts. */

    PWM_WriteCompare(0) ;

    PWM_Start() ;

}

int main(void)

{

    uint8_t red = 0 ;

  

    init_hardware() ;

  

    for(;;)

    {

        PWM_WriteCompare(red) ;

        red = (red + 1) % 0x100 ;

        CyDelay(10) ;

    }

}

============================

moto

View solution in original post

0 Likes
2 Replies
euggersh
Level 4
Level 4
5 sign-ins First solution authored 50 replies posted

pastedImage_0.png

MotooTanaka
Level 9
Level 9
First comment on KBA 1000 replies posted 750 replies posted

Hi,

I tried with CY8CKIT-059.

Can this be what you were asking for?

000-schematic.JPG

001-Configure.JPG

main.c

============================

#include "project.h"

void init_hardware(void)

{

    CyGlobalIntEnable; /* Enable global interrupts. */

    PWM_WriteCompare(0) ;

    PWM_Start() ;

}

int main(void)

{

    uint8_t red = 0 ;

  

    init_hardware() ;

  

    for(;;)

    {

        PWM_WriteCompare(red) ;

        red = (red + 1) % 0x100 ;

        CyDelay(10) ;

    }

}

============================

moto

0 Likes