Announcements

Help us improve the Power & Sensing Selection Guide. Share feedback

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

cross mob
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
lock attach
Attachments are accessible only for community members.
MotooTanaka
Level 9
Level 9
Distributor - Marubun (Japan)
First comment on blog Beta tester First comment on KBA

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 5
Level 5
5 sign-ins First solution authored 50 replies posted

pastedImage_0.png

lock attach
Attachments are accessible only for community members.
MotooTanaka
Level 9
Level 9
Distributor - Marubun (Japan)
First comment on blog Beta tester First comment on KBA

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