Holtek HT66F488 Manual page 77

A/d flash mcu with eeprom
Table of Contents

Advertisement

HT66F488/HT66F489
A/D Flash MCU with EEPROM
If the TM is in the Compare Match Output Mode then the TM output pin will be reset
to its initial condition, as specified by the STOC bit, when the STON bit changes from
low to high.
Bit 2 ~ 0
Unimplemented, read as "0"
STMC1 Register
Bit
7
�a�e
STM1
R/W
R/W
POR
Bit 7 ~ 6
STM1~STM0: Select STM Operating Mode
00: Compare Match Output Mode
01: Capture Input Mode
10: PWM Mode or Single Pulse Output Mode
11: Timer/Counter Mode
These bits setup the required operating mode for the TM. To ensure reliable operation
the TM should be switched off before any changes are made to the bits. In the Timer/
Counter Mode, the TM output pin control must be disabled.
STIO1~STIO0: Select STM output function
Bit 5 ~ 4
Compare Match Output Mode
00: No change
01: Output low
10: Output high
11: Toggle output
PWM Mode/Single Pulse Output Mode
00: PWM output inactive state
01: PWM output active state
10: PWM output
11: Single pulse output
Capture Input Mode
00: Input capture at rising edge of STP
01: Input capture at falling edge of STP
10: Input capture at falling/rising edge of STP
11: Input capture disabled
Timer/counter Mode
Unused
These two bits are used to determine how the TM output pin changes state when a
certain condition is reached. The function that these bits select depends upon in which
mode the TM is running.
In the Compare Match Output Mode, the STIO1~STIO0 bits determine how the TM
output pin changes state when a compare match occurs from the Comparator A. The
TM output pin can be setup to switch high, switch low or to toggle its present state
when a compare match occurs from the Comparator A. When the STIO1~STIO0 bits
are both zero, then no change will take place on the output. The initial value of the TM
output pin should be setup using the STOC bit. Note that the output level requested by
the STIO1~STIO0 bits must be different from the initial value setup using the STOC
bit otherwise no change will occur on the TM output pin when a compare match
occurs. After the TM output pin changes state it can be reset to its initial level by
changing the level of the STON bit from low to high.
Rev. 1.21
6
5
4
STM�
STIO1
STIO�
R/W
R/W
R/W
��
3
2
1
STOC
STPOL
STDPX
R/W
R/W
R/W
�ove��e� ��� 2�1�
0
STCCLR
R/W

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the HT66F488 and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Ht66f489

Table of Contents