uint8 Pin_Write(void)

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

cross mob
Anonymous
Not applicable

 Hi all, 

   

If a port is connected to a signal generator, can I still use uint8 Pin_Write(void) function to set the value of that port to the other value for some certain time period, like 0. Thank you so much!

0 Likes
4 Replies
ETRO_SSN583
Level 9
Level 9
250 likes received 100 sign-ins 5 likes given

Yes, the pin logic is not a f() of the signal injected into

   

it, but you could get unexpected results. For example,

   

if you are driving the pin with 50 ohm generator, and you

   

config pin as strong drive output, you could get high currents

   

flowing that PSOC I/O supply routing on die cannot handle.

   

Hence logic  could fail, part could get damaged. Case in point

   

you drive output to logic low and generator to supply rail.

   

 

   

Regards, Dana.

0 Likes
ETRO_SSN583
Level 9
Level 9
250 likes received 100 sign-ins 5 likes given

Yes, the pin logic is not a f() of the signal injected into

   

it, but you could get unexpected results.

   

 

   

Clarify this that when pin is subjected to inappropriate conditions

   

then pin logic can fail, stated another way pin logic then would be a

   

function of the way you drive it.

   

 

   

Regards, Dana.

0 Likes
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

First: the function is void Pin_Write(uint8).

   

You cannot safely run two signals against each other when their type does not match,

   

When the output of your function generator is open drain or a resistive output there is a good chance to get it to work as you like to. When the generator's output has a phase of high impendancy you may drive the signal by the pin, there is a output enable signal to swithch a pin on and off.

   

Plenty of possibilities, but some combinations may blow your pin or generator.

   

 

   

Bob

0 Likes
Anonymous
Not applicable

 Thank you for your help! Yup! I can't feed two conflicting signal to a pin. 

0 Likes