SW006010 Microchip Technology, SW006010 Datasheet - Page 32

no-image

SW006010

Manufacturer Part Number
SW006010
Description
MPLAB 17C SOFTWARE
Manufacturer
Microchip Technology
Datasheets

Specifications of SW006010

Tool Function
Compiler
Tool Type
Compiler
Processor Series
PIC17C
Lead Free Status / RoHS Status
Not applicable / Not applicable
For Use With/related Products
MPLAB®
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
MPLAB
apRNOVS^-page 28
C17 C Compiler Libraries
EERandomRead
Device:
Function:
Include:
Prototype:
Arguments:
Remarks:
Return Value:
File Name:
Code Example:
EESequentialRead
Device:
Function:
Include:
Prototype:
Arguments:
Remarks:
Return Value:
File Name:
Code Example:
PIC17C756
This function is used to read a single byte from the I
i2c16.h
unsigned char EERandomRead (static unsigned char
control, static unsigned char address);
control
EEPROM control / bus device select address byte.
address
EEPROM internal address location.
This function reads in a single byte from the I
routine can be used for Microchip I
which only require 1 byte of address information.
The return value is -1 if there was a bus collision error, -2 if there
was a not ack error else returns the contents of the
register.
i2ceerr.c
temp = EERandomRead(0xA0,0x30);
PIC17C756
This function is used to read in a string of data from the I
i2c16.h
unsigned char EESequentialRead (static unsigned char
control, static unsigned char address, static
unsigned char far *rdptr, static unsigned char
length);
control
EEPROM control / bus device select address byte.
address
EEPROM internal address location.
rdptr
Character type pointer to PICmicro RAM area for placement of
data read from EEPROM device.
length
Number of bytes to read from EEPROM device.
This function reads in a predefined string length of data from the
I
devices which only require 1 byte of address information. The
length of the data string to read in is passed as a function
parameter.
The return value is -1 if there was a bus collision error,
errors.
i2ceesr.c
temp = EESequentialRead(0xA0, 0x70, rdptr, 15)
2
-2 if there was a not ack error else returns 0 if there were no
C bus. The routine can be used for Microchip I
2
C EE memory devices
 2002 Microchip Technology Inc.
2
C bus. The
2
C EE memory
SSPBUF
2
C bus.
;
2
C bus.

Related parts for SW006010