SW006010 Microchip Technology, SW006010 Datasheet - Page 42

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 38
C17 C Compiler Libraries
ReadMwire
Device:
Function:
Include:
Prototype:
Arguments:
Remarks:
Return Value:
File Name:
Code Example:
WriteMwire
Device:
Function:
Include:
Prototype:
Arguments:
Remarks:
Return Value:
File Name:
Code Example:
PIC17C756
This function is used to write out a single data byte (one
character).
mwire16.h
unsigned char WriteMwire (static unsigned char
data_out);
data_out
Single byte of data to write to Microwire device.
This function writes out single data byte to a Microwire device
utilizing the SSP module.This function operates identically to
putcMwire.
This function returns -1 if there was a write collision, else it
returns a 0.
writmwir.c
WriteMwire(0xFF);
PIC17C756
This function is used to read a single byte (one character) from
a Microwire device.
mwire16.h
unsigned char ReadMwire (static unsigned char
high_byte, static unsigned char low_byte);
high_byte
First byte of 16-bit instruction word.
low_byte
Second byte of 16-bit instruction word.
This function reads in a single byte from a Microwire device.
The start bit, opcode and address compose the high and low
bytes passed into this function. This function operates
identically to getcMwire.
The return value is the data byte read from the Microwire
device.
readmwir.c
ReadMwire(0x03, 0x00);
 2002 Microchip Technology Inc.

Related parts for SW006010