參數(shù)資料
型號(hào): EM785840P
廠商: ELAN Microelctronics Corp .
英文描述: 8-BIT MICRO-CONTROLLER
中文描述: 8位微控制器
文件頁(yè)數(shù): 31/45頁(yè)
文件大?。?/td> 461K
代理商: EM785840P
EM785840/5841/5842
8-bit Micro-controller
__________________________________________________________________________________________________________________________________________________________________
* This specification is subject to change without notice.
2004/11/10 V1.2
VII.10 PWM (Pulse Width Modulation)
(1) Overview
In PWM mode, both PWM1 and PWM2 pins produce up to a 10-bit resolution PWM output (see. Fig.10
for the functional block diagram). A PWM output has a period and a duty cycle, and it keeps the output in
high. The baud rate of the PWM is the inverse of the period. Fig.11 depicts the relationships between a
period and a duty cycle.
Data Bus
Data Bus
PRD1
Comparator
Comparator
TMR1H + TMR1L
S
R
Q
MUX
Duty Cycle
Match
Period
Match
PWM1
T1P0 T1P1 T1EN
IOC6
PRD2
Comparator
Comparator
S
R
Q
MUX
Duty Cycle
Match
Period
Match
PWM2
T2P0 T2P1 T2EN
IOC6
To PWM1IF
To PWM2IF
reset
reset
latch
latch
1:2
1:8
1:32
1:64
Fosc
1:2
1:8
1:32
1:64
Fosc
TMR2H + TMR2L
DT2H
+
DT2L
DT2H
+
DT2L
DL2H + DL2L
DL2H + DL2L
Fig.10 The Functional Block Diagram of the Dual PWMs
Period
Duty Cycle
DT1 = TMR1
PRD1 = TMR1
Fig.11 The Output Timing of the PWM
(2) Increment Timer Counter (TMRX: TMR1H/TWR1L or TMR2H/TWR2L)
TMRX are ten-bit clock counters with programmable prescalers. They are designed for the PWM module
as baud rate clock generators. TMRX can be read, written, and cleared at any reset conditions. If
employed, they can be turned down for power saving by setting T1EN bit to 0.
(3) PWM Period (PRDX : PRD1 or PRD2)
The PWM period is defined by writing to the PRDX register. When TMRX is equal to PRDX, the
following events occur on the next increment cycle:
相關(guān)PDF資料
PDF描述
EM785841 8-BIT MICRO-CONTROLLER
EM785841M 8-BIT MICRO-CONTROLLER
EM785841P 8-BIT MICRO-CONTROLLER
EM785842 8-BIT MICRO-CONTROLLER
EM785842M 8-BIT MICRO-CONTROLLER
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
EM785841 制造商:EMC 制造商全稱:ELAN Microelectronics Corp 功能描述:8-BIT MICRO-CONTROLLER
EM785841M 制造商:EMC 制造商全稱:ELAN Microelectronics Corp 功能描述:8-BIT MICRO-CONTROLLER
EM785841P 制造商:EMC 制造商全稱:ELAN Microelectronics Corp 功能描述:8-BIT MICRO-CONTROLLER
EM785842 制造商:EMC 制造商全稱:ELAN Microelectronics Corp 功能描述:8-BIT MICRO-CONTROLLER
EM785842M 制造商:EMC 制造商全稱:ELAN Microelectronics Corp 功能描述:8-BIT MICRO-CONTROLLER