SW006010 Microchip Technology, SW006010 Datasheet - Page 41

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
 2002 Microchip Technology Inc.
getsMwire
Device:
Function:
Include:
Prototype:
Arguments:
Remarks:
Return Value:
File Name:
Code Example:
OpenMwire
Device:
Function:
Include:
Prototype:
Arguments:
Remarks:
Return Value:
File Name:
Code Examples:
putcMwire
Function:
File Name:
PIC17C756
This routine reads a string from the Microwire device.
mwire16.h
void getsMwire (static unsigned char far *rdptr,
static unsigned char length);
rdptr
Pointer to PICmicro RAM area for placement of writing data
read from Microwire device.
length
Number of bytes to read from Microwire device.
This function is used to read a predetermined length of data
from a Microwire device. User must first issue start bit, opcode
and address before reading a data string.
None
getsmwir.c
unsigned char arrayrd[20];
unsigned char far *rdptr = arrayrd;
getsMwire(rdptr, 10);
PIC17C756
Configures the SSP module.
mwire16.h
void OpenMwire (static unsigned char sync_mode);
sync_mode
The value of the function parameter sync_mode can be one of
the following values defined in
FOSC_4
FOSC_16
FOSC_64
FOSC_TMR2
OpenMwire resets the SSP module to the POR state and then
configures the module for Microwire communications.
None
openmwir.c
OpenMwire(FOSC_16);
This function operates identically to WriteMwire.
#define in mwire16.h
Hardware Peripheral Library
clock = F
clock = F
clock = F
clock = TMR2 output/2
OSC
OSC
OSC
mwire16.h
/4
/16
/64
:
apRNOVS^-page 37

Related parts for SW006010