PIC17C756A-33/L Microchip Technology Inc., PIC17C756A-33/L Datasheet - Page 176

no-image

PIC17C756A-33/L

Manufacturer Part Number
PIC17C756A-33/L
Description
68 PIN, 32 KB OTP, 902 RAM, 50 I/O
Manufacturer
Microchip Technology Inc.
Datasheet

Specifications of PIC17C756A-33/L

A/d Inputs
12-Channel, 10-Bit
Cpu Speed
8.25 MIPS
Eeprom Memory
0 Bytes
Input Output
52
Interface
I2C/SPI/USART
Memory Type
OTP
Number Of Bits
8
Package Type
68-pin PLCC
Programmable Memory
32K Bytes
Ram Size
902 Bytes
Speed
16 MHz
Timers
2-8-bit, 2-16-bit
Voltage, Range
3-5.5 V
Lead Free Status / Rohs Status
RoHS Compliant part

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC17C756A-33/L
Manufacturer:
Microchip Technology
Quantity:
10 000
Part Number:
PIC17C756A-33/L
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Part Number:
PIC17C756A-33/L-G
Manufacturer:
MICOROCHIP
Quantity:
1 000
Part Number:
PIC17C756A-33/L-G
Manufacturer:
MICOROCHIP
Quantity:
20 000
PIC17C7XX
15.4
Example 15-2 shows MPLAB
the I
24LC01B serial EEPROM. This example uses the
PICmicro
EXAMPLE 15-2:
DS30289B-page 176
// Include necessary header files
#include <p17c756.h>
#include <delays.h>
#include <stdlib.h>
#include <i2c16.h>
#define CONTROL 0xa0
// Function declarations
void main(void);
void WritePORTD(static unsigned char data);
void ByteWrite(static unsigned char address,static unsigned char data);
unsigned char ByteRead(static unsigned char address);
void ACKPoll(void);
// Main program
void main(void)
{
static unsigned char address;
static unsigned char datao;
static unsigned char datai;
}
2
C module in Master mode to communicate with a
address = 0;
OpenI2C(MASTER,SLEW_ON);
SSPADD = 39;
while(address<128)
{
}
while(1)
{
}
Example Program
®
datao = PORTB;
do
{
} while(datai != datao);
address++;
Nop();
’C’ libraries included with MPLAB C17.
ByteWrite(address,datao);
ACKPoll();
datai = ByteRead(address);
INTERFACING TO A 24LC01B SERIAL EEPROM (USING MPLAB C17)
®
// Processor header file
// Delay routines header file
// Standard Library header file
// I2C routines header file
// Control byte definition for 24LC01B
C17 ’C’ code for using
// I2C address of 24LC01B
// Data written to 24LC01B
// Data read from 24LC01B
// Preset address to 0
// Configure I2C Module Master mode, Slew rate control on
// Configure clock for 100KHz
// Loop 128 times, 24LC01B is 128x8
// Write data to EEPROM
// Poll the 24LC01B for state
// Read data from EEPROM into SSPBUF
// Loop as long as data not correctly
//
// Increment address
// Done writing 128 bytes to 24LC01B, Loop forever
written to 24LC01B
2000 Microchip Technology Inc.

Related parts for PIC17C756A-33/L