Using Open Drain, Drives low drive mode as a Digital Input

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

cross mob
Anonymous
Not applicable

Hello,

   

 

   

I'm using a CY8C3446AXI-098 PSoC 3, which according to the datasheet has two USBIOs on pins P15[6] and P15[7] which can be used to either provide connection for a USB data bus or be used as general DIO pins.  However, what the datasheet didn't specify, and what I didn't find out until trying to build my design, is that the DIO pins can only be configured to one of two drive modes, Strong Drive, and Open Drain Drives low.

   

 

   

I was hoping to use these pins as general purpose digital input pins.  It seems logical enough to think that the pins could be configured in Open Drain, Drives low drive mode, and simply held in the high-Z state to be capable of sensing any input voltage on the pin.  However, if this is the case I would expect to be able to configure the pins as a high impedance digital input drive mode so there would be no confusion.  Must the software ensure that the pin is always held in high-Z state when configured as an input, or is this done automatically by PSoC creator?

   

 

   

I just want to verify that a pin configured as Open Drain, Drives low can be used as a digital input equivalent to a high impedance digital input pin with no extra external circuitry or software so that I don't end up building the board and realize these two DIO pins don't act as I'd expect.

   

 

   

Thank you!

   

John

0 Likes
1 Reply
Anonymous
Not applicable
    Hi,   
   
        
  1. It is possible to read the pin status using the Pin_Read() API. 
  2.     
  3. When the Pin is driven Low, there is a Strong low signal on the Pin and the API Pin_Read() will return a zero.
  4.     
  5. However, when a logic one is written using the API Pin_Write(), the pin is connected the Drain of the internal MOSFET and it is open. This means the value returned by the API Pin_Read() is determined by what voltage appears on the pin. A pull up provided on this pin will give a logic high.
  6.    
0 Likes