PCD
rtos_disable(task_name);
rtos_msg_send(task_name,5);
rtos_yield();
rtos_sigal(sem);
// disables the previously declared task
// places the value 5 in task_names queue.
// yields control to the RTOS
// signals that the resource represented by sem is
available.
For more information on the CCS RTOS please
SPI
SPI? is a fluid standard for 3 or 4 wire, full duplex communications named by Motorola. Most
PIC devices sup port most common SPI? modes. CCS provides a support library for taking
advantage of both hardware and software based SPI? functionality. For software support, see
#USE SPI.
Relevant Functions:
setup_spi(mode)
setup_spi2(mode)
setup_spi3 (mode)
Configure the hardware SPI to the specified mode. The mode
configures setup_spi2(mode) thing such as master or slave
mode, clock speed and clock/data trigger configuration.
setup_spi4 (mode)
Note: for devices with dual SPI interfaces a second function, setup_spi2(), is provided to
configure the second interface.
spi_data_is_in()
spi_data_is_in2()
spi_write(value)
spi_write2(value)
spi_read(value)
spi_read2(value)
Returns TRUE if the SPI receive buffer has a byte of data.
Transmits the value over the SPI interface. This will cause the
data to be clocked out on the SDO pin.
Performs an SPI transaction, where the value is clocked out on
the SDO pin and data clocked in on the SDI pin is returned. If
you just want to clock in data then you can use spi_read() without
a parameter .
Relevant Preprocessor:
None
Relevant Interrupts:
#int_ssp
#int_ssp2
Transaction (read or write) has completed on the indicated
peripheral.
Relevant getenv() Parameters:
SPI
56
Returns TRUE if the device has an SPI peripheral
相关PDF资料
PCI-EXP-T42G5-N1 IP CORE PCI EXPRESS ORCA 4
PCM18XH2 PROCESSOR MODULE MPLAB-ICE 2000
PCM18XN0 PROCESSOR MODULE FOR ICE2000
PDA-B-24-615-E-2B1-1-C CIRCUIT BREAKER MAG 1P 15A
PFMF.260.2 PFMF PTC FUSE SMT 2.6A 1812
PFNF.200.2 PFNF PTC FUSE SMT 2A 1206
PFRY.375 PTC-FUSE RADIAL 72 VDC
PFSM.150.33.2 FUSE PTC 8A 15V FST-TRIP SMD
相关代理商/技术参数
PCD_09 制造商:MACOM 制造商全称:Tyco Electronics 功能描述:Low Profile PCB Relay PCD
PCD-00173-0C 制造商:Molex 功能描述:ETHERNET CABLE ASSEMBLY
PCD-00173-0E 制造商:Molex 功能描述:Ethernet Cable Assembly
PCD-00173-0H 制造商:Molex 功能描述:ETHERNET CABLE ASSEMBLY
PCD-00173-0K 制造商:Molex 功能描述:ETHERNET CABLE ASSEMBLY
PCD-00174-0C 制造商:Molex 功能描述:ETHERNET CABLE ASSEMBLY 制造商:Molex 功能描述:ETHERNET CABLE ASSEMBLY; Cable Length - Imperial:3ft; Cable Length - Metric:914.4mm; Connector Type A:RJ45 Plug; Connector Type B:RJ45 Plug; Jacket Color:Red; Approval Bodies:CSA / UL; Body Material:PVC; Cable Assembly Type:Ethernet ;RoHS Compliant: NA
PCD-00174-0E 制造商:Molex 功能描述:ETHERNET CABLE ASSEMBLY 制造商:Molex 功能描述:ETHERNET CABLE ASSEMBLY; Cable Length - Imperial:3ft; Cable Length - Metric:914.4mm; Connector Type A:RJ45 Plug; Connector Type B:RJ45 Plug; Jacket Color:Grey; Approval Bodies:CSA / UL; Body Material:PVC; Cable Assembly Type:Ethernet;RoHS Compliant: NA
PCD-00174-0H 制造商:Molex 功能描述:ETHERNET CABLE ASSEMBLY