
AN442
APPLICATION NOTE
TRIAC & MICROCONTROLLERS: THE EASY CONNECTION
INTRODUCTION
The aim of this note is to show how to connect an ST triac and an ST microcontroller.
CONVENTIONAL SOLUTION
For many years the triac has been used to switch load on the AC mains and thanks to the low cost of microcontrollers (µC) this solution is widely used in the appliance market.
All the system use a buffer transistor between the output port of the microcontroller and the triac as shown
in the Figure 1.
Figure 1. Drive in the 1st and 4th quadrants
+V
DD
µC
0V
I
G
LINE
Because of the low sensivity of the triac in the 4th quadrant this type of drive is often unpractical, and is
replaced by the topology of the Figure 2.
Figure 2. Conventional drive in the 2nd and 3rd quadrants
+V
DD
G
A1
LINE
A2
µC
0V
I
G
To save cost, manufacturers want to use fewer and fewer components and of course want to remove the
buffer transistor, but a problem arises.
REV. 2
1/5April 2004

AN442 APPLICATION NOTE
Due to the low output current of the microcontroller, the triac had to be very sensitive and consequently
was not able to withstand for example the static dv/dt, and the commutation.
NEW ST SOLUTION
Two parameters have been improved:
– The sensitivity of the triacs.
– The output capability of the microcontrollers in terms of sunk current.
A microcontroller is now able to drive one standard triac or several sensitive triacs, without buffer transistors (see Figure 3).
Figure 3. An easy connection!
+V
DD
V
G
ST
TRIAC
G
A1
LINE
A2
ST
µC
I
G
R
G
V
OL
0V
Table 1 shows the output capability of a range of controllers and the sensitivity of the triacs.
Table 1. Triac and microcontroller characteristics
MICROCONTROLLERS &
OUTPUT CAPABILITIES
ST621x SERIES
ST622x SERIES
= 20mA
I
OL
at
V
= 1.3V
OL
I
=100mA
VSS
TRIAC SENSITIVITY
T & TW SERIES
Tx05 SERIES
S & SW SERIES
Tx10 SERIES
C SERIES
CW SERIES
B & BW SERIES
I
I
GT
I
GT
I
GT
I
GT
= 5mA
GT
= 10mA
= 25mA
= 35mA
= 50mA
GATE
PARAMETERS
V
=1.5V
G
at
= 10mA
I
G
=1.5V
V
G
at
I
= 20mA
G
=1.5V
V
G
at
I
= 50mA
G
= 2V
V
G
at
I
= 70mA
G
= 2V
V
G
at
I
= 100mA
G
CONNECTION
1 PORT/TRIAC
1 PORT/TRIAC
2 PORTS
IN PARALLEL/TRIAC
3 PORTS
IN PARALLEL/TRIAC
4 PORTS
IN PARALLEL/TRIAC
2/5

Example:
For +5V supply voltage and a LOGIC LEVEL triac with I
VDD VG– VOL–
R
G
------------------------------------------=
= 10 mA, we have:
GT
I
G
AN442 APPLICATION NOTE
Where: V
supply voltagage
DD
V
output low voltage of the microcontroller
OL
gate - anode 1 voltage at I
V
G
G
With: VDD = 5 V
= 1.3 V
V
OL
V
= 1.5 V
G
= 20 mA
I
G
Therefore: R
To take into account of the dispersion on R
= 110 Ω
G
, VDD and on the temperature variation, we generaly choose
G
about:
= 2 .I
I
G
t
> 20 µs
p
GT
(IGT = Specified gate trigger current)
Where tp is the pulse duration of gate current.
CONCLUSION
Use ST sensitive triacs driven by an ST microcontrollers and remove the buffer transistors.
This can be achieved thanks to the high current capability of our microcontrollers which are compatible
with our new sensitive triacs (T410, T, TW, S, SW series).
Furthemore a non sensitive triac can be driven by several output ports in parallel.
3/5

AN442 APPLICATION NOTE
REVISION HISTORY
Table 2. Revision History
Date Revision Description of Changes
May-1992 1 First Issue
5-Apr-2004 2 Stylesheet update. No content change.
4/5

AN442 APPLICATION NOTE
Information furnished is believed to be accurate and reliable. However, STMicroelectronics assumes no responsibility for the consequences
of use of such information nor for any infringement of patents or other rights of third parties which may result from its use. No license is granted
by implication or otherwise under any patent or patent rights of STMicroelectronics. Specifications mentioned in this publication are subject
to change without notice. This publication supersedes and replaces all information previously supplied. STMicroelectronics products are not
authorized for use as critical components in life support devices or systems without express written approval of STMicroelectronics.
The ST logo is a registered trademark of STMicroelectronics.
All other names are the property of their respective owners
© 2004 STMicroelectronics - All rights reserved
STMicroelectronics GROUP OF COMPANIES
Australia - Belgium - Brazil - Canada - China - Czech Republic - Finland - France - Germany - Hong Kong - India - Israel - Italy - Japan -
Malaysia - Malta - Morocco - Singapore - Spain - Sweden - Switzerland - United Kingdom - United States
www.st.com
5/5