參數(shù)資料
型號: PIC16C62
廠商: Microchip Technology Inc.
英文描述: 8-Bit CMOS Microcontrollers(每個I/O口有25mA驅(qū)動/吸收電流,22個I/O,2.5V的微控制器)
中文描述: 8位CMOS微控制器(每個的I / O口有25毫安驅(qū)動/吸收電流,22個的I / O,為2.5V的微控制器)
文件頁數(shù): 81/336頁
文件大?。?/td> 3529K
代理商: PIC16C62
第1頁第2頁第3頁第4頁第5頁第6頁第7頁第8頁第9頁第10頁第11頁第12頁第13頁第14頁第15頁第16頁第17頁第18頁第19頁第20頁第21頁第22頁第23頁第24頁第25頁第26頁第27頁第28頁第29頁第30頁第31頁第32頁第33頁第34頁第35頁第36頁第37頁第38頁第39頁第40頁第41頁第42頁第43頁第44頁第45頁第46頁第47頁第48頁第49頁第50頁第51頁第52頁第53頁第54頁第55頁第56頁第57頁第58頁第59頁第60頁第61頁第62頁第63頁第64頁第65頁第66頁第67頁第68頁第69頁第70頁第71頁第72頁第73頁第74頁第75頁第76頁第77頁第78頁第79頁第80頁當(dāng)前第81頁第82頁第83頁第84頁第85頁第86頁第87頁第88頁第89頁第90頁第91頁第92頁第93頁第94頁第95頁第96頁第97頁第98頁第99頁第100頁第101頁第102頁第103頁第104頁第105頁第106頁第107頁第108頁第109頁第110頁第111頁第112頁第113頁第114頁第115頁第116頁第117頁第118頁第119頁第120頁第121頁第122頁第123頁第124頁第125頁第126頁第127頁第128頁第129頁第130頁第131頁第132頁第133頁第134頁第135頁第136頁第137頁第138頁第139頁第140頁第141頁第142頁第143頁第144頁第145頁第146頁第147頁第148頁第149頁第150頁第151頁第152頁第153頁第154頁第155頁第156頁第157頁第158頁第159頁第160頁第161頁第162頁第163頁第164頁第165頁第166頁第167頁第168頁第169頁第170頁第171頁第172頁第173頁第174頁第175頁第176頁第177頁第178頁第179頁第180頁第181頁第182頁第183頁第184頁第185頁第186頁第187頁第188頁第189頁第190頁第191頁第192頁第193頁第194頁第195頁第196頁第197頁第198頁第199頁第200頁第201頁第202頁第203頁第204頁第205頁第206頁第207頁第208頁第209頁第210頁第211頁第212頁第213頁第214頁第215頁第216頁第217頁第218頁第219頁第220頁第221頁第222頁第223頁第224頁第225頁第226頁第227頁第228頁第229頁第230頁第231頁第232頁第233頁第234頁第235頁第236頁第237頁第238頁第239頁第240頁第241頁第242頁第243頁第244頁第245頁第246頁第247頁第248頁第249頁第250頁第251頁第252頁第253頁第254頁第255頁第256頁第257頁第258頁第259頁第260頁第261頁第262頁第263頁第264頁第265頁第266頁第267頁第268頁第269頁第270頁第271頁第272頁第273頁第274頁第275頁第276頁第277頁第278頁第279頁第280頁第281頁第282頁第283頁第284頁第285頁第286頁第287頁第288頁第289頁第290頁第291頁第292頁第293頁第294頁第295頁第296頁第297頁第298頁第299頁第300頁第301頁第302頁第303頁第304頁第305頁第306頁第307頁第308頁第309頁第310頁第311頁第312頁第313頁第314頁第315頁第316頁第317頁第318頁第319頁第320頁第321頁第322頁第323頁第324頁第325頁第326頁第327頁第328頁第329頁第330頁第331頁第332頁第333頁第334頁第335頁第336頁
1997 Microchip Technology Inc.
DS30234D-page 81
PIC16C6X
EXAMPLE 10-2: PWM PERIOD AND DUTY
CYCLE CALCULATION
Desired PWM frequency is 78.125 kHz,
Fosc = 20 MHz
TMR2 prescale = 1
1/78.125 kHz = [(PR2) + 1] 4 1/20 MHz 1
12.8
μ
s
= [(PR2) + 1] 4 50 ns 1
PR2
= 63
Find the maximum resolution of the duty cycle that can
be used with a 78.125 kHz frequency and 20 MHz
oscillator:
1/78.125 kHz = 2
PWM
RESOLUTION
1/20 MHz 1
12.8
μ
s
= 2
PWM
RESOLUTION
50 ns 1
256
= 2
PWM
RESOLUTION
log(256)
= (PWM Resolution) log(2)
8.0
= PWM Resolution
At most, an 8-bit resolution duty cycle can be obtained
from a 78.125 kHz frequency and a 20 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-3 lists example PWM frequencies and resolu-
tions for Fosc = 20 MHz. The TMR2 prescaler and PR2
values are also shown.
10.3.3
SET-UP FOR PWM OPERATION
The following steps should be taken when configuring
the CCP module for PWM operation:
1.
Set the PWM period by writing to the PR2 regis-
ter.
2.
Set the PWM duty cycle by writing to the
CCPR1L register and CCP1CON<5:4> bits.
3.
Make the CCP1 pin an output by clearing the
TRISC<2> bit.
4.
Set the TMR2 prescale value and enable Timer2
by writing to T2CON.
5.
Configure the CCP1 module for PWM operation.
TABLE 10-3:
EXAMPLE PWM FREQUENCIES AND RESOLUTIONS AT 20 MHz
TABLE 10-4:
REGISTERS ASSOCIATED WITH TIMER1, CAPTURE AND COMPARE
PWM Frequency
1.22 kHz
16
0xFF
10
4.88 kHz
4
0xFF
10
19.53 kHz
1
0xFF
10
78.12 kHz
1
0x3F
8
156.3 kHz
1
0x1F
7
208.3 kHz
1
0x17
5.5
Timer Prescaler (1, 4, 16)
PR2 Value
Maximum Resolution (bits)
Add
Name
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
Value on:
POR,
BOR
0000 000x 0000 000u
Value on
all other
Resets
0Bh,8Bh
10Bh,18Bh
0Ch
0Dh
(4)
8Ch
8Dh
(4)
87h
0Eh
0Fh
10h
15h
16h
17h
1Bh
(4)
1Ch
(4)
1Dh
(4)
Legend:
x
= unknown,
u
= unchanged,
-
= unimplemented locations read as '0’. Shaded cells are not used in these modes.
Note 1:
These bits are associated with the USART module, which is implemented on the PIC16C63/R63/65/65A/R65/66/67 only.
2:
Bits PSPIE and PSPIF are reserved on the PIC16C62/62A/R62/63/R63/66, always maintain these bits clear.
3:
The PIR1<6> and PIE1<6> bits are reserved, always maintain these bits clear.
4:
These registers are associated with the CCP2 module, which is only implemented on the PIC16C63/R63/65/65A/R65/66/67.
INTCON
GIE
PEIE
T0IE
INTE
RBIE
T0IF
INTF
RBIF
PIR1
PIR2
PIE1
PIE2
TRISC
TMR1L
TMR1H
T1CON
CCPR1L
CCPR1H
CCP1CON
CCPR2L
CCPR2H
CCP2CON
PSPIF
(2)
PSPIE
(2)
PORTC Data Direction register
Holding register for the Least Significant Byte of the 16-bit TMR1 register
Holding register for the Most Significant Byte of the 16-bit TMR1 register
T1CKPS1 T1CKPS0 T1OSCEN T1SYNC TMR1CS TMR1ON
--00 0000 --uu uuuu
Capture/Compare/PWM1 (LSB)
Capture/Compare/PWM1 (MSB)
CCP1X
CCP1Y
CCP1M3 CCP1M2 CCP1M1 CCP1M0
--00 0000 --00 0000
Capture/Compare/PWM2 (LSB)
Capture/Compare/PWM2 (MSB)
CCP2X
CCP2Y
CCP2M3 CCP2M2 CCP2M1 CCP2M0
--00 0000 --00 0000
(3)
RCIF
(1)
RCIE
(1)
TXIF
(1)
TXIE
(1)
SSPIF
SSPIE
CCP1IF
CCP1IE TMR2IE TMR1IE
0000 0000 0000 0000
CCP2IE
---- ---0 ---- ---0
TMR2IF
TMR1IF
0000 0000 0000 0000
CCP2IF
---- ---0 ---- ---0
(3)
1111 1111 1111 1111
xxxx xxxx uuuu uuuu
xxxx xxxx uuuu uuuu
xxxx xxxx uuuu uuuu
xxxx xxxx uuuu uuuu
xxxx xxxx uuuu uuuu
xxxx xxxx uuuu uuuu
相關(guān)PDF資料
PDF描述
PIC16C62A 8-Bit CMOS Microcontrollers(每個I/O口有25mA驅(qū)動/吸收電流,22個I/O,2.5V的微控制器)
PIC16CR63 Using the 8-Bit Parallel Slave Port(每個I/O口有25mA驅(qū)動/吸收電流,1路捕捉/比較/PWM的微控制器)
PIC16CR64 Using the 8-Bit Parallel Slave Port(每個I/O口有25mA驅(qū)動/吸收電流,并行從動口,1路捕捉/比較/PWM的微控制器)
PIC16CR65 Using the 8-Bit Parallel Slave Port(每個I/O口有25mA驅(qū)動/吸收電流,并行從動口,2路捕捉/比較/PWM的微控制器)
pic16c65b 8-Bit OTP-Based Microcontroller Product Brief(8位CMOS微控制器)
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
PIC16C620/JW 功能描述:8位微控制器 -MCU .875KB 80 RAM 13 I/O RoHS:否 制造商:Silicon Labs 核心:8051 處理器系列:C8051F39x 數(shù)據(jù)總線寬度:8 bit 最大時鐘頻率:50 MHz 程序存儲器大小:16 KB 數(shù)據(jù) RAM 大小:1 KB 片上 ADC:Yes 工作電源電壓:1.8 V to 3.6 V 工作溫度范圍:- 40 C to + 105 C 封裝 / 箱體:QFN-20 安裝風(fēng)格:SMD/SMT
PIC16C620-04/P 功能描述:8位微控制器 -MCU .875KB 80 RAM 13 I/O RoHS:否 制造商:Silicon Labs 核心:8051 處理器系列:C8051F39x 數(shù)據(jù)總線寬度:8 bit 最大時鐘頻率:50 MHz 程序存儲器大小:16 KB 數(shù)據(jù) RAM 大小:1 KB 片上 ADC:Yes 工作電源電壓:1.8 V to 3.6 V 工作溫度范圍:- 40 C to + 105 C 封裝 / 箱體:QFN-20 安裝風(fēng)格:SMD/SMT
PIC16C620-04/P 制造商:Microchip Technology Inc 功能描述:IC 8BIT CMOS MCU 16C620 DIP18
PIC16C620-04/SO 功能描述:8位微控制器 -MCU .875KB 80 RAM 13 I/O RoHS:否 制造商:Silicon Labs 核心:8051 處理器系列:C8051F39x 數(shù)據(jù)總線寬度:8 bit 最大時鐘頻率:50 MHz 程序存儲器大小:16 KB 數(shù)據(jù) RAM 大小:1 KB 片上 ADC:Yes 工作電源電壓:1.8 V to 3.6 V 工作溫度范圍:- 40 C to + 105 C 封裝 / 箱體:QFN-20 安裝風(fēng)格:SMD/SMT
PIC16C620-04/SS 功能描述:8位微控制器 -MCU .875KB 80 RAM 13 I/O RoHS:否 制造商:Silicon Labs 核心:8051 處理器系列:C8051F39x 數(shù)據(jù)總線寬度:8 bit 最大時鐘頻率:50 MHz 程序存儲器大小:16 KB 數(shù)據(jù) RAM 大小:1 KB 片上 ADC:Yes 工作電源電壓:1.8 V to 3.6 V 工作溫度范圍:- 40 C to + 105 C 封裝 / 箱體:QFN-20 安裝風(fēng)格:SMD/SMT