DV164122 Microchip Technology, DV164122 Datasheet - Page 105

ANALYZER SRL PICKIT W/DEMO BOARD

DV164122

Manufacturer Part Number
DV164122
Description
ANALYZER SRL PICKIT W/DEMO BOARD
Manufacturer
Microchip Technology
Series
PICkit™r
Type
MCUr
Datasheets

Specifications of DV164122

Contents
PICkit™ Serial Analyzer, 28-pin Demo Board, USB Cable, and Software with Documentation CD
Processor To Be Evaluated
PIC16F886
Interface Type
USB
Silicon Manufacturer
Microchip
Kit Application Type
Interface
Application Sub Type
USB
Silicon Family Name
PIC16F
Kit Contents
PICkit Serial Analyzer, Demo Board, USB Cable, Software
Rohs Compliant
Yes
Lead Free Status / RoHS Status
Not applicable / Not applicable
For Use With/related Products
PIC16F886
For Use With
PKSERIAL-SPI1 - BOARD DEMO PICKIT SERIAL SPIPKSERIAL-I2C1 - BOARD DEMO PICKIT SERIAL I2C
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
Other names
Q3260228

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
DV164122
Manufacturer:
Microchip Technology
Quantity:
135
Part Number:
DV164122
Manufacturer:
MICROCHIP
Quantity:
12 000
10.4
© 2007 Microchip Technology Inc.
PROGRAMMING EXAMPLE
The following is an example of creating a Visual Basic
read an I
1. In Solution Explorer, if References is not shown, press the Show All Files button.
2. Right click on references in solution explorer, browse to the PICkitS.dll and add it.
3. Double click the form to create Sub Form1_Load.
4. Add following to form1_load:
5. On the Form1.vb [Design] view, click on the Events button in the Properties
6. Double click the FormClosed Event to create Sub Form1_FormClosed
7. Add the following line in Form1_FormClosed:
8. On the form, add three text boxes and three labels as shown in the Figure 10-1
FIGURE 10-1:
9.
10. Add a button, change the text to “Read One Byte” and double click it creating the
11. Add the following code to Button1_Click:
PICkitS.Basic.Initialize_PICkitSerial()
PICkitS.Basic.Configure_PICkitSerial_For_I2C()
Window.
PICkitS.Basic.Cleanup()
below.
TextBox_Slave_Addr
TextBox_Word_Addr
TextBox_Result
sub Button1_Click.
Dim
Dim
Dim
Dim
Name the text boxes as follows:
2
Return_String
Return_Data(1)
Slave_Addr
Word_addr
C device.
TEXT BOXES AND LABELS
AsByte
AsByte
AsString
AsByte
= Convert.ToByte(TextBox_Word_Addr.Text)
PICkit™ Serial Analyzer DLL
= Convert.ToByte(TextBox_Slave_Addr.Text)
= vbNullString
®
.NET program using the dll to
DS51647A-page 99

Related parts for DV164122