PIC16F726-E/SO Microchip Technology, PIC16F726-E/SO Datasheet - Page 143

no-image

PIC16F726-E/SO

Manufacturer Part Number
PIC16F726-E/SO
Description
14KB Flash Program, 1.8V-5.5V, 16MHz Internal Oscillator, 8b ADC, CCP, I2C/SPI,
Manufacturer
Microchip Technology
Series
PIC® XLP™ 16Fr

Specifications of PIC16F726-E/SO

Core Processor
PIC
Core Size
8-Bit
Speed
20MHz
Connectivity
I²C, SPI, UART/USART
Peripherals
Brown-out Detect/Reset, POR, PWM, WDT
Number Of I /o
25
Program Memory Size
14KB (8K x 14)
Program Memory Type
FLASH
Ram Size
368 x 8
Voltage - Supply (vcc/vdd)
1.8 V ~ 5.5 V
Data Converters
A/D 11x8b
Oscillator Type
Internal
Operating Temperature
-40°C ~ 125°C
Package / Case
28-SOIC (7.5mm Width)
Processor Series
PIC16F
Core
PIC
Data Bus Width
8 bit
Data Ram Size
368 B
Interface Type
I2C, SCI, SPI
Maximum Clock Frequency
20 MHz
Number Of Programmable I/os
25
Number Of Timers
3
Maximum Operating Temperature
+ 125 C
Mounting Style
SMD/SMT
3rd Party Development Tools
52715-96, 52716-328, 52717-734
Development Tools By Supplier
PG164130, DV164035, DV244005, DV164005, PG164120
Minimum Operating Temperature
- 40 C
On-chip Adc
8 bit, 11 Channel
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
For Use With
AC164112 - VOLTAGE LIMITER MPLAB ICD2 VPPICE2000 - EMULATOR MPLAB-ICE 2000 POD
Eeprom Size
-
Lead Free Status / Rohs Status
 Details
15.3.4
The resolution determines the number of available duty
cycles for a given period. For example, a 10-bit resolution
will result in 1024 discrete duty cycles, whereas an 8-bit
resolution will result in 256 discrete duty cycles.
The maximum PWM resolution is 10 bits when PR2 is
255. The resolution is a function of the PR2 register
value as shown by Equation 15-4.
TABLE 15-5:
TABLE 15-6:
15.3.5
In Sleep mode, the TMR2 register will not increment
and the state of the module will not change. If the CCPx
pin is driving a value, it will continue to drive that value.
When the device wakes up, TMR2 will continue from its
previous state.
15.3.6
The PWM frequency is derived from the system clock
frequency (F
quency will result in changes to the PWM frequency.
Refer to Section 7.0 “Oscillator Module” for
additional details.
15.3.7
Any Reset will force all ports to Input mode and the
CCP registers to their Reset states.
© 2009 Microchip Technology Inc.
Timer Prescale (1, 4, 16)
PR2 Value
Maximum Resolution (bits)
Timer Prescale (1, 4, 16)
PR2 Value
Maximum Resolution (bits)
PWM Frequency
PWM Frequency
PWM RESOLUTION
OPERATION IN SLEEP MODE
CHANGES IN SYSTEM CLOCK
FREQUENCY
EFFECTS OF RESET
OSC
). Any changes in the system clock fre-
EXAMPLE PWM FREQUENCIES AND RESOLUTIONS (F
EXAMPLE PWM FREQUENCIES AND RESOLUTIONS (F
1.22 kHz
1.22 kHz
0xFF
0x65
16
10
16
8
4.88 kHz
4.90 kHz
0xFF
0x65
10
4
4
8
PIC16F72X/PIC16LF72X
19.53 kHz
19.61 kHz
EQUATION 15-4:
15.3.8
The following steps should be taken when configuring
the CCP module for PWM operation:
1.
2.
3.
4.
5.
6.
Note:
0xFF
0x65
• Clear the TMR2IF interrupt flag bit of the PIR1
• Configure the T2CKPS bits of the T2CON
• Enable Timer2 by setting the TMR2ON bit of
• Wait until Timer2 overflows, TMR2IF bit of the
• Enable the PWM pin (CCPx) output driver(s) by
Note:
10
1
1
8
Disable the PWM pin (CCPx) output driver(s) by
setting the associated TRIS bit(s).
Load the PR2 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:
Enable PWM output pin:
register. See Note below.
register with the Timer2 prescale value.
the T2CON register.
PIR1 register is set. See Note below.
clearing the associated TRIS bit(s).
Resolution
If the pulse width value is greater than the
period the assigned PWM pin(s) will
remain unchanged.
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.
78.12 kHz
76.92 kHz
0x3F
0x19
1
8
1
6
OSC
OSC
=
PWM RESOLUTION
log
----------------------------------------- - bits
= 20 MHz)
= 8 MHz)
[
4 PR2
153.85 kHz
log
156.3 kHz
(
0x0C
0x1F
2 ( )
1
7
1
5
+
DS41341E-page 143
1
)
]
208.3 kHz
200.0 kHz
0x17
0x09
6.6
1
1
5

Related parts for PIC16F726-E/SO