參數(shù)資料
型號(hào): VMX1C1020
廠商: Electronic Theatre Controls, Inc.
英文描述: Versa Mix 8051 Mixed-Signal MCU
中文描述: 反之亦然混合8051混合信號(hào)微控制器
文件頁(yè)數(shù): 36/80頁(yè)
文件大小: 3605K
代理商: VMX1C1020
VMX51C1020
_________________________________________________________________________________________________
www.ramtron.com
page 36 of 80
PWM Duty Cycle Calculation: 8-bit
PWM duty cycle CCU0 (%) = 100% x (256-CRCL)_
256
PWM duty cycle CCU1-3 (%) = 100% x (256-CCLx)_
256
PWM Duty Cycle Calculation: 16-bit
PWM duty cycle CCU0 (%) = 100% x 65536–(CRCH, CRCL)
(CRCH, CRCL)
PWM duty cycle CCU1-3 (%) = 100% x 65536–(CRCH, CRCL)
(CRCH, CRCL)
PWM Configuration Example
The following example shows how to configure
the Timer2 based PWM in 8-bit mode.
(…)
DIGPWREN = 0x80;
//ENABLE TIMER 2 MODULE
T2CON = 0x61;
//BIT 7 - Select 0=1/12, 1=1/24 of Fosc
//BIT 6 - T2 clk source: 0 = Presc,
1=clk/2
//BIT 5 - T2 size: 0=16-bit, 1=8-bit
//BIT 4,3 - T2 Reload mode:
//BIT 2 - T2 Compare mode
//BIT 1,0 - T2 input select: 01= input
derived from osc.
//W
HEN THE
PWM
IS CONFIGURED IN
16-
BIT FORMAT
,
THE
PWM
OUTPUT
FREQUENCY IS GIVEN BY
//
THE FOLLOWING EXPRESSION
:
// PWM Freq = [(FOSC/2)] / 65536
//
W
ITH A
14.7456MH
Z
C
RYSTAL
PWM
FREQUENCY
=
112.5H
Z
//When the PWM is configured in 8-bit its output freq = [(Fosc/2)] / 256
//U
SING A
14.7456MH
Z
C
RYSTAL
PWM
FREQUENCY
=
28.8
K
H
Z
CCEN = 0x0AA;
//Enable Compare on 4 PWM outputs
// In 16-bit PWM resolution both LSB and MSB of compare unit are used
//In 8-bit PWM Resolution, only the LSB of compare units are used
// and MSB is kept to 00h
CRCL = 0x0E6;
//PWM0 duty = [(256-CRCL)/256]
x100%
CRCH = 0x000;
//E6h => 10.1%
CCL1 = 0x0C0;
//PWM1 duty = [(256-CCL1)/256]
x100%
CCH1 = 0x000;
//C0h => 25%
CCL2 = 0x080;
//PWM2 duty = [(256-CCL2)/256] x100%
CCH2 = 0x000;
//80h => 50%
CCL3 = 0x033;
//PWM3 duty = [(256-CCL3)/256] x100%
CCH3 = 0x000;
//33h => 80%
P1PINCFG = 0x0F;
//Configure P1 LSQ as output to enable
PWM
(…)
Using the PWM as a D/A Converter
One of the popular uses of the PWM is to
perform D/A conversion by low pass filtering its’
modulated square wave output. The greater the
duty cycle of the square wave, the greater the
DC value is at the output of the low pass filter
and vice versa.
Variations in the duty cycle of the PWM when
filtered
can
therefore
waveforms.
generate
arbitrary
相關(guān)PDF資料
PDF描述
VMX51C900 Versa Mix 8051 MCU with LCD Controller and ADC
VN0104 N-Channel Enhancement-Mode Vertical DMOS FET(擊穿電壓40V,N溝道增強(qiáng)型垂直DMOS結(jié)構(gòu)場(chǎng)效應(yīng)管)
VN0104 N-Channel Enhancement-Mode Vertical DMOS FET
VN0104N3 N-Channel Enhancement-Mode Vertical DMOS FET
VN0109NE N-Channel Enhancement-Mode Vertical DMOS Power FETs Quad Array
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
VMX200USB 制造商:Behringer 功能描述:Pro Mixer VMX200USB Professional 2CH DJ Mixer w/USB Audio Interface 制造商:BEHRINGER 功能描述:TWO CHANNEL DJ MIXER WITH USB / VCA AND BPM COUNT
VMX2208 制造商:Panasonic Industrial Company 功能描述:WASHER
VMX2699 制造商:Panasonic Industrial Company 功能描述:WASHER
VMX300USB 制造商:Behringer 功能描述:Pro Mixer VMX300USB Professional 3CH DJ Mixer w/USB Audio Interface 制造商:Behringer 功能描述:Three Channel Professional DJ Mixer with USB Audio Interface 制造商:BEHRINGER 功能描述:COMPACT DJ MIXER 3 CHANNEL WITH USB OUTPUT
VMX3114 制造商:Panasonic Industrial Company 功能描述:WASHER