PIC16C924-08/SP Microchip Technology, PIC16C924-08/SP Datasheet - Page 60
![no-image](/images/manufacturer_photos/0/4/439/microchip_technology_sml.jpg)
PIC16C924-08/SP
Manufacturer Part Number
PIC16C924-08/SP
Description
IC MCU 64 LD 8MHZ 4K OTP 64-SDIP
Manufacturer
Microchip Technology
Series
PIC® 16Cr
Datasheets
1.PIC16F616T-ISL.pdf
(8 pages)
2.PIC16F818-ISO.pdf
(6 pages)
3.PIC16C923-04L.pdf
(189 pages)
4.PIC16LC924-04L.pdf
(10 pages)
Specifications of PIC16C924-08/SP
Core Processor
PIC
Core Size
8-Bit
Speed
8MHz
Connectivity
I²C, SPI
Peripherals
LCD, POR, PWM, WDT
Number Of I /o
25
Program Memory Size
7KB (4K x 14)
Program Memory Type
OTP
Ram Size
176 x 8
Voltage - Supply (vcc/vdd)
4 V ~ 6 V
Data Converters
A/D 5x8b
Oscillator Type
External
Operating Temperature
0°C ~ 70°C
Package / Case
64-SDIP (0.750", 19.05mm)
For Use With
AC164025 - MODULE SKT PROMATEII 64DIPDVA16XP640 - ADAPTER DEVICE FOR MPLAB-ICE
Lead Free Status / RoHS Status
Request inventory verification / Request inventory verification
Eeprom Size
-
- PIC16F616T-ISL PDF datasheet
- PIC16F818-ISO PDF datasheet #2
- PIC16C923-04L PDF datasheet #3
- PIC16LC924-04L PDF datasheet #4
- Current page: 60 of 189
- Download datasheet (2Mb)
PIC16C9XX
10.3.2
The PWM duty cycle is specified by writing to the
CCPR1L register and to the CCP1CON<5:4> bits. Up
to 10-bit resolution is available: the CCPR1L contains
the eight MSbs and CCP1CON<5:4> contains the two
LSbs.
CCPR1L:CCP1CON<5:4>. The following equation is
used to calculate the PWM duty cycle in time:
CCPR1L and CCP1CON<5:4> can be written to at any
time, but the duty cycle value is not latched into
CCPR1H until after a match between PR2 and TMR2
occurs (i.e., the period is complete). In PWM mode,
CCPR1H is a read-only register.
The CCPR1H register and a 2-bit internal latch are
used to double buffer the PWM duty cycle. This double
buffering is essential for glitchless PWM operation.
When the CCPR1H and 2-bit latch match TMR2 con-
catenated with an internal 2-bit Q clock or 2 bits of the
TMR2 prescaler, the CCP1 pin is cleared.
Maximum PWM resolution (bits) for a given PWM fre-
quency:
TABLE 10-2: EXAMPLE PWM FREQUENCIES AND RESOLUTIONS AT 8 MHz
DS30444E - page 60
PR2 Value
Timer Prescaler (1, 4, 16)
Maximum Resolution (bits)
Note:
Note:
PWM duty cycle = (CCPR1L:CCP1CON<5:4>) •
This
PWM DUTY CYCLE
The Timer2 postscaler (Section 9.0) is not
used in the determination of the PWM fre-
quency. The postscaler could be used to
have a servo update rate at a different fre-
quency than the PWM output.
If the PWM duty cycle value is longer than
the PWM period the CCP1 pin will not be
cleared.
PWM Frequency
=
10-bit
log
Tosc • (TMR2 prescale value)
log(2)
(
value
F
F
PWM
OSC
)
is
bits
represented
488 Hz
0xFF
16
10
by
1.95 kHz
0xFF
10
4
EXAMPLE 10-2: PWM PERIOD AND DUTY
Desired PWM frequency is 31.25 kHz,
Fosc = 8 MHz
TMR2 prescale = 1
Find the maximum resolution of the duty cycle that can
be used with a 31.25 kHz frequency and 8 MHz oscilla-
tor:
At most, an 8-bit resolution duty cycle can be obtained
from a 31.25 kHz frequency and a 8 MHz oscillator, i.e.,
0 CCPR1L:CCP1CON<5:4> 255. Any value greater
than 255 will result in a 100% duty cycle.
In order to achieve higher resolution, the PWM fre-
quency must be decreased. In order to achieve higher
PWM frequency, the resolution must be decreased.
Table 10-2 lists example PWM frequencies and resolu-
tions for Fosc = 8 MHz. TMR2 prescaler and PR2 val-
ues are also shown.
10.3.3
The following steps should be taken when configuring
the CCP module for PWM operation:
1.
2.
3.
4.
5.
1/31.25 kHz
32 s
PR2
1/31.25 kHz
32 s
256
log(256)
8.0
Set the PWM period by writing to the PR2 regis-
ter.
Set the PWM duty cycle by writing to the
CCPR1L register and CCP1CON<5:4> bits.
Make the CCP1 pin an output by clearing the
TRISC<2> bit.
Set the TMR2 prescale value and enable Timer2
by writing to T2CON.
Configure the CCP module for PWM operation.
7.81 kHz
0xFF
SET-UP FOR PWM OPERATION
10
1
31.25 kHz
= [ (PR2) + 1 ] • 4 • 1/8 MHz • 1
= [ (PR2) + 1 ] • 4 • 125 ns • 1
= 63
= 2
= 2
= 2
= (PWM Resolution) • log(2)
= PWM Resolution
CYCLE CALCULATION
0x3F
PWM RESOLUTION
PWM RESOLUTION
PWM RESOLUTION
1
8
1997 Microchip Technology Inc.
62.5 kHz
0x1F
• 1/8 MHz • 1
• 125 ns • 1
1
7
250 kHz
0x07
1
5
Related parts for PIC16C924-08/SP
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
![PIC16C924-04/PT](/photos/6/81/68123/c04-066_pf_tmb.jpg)
Part Number:
Description:
IC MCU OTP 4KX14 LCD DVR 64TQFP
Manufacturer:
Microchip Technology
Datasheet:
![PIC16C924-04I/PT](/photos/6/81/68123/c04-066_pf_tmb.jpg)
Part Number:
Description:
IC MCU OTP 4KX14 LCD DVR 64TQFP
Manufacturer:
Microchip Technology
Datasheet:
![PIC16C924-08I/PT](/photos/6/81/68123/c04-066_pf_tmb.jpg)
Part Number:
Description:
IC MCU OTP 4KX14 LCD DVR 64TQFP
Manufacturer:
Microchip Technology
Datasheet:
![PIC16C924-04/L](/photos/12/13/121323/c04-049_l_tmb.jpg)
Part Number:
Description:
IC MCU OTP 4KX14 LCD DVR 68PLCC
Manufacturer:
Microchip Technology
Datasheet:
![PIC16C924-04/SP](/images/manufacturer_photos/0/4/439/microchip_technology_tmb.jpg)
Part Number:
Description:
IC MICRO CTRL LCD DRIVER 64DIP
Manufacturer:
Microchip Technology
Datasheet:
![PIC16C924-08I/SP](/images/manufacturer_photos/0/4/439/microchip_technology_tmb.jpg)
Part Number:
Description:
IC MCU 64 LD 8MHZ 4K OTP 64-SDIP
Manufacturer:
Microchip Technology
Datasheet:
![PIC16C924-08/PT](/photos/6/81/68123/c04-066_pf_tmb.jpg)
Part Number:
Description:
IC MCU OTP 4KX14 LCD DVR 64TQFP
Manufacturer:
Microchip Technology
Datasheet:
![PIC16C924-08/L](/photos/12/13/121323/c04-049_l_tmb.jpg)
Part Number:
Description:
IC MCU OTP 4KX14 LCD DVR 68PLCC
Manufacturer:
Microchip Technology
Datasheet:
![PIC16C924-04I/L](/photos/12/13/121323/c04-049_l_tmb.jpg)
Part Number:
Description:
IC MCU OTP 4KX14 LCD DVR 68PLCC
Manufacturer:
Microchip Technology
Datasheet:
![PIC16C924-08I/L](/photos/12/13/121323/c04-049_l_tmb.jpg)
Part Number:
Description:
IC MCU OTP 4KX14 LCD DVR 68PLCC
Manufacturer:
Microchip Technology
Datasheet:
![PIC16C924/CL](/images/manufacturer_photos/0/4/439/microchip_technology_tmb.jpg)
Part Number:
Description:
IC MCU EPROM 4KX14 LCDDVR 68CLCC
Manufacturer:
Microchip Technology
Datasheet:
![PIC16C924-04I/SP](/images/manufacturer_photos/0/4/439/microchip_technology_tmb.jpg)
Part Number:
Description:
IC MCU 64 LD 4MHZ 4K OTP 64-SDIP
Manufacturer:
Microchip Technology
Datasheet:
![PIC16C54-HS/P](/images/manufacturer_photos/0/4/439/microchip_technology_tmb.jpg)
Part Number:
Description:
IC, 8BIT MCU, PIC16C, 40MHZ, DIP-18
Manufacturer:
Microchip Technology
Datasheet:
![PIC16C55-RC/P](/photos/7/29/72985/150-28-dip_wide_tmb.jpg)
Part Number:
Description:
IC, 8BIT MCU, PIC16C, 4MHZ, DIP-28
Manufacturer:
Microchip Technology
Datasheet:
![PIC16C55-XT/P](/photos/7/29/72985/150-28-dip_wide_tmb.jpg)
Part Number:
Description:
IC, 8BIT MCU, PIC16C, 4MHZ, DIP-28
Manufacturer:
Microchip Technology
Datasheet: