Pre-Processor
processor time taken by one execution of each task, the maximum processor time
taken by one execution of each task, and the total processor time used by each task.
When linking multiple compilation units, this directive must appear exactly the same
in each compilation unit.
Examples:
Also See:
#use rtos(timer=0, minor_cycle=20ms)
#TASK
#USE SPI
Syntax:
#USE SPI ( options )
Elements: Options are separated by commas and may be:
MASTER
SLAVE
BAUD=n
CLOCK_HIGH=n
CLOCK_LOW=n
DI=pin
DO=pin
CLK=pin
MODE=n
ENABLE=pin
LOAD=pin
DIAGNOSTIC=pin
SAMPLE_RISE
SAMPLE_FALL
BITS=n
SAMPLE_COUNT=n
LOAD_ACTIVE=n
ENABLE_ACTIVE=n
IDLE=n
ENABLE_DELAY=n
DATA_HOLD=n
LSB_FIRST
Set the device as the master. (default)
Set the device as the slave.
Target bits per second, default is as fast as possible.
High time of clock in us (not needed if BAUD= is
used). (default=0)
Low time of clock in us (not needed if BAUD= is
used). (default=0)
Optional pin for incoming data.
Optional pin for outgoing data.
Clock pin.
The mode to put the SPI bus.
Optional pin to be active during data transfer.
Optional pin to be pulsed active after data is
transferred.
Optional pin to the set high when data is sampled.
Sample on rising edge.
Sample on falling edge (default).
Max number of bits in a transfer. (default=32)
Number of samples to take (uses majority vote).
(default=1
Active state for LOAD pin (0, 1).
Active state for ENABLE pin (0, 1). (default=0)
Inactive state for CLK pin (0, 1). (default=0)
Time in us to delay after ENABLE is activated.
(default=0)
Time between data change and clock change
LSB is sent first.
133
相关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