Datasheet

Table Of Contents
PICkit™ SERIAL ANALYZER
USERS GUIDE
© 2009 Microchip Technology Inc. DS51647C-page 85
Chapter 10. User Defined Templates
10.1 INTRODUCTION
User Defined Templates extend user scripts by interpreting the data read from the
target device and displaying it in a human readable form. The conversion formula is:
EQUATION 10-1: CONVERSION FORMULA
For example, an 8-bit ADC value is read, and we desire a displayed value in voltage,
0 to 5 Volts. The 8-bit ADC value (read value) can be 0 to 256 decimal. The ADC
reference voltage is 5 V
DC. The slope is the constant value used to convert between
the ADC read value and the desired display value. In this example:
EQUATION 10-2: SLOPE EXAMPLE
Using a User Defined Template, the interpretation of the ADC value can be displayed
in volts DC.
10.2 HIGHLIGHTS
This chapter discusses:
Creating and Using Templates
•My Templates
Graphing Data
Read Value * Slope + Offset = Display Value
Slope = ADC Reference Voltage/8-bit ADC = 5/256 = 0.01953125