- Name:
-
disconnect
- Syntax:
-
DISCONNECT
- Description:
-
Disconnect the PICAXE so that it does not scan for new downloads.
The PICAXE chips constantly scan the serial download pin to see if a computer is trying to initialise a new program download. However when it is desired to use the download pin as a general purpose input (or for user serial communication with the serrxd command), it is necessary to disable this scanning.Therefore the disconnect command 'converts' the serial download pin into a general purpose input.
Note that the serrxd command automatically includes an embedded disconnect command. After disconnect is used it will not be possible to download a new program via normal methods, as the PICAXE chip is no longer scanning the download pin. The following download methods must therefore be used:
1) the reconnect command is issued to cancel out the disconnect
2) a reset command is issued to restart the program
3) a hardware reset is carried out (e.g. by disconnecting and then reconnecting power)
Remember that is always possible to carry out a new download by carrying out the hard-reset procedure.