cancel
Showing results for 
Search instead for 
Did you mean: 

PSoC 5, 3 & 1

Anonymous
Not applicable

 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.

0 Likes
2 Replies
Bob_Marlowe
Expert II

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

0 Likes
Anonymous
Not applicable

 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.

0 Likes