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

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_data_is_in( ) spi_data_is_in2( )
Syntax:
Parameters:
Returns:
Function:
Availability:
Requires:
Examples:
Example Files:
Also See:
spi_read( ) spi_read2( )
Syntax:
Parameters:
Returns:
Function:
Availability:
Requires:
Examples:
Example Files:
Also See:
288
while
result = spi_data_is_in()
result = spi_data_is_in2()
None
0 (FALSE) or 1 (TRUE)
Returns TRUE if data has been received over the SPI.
This function is only available on devices with SPI hardware.
Nothing
None
spi_read(), spi_write(),
value = spi_read (data)
value = spi_read2 (data)
data is optional and if included is an 8 bit int.
An 8 bit int
Return a value read by the SPI. If a value is passed to spi_read() the data will be
clocked out and the data received will be returned. If no data is ready, spi_read()
will wait for the data if A SLAVE or return the last DATA clocked in from spi_write.
If this device is the master then either do a spi_write (data) followed by a spi_read()
or do a spi_read (data). These both do the same thing and will generate a clock. If
there is no data to send just do a SPI_READ(0) to get the clock.
If this device is a slave then either call spi_read() to wait for the clock and data or
use spi_data_is_in() to determine if data is ready.
This function is only available on devices with SPI hardware.
Nothing
in_data = spi_read(out_data);
ex_spi.c
spi_data_is_in(), spi_write(),
( !spi_data_is_in() && input(PIN_B2) );
if( spi_data_is_in() )
data = spi_read();
SPI Overview
SPI Overview

Related parts for PCWHD IDE COMPILER