EM78P5840N/41N/42N
8-Bit Microcontrollers
7.10.2 Relative Register Description
R5, Page 3 (PWMCON)
Bit 7
PWM2E
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
PWM1E
T2EN
T1EN
T2P1
T2P0
T1P1
T1P0
Bit 0 ~ Bit 1 (T1P0 ~ T1P1): TMR1 clock prescaler option bits
T1P1
T1P0
Prescaler
0
0
1
1
0
1
0
1
1:2 (Default)
1:8
1:32
1:64
Bit 2 ~ Bit 3 (T2P0 ~ T2P1): TMR2 clock prescaler option bits
T1P1
T1P0
Prescaler
0
0
1
1
0
1
0
1
1:2 (Default)
1:8
1:32
1:64
Bit 4 (T1EN): TMR1 enable bit
"0" : TMR1 is off (default value)
"1" : TMR1 is on
Bit 5 (T2EN): TMR2 enable bit
"0" : TMR2 is off (default value)
"1" : TMR2 is on
Bit 6 (PWM1E): PWM1 enable bit
"0" : WM1 is off (default value), and its related pin carries out the PC1
function
"1" : PWM1 is on, and its related pin is automatically set as output
Bit 7 (PWM2E): PWM2 enable bit
"0" : PWM2 is off (default value), and its related pin carries out the PC2
function
"1" : PWM2 is on, and its related pin is automatically set as output
R6 and R7, Page 3 (DT1: Duty Cycle of PWM1)
R71
R70
R67
R66
R65
R64
R63
R62
R61
R60
PWM1[9] PWM1[8] PWM1[7] PWM1[6] PWM1[5] PWM1[4] PWM1[3] PWM1[2] PWM1[1] PWM1[0]
A specified value keeps the PWM1 output to remain high until the value matches with
TMR1.
Product Specification (V1.0) 04.25.2006
(This specification is subject to change without further notice)
• 39