APPLICATION NOTE PHONE REMOTE SYSTEM By Joel HULOUX, Patrice MOREL CONTENTS Page I INTRODUCTION. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 I.1 GENERAL PURPOSE. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 I.2 I.3 DESCRIPTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . IMPROVEMENTS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 2 II II.1 POWER LINE COMMUNICATION USING ST7537CFN . . . . . . . . . . . . . . . . . . . . . . . . C.S.M.A. TIMINGS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 2 II.2 II.3 SOFT CARRIER DETECTOR. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . IMPLEMENTATION ON ST6265 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 5 III PHONE REMOTE SYSTEM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 III.1 III.2 III.2.1 III.2.2 III.2.3 III.2.4 III.3 GENERAL DESCRIPTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . TELEPHONE LINE INTERFACE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Isolation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Input Impedance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Current Regulation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Hook-off Procedure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . MAINS FLOW . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 8 8 9 9 9 10 III.4 III.4.1 III.4.2 III.4.3 APPLICATION PROCEDURE. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Use . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 12 12 12 IV CONCLUSION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 V ANNEXE 1 : BILL OF MATERIALS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 VI ANNEXE 2 : SCHEMATICS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 AN488/0695 1/16 PHONE REMOTE SYSTEM APPLICATION NOTE I - INTRODUCTION I.1 - General Purpose II - POWER LINE COMMUNICATION USING ST7537CFN In the Application Note AN535, we described how to implement the basis of a power line network using the dedicatedmodem chip ST7537CFN. This network has been validated with ST7537 MASTER & SLAVE systems, and shows the feasibility of power line control. But Home automation systems allow more than switching a light, or changing the value of a digit. The possibilities of the network increase each time we connect a new device on it. For instance, adding a phone remote system will allow the remote (from anywhere on the planet) control of devices connected on the network only by calling your house. The phone remote system is now demonstrating this fact : a telephone interface that allows the householder to give instructions to appliances from outside. The ST7537 CFN power line modem complies with th e regulation described in the CENELEC EN50.065-.1 document, (so frequency, bit coding and other useful features are included in the chip). Nevertheless, the designer of an application has to take in account the power line communication specification when writing his protocol. For instance, access protocols are required for coexistence on the medium. I.2 - Description The phone remote system is a device connected to both telephone line and power line network. It is able to detect the phone ring, to hang up the line, and "converse" with the householder. This dialogue is done by using the DTMF (digital tone multifrequency) generated by the remote phone. To answer back, the phone remote system is beeping. Of course, this is a low cost choice and the system can be improved by using a voice synthesiser with on line help and so on... Communication between 2 units This is the simplest case of communication. Only two devices are able to send and receive packet on the network. One unit sends an order, the other one is replying with an acknowledge (see Figure 2). Figure 2 : Two Units on the Mains Mains Order Frame Phone Remote System Connected to the Power Line Network ST7537 PLM COM. Mains PHONE REMOTE SYSTEM REMOTE OBJECT 1 REMOTE OBJECT 2 In a classical electric installation, this device would have used one control cable for each controlled object. With power line control, you just have to plug it and the link is done with all devices controlled by mains network. I.3 - Improvements The part II describes several improvements done to the communication program explained in AN535.These modifications allow new features : - software carrier detect, - C.S.M.A. timings (Carrier Sense Multiple Access), and the use of communication modules in phone remote program. 2/16 AN488-01.EPS Telephone Line Unit T Ack. Frame ST7537 PLM COM. Unit R The unit T checks that the network is free for access thanks to the Carrier Detector, then it sends its frame and waits an acknowledge during a delay Twack. The unit R receive a frame and sends an acknowledge if R is the destination of the frame. R must send the ack. frame before the end of Twack. If it is not the case, or if T has not received the acknowledge, T tries again to send the order. Of course the frame format must allows error detection by the receiver (order checksum) an by the transmitter (checksum in ack. frame). In most of the case, communication occurs without error, and the both units must keep silent for a delay Tsilent in order to leave time for application control. To allow the two units to transmit, the unit T has to wait more than R, so R will be the first to take the channel if it needs to transmit. If the two units send a frame exactly at the same time, they will not receive ack. frame, so they will retry after a delay (Twack). Arandom value is added AN488-02.EPS Figure 1 : II.1 - C.S.M.A. Timings The following paragraphs give a concrete case of communication on power line network. In first, only 2 devices are connected to the network. Then, others devices are connected, and we will be confronted to a real network specification. PHONE REMOTE SYSTEM APPLICATION NOTE to make one of the two unit faster than the other one. The total delay is Tretrans. Communication with several units Figure 3 : Several Units on the Mains Mains 50/60Hz ST7537 PLM COM. ST7537 PLM COM. Unit 4 Unit 3 Unit 2 ST7537 PLM COM. Ack. Frame Unit 1 AN488-03.EPS Order Frame ST7537 PLM COM. With several units, the timing is the same, but even if a unit is not concerned with a communication, it has to get the frames in account for timing control. For instance, it has to reload its time to keep silent. And if several units have reload there time to keep silent at the end of a communication, the values reloaded must be different to avoid conflicts on the next communication. Again, a random value is added to make timing different. Here is a data timing chart of the transmitted signal of the different units (see Figure 4). Anyway, all units must send there message in less than two seconds. Figure 4 : Power Line Communication Data Timing Message to U2 Tretans U1 Twack Ack. U3 wants to transmit U2 Tsilent (Priority) Message to U5 U3 Tsilent (Priority) U4 wants to transmit Tsilent (Priority) Message U4 Ack. U5 Timing control All these timing are resumed in the Table 1. Table 1 : C.S.M.A. Timing Symbol Tmax TsilentR Twack Tretransmit TsilentT Description Time Total duration of transmission 2s Maximum duration of transmission after Starting 1s Length to wait from the end of a remote transmission to initiate a transmission 85 .. 125ms Acknowledge sent after 0 .. 30ms Retry transmitting 30 .. 72ms Duration between two transmissions of the same device Comment Feature included in ST7537CFN Al least 7 values 125ms 3/16 AN488-04.EPS Message PHONE REMOTE SYSTEM APPLICATION NOTE Range Priority 85 .. 94ms Highest priority 95 .. 104ms Standard priority 105 .. 115ms Lowest priority II.2 - Soft Carrier Detector We have seen that by programming the TxD to "0" in receive mode we increase the sensitivity of the ST7537 because there is no more clamping by CD. You will be able to have good communication with a receive signal of around 50dBV which means a dynamic of around 70dB. Becausewe want to get the benefit of the very good sensitivity of the ST7537 , we will program Txd to "0" in receive mode and create by soft a frame detector . We will use the CD signal as mentioned by CENELEC only when we want to transmit a frame . Different software frame detectors can be implemented depending of the resources of your microcontroller. You can program your microcon- 4/16 troller to go in receive frame when it received the expected byte. RxD PREAMBLE RANDOM DATAS EXPECTED BYTE FRAME AN488-05.EPS Figure 5 : Rxd Data Timing So the preamble is for demodulator training (when you start a communication the 3 first bits are lost by the receiver) and when you will match with expected byte the micro-controller will go in receive frame routine. On the ST6 microcontroller we have implemented the following frame detector. Figure 6 : Preamble Detector RxD RANDOM DATAS "1" FFh DATA FRAME We put Txd = " 1" on the transmitter for around 4ms (for demodulator training) and after we send in asynchronousmode FFh following by the complete frame. On the receiver , we check that we have RxD equal to "1" for at least 7ms (we are looking for FFh), then we go in receive and we will have frame synchronisation on the first start bit of the data. We did a trial in our lab with this system during 2 hours without having the ST6 going in frame receive routine on bad datas due to noise signal. AN488-06.EPS In order to implement these timing, an easy way is to use a single timer and several registers corresponding to the different delays you want to count. The timer will decrease the registers at each overflow, and the counters are "launched" by loading a value in the corresponding register. This access protocol allows an additional network priority: if you allow unit 1 (U1) to transmit before unit 2 (U2), then U1 will always sends its messages before U2, and so will have a highest network priority. By choosing the range of TsilentR of a unit, you will then choose its priority. Table 2 : Priority According to TsilentR PHONE REMOTE SYSTEM APPLICATION NOTE II.3- Implementation on ST6265 The C.S.M.A. (Carrier Sense Multiple Access) needs a Timer for its implementation. But the ST6265 timer 1 is already used for bit time and software carrier detect. Furthermore, sometimes the timer has several functions at the same time, so the timer programming becomes very complicated. In order to simplify this programming, we have implemented a single time delay corresponding to bit time (f = 1200Hz). So for each mode there is a counter corresponding to a delay. The counters are incremented (or decremented) in the timer interrupt routine while they are cleared (or affected with values) in main program. For C.S.M.A. specifications, we use two counters : - Xmit_count : This is the delay before retransmitting, - Rmit_count : This is the delay before transmitting after a reception. These counters are decremented in Timer 1 interrupt routine and flags are set when they become null. These flags are allowing the sending of a frame. Acknowledge frames are not concerned with these timing. Figure 7 : Sending a Frame After C.S.M.A. Delays Figure 8 : Timer 1 Flow Chart The timer will allow the sending of a frame after C.S.M.A. delays (see Figure 7). With this way of programming, the places where counters are loaded are very significant (see Figure 8) : - Xmit_count is loaded at the end of the message sending procedure in order to wait an acknowledge (30ms) and at the end of the reception of a good acknowledge (time between two transmissions of the same device : 125ms), - Rmit_count is loaded at the end of a reception with a random value (time between two transmission of different devices : 85 to 115ms). SEND_FRAM 2 TIMER 1 RECEIPT_FLAG SET ? 3 RxD HIGH ? Yes No 4 INC SOFT CD COUNTER No 4 INC SOFT CD COUNTER XMIT_FLAG SET ? 11 PREAMBLE DETECTED Yes Yes No Yes No 10 SET XMIT FLAG Yes 6 XMIT COUNTER = 0 12 SET RECEIVE FLAG RMIT_FLAG SET ? 7 DEC RMIT COUNTER SEND_TRAM 9 SET RMIT FLAG Yes 8 RMIT COUNTER = 0 No AN488-07.EPS RET AN488-08.EPS RETI 5/16 PHONE REMOTE SYSTEM APPLICATION NOTE III - PHONE REMOTE SYSTEM III.1 - General Description vide remote control. The Figure 10 propose these functions. The phone remote system is using the ST7537CFN chip and its line interface for power line communication (see Figure 9). The control unit is ST6265 microcontroller (SGS-THOMSON) that has several functions. The telephone interface is described in further detail in next paragraph. The MCU mains functions are : - detect a ring, - take the line and hang up, - decode DTMF code, - make some "beep", - control the modem chip, - display its status (leds for instance). These functions are the minimum required to pro- Figure 9 : Block Diagram Telephone Line TELEPHONE INTERFACE MCU ST5265 MAINS INTERFACE : ST7537CFN AN488-09.EPS P.L.M. COMMUNICATION WITH Figure 10 : ST6265 Application /CD OSI A7 A6 A5 A4 A3 A0 VDD VSS A1 A2 OSO RES NMI C4 C3 C2 C1 B7 %2 Push Button C0 /WD MCLK RSTO Rx/Tx TxD RxD ST7537CFN + POWER LINE INTERFACE DTMF DECODER 6/16 SOUND GENERATION HOOK-OFF RING DETECT AN488-10.EPS Q2 Q1 VCC B4 STD B6 B3 Q4 B5 B2 Q3 TES B1 B0 ST6265 PHONE REMOTE SYSTEM APPLICATION NOTE ST7537 interface The ST6265 is directly connected to ST7537, excepted the clock that must be divided by a factor 2 (ST6265 is validated at 8MHz max. and ST7537 provides a 11MHz clock signal). For further details, refer to AN535. Ring Detect An opto-transistor is used to detect the ring signal on the line. So the system is isolated from the line and the microcontroller receive a 0 to 5V signal. Figure 12 : Ring Detect Schematic Hook-off The hook-off system must be able to take the line. A relay connected to the two wires of the telephone line complies with all regulations. See telephone interface part for more information. RING DETECT LINE AN488-12.EPS Figure 11 : Hook-off Schematic For example, this is what appears on ring detect pin with a French standard line (see Figure 13). HOOK-OFF LINE PHONE LINE 2 AN488-11.EPS LINE 1 The first line is the ring detect signal which is zoomed on the second line. On French lines, the ring is about 1.5 second and the silence is about 3.5 second. That means a ring period of 5 seconds. AN488-13.TIF Figure 13 : Ring Detect Signal & Ring Detect Signal Zoomed 7/16 PHONE REMOTE SYSTEM APPLICATION NOTE Sound Generation Sound generation allows reply from the system. MCU just sends square signal that makes a beep. When receiving DTMF code, this IC chip is generating the following signal (see Figure 16). Figure 14 : Sound Generation Schematic III.2 - Telephone Line Interface VCC SOUND GENERATOR AN488-14.EPS SIGNAL 1 The line interface must verify regulation of system connected to telephone line, that's why it is described in detail here. Line interface input impedance and current consumption has been adjusted. In the following schematic, the transformer accept continuous current and current consumption is done by a resistor and a capacitor in parallel. Figure 17 : Telephone Line Interface DTMF Decoder Users send orders with DTMF code. These codes are decoded with a DTMF receiver LC7385 (SANYO). It is configured in single ended input. It has a dynamic range input of 29dBM. W1 RELAY SIGNAL 1 SIGNAL 2 V CC Ri V DD 18 2 IN- ST/GT 17 3 GS EST 16 4 V REF STD 15 5 B/H Q4 14 6 PD Q3 13 7 OSC1 Q2 12 8 OSC2 Q1 11 9 V SS III.2.1- Isolation To MCU AN488-15.EPS SIGNAL 2 1 IN+ AN488-17.EPS Figure 15 : Single Ended Input Configuration TOE 10 As the phone remote system is connected to the telephone line, it must be isolated from high voltages that may occurs on it. There are two connections to the line : - the ring detect interface is isolated with an optotransistor, - the DTMF & sound generation interface isolation is made by a transformer and a voltage limitation by zener diodes. Furthermore, a transil diode between the two line wires limits the input voltage. Figure 16 : DTMF Receiver Timing Diagram DTMF Input Tone #n Tone #n+1 Decoded tone #n Datas Decoded tone #n+1 T1 8/16 T2 T1 = 40ms T2 = 4.5s AN488-16.EPS StD PHONE REMOTE SYSTEM APPLICATION NOTE III.2.2 - Input Impedance The input impedance has been adjusted by changing RI value (see Figure 17) with a Wheastone's bridge method explained in the Figure 18. Figure 19 : Error Voltage Versus Ri Figure 18 : Wheastone Bridge 70 u (mV) 80 60 R = 600 u REMOTE R alpha = 20 log R e is generated by a HP3325B generator and u is read on a Fluke 45 controller. We made e scanning frequency from 300 to 4000Hz. The maximum values for u are shown in the Table 3. Table 3 : Error Voltage versus Ri Ri () 200 275 300 u (mV) 69 44 40 Ri () 325 350 375 50 e 2u AN488-18.EPS SYSTEM V e e = 1000mV u (mV) 40 41 45 Ri () 400 500 600 u (mV) 47 63 75 Ri has been fixed at 300. That mean an adapting coefficient (alpha) : 1 alpha = 20 log = 21dBm 2 0.04 French standard specifies a value superior to 14dBm. 40 R () 30 200 300 400 500 600 AN488-19.EPS PHONE R III.2.3 - Current Regulation Line current regulation is not needed in several countries. For these countries, a strap allows to disable current regulation which is done by a CTP resistor. III.2.4 - Hook-off Procedure When taking the line, the system must care of the ring train. If it takes the line when phone is ringing, the relay will switch a voltage superior to 70 Volts. To avoid this, the best way is to wait a silence (no ring). The phone remote system is waiting the end of a ring to take the line, as shown in the Figure 20. The first line is the relay command and the second line is the ring signal. AN488-20.TIF Figure 20 : Hook-off Between Two Rings 9/16 PHONE REMOTE SYSTEM APPLICATION NOTE III.3 - Mains Flow The phone remote system has a very simple progress. It only has to wait after a ring, count for a pre-defined number of rings, take the line, ask for a password, and then send the user's orders on the power line network (see Figure 21). For security reasons, the user has only three tries to enter his password. If this operation is successful, he is allowed to send orders, otherwise the system hangs up (see Figures 22 and 23). Figure 21 : Phone Program Main Flow Figure 22 : Password Dialogue Password Dialog Telephone call Enter First Code Wait 3 rings Enter Second Code Hold the line Enter Third Code Password Dialog Enter Fourth Code Bad password Good password Order(s) Dialog 10/16 Yes No ret AN488-22.EPS reti Third Trie ? Set good_pswd Flag Hang-up AN488-21.EPS Hang-up Good Password ? PHONE REMOTE SYSTEM APPLICATION NOTE Figure 23 : Orders Dialogue Order(s) Dialog Get Objet Address Time_out Get Order ret Time_out Phone Order Execute Order Answer to User AN488-23.EPS Send Order 11/16 PHONE REMOTE SYSTEM APPLICATION NOTE III.4 - Application Procedure This part describes installation and utilisation of the phone remote system. phone keyboard. Only DTMF phones are supported. The initial value of the code is 0000, but of course you can change it. If the code entered is the good one, you are allowed to give orders. Otherwise, you have two other attempts. III.4.1 - Installation The phone remote system needs to be connected to the mains and to the telephone line. Connecting to mains : Before connecting the phone remote system to mains, verify that the selected voltage is the same as your mains installation. The default voltage is 220 Volts/50Hz. Connecting to telephone line : The telephone line connector is a RJ11 type. This connector is wired according to French specifications. Enter Orders An order is an object address (two digits), an application number (one digit) and a value (one digit). After you have entered the objet address, you hear three beeps (or you have to retry). Then you enter the application number, and you hear three more beeps. At last, you enter the application value. If you hear three beeps, that means the message has been sent and that an acknowledge has been received. Then you are allowed to send an other order. Figure 24 : RJ11 Connector 3 4 5 Figure 25 : Address Format 6 1 : Unused 2 : Phone 3 : Line 4 : Line 5 : Phone 6 : Unused III.4.2 - Description The phone remote system owns several switches and LEDs that indicate status and allow the configuration of parameters as number of rings, confidential code, ... Table 4 : Parts Description Part Switch Mini switch Description User for switch the device ON/OFF User to select the delay before hook-off : 3 or 5 rings Push button User to reinitialize the status LEDs (single push) or to reinitialze the protection code (3 seconds push) Red LED (L1) Violation LED (wrong code) Green LED (L3) Hook-off LED Yellow LED (L4) Ring LED Orange LED (L2) Bad power line network address : no acknowledge III.4.3 - Use Enter Confidential Code When calling the phone remote system, you have to wait three or five rings. Then the system hooks off and beeps three times. You have twenty seconds to enter the confidential code by using your 12/16 Address Appli. Number Appli. Value 2 digits 3 beeps 1 digit 3 beeps 1 digit 3 beeps The slave sytems have address values from 00 to15. For these systems the application number select the dimmer (number 1) or the digit (number 2). The value is the number diplayed on the digit, or the light intensity. For instance : - "15,2,0" will display 0 on the slave system wich address is 15, - "13,1,9" will switch the light on slave system number 13 on. There are special orders for phone control : - if you enter "99,1", then the system will beep you the confidential code. If the code is 3456, you will hear 3 beeps then four, then five and then six beeps, - if you enter "99,2", and four digits, these four digits will be the new confidential code to use for further call. Table 5 : Allowed Orders Enter XX,Y,Z 99,1 99,2,XXXX Values 00 XX 15 0 Z9 Action Y = 1 Light intensity = Z Y = 2 Display value = Z Beeps the confidential code 0000 XXXX 9999 New value for confidential code AN488-25.EPS 2 AN488-24.EPS 1 PHONE REMOTE SYSTEM APPLICATION NOTE Local Configuration The yellow LED is lighting when "the phone is ringing". After 3 or 5 rings (depending on miniswitch), the system takes the line, and the green LED remains on during all the phone dialogue. If three bad codes are sent, the red LED will switch on. If a power line communication error occurs, the Orange LED will light. The red and the orange LED will be left on, so a single push on the push-button will switch these LED off. If you push on the push-button for more than 3 seconds, the confidential code will be changed to 0000. The confidentialcode is stocked in EEPROM and will remains even if you disconnect mains. IV - CONCLUSION The phone remote system increases the facilities offered by your automation network. With this sys- tem you can send orders by using DTMF code. By using a memory phone or a pocket dialler, you would be able to send orders only by choosing the system you want to talk to. For instance, you push the button called "heating on" and the order is immediately sent to the heater. Furthermore, you could select an other temperature for the heating system, or ask for the temperature in any room of your house. These improvements are possible by adding a voice generator (SGS-THOMSON has dedicated voice chips) and if temperature sensor and heater are connected to the network. The phone remote system detailed in this note has not all these facilities, but it is a very low cost application with only few components and low cost choice for MCU and phone interface. The ST7537 is providing the power line communication and a hardware watchdog, while leaving resources for a low cost microcontroller. 13/16 PHONE REMOTE SYSTEM APPLICATION NOTE V - ANNEXE 1 : BILL OF MATERIALS Designation BP1 C1 C2 C3 C4 C5 C6 C7 C8 C9 C10 C11 C12 C13 C14 C15 C16 C17 C18 C19 C20 C22 C23 C24 C25 C26 C27 C28 D1 D2 D3 D4 D5 D6 D7 D8 D9 D10 D11 G1 IC1 IC2 IC3 IC4 IC5 IC6 IC8 K1 LD1 LD2 14/16 Value BP 1mF 22pF 22pF 6.8nF 1F 100nF 100nF 100nF 100nF 2.2F 2.2F 100nF 10F 100nF 10F 1000F 100nF 100nF 1mF 10F 100nF 2.2mF 100nF 100nF 100nF 100nF 470nF Diode Diode 1N4004 1N4004 1N4004 1N4004 1N4148 ZEN.4.7V ZEN.4.7V ZEN.15V ZEN.15V GEMOV ST7537 ST62E65 LM7805 74LS74 LM7810 LC6385 4N36 RELAY_DPDT LED LED Package BP CAPC4 CAPD4 CAPD4 CAPD4 CAPC4 CAPD4 CAPD4 CAPD4 CAPD4 CAPC4 CAPC4 CAPD4 CAPC4 CAPD4 CAPC4 CAP12 CAPD4 CAPD4 CAPC4 CAPC4 CAPD4 CAPC4 CAPD4 CAPD4 CAPD4 CAPD4 CAPD4 DIODE TRANSIL DIDB8 DIDB8 DIDB8 DIDB8 DIDA8 DIDA8 DIDA8 DIDA8 DIDA8 GEMOV ST7537 ST62E65 BTO220 DIL14 BTO220 DIL18 DIL6 RELAY LED LED Designation LD3 LD4 P1 P2 Q1 Q2 Q3 Q4 Q5 Q6 Q7 Q8 R1 R2 R3 R4 R5 R6 R7 R8 R9 R10 R11 R12 R13 R14 R15 R16 R17 R18 R19 R20 R21 R22 R23 R24 R25 R26 R27 R28 R29 SW1 SW2 SW3 TR1 TR2 TR3 W2 XT1 XT2 Value LED_JAUNE LED_VERTE ALIM220V RJ11 2N2222 2N2222 2N2907 2N2222 2N2907 2N2907 BC547 BC547 1m 1k 2.2 2.2 2.2 47k 180 1k 47k 2.2 180 2.2 4.7k 4.7k 220 220 470 3W 1.5k 1W 300 100k 100k 560 2.2k 4.7k 300k 220 4.7k 10k 100k MINI_DIP COMMUT MINI_DIP TOKO UI30X10.5 TR3 STRAP_3PTS CRYSTAL 3.57945MHz Package LED LED ALIM220V RJ11 BTO922 BTO922 BTO5 BTO922 BTO5 BTO5 BTO5 BTO5 RES8 RES8 RES8 RES8 RES8 RES8 RES8 RES8 RES8 RES8 RES8 RES8 RES8 RES8 RES8 RES8 RES14 RES12 RES8 RES8 RES8 RES8 RES8 RES8 RES8 RES8 RES8 RES8 RES8 SMINI COMMUT MINI TOKO UI30X10.5 TRANSFO CECLA STRAP CRYSTAL HC49U BP BP1 2 R13 4.7k 15 PA3 A3 4 PB2 5 PB3 6 PB4 B2 B3 B4 LD1 LED +5V R15 220 +5V R16 220 +5V VDD 11 9 PB7 8 PB6 LD2 LED AN488-26.EPS B7 2 PB1 B1 7 PB5 1 PB0 B0 19 PA7 18 PA6 17 PA5 16 PA4 14 PA2 13 PA1 10 PA0 A2 MINI DIP SW1 1 R14 4.7k 2 C17 100nF 1 VSS 12 IC2 ST62E65 OSCIN 20 OSCOUT 21 PC4 24 PC3 25 PC2 26 PC1 27 PC0 28 NM1 23 OAOAO 22 1 2 1 C18 100nF 2 IC4 1 1 C14 100nF 2 +5V 2 1 2 2 1 C9 100nF C6 100nF GND 2 IN 1 2 1 2 2 R2 1k R9 47k GND 2 IN 1 IC5 LM7810 R6 47k R8 1k 3 OUT C13 10F 16V +10V C3 22pF XTAL2 17 TEST4 13 TEST3 12 TEST2 11 TEST1 10 PABC 9 PABC/ 8 AT0 7 PAFB 6 C2 22pF 1 1 C12 100nF 2 1 2 1 XT1 IC1 ST7537 AVSS DVSS XTAL1 15 28 16 25 DV CC 24 RSTO 23 RXD 22 TXD 21 CD/ 20 RX/TX/ 19 WD/ 18 MCLK 1 VCM 3 OUT C10 2.2F C11 2.2F +10V 14 27 26 2 5 AVDD DVDD DEM1 IF0 TXF1 RA1 3 C7 100nF C8 100nF IC3 LM7805 1 2 +5V C15 10F 16V +5V C20 10F 2 +5V +5V D 12 IC4B 74LS74 8 NCLK 11 CL 13 9 Q 10 PR +5V D 2 IC4A 74LS74 CLK 3 6 NCL 1 5 Q 4 PR 1 1 2 2 1 2 2 2 D5 D4 D3 D1 1 Q3 2N2907 3 1 2 R4 2.2 1 R10 2.2 3 Q4 2N2222 1 D6 4 x 1N4004 C16 1000F 25V 3 Q2 2N2222 1 R7 180 R5 2.2 3 Q1 2N2222 1 1 Q5 2N2907 3 R12 2.2 R11 180 1 Q6 2N2907 3 1 C22 100nF 2 2 2 2 2 1 2 3 6 4 7 1 2 C1 1mF MKT 1 2 N 2 SW2 Mains Switch Phase P1 4 110V Neutral 3 E 3 C19 1mF MKT 5 220V UI30x10.5 16 14 12 P 1 TR1 1 110V 3 2 10 TR2 1 C4 1 6.8nF NPO 2 R3 2.2 C5 1F R1 1M MINI DIP SW3 2 P1B 3 P1C 1 P1A PHONE REMOTE SYSTEM APPLICATION NOTE VI - ANNEXE 2 : SCHEMATICS 15/16 PHONE REMOTE SYSTEM APPLICATION NOTE G1 GEMOV 3 2 P2A 5 P2C 3 2 TR 3 LINE 1 2 2 1 3 2 4 Transfo. +5 V 3 D7 R26 220 1 N 4 1 48 2 Q8 1 1 2 Z EN.4.7V TOE 10 1 C25 2 100nF 2 IN- R21 100k R19 300 +5V LC 7 3 8 6 1 IN+ D8 ST/GT 1 7 R25 300k 3 GS R22 560 EST 16 D9 XT 2 ZEN.4. 7 V 3.57945MHz CECLA RelayDPDT IC 6 4 VREF C24 100nF R20 100k 1 2 C23 2.2mF 250V K1 P2D 4 R17 470 3W R18 1.5k 1W PHONE P2B 2 D2 2 W2 1 1 1 1 2 R27 4.7k 7 O SC1 STD 15 B4 Q 1 11 B0 Q 2 12 B1 5 B/H Q 3 13 B2 6 PD Q 4 14 B3 8 OSC 2 VDD 18 BC547 VSS 9 1 1 LD3 D1 0 D11 ZEN. 1 5 V ZEN. 1 5V 2 1 1 C28 470nF 250V 1 R28 10k Q7 R29 100k BC547 3 +5 V 2 5 LD4 LED VERTE 1 2 C2 6 100nF 1 R24 4.7k +5V 2 B7 1 R23 2.2k 2 C27 100nF IC8 4N36 4 2 A2 A3 Information furnished is believed to be accurate and reliable. However, SGS-THOMSON Microelectronics 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 licence is granted by implication or otherwise under any patent or patent rights of SGS-THOMSON Microelectronics. Specifications mentioned in this publication are subject to change without noti ce. This publication supersedes and replaces all information previously supplied. SGS-THOMSON Microelectronics products are not authorized for use as critical components in life support devices or systems without express written approval of SGS-THOMSON Microelectronics. 1995 SGS-THOMSON Microelectronics - All Rights Reserved Purchase of I2C Components of SGS-THOMSON Microelectronics, conveys a license under the Philips I2C Patent. Rights to use these components in a I2C system, is granted provided that the system confo rms to the I2C Standard Specifications as defined by Philips. SGS-THOMSON Microelectronics GROUP OF COMPANIES Australia - Brazil - China - France - Germany - Hong Kong - Italy - Japan - Korea - Malaysia - Malta - Morocco The Netherlands - Singapore - Spain - Sweden - Switzerland - Taiwan - Thailand - United Kingdom - U.S.A. 16/16 AN488-27.EPS +5 V L ED J AU NE 2