background image

FUSB302GEVB

www.onsemi.com

11

Script

Figure 10. Script Tab

The “Script” tab enables the use of scripts to configure the

FUSB302. Scripts can be added through the GUI using the
editing window on the left of the tab. This edit window
allows for normal copying and pasting to or from any text
file if you want to save or copy your scripts from external
files. Each line of the script should be formatted as follows:

Command, port, I

2

C addr, # bytes, register addr, data1,

..., dataN, optional comment

The 

Command

 is: “r” or “w”

The 

port

 is always 0

The 

I2C addr

 is either 0x44, 0x46, 0x48, or 0x4A

The 

# bytes

 is the number of bytes to read or write

The 

register addr

 is the starting register address

The 

data1, ..., dataN

 are for writing values to registers

And 

optional comment

 is just informational

Each field can be separated with a space (“ ”), a comma

(“,”), or a semicolon (“;”).

An example of reading from 3 consecutive registers:

r 0 0x42 3 0x04 ; read 3 bytes starting at MEASURE

(register address 0x04)

An example of writing to 2 consecutive registers:

w 0 0x42 2 0x0E 0x22 0x55 ; write 2 bytes starting at

MASKA (register address 0x0E)

The Execute button will run all the lines of the script.
The Step button will execute the highlighted line.
The Loop feature will loop the entire script up to 99 times.
Setting Loop count to 0 will loop indefinitely.
Results of the executed script are shown in the box on the

right side of the tab. These results can be copied and pasted
to an external file.

An example of the power delivery loopback test is given

below:
w,0,0x44,1,0x02,0x44; Switches0(PU_EN1, MEAS_CC1)
w,0,0x44,1,0x03,0x01; Switches1(TXCC1)
w,0,0x44,1,0x04,0x31; MDAC
w,0,0x44,1,0x05,0x20; SDAC
w,0,0x44,1,0x0B,0x0F; Configure Power
w,0,0x44,1,0x06,0x10; Control0(Loopback, clear int mask)
w,0,0x44,1,0x43,0x12; SOP1
w,0,0x44,1,0x43,0x12; SOP1
w,0,0x44,1,0x43,0x12; SOP1
w,0,0x44,1,0x43,0x13; SOP2
w,0,0x44,1,0x43,0x82; PACKSYM with 2 bytes
w,0,0x44,1,0x43,0x01; Data1

Содержание FUSB302 Type-C

Страница 1: ...or a Type C plug with a fixed CC and VCONN channel Full Type C 1 3 support Integrates the following functionality of the CC pin Attach detach detection as source Current capability indication as sourc...

Страница 2: ...This capacitance is C6 and C7 in the schematic VBUS VBUS is used differently based on the Type C port type As a sink port VBUS is directly connected to the Type C receptacle J1 and the VBUS test poin...

Страница 3: ...FUSB302GEVB www onsemi com 3 SCHEMATIC Figure 2 FUSB302 EVB FM150702B Schematic 1 2...

Страница 4: ...FUSB302GEVB www onsemi com 4 Figure 3 FUSB302 EVB FM150702B Schematic 2 2...

Страница 5: ...ates Disconnected then there is a connection problem Upgrading the GUI Software 1 Simply delete the previous version of the exe 2 Repeat the installation process above GUI OPERATION Program Startup To...

Страница 6: ...Device Control Tabs Tabs provide detailed control and monitoring of the FUSB302 The sections below describe how to use these controls General USB The General USB tab implements functional Type C state...

Страница 7: ...ackets The other control boxes indicate the current state of the PD state machine and what contract was negotiated When connected as a sink it displays the source capabilities of the source that is at...

Страница 8: ...esolution To stop logging click the Auto Poll option in the Preferences menu An example of a Type C attach and the PD communication flow is shown below To support debug efforts the Set State button ca...

Страница 9: ...pond once a connection is made It is the programmed source and sink capabilities of the device and the charging algorithm that is used to automatically select a source capability when connected to a s...

Страница 10: ...on tells the GUI to automatically check the DEVICE_ID register for the I2C address selected in the Addr pull down box and display the Device Connected or No Device message in the lower left corner of...

Страница 11: ...g from 3 consecutive registers r 0 0x42 3 0x04 read 3 bytes starting at MEASURE register address 0x04 An example of writing to 2 consecutive registers w 0 0x42 2 0x0E 0x22 0x55 write 2 bytes starting...

Страница 12: ...the EVB Right clicking on the Sop field allows you to add SVIDs Right clicking on an SVID allows you to remove the SVID or add a Mode Right clicking on a Mode allows you to remove it Retrieving VDM i...

Страница 13: ...ems or any FDA Class 3 medical devices or medical devices with a similar or equivalent classification in a foreign jurisdiction or any devices intended for implantation in the human body Should you pu...

Отзывы: