|
Build your own loader - Version 2.xx
version
1.00 utility
This form allows you to build the device-resident portion of the melabs
Loader version 2.xx.
Make sure you use the correct utility for your version of melabs Loader
software. The version of your software can be found by clicking Help>>About
in the Loader Window.
The files generated here are not compatible with the
MicroCode Loader. See the MicroCode Studio help files for information on
obtaining files from Mecanique.
To program the device, you must have a device programmer that is compatible
with the PICmicro® MCU, like the melabs EPIC™
Programmer.
To use the melabs Loader, you must own the melabs
Loader software for your computer.
Important! You must supply a valid email address in order
to receive the HEX file.
Glossary of Terms:
Return To Selection Form
| Microcontroller: |
The PICmicro MCU that you wish to program for boot loading. Read the part number printed on the PICmicro MCU that
you wish to program and select it from this list.
|
| Receive Pin: |
The register and bit number that will be used when
receiving data from the PC.
Must be different from the transmit pin. If you
select a pin that also serves as an analog input for a comparator or ADC,
you must configure the ADCON1 or CMCON registers correctly.
|
| Transmit Pin: |
The register and bit number that will be used when
sending data to the PC.
Must be different from the receive pin. If you
select a pin that also serves as an analog input for a comparator or ADC,
you must configure the ADCON1 or CMCON registers correctly.
|
| Oscillator Frequency: |
The clock frequency that your PICmicro MCU will
run at.
Make sure that the target device has a maximum operating frequency
that is equal to or greater than this value.
|
| Baud Rate: |
The speed (bits per second) at which your PC will
communicate with the PICmicro MCU for programming.
You must select this
speed in the File menu of the melabs Loader software on your PC. If the
rate you select here does not match the rate selected on the PC, you won't be
able to access the device. To use the 115200 baud rate, the
microcontroller must
be clocked at 20MHz or higher.
|
| Serial Mode: |
Defines the logic states used for serial communications.
If you are using an RS-232 converter chip (like the
MAX232), select TRUE. If you are not using a converter, select
Inverted. If you are connecting through the 9-pin serial connector on a LAB-X Experimenter Board, select TRUE.
|
| Enable Pin: |
The input pin that will be used to activate the loader
manually.
If the default setting is used, the loader will check for the activation
state on the serial receive pin at power-up or reset. If it finds an
active state on the receive pin at start-up, the device will enter program mode automatically.
If an enable pin is specified, the loader will check for the activation
state on this pin at power-up or reset. It will ignore any activity
on the serial receive pin. This allows your program to run even if
there is constant data on the serial receive pin. To enter program
mode, you must manually hold the enable pin in the activation state and
reset the microcontroller.
|
| Activation State: |
The condition that must be met on the enable pin to
activate the loader. If you want the loader to start automatically when
serial data is received, select the default. In order for your
program to run, the receive pin must rest in the idle state when the
device is reset or powered up.
Idle state at the receive pin is defined as HIGH (5V)
when using TRUE SERIAL MODE, and LOW (0V) when using INVERTED SERIAL MODE.
If you have selected an enable pin other than the
default, specify the logic state which will activate the Loader when the
device is reset or powered up.
|
| Initial ADCON1 Setting: |
The value that is written to the ADCON1 register at
power-up.
If the receive, transmit, or enable pin selected above
also have the capability of accepting analog input for A-D conversion, you
must configure ADCON1 to change the pins to digital.
For most PICmicro MCUs, setting ADCON1 to 7 will cause
all the inputs on the device to operate in digital mode. For more
information on ADCON1, see the Microchip datasheet for the device that you
are programming. |
| Initial CMCON Setting: |
The value that is written to the CMCON register at
power-up.
If the receive, transmit, or enable pin selected above
also have the capability of accepting analog input for comparator
operation, you must configure CMCON to change the pins to digital
operation.
Some PICmicro MCUs don't have analog comparators.
This selection will be ignored for those devices. For most devices
that have analog comparators, setting CMCON to 7 will cause all the inputs
on the device to operate in digital mode. For more information on
CMCON, see the Microchip datasheet for the device that you are
programming. |
| Watchdog Timer: |
Configuration setting for the internal watchdog timer.
This setting won't affect the loader operation, but may
affect the execution of program code. The watchdog should be enabled
for all programs that use the PICBASIC SLEEP or NAP commands. For
more information, see the Microchip datasheet for the device you are
programming. |
| Power-up Timer: |
Configuration setting for the internal power-up timer.
If enabled, the PICmicro MCU will remain in a reset
condition for approximately 72mS after power is applied. For more
information, see the Microchip datasheet for the device you are
programming. |
| Brown-out Reset: |
Configuration setting for the internal brown-out detector.
If enabled, the PICmicro MCU will reset when a drop in
supply voltage is detected. For more information, see the Microchip
datasheet for the device you are programming. |
|