You are here

bidirectional psoc4 pins | Cypress Semiconductor

bidirectional psoc4 pins

Summary: 1 Reply, Latest post by odissey1 on 14 Nov 2016 11:48 AM PST
Verified Answers: 1
Last post
Log in to post new comments.
glenn-edgar_1523231's picture
User
22 posts

I need to interface with one wire and pseudo one wire devices.  I believe that if the pin is configured to bidirectional open drain with drives low option will work.  

The one wire devices require a 5Kohm pull up resistor.  Is it possible to configure the bidirectional pin with the pull up resistor option?

 

The second part of the question is about switching the port from output mode to read mode.  

1.  For the host to assert a low write a 0 to the pin.

2. To write a 1 or release the bus for read mode write a 1 to the pin.

Is this correct?

Thanks 

Glenn 

user_342122993's picture
User
578 posts

1. You can set pin to bidirectional-resistive pull up, but the internal resistor is ~10k and not enough to comply with timing requirements. So there is external 5k resistor required. I believe it is still possible to cheat and not use external resistor by ganging 2 pins together, so effective pull-up resistor becomes ~5k.

2. You shoul read 1-wire protocol, I believe it is more complicated than that. As an example take a look on DS18B20 1-wire communication in this custom component

http://www.cypress.com/forum/psoc-community-components/component-read-ds...

Log in to post new comments.