Other Parts Discussed in Thread: BQ25883, TUSB320
Tool/software: Code Composer Studio
Hi team,
Sorry to bother you!
I am using TUSB320HAI with BQ25883 charger to desgin charge out feature, now I met some issue as below need yours help.
1. After init. tusb320 and bq25883, I read below registers via i2c:
CURRENT_MODE_ADVERTISE=00
CURRENT_MODE_DETECT=00
ACTIVE_CABLE_DETECTION=0
ATTACHED_STATE=00
MODE_SELECT=00
2. When I connected to a charger(5V/3A), those registers updated as below
CURRENT_MODE_ADVERTISE=00
CURRENT_MODE_DETECT=00
ACTIVE_CABLE_DETECTION=0
ATTACHED_STATE=10(Attached.SNK (UFP))??I think tusb320 should be as sink and (Attached.SRC (DFP)) if connected with a charge to charge in.
MODE_SELECT=00
3. When I connected to a mobile phone, those registers are updated as below.
CURRENT_MODE_ADVERTISE=00
CURRENT_MODE_DETECT=01
ACTIVE_CABLE_DETECTION=0
ATTACHED_STATE=10(Attached.SNK (UFP))
MODE_SELECT=00
Why acble detection and mode select always are 00, and why attached state always 10(Attached.SNK (UFP)) no matter connect to charger and mobile phone.
When tusb320 connect to mobile phone, BQ25883 enable OTG, charge out config as 5V/1A, but can not charge out.
Besides, I found MODE_SELECT is unconfigurable.
Thanks a lot.
Wayne
