Programming Maxim's DS1085(L)

All about Sub-20 Multi Interface USB Adapter USB to I2C, SPI, GPIO, RS232, RS485, Ir, LCD

Moderator: serg

Post Reply
ion
Posts: 9
Joined: Sat Dec 04, 2010 7:59 pm

Programming Maxim's DS1085(L)

Post by ion »

Hello to the group,

Appreciate any help having me started using the SUB-20 to program this device (DS1085: http://www.maxim-ic.com/datasheet/index.mvp/id/3491 ). This will be a one time programming before it goes into circuit, don't want to write an application for it. I browsed the board without any success.

Thanks,

Ion

serg
Posts: 143
Joined: Mon Aug 31, 2009 9:17 pm

Re: Programming Maxim's DS1085(L)

Post by serg »

Hi,

If you don't want to write an application - use the sub_app command line tool to access your i2c device

Regards

ion
Posts: 9
Joined: Sat Dec 04, 2010 7:59 pm

Re: Programming Maxim's DS1085(L)

Post by ion »

Thanks!

I still can't figure how I can access the command line.

Regards

serg
Posts: 143
Joined: Mon Aug 31, 2009 9:17 pm

Re: Programming Maxim's DS1085(L)

Post by serg »

Hi,
To access a SUB-20 board from the command line do the following

- Open the command line Windows prompt

Code: Select all

Start->Run->"cmd"
- Change directory to "C:\Program Files\SUB-20\bin"

Code: Select all

cd "C:\Program Files\SUB-20\bin"
- run the sub_app application

Code: Select all

C:\Program Files\SUB-20\bin>sub_app.exe --help
-h, --help               Print this message and exit
    --version            Print version and exit
-c, --cmd=HEX,RESP_SZ    Send command HEX_STR and get response
    --i2c_stop           I2C Stop
    --i2c_start          I2C Start
-i, --i2c=xSA,xMA_SZ,xMA,dSZ,[HEX] I2C Read/Write
    --i2c_cfg=CONFIG     I2C config f<FREQ>|s<SA>|m<MODE>|c<STRTCH_MS>|d-Dis|0-g
et
    --i2c_scan           I2C Scan
    --i2c_ch=I2C_CHANNEL Bit-bang I2C channel (0-3)
    --spi_cfg=SPI_CFG    Combination of e|s|p|t|r|f|l|m|1|2|4|8|5|6|7|g-get
    --ss=SSn,SSmode|E<ess> SPI SS-[0..4],[h,h..l,hi,l,l..h,lo,hiz,0]
    --spi=[I]dSZ,[HEX]   SPI Transfer. I-SDIO. Receive dSZ bytes, send HEX
    --gpio=FUNK,VAL,MASK GPIO[B] operation [B]<r|w|c>,value,mask
-r, --repeat=N_REPEAT    Repeat last operation
    --getsn              Get setial number
    --getid              Get product ID
    --getvpd             Get Configuration VPD
    --boot               Enter Bootloader Mode
    --fifo=dSZ[,HEX]     FIFO Read/Write
    --fifo_cfg=FIFO_CONF Combination of s-SPI|i-I2C|u-UATR|c-clear
    --LCD=LCD_STR        Write on LCD
    --rs_cfg=RS_CONFIG   RS Config <BAUD>_<SZ><PAR><STOP> like 9600_8N1 or 0
    --rs_tmg=RS_TIMING   RS Timing [b|a,]<TX_SPACE_US>,<RX_MSG_US>,<RX_BYTE_US>
    --rsx=dSZ,[HEX]      RS Xfer. Receive dSZ bytes, transmit [HEX]
    --fpwm=F_FREQ|N_SET  F<freq_hz|0> | <N>,<duty>
    --pwm=CONFIG|N_SET   C<res>,<limit> | <N>,<duty>
    --adc_cfg=ADC_CONFIG ADC Config e-enable|v-VCC|2-2.56V
    --adc=ADC_MUX        ADC Read
    --mdio=[1]<R|W|a|w|r|p>,<PRT_PHY>,<DEV_REG>,[DATA] 1-Ch1 R,W-Clause22
    --serno=<SN>         Select device by serial number

ion
Posts: 9
Joined: Sat Dec 04, 2010 7:59 pm

Re: Programming Maxim's DS1085(L)

Post by ion »

Never occur to me to look into bin folder.

Thanks again!

serg
Posts: 143
Joined: Mon Aug 31, 2009 9:17 pm

Re: Programming Maxim's DS1085(L)

Post by serg »

No problem

Post Reply