PIC16F73-I/SO Microchip Technology Inc., PIC16F73-I/SO Datasheet - Page 60

no-image

PIC16F73-I/SO

Manufacturer Part Number
PIC16F73-I/SO
Description
28 PIN, 7 KB FLASH, 192 RAM, 22 I/O
Manufacturer
Microchip Technology Inc.
Datasheet

Specifications of PIC16F73-I/SO

A/d Inputs
5-Channel, 8-Bit
Cpu Speed
5 MIPS
Eeprom Memory
0 Bytes
Input Output
22
Interface
I2C/SPI/USART
Memory Type
Flash
Number Of Bits
8
Package Type
28-pin SOIC
Programmable Memory
7K Bytes
Ram Size
192 Bytes
Speed
20 MHz
Timers
2-8-bit, 1-16-bit
Voltage, Range
2-5.5 V
Lead Free Status / Rohs Status
RoHS Compliant part Electrostatic Device

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC16F73-I/SO
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Part Number:
PIC16F73-I/SO
0
Company:
Part Number:
PIC16F73-I/SO
Quantity:
5 000
PIC16F7X
8.5.3
The following steps should be taken when configuring
the CCP module for PWM operation:
1.
2.
TABLE 8-4:
TABLE 8-5:
DS30325B-page 58
Timer Prescale (1, 4, 16)
PR2 Value
Maximum Resolution (bits)
Address
0Bh,8Bh,
10Bh,18Bh
0Ch
0Dh
8Ch
8Dh
87h
11h
92h
12h
15h
16h
17h
1Bh
1Ch
1Dh
Legend:
Note 1: Bits PSPIE and PSPIF are reserved on the PIC16F73/76; always maintain these bits clear.
Set the PWM period by writing to the PR2 register.
Set the PWM duty cycle by writing to the
CCPR1L register and CCP1CON<5:4> bits.
PWM Frequency
x = unknown, u = unchanged, - = unimplemented, read as '0'. Shaded cells are not used by PWM and Timer2.
INTCON
PIR1
PIR2
PIE1
PIE2
TRISC
TMR2
PR2
T2CON
CCPR1L
CCPR1H
CCP1CON
CCPR2L
CCPR2H
CCP2CON
SETUP FOR PWM OPERATION
Name
EXAMPLE PWM FREQUENCIES AND RESOLUTIONS (F
REGISTERS ASSOCIATED WITH PWM AND TIMER2
PSPIE
PORTC Data Direction Register
Timer2 Module Register
Timer2 Module Period Register
Capture/Compare/PWM Register1 (LSB)
Capture/Compare/PWM Register1 (MSB)
Capture/Compare/PWM Register2 (LSB)
Capture/Compare/PWM Register2 (MSB)
PSPIF
Bit 7
GIE
(1)
(1)
TOUTPS3 TOUTPS2 TOUTPS1 TOUTPS0 TMR2ON T2CKPS1 T2CKPS0 -000 0000 -000 0000
PEIE
ADIF
ADIE
Bit 6
1.22 kHz
0xFF
16
10
TMR0IE
CCP1X
CCP2X
RCIE
RCIF
Bit 5
4.88 kHz
CCP1Y
CCP2Y
INTE
TXIE
0xFF
Bit 4
TXIF
10
4
CCP1M3 CCP1M2 CCP1M1 CCP1M0 --00 0000 --00 0000
CCP2M3 CCP2M2 CCP2M1 CCP2M0 --00 0000 --00 0000
SSPIE
SSPIF
RBIE
Bit 3
19.53 kHz
3.
4.
5.
0xFF
10
1
TMR0IF
CCP1IF
CCP1IE TMR2IE
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 CCP1 module for PWM operation.
Bit 2
TMR2IF
78.12 kHz
INTF
Bit 1
0x3F
1
8
OSC
TMR1IE 0000 0000 0000 0000
TMR1IF 0000 0000 0000 0000
CCP2IF ---- ---0 ---- ---0
CCP2IE ---- ---0 ---- ---0
 2002 Microchip Technology Inc.
RBIF
Bit 0
= 20 MHz)
156.3 kHz
0x1F
0000 000x 0000 000u
1111 1111 1111 1111
0000 0000 0000 0000
1111 1111 1111 1111
xxxx xxxx uuuu uuuu
xxxx xxxx uuuu uuuu
xxxx xxxx uuuu uuuu
xxxx xxxx uuuu uuuu
Value on:
1
7
POR,
BOR
208.3 kHz
Value on
all other
RESETS
0x17
5.5
1

Related parts for PIC16F73-I/SO