HT46R12A Holtek Semiconductor Inc., HT46R12A Datasheet - Page 18

no-image

HT46R12A

Manufacturer Part Number
HT46R12A
Description
Ht46r12a -- A/d Type 8-bit Otp Mcu
Manufacturer
Holtek Semiconductor Inc.
Datasheet
Rev. 1.00
The CMP0EN and CMP1EN bits are used as the comparator enable or disable bits.
Any action causing PPG to stop such as a PPG timer overflow, a SW stop (P0ST=1
tions to occur:
For a start delay 0.5 (1/f
by either the rising or falling edge of the next clock(fsys) edge. After the PPG starts, the PPG output becomes active
and its prescaler begins to count as soon as first transition (falling or raising) of the system clock arrives. After the first
trigger has completed, the following clock edge trigger type is decided by the first one. For example, once the PPG
starts and if the next arriving clock transition is a falling edge, the PPG will be triggered by a falling edge until the PPG
stops and vice versa.
CMP0EN= 0 (comparator is disabled)
CMP1EN= 0 (comparator is disabled)
CMP0EN= 1 (comparator is enabled)
and the PC0/PC1/PC2 pull-high resistors are disabled automatically but PC0/PC1 will maintain their I/O function.
Software instructions determine if Comparator 0 is enabled or not.
CMP1EN= 1 (comparator is enabled)
and the PC3/PC4 pull-high resistors will be disabled automatically but PC4 will maintain its I/O function. Software
instructions determine if Comparator 1 is enabled or not.
Stop and clear the PPG prescaler (prescaler means prescaling counter, not P0PSC[2:0] in PPG0C)
The PPG timer will be reloaded
P0ST will cleared
PPGO will be inactive
SYS
), when the start SYNC with clock is selected, the PPG pulse output will be trgiggered
PC2 will be automatically set to be an input only, the PC2 output function
PC3 will be automatically set to be an input only, the PC3 output function
PPG0 Block Diagram
PC0/C0VIN-, PC1/C0VIN+, PC2/C0OUT are all GPIO pins
PC3/C1OUT, PC4/C1VIN+ are all GPIO.
18
0) will cause the following ac-
HT46R12A
August 3, 2007

Related parts for HT46R12A