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

PCD C-COMPILER PIC24, DSPIC

PCDIDE COMPILER

Manufacturer Part Number
PCDIDE COMPILER
Description
PCD C-COMPILER PIC24, DSPIC
Manufacturer
Custom Computer Services Inc (CCS)
Type
Compilerr
Datasheet

Specifications of PCDIDE COMPILER

For Use With/related Products
Microchip PIC24/dsPIC®
Lead Free Status / RoHS Status
Not applicable / Not applicable
Other names
429-1008
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 PCDIDE COMPILER