PIC16F1939-I/P Microchip Technology Inc., PIC16F1939-I/P Datasheet - Page 218

no-image

PIC16F1939-I/P

Manufacturer Part Number
PIC16F1939-I/P
Description
28KB Flash, 1KB RAM, 256B EEPROM, LCD, 1.8-5.5V
Manufacturer
Microchip Technology Inc.
Datasheet

Specifications of PIC16F1939-I/P

A/d Inputs
14-Channel, 10-Bit
Comparators
2
Cpu Speed
8 MIPS
Eeprom Memory
256 Bytes
Input Output
36
Interface
I2C/SPI/UART/USART
Memory Type
Flash
Number Of Bits
8
Package Type
40-pin PDIP
Programmable Memory
28K Bytes
Ram Size
1K Bytes
Speed
32 MHz
Temperature Range
–40 to 125 °C
Timers
4-8-bit, 1-16-bit
Voltage, Range
1.8-5.5 V

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC16F1939-I/P
Manufacturer:
IR
Quantity:
5 144
Part Number:
PIC16F1939-I/P
Manufacturer:
Microchip Technology
Quantity:
1 852
Part Number:
PIC16F1939-I/PT
Manufacturer:
ON
Quantity:
4 300
Part Number:
PIC16F1939-I/PT
Manufacturer:
Microchip Technology
Quantity:
10 000
Part Number:
PIC16F1939-I/PT
0
Company:
Part Number:
PIC16F1939-I/PT
Quantity:
2 800
Company:
Part Number:
PIC16F1939-I/PT
Quantity:
1 600
PIC16F193X/LF193X
22.4
The enhanced PWM function described in this section is
available for CCP modules ECCP1, ECCP2 and
ECCP3, with any differences between modules noted.
The enhanced PWM mode generates a Pulse-Width
Modulation (PWM) signal on up to four different output
pins with up to 10 bits of resolution. The period, duty
cycle, and resolution are controlled by the following
registers:
• PRx registers
• TxCON registers
• CCPRxL registers
• CCPxCON registers
The ECCP modules have the following additional PWM
registers which control Auto-shutdown, Auto-restart,
Dead-band Delay and PWM Steering modes:
• CCPxAS registers
• PSTRxCON registers
• PWMxCON registers
The enhanced PWM module can generate the following
five PWM Output modes:
• Single PWM
• Half-Bridge PWM
• Full-Bridge PWM, Forward Mode
• Full-Bridge PWM, Reverse Mode
• Single PWM with PWM Steering Mode
FIGURE 22-5:
DS41364D-page 218
Note 1:
CCPRxH (Slave)
Duty Cycle Registers
Comparator
PWM (Enhanced Mode)
CCPRxL
PRx
TMRx
Comparator
The 8-bit timer TMRx register is concatenated with the 2-bit internal Q clock, or 2 bits of the prescaler to create the 10-bit time
base.
(1)
EXAMPLE SIMPLIFIED BLOCK DIAGRAM OF THE ENHANCED PWM MODE
Clear Timer,
toggle PWM pin and
latch duty cycle
DCxB<1:0>
R
S
PxM<1:0>
Q
Preliminary
PWMxCON
Controller
Output
2
CCPx/PxA
PxB
PxC
PxD
To select an Enhanced PWM Output mode, the PxM bits
of the CCPxCON register must be configured
appropriately.
The PWM outputs are multiplexed with I/O pins and are
designated PxA, PxB, PxC and PxD. The polarity of the
PWM pins is configurable and is selected by setting the
CCPxM bits in the CCPxCON register appropriately.
Figure 22-5 shows an example of a simplified block
diagram of the Enhanced PWM module.
Table 22-8 shows the pin assignments for various
Enhanced PWM modes.
4
CCPxM<3:0>
Note 1: The corresponding TRIS bit must be
2: Clearing the CCPxCON register will
3: Any pin not used in the enhanced PWM
4: To
TRISx
TRISx
TRISx
TRISx
cleared to enable the PWM output on the
CCPx pin.
relinquish control of the CCPx pin.
mode is available for alternate pin
functions, if applicable.
incomplete waveform when the PWM is
first enabled, the ECCP module waits
until the start of a new PWM period before
generating a PWM signal.
prevent
 2009 Microchip Technology Inc.
the
CCPx/PxA
PxB
PxD
PxC
generation
of
an

Related parts for PIC16F1939-I/P