DV164132 Microchip Technology, DV164132 Datasheet - Page 22

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
F1 Evaluation Platform User’s Guide
5.6
DS41401A-page 22
USING THE I
The supplied software includes an I
1. Interrupt driven or polled
2. Queued requests
3. Minimum memory requirements
4. Uses Restart to maximize bus bandwidth
5. Multiple atomic I
6. Completion flag for each queued block of I
5.6.1
Two data structures are defined to simplify interactions with the I
5.6.1.1 I2C_RESULTS_T
The I2C_RESULTS_T is an enumerated type with the following enumerations:
TABLE 5-1:
The data completion flag for an I
be I2C_REQUEST_PENDING until the request is complete. If the request completed
without errors, the value will be I2C_REQUEST_COMPLETE. If there were errors, the
value will reflect one of the other 4 error conditions.
5.6.1.2 I2C_T
The I2C_T is a structure representing one transaction on the I
contains the following elements:
1. A 7- or 10-bit address. Address type is determined automatically by the driver.
2. An 8-bit baud rate. This is the value placed in SPADD. Predefined constants are
3. A buffer_length. This is the number of bytes available for reading or writing
4. A Buffer Pointer. Your application will allocate a block of memory for an I
I2C_REQUEST_PENDING
I2C_REQUEST_COMPLETE
I2C_REQUEST_STUCK_START
I2C_REQUEST_ADDRESS_NO_ACK
I2C_REQUEST_DATA_NO_ACK
I2C_REQUEST_LOST_STATE
2
R/W mode is implicit in the address and specified by bit 0.
included that compute the SPADD value given an FOSC value. Set FOSC with
a #define before #including the I2C.h file.
at the supplied data buffer.
transaction. Pass a pointer to this block via the Buffer Pointer. The block must
remain valid until the transaction is complete (i.e. if you allocate the block as a
non-static array within a function, you must not leave the function until the I
transaction is complete or the array may be reused by a different function).
C™ DRIVER
I
2
C Data Structures
I2C_RESULTS_T
2
C transactions allowed at each queue entry
2
C request is of type I2C_RESULTS_T. This flag will
2
C Master mode driver with the following features:
Request is in the queue or in process but it is not
done.
The request is finished successfully.
The request was aborted. The start condition did
not clear correctly.
The request was aborted. No ACK occurred on
the address, so the target device must not exist
or is not functioning.
The request was aborted. Not all of the data
could be sent because the device did not ACK a
byte.
The I
and the default case caught the failure. This will
infinite loop so you should never see it.
2
C state machine had a RAM corruption
2
C commands.
© 2009 Microchip Technology Inc.
2
C bus. A transaction
2
C driver.
2
C
2
C

Related parts for DV164132