Page 1 of 1
SUB-20 Reset
Posted: Thu Aug 04, 2011 9:44 am
by elenrill
Hello here!
People, is somebody find a software way to reset SUB-20?
No any words about it into SUB-20 User manual (sub20-man.pdf)not in sub20net.pdf.
With hope
Elenrill
p.s.
Using MS Visual studio C++ 2010 express + sub20.lib + ...\SUB-20\inc\libsub.h
Re: SUB-20 Reset
Posted: Thu Aug 04, 2011 9:49 am
by xol
What do you need it for?
Re: SUB-20 Reset
Posted: Thu Aug 04, 2011 10:11 am
by elenrill
For set all initial values on all pins. Like after power switch on.
My project leader wrote in protocol "reset". So i need it command

Re: SUB-20 Reset
Posted: Thu Aug 04, 2011 10:34 am
by xol
GPIO default state is ALL INPUT. You can do it as
Code: Select all
sub_gpio_config ( hndl, 0x0 /*set*/, &config, 0xFFFFFFFF /*mask*/ ) ;
sub_gpiob_config( hndl, 0x0 /*set*/, &config, 0xFF /*mask*/ ) ;
Re: SUB-20 Reset
Posted: Thu Aug 04, 2011 10:41 am
by elenrill
but all internal values of sub-20 firmware will not set in initial values.
Re: SUB-20 Reset
Posted: Thu Aug 04, 2011 11:25 am
by elenrill
So there are no ways for software reset in firmware 0.3.0.5, isn't it?
Re: SUB-20 Reset
Posted: Thu Aug 04, 2011 11:36 am
by xol
No,
SW reset is not that simple as it will involve USB reset and USB reconnect. I do not think you really need it.