- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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."
(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
Solved! Go to Solution.
- Labels:
-
PSoC 4 Architecture
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
You may use a control register to enable this pin after startup before starting the PWM. The initial value of it should be 0.
PinEnable_Write(1) API can be used to write into the control register.
Best Regards,
VRS