PCD
PWM.
duty – an int16 constant or variable specifying the new PWM high time.
Returns:
Function:
Nothing.
To change the duty cycle of the PWM signal. The duty cycle
percentage depends on the period of the PWM signal. This function is
faster than pwm_set_duty_percent(), but requires you to know what the
period of the PWM signal is.
Availability: All devices.
Requires:
Examples:
Example
Files:
Also See:
#USE PWM
#USE PWM(OUTPUT=PIN_C2, FREQUENCY=10kHz, DUTY=25)
None
#use_pwm, pwm_on, pwm_off(), pwm_set_frequency(),
pwm_set_duty_percent()
pwm_set_duty_percent
Syntax:
pwm_set_duty_percent([stream]), percent
Parameters: stream – optional parameter specifying the stream defined in #USE PWM.
percent- an int16 constant or variable ranging from 0 to 1000 specifying the new PWM duty
cycle, D is 0% and 1000 is 100.0%.
Returns:
Function:
Availability:
Requires:
Examples:
Example
Files:
Also See:
Nothing.
To change the duty cycle of the PWM signal. Duty cycle percentage is based off the current
frequency/period of the PWM signal.
All devices.
#USE PWM
#USE PWM(OUTPUT=PIN_C2, FREQUENCY=10kHz, DUTY=25)
pwm_set_duty_percent(500); //set PWM duty cycle to 50%
None
#use_pwm, pwm_on(), pwm_off(), pwm_set_frequency(),
pwm_set_duty()
pwm_set_frequency
Syntax:
pwm_set_frequency([stream],frequency);
Parameters: stream – optional parameter specifying the stream defined in #USE
PWM.
frequency – an int32 constant or variable specifying the new PWM
frequency.
224
相关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