PIC16C781T-I/SO Microchip Technology, PIC16C781T-I/SO Datasheet - Page 106

IC MCU CMOS 8BIT 1K 20MHZ 20SOIC

PIC16C781T-I/SO

Manufacturer Part Number
PIC16C781T-I/SO
Description
IC MCU CMOS 8BIT 1K 20MHZ 20SOIC
Manufacturer
Microchip Technology
Series
PIC® 16Cr

Specifications of PIC16C781T-I/SO

Core Processor
PIC
Core Size
8-Bit
Speed
20MHz
Peripherals
Brown-out Detect/Reset, POR, PWM, WDT
Number Of I /o
13
Program Memory Size
1.75KB (1K x 14)
Program Memory Type
OTP
Ram Size
128 x 8
Voltage - Supply (vcc/vdd)
4 V ~ 5.5 V
Data Converters
A/D 8x8b; D/A 1x8b
Oscillator Type
Internal
Operating Temperature
-40°C ~ 85°C
Package / Case
20-SOIC (7.5mm Width)
For Use With
AC164028 - MODULE SKT PROMATEII 20SOIC/DIP
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Eeprom Size
-
Connectivity
-
Other names
PIC16C781TI/SO
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 PIC16C781T-I/SO