ST52T440F3M6 STMicroelectronics, ST52T440F3M6 Datasheet - Page 48

no-image

ST52T440F3M6

Manufacturer Part Number
ST52T440F3M6
Description
MCU 8-Bit ST52 CISC 8KB EPROM 5V 20-Pin SO
Manufacturer
STMicroelectronics
Datasheet

Specifications of ST52T440F3M6

Package
20SO
Family Name
ST52
Maximum Speed
20 MHz
Ram Size
256 Byte
Program Memory Size
8 KB
Operating Supply Voltage
5 V
Data Bus Width
8 Bit
Program Memory Type
EPROM
Number Of Programmable I/os
13
On-chip Adc
6-chx12-bit
Operating Temperature
-40 to 85 °C
Number Of Timers
1

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
ST52T440F3M6
Manufacturer:
ST
0
ST52T400/T440/E440/T441
6.4 Alternate Functions.
Port A and B pins in ST52x400/440/441 are con-
figurable to be used with different functions (Alter-
nate Functions) related to the use of peripherals.
To configure a pin in Alternate Function the related
configuration registers must be set according to
the values shown in Tables - Port A - REG_CONF
4, - Port A - REG_CONF 12 and Analog Inputs
REG_CONF 14.
For example: if pin PA5/TCLK has to be used as
an external PWM/Timer Clock, REG_CONF4[(5)]
bit must be set to ‘1’.
When the signal is an input of an on-chip
peripheral, the related I/O pin has to be config-
ured in Input Mode.
When a pin of Port B is used as an Analog Input,
the related I/O pin is automatically set in threes-
tate. The analog multiplexer (controlled by the
Analog
switches the analog voltage present on the
selected pin to the common analog rail, which is
connected to the ADC input.
It is recommended that the voltage level or loading
on any port pin not be changed while conversion
is running. Furthermore, it is recommended not to
have clocking pins located close to a selected
analog pin.
6.5 I/O Port Configuration Registers
The I/O mode for each bit of the three ports are
selected by using Configuration Registers 4, 12,
13 and 11 (Table 6.1). The structure of these reg-
isters is illustrated in tables - Port A - REG_CONF
4, - Port A - REG_CONF 12, - Port B -
REG_CONF 13, Analog Inputs REG_CONF 14
and - Port C - REG_CONF 11. Each bit of the con-
figuration registers sets the I/O mode of the
related port pin.
Analog Comparator Inputs
Pins PB0-PB7 for ST52x440G/441G and PB0-
PB3 and PB7 in ST52x440F/441F can be config-
ured to be Analog Inputs by setting the related bit
in REG_CONF 14 to “1” (Table 6.7) and the
related bit in REG_CONF13 to “1” (Table 6.6).
These analog inputs are connected to the on chip
Analog Comparator.
If the BandGap Reference (BG) is needed as an
Output for ST52x440G/441G REG_CONF13[6]
must be set to “0” and REG_CONF14[6] to “1”.
48/94
Comparator
Configuration
Register)
Timer/PWM Alternate Functions
Pins of Port A can be configured to be I/Os of the
on-chip TIMER/PWM of ST52x400/440/441. The
configuration of these pins is performed by using
Configuration
REG_CONF12 (Tables - Port A - REG_CONF 4
and - Port A - REG_CONF 12).
If a pin has to be a TIMER Input (TSTRT, TCLK,
TRES) the related bit of REG_CONF4 must be set
to “1” and of REG_CONF12 must be set to “1”.
If, instead it must be a TIMER Output (TOUT,
TOUTN), REG_CONF12 related bit must be set to
“0” and the related bit of REG_CONF4 be set to
“0”.
TRIAC Driver Alternate Function
When using the on-chip TRIAC, to have the
TRIAC Output on pin PA0, bit REG_CONF12[0]
must be set to “0” and REG_CONF4[0] to “0”.
When a synchronization with the Mains voltage is
necessary, in case either the Phase Angle Partial-
ization or the Burst Modes is chosen, to have
MAIN1 and MAIN2 as Inputs on PortA, it is neces-
sary to set bits 1 and 2 of REG_CONF4 to “1”.
Table 6.4 - Port A - REG_CONF 4
(
*) Not available in ST52x400xx
Bit
0
1
2
3
4
5
6
7
X = 1 Pin set as Alternate Function Input
X = 0 Pin set as Digital Output
Name
Reset Configuration ‘1111’
D0
D1
D2
D3
D4
D5
D6
D7
Registers
Value
X
X
X
X
X
X
X
X
REG_CONF4
Pin Description
PA3/ACSTRT(*)
PA4/TSTRT
PA1/MAIN1
PA2/MAIN2
PA6/TRES
PA5/TCLK
PA7/INT
PA0
and

Related parts for ST52T440F3M6