Search This Blog

Friday, August 15, 2014

Digital to Analog Converter with uC Watchdog

This is the continuation of the earlier post. Part of 80C39 based Process Controller. In this schematic you can see the Watchdog and D/A Converter.

80C39 and MCS48 based Process Controller is the main circuit that has the LED 7 segment display for output and push keys for input. The old form of Human Machine Interface - HMI.

Digital to Analog Converter with uC Watchdog

My first observation of a very complex watchdog in action was an Agilent(hp) Benchtop Multimeter based on this 8048 family of 1st generation microcontrollers that did not even have a UART among many things.

At that time CMOS was just making an entry and FLASH memory was unheard of. The UV Eprom was the way firmware was set on these systems. These consumed a lot of power. 80C39 was the CMOS one.

The  4040 counter derives a slow clock from the 7555 timer. The counter has to be reset by firmware by periodically sending a reset pulse on port pin P2.7 to say "Alls Well".

If the firmware or uC "hangs" or due to EMI or Spikes the uC gets into an endless loop. Then the "Alls Well" pulses stop coming. The 4040 keeps counting till Q10 output goes high and resets the uC or can we say Wakes it up rudely.

The D/A converter was used to get the 1-5 V to obtain 4-20 mA control Signal to operate the Actuators like a Motor Drive or Heaters in a Industrial Process control System.

Thursday, August 14, 2014

Regulated High Voltage Power Supply

The Circuit below is a paper design and not tested. It can be used for education and information, this can help you make your own design. Please do not just wire it up and expect it to work.

Regulated High Voltage Power Supply

Now let me see if i can explain the circuit, This is a regulated AC power supply. This circuit uses the Mosfet to turn off when voltage goes beyond a reference point. That means it just chops the Sine wave above a point, that also implies that the output may not be pure sine and may have harmonics. The Transformer if well designed may smoothen the chops. Even a Series Inductor or Resonant Circuits may reduce harmonics.

Regulated High Voltage Power Supply - del20032

The opto coupler 4N50 Provides isolation and good Current Transfer Ratio. That may mean you may not get a shock and that even a small current signal in Opto-LED will give a saturated or Low Impedance in Opto-Transistor. The Mosfet is used like a Impedance Control switch turned On-Off by Opto. The Optocoupler diode is controlled by the Opamps which work Closed loop. The transformer output is compared with reference to drive opto-led.

This Circuit is based on Teledyne Solid State data book application note. They may not be making these parts anymore but they are available from others.

Wednesday, August 13, 2014

Switching Battery Charger with L296

This is a a circuit from my  Power Supplies Section.  There may be some documentation errors in my circuits. If you are used to building and troubleshooting circuits then it is ok.

This circuit is derived from an application note of L296, It is a Power Switching Regulator from ST Micro. U1A is wired as a differential amplifier and U1B a High Gain Comparator. C4 and C5 are parallel for lower ESR. Equivalent series resistanc Fast switching diode used is BYW80.

Switching Battery Charger with L296

L296 is a switch mode power controller here. In this NTE327 or 2N5038 is used to boost the current output. This transistor is both high current and fast switching. U1A, LM358 measures the load current by reading the voltage across shunt R6 and compared to a current limit setting at R14 using U1B to give a load current control. R7-R8 give a voltage feedback for voltage limit.

Use MFR 1% for all Resistors, 33E means 33 ohms, 22K means 22 kilo ohms, 1M is 1 megohm. 10T tp means ten turn trimpot. "Analog Ground" and "Digital Ground" must be linked at power supply only, avoid loops, let grounds radiate from a ground plane. Unused inputs of logic and opamps pull up or down to avoid oscillations and noise