Pre-Processor
Elements:
Options are separated by commas and may be:
PWMx or CCPx
OUTPUT=PIN_xx
TIMER=x
FREQUENCY=x
PERIOD=x
BITS=x
DUTY=x
STREAM=id
Purpose:
Selects the CCP to use, x being the module number to use.
Selects the PWM pin to use, pin must be one of the CCP pins. If device has
remappable pins compiler will assign specified pin to specified CCP module. If
CCP module not specified it will assign remappable pin to first available module.
Selects timer to use with PWM module, default if not specified is
timer 2.
Sets the period of PWM based off specified value, should not be
used if PERIOD is already specified. If frequency can't be
achieved exactly compiler will generate a message specifying the
exact frequency and period of PWM. If neither FREQUENCY or
PERIOD is specified, the period defaults to maximum possible
period with maximum resolution and compiler will generate a
message specifying the frequency and period of PWM, or if using
same timer as previous stream instead of setting to maximum
possible it will be set to the same as previous stream. If using
same timer as previous stream and frequency is different compiler
will generate an error.
Sets the period of PWM, should not be used if FREQUENCY is
already specified. If period can't be achieved exactly compiler will
generate a message specifying the exact period and frequency of
PWM. If neither PERIOD or FREQUENCY is specified, the period
defaults to maximum possible period with maximum resolution and
compiler will generate a message specifying the frequency and
period of PWM, or if using same timer as previous stream instead
of setting to maximum possible it will be set to the same as
previous stream. If using same timer as previous stream and
period is different compiler will generate an error.
Sets the resolution of the the duty cycle, if period or frequency is
specified will adjust the period to meet set resolution and will
generate an message specifying the frequency and duty of PWM.
If period or frequency not specified will set period to maximum
possible for specified resolution and compiler will generate a
message specifying the frequency and period of PWM, unless
using same timer as previous then it will generate an error if
resolution is different then previous stream. If not specified then
frequency, period or previous stream using same timer sets the
resolution.
Selects the duty percentage of PWM, default if not specified is
50%.
Associates a stream identifier with the PWM signal. The identifier
may be used in functions like pwm_set_duty_percent().
This directive tells the compiler to setup a PWM on the specified
pin using the specified frequency, period, duty cycle and resolution.
The #USE DELAY directive must appear before this directive can
be used. This directive enables use of built-in functions such as
127
相关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