T81L0006B TM Technology Inc., T81L0006B Datasheet - Page 19
![no-image](/images/no-image-200.jpg)
T81L0006B
Manufacturer Part Number
T81L0006B
Description
8-bit A/d Type Mcu
Manufacturer
TM Technology Inc.
Datasheet
1.T81L0006B.pdf
(23 pages)
tm
10.6 Pulsed Width Modulator (PWM)
The T81L0006A/B provides 2 channels 8 bits PWM output for peripheral. The frequency source of the PWM counter comes
from Fosc. Writing 1 to PWMC register enable bit will enable the PWM output function. PWMPS2:1:0 control bit determine
PWM output clock that range from Fosc/2 to Fosc/256. Each PWM output clock duty cycle can be programmed though set
PWM0 or PWM1 register.
PWM Register Control
PWMC1: PWM control register1
PWM1 register:
PWM2 register:
TM Technology Inc. reserves the right
to change products or specifications without notice.
Pwm1EN, Pwm2EN
PWMPS2:1:0 --- PWM dividers ratio
Set 16-bit PWM duty cycle. --- Duty= (PWM2, PWM1)/65536
Set PWM1’s duty cycle. --- Duty1= PWM1/256 or 16-bit PWM duty cycle value low byte.
Set PWM2’s duty cycle. --- Duty2= PWM2/256 or 16-bit PWM duty cycle value high byte.
PWMC2: PWM control register2 Mode
Fpwm= Fosc/PWMPS/256 while select 8-bit mode
Fpwm= Fosc/PWMPS/65536 while select 16-bit mode
PWMC1
PWMC2
PWM1
PWM2
PWM 16-bit mode or 8-bit mode selects : ‘0’= 8-bit mode, ‘1’= 16-bit mode
When select 16-bit mode, PWM2 register= PWM duty cycle value high byte.
PWM1 register= PWM duty cycle value low byte.
Note: 16-bit PWM just for PWM1 output
CH
TE
PS:2:1:0
PWM1, PWM2 Enable bit: 0-Disable, 1-Enable
000
001
010
011
100
101
110
111
Default
Default
When Enable bit=0, PWM output pin = High impedance.
0x00
0x00
0x00
0x00
Pwm2EN
B7: R/W
R/W
-
Pwm2PS2
B6: R/W
Dividers ratio Fpwm:Fosc
R/W
-
Pwm2PS1
B5: R/W
1:128
1:256
1:16
1:32
1:64
R/W
1:2
1:4
1:8
-
P. 19
Pwm2PS0
B4: R/W
R/W
-
Pwm1EN
B3: R/W
R/W
-
Pwm1PS2
B2: R/W
R/W
-
Publication Date: JAN. 2006
Pwm1PS1
B1: R/W
R/W
-
T81L0006A/B
Pwm1PS0
B0: R/W
Mode
R/W
R/W
Revsion : C