PCWHD IDE COMPILER Custom Computer Services Inc (CCS), PCWHD IDE COMPILER Datasheet - Page 303

PCWHD PIC10,16,18,24, DSPIC

PCWHD IDE COMPILER

Manufacturer Part Number
PCWHD IDE COMPILER
Description
PCWHD PIC10,16,18,24, DSPIC
Manufacturer
Custom Computer Services Inc (CCS)
Type
Compilerr
Datasheet

Specifications of PCWHD IDE COMPILER

For Use With/related Products
Microchip PIC10, PIC12, PIC16, PIC18, PIC24, dsPIC MCUs
Lead Free Status / RoHS Status
Not applicable / Not applicable
Other names
429-1009
spi_write( ) spi_write2( )
Syntax:
Parameters:
Returns:
Function:
Availability:
Requires:
Examples:
Example Files:
Also See:
spi_xfer( )
Syntax:
Parameters:
Returns:
Function:
Availability:
Requires:
spi_write (value)
spi_write2 (value)
value is an 8 bit int
Nothing
Sends a byte out the SPI interface. This will cause 8 clocks to be generated. This
function will write the value out to the SPI. At the same time data is clocked out
data is clocked in and stored in a receive buffer. spi_read() may be used to read
the buffer.
This function is only available on devices with SPI hardware.
Nothing
spi_write( data_out );
data_in = spi_read();
ex_spi.c
spi_read(), spi_data_is_in(),
spi_xfer(data)
spi_xfer(stream, data)
spi_xfer(stream, data, bits)
result = spi_xfer(data)
result = spi_xfer(stream, data)
result = spi_xfer(stream, data, bits)
data is the variable or constant to transfer via SPI. The pin used to transfer data is
defined in the DO=pin option in #use spi. stream is the SPI stream to use as defined in
the STREAM=name option in #USE SPI. bits is how many bits of data will be transferred.
The data read in from the SPI. The pin used to transfer result is defined in the
DI=pin option in #USE SPI.
Transfers data to and reads data from an SPI device.
All devices with SPI support.
#USE SPI
SPI Overview
289

Related parts for PCWHD IDE COMPILER