Turnkey Operation

At some point in your application development it is necessary to run the code directly from Reset.

The reset vector is located in the TLM code and may not be changed from within the TLM.

It is necessary to erase, load the application and REPROGRAM the device.

Also TLM checks to see if RB7 is high or low during the startup period after a reset. In development it is held low by the ISP, if you place a pull-up resistor of >10K on RB7 it will be high at reset if the ISP is not connected. If RB7 is high the TLM will GOTO $200 and execute the code it finds there. The application start address is $204 allowing a four byte absolute jump to be placed at $200 to vector execution to your application while using the TLM startup code to set the MAIN-TASK stacks.

The application will not run until the ISP is removed and a reset performed. At any time you may replace the ISP, reset, and you will be back in development mode. To change, or cancel, the vector you need to use NEW-APP to erase the application space or ERASE-MEMORY to erase the entire PIC.