mandriva
Newbie level 4
Hi My Dear Friends,
I am designing a telephone interface. I have used an npn optocoupler in my ring detector circuit. I have connected telephone's red and green wires to pin 1 and 2 of optocoupler through some elements such as capacitors, resistors and diodes. Then I have connected emitter pin of optocoupler to ground of +5V power supply and I am using collector pin as the output. Now when telephone line starts ringing the output wire (connected to collector) continuously raises to -2.7V for 1 second and drops for 4 seconds. Now I wish to connect this to a micro-controller wgich needs to receive V+ to detect it as logical 1 and the output wire has V-. As I know from +2.5V to +5V range is detected as logical 1 but not -2.7V. Right now what I need is to change polarity the output from negative to positive in orde to get +2.7V which can be detected as logical 1 by the micro-controller. Now what I want you to tell me is how to change polarity of a wire. Kindly please hassle to help me as I need to complete this project untill tuesday.
Thanks in advace.
I am designing a telephone interface. I have used an npn optocoupler in my ring detector circuit. I have connected telephone's red and green wires to pin 1 and 2 of optocoupler through some elements such as capacitors, resistors and diodes. Then I have connected emitter pin of optocoupler to ground of +5V power supply and I am using collector pin as the output. Now when telephone line starts ringing the output wire (connected to collector) continuously raises to -2.7V for 1 second and drops for 4 seconds. Now I wish to connect this to a micro-controller wgich needs to receive V+ to detect it as logical 1 and the output wire has V-. As I know from +2.5V to +5V range is detected as logical 1 but not -2.7V. Right now what I need is to change polarity the output from negative to positive in orde to get +2.7V which can be detected as logical 1 by the micro-controller. Now what I want you to tell me is how to change polarity of a wire. Kindly please hassle to help me as I need to complete this project untill tuesday.
Thanks in advace.