- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
If I have a pin component that is connected to other PSoC logic in the schematic editor is there a way to "override" the hardware connected to the pin and use the API to write to the pin output latch?
It seems that the Write() API call is disabled when something is connected to the hardware connection of the schematic pin, but no error or warning is generated (i.e. the Write() call is still there.
I understand this is an unusual condition (usually you want hardware or software control, not both) and I'd prefer not to add a control register and mux it that way.
- Labels:
-
PSoC 5LP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You will have to use an OR and a control-register. All APIs state that changing a pin's output will not work when the pin is driven by hardware.
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Understandable, but not the answer I was hoping for. 🙂
Thanks, Bob. I appreciate the reply. FWIW I think the code generation should strip out the Write() API calls if the hardware pin is enabled.