REM SQTP1.BAT  Standard Header File, Version 1.00    Microchip Technology, Inc.
echo off
REM 
REM  Demo program sqtp1.bat for command line PRO MATE
REM    This program downloads a device file then repeatedly
REM    programs the device based on an sqtp file.  This file
REM    does not accept command line arguments as inputs.
REM    All arguments are hardcoded and an editor must
REM    be used to make changes.
REM 
REM
REM        1. Command line switch:
REM               SQTP1
REM        2. Requirements
REM               DOS 5.0 or higher       
REM               SQTP.NUM - a valid sqtp file, edit batch file to use
REM                          file with different name.  See 2 "EDIT LINE
REM                          BELOW" messages.
REM               p16f84  - device in programmer, edit batch file to use
REM                          a different device.  See 2 "EDIT LINE BELOW"
REM                          messages.
REM               programmer on com1.  Change /1 to /com if needed.
REM
REM               Note : "out of environment space" requires user to
REM               allocate a larger environment. An example follows :
REM                   command.com  /e:4096 (or more)
REM==========================================================================
REM
REM       Revision History
REM
REM==========================================================================
REM
REM     Rev:   Date:    Reason:
REM
REM     1.00   05/01/97 Initial Release

echo off
cls
echo PLEASE WAIT
REM **********************************EDIT LINE BELOW***********************
procmd /1 /p16f84 /fpgm84.hex

:run

if NOT ERRORLEVEL 1 goto program
gotoend

:program
cls
echo PLEASE STRIKE ANY KEY WHEN NEW DEVICE IS READY FOR PROGRAMMING
pause
cls
echo PROGRAMMING DEVICE
echo off
REM **********************************EDIT LINE BELOW***********************
procmd /1 /p16f84 /SSQTP.NUM /M
if NOT ERRORLEVEL 1 goto run

:end
