PIC16F1526T-I/PT Microchip Technology, PIC16F1526T-I/PT Datasheet - Page 193

no-image

PIC16F1526T-I/PT

Manufacturer Part Number
PIC16F1526T-I/PT
Description
64-pin, 14KB Flash, 768B RAM, 10-bit ADC, 10xCCP, 2xSPI, 2xMI2C, 2xEUSART, 2.3V-
Manufacturer
Microchip Technology
Series
PIC® XLP™ 16Fr
Datasheet

Specifications of PIC16F1526T-I/PT

Core Processor
PIC
Core Size
8-Bit
Speed
20MHz
Connectivity
I²C, LIN, SPI, UART/USART
Peripherals
Brown-out Detect/Reset, POR, PWM, WDT
Number Of I /o
54
Program Memory Size
14KB (8K x 14)
Program Memory Type
FLASH
Eeprom Size
-
Ram Size
768 x 8
Voltage - Supply (vcc/vdd)
2.3 V ~ 5.5 V
Data Converters
A/D 30x10b
Oscillator Type
Internal
Operating Temperature
-40°C ~ 85°C
Package / Case
64-TQFP
Lead Free Status / Rohs Status
Lead free / RoHS Compliant

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC16F1526T-I/PT
Manufacturer:
Microchip Technology
Quantity:
10 000
Part Number:
PIC16F1526T-I/PT
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
20.3.2
The following steps should be taken when configuring
the CCP module for standard PWM operation:
1.
2.
3.
4.
5.
6.
20.3.3
The PWM standard mode makes use of one of the 8-bit
Timer2/4/6/8/10 timer resources to specify the PWM
period.
Configuring the CxTSEL<1:0> bits in the CCPTMRSx
register selects which Timer2/4/6/8/10 timer is used.
See
resources.
 2011 Microchip Technology Inc.
Note:
Disable the CCPx pin output driver by setting the
associated TRIS bit.
Load the PRx register with the PWM period
value.
Configure the CCP module for the PWM mode
by loading the CCPxCON register with the
appropriate values.
Load the CCPRxL register and the DCxBx bits
of the CCPxCON register, with the PWM duty
cycle value.
Configure and start Timer2/4/6/8/10:
• Select the Timer2/4/6/8/10 resource to be
• Clear the TMRxIF interrupt flag bit of the
• Configure the TxCKPS bits of the TxCON
• Enable the Timer by setting the TMRxON
Enable PWM output pin:
• Wait until the Timer overflows and the
• Enable the CCPx pin output driver by clear-
Table 20-6
used for PWM generation by setting the
CxTSEL<1:0> bits in the CCPTMRSx
register.
PIRx register. See Note below.
register with the Timer prescale value.
bit of the TxCON register.
TMRxIF bit of the PIRx register is set. See
Note below.
ing the associated TRIS bit.
SETUP FOR PWM OPERATION
In order to send a complete duty cycle and
period on the first PWM output, the above
steps must be included in the setup
sequence. If it is not critical to start with a
complete PWM signal on the first output,
then step 6 may be ignored.
TIMER2/4/6/8/10 TIMER RESOURCE
for CCPx PWM Timer2/4/6/8/10
Preliminary
20.3.4
The PWM period is specified by the PRx register of
Timer2/4/6/8/10. The PWM period can be calculated
using the formula of
EQUATION 20-1:
When TMRx is equal to PRx, the following three events
occur on the next increment cycle:
• TMRx is cleared
• The CCPx pin is set. (Exception: If the PWM duty
• The PWM duty cycle is latched from CCPRxL into
cycle = 0%, the pin will not be set.)
CCPRxH.
Note:
Note 1:
PWM Period
PIC16(L)F1526/27
PWM PERIOD
The Timer postscaler (see
“Timer2/4/6/8/10 Operation”
in
frequency.
the
T
OSC
=
Equation
(TMRx Prescale Value)
determination
PWM PERIOD
= 1/F
PRx
OSC
+
20-1.
1
 4 T
DS41458B-page 193
of
Section 19.1
OSC
is not used
the
PWM

Related parts for PIC16F1526T-I/PT