HT45RM03 Holtek Semiconductor, HT45RM03 Datasheet - Page 29

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
The Comparator enable/disable register, Comparator output pin enable/disable register and Comparator output flag
are shown below.
The Comparator can be used for stopping the PWM by PWWSP0 and PWMSP1 register, which are shown below. The
stopping PWM is used to clear the PWMCTRL bit to 0 .
OPA (Operation Amplifier)
There is one OPA in the device. This OPA can be used
for amplifier by user requirement. The OPAEN bits is
used as the enable or disable bits, if the OPAEN is
cleared to 0 , the OPA is disabled and power off to save
power consumption, the PB2/AN2/OPOUT, PB3/AN3/
OPVINN, PA0/OPVINP are all GPIO pins, if the OPAEN
is set to 1 , the OPA is enabled, the PB3/AN3/OPVINN
and PA0/OPVINP are OPA inverting and non-inverting
input pins, PB2/AN2/OPOUT is a OPA output pin, PB2,
PB3, PA0 output and pull-high resistor are disabled.
Rev. 1.00
PWMSP0
PWMSP1
COUTEN
CMPEN
Bit No.
0~3
4
5
6
7
0
1
1
COF0~COF3 Comparator input offset voltage cancellation control bits
PA3/COUT selection
0: PA3/COUT is as a GPIO pin
1: PA3/COUT is Comparator output, and the status of COUT can be read by reading the PA3 register.
Stopping the PWMand PWM using hardware selection. The stopping PWM method is to clear PWMCTRL
bit to 0 by hardware.
00: PWM module output can be stop by software control only
01: PWM module output can be stop by COUT falling edge
10: PWM module output can be stop by INT1 interrupt
11: PWM module output can be stop by COUT falling edge or by INT1 interrupt
COUTEN
CMPOP
CMPEN
COFM
Label
CRS
X
0
1
Comparator input offset voltage cancellation reference selection bit
1/0: select CVINP/CVINN as the reference input
Input offset voltage cancellation mode and comparator mode selection
1/0: input offset voltage cancellation mode/comparator mode
Comparator output; positive logic. This bit is read only.
Comparator enable/disable (1/0)
PA1, PA2, PA3 is GPIO
PA1, PA2 is Comparator input pin and PA3 is GPIO.
PA1, PA2 is Comparator input pin and PA3 is Comparator output pin.
PA3 can read the Comparator output status.
CMPC Register (Comparator Control Register)
Operational Amplifier Block Diagram
29
The OPA can be disabled or enabled by software con-
trol.
The OPVINP, OPVINN and OPOUT are pin-shared with
PA0, PB3/AN3 and PB2/AN2 respectively. Once the
OPA function is used, the internal registers related to
PA0, PB3 and PB2 cannot be used, and the I/O function
and pull-high resistor are disabled automatically. Soft-
ware instructions determine the OPA function to be
used.
PA1, PA2, PA3
Function
HT45RM03
January 11, 2007

Related parts for HT45RM03