PIC17LC756-08I/L Microchip Technology, PIC17LC756-08I/L Datasheet - Page 177

no-image

PIC17LC756-08I/L

Manufacturer Part Number
PIC17LC756-08I/L
Description
MICRO CTRL 16K LOW PWR 68PLCC
Manufacturer
Microchip Technology
Series
PIC® 17Cr
Datasheets

Specifications of PIC17LC756-08I/L

Core Processor
PIC
Core Size
8-Bit
Speed
8MHz
Connectivity
I²C, SPI, UART/USART
Peripherals
Brown-out Detect/Reset, POR, PWM, WDT
Number Of I /o
50
Program Memory Size
32KB (16K x 16)
Program Memory Type
OTP
Ram Size
902 x 8
Voltage - Supply (vcc/vdd)
3 V ~ 6 V
Data Converters
A/D 12x10b
Oscillator Type
External
Operating Temperature
-40°C ~ 85°C
Package / Case
68-PLCC
Lead Free Status / RoHS Status
Request inventory verification / Request inventory verification
Eeprom Size
-
EXAMPLE 15-2:
// Writes the byte data to 24LC01B at the specified address
void ByteWrite(static unsigned char address, static unsigned char data)
{
}
// Reads a byte of data from 24LC01B at the specified address
unsigned char ByteRead(static unsigned char address)
{
}
2000 Microchip Technology Inc.
StartI2C();
IdleI2C();
WriteI2C(CONTROL);
IdleI2C();
if (!SSPCON2bits.ACKSTAT)
{
}
IdleI2C();
StopI2C();
IdleI2C();
return;
StartI2C();
IdleI2C();
WriteI2C(CONTROL);
IdleI2C();
if (!SSPCON2bits.ACKSTAT)
{
}
return(SSPBUF);
WriteI2C(address);
IdleI2C();
if (!SSPCON2bits.ACKSTAT)
WriteI2C(address);
IdleI2C();
if (!SSPCON2bits.ACKSTAT)
{
}
WriteI2C(data);
RestartI2C();
IdleI2C();
WriteI2C(CONTROL+1);
IdleI2C();
if (!SSPCON2bits.ACKSTAT)
{
}
getcI2C();
IdleI2C();
NotAckI2C();
IdleI2C();
StopI2C();
IdleI2C();
INTERFACING TO A 24LC01B SERIAL EEPROM (USING MPLAB C17)
// Send start bit
// Wait for idle condition
// Send control byte
// Wait for idle condition
// If 24LC01B ACKs
// Send control byte
// Wait for idle condition
// If 24LC01B ACKs
// Send data
// Wait for idle condition
// Send stop bit
// Wait for idle condition
// Send start bit
// Wait for idle condition
// Send control byte
// Wait for idle condition
// If the 24LC01B ACKs
// Send address
// Wait for idle condition
// If the 24LC01B ACKs
// Send restart
// Wait for idle condition
// Send control byte with R/W set
// Wait for idle condition
// If the 24LC01B ACKs
// Read a byte of data from 24LC01B
// Wait for idle condition
// Send a NACK to 24LC01B
// Wait for idle condition
// Send stop bit
// Wait for idle condition
PIC17C7XX
DS30289B-page 177

Related parts for PIC17LC756-08I/L