Datasheet

Table Of Contents
PICkit™ Serial Analyzer User’s Guide
DS51647C-page 86 © 2009 Microchip Technology Inc.
10.3 CREATING AND USING TEMPLATES
Create a User Define Template by selecting User Define Templates > Display Template
from the menu bar. The User Defined Template window is displayed as shown in
Figure 10-1, showing three active scripts.
FIGURE 10-1: THE USER DEFINED TEMPLATE
Create the Parameter Template by filling in each line. Each line is a single parameter,
a value read converted to value displayed. The inputs below define how a particular
parameter is interpreted.
Active – Allows you to activate or deactivate a parameter. This must be active
before you can fill in the rest of the data. The purpose of this checkbox is to allow
run time activation or deactivation of a script.
Run – Press this button to run your script and display data after you have
completed filling out the parameter template line.
Script – Select a user defined script from the drop down box. This script must first
be created using the Script Builder for the respective communications mode.
Return Data – Indicate if data is received (Yes) or not (No)
Parameter Name – Enter a parameter name. This is for reference only and does
not affect the data retrieved or displayed.
Parameter Byte Count – The number of bytes read (1, 2, or 4)
Start Byte – Select which byte (of a possible series of bytes) that will be used for
the display
Byte Order – Select Least Significant to Most Significant or Most Significant to
Least Significant. If the parameter is only one byte long, this option will not be
available.
Slope – Conversion value (read value * slope + offset = displayed value)
Offset – Offset of read value (read value * slope + offset = displayed value)
Signed/Unsigned – Select between Signed or Unsigned read value (this option is
only available if the format is set to Dec)
Format – Binary, Decimal, Hexadecimal, or BCD (Binary Coded Decimal)
# of Dec. pts – Select number of decimal points in the displayed value (this option
is only available if the format is set to Dec)
Note: First, a user define script(s) must be created using the Script Builder win-
dow for the selected serial communications mode. Refer to the respective
serial communications chapter under the Script Builder section.