PIC16C782 Microchip Technology Inc., PIC16C782 Datasheet - Page 106
![no-image](/images/manufacturer_photos/0/4/440/microchip_technology_inc__sml.jpg)
PIC16C782
Manufacturer Part Number
PIC16C782
Description
8-bit Cmos Microcontrollers With A/d, D/a, Opamp, Comparators And Psmc
Manufacturer
Microchip Technology Inc.
Datasheet
1.PIC16C782.pdf
(186 pages)
Available stocks
Company
Part Number
Manufacturer
Quantity
Price
- Current page: 106 of 186
- Download datasheet (4Mb)
PIC16C781/782
13.2
The PSMC is controlled by means of two special func-
tion registers: PSMCCON0 and PSMCCON1.
The PSMCCON0 register (Register 13-1) contains
control bits for:
• Frequency of the output pulse
• Minimum and maximum duty cycle in PWM mode
• Fixed duty cycle in PSM mode
The PSMCCON1 register (Register 13-2) contains the
control bits for:
• Enabling the PSMC module
• Setting the PSMC mode
• Configuring inputs and outputs
13.2.1
The SMCCL<1:0> bits in the PSMCCON0 register, are
used to set the pulse frequency of the PSMC.
In
(PSMCCON0 <5:4>) specify the minimum duty cycle.
TABLE 13-5:
Legend: x = Don’t Care
*As needed for other functions (such as C2, RB7, T1G).
DS41171A-page 104
Single Output
Single Output + Slope Compensation
Dual Output
Note:
Note:
the
Control Registers
PWM
Following RESET, both the PSMC1A and
PSMC1B outputs are held tri-state until the
PSMC is configured. Driver circuitry for all
power MOSFET transistors must have a
resistor bias to turn off the transistor in the
event of tri-state conditions, on either
PSMC1A or PSMC1B, to prevent exces-
sive stress on the MOSFET's and their
associated circuitry.
Changing SMCCL<1:0> bits with the
PSMC enabled (SMCON=1) can result in
unpredictable
PSMC before changing SMCCL<1:0>.
PSMCCON0 REGISTER
FUNCTION
mode,
PSMC OUTPUT MODES
the
output.
MINDC
Always
<1:0>
disable
SMCOM
0
0
1
Preliminary
bits
PSMC
In
(PSMCCON0 <3:2>) specify the maximum duty cycle
limit.
In
(PSMCCON0<1:0>) specify the fixed duty cycle.
13.2.2
To enable the PSMC operation, the SMCON bit in the
PSMCCON1 register must be set (see Register 13-2).
The PWM/PSM bit (PSMCCON1<1>) configures the
output mode of the PSMC. When the PWM/PSM bit is
set, the PSMC is configured for a PWM output. When
the PWM/PSM bit is cleared, a fixed duty cycle pulse is
output.
The SMCCS bit (PSMCCON1<0>) sets the input
mode. When the SMCCS bit is set, the PSMC is con-
figured for two inputs: C1 and C2. When cleared, only
Comparator C1 is used.
SMCOM bit (PSMCCON1<1>) determines the number
of outputs from the PSMC. When SMCOM is set, both
PSMC1A and PSMC1B are active. When SMCOM is
cleared, only the PSMC1A output is active and the
PSMC1B output is available for another function.
S1APOL and S1BPOL control the polarity of the PSMC
outputs. Setting the polarity bit configures the corre-
sponding output for an active low state. Clearing the bit
results in an active high output.
The SCEN bit (PSMCCON1<2>) enables the slope
compensation output. When SCEN is set (and SMCOM
is cleared) the PSMC1B output is configured to gener-
ate a slope compensation signal.
Note:
SCEN
the
0
1
x
the
PWM
PSMC outputs must have their corre-
sponding direction bits cleared in TRISB;
TRISB<6>: for PSMC1A, and TRISB<7>
for PSMC1B.
PSMCCON1 REGISTER
PSM
mode,
TRISB<6>
mode,
0
0
0
2001 Microchip Technology Inc.
the
PORTB
the
MAXDC
DC<1:0>
TRISB<7>
<1:0>
0
0
*
bits
bits
Related parts for PIC16C782
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
![PIC-0903](/images/no-image3.png)
Part Number:
Description:
Photo IC(photodiode with signal processing)
Manufacturer:
KODENSHI KOREA CORP
Datasheet:
![PIC-1018SMB](/images/no-image3.png)
Part Number:
Description:
INFRARED RECEIVER MODULE
Manufacturer:
ETC
Datasheet:
![PIC-2058SMB](/images/no-image3.png)
Part Number:
Description:
INFRARED RECEIVER MODULE
Manufacturer:
ETC
Datasheet:
![PIC-2503](/images/no-image3.png)
Part Number:
Description:
Photo IC(photodiode with signal processing)
Manufacturer:
KODENSHI KOREA CORP
Datasheet:
![PIC12045S](/images/manufacturer_photos/0/3/374/kodenshi_tmb.jpg)
Part Number:
Description:
(PIC-1204x) OPTICAL-RECEIVER OUTPUT PHOTO IC
Manufacturer:
Kodenshi
Datasheet:
![TC1014-2.7VCT](/images/manufacturer_photos/0/4/440/microchip_technology_inc__tmb.jpg)
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
![TC1014-5.0VCT](/images/manufacturer_photos/0/4/440/microchip_technology_inc__tmb.jpg)
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
![TC1055-2.5VCT](/images/manufacturer_photos/0/4/440/microchip_technology_inc__tmb.jpg)
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
![TC1055-2.7VCT](/images/manufacturer_photos/0/4/440/microchip_technology_inc__tmb.jpg)
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
![TC1055-2.8VCT](/images/manufacturer_photos/0/4/440/microchip_technology_inc__tmb.jpg)
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
![TC1055-4.0VCT](/images/manufacturer_photos/0/4/440/microchip_technology_inc__tmb.jpg)
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet: