Connect Method
This method is used to connect to a target C8051Fxxx device. Establishing a valid connection is necessary for all memory operations to succeed.
Syntax
object.Connect( _
[ nECprotocol As Long, ] _
[ nPowerTarget As Long ] _
)
Parameters
nECprotocol
Connection protocol used by the target device;
Look at the 'ECprotocol-Enumeration' for possible values.
The default is 0.
nPowerTarget
If this parameter is set to '1', the USB Debug Adapter will be configured to
continue supplying power after it has been disconnected from the target device.
The default is '0', configuring the adapter to discontinue supplying power when
disconnected.