SW006010 Microchip Technology, SW006010 Datasheet - Page 44

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 40
C17 C Compiler Libraries
{
}
void byte_read(unsigned char address)
{
}
void read_mult(unsigned char address, unsigned char
far *rdptr, unsigned char length)
{
}
void ew_enable(void)
{
}
void erase_all(void)
{
}
W_CS = 1;
putcMwire(WRITE);
putcMwire(address);
putcMwire(data);
W_CS = 0;
W_CS = 1;
getcMwire(READ,address);
W_CS = 0;
W_CS = 1;
putcMwire(READ);
putcMwire(address);
getsMwire(rdptr, length); //read multiple bytes
W_CS = 0;
W_CS = 1;
putcMwire(EWEN1); //enable write command byte 1
putcMwire(EWEN2); //enable write command byte 2
W_CS = 0;
W_CS = 1;
putcMwire(ERAL1); //erase all command byte 1
putcMwire(ERAL2); //erase all command byte 2
W_CS = 0;
//write single byte
//assert chip select
//negate chip select
//write command
//address
//read one byte
//read command
//address (A7 - A0)
 2002 Microchip Technology Inc.

Related parts for SW006010