參數(shù)資料
型號: PIC12HV615
廠商: Microchip Technology Inc.
英文描述: 8-Pin Flash-Based, 8-Bit CMOS Microcontrollers
中文描述: 8引腳閃存的基礎(chǔ)上,8位CMOS微控制器
文件頁數(shù): 83/168頁
文件大?。?/td> 1347K
代理商: PIC12HV615
2006 Microchip Technology Inc.
Preliminary
DS41302A-page 81
PIC12F609/615/12HV609/615
10.3.1
PWM PERIOD
The PWM period is specified by the PR2 register of
Timer2. The PWM period can be calculated using the
formula of Equation 10-1.
EQUATION 10-1:
PWM PERIOD
When TMR2 is equal to PR2, the following three events
occur on the next increment cycle:
TMR2 is cleared
The CCP1 pin is set. (Exception: If the PWM duty
cycle = 0%, the pin will not be set.)
The PWM duty cycle is latched from CCPR1L into
CCPR1H.
10.3.2
PWM DUTY CYCLE
The PWM duty cycle is specified by writing a 10-bit
value to multiple registers: CCPR1L register and
DC1B<1:0> bits of the CCP1CON register. The
CCPR1L contains the eight MSbs and the DC1B<1:0>
bits of the CCP1CON register contain the two LSbs.
CCPR1L and DC1B<1:0> bits of the CCP1CON
register can be written to at any time. The duty cycle
value is not latched into CCPR1H until after the period
completes (i.e., a match between PR2 and TMR2
registers occurs). While using the PWM, the CCPR1H
register is read-only.
Equation 10-2 is used to calculate the PWM pulse
width.
Equation 10-3 is used to calculate the PWM duty cycle
ratio.
EQUATION 10-2:
PULSE WIDTH
EQUATION 10-3:
DUTY CYCLE RATIO
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.
The 8-bit timer TMR2 register is concatenated with
either the 2-bit internal system clock (F
OSC
), or 2 bits of
the prescaler, to create the 10-bit time base. The system
clock is used if the Timer2 prescaler is set to 1:1.
When the 10-bit time base matches the CCPR1H and
2-bit latch, then the CCP1 pin is cleared (see
Figure 10-3).
10.3.3
PWM RESOLUTION
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 10-4.
EQUATION 10-4:
PWM RESOLUTION
TABLE 10-4:
EXAMPLE PWM FREQUENCIES AND RESOLUTIONS (F
OSC
= 20 MHz)
TABLE 10-5:
EXAMPLE PWM FREQUENCIES AND RESOLUTIONS (F
OSC
= 8 MHz)
Note:
The Timer2 postscaler (see
Section 7.1
“Timer2 Operation”
) is not used in the
determination of the PWM frequency.
PWM Period
PR2
(
)
1
+
[
]
4
T
OSC
=
(TMR2 Prescale Value)
Note:
If the pulse width value is greater than the
period the assigned PWM pin(s) will
remain unchanged.
Pulse Width
CCPR1L:CCP1CON<5:4>
(
)
=
T
OSC
(TMR2 Prescale Value)
Duty Cycle Ratio
4 PR2
-CCPR1L:CCP1CON<5:4>
)
1
+
=
Resolution
log
1
+
)
]
log
2
( )
=
PWM Frequency
1.22 kHz
4.88 kHz
19.53 kHz
78.12 kHz
156.3 kHz
208.3 kHz
Timer Prescale (1, 4, 16)
PR2 Value
Maximum Resolution (bits)
16
4
1
1
1
1
0xFF
10
0xFF
10
0xFF
10
0x3F
8
0x1F
7
0x17
6.6
PWM Frequency
1.22 kHz
4.90 kHz
19.61 kHz
76.92 kHz
153.85 kHz
200.0 kHz
Timer Prescale (1, 4, 16)
PR2 Value
Maximum Resolution (bits)
16
0x65
8
4
1
1
1
1
0x65
8
0x65
8
0x19
6
0x0C
5
0x09
5
相關(guān)PDF資料
PDF描述
PIC16C505-04 14-Pin, 8-Bit CMOS Microcontroller
PIC16C505 14-Pin, 8-Bit CMOS Microcontroller(每個I/O口有25mA驅(qū)動/吸收電流,12個I/O口,帶WDT的微控制器)
PIC16C54C EPROM/ROM-Based 8-Bit CMOS Microcontroller(18引腳、12個I/O端口、512位EPROM/ROM的8位CMOS微控制器)
PIC16C54 EPROM/ROM-Based 8-Bit CMOS Microcontroller Series(每個I/O口有20mA吸收,25mA驅(qū)動,12個I/O,2.5V的微控制器)
PIC16CR54B EPROM/ROM-Based 8-Bit CMOS Microcontroller Series(每個I/O口有20mA吸收,25mA驅(qū)動,12個I/O,2.5V的微控制器)
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
PIC12HV615-E/MD 功能描述:8位微控制器 -MCU 2KB Flash 64 RAM 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 安裝風格:SMD/SMT
PIC12HV615-E/MF 功能描述:8位微控制器 -MCU 1.75KB Flash 64B RAM 6 I/O 8MHz INT OSC 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 安裝風格:SMD/SMT
PIC12HV615-E/MS 功能描述:8位微控制器 -MCU 2KB Flash 64 RAM 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 安裝風格:SMD/SMT
PIC12HV615-E/P 功能描述:8位微控制器 -MCU 2KB Flash 64 RAM 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 安裝風格:SMD/SMT
PIC12HV615-E/SN 功能描述:8位微控制器 -MCU 2KB Flash 64 RAM 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 安裝風格:SMD/SMT