User manual

MCP4728 Evaluation Board User’s Guide
DS51837A-page 18 © 2009 Microchip Technology Inc.
1.3.2.6 EXAMPLE 3: WRITING DAC REGISTERS WITH A FAST WRITE
COMMAND
Figure 1-12 shows an example of writing a script file on PICkit Serial PC GUI for a Fast
Write Command. This command writes to the DAC input registers and power-down
selection bits. The data are sent sequentially from channel A to the channel D.
EEPROM is not affected. This device updates the DAC output registers (V
OUT
) when
LDAC
pin is low.
FIGURE 1-12: Writing Script File to Write Each DAC Register with a Fast Write Command Using the
PICkit Serial Analyzer.
Note: Please refer to the MCP4728 data sheet for the Fast Write Command
structure before excising this example.
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.