em78p5830aa ELAN Microelectronics Corp, em78p5830aa Datasheet - Page 33

no-image

em78p5830aa

Manufacturer Part Number
em78p5830aa
Description
8-bit Micro-controller 8-bit Micro-controller
Manufacturer
ELAN Microelectronics Corp
Datasheet
VII.9 Code Option
__________________________________________________________________________________________________________________________________________________________________
* This specification is subject to be changed without notice.
VII.10 Dual sets of PWM (Pulse Width Modulation)
CODE Option Register
13
Bit10 ~ Bit11 : These 2 bits must clear to 0.
Bit 3(MER) : Memory error recover function
Bit 9: This bit must set to 1.
(1) Overview
0
1
If user enable memory error recovery function, MCU will improve effect from environment noise.
In PWM mode, both PWM1 and PWM2 pins produce up to a 10-bit resolution PWM output (see. Fig.12
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.13 depicts the relationships between a
period and a duty cycle.
12
disable memory error recover function
enable memory error recovery function
Fosc
1:2
1:8
1:32
1:64
Fosc
1:2
1:8
1:32
1:64
Data Bus
11
0
Fig.12 The Functional Block Diagram of the Dual PWMs
T1P0 T1P1 T1EN
T2P0 T2P1 T2EN
MUX
MUX
10
0
9
1
8
7
DT2H
DT2L
+
DT2H
DT2L
6
TMR1H + TMR1L
PRD1
TMR2H + TMR2L
PRD2
+
31
5
DL2H + DL2L
Comparator
Comparator
Comparator
Comparator
4
DL2H + DL2L
reset
reset
MER
latch
3
latch
2
Duty Cycle
Duty Cycle
Match
Match
R Q
S
Period
Match
R Q
S
Period
Match
To PWM1IF
8-bit Micro-controller
1
To PWM2IF
Data Bus
IOC6
IOC6
12/1/2004 V1.6
EM785830AA
0
PWM2
PWM1

Related parts for em78p5830aa