SW006010 Microchip Technology, SW006010 Datasheet - Page 45

no-image

SW006010

Manufacturer Part Number
SW006010
Description
MPLAB 17C SOFTWARE
Manufacturer
Microchip Technology
Datasheets

Specifications of SW006010

Tool Function
Compiler
Tool Type
Compiler
Processor Series
PIC17C
Lead Free Status / RoHS Status
Not applicable / Not applicable
For Use With/related Products
MPLAB®
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
2.9
 2002 Microchip Technology Inc.
PULSE WIDTH MODULATION FUNCTIONS
This section contains a list of individual functions and an example of use of the
functions in this section. Functions may be implemented as macros.
2.9.1
ClosePWM1
ClosePWM2
ClosePWM3
Device:
Function:
Include:
Prototype:
Arguments:
Remarks:
Return Value:
File Name:
Code Example:
OpenPWM1
OpenPWM2
OpenPWM3
Device:
Function:
Include:
Prototype:
Arguments:
Function Descriptions
ClosePWM1 - PIC17C4X, PIC17C756
ClosePWM2 - PIC17C4X, PIC17C756
ClosePWM3 - PIC17C756
This function disables the specified PWM channel.
pwm16.h
void ClosePWM1 (void);
void ClosePWM2 (void);
void ClosePWM3 (void);
None
This function simply disables the specified PWM channel by
clearing the
registers.
None
pw1close.c
pw2close.c
pw3close.c
ClosePWM2();
OpenPWM1 - PIC17C4X, PIC17C756
OpenPWM2 - PIC17C4X, PIC17C756
OpenPWM3 - PIC17C756
Configures the specified PWM channel.
pwm16.h
void OpenPWM1 (static char period);
void OpenPWM2 (static unsigned char
config, static char period);
void OpenPWM3 (static unsigned char
config, static char period);
config
The value of config can be one of the following values
(defined in
OpenPWM2
OpenPWM3
T1_SOURCETimer1 is clock source
T2_SOURCETimer2 is clock source
captur16.h
Hardware Peripheral Library
PWMxON
bit in the respective
):
TCON2
or
TCON3
apRNOVS^-page 41

Related parts for SW006010