User manual
MCP4728 Evaluation Board User’s Guide
DS51837A-page 14 © 2009 Microchip Technology Inc.
1.3.2.1 CREATING SCRIPT FILE FOR CONFIGURATION BYTE WRITING
1. Click on WriteBlockAddrA8 in “Example I
2
C Scripts” column.
This will result in filling in the spaces under the Script Detail column.
You can now modify the Script Detail column parameters by clicking with the
right mouse button.
How to modify the parameters box in Script Details:
1. Under the Script Detail box, select the item in the parameter box.
2. Right click the mouse button. An option box will appear to the right of your
selection. These are the options available for the parameter selected.
3. Select the desired option and delete or insert the parameter box.
4. Keep the parameters in order as shown in the next examples.
1.3.2.2 EXAMPLE 1: SELECTING VOLTAGE REFERENCE OF EACH DAC
CHANNEL
You can select the voltage reference of each channel individually. The choices are:
external (V
DD
) or internal reference voltage (V
REF
= 2.048V). Figure 1-10 shows an
example of writing a script file on the PICkit Serial PC GUI.
FIGURE 1-10: Creating a new Script file to select V
REF
of each DAC channel. In this example,
external V
REF
(V
REF
=V
DD
) is selected for all DAC channels.
Note: The following examples need knowledge on the MCP4728 Registers and
Command protocols. Please refer to the Appendix C. “MCP4728
Read/Write Commands” and the MCP4728 Data Sheet for more details.
1. To change value:
• Click this box and
type a new value
2. To delete or Insert box:
• Select the box and
right click the mouse
button for options
available
3. Make sure the listed
parameters in “script
Detail” are in the exact
order as shown here.