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

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
Availability:
Requires:
Examples:
Example Files:
Also See:
setup_spi( ) setup_spi2( )
Syntax:
Parameters:
Returns:
Function:
Availability:
Requires:
Examples:
Example Files:
Also See:
280
Devices that have the RTCC module.
Nothing.
setup_rtc_alarm(RTC_ALARM_ENABLE, RTC_ALARM_HOUR, 3);
None
rtc_read(), rtc_alarm_read(), rtc_alarm_write(), setup_rtc_alarm(), rtc_write(),
setup_rtc()
setup_spi (mode)
setup_spi2 (mode)
mode may be:
undefined
Configures the hardware SPI™ module.
• SPI_MASTER will configure the module as the bus master
• SPI_SLAVE will configure the module as a slave on the SPI™ bus
• SPI_SS_DISABLED will turn off the slave select pin so the slave module
receives any transmission on the bus.
• SPI_x_to_y will specify the clock edge on which to sample and transmit data
• SPI_CLK_DIV_x will specify the divisor used to create the SCK clock from
system clock.
This function is only available on devices with SPI hardware.
Constants are defined in the devices .h file.
setup_spi(SPI_MASTER | SPI_L_TO_H | SPI_DIV_BY_16);
ex_spi.c
spi_write(), spi_read(), spi_data_is_in(),
SPI_MASTER, SPI_SLAVE, SPI_SS_DISABLED
SPI_L_TO_H, SPI_H_TO_L
SPI_CLK_DIV_4, SPI_CLK_DIV_16,
SPI_CLK_DIV_64, SPI_CLK_T2
SPI_SAMPLE_AT_END, SPI_XMIT_L_TO_H
SPI_MODE_16B, SPI_XMIT_L_TO_H
Constants from each group may be or'ed together with |.
SPI Overview

Related parts for PCDIDE COMPILER