HT45RM03 Holtek Semiconductor, HT45RM03 Datasheet - Page 18

no-image

HT45RM03

Manufacturer Part Number
HT45RM03
Description
Brushless DC Motor Type 8-Bit OTP MCU
Manufacturer
Holtek Semiconductor
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Company:
Part Number:
HT45RM03A
Quantity:
2 200
Company:
Part Number:
HT45RM03B
Quantity:
10 000
There is a PWM function shared with PC0~PC5. If the
PWM function is enabled, the PWM0~PWM2 and
PWM0~PWM2 signal will appear on PC0, PC2, PC4
and PC1, PC3, PC5 respectively (if PC0/PC1/PC2/PC3/
PC4/PC5 is operating in output mode).
Writing 1 to PC0/PC2/PC4 data register will enable
the PWM0/PWM1/PWM2 output function and writing
There is only one channel PWM and PWM output at a time. The PC.6 and PC.7 is to determine which PWM0/PWM0,
PWM1/PWM1 or PWM2/PWM2 appeared to the PC0/PC1, PC2/PC3 or PC4/PC5.
Note:
Rev. 1.00
PWMCEN
PC7, PC6
PWMEN
0, 0
0, 1
1, 0
1, 1
0
1
1
1
1
0
1
1
1
1
If PWMEN=0, the PWM function output is disable and the PC0, PC2 and PC4 are the GPIO.
If PWMCEN=0, the PWM function output is disable and the PC1, PC3 and PC5 are the GPIO.
The PWMEN and PWMCEN are independent to enable or disable the PWM and PWM Complement function.
If the PCC.x is 1 , the PC.x is input mode. x is from 0~5.
PC0/PWM0 is PWM output, if the PC0 is output
mode (PCC.0 = 0 ). The PC2 and PC4 are the
GPIO. Writing 1 to PC0 data register will enable
the PWM0 output function and writing 0 will force
the PC0 to remain at PWM0 output inactive state.
PC2/PWM1 is PWM output, if the PC2 is output
mode (PCC.2 = 0 ). The PC0 and PC4 are the
GPIO. Writing 1 to PC2 data register will enable
the PWM1 output function and writing 0 will force
the PC2 to remain at PWM1 output inactive state.
PC4/PWM2 is PWM output, if the PC4 is output
mode (PCC.4 = 0 ). The PC0 and PC2 are the
GPIO. Writing 1 to PC4 data register will enable
the PWM2 output function and writing 0 will force
the PC4 to remain at PWM2 output inactive state.
PC0/PWM0, PC2/PWM1 and PC4/PWM2 are
PWM output, if the PC0, PC2 and PC4 are output
mode (PCC.0, 2, 4 =
PC0/PC2/PC4 data register will enable the
PWM0/PWM1/PWM2 output function and writing
output inactive state.
0 will force the PC0/PC2/PC4 to remain at PWM
PC7
PC7
X
X
0
0
1
1
0
0
1
1
PWM (PWMEN=1)
PC6
PC6
PC0, PC2, PC4 Output Function
PC1, PC3, PC5 Output Function
0 ). Writing
X
X
0
1
0
1
0
1
0
1
18
1
Logical
Logical
Logical
Logical
Logical
Logical
PWM
PWM
PWM
PWM
tive state). Writing 1 to PC1/PC3/PC5 data register will
enable the PWM0/PWM1/PWM2 output function and
writing 0 will force the PC1/PC3/PC5 to remain at 0
inactive state). The I/O functions of PC0~PC5 are as
shown.
PC4
PC5
to
0 will force the PC0/PC2/PC4 to remain at 0 (inac-
PC1/PWM0 is PWM output, if the PC1 is output
mode (PCC.1 = 0 ). The PC3 and PC5 are the
GPIO. Writing 1 to PC1 data register will enable
the PWM0 output function and writing 0 will force
the PC1 to remain at PWM0 output inactive state.
PC3/PWM1 is PWM output, if the PC3 is output
mode (PCC.3 = 0 ). The PC1 and PC5 are the
GPIO. Writing 1 to PC3 data register will enable
the PWM1 output function and writing 0 will force
the PC3 to remain at PWM1 output inactive state.
PC5/PWM2 is PWM output, if the PC5 is output
mode (PCC.5 = 0 ). The PC1 and PC3 are the
GPIO. Writing 1 to PC5 data register will enable
the PWM2 output function and writing 0 will force
the PC5 to remain at PWM2 output inactive state.
PC1/PWM0, PC3/PWM1 and PC5/PWM2 are
PWM output, if the PC1, PC3 and PC5 are output
mode (PCC.1, 3, 5 =
PC1/PC3/PC5 data register will enable the
PWM0/PWM1/PWM2 output function and writing
output inactive state.
0 will force the PC1/PC3/PC5 to remain at PWM
PWM (PWMCEN=1)
Logical
Logical
Logical
Logical
Logical
Logical
PWM
PWM
PWM
PWM
PC2
PC3
0 ). Writing
HT45RM03
January 11, 2007
Logical
Logical
Logical
Logical
Logical
Logical
PWM
PWM
PWM
PWM
PC0
PC1
1
to

Related parts for HT45RM03