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
SUB-20 Reset
Moderator: serg
Re: SUB-20 Reset
What do you need it for?
Re: SUB-20 Reset
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
My project leader wrote in protocol "reset". So i need it command

Re: SUB-20 Reset
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
but all internal values of sub-20 firmware will not set in initial values.
Re: SUB-20 Reset
So there are no ways for software reset in firmware 0.3.0.5, isn't it?
Re: SUB-20 Reset
No,
SW reset is not that simple as it will involve USB reset and USB reconnect. I do not think you really need it.
SW reset is not that simple as it will involve USB reset and USB reconnect. I do not think you really need it.