286 of 286
272 ZXCmdMode Type Subroutine Invocation ZXCmdMode() ZXCmdMode(highSpeed) Parameter Method Type Description highSpeed ByVal Boolean A flag controlling the communication speed in command mode. Discussion This routine causes the ZX to stop executing your application and enter “command mode”. When in command mode, the ZX will respond to download commands and other special commands. When invoked with no parameters, command mode is invoked at the default Com1 baud rate (typically 19.2K baud). If the highSpeed parameter is specified and it is True, command mode is invoked at the download baud rate (115.2K baud). You can use this routine in your application to facilitate downloading triggered by some particular event, e.g. receipt of a certain character or sequence of characters, the occurrence of an external signal, etc. You can use the downloader DLL source code (installed as part of ZBasic) to construct a special purpose downloader for your application. Alternately, if your application detects receipt of an “ATN character” and then invokes ZXCmdMode() in slow speed mode, you can use the ZLoad command line utility or the ZBasic IDE to perform downloading without needing to have DTR connected to the device. Example Call ZXCmdMode()