ST62T18CB6 STMicroelectronics, ST62T18CB6 Datasheet - Page 43

no-image

ST62T18CB6

Manufacturer Part Number
ST62T18CB6
Description
8-bit Microcontrollers - MCU OTP EPROM 8K SPI/UAR
Manufacturer
STMicroelectronics
Datasheet

Specifications of ST62T18CB6

Core
ST6
Data Bus Width
8 bit
Maximum Clock Frequency
8 MHz
Program Memory Size
7948 B
Data Ram Size
192 B
On-chip Adc
Yes
Operating Supply Voltage
3 V to 6 V
Package / Case
PDIP-20
Mounting Style
Through Hole
A/d Bit Size
8 bit
A/d Channels Available
7
Data Rom Size
64 B
Interface Type
UART
Maximum Operating Temperature
+ 85 C
Minimum Operating Temperature
- 40 C
Number Of Programmable I/os
12
Number Of Timers
1
Program Memory Type
EPROM
Factory Pack Quantity
20
Supply Voltage - Max
6 V
Supply Voltage - Min
3.6 V

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
ST62T18CB6
Manufacturer:
ST
0
TIMER (Cont’d)
4.2.1 Timer Operating Modes
There are three operating modes, which are se-
lected by the TOUT and DOUT bits (see TSCR
register). These three modes correspond to the
two clocks which can be connected to the 7-bit
prescaler (f
the output mode.
4.2.1.1 Gated Mode
(TOUT = “0”, DOUT = “1”)
In this mode the prescaler is decremented by the
Timer clock input (f
signal on the TIMER pin is held high (allowing
pulse width measurement). This mode is selected
by clearing the TOUT bit in the TSCR register to
“0” (i.e. as input) and setting the DOUT bit to “1”.
4.2.1.2 Event Counter Mode
(TOUT = “0”, DOUT = “0”)
In this mode, the TIMER pin is the input clock of
the prescaler which is decremented on the rising
edge.
4.2.1.3 Output Mode
(TOUT = “1”, DOUT = data out)
The TIMER pin is connected to the DOUT latch,
hence the Timer prescaler is clocked by the pres-
caler clock input (f
Figure 26. Timer Working Principle
CLOCK
INT
0
÷ 12 or TIMER pin signal), and to
BIT0
BIT0
INT
INT
÷ 12).
÷ 12), but ONLY when the
1
BIT1
BIT1
2
BIT2
BIT2
7-BIT PRESCALER
8-1 MULTIPLEXER
8-BIT COUNTER
BIT3
3
BIT3
The user can select the desired prescaler division
ratio through the PS2, PS1, PS0 bits. When the
TCR count reaches 0, it sets the TMZ bit in the
TSCR. The TMZ bit can be tested under program
control to perform a timer function whenever it
goes high. The low-to-high TMZ bit transition is
used to latch the DOUT bit of the TSCR and trans-
fer it to the TIMER pin. This operating mode allows
external signal generation on the TIMER pin.
Table 14. Timer Operating Modes
4.2.2 Timer Interrupt
When the counter register decrements to zero with
the ETI (Enable Timer Interrupt) bit set to one, an
interrupt request is generated as described in the
Interrupt Chapter. When the counter decrements
to zero, the TMZ bit in the TSCR register is set to
one.
TOUT
BIT4
4
0
0
1
1
BIT4
DOUT
BIT5
0
1
0
1
5
BIT5
Input
Input
Output
Output
Timer Pin
BIT6
6
BIT6
BIT7
ST62T18C/E18C
Event Counter
Gated Input
Output “0”
Output “1”
Timer Function
7
VA00186
PS0
PS1
PS2
43/82
43

Related parts for ST62T18CB6