![Microchip Technology MCP3421 SOT23-6 User Manual Download Page 21](http://html1.mh-extra.com/html/microchip-technology/mcp3421-sot23-6/mcp3421-sot23-6_user-manual_1786002021.webp)
Quick Start Instructions
©
2009 Microchip Technology Inc.
DS51793A-page 17
1.3.2.2
SAVING THE SCRIPT FILE AND PROGRAMMING THE
CONFIGURATION REGISTER
1.
Change the 2nd and 3rd data bytes you want in the Script Detail.
2.
Type in any script name (i.e., MCP3421_Write) in the space below the
Script
Name
menu.
3.
Click the
Save Script
button.
4.
Click the
Execute Script
button.
5.
You can also see the SCL and SDA waveforms using the oscilloscope.
FIGURE 1-12:
I
2
C Write Command Waveforms for the MCP3421.
Note:
At this point, the PICkit Serial transmits the I
2
C Write Command to the
MCP3421 device. The saved file name will appear in
Users I2C Scripts
column and can be re-used any time by selecting the file name.
Note:
When you click on the “Execute Script” menu, the “Busy” LED on the PICkit
Serial Analyzer will momentarily turn on and then turn off. If the LED
remains ON, a communications problem has occurred. Remove the PICkit
Serial Analyzer from your computer and re-check the parameter values
including the order of parameters under the “Script Detail” column. Try
again until the “Busy” LED goes OFF immediately after executing the write
command.
Write Command with Address bits
Configuration Bits
Zoom-in
Zoom-in