cancel
Showing results for 
Search instead for 
Did you mean: 

PSoC 4 MCU

RoCa_1222471
New Contributor II

I'm using PWM_3CMP-v1_00 component (found into community) to control RGB leds but initial drive state of external pin is forced High (1) at power up and is not possible to change it to low voltage. GPIO datasheet says that from version 2.10 "PSoC 4 HW digital output is driven by the signal  connected to it and hence the initial drive state  parameter should not be used."

pastedImage_0.png

(I attached the component for RGB leds driver)

How is possible to modify the PWM_3CMP_v1_00 component to avoid leds on at power up? Or there's  another way to solve this issue?

Thank you

0 Likes
1 Solution
Vasanth
Moderator
Moderator

Hello Roberto,

When digital output is driven by the signal connected to it and hence the initial drive state  parameter should not be used. That is why the option is disabled. It is necessary to keep this high too.

Now if you want to avoid turning ON LEDs on power up, you can use the Pinoutput Enable option.

pastedImage_0.png

You may use a control register to enable this pin after startup before starting the PWM. The initial value of it should be 0.

pastedImage_1.png

PinEnable_Write(1) API can be used to write into the control register.

Best Regards,
VRS

View solution in original post

0 Likes
2 Replies
Vasanth
Moderator
Moderator

Hello Roberto,

When digital output is driven by the signal connected to it and hence the initial drive state  parameter should not be used. That is why the option is disabled. It is necessary to keep this high too.

Now if you want to avoid turning ON LEDs on power up, you can use the Pinoutput Enable option.

pastedImage_0.png

You may use a control register to enable this pin after startup before starting the PWM. The initial value of it should be 0.

pastedImage_1.png

PinEnable_Write(1) API can be used to write into the control register.

Best Regards,
VRS

View solution in original post

0 Likes
RoCa_1222471
New Contributor II

I tryed your hint and it functions correctly.

Thank you

Roberto Casella

Electronic R&D Department

Da: "vsrs" <community-manager@cypress.com>

A: "Roberto Casella" <roberto.casella@ave.it>

Inviato: Martedì, 4 dicembre 2018 12:13:08

Oggetto: Re: - PSoC 4 HW digital output is driven by the signal connected to it and hence the initial drive state parameter should not be used.

[ http://www.cypress.com/ |

]

[ https://community.cypress.com/?et=watches.email.thread |

Cypress Developer Community

]

PSoC 4 HW digital output is driven by the signal connected to it and hence the initial drive state parameter should not be used.

reply from https://community.cypress.com/people/vsrs?et=watches.email.thread in PSoC 4 MCU Community - https://community.cypress.com/message/180713?et=watches.email.thread#180713

Hello Roberto,

When digital output is driven by the signal connected to it and hence the initial drive state parameter should not be used. That is why the option is disabled. It is necessary to keep this high too.

Now if you want to avoid turning ON LEDs on power up, you can use the Pinoutput Enable option.

pastedImage_0.png

You may use a control register to enable this pin after startup before starting the PWM. The initial value of it should be 0.

pastedImage_1.png

PinEnable_Write(1) API can be used to write into the control register.

Best Regards,

VRS

Reply to this message by replying to this email, or https://community.cypress.com/message/180713?et=watches.email.thread#180713

Start a new discussion in PSoC 4 MCU Community by mailto:discussions-community-MCU-psoc--4@broadcomwiced-v8.hosted.jivesoftware.com or at https://community.cypress.com/choose-container.jspa?contentType=1&containerType=14&container=2172&e...

Following https://community.cypress.com/message/180713?et=watches.email.thread#180713 in these streams: Inbox

This email was sent by Cypress Developer Community because you are a registered user.

You may https://community.cypress.com/unsubscribe.jspa?email=roberto.casella%40ave.it&token=9e9d83bd9e0c817... instantly from Cypress Developer Community, or adjust email frequency in your https://community.cypress.com/user-preferences!input.jspa

0 Likes