Other Parts Discussed in Thread: TPS65988, TUSB564
Hello, I want to use TUSB546A with MCU over I2C. I want to get mux parameter from TPS65988 to TUSB546A by MCU. Which parameter I must get from TPS65988.
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hello, I want to use TUSB546A with MCU over I2C. I want to get mux parameter from TPS65988 to TUSB546A by MCU. Which parameter I must get from TPS65988.
Hi,
Are you asking which TUSB546A registers need to be programmed by the MCU?
Thanks
David
Yes I want to program TUSB546A vie MCU. MCU will get information from PD. What information I must get from PD?
Hi Muhammet,
What information are you looking to get from PD? Typically how this is done is to use the I2C master lines of TPS65988 along with the I2C controller events table in the GUI to configure the TUSB device based on the parameters you want to set. This uses no information from the PD itself. The setup events and configuration I2C events will come from the TUSB team based on your needs.
Please see this app note on how to use TPS6598x I2C to control TUSB devices. The device used as reference in this app note is TUSB564, therefore the setup events will be different but the nomenclature will be the same!
Regards,
I want to use both pd controller(tps65988) and mux(TUSB546A) as slave. I want to configure both of them with MCU(STM32). I have a library for TUSB546A. This library takes input like "USB_NORMAL = 0, USB_FLIPPED, DFP_D_PIN_ASSIGNMENT_A_NORMAL, DFP_D_PIN_ASSIGNMENT_A_FLIPPED, DFP_D_PIN_ASSIGNMENT_B_NORMAL, DFP_D_PIN_ASSIGNMENT_B_FLIPPED".
Which register and parameter I must get from PD controller to create structure for send to TUSB546A. I want to create input like above from getting data from pd controller.
Hi Muhammet,
This information can be found in the Status register (0x1A) for each port. For more information contained in this register, please refer to Host Interface Technical Reference Manual.
Regards,
Brandon
Hi Muhammet,
There paramter you get from 0x1A will depend on what specifically you are looking for based on your system requirements. For example, from your statement above it looks like you are looking for cable orientation for each port. Therefore, you would read bit [4] for cable orientation which will either return 0b for Upside-Up and 1b for Upside-Down.
You may read into 0x5F, but once again this will depend on what parameter you are looking for based on your system requirement. For more information on the content of each register, please refer to Host Interface Technical Reference Manual for a description of each register.
Regards,
Brandon