Giter VIP home page Giter VIP logo

stusb4500's People

Contributors

barbeque avatar usb-c avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

stusb4500's Issues

Disabling all sink PDOs

I’m trying to design a very simple Power Delivery board based on an ATtiny processor that will display a list of the source power profiles, let you select one, and then deliver it to the output.

I have one question I'm stuck on. By default, when you connect the STUSB4500 to a USB PD source it selects the highest available voltage and enables the VBUS_EN_SNK line to deliver it to the output. In my application this isn’t ideal, because it could briefly deliver a higher voltage than wanted to an external circuit, before the I2C interface to the STUSB4500 has time to reset it.

I've tried setting DPM_PDO_NUMB to 0 and doing a soft reset, but this causes an error condition.

The only solutions I can think of are:

  • Drive the gate of the output MOSFET from a microcontroller I/O line, rather than VBUS_EN_SNK, so I can control when the power is enabled. However, I would have to redesign the PCBs I’ve created.

  • Reprogram the STUSB4500 NVM, but I’m reluctant to have to do this.

Is there a simpler solution I’m overlooking?

Incorrect definitions in USB_PD_defines.h

There may be an error with some definitions in USB_PD_defines.h

The comment does not seem to match the values defined...

Line 25: /*"000" then No Operation
Line 26: "001" then Read
...
Line 35: #define READ 0x00 //Read memory array

Elsewhere in the project: "READ" is used, resulting in an always-zero bitwise...

void CUST_ReadSector(uint8_t Port,char SectorNum, unsigned char *SectorData) { ...
Buffer[0]= (READ & FTP_CUST_OPCODE);

Is this intentional?

Is the NVM code tested and working?

I am trying to adapt our STM32 MCU code to read and write to the NVM registers so that the settings are saved persistently.

When I go to use nvm_flash(), the program hangs. Given that your main doesn't use any of the NVM code, is it actually tested and working? Generally, when I see this with other companies, it usually means code is incomplete and non functional.

Can you provide a simple example of it working from main?

Thanks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.