DV164132 Microchip Technology, DV164132 Datasheet - Page 23

no-image

DV164132

Manufacturer Part Number
DV164132
Description
KIT EVAL F1 FOR PIC12F1/PIC16F1
Manufacturer
Microchip Technology
Type
MCUr
Datasheets

Specifications of DV164132

Contents
Board, PIC kit 3
Silicon Manufacturer
Microchip
Core Architecture
PIC
Core Sub-architecture
PIC12, PIC16
Silicon Core Number
PIC12F, PIC16F
Silicon Family Name
PIC12F1xxx, PIC16F1xxx
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
For Use With/related Products
PIC16LF1937
Lead Free Status / RoHS Status
Lead free / RoHS Compliant, Lead free / RoHS Compliant

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
DV164132
Manufacturer:
Microchip Technology
Quantity:
135
Part Number:
DV164132
Manufacturer:
MICROCHIP
Quantity:
12 000
© 2009 Microchip Technology Inc.
5.6.2
5.6.2.1
The function i2c_init configures the I
transaction in the transaction queue.
FIGURE 5-1:
5.6.2.2
The function i2c_insert places one complete set of transaction request block (trb’s).
TRBs can be bundled into an array of multiple TRBs and inserted as one large request.
The driver will ensure that all the TRBs in the list will be processed sequentially with I
restarts separating them.
FIGURE 5-2:
5.6.2.3
The i2c_build_write_trb and i2c_build_read_trb functions are helpers to
assemble the I2C_TRANSACTION_REQUEST_BLOCKS from passed parameters.
FIGURE 5-3:
5.6.2.4
The i2c_write_block and i2c_read_block functions are helpers that assemble
a TRB, insert it into the queue and wait for the transaction to complete.
Send_data()
{
}
initialize()
{
}
Send_one_byte()
{
}
i2c_init(I2C_400K);
I2C_TRANSACTION_REQUEST_BLOCK trb_list[5];
I2C_RESULTS flag;
… populate the trb’s …
i2c_insert(5,trb_list, &flag);
I2C_TRANSACTION_REQUEST_BLOCK trb_list;
unsigned char data;
I2C_RESULTS flag;
data_block = .. my data byte ..
i2c_build_write_trb(&trb_list,ADDRESS, 1, &data, i2c_200K);
i2c_insert(1,&trb,&flag);
I
i2c_init
i2c_insert
i2c_build_write_trb / i2c_build_read_trb
i2c_write_block / i2c_read_block
2
C Function Interface
Hardware Libraries and Drivers
2
C driver and makes it ready to receive
DS41401A-page 23
2
C

Related parts for DV164132