Skip to content

Latest commit

 

History

History

dspic33e-open-drain

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

image

Open Drain Configuration

Description:

This code shows an example of setting the Open Drain Configuration for a generic I/O Port. The open-drain feature allows the generation of outputs higher than VDD (e.g., 5V on a 5V tolerant pin)by using external pull-up resistors. An external Pull up resistor should be connected for the port configured as open drain output.

Open drain output is default high because of the external pull up resistor. In software the port configured as open drain is set to low during initialization and set as high when Switch S3 is pressed. Refer ce419_i2c_eeprom code example for a peripheral configured as open drain output.

Hardware Used

Software Used